4D v14SVG_Use |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14
SVG_Use
SVG_Use
The SVG_Use command places an occurrence of the symbol in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document or if id is not the object name of an SVG document, an error is generated. A symbol is used to specify graphic objects; it is never rendered directly but may be instantiated using the SVG_Use command. The id parameter specifies the name of the symbol. The optional x, y, width and height parameters specify the viewbox rectangle ('viewBox' attribute). The optional mode parameter can be used to indicate if the graphic must be fitted, and how so, to the size of the viewbox. (see the SVG_New command). Specify a graphic composed of two red circles and two blue squares. Then use this graphic in a loop to create 36 occurrences with varying positions, opacity and rotation of the original graphic. $SVG:=SVG_New |
PROPERTIES
Product: 4D
HISTORY
Created: Composant 4D SVG v11.3 SEE ALSO ARTICLE USAGE
4D SVG Component ( 4D v13) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||