class %ZEN.SVGComponent.svgCanvas
extends %ZEN.SVGComponent.svgFrame
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.
property connectors
as list of connector(XMLPROJECTION="NONE");
List of connectors on this canvas.
property rulerHeight
as %ZEN.Datatype.float [ InitialExpression = 11.0 ];
Height of vertical ruler. This value is multiplied
with rulerMajor to get the actual size.
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.
property rulerMinor
as %ZEN.Datatype.integer [ InitialExpression = 25 ];
Number of units per minor ruler tick mark.
property rulerStyle
as %ZEN.Datatype.style [ InitialExpression = "stroke:gray;" ];
CSS style used to draw rulers.
property rulerWidth
as %ZEN.Datatype.float [ InitialExpression = 8.5 ];
Width of vertical ruler. This value is multiplied
with rulerMajor to get the actual size.
property showRulers
as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, display rulers along the left and top of this canvas.
method canDragShapes()
[ Language = javascript ]
Return true if shapes can be dragged on this frame.
method createConnector(type)
[ Language = javascript ]
Create a new connector on this canvas and return it.
method createSprite(type, x, y)
[ Language = javascript ]
Create a new sprite on this canvas and return it.
method drawRulers()
[ Language = javascript ]
Draw set of rulers.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.
method svgLoadHandler(win)
[ Language = javascript ]
Notification that the embedded SVG page is loaded.