Skip to main content

element

Classes​

MaterialViewerElement​

Extends​

  • HTMLElement

Accessors​

observedAttributes​
Get Signature​
get static observedAttributes(): string[];
Returns​

string[]

Constructors​

Constructor​
new MaterialViewerElement(): MaterialViewerElement;
Returns​

MaterialViewerElement

Overrides​

HTMLElement.constructor

Methods​

connectedCallback()​
connectedCallback(): void;
Returns​

void

attributeChangedCallback()​
attributeChangedCallback(name): void;
Parameters​
ParameterType
namestring
Returns​

void

disconnectedCallback()​
disconnectedCallback(): void;
Returns​

void

getCameraSettings()​
getCameraSettings():
| Required<CameraSettings>
| null;

Current camera framing, or null before the viewer has loaded.

Returns​

| Required<CameraSettings> | null

toBlob()​
toBlob(options?): Promise<Blob>;

Waits for the current source to load, then exports its completed preview frame.

Parameters​
ParameterType
options?ScreenshotOptions
Returns​

Promise<Blob>

References​

ScreenshotOptions​

Re-exports ScreenshotOptions


MaterialProgress​

Re-exports MaterialProgress

Type Aliases​

MaterialViewerProgress​

type MaterialViewerProgress = MaterialProgress & LoadingProgress;