Type Alias Container

Container: {
    dispose: () => void;
    gfx: HTMLDivElement;
    root: HTMLElement;
    ui: HTMLDivElement;
}

Basic HTML structure that the webgl component expects

Type declaration

  • dispose: () => void
  • gfx: HTMLDivElement

    Div to hold viewer canvases and ui

  • root: HTMLElement

    Root of the viewer, all component ui should have this as an acestor.

  • ui: HTMLDivElement

    Div where to instantiate ui elements.