The SVG <defs> <symbols>
element is used to predefine an element so that it can be reused in an SVG image
<
svg
xmlns
=
"http://www.w3.org/2000/svg"
width
=
"500"
height
=
"100"
>
<
symbol
id
=
"shape2"
>
<
circle
cx
=
"25"
cy
=
"25"
r
=
"25"
style
=
"fill:#bf55ec;"
/>
</
symbol
>
<
use
xlink:href
=
"#shape2"
x
=
"50"
y
=
"25"
/>
</
svg
>
can also be referenced using URLs
<defs> <lineargradient id= "LinearGradient" > <stop offset= "0%" stop-color= "#f00"/&G T <stop offset= "stop-color=" #f60 "/> </linearGradient> </defs>/Apply linear gradient <rect x=" "Y=" "width=" "height=" stroke= "Orange" stroke-width= "5" fill= "url (#linearGradient)"/>
or
< Defs><clippath id= "highcharts-1" ><rect x= "0" y= "0" width= "814" height= "247" ></rect></ Clippath></defs>
<g class= "highcharts-series highcharts-tracker" visibility= "visible" zIndex= "0.1" transform= "Translate (0,0) scale (1 1)" style= "" clip-path= "url (#highcharts-1)" ></G>
<g class= "highcharts-series highcharts-tracker" visibility= "visible" zIndex= "0.1" transform= "Translate (70,80) scale (1 1)" style= "" clip-path= "url (#highcharts-1)" ></G>
If the scale y-axis shrinks to the original 0.6 times scale (1 0.6) then the resulting graph is the graphic height 247* (1-0.6) + Original y-axis value = 179.2
<g class= " Highcharts-series highcharts-tracker "visibility=" visible "zindex=" 0.1 "transform=" translate (70,179.2) scale (1 0.6) " style= "clip-path=" url (#highcharts-1) "></G>
: Translate (70,80) scale (1 1) =======" Translate ( 70,179.2) scale (1 0.6)
The Text-anchor property can be used as justification for using
transform= "Translate (0,0) rotate (rotation angle, position x after rotation, y)"
HTML5 Canvas Canvases