Namespace: xrx.drawing

xrx. drawing

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
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
Source:

(static) xrx.drawing.Mode :number

Enumeration for drawing modes.
Type:
  • number
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
Source:

(private, static) xrx.drawing.Orientation :string

Enumeration of orientations, used by the drawing view-box.
Type:
  • string
Properties:
Name Type Default Description
C string C
NE string NE
SE string SE
SW string SW
NW string NW
Source:

(private, static) xrx.drawing.Position :string

Enumerations of positions used by the drawing view-box.
Type:
  • string
Properties:
Name Type Default Description
NE string NE
SE string SE
SW string SW
NW string NW
Source:

(private, static) xrx.drawing.State

Enumeration for drawing states.
Properties:
Name Type Default Description
DRAG 1
NONE 2
Source: