Namespace for the drawing canvas. Also a static class providing
enumerations and utility functions.
- Source:
Classes
- Cursor
- Drawing
- EventHandler
- Hoverable
- Layer
- LayerBackground
- LayerShape
- LayerShapeCreate
- LayerShapeModify
- LayerTool
- Modifiable
- Selectable
Members
-
(static) xrx.drawing.EventType :string
-
Enumeration of event types dispatched by the drawing canvas.
Type:
- string
- Source:
Properties:
Name Type Default Description VIEWBOX_CHANGE
string eventViewboxChange SHAPE_MODIFY
string eventShapeModify SHAPE_HOVER_IN
string eventShapeHoverIn SHAPE_HOVER_MOVE
string eventShapeHoverMove SHAPE_HOVER_OUT
string eventShapeHoverOut SHAPE_BEFORE_DRAW
string eventShapeBeforeDraw -
(static) xrx.drawing.Mode :number
-
Enumeration for drawing modes.
Type:
- number
- Source:
Properties:
Name Type Default Description VIEW
number 1 MODIFY
number 2 DELETE
number 3 CREATE
number 4 DISABLED
number 5 SELECT
number 6 HOVER
number 7 HOVERMULTIPLE
number 8 -
(private, static) xrx.drawing.Orientation :string
-
Enumeration of orientations, used by the drawing view-box.
Type:
- string
- Source:
Properties:
Name Type Default Description C
string C NE
string NE SE
string SE SW
string SW NW
string NW -
(private, static) xrx.drawing.Position :string
-
Enumerations of positions used by the drawing view-box.
Type:
- string
- Source:
Properties:
Name Type Default Description NE
string NE SE
string SE SW
string SW NW
string NW -
(private, static) xrx.drawing.State
-
Enumeration for drawing states.
- Source:
Properties:
Name Type Default Description DRAG
1 NONE
2