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

Interface. Viewer Options

hiddenDiv

hiddenDiv: string

Defined in: packages/sprotty/src/base/views/viewer-options.ts:28

ID of the HTML element into which the hidden diagram is rendered.


horizontalScrollLimits

horizontalScrollLimits: Limits

Defined in: packages/sprotty/src/base/views/viewer-options.ts:50

Minimum and maximum values for the horizontal scroll position.


needsClientLayout

needsClientLayout: boolean

Defined in: packages/sprotty/src/base/views/viewer-options.ts:40

Whether client layouts need to be computed by Sprotty. This activates a hidden rendering cycle.


needsServerLayout

needsServerLayout: boolean

Defined in: packages/sprotty/src/base/views/viewer-options.ts:42

Whether the model source needs to invoke a layout engine after a model update.


popupClass

popupClass: string

Defined in: packages/sprotty/src/base/views/viewer-options.ts:36

CSS class added to the base element of popup boxes.


popupClosedClass

popupClosedClass: string

Defined in: packages/sprotty/src/base/views/viewer-options.ts:38

CSS class added to popup boxes when they are closed.


popupCloseDelay

popupCloseDelay: number

Defined in: packages/sprotty/src/base/views/viewer-options.ts:46

Delay for closing a popup box after leaving the corresponding element.


popupDiv

popupDiv: string

Defined in: packages/sprotty/src/base/views/viewer-options.ts:34

ID of the HTML element into which hover popup boxes are rendered.


popupOpenDelay

popupOpenDelay: number

Defined in: packages/sprotty/src/base/views/viewer-options.ts:44

Delay for opening a popup box after mouse hovering an element.


shadowRoot?

optional shadowRoot: string

Defined in: packages/sprotty/src/base/views/viewer-options.ts:32

ID of the HTML element holding the shadow root.


verticalScrollLimits

verticalScrollLimits: Limits

Defined in: packages/sprotty/src/base/views/viewer-options.ts:52

Minimum and maximum values for the vertical scroll position.


zoomLimits

zoomLimits: Limits

Defined in: packages/sprotty/src/base/views/viewer-options.ts:48

Minimum (zoom out) and maximum (zoom in) values for the zoom factor.