Viewer2dSettings
Type alias in @bimworks/viewer2d.
API catalogue · @bimworks/viewer2d · Type alias
TypeScript#
type Viewer2dSettings = {
camera?: { fitOnLoad?: boolean };
canvas?: { autoSize?: boolean };
debugging?: { renderStatistics?: { gpu: GroupStat; viewer?: GroupStat } };
keyBindings?: { keyup?: (event: unknown) => void; rightMouseClick: (event: unknown, qid: Qid) => void };
realtimeSettings?: { drawAdditionalLines?: boolean; drawLines?: boolean; drawTriangles?: boolean; drawWireframes?: boolean };
rendering?: { antialias?: boolean; boundingBox?: boolean };
showLoader?: boolean;
styling?: { ifcTypes?: { DEFAULT?: { fill: number; stroke: number } }; selection?: { fill: number; stroke: number } };
textPlacement?: { maxWidth?: number; orientation?: "AUTO" | "HORIZONTAL" | "VERTICAL" };
};2D Viewer Settings
Members#
| Member | Kind | Description |
|---|---|---|
| camera | Property | |
| canvas | Property | |
| debugging | Property | Developer diagnostics: count the GPU commands into the gpu stat group |
| keyBindings | Property | |
| realtimeSettings | Property | |
| rendering | Property | Render related settings |
| showLoader | Property | Show the "LOADER" div while a model loads |
| styling | Property | |
| textPlacement | Property |
camera#
TypeScript#
camera?: { fitOnLoad?: boolean }canvas#
TypeScript#
canvas?: { autoSize?: boolean }debugging#
Developer diagnostics: count the GPU commands into the gpu stat group
keyBindings#
TypeScript#
keyBindings?: { keyup?: (event: unknown) => void; rightMouseClick: (event: unknown, qid: Qid) => void }realtimeSettings#
TypeScript#
realtimeSettings?: { drawAdditionalLines?: boolean; drawLines?: boolean; drawTriangles?: boolean; drawWireframes?: boolean }rendering#
TypeScript#
rendering?: { antialias?: boolean; boundingBox?: boolean }Render related settings
showLoader#
TypeScript#
showLoader?: booleanShow the "LOADER" div while a model loads
styling#
TypeScript#
styling?: { ifcTypes?: { DEFAULT?: { fill: number; stroke: number } }; selection?: { fill: number; stroke: number } }textPlacement#
TypeScript#
textPlacement?: { maxWidth?: number; orientation?: "AUTO" | "HORIZONTAL" | "VERTICAL" }