@inweb/viewer-three 26.2.1 → 26.2.2
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/viewer-three.js +3 -56
- package/dist/viewer-three.js.map +1 -1
- package/dist/viewer-three.min.js +2 -2
- package/dist/viewer-three.module.js +2 -21
- package/dist/viewer-three.module.js.map +1 -1
- package/lib/Viewer/components/LightComponent.d.ts +1 -0
- package/lib/Viewer/components/LightHelperComponent.d.ts +9 -0
- package/package.json +5 -5
- package/src/Viewer/components/AxesHelperComponent.ts +15 -12
- package/src/Viewer/components/ExtentsHelperComponent.ts +7 -7
- package/src/Viewer/components/LightComponent.ts +24 -5
- package/src/Viewer/components/LightHelperComponent.ts +69 -0
- package/src/Viewer/components/index.ts +6 -6
package/dist/viewer-three.js
CHANGED
|
@@ -34285,20 +34285,6 @@
|
|
|
34285
34285
|
|
|
34286
34286
|
}
|
|
34287
34287
|
|
|
34288
|
-
class AmbientLight extends Light {
|
|
34289
|
-
|
|
34290
|
-
constructor( color, intensity ) {
|
|
34291
|
-
|
|
34292
|
-
super( color, intensity );
|
|
34293
|
-
|
|
34294
|
-
this.isAmbientLight = true;
|
|
34295
|
-
|
|
34296
|
-
this.type = 'AmbientLight';
|
|
34297
|
-
|
|
34298
|
-
}
|
|
34299
|
-
|
|
34300
|
-
}
|
|
34301
|
-
|
|
34302
34288
|
class LoaderUtils {
|
|
34303
34289
|
|
|
34304
34290
|
static decodeText( array ) { // @deprecated, r165
|
|
@@ -57893,45 +57879,6 @@ void main() {
|
|
|
57893
57879
|
}
|
|
57894
57880
|
}
|
|
57895
57881
|
|
|
57896
|
-
///////////////////////////////////////////////////////////////////////////////
|
|
57897
|
-
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
57898
|
-
// All rights reserved.
|
|
57899
|
-
//
|
|
57900
|
-
// This software and its documentation and related materials are owned by
|
|
57901
|
-
// the Alliance. The software may only be incorporated into application
|
|
57902
|
-
// programs owned by members of the Alliance, subject to a signed
|
|
57903
|
-
// Membership Agreement and Supplemental Software License Agreement with the
|
|
57904
|
-
// Alliance. The structure and organization of this software are the valuable
|
|
57905
|
-
// trade secrets of the Alliance and its suppliers. The software is also
|
|
57906
|
-
// protected by copyright law and international treaty provisions. Application
|
|
57907
|
-
// programs incorporating this software must include the following statement
|
|
57908
|
-
// with their copyright notices:
|
|
57909
|
-
//
|
|
57910
|
-
// This application incorporates Open Design Alliance software pursuant to a
|
|
57911
|
-
// license agreement with Open Design Alliance.
|
|
57912
|
-
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
57913
|
-
// All rights reserved.
|
|
57914
|
-
//
|
|
57915
|
-
// By use of this software, its documentation or related materials, you
|
|
57916
|
-
// acknowledge and accept the above terms.
|
|
57917
|
-
///////////////////////////////////////////////////////////////////////////////
|
|
57918
|
-
class LightComponent {
|
|
57919
|
-
constructor(viewer) {
|
|
57920
|
-
this.viewer = viewer;
|
|
57921
|
-
this.ambientLight = new AmbientLight(0xffffff, 0);
|
|
57922
|
-
this.viewer.camera.add(this.ambientLight);
|
|
57923
|
-
this.directionalLight = new DirectionalLight(0xffffff, 1);
|
|
57924
|
-
this.directionalLight.position.set(0.5, 0, 0.866); // ~60º
|
|
57925
|
-
this.viewer.camera.add(this.directionalLight);
|
|
57926
|
-
}
|
|
57927
|
-
dispose() {
|
|
57928
|
-
this.ambientLight.removeFromParent();
|
|
57929
|
-
this.ambientLight = undefined;
|
|
57930
|
-
this.directionalLight.removeFromParent();
|
|
57931
|
-
this.directionalLight = undefined;
|
|
57932
|
-
}
|
|
57933
|
-
}
|
|
57934
|
-
|
|
57935
57882
|
///////////////////////////////////////////////////////////////////////////////
|
|
57936
57883
|
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
57937
57884
|
// All rights reserved.
|
|
@@ -58217,16 +58164,16 @@ void main() {
|
|
|
58217
58164
|
const components = componentsRegistry("threejs");
|
|
58218
58165
|
// build-in components
|
|
58219
58166
|
components.registerComponent("ExtentsComponent", (viewer) => new ExtentsComponent(viewer));
|
|
58220
|
-
components.registerComponent("LightComponent", (viewer) => new LightComponent(viewer));
|
|
58221
|
-
components.registerComponent("BackgroundComponent", (viewer) => new BackgroundComponent(viewer));
|
|
58222
58167
|
components.registerComponent("CameraComponent", (viewer) => new CameraComponent(viewer));
|
|
58168
|
+
components.registerComponent("BackgroundComponent", (viewer) => new BackgroundComponent(viewer));
|
|
58169
|
+
// components.registerComponent("LightComponent", (viewer) => new LightComponent(viewer));
|
|
58223
58170
|
components.registerComponent("ResizeCanvasComponent", (viewer) => new ResizeCanvasComponent(viewer));
|
|
58224
58171
|
components.registerComponent("RenderLoopComponent", (viewer) => new RenderLoopComponent(viewer));
|
|
58225
58172
|
components.registerComponent("SelectionComponent", (viewer) => new SelectionComponent(viewer));
|
|
58226
58173
|
components.registerComponent("WCSHelperComponent", (viewer) => new WCSHelperComponent(viewer));
|
|
58227
58174
|
// components.registerComponent("AxesHelperComponent", (viewer) => new AxesHelperComponent(viewer));
|
|
58228
58175
|
// components.registerComponent("ExtentsHelperComponent", (viewer) => new ExtentsHelperComponent(viewer));
|
|
58229
|
-
// components.registerComponent("
|
|
58176
|
+
// components.registerComponent("LightHelperComponent", (viewer) => new LightHelperComponent(viewer));
|
|
58230
58177
|
|
|
58231
58178
|
/**
|
|
58232
58179
|
* @param {BufferGeometry} geometry
|