Recalculate.
- License:
- MIT
- Source:
Interfaces
Methods
(static) init(editorContext) → {void}
Parameters:
Name | Type | Description |
---|---|---|
editorContext |
module:recalculate.EditorContext |
- Source:
Returns:
- Type
- void
(static) recalculateDimensions(selected) → {Command}
Decides the course of action based on the element's transform list.
Parameters:
Name | Type | Description |
---|---|---|
selected |
Element | The DOM element to recalculate |
- Source:
Returns:
Undo command object with the resulting change
- Type
- Command
(static) updateClipPath(attr, tx, ty) → {void}
Updates a <clipPath>
s values based on the given translation of an element.
Parameters:
Name | Type | Description |
---|---|---|
attr |
string | The clip-path attribute value with the clipPath's ID |
tx |
Float | The translation's x value |
ty |
Float | The translation's y value |
- Source:
Returns:
- Type
- void