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:174

Properties

viewerIndex

Readonly viewerIndex: number

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:12


viewer

Optional viewer: CoreViewerApp

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:14


canvas

Optional canvas: HTMLCanvasElement

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:15


wrapper

wrapper: HTMLDivElement

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:16


canvasId

Readonly canvasId: string

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:19

Constructors

constructor

new WebGiViewerElement()

Overrides

HTMLElement.constructor

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:21

Methods

refreshAll

refreshAll(): Promise<void>

Returns

Promise<void>

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:68


connectedCallback

connectedCallback(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:118


disconnectedCallback

disconnectedCallback(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:132


adoptedCallback

adoptedCallback(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:164


attributeChangedCallback

attributeChangedCallback(name, oldValue, newValue): void

Parameters

NameType
namestring
oldValuestring
newValuestring

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:178


clearViewer

clearViewer(): void

Returns

void

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:191


refreshModelSource

refreshModelSource(): Promise<void>

Returns

Promise<void>

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:202


refreshEnvironment

refreshEnvironment(): Promise<void>

Returns

Promise<void>

Defined in

webgi/examples/runtime/WebGiViewerElement.ts:266


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:306