@inweb/viewer-three 26.2.1 → 26.3.0

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.
@@ -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.
@@ -58136,8 +58083,6 @@ void main() {
58136
58083
  this.viewerRender = () => {
58137
58084
  if (!this.viewer.options.showWCS)
58138
58085
  return;
58139
- if (this.viewer.extents.isEmpty())
58140
- return;
58141
58086
  this.wcsHelper.render(this.viewer.renderer);
58142
58087
  };
58143
58088
  this.wcsHelper = new WCSHelper(viewer.camera);
@@ -58217,16 +58162,16 @@ void main() {
58217
58162
  const components = componentsRegistry("threejs");
58218
58163
  // build-in components
58219
58164
  components.registerComponent("ExtentsComponent", (viewer) => new ExtentsComponent(viewer));
58220
- components.registerComponent("LightComponent", (viewer) => new LightComponent(viewer));
58221
- components.registerComponent("BackgroundComponent", (viewer) => new BackgroundComponent(viewer));
58222
58165
  components.registerComponent("CameraComponent", (viewer) => new CameraComponent(viewer));
58166
+ components.registerComponent("BackgroundComponent", (viewer) => new BackgroundComponent(viewer));
58167
+ // components.registerComponent("LightComponent", (viewer) => new LightComponent(viewer));
58223
58168
  components.registerComponent("ResizeCanvasComponent", (viewer) => new ResizeCanvasComponent(viewer));
58224
58169
  components.registerComponent("RenderLoopComponent", (viewer) => new RenderLoopComponent(viewer));
58225
58170
  components.registerComponent("SelectionComponent", (viewer) => new SelectionComponent(viewer));
58226
58171
  components.registerComponent("WCSHelperComponent", (viewer) => new WCSHelperComponent(viewer));
58227
58172
  // components.registerComponent("AxesHelperComponent", (viewer) => new AxesHelperComponent(viewer));
58228
58173
  // components.registerComponent("ExtentsHelperComponent", (viewer) => new ExtentsHelperComponent(viewer));
58229
- // components.registerComponent("ViewPositionComponent", (viewer) => new ViewPositionComponent(viewer));
58174
+ // components.registerComponent("LightHelperComponent", (viewer) => new LightHelperComponent(viewer));
58230
58175
 
58231
58176
  /**
58232
58177
  * @param {BufferGeometry} geometry