Constructor
new ve.dm.ResizableNode()abstract
#
A mixin class for resizable nodes. This class is mostly a base interface for resizable nodes to be able to produce scalable objects for further calculation.
- Source:
A mixin class for resizable nodes.
Properties
createScalableabstract
#
Create a scalable object based on the current object's width and height.
- Source:
Create a scalable object based on the current object's width and height.
Methods
getCurrentDimensions() → {Object}
#
Get the current dimensions from the model
getScalable() → {ve.dm.Scalable}
#
Get a scalable object for this node.
#createScalable is called if one doesn't already exist.
- Source:
Returns:
- Type
- ve.dm.Scalable
Get a scalable object for this node.
onResizableAttributeChange(key, from, to)
#
Handle attribute change events from the model.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Attribute key |
from |
string | Old value |
to |
string | New value |
- Source:
Handle attribute change events from the model.