@inweb/viewer-three 26.6.5 → 26.6.7
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/plugins/components/AxesHelperComponent.js +5 -5
- package/dist/plugins/components/AxesHelperComponent.js.map +1 -1
- package/dist/plugins/components/AxesHelperComponent.min.js +1 -1
- package/dist/plugins/components/AxesHelperComponent.module.js +5 -5
- package/dist/plugins/components/AxesHelperComponent.module.js.map +1 -1
- package/dist/plugins/components/ExtentsHelperComponent.js +15 -7
- package/dist/plugins/components/ExtentsHelperComponent.js.map +1 -1
- package/dist/plugins/components/ExtentsHelperComponent.min.js +1 -1
- package/dist/plugins/components/ExtentsHelperComponent.module.js +15 -7
- package/dist/plugins/components/ExtentsHelperComponent.module.js.map +1 -1
- package/dist/plugins/components/LightHelperComponent.js +5 -5
- package/dist/plugins/components/LightHelperComponent.js.map +1 -1
- package/dist/plugins/components/LightHelperComponent.min.js +1 -1
- package/dist/plugins/components/LightHelperComponent.module.js +5 -5
- package/dist/plugins/components/LightHelperComponent.module.js.map +1 -1
- package/dist/plugins/loaders/GLTFCloudLoader.js +4840 -0
- package/dist/plugins/loaders/GLTFCloudLoader.js.map +1 -0
- package/dist/plugins/loaders/GLTFCloudLoader.min.js +1 -0
- package/dist/plugins/loaders/GLTFCloudLoader.module.js +49 -0
- package/dist/plugins/loaders/GLTFCloudLoader.module.js.map +1 -0
- package/dist/plugins/loaders/IFCXLoader.js +12 -6
- package/dist/plugins/loaders/IFCXLoader.js.map +1 -1
- package/dist/plugins/loaders/IFCXLoader.min.js +1 -1
- package/dist/plugins/loaders/IFCXLoader.module.js +13 -7
- package/dist/plugins/loaders/IFCXLoader.module.js.map +1 -1
- package/dist/viewer-three.js +3131 -459
- package/dist/viewer-three.js.map +1 -1
- package/dist/viewer-three.min.js +2 -2
- package/dist/viewer-three.module.js +2326 -264
- package/dist/viewer-three.module.js.map +1 -1
- package/lib/Viewer/Viewer.d.ts +6 -5
- package/lib/Viewer/components/HighlighterComponent.d.ts +4 -3
- package/lib/Viewer/components/SelectionComponent.d.ts +8 -5
- package/lib/Viewer/draggers/CuttingPlaneDragger.d.ts +1 -1
- package/lib/Viewer/loaders/DynamicGltfLoader/DynamicModelImpl.d.ts +20 -0
- package/lib/Viewer/loaders/GLTFCloudDynamicLoader.d.ts +15 -0
- package/lib/Viewer/model/IModelImpl.d.ts +27 -0
- package/lib/Viewer/model/ModelImpl.d.ts +30 -0
- package/lib/Viewer/model/index.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/package.json +11 -7
- package/plugins/components/AxesHelperComponent.ts +5 -5
- package/plugins/components/ExtentsHelperComponent.ts +15 -7
- package/plugins/components/LightHelperComponent.ts +5 -5
- package/{src/Viewer/loaders/GLTFCloudModelLoader.ts → plugins/loaders/GLTFCloudLoader.ts} +15 -12
- package/plugins/loaders/{IFCXCloudFileLoader.ts → IFCXCloudLoader.ts} +8 -4
- package/plugins/loaders/IFCXFileLoader.ts +7 -3
- package/plugins/loaders/IFCXLoader.ts +2 -2
- package/src/Viewer/Viewer.ts +32 -36
- package/src/Viewer/commands/ClearSelected.ts +2 -3
- package/src/Viewer/commands/Explode.ts +1 -47
- package/src/Viewer/commands/GetModels.ts +1 -1
- package/src/Viewer/commands/GetSelected.ts +3 -1
- package/src/Viewer/commands/HideSelected.ts +3 -4
- package/src/Viewer/commands/IsolateSelected.ts +1 -7
- package/src/Viewer/commands/SelectModel.ts +9 -1
- package/src/Viewer/commands/SetSelected.ts +8 -10
- package/src/Viewer/commands/ShowAll.ts +1 -1
- package/src/Viewer/components/BackgroundComponent.ts +1 -0
- package/src/Viewer/components/ExtentsComponent.ts +5 -3
- package/src/Viewer/components/HighlighterComponent.ts +79 -48
- package/src/Viewer/components/SelectionComponent.ts +67 -21
- package/src/Viewer/draggers/CuttingPlaneDragger.ts +7 -3
- package/src/Viewer/draggers/MeasureLineDragger.ts +2 -0
- package/src/Viewer/loaders/DynamicGltfLoader/DynamicGltfLoader.js +1628 -0
- package/src/Viewer/loaders/DynamicGltfLoader/DynamicModelImpl.ts +102 -0
- package/src/Viewer/loaders/DynamicGltfLoader/GltfStructure.js +450 -0
- package/src/Viewer/loaders/GLTFCloudDynamicLoader.ts +145 -0
- package/src/Viewer/loaders/GLTFFileLoader.ts +7 -2
- package/src/Viewer/loaders/index.ts +2 -2
- package/src/Viewer/model/IModelImpl.ts +67 -0
- package/src/Viewer/model/ModelImpl.ts +215 -0
- package/src/Viewer/model/index.ts +25 -0
- package/src/index.ts +1 -0
- package/lib/Viewer/loaders/GLTFCloudModelLoader.d.ts +0 -8
|
@@ -26,6 +26,7 @@ import { Loader } from "@inweb/viewer-core";
|
|
|
26
26
|
|
|
27
27
|
import { Viewer } from "../Viewer";
|
|
28
28
|
import { GLTFLoadingManager, GLTFLoadParams } from "./GLTFLoadingManager";
|
|
29
|
+
import { ModelImpl } from "../model/ModelImpl";
|
|
29
30
|
|
|
30
31
|
export class GLTFFileLoader extends Loader {
|
|
31
32
|
public viewer: Viewer;
|
|
@@ -59,8 +60,12 @@ export class GLTFFileLoader extends Loader {
|
|
|
59
60
|
const gltf = await loader.loadAsync(manager.fileURL, progress);
|
|
60
61
|
if (!this.viewer.scene) return this;
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
this
|
|
63
|
+
const modelImpl = new ModelImpl(gltf.scene);
|
|
64
|
+
modelImpl.loader = this;
|
|
65
|
+
modelImpl.viewer = this.viewer;
|
|
66
|
+
|
|
67
|
+
this.viewer.scene.add(modelImpl.scene);
|
|
68
|
+
this.viewer.models.push(modelImpl);
|
|
64
69
|
|
|
65
70
|
this.viewer.syncOptions();
|
|
66
71
|
this.viewer.syncOverlay();
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
import { ILoadersRegistry, loadersRegistry } from "@inweb/viewer-core";
|
|
25
25
|
|
|
26
26
|
import { GLTFFileLoader } from "./GLTFFileLoader";
|
|
27
|
-
import {
|
|
27
|
+
import { GLTFCloudDynamicLoader } from "./GLTFCloudDynamicLoader";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Viewer loaders registry. Use this registry to register custom loaders.
|
|
@@ -96,4 +96,4 @@ export const loaders: ILoadersRegistry = loadersRegistry("threejs");
|
|
|
96
96
|
// build-in loaders
|
|
97
97
|
|
|
98
98
|
loaders.registerLoader("gltf-file", (viewer: any) => new GLTFFileLoader(viewer));
|
|
99
|
-
loaders.registerLoader("gltf-cloud
|
|
99
|
+
loaders.registerLoader("gltf-cloud", (viewer: any) => new GLTFCloudDynamicLoader(viewer));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software and its documentation and related materials are owned by
|
|
6
|
+
// the Alliance. The software may only be incorporated into application
|
|
7
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
8
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
9
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
10
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
11
|
+
// protected by copyright law and international treaty provisions. Application
|
|
12
|
+
// programs incorporating this software must include the following statement
|
|
13
|
+
// with their copyright notices:
|
|
14
|
+
//
|
|
15
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16
|
+
// license agreement with Open Design Alliance.
|
|
17
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
18
|
+
// All rights reserved.
|
|
19
|
+
//
|
|
20
|
+
// By use of this software, its documentation or related materials, you
|
|
21
|
+
// acknowledge and accept the above terms.
|
|
22
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
23
|
+
|
|
24
|
+
import { Box3, Object3D } from "three";
|
|
25
|
+
import { ILoader, IViewer } from "@inweb/viewer-core";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Model interface.
|
|
29
|
+
*/
|
|
30
|
+
export interface IModelImpl {
|
|
31
|
+
handle: string;
|
|
32
|
+
scene: Object3D;
|
|
33
|
+
loader: ILoader;
|
|
34
|
+
viewer: IViewer;
|
|
35
|
+
|
|
36
|
+
dispose(): void;
|
|
37
|
+
|
|
38
|
+
getExtents(target: Box3): Box3;
|
|
39
|
+
|
|
40
|
+
getObjects(): Object3D[];
|
|
41
|
+
|
|
42
|
+
getVisibleObjects(): Object3D[];
|
|
43
|
+
|
|
44
|
+
hasObject(objects: Object3D): boolean;
|
|
45
|
+
|
|
46
|
+
getOwnObjects(objects: Object3D | Object3D[]): Object3D[];
|
|
47
|
+
|
|
48
|
+
getObjectsByHandles(handles: string | string[]): Object3D[];
|
|
49
|
+
|
|
50
|
+
getHandlesByObjects(objects: Object3D | Object3D[]): string[];
|
|
51
|
+
|
|
52
|
+
hideObjects(objects: Object3D | Object3D[]): this;
|
|
53
|
+
|
|
54
|
+
hideAllObjects(): this;
|
|
55
|
+
|
|
56
|
+
isolateObjects(objects: Object3D | Object3D[]): this;
|
|
57
|
+
|
|
58
|
+
showObjects(objects: Object3D | Object3D[]): this;
|
|
59
|
+
|
|
60
|
+
showAllObjects(): this;
|
|
61
|
+
|
|
62
|
+
showOriginalObjects(objects: Object3D | Object3D[]): this;
|
|
63
|
+
|
|
64
|
+
hideOriginalObjects(objects: Object3D | Object3D[]): this;
|
|
65
|
+
|
|
66
|
+
explode(scale: number, coeff?: number): this;
|
|
67
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software and its documentation and related materials are owned by
|
|
6
|
+
// the Alliance. The software may only be incorporated into application
|
|
7
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
8
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
9
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
10
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
11
|
+
// protected by copyright law and international treaty provisions. Application
|
|
12
|
+
// programs incorporating this software must include the following statement
|
|
13
|
+
// with their copyright notices:
|
|
14
|
+
//
|
|
15
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16
|
+
// license agreement with Open Design Alliance.
|
|
17
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
18
|
+
// All rights reserved.
|
|
19
|
+
//
|
|
20
|
+
// By use of this software, its documentation or related materials, you
|
|
21
|
+
// acknowledge and accept the above terms.
|
|
22
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
23
|
+
|
|
24
|
+
import { Box3, Object3D, Vector3 } from "three";
|
|
25
|
+
import { ILoader } from "@inweb/viewer-core";
|
|
26
|
+
|
|
27
|
+
import { IModelImpl } from "./IModelImpl";
|
|
28
|
+
import { Viewer } from "../Viewer";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Basic model implementation.
|
|
32
|
+
*/
|
|
33
|
+
export class ModelImpl implements IModelImpl {
|
|
34
|
+
public handle: string;
|
|
35
|
+
public scene: Object3D;
|
|
36
|
+
public loader: ILoader;
|
|
37
|
+
public viewer: Viewer;
|
|
38
|
+
|
|
39
|
+
constructor(scene: Object3D) {
|
|
40
|
+
this.handle = "1";
|
|
41
|
+
this.scene = scene;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
dispose() {
|
|
45
|
+
function disposeMaterial(material: any) {
|
|
46
|
+
// if (material.alphaMap) material.alphaMap.dispose();
|
|
47
|
+
// if (material.anisotropyMap) material.anisotropyMap.dispose();
|
|
48
|
+
// if (material.aoMap) material.aoMap.dispose();
|
|
49
|
+
// if (material.bumpMap) material.bumpMap.dispose();
|
|
50
|
+
// if (material.clearcoatMap) material.clearcoatMap.dispose();
|
|
51
|
+
// if (material.clearcoatNormalMap) material.clearcoatNormalMap.dispose();
|
|
52
|
+
// if (material.clearcoatRoughnessMap) material.clearcoatRoughnessMap.dispose();
|
|
53
|
+
// if (material.displacementMap) material.displacementMap.dispose();
|
|
54
|
+
// if (material.emissiveMap) material.emissiveMap.dispose();
|
|
55
|
+
// if (material.gradientMap) material.gradientMap.dispose();
|
|
56
|
+
// if (material.envMap) material.envMap.dispose();
|
|
57
|
+
// if (material.iridescenceMap) material.iridescenceMap.dispose();
|
|
58
|
+
// if (material.lightMap) material.lightMap.dispose();
|
|
59
|
+
// if (material.map) material.map.dispose();
|
|
60
|
+
// if (material.metalnessMap) material.metalnessMap.dispose();
|
|
61
|
+
// if (material.normalMap) material.normalMap.dispose();
|
|
62
|
+
// if (material.roughnessMap) material.roughnessMap.dispose();
|
|
63
|
+
// if (material.sheenColorMap) material.sheenColorMap.dispose();
|
|
64
|
+
// if (material.sheenRoughnessMap) material.sheenRoughnessMap.dispose();
|
|
65
|
+
// if (material.specularMap) material.specularMap.dispose();
|
|
66
|
+
// if (material.thicknessMap) material.thicknessMap.dispose();
|
|
67
|
+
// if (material.transmissionMap) material.transmissionMap.dispose();
|
|
68
|
+
material.dispose();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function disposeMaterials(material: any) {
|
|
72
|
+
const materials = Array.isArray(material) ? material : [material];
|
|
73
|
+
materials.forEach((material: any) => disposeMaterial(material));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function disposeObject(object: any) {
|
|
77
|
+
if (object.geometry) object.geometry.dispose();
|
|
78
|
+
if (object.material) disposeMaterials(object.material);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
this.scene.traverse(disposeObject);
|
|
82
|
+
this.scene.clear();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
getExtents(target: Box3): Box3 {
|
|
86
|
+
this.scene.traverseVisible((object) => !object.children.length && target.expandByObject(object));
|
|
87
|
+
return target;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
getObjects(): Object3D[] {
|
|
91
|
+
const objects = [];
|
|
92
|
+
this.scene.traverse((object) => objects.push(object));
|
|
93
|
+
return objects;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
getVisibleObjects(): Object3D[] {
|
|
97
|
+
const objects = [];
|
|
98
|
+
this.scene.traverseVisible((object) => objects.push(object));
|
|
99
|
+
return objects;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
hasObject(object: Object3D): boolean {
|
|
103
|
+
while (object) {
|
|
104
|
+
if (object === this.scene) return true;
|
|
105
|
+
object = object.parent;
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
getOwnObjects(objects: Object3D | Object3D[]): Object3D[] {
|
|
111
|
+
if (!Array.isArray(objects)) objects = [objects];
|
|
112
|
+
return objects.filter((object) => this.hasObject(object));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
getObjectsByHandles(handles: string | string[]): Object3D[] {
|
|
116
|
+
const handleSet = new Set(handles);
|
|
117
|
+
const objects = [];
|
|
118
|
+
this.scene.traverse((object) => handleSet.has(object.userData.handle) && objects.push(object));
|
|
119
|
+
return objects;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
getHandlesByObjects(objects: Object3D | Object3D[]): string[] {
|
|
123
|
+
if (!Array.isArray(objects)) objects = [objects];
|
|
124
|
+
const handlesSet = new Set<string>();
|
|
125
|
+
this.getOwnObjects(objects).forEach((object) => handlesSet.add(object.userData.handle));
|
|
126
|
+
return Array.from(handlesSet);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
hideObjects(objects: Object3D | Object3D[]): this {
|
|
130
|
+
if (!Array.isArray(objects)) objects = [objects];
|
|
131
|
+
this.getOwnObjects(objects).forEach((object) => (object.visible = false));
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
hideAllObjects(): this {
|
|
136
|
+
return this.isolateObjects([]);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
isolateObjects(objects: Object3D | Object3D[]): this {
|
|
140
|
+
if (!Array.isArray(objects)) objects = [objects];
|
|
141
|
+
const visibleSet = new Set(objects);
|
|
142
|
+
this.getOwnObjects(objects).forEach((object) => object.traverseAncestors((parent) => visibleSet.add(parent)));
|
|
143
|
+
this.scene.traverse((object) => (object.visible = visibleSet.has(object)));
|
|
144
|
+
return this;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
showObjects(objects: Object3D | Object3D[]): this {
|
|
148
|
+
if (!Array.isArray(objects)) objects = [objects];
|
|
149
|
+
this.getOwnObjects(objects).forEach((object) => {
|
|
150
|
+
object.visible = true;
|
|
151
|
+
object.traverseAncestors((parent) => (parent.visible = true));
|
|
152
|
+
});
|
|
153
|
+
return this;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
showAllObjects(): this {
|
|
157
|
+
this.scene.traverse((object) => (object.visible = true));
|
|
158
|
+
return this;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
showOriginalObjects(objects: Object3D | Object3D[]): this {
|
|
162
|
+
return this;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
hideOriginalObjects(objects: Object3D | Object3D[]): this {
|
|
166
|
+
return this;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
explode(scale = 0, coeff = 4): this {
|
|
170
|
+
function calcExplodeDepth(object: Object3D, depth: number): number {
|
|
171
|
+
let res = depth;
|
|
172
|
+
object.children.forEach((x: Object3D) => {
|
|
173
|
+
const objectDepth = calcExplodeDepth(x, depth + 1);
|
|
174
|
+
if (res < objectDepth) res = objectDepth;
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
object.userData.originalPosition = object.position.clone();
|
|
178
|
+
object.userData.originalCenter = new Box3().setFromObject(object).getCenter(new Vector3());
|
|
179
|
+
object.userData.isExplodeLocked = depth > 2 && object.children.length === 0;
|
|
180
|
+
|
|
181
|
+
return res;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
scale /= 100;
|
|
185
|
+
|
|
186
|
+
if (!this.scene.userData.explodeDepth) this.scene.userData.explodeDepth = calcExplodeDepth(this.scene, 1);
|
|
187
|
+
const maxDepth = this.scene.userData.explodeDepth;
|
|
188
|
+
|
|
189
|
+
const scaledExplodeDepth = scale * maxDepth + 1;
|
|
190
|
+
const explodeDepth = 0 | scaledExplodeDepth;
|
|
191
|
+
const currentSegmentFraction = scaledExplodeDepth - explodeDepth;
|
|
192
|
+
|
|
193
|
+
function explodeObject(object: Object3D, depth: number) {
|
|
194
|
+
object.position.copy(object.userData.originalPosition);
|
|
195
|
+
|
|
196
|
+
if (depth > 0 && depth <= explodeDepth && !object.userData.isExplodeLocked) {
|
|
197
|
+
let objectScale = scale * coeff;
|
|
198
|
+
if (depth === explodeDepth) objectScale *= currentSegmentFraction;
|
|
199
|
+
|
|
200
|
+
const parentCenter = object.parent.userData.originalCenter;
|
|
201
|
+
const objectCenter = object.userData.originalCenter;
|
|
202
|
+
const objectOffset = objectCenter.clone().sub(parentCenter).multiplyScalar(objectScale);
|
|
203
|
+
|
|
204
|
+
object.position.add(objectOffset);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
object.children.forEach((x) => explodeObject(x, depth + 1));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
explodeObject(this.scene, 0);
|
|
211
|
+
this.scene.updateMatrixWorld();
|
|
212
|
+
|
|
213
|
+
return this;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software and its documentation and related materials are owned by
|
|
6
|
+
// the Alliance. The software may only be incorporated into application
|
|
7
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
8
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
9
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
10
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
11
|
+
// protected by copyright law and international treaty provisions. Application
|
|
12
|
+
// programs incorporating this software must include the following statement
|
|
13
|
+
// with their copyright notices:
|
|
14
|
+
//
|
|
15
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
16
|
+
// license agreement with Open Design Alliance.
|
|
17
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
18
|
+
// All rights reserved.
|
|
19
|
+
//
|
|
20
|
+
// By use of this software, its documentation or related materials, you
|
|
21
|
+
// acknowledge and accept the above terms.
|
|
22
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
23
|
+
|
|
24
|
+
export * from "./IModelImpl";
|
|
25
|
+
export * from "./ModelImpl";
|
package/src/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./Viewer/commands";
|
|
|
26
26
|
export * from "./Viewer/components";
|
|
27
27
|
export * from "./Viewer/loaders";
|
|
28
28
|
export * from "./Viewer/loaders/GLTFLoadingManager";
|
|
29
|
+
export * from "./Viewer/model";
|
|
29
30
|
export * from "./Viewer/Viewer";
|
|
30
31
|
|
|
31
32
|
// the lines below are required for typedoc to include the viewer core and markups documentation
|