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

Interface. Idiagram Locker

sprotty / IDiagramLocker

Interface: IDiagramLocker

Defined in: packages/sprotty/src/base/actions/diagram-locker.ts:27

Allows to lock the diagram by preventing certain actions from being dispatched.

This could for example be used to prevent the diagram from being modified when the underlying model is broken or the server is unavailable.

Methods

isAllowed()

isAllowed(action): boolean

Defined in: packages/sprotty/src/base/actions/diagram-locker.ts:28

Parameters

action

Action

Returns

boolean