%ZEN.SVGComponent.svgCanvas
Class %ZEN.SVGComponent.svgCanvas Extends %ZEN.SVGComponent.svgFrame [ Deprecated, System = 3 ]
This is a specialized type of %ZEN.SVGComponent.svgFrame that can contain a set of sprite objects.
This provides the basics needed for an svg-based graphical editor.
Properties
connectors
Property connectors As list Of connector(XMLPROJECTION = "NONE");
List of connectors on this canvas.
showRulers
Property showRulers As %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, display rulers along the left and top of this canvas.
rulerWidth
Property rulerWidth As %ZEN.Datatype.float [ InitialExpression = 8.5 ];
Width of vertical ruler. This value is multiplied with rulerMajor to get the actual size.
rulerHeight
Property rulerHeight As %ZEN.Datatype.float [ InitialExpression = 11.0 ];
Height of vertical ruler. This value is multiplied with rulerMajor to get the actual size.
rulerMajor
Property rulerMajor As %ZEN.Datatype.integer [ InitialExpression = 100 ];
Number of units per major ruler tick mark. This must be a multiple of rulerMinor or no major tick marks will show.
rulerMinor
Property rulerMinor As %ZEN.Datatype.integer [ InitialExpression = 25 ];
Number of units per minor ruler tick mark.
rulerStyle
Property rulerStyle As %ZEN.Datatype.style [ InitialExpression = "stroke:gray;" ];
CSS style used to draw rulers.
Methods
createSprite
ClientMethod createSprite(type, x, y) [ Language = javascript ]
Create a new sprite on this canvas and return it.
createConnector
ClientMethod createConnector(type) [ Language = javascript ]
Create a new connector on this canvas and return it.
canDragShapes
ClientMethod canDragShapes() [ Language = javascript ]
Return true if shapes can be dragged on this frame.
svgLoadHandler
ClientMethod svgLoadHandler(win) [ Language = javascript ]
Notification that the embedded SVG page is loaded.
drawRulers
ClientMethod drawRulers() [ Language = javascript ]
Draw set of rulers.
setProperty
ClientMethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.