Class: xrx.shape.Modifiable

xrx.shape. Modifiable

(private) new xrx.shape.Modifiable(shape)

An abstract class representing a modifiable shape.
Parameters:
Name Type Description
shape xrx.shape.Shape The target shape to be modified.
Source:

Members

(private) xrx.shape.Modifiable#dragger_ :Array.<xrx.shape.Dragger>

Draggers to modify this modifiable shape.
Type:
Source:

xrx.shape.Modifiable#move

Abstract function to be implemented by each modifiable shape.
Source:

xrx.shape.Modifiable#setCoordAt

Abstract function to be implemented by each modifiable shape.
Source:

xrx.shape.Modifiable#setCoords

Abstract function to be implemented by each modifiable shape.
Source:

(private) xrx.shape.Modifiable#shape_ :xrx.shape.Shape

The target shape to be modified.
Type:
Source:

(private) xrx.shape.Modifiable#store_ :xrx.shape.Style

Helper to restore the style when deselected.
Type:
Source:

Methods

xrx.shape.Modifiable#disposeInternal()

Disposes this modifiable helper shape.
Source:

xrx.shape.Modifiable#getDragger() → {Array.<xrx.shape.Dragger>}

Returns the dragger elements of this modifiable helper shape.
Source:
Returns:
The dragger elements.
Type
Array.<xrx.shape.Dragger>

xrx.shape.Modifiable#getShape() → {xrx.shape.Shape}

Returns the target shape of this modifiable helper shape.
Source:
Returns:
The target shape.
Type
xrx.shape.Shape

xrx.shape.Modifiable#selectOff()

De-selects this shape.
Source:

xrx.shape.Modifiable#selectOn()

Selects this shape.
Source:

xrx.shape.Modifiable#setDragger() → {xrx.shape.Shape}

Returns the target shape of this modifiable helper shape.
Source:
Returns:
The target shape.
Type
xrx.shape.Shape