element
Classes
MaterialViewerElement
Extends
HTMLElement
Accessors
observedAttributes
Get Signature
get static observedAttributes(): string[];
Returns
string[]
Constructors
Constructor
new MaterialViewerElement(): MaterialViewerElement;
Returns
Overrides
HTMLElement.constructor
Methods
connectedCallback()
connectedCallback(): void;
Returns
void
attributeChangedCallback()
attributeChangedCallback(name): void;
Parameters
| Parameter | Type |
|---|---|
name | string |
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
| Parameter | Type |
|---|---|
options? | ScreenshotOptions |
Returns
Promise<Blob>
References
ScreenshotOptions
Re-exports ScreenshotOptions
MaterialProgress
Re-exports MaterialProgress
Type Aliases
MaterialViewerProgress
type MaterialViewerProgress = MaterialProgress & LoadingProgress;