4D v13

SVG_Get_options

Home

 
4D v13
SVG_Get_options

SVG_Get_options 


 

SVG_Get_options -> Function result 
Parameter Type   Description
Function result  Longint in Options

The SVG_Get_options command returns a longint representing a 32-bit array where each bit can represent an option of the component. You can use the operators on the 4D bits to check the state of an option (??), and to enable (?+) or disable (?-) one of them.

The following options are currently available:

BitOptionDefault
1Assign an ID automatically when creating an element0 (disabled)
2Automatically close any objects thatcan be0 (disabled)
3Create objects with a background1 (enabled)
4Absolute coordinates for paths1 (enabled)
5Create more readable code0 (disabled)
6Beep when an error occurs1 (enabled)
7Do not display 4D errors0 (disabled)
8Transparent pictures1 (enabled)
9Use trigonometic origin0 (disabled)
10Automatic Arial Substitution1 (enabled)
11Set shape-rendering='crispEdges' as default for a new canvas0 (disabled)
12Check parameters1 (enabled)

  • Assign an ID automatically when creating an element
    If this option is enabled, when the component creates a new element, it systematically adds and fills in an 'id' attribute for the object created, if this is not already specified.
  • Create objects with a background
    If this option is enabled, closed objects will be created with a background color; otherwise, the background will be transparent.
  • Create more readable code
    This option can be used to create indented and well-spaced code which is nevertheless unwieldy; its activation is particularly useful during the debugging phase.
  • Beep when an error occurs
    When an error occurs and no host database error-handling method has been installed with the SVG_Set_error_handler command, a beep is emitted if this option is enabled.
  • Do not display 4D errors
    This option which is enabled by default blocks the display of 4D errors by installing an error-handling method peculiar to the component. You may prefer not to use this internal management and to let 4D display these messages. This can be useful during debugging for example.
  • Transparent pictures
    By default, SVG pictures created with the SVG_New command are transparent. By disabling this option, the pictures will be on a white background.
  • Use trigonometric origin
    By default, SVG places the origin at the top of the scale of degrees (midnight). This option lets you pass coordinates according to the usual trigonometric reference points (3h or 15mn). Conversion is performed on the fly.
  • Automatic Arial Substitution
    By default, 4D SVG replaces 'Arial' font with 'Arial Unicode MS', 'Arial' to improve compatibility with non-Roman characters (e.g. Japanese). In certain cases, you may want to disable this functioning. This option means you do not have to replace Arial fonts.
  • Set shape-rendering='crispEdges' as default for a new canvas
    The crispEdges attribute (see SVG_SET_SHAPE_RENDERING) can be forced by default using this option.
  • Checks parameters
    By default, 4D SVG checks the validity of parameters passed to commands. Once the development step is finished, you may want to disable this option to speed up code execution.

Example  

See the SVG_SET_OPTIONS command.

 
PROPERTIES 

Product: 4D
Theme: Utilities
Number: 65914

 
INDEX

Alphabetical list of commands

 
HISTORY 

New
Created: Composant 4D SVG v11.3
Modified: 4D v13

 
SEE ALSO 

SVG_SET_OPTIONS