ReshapeLinkCommand
Defined in: undo/commands.ts:356
Command to persist a manual link reshape (from LinkReshapingTool). There is no model-data field for a link’s path points, so this operates directly on the visual Link’s pathPoints/hasManualReshape rather than through the model.
Implements
Sección titulada «Implements»Constructors
Sección titulada «Constructors»Constructor
Sección titulada «Constructor»new ReshapeLinkCommand(
link,newPoints,oldPoints,oldHasManualReshape):ReshapeLinkCommand
Defined in: undo/commands.ts:362
Parameters
Sección titulada «Parameters»newPoints
Sección titulada «newPoints»object[]
oldPoints
Sección titulada «oldPoints»object[]
oldHasManualReshape
Sección titulada «oldHasManualReshape»boolean
Returns
Sección titulada «Returns»ReshapeLinkCommand
Methods
Sección titulada «Methods»describe()
Sección titulada «describe()»describe():
string
Defined in: undo/commands.ts:386
Get a description of the command.
Returns
Sección titulada «Returns»string
Implementation of
Sección titulada «Implementation of»execute()
Sección titulada «execute()»execute():
void
Defined in: undo/commands.ts:374
Execute the command.
Returns
Sección titulada «Returns»void
Implementation of
Sección titulada «Implementation of»undo():
void
Defined in: undo/commands.ts:380
Undo the command.
Returns
Sección titulada «Returns»void