4D v13SVG_Define_style |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
SVG_Define_style
SVG_Define_style
The SVG_Define_style command is used to set a new style sheet in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not (or does not belong to) an SVG document, an error is generated. The style parameter is used to embed style sheets directly within SVG content:
The optional type parameter specifies the language of the style sheet for the contents of the element. The default value is "text/css". The optional media parameter specifies the intended destination media for the style information. If you omit this parameter, the default value used is "all". If the value is not included in the list of media types recognized by CSS2, an error is generated. See Also: http://www.w3.org/TR/SVG/styling.html#StyleElement Setting an embedded style and overlay of one of the elements: //Definition of style Referencing the "mystyle.css" file placed in the "dev" folder of the "Resources" folder: //Definition of style mystyle.css file: .colored {fill: red; fill-opacity: 0.6; stroke: blue; stroke-width:8; stroke-opacity: 0.6} |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D v12 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||