tracking-code-which-will-go-to-the-HEAD ResizeComponentAction

Class

ResizeComponentAction

ResizeComponentAction()

Action to resize component.
Constructor

# new ResizeComponentAction()

View Source draw/action/ResizeComponentAction.js, line 6

Methods

# execute(event) → {boolean}

Update element size from mouse translation.
Parameters:
Name Type Description
event object The event containing the target information.

View Source draw/action/ResizeComponentAction.js, line 12

No need to draw.
boolean

# finalize(event) → {boolean}

Update component size from element.
Parameters:
Name Type Description
event object The event containing the target information.

View Source draw/action/ResizeComponentAction.js, line 48

Need to draw.
boolean

# getMaxPosition(containerId) → {Object}

Get max position of bottom right container corner to calculate max size.
Parameters:
Name Type Description
containerId string Container id.

View Source draw/action/ResizeComponentAction.js, line 71

Max position of container corner.
Object