Welcome to TalkGraphics.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,810

    Lightbulb Addition to your SVG Rendering

    Dear Xara...

    ...with the new(ish) capability of your HTML Filter generating in-line SVG, it would be another stride ahead if we we able to add a user-define path id to this SVG code.
    When one has a path id, it can be referenced in a <use> statement and the SVG Fill and Stoke is replicated without having to create additional copies of the same path.
    This is faster for the browser and results in small file sizes.
    The <use> attribute requires an HTML ID.
    Currently, I am realising this with JavaScript.

    My suggestion is another special Name, htmlSvgPathId, that take a value: e.g., htmlSvgPathId="henrietta".
    The value is then included by you in the SVG path as its ID: <path id="henrietta" ... ></path>

    Any Anchor (ID) for the SVG Shape is still required unchanged as this allows CSS manipulation of the SVG.

    An example: SVG - use for Cloning.xar - only works for XDAs that output SVG code.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  2. #2
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,910

    Default Re: Addition to your SVG Rendering

    Sounds like a simple yet useful feature to me Acorn.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •