SVG_Define_symbol

4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next

version 11.3


SVG_Define_symbol (parentSVGObject; id{; x{; y{; width{; height{; mode}}}}}) SVG_Ref

ParameterTypeDescription
parentSVGObjectSVG_RefReference of parent element
idStringName of symbol
xNumberX position of viewbox
yNumberY position of viewbox
widthNumberWidth of viewbox
heightNumberHeight of viewbox
modeStringAdjustment to viewbox
Function resultSVG_RefReference of symbol

Description

The SVG_Define_symbol command creates a symbol in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated.

A symbol object is used to specify graphic objects that 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. For more information about this point, please refer to the description of the SVG_New command.

Example

Refer to the description of the SVG_Use command.


See Also

SVG_Use.


4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next