Skip to main content

Class: WebGiViewerElement

Core-API.WebGiViewerElement

Hierarchy

  • HTMLElement

    WebGiViewerElement

Accessors

observedAttributes

Static get observedAttributes(): string[]

Returns

string[]

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:157

Properties

viewerIndex

Readonly viewerIndex: number

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:10


viewer

Optional viewer: CoreViewerApp

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:12


canvas

Optional canvas: HTMLCanvasElement

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:13


wrapper

wrapper: HTMLDivElement

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:14


canvasId

Readonly canvasId: string

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:17

Constructors

constructor

new WebGiViewerElement()

Overrides

HTMLElement.constructor

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:19

Methods

refreshAll

refreshAll(): Promise<void>

Returns

Promise<void>

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:51


connectedCallback

connectedCallback(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:101


disconnectedCallback

disconnectedCallback(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:115


adoptedCallback

adoptedCallback(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:147


attributeChangedCallback

attributeChangedCallback(name, oldValue, newValue): void

Parameters

NameType
namestring
oldValuestring
newValuestring

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:161


clearViewer

clearViewer(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:174


refreshModelSource

refreshModelSource(): Promise<void>

Returns

Promise<void>

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:185


refreshEnvironment

refreshEnvironment(): Promise<void>

Returns

Promise<void>

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:249


addEventListener

addEventListener<K>(type, listener, options?): void

Type parameters

NameType
Kextends keyof HTMLElementEventMap | "initialized"

Parameters

NameType
typeK
listener(this: HTMLElement, ev: HTMLElementEventMap2[K]) => any
options?boolean | AddEventListenerOptions

Returns

void

Overrides

HTMLElement.addEventListener

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:289