Home
Categories
Dictionnary
Download
Project Details
FAQ
License

Use element support


    1  Example
    2  Limitations
    3  Notes
    4  See also

The library support the use element[1] .

The following attributes are supported:
  • href or xlink:href: specifies the named node to use
  • x
  • y

Example

The following specification:
      <svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg">
         <circle id="myCircle" cx="50" cy="50" r="20" stroke="blue"/>
         <use href="#myCircle" x="100" fill="blue"/>
         <use href="#myCircle" x="150" fill="white" stroke="red"/>
      </svg>      

will have the result:
use

Limitations

  • The overriding of attributes is still not correctly supported

Notes

See also


Categories: fromsvgsupport

Copyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License