Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
canvasName |
string |
<optional> |
"default" | Used to namespace storage provided via |
||||||||||||||||||||
no_save_warning |
boolean |
<optional> |
false | If |
||||||||||||||||||||
imgPath |
string |
<optional> |
"images/" | The path where the SVG icons are located, with trailing slash. Note that as of version 2.7, this is not configurable by URL for security reasons. |
||||||||||||||||||||
preventAllURLConfig |
boolean |
<optional> |
false | Set to |
||||||||||||||||||||
preventURLContentLoading |
boolean |
<optional> |
false | Set to |
||||||||||||||||||||
lockExtensions |
boolean |
<optional> |
false | Set to |
||||||||||||||||||||
noDefaultExtensions |
boolean |
<optional> |
false | If set to |
||||||||||||||||||||
noStorageOnLoad |
boolean |
<optional> |
false | Some interaction with |
||||||||||||||||||||
forceStorage |
boolean |
<optional> |
false | Some interaction with |
||||||||||||||||||||
emptyStorageOnDecline |
boolean |
<optional> |
false | Used by |
||||||||||||||||||||
avoidClientSide |
boolean |
<optional> |
false | DEPRECATED (use |
||||||||||||||||||||
avoidClientSideDownload |
boolean |
<optional> |
false | Used by |
||||||||||||||||||||
avoidClientSideOpen |
boolean |
<optional> |
false | Used by |
||||||||||||||||||||
extensions |
Array.<string> |
<optional> |
[] | Extensions to load on startup. Use an array in |
||||||||||||||||||||
allowedOrigins |
Array.<string> |
<optional> |
[] | Used by |
||||||||||||||||||||
paramurl |
string |
<optional> |
This was available via URL only. Allowed an un-encoded URL within the query string (use "url" or "source" with a data: URI instead) |
|||||||||||||||||||||
canvas_expansion |
Float |
<optional> |
3 | The minimum area visible outside the canvas, as a multiple of the image dimensions. The larger the number, the more one can scroll outside the canvas. |
||||||||||||||||||||
initFill |
PlainObject |
<optional> |
Init fill properties Properties
|
|||||||||||||||||||||
initStroke |
PlainObject |
<optional> |
Init stroke properties Properties
|
|||||||||||||||||||||
text |
PlainObject | Text style properties Properties
|
||||||||||||||||||||||
initOpacity |
Float |
<optional> |
1 | Initial opacity (multiplied by 100) |
||||||||||||||||||||
dimensions |
module:SVGEditor.XYDimensions |
<optional> |
[640, 480] | The default width/height of a new document. Use an array in |
||||||||||||||||||||
gridSnapping |
boolean |
<optional> |
false | Enable snap to grid by default. Set in Editor Options. |
||||||||||||||||||||
gridColor |
string |
<optional> |
"#000" | Accepts hex, e.g., '#000'. Set in Editor Options. Defaults to black. |
||||||||||||||||||||
baseUnit |
string |
<optional> |
"px" | Set in Editor Options. |
||||||||||||||||||||
snappingStep |
Float |
<optional> |
10 | Set the default grid snapping value. Set in Editor Options. |
||||||||||||||||||||
showRulers |
boolean |
<optional> |
true | Initial state of ruler display (v2.6). Set in Editor Options. |
||||||||||||||||||||
initTool |
string |
<optional> |
"select" | The initially selected tool. Must be either the ID of the button for the tool, or the ID without |
||||||||||||||||||||
wireframe |
boolean |
<optional> |
false | Start in wireframe mode |
||||||||||||||||||||
showlayers |
boolean |
<optional> |
false | Open the layers side-panel by default. |
||||||||||||||||||||
exportWindowType |
"new" | "same" |
<optional> |
"new" | Can be "new" or "same" to indicate whether new windows will be generated for each export;
the |
||||||||||||||||||||
showGrid |
boolean |
<optional> |
false | Set by |
||||||||||||||||||||
show_outside_canvas |
boolean |
<optional> |
true | Defines whether or not elements outside the canvas should be visible. Set and used in |
||||||||||||||||||||
selectNew |
boolean |
<optional> |
true | If true, will replace the selection with the current element and automatically select element objects (when not in "path" mode) after they are created, showing their grips (v2.6).
Set and used in |
- Source:
- Tutorials: