Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_Define_marker
|
SVG_Define_marker ( parentSVGObject ; id {; x ; y {; width ; height {; orientation}}} ) -> Funktionsergebnis | ||||||||
Parameter | Typ | Beschreibung | ||||||
parentSVGObject | SVG_Ref |
![]() |
Reference of parent element | |||||
id | String |
![]() |
Name of symbol | |||||
x | Lange Ganzzahl |
![]() |
Coordinate on X axis of reference point | |||||
y | Lange Ganzzahl |
![]() |
Coordinate on Y axis of reference point | |||||
width | Lange Ganzzahl |
![]() |
Width of marker | |||||
height | Lange Ganzzahl |
![]() |
Height of marker | |||||
orientation | Lange Ganzzahl |
![]() |
Orientation of marker | |||||
Funktionsergebnis | SVG_Ref |
![]() |
Reference of marker | |||||
The SVG_Define_marker command creates a marker in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated.
A marker object is used to draw an arrow or multiple markers (the points of a curve for example). A marker will be attached to an SVG element with the SVG_SET_MARKER command.
The id parameter specifies the name of the marker. The name will be used to associate a marker with an object. If an element with the same name exists, it will be replaced.
The optional x and y parameters specify the coordinates of the reference point that must line up exactly with the marker position.
The optional width and height parameters specify the width and height of the rendered rectangle.
The optional orientation parameter can be used to adjust the orientation of the marker. A value included between 0 and 360 represents the angle between the X axis of the marker and that of the user space. If this parameter is omitted or if its value does not fall in the 0 - 360 interval, the placement will be calculated automatically by the rendering engine according to the object.
Refer to the example of the SVG_SET_MARKER command.
Produkt: 4D
Thema: Structure and Definitions
Nummer:
65985
Erstellt: Composant 4D SVG v11.3
4D SVG ( 4D v20 R7)