4D v14Development tools |
||
|
4D v14
Development tools
Development tools
The 4D SVG component provides a set of tools intended to facilitate the entry of code and to preview the SVG graphics:
The syntax palette lists the 4D SVG component commands grouped by themes: This palette can be used to insert the component commands into the Method editor by simple drag and drop. The command is then pasted in the method with its parameters. The optional parameters are prefixed by an underline. To display the syntax palette, you can either:
The color palette displays the name and a sample of each color specified in the SVG standard, as well as a slider that can be used to vary the rate of opacity: You can use this palette to insert an SVG color reference by drag and drop into the 4D Method editor. The color is inserted as a string that includes the rate of opacity, if any (for example "lavender:30" for the color lavendar with an opacity of 30%). For more information about color references, please refer to the SVG Colors section. To display the color palette, just execute the SVGTool_Display_colors method. 4D SVG provides an SVG viewer that is particularly useful during the development phase:
Note: The "Picture" page has a standard context menu. To display the viewer window, you can either:
4D Pop is a set of components dedicated to developer productivity and grouped into a tool bar that can be integrated into the 4D development environment. When you use 4D Pop and 4D SVG at the same time, a new button is added to the 4D Pop tool bar: This button gives direct access to the development assistance tools of 4D SVG: Note: 4DPop is included in the additional tools on the 4D full installer. |
PROPERTIES
Product: 4D ARTICLE USAGE
4D SVG Component ( 4D v13) |