@babylonjs/viewer 7.22.3 → 7.22.4-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/babylon-viewer.esm.js +117012 -0
- package/dist/babylon-viewer.esm.js.map +1 -0
- package/dist/babylon-viewer.esm.min.js +56 -0
- package/dist/babylon-viewer.esm.min.js.map +1 -0
- package/lib/index.d.ts +237 -0
- package/lib/index.js +862 -0
- package/lib/index.js.map +1 -0
- package/package.json +17 -27
- package/readme.md +35 -21
- package/configuration/configuration.d.ts +0 -107
- package/configuration/configuration.js +0 -16
- package/configuration/configuration.js.map +0 -1
- package/configuration/configurationCompatibility.d.ts +0 -8
- package/configuration/configurationCompatibility.js +0 -66
- package/configuration/configurationCompatibility.js.map +0 -1
- package/configuration/configurationContainer.d.ts +0 -10
- package/configuration/configurationContainer.js +0 -10
- package/configuration/configurationContainer.js.map +0 -1
- package/configuration/globals.d.ts +0 -6
- package/configuration/globals.js +0 -18
- package/configuration/globals.js.map +0 -1
- package/configuration/index.d.ts +0 -2
- package/configuration/index.js +0 -4
- package/configuration/index.js.map +0 -1
- package/configuration/interfaces/cameraConfiguration.d.ts +0 -31
- package/configuration/interfaces/cameraConfiguration.js +0 -2
- package/configuration/interfaces/cameraConfiguration.js.map +0 -1
- package/configuration/interfaces/colorGradingConfiguration.d.ts +0 -81
- package/configuration/interfaces/colorGradingConfiguration.js +0 -2
- package/configuration/interfaces/colorGradingConfiguration.js.map +0 -1
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +0 -20
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +0 -2
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js.map +0 -1
- package/configuration/interfaces/environmentMapConfiguration.d.ts +0 -22
- package/configuration/interfaces/environmentMapConfiguration.js +0 -2
- package/configuration/interfaces/environmentMapConfiguration.js.map +0 -1
- package/configuration/interfaces/groundConfiguration.d.ts +0 -24
- package/configuration/interfaces/groundConfiguration.js +0 -2
- package/configuration/interfaces/groundConfiguration.js.map +0 -1
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +0 -45
- package/configuration/interfaces/imageProcessingConfiguration.js +0 -2
- package/configuration/interfaces/imageProcessingConfiguration.js.map +0 -1
- package/configuration/interfaces/index.d.ts +0 -15
- package/configuration/interfaces/index.js +0 -16
- package/configuration/interfaces/index.js.map +0 -1
- package/configuration/interfaces/lightConfiguration.d.ts +0 -60
- package/configuration/interfaces/lightConfiguration.js +0 -2
- package/configuration/interfaces/lightConfiguration.js.map +0 -1
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +0 -26
- package/configuration/interfaces/modelAnimationConfiguration.js +0 -2
- package/configuration/interfaces/modelAnimationConfiguration.js.map +0 -1
- package/configuration/interfaces/modelConfiguration.d.ts +0 -65
- package/configuration/interfaces/modelConfiguration.js +0 -2
- package/configuration/interfaces/modelConfiguration.js.map +0 -1
- package/configuration/interfaces/observersConfiguration.d.ts +0 -5
- package/configuration/interfaces/observersConfiguration.js +0 -2
- package/configuration/interfaces/observersConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneConfiguration.d.ts +0 -48
- package/configuration/interfaces/sceneConfiguration.js +0 -2
- package/configuration/interfaces/sceneConfiguration.js.map +0 -1
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +0 -23
- package/configuration/interfaces/sceneOptimizerConfiguration.js +0 -2
- package/configuration/interfaces/sceneOptimizerConfiguration.js.map +0 -1
- package/configuration/interfaces/skyboxConfiguration.d.ts +0 -21
- package/configuration/interfaces/skyboxConfiguration.js +0 -2
- package/configuration/interfaces/skyboxConfiguration.js.map +0 -1
- package/configuration/interfaces/templateConfiguration.d.ts +0 -67
- package/configuration/interfaces/templateConfiguration.js +0 -2
- package/configuration/interfaces/templateConfiguration.js.map +0 -1
- package/configuration/interfaces/vrConfiguration.d.ts +0 -16
- package/configuration/interfaces/vrConfiguration.js +0 -2
- package/configuration/interfaces/vrConfiguration.js.map +0 -1
- package/configuration/loader.d.ts +0 -4
- package/configuration/loader.js +0 -17
- package/configuration/loader.js.map +0 -1
- package/configuration/mappers.d.ts +0 -43
- package/configuration/mappers.js +0 -192
- package/configuration/mappers.js.map +0 -1
- package/configuration/renderOnlyLoader.d.ts +0 -33
- package/configuration/renderOnlyLoader.js +0 -162
- package/configuration/renderOnlyLoader.js.map +0 -1
- package/configuration/types/default.d.ts +0 -6
- package/configuration/types/default.js +0 -121
- package/configuration/types/default.js.map +0 -1
- package/configuration/types/environmentMap.d.ts +0 -5
- package/configuration/types/environmentMap.js +0 -14
- package/configuration/types/environmentMap.js.map +0 -1
- package/configuration/types/extended.d.ts +0 -6
- package/configuration/types/extended.js +0 -317
- package/configuration/types/extended.js.map +0 -1
- package/configuration/types/index.d.ts +0 -14
- package/configuration/types/index.js +0 -51
- package/configuration/types/index.js.map +0 -1
- package/configuration/types/minimal.d.ts +0 -6
- package/configuration/types/minimal.js +0 -43
- package/configuration/types/minimal.js.map +0 -1
- package/configuration/types/renderOnlyDefault.d.ts +0 -30
- package/configuration/types/renderOnlyDefault.js +0 -31
- package/configuration/types/renderOnlyDefault.js.map +0 -1
- package/configuration/types/shadowLight.d.ts +0 -9
- package/configuration/types/shadowLight.js +0 -64
- package/configuration/types/shadowLight.js.map +0 -1
- package/helper/index.d.ts +0 -29
- package/helper/index.js +0 -66
- package/helper/index.js.map +0 -1
- package/index.d.ts +0 -30
- package/index.js +0 -46
- package/index.js.map +0 -1
- package/initializer.d.ts +0 -11
- package/initializer.js +0 -35
- package/initializer.js.map +0 -1
- package/interfaces.d.ts +0 -5
- package/interfaces.js +0 -7
- package/interfaces.js.map +0 -1
- package/labs/environmentSerializer.d.ts +0 -126
- package/labs/environmentSerializer.js +0 -191
- package/labs/environmentSerializer.js.map +0 -1
- package/labs/texture.d.ts +0 -183
- package/labs/texture.js +0 -351
- package/labs/texture.js.map +0 -1
- package/labs/viewerLabs.d.ts +0 -51
- package/labs/viewerLabs.js +0 -134
- package/labs/viewerLabs.js.map +0 -1
- package/loader/modelLoader.d.ts +0 -56
- package/loader/modelLoader.js +0 -199
- package/loader/modelLoader.js.map +0 -1
- package/loader/plugins/applyMaterialConfig.d.ts +0 -12
- package/loader/plugins/applyMaterialConfig.js +0 -16
- package/loader/plugins/applyMaterialConfig.js.map +0 -1
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +0 -9
- package/loader/plugins/extendedMaterialLoaderPlugin.js +0 -16
- package/loader/plugins/extendedMaterialLoaderPlugin.js.map +0 -1
- package/loader/plugins/index.d.ts +0 -19
- package/loader/plugins/index.js +0 -44
- package/loader/plugins/index.js.map +0 -1
- package/loader/plugins/loaderPlugin.d.ts +0 -24
- package/loader/plugins/loaderPlugin.js +0 -2
- package/loader/plugins/loaderPlugin.js.map +0 -1
- package/loader/plugins/msftLodLoaderPlugin.d.ts +0 -12
- package/loader/plugins/msftLodLoaderPlugin.js +0 -21
- package/loader/plugins/msftLodLoaderPlugin.js.map +0 -1
- package/loader/plugins/telemetryLoaderPlugin.d.ts +0 -12
- package/loader/plugins/telemetryLoaderPlugin.js +0 -36
- package/loader/plugins/telemetryLoaderPlugin.js.map +0 -1
- package/managers/observablesManager.d.ts +0 -66
- package/managers/observablesManager.js +0 -35
- package/managers/observablesManager.js.map +0 -1
- package/managers/sceneManager.d.ts +0 -245
- package/managers/sceneManager.js +0 -1375
- package/managers/sceneManager.js.map +0 -1
- package/managers/telemetryManager.d.ts +0 -78
- package/managers/telemetryManager.js +0 -117
- package/managers/telemetryManager.js.map +0 -1
- package/model/modelAnimation.d.ts +0 -215
- package/model/modelAnimation.js +0 -237
- package/model/modelAnimation.js.map +0 -1
- package/model/viewerModel.d.ts +0 -233
- package/model/viewerModel.js +0 -673
- package/model/viewerModel.js.map +0 -1
- package/optimizer/custom/extended.d.ts +0 -13
- package/optimizer/custom/extended.js +0 -101
- package/optimizer/custom/extended.js.map +0 -1
- package/optimizer/custom/index.d.ts +0 -9
- package/optimizer/custom/index.js +0 -26
- package/optimizer/custom/index.js.map +0 -1
- package/renderOnlyIndex.d.ts +0 -11
- package/renderOnlyIndex.js +0 -18
- package/renderOnlyIndex.js.map +0 -1
- package/templating/eventManager.d.ts +0 -35
- package/templating/eventManager.js +0 -66
- package/templating/eventManager.js.map +0 -1
- package/templating/plugins/hdButtonPlugin.d.ts +0 -9
- package/templating/plugins/hdButtonPlugin.js +0 -21
- package/templating/plugins/hdButtonPlugin.js.map +0 -1
- package/templating/plugins/printButton.d.ts +0 -9
- package/templating/plugins/printButton.js +0 -40
- package/templating/plugins/printButton.js.map +0 -1
- package/templating/templateManager.d.ts +0 -197
- package/templating/templateManager.js +0 -561
- package/templating/templateManager.js.map +0 -1
- package/templating/viewerTemplatePlugin.d.ts +0 -21
- package/templating/viewerTemplatePlugin.js +0 -69
- package/templating/viewerTemplatePlugin.js.map +0 -1
- package/viewer/defaultViewer.d.ts +0 -130
- package/viewer/defaultViewer.js +0 -675
- package/viewer/defaultViewer.js.map +0 -1
- package/viewer/renderOnlyViewer.d.ts +0 -9
- package/viewer/renderOnlyViewer.js +0 -46
- package/viewer/renderOnlyViewer.js.map +0 -1
- package/viewer/viewer.d.ts +0 -258
- package/viewer/viewer.js +0 -783
- package/viewer/viewer.js.map +0 -1
- package/viewer/viewerManager.d.ts +0 -58
- package/viewer/viewerManager.js +0 -91
- package/viewer/viewerManager.js.map +0 -1
- package/viewer/viewerWithTemplate.d.ts +0 -9
- package/viewer/viewerWithTemplate.js +0 -20
- package/viewer/viewerWithTemplate.js.map +0 -1
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Nullable, AssetContainer, IDisposable, AbstractEngine, LoadAssetContainerOptions } from '@babylonjs/core/index.js';
|
|
2
|
+
import { Color4 } from '@babylonjs/core/Maths/math.color.js';
|
|
3
|
+
import { Observable } from '@babylonjs/core/Misc/observable.js';
|
|
4
|
+
import { Scene } from '@babylonjs/core/scene.js';
|
|
5
|
+
import * as lit_html from 'lit-html';
|
|
6
|
+
import * as lit from 'lit';
|
|
7
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
8
|
+
import { EngineOptions } from '@babylonjs/core/Engines.js';
|
|
9
|
+
|
|
10
|
+
declare const defaultViewerOptions: {
|
|
11
|
+
readonly backgroundColor: Color4;
|
|
12
|
+
};
|
|
13
|
+
type ViewerDetails = {
|
|
14
|
+
/**
|
|
15
|
+
* Provides access to the Scene managed by the Viewer.
|
|
16
|
+
*/
|
|
17
|
+
scene: Scene;
|
|
18
|
+
/**
|
|
19
|
+
* Provides access to the currently loaded model.
|
|
20
|
+
*/
|
|
21
|
+
model: Nullable<AssetContainer>;
|
|
22
|
+
};
|
|
23
|
+
type ViewerOptions = Partial<typeof defaultViewerOptions & Readonly<{
|
|
24
|
+
/**
|
|
25
|
+
* Called once when the viewer is initialized and provides viewer details that can be used for advanced customization.
|
|
26
|
+
*/
|
|
27
|
+
onInitialized: (details: Readonly<ViewerDetails>) => void;
|
|
28
|
+
}>>;
|
|
29
|
+
/**
|
|
30
|
+
* Provides an experience for viewing a single 3D model.
|
|
31
|
+
* @remarks
|
|
32
|
+
* The Viewer is not tied to a specific UI framework and can be used with Babylon.js in a browser or with Babylon Native.
|
|
33
|
+
* Includes (or will include) support for common model viewing requirements such as:
|
|
34
|
+
* - Loading different model formats.
|
|
35
|
+
* - Setting up a camera and providing default behaviors like auto orbit and pose interpolation.
|
|
36
|
+
* - Framing the loaded model in the camera's view.
|
|
37
|
+
* - Setting up the environment, lighting, and tone mapping.
|
|
38
|
+
* - Enumerating and playing (or auto playing) animations.
|
|
39
|
+
* - Enumerating and switching between material variants.
|
|
40
|
+
* - Full screen and XR modes.
|
|
41
|
+
*/
|
|
42
|
+
declare class Viewer implements IDisposable {
|
|
43
|
+
private readonly _engine;
|
|
44
|
+
/**
|
|
45
|
+
* Fired when a model is loaded into the viewer.
|
|
46
|
+
*/
|
|
47
|
+
readonly onModelLoaded: Observable<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Fired when an error occurs while loading a model.
|
|
50
|
+
*/
|
|
51
|
+
readonly onModelError: Observable<unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* Fired when the selected animation changes.
|
|
54
|
+
*/
|
|
55
|
+
readonly onSelectedAnimationChanged: Observable<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Fired when the animation speed changes.
|
|
58
|
+
*/
|
|
59
|
+
readonly onAnimationSpeedChanged: Observable<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Fired when the selected animation is playing or paused.
|
|
62
|
+
*/
|
|
63
|
+
readonly onIsAnimationPlayingChanged: Observable<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Fired when the current point on the selected animation timeline changes.
|
|
66
|
+
*/
|
|
67
|
+
readonly onAnimationProgressChanged: Observable<void>;
|
|
68
|
+
private readonly _details;
|
|
69
|
+
private readonly _camera;
|
|
70
|
+
private readonly _autoRotationBehavior;
|
|
71
|
+
private readonly _renderLoopController;
|
|
72
|
+
private _skybox;
|
|
73
|
+
private _isDisposed;
|
|
74
|
+
private readonly _loadModelLock;
|
|
75
|
+
private _loadModelAbortController;
|
|
76
|
+
private readonly _loadEnvironmentLock;
|
|
77
|
+
private _environment;
|
|
78
|
+
private _loadEnvironmentAbortController;
|
|
79
|
+
private _selectedAnimation;
|
|
80
|
+
private _activeAnimationObservers;
|
|
81
|
+
private _animationSpeed;
|
|
82
|
+
constructor(_engine: AbstractEngine, options?: ViewerOptions);
|
|
83
|
+
/**
|
|
84
|
+
* The list of animation names for the currently loaded model.
|
|
85
|
+
*/
|
|
86
|
+
get animations(): readonly string[];
|
|
87
|
+
/**
|
|
88
|
+
* The currently selected animation index.
|
|
89
|
+
*/
|
|
90
|
+
get selectedAnimation(): number;
|
|
91
|
+
set selectedAnimation(value: number);
|
|
92
|
+
/**
|
|
93
|
+
* True if an animation is currently playing.
|
|
94
|
+
*/
|
|
95
|
+
get isAnimationPlaying(): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The speed scale at which animations are played.
|
|
98
|
+
*/
|
|
99
|
+
get animationSpeed(): number;
|
|
100
|
+
set animationSpeed(value: number);
|
|
101
|
+
/**
|
|
102
|
+
* The current point on the selected animation timeline, normalized between 0 and 1.
|
|
103
|
+
*/
|
|
104
|
+
get animationProgress(): number;
|
|
105
|
+
set animationProgress(value: number);
|
|
106
|
+
private get _activeAnimation();
|
|
107
|
+
/**
|
|
108
|
+
* Loads a 3D model from the specified URL.
|
|
109
|
+
* @remarks
|
|
110
|
+
* If a model is already loaded, it will be unloaded before loading the new model.
|
|
111
|
+
* @param source A url or File or ArrayBufferView that points to the model to load.
|
|
112
|
+
* @param options The options to use when loading the model.
|
|
113
|
+
* @param abortSignal An optional signal that can be used to abort the loading process.
|
|
114
|
+
*/
|
|
115
|
+
loadModelAsync(source: string | File | ArrayBufferView, options?: LoadAssetContainerOptions, abortSignal?: AbortSignal): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Loads an environment texture from the specified url and sets up a corresponding skybox.
|
|
118
|
+
* @remarks
|
|
119
|
+
* If no url is provided, a default hemispheric light will be created.
|
|
120
|
+
* If an environment is already loaded, it will be unloaded before loading the new environment.
|
|
121
|
+
* @param url The url of the environment texture to load.
|
|
122
|
+
* @param options The options to use when loading the environment.
|
|
123
|
+
* @param abortSignal An optional signal that can be used to abort the loading process.
|
|
124
|
+
*/
|
|
125
|
+
loadEnvironmentAsync(url: Nullable<string | undefined>, options?: {}, abortSignal?: AbortSignal): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Toggles the play/pause animation state if there is a selected animation.
|
|
128
|
+
*/
|
|
129
|
+
toggleAnimation(): void;
|
|
130
|
+
/**
|
|
131
|
+
* Plays the selected animation if there is one.
|
|
132
|
+
*/
|
|
133
|
+
playAnimation(): void;
|
|
134
|
+
/**
|
|
135
|
+
* Pauses the selected animation if there is one.
|
|
136
|
+
*/
|
|
137
|
+
pauseAnimation(): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Disposes of the resources held by the Viewer.
|
|
140
|
+
*/
|
|
141
|
+
dispose(): void;
|
|
142
|
+
private _updateCamera;
|
|
143
|
+
private _applyAnimationSpeed;
|
|
144
|
+
/**
|
|
145
|
+
* Check for disposed or aborted state (basically everything that can interrupt an async operation).
|
|
146
|
+
* @param abortSignals A set of optional AbortSignals to also check.
|
|
147
|
+
*/
|
|
148
|
+
private _throwIfDisposedOrAborted;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface HTML3DElementEventMap extends HTMLElementEventMap {
|
|
152
|
+
modelchange: Event;
|
|
153
|
+
modelerror: Event;
|
|
154
|
+
selectedanimationchange: Event;
|
|
155
|
+
animationspeedchange: Event;
|
|
156
|
+
animationplayingchange: Event;
|
|
157
|
+
animationprogresschange: Event;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Represents a custom element that displays a 3D model using the Babylon.js Viewer.
|
|
161
|
+
*/
|
|
162
|
+
declare class HTML3DElement extends LitElement {
|
|
163
|
+
/**
|
|
164
|
+
* Gets the underlying Viewer object. It will be undefined when the element is not connected to the DOM.
|
|
165
|
+
*/
|
|
166
|
+
viewer?: Viewer;
|
|
167
|
+
static styles: lit.CSSResult;
|
|
168
|
+
/**
|
|
169
|
+
* The model URL.
|
|
170
|
+
*/
|
|
171
|
+
src: string;
|
|
172
|
+
/**
|
|
173
|
+
* The environment URL.
|
|
174
|
+
*/
|
|
175
|
+
env: string;
|
|
176
|
+
/**
|
|
177
|
+
* The list of animation names for the currently loaded model.
|
|
178
|
+
*/
|
|
179
|
+
get animations(): readonly string[];
|
|
180
|
+
/**
|
|
181
|
+
* The currently selected animation index.
|
|
182
|
+
*/
|
|
183
|
+
get selectedAnimation(): number;
|
|
184
|
+
/**
|
|
185
|
+
* True if an animation is currently playing.
|
|
186
|
+
*/
|
|
187
|
+
get isAnimationPlaying(): boolean;
|
|
188
|
+
/**
|
|
189
|
+
* The speed scale at which animations are played.
|
|
190
|
+
*/
|
|
191
|
+
animationSpeed: number;
|
|
192
|
+
/**
|
|
193
|
+
* The current point on the selected animation timeline, normalized between 0 and 1.
|
|
194
|
+
*/
|
|
195
|
+
animationProgress: number;
|
|
196
|
+
private _animations;
|
|
197
|
+
private _selectedAnimation;
|
|
198
|
+
private _isAnimationPlaying;
|
|
199
|
+
private _canvas;
|
|
200
|
+
/**
|
|
201
|
+
* Toggles the play/pause animation state if there is a selected animation.
|
|
202
|
+
*/
|
|
203
|
+
toggleAnimation(): void;
|
|
204
|
+
connectedCallback(): void;
|
|
205
|
+
firstUpdated(_changedProperties: PropertyValues): void;
|
|
206
|
+
disconnectedCallback(): void;
|
|
207
|
+
update(changedProperties: PropertyValues): void;
|
|
208
|
+
render(): lit_html.TemplateResult<1>;
|
|
209
|
+
addEventListener<K extends keyof HTML3DElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTML3DElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
210
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
211
|
+
private _dispatchCustomEvent;
|
|
212
|
+
private _onSelectedAnimationChanged;
|
|
213
|
+
private _onAnimationSpeedChanged;
|
|
214
|
+
private _onProgressChanged;
|
|
215
|
+
private _onProgressPointerDown;
|
|
216
|
+
private _setupViewer;
|
|
217
|
+
private _tearDownViewer;
|
|
218
|
+
private _updateAnimationSpeed;
|
|
219
|
+
private _updateSelectedAnimation;
|
|
220
|
+
private _updateModel;
|
|
221
|
+
private _updateEnv;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type CanvasViewerOptions = ViewerOptions & ({
|
|
225
|
+
engine: "WebGL";
|
|
226
|
+
} & EngineOptions);
|
|
227
|
+
/**
|
|
228
|
+
* Creates a Viewer instance that is bound to an HTML canvas.
|
|
229
|
+
* @remarks
|
|
230
|
+
* This function can be shared across multiple UI integrations (e.g. Web Components, React, etc.).
|
|
231
|
+
* @param canvas The canvas element to bind the Viewer to.
|
|
232
|
+
* @param options The options to use when creating the Viewer and binding it to the specified canvas.
|
|
233
|
+
* @returns A Viewer instance that is bound to the specified canvas.
|
|
234
|
+
*/
|
|
235
|
+
declare function createViewerForCanvas(canvas: HTMLCanvasElement, options?: CanvasViewerOptions): Viewer;
|
|
236
|
+
|
|
237
|
+
export { HTML3DElement, Viewer, type ViewerDetails, type ViewerOptions, createViewerForCanvas };
|