Interface Config

Interface for Config declaration. This config interface is resposible for initial setup of colors, positons and overlays.

Author

Matej Hakoš

Export

Interface

Config

Hierarchy

  • Config

Properties

animationLoop?: string[]

An array of steps which should loop.

colors?: Colors

Color setup for manual.

container?: HTMLElement

HTML element to which manual should 'bind' and start to render.

extensions?: Extension

Antoher extension fields. (WIP)

loadingOverlay?: HTMLElement

HTML of custom loading overlay.

sidebar?: { body?: HTMLElement; visible?: ShowSidebar }

Sidebar config, with 'body' containing HTML element, which should be rendered and 'visible' if the body is visible on fullscreen.

Type declaration

  • Optional body?: HTMLElement
  • Optional visible?: ShowSidebar
world?: { centerOfWorld?: [x: number, y: number, z: number]; globalRotation?: [x: number, y: number, z: number, w: number]; startPosition?: [x: number, y: number, z: number] }

Sets position of camera, OrbitalControls and global orientation.

Type declaration

  • Optional centerOfWorld?: [x: number, y: number, z: number]
  • Optional globalRotation?: [x: number, y: number, z: number, w: number]
  • Optional startPosition?: [x: number, y: number, z: number]

Generated using TypeDoc