Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Class. Update Model Command

oldRoot

oldRoot: SModelRootImpl

Defined in: packages/sprotty/src/features/update/update-model.ts:51


KIND

readonly static KIND: "updateModel" = UpdateModelAction.KIND

Defined in: packages/sprotty/src/features/update/update-model.ts:49

Methods

applyMatches()

protected applyMatches(root, matches, context): void

Defined in: packages/sprotty/src/features/update/update-model.ts:99

Parameters

root

SModelRootImpl

matches

Match[]

context

CommandExecutionContext

Returns

void


computeAnimation()

protected computeAnimation(newRoot, matchResult, context): Animation | SModelRootImpl

Defined in: packages/sprotty/src/features/update/update-model.ts:143

Parameters

newRoot

SModelRootImpl

matchResult

MatchResult

context

CommandExecutionContext

Returns

Animation | SModelRootImpl


convertToMatchResult()

protected convertToMatchResult(matches, leftRoot, rightRoot): MatchResult

Defined in: packages/sprotty/src/features/update/update-model.ts:122

Parameters

matches

Match[]

leftRoot

SModelRootImpl

rightRoot

SModelRootImpl

Returns

MatchResult


createAnimations()

protected createAnimations(data, root, context): Animation[]

Defined in: packages/sprotty/src/features/update/update-model.ts:256

Parameters

data

UpdateAnimationData

root

SModelRootImpl

context

CommandExecutionContext

Returns

Animation[]


execute()

execute(context): CommandReturn

Defined in: packages/sprotty/src/features/update/update-model.ts:60

Parameters

context

CommandExecutionContext

Returns

CommandReturn

Overrides

Command.execute


performUpdate()

protected performUpdate(oldRoot, newRoot, context): CommandReturn

Defined in: packages/sprotty/src/features/update/update-model.ts:74

Parameters

oldRoot

SModelRootImpl

newRoot

SModelRootImpl

context

CommandExecutionContext

Returns

CommandReturn


redo()

redo(context): CommandReturn

Defined in: packages/sprotty/src/features/update/update-model.ts:285

Parameters

context

CommandExecutionContext

Returns

CommandReturn

Overrides

Command.redo


takeSnapshot()

protected takeSnapshot(edge): EdgeSnapshot

Defined in: packages/sprotty/src/features/update/update-model.ts:251

Parameters

edge

SRoutableElementImpl

Returns

EdgeSnapshot


undo()

undo(context): CommandReturn

Defined in: packages/sprotty/src/features/update/update-model.ts:281

Parameters

context

CommandExecutionContext

Returns

CommandReturn

Overrides

Command.undo


updateElement()

protected updateElement(left, right, animationData): void

Defined in: packages/sprotty/src/features/update/update-model.ts:190

Parameters

left

SModelElementImpl

SModelElementImpl

animationData

UpdateAnimationData

Returns

void