Options.defaults.elementParameters Class
autoCenter
BooleanCenters the element in the canvas or when it has a bounding box in the bounding box.
Default: false
boundingBox
BooleanDefines a bounding box (printing area) for the element.
- If false no bounding box
- The title of an element in the same view, then the boundary of the target element will be used as bounding box.
- An object with x,y,width and height defines the bounding box
Default: false
boundingBoxMode
StringSet the mode for the bounding box. Possible values: 'none', 'clipping', 'limitModify', 'inside'
Default: 'clipping'
colorLinkGroup
Boolean | StringInclude the element in a color link group. So elements with the same color link group are changing to same color as soon as one element in the group is changing the color.
Default: false
Example:
'my-color-group'
colorPrices
ObjectYou can define different prices when using a range of colors, set through the colors option.
Default: {}
Example:
colorPrices: {"000000": 2, "ffffff: "3.5"}
colors
Boolean | String- If false, no colorization for the element is possible.
- One hexadecimal color will enable the colorpicker
- Mulitple hexadecimal colors separated by commmas will show a range of colors the user can choose from.
Default: false
Example:
colors: "#000000" => Colorpicker, colors: "#000000,#ffffff" => Range of colors
copyable
BooleanIf true the user can copy non-initial elements. Copyable property is enabled for designs and custom added elements automatically.
Default: false
excludeFromExport
BooleanWhen true the element is not exported in SVG. If you are going to use one of the data URL methods (e.g. getProductDataURL()), you need to set onlyExportable=true in the options, so the element is not exported in the data URL.
Default: false
fixed
BooleanThe layer is fixed and will stay on the canvas when changing the product.
Default: false
locked
BooleanBy the default the element will be locked and needs to be unlocked by the user via the "Manage Layers" module.
Default: false
patterns
ArrayAn array of URLs to pattern image - onyl for SVG images or text elements.
Default: []
Example:
patterns: ['patterns/pattern_1.png', 'patterns/pattern_2.png',]
replaceInAllViews
BooleanIf a replace value is set, you can decide if the element replaces the elements with the same replace value in all views or only in the current showing view.
Default: ''
showInColorSelection
BooleanShows the element colors in color selection panel. Requires Fancy Product Designer Plus Add-On.
Default: false
uniScalingUnlockable
BooleanAllow user to unlock proportional scaling in the toolbar. After that the user scale the element unproportional via toolbar or element boundary controls.
Default: false