Ir al contenido

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.

new ReshapeLinkCommand(link, newPoints, oldPoints, oldHasManualReshape): ReshapeLinkCommand

Defined in: undo/commands.ts:362

Link

object[]

object[]

boolean

ReshapeLinkCommand

describe(): string

Defined in: undo/commands.ts:386

Get a description of the command.

string

Command.describe


execute(): void

Defined in: undo/commands.ts:374

Execute the command.

void

Command.execute


undo(): void

Defined in: undo/commands.ts:380

Undo the command.

void

Command.undo