x_ite 9.4.5 → 9.5.1

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.
Files changed (49) hide show
  1. package/README.md +19 -5
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +33 -17
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +25 -25
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +20 -20
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +45 -60
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +40 -39
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +9 -9
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +28 -28
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +25 -27
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +181 -194
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +20 -22
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +19 -21
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +38 -38
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +24 -24
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjection.js +15 -15
  35. package/dist/assets/components/TextureProjection.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +40 -36
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +19 -19
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +363 -15
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/x_ite.css +1 -1
  43. package/dist/x_ite.d.ts +1 -1
  44. package/dist/x_ite.js +2311 -1682
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.min.mjs +1 -1
  47. package/dist/x_ite.mjs +2311 -1682
  48. package/dist/x_ite.zip +0 -0
  49. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.4.5 */(() => { // webpackBootstrap
1
+ /* X_ITE v9.5.1 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,25 +39,25 @@ var __webpack_exports__ = {};
39
39
  // UNUSED EXPORTS: default
40
40
 
41
41
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
42
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.5")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.5")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
48
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.5")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Base/X3DFieldDefinition");
49
49
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
50
50
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
51
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.5")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Base/FieldDefinitionArray");
52
52
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
53
53
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Shape/X3DAppearanceChildNode\")"
54
- const X3DAppearanceChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.5")] .require ("x_ite/Components/Shape/X3DAppearanceChildNode");
54
+ const X3DAppearanceChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Components/Shape/X3DAppearanceChildNode");
55
55
  var X3DAppearanceChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DAppearanceChildNode_namespaceObject);
56
56
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
57
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.5")] .require ("x_ite/Base/X3DConstants");
57
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Base/X3DConstants");
58
58
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
59
59
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
60
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.5")] .require ("x_ite/Namespace");
60
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Namespace");
61
61
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
62
62
  ;// CONCATENATED MODULE: ./src/x_ite/Components/X_ITE/BlendMode.js
63
63
  /*******************************************************************************
@@ -328,6 +328,8 @@ function DepthMode (executionContext)
328
328
  X3DAppearanceChildNode_default().call (this, executionContext);
329
329
 
330
330
  this .addType ((X3DConstants_default()).DepthMode);
331
+
332
+ this .addAlias ("depthFunc", this ._depthFunction);
331
333
  }
332
334
 
333
335
  Object .assign (Object .setPrototypeOf (DepthMode .prototype, (X3DAppearanceChildNode_default()).prototype),
@@ -336,13 +338,13 @@ Object .assign (Object .setPrototypeOf (DepthMode .prototype, (X3DAppearanceChil
336
338
  {
337
339
  X3DAppearanceChildNode_default().prototype .initialize .call (this);
338
340
 
339
- this ._depthFunc .addInterest ("set_depthFunc__", this);
341
+ this ._depthFunction .addInterest ("set_depthFunction__", this);
340
342
 
341
- this .set_depthFunc__ ();
343
+ this .set_depthFunction__ ();
342
344
  },
343
- set_depthFunc__: (function ()
345
+ set_depthFunction__: (function ()
344
346
  {
345
- const depthFuncs = new Map ([
347
+ const depthFunctions = new Map ([
346
348
  ["NEVER", "NEVER"],
347
349
  ["LESS", "LESS"],
348
350
  ["EQUAL", "EQUAL"],
@@ -357,7 +359,7 @@ Object .assign (Object .setPrototypeOf (DepthMode .prototype, (X3DAppearanceChil
357
359
  {
358
360
  const gl = this .getBrowser () .getContext ();
359
361
 
360
- this .depthFunc = gl [depthFuncs .get (this ._depthFunc .getValue ()) ?? "LEQUAL"];
362
+ this .depthFunction = gl [depthFunctions .get (this ._depthFunction .getValue ()) ?? "LEQUAL"];
361
363
  };
362
364
  })(),
363
365
  enable (gl)
@@ -373,7 +375,7 @@ Object .assign (Object .setPrototypeOf (DepthMode .prototype, (X3DAppearanceChil
373
375
  else
374
376
  gl .disable (gl .DEPTH_TEST);
375
377
 
376
- gl .depthFunc (this .depthFunc);
378
+ gl .depthFunc (this .depthFunction);
377
379
  gl .depthRange (... this ._depthRange .getValue ());
378
380
  gl .depthMask (this ._depthMask .getValue ());
379
381
  },
@@ -421,7 +423,7 @@ Object .defineProperties (DepthMode,
421
423
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "polygonOffset", new (Fields_default()).SFVec2f ()),
422
424
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "depthRange", new (Fields_default()).SFVec2f (0, 1)),
423
425
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "depthTest", new (Fields_default()).SFBool (true)),
424
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "depthFunc", new (Fields_default()).SFString ("LESS_EQUAL")),
426
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "depthFunction", new (Fields_default()).SFString ("LESS_EQUAL")),
425
427
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "depthMask", new (Fields_default()).SFBool (true)),
426
428
  ]),
427
429
  enumerable: true,
@@ -433,6 +435,350 @@ const DepthMode_default_ = DepthMode;
433
435
 
434
436
  Namespace_default().add ("DepthMode", "x_ite/Components/X_ITE/DepthMode", DepthMode_default_);
435
437
  /* harmony default export */ const X_ITE_DepthMode = (DepthMode_default_);
438
+ ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Shape/X3DShapeNode\")"
439
+ const X3DShapeNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Components/Shape/X3DShapeNode");
440
+ var X3DShapeNode_default = /*#__PURE__*/__webpack_require__.n(X3DShapeNode_namespaceObject);
441
+ ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
442
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Rendering/TraverseType");
443
+ var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
444
+ ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/VertexArray\")"
445
+ const VertexArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("x_ite/Rendering/VertexArray");
446
+ var VertexArray_default = /*#__PURE__*/__webpack_require__.n(VertexArray_namespaceObject);
447
+ ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
448
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("standard/Math/Numbers/Vector3");
449
+ var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
450
+ ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
451
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("standard/Math/Numbers/Matrix4");
452
+ var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
453
+ ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
454
+ const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.5.1")] .require ("standard/Math/Geometry/Box3");
455
+ var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
456
+ ;// CONCATENATED MODULE: ./src/x_ite/Components/X_ITE/InstancedShape.js
457
+ /*******************************************************************************
458
+ *
459
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
460
+ *
461
+ * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
462
+ *
463
+ * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
464
+ *
465
+ * The copyright notice above does not evidence any actual of intended
466
+ * publication of such source code, and is an unpublished work by create3000.
467
+ * This material contains CONFIDENTIAL INFORMATION that is the property of
468
+ * create3000.
469
+ *
470
+ * No permission is granted to copy, distribute, or create derivative works from
471
+ * the contents of this software, in whole or in part, without the prior written
472
+ * permission of create3000.
473
+ *
474
+ * NON-MILITARY USE ONLY
475
+ *
476
+ * All create3000 software are effectively free software with a non-military use
477
+ * restriction. It is free. Well commented source is provided. You may reuse the
478
+ * source in any way you please with the exception anything that uses it must be
479
+ * marked to indicate is contains 'non-military use only' components.
480
+ *
481
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
482
+ *
483
+ * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
484
+ *
485
+ * This file is part of the X_ITE Project.
486
+ *
487
+ * X_ITE is free software: you can redistribute it and/or modify it under the
488
+ * terms of the GNU General Public License version 3 only, as published by the
489
+ * Free Software Foundation.
490
+ *
491
+ * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
492
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
493
+ * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
494
+ * details (a copy is included in the LICENSE file that accompanied this code).
495
+ *
496
+ * You should have received a copy of the GNU General Public License version 3
497
+ * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
498
+ * copy of the GPLv3 License.
499
+ *
500
+ * For Silvio, Joy and Adi.
501
+ *
502
+ ******************************************************************************/
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+ function InstancedShape (executionContext)
516
+ {
517
+ X3DShapeNode_default().call (this, executionContext);
518
+
519
+ this .addType ((X3DConstants_default()).InstancedShape);
520
+
521
+ this .addChildObjects ((X3DConstants_default()).outputOnly, "matrices", new (Fields_default()).SFTime ());
522
+
523
+ this .min = new (Vector3_default()) ();
524
+ this .max = new (Vector3_default()) ();
525
+ this .scale = new (Vector3_default()) (1, 1, 1);
526
+
527
+ this .numInstances = 0;
528
+ this .instancesStride = Float32Array .BYTES_PER_ELEMENT * (16 + 9); // mat4 + mat3
529
+ this .matrixOffset = 0;
530
+ this .normalMatrixOffset = Float32Array .BYTES_PER_ELEMENT * 16;
531
+ }
532
+
533
+ Object .assign (Object .setPrototypeOf (InstancedShape .prototype, (X3DShapeNode_default()).prototype),
534
+ {
535
+ initialize ()
536
+ {
537
+ X3DShapeNode_default().prototype .initialize .call (this);
538
+
539
+ const
540
+ browser = this .getBrowser (),
541
+ gl = browser .getContext ();
542
+
543
+ // Check version.
544
+
545
+ if (browser .getContext () .getVersion () < 2)
546
+ return;
547
+
548
+ this .instances = Object .assign (gl .createBuffer (),
549
+ {
550
+ vertexArrayObject: new (VertexArray_default()) (gl),
551
+ thickLinesVertexArrayObject: new (VertexArray_default()) (gl),
552
+ lineTrianglesBuffer: gl .createBuffer (),
553
+ numLines: 0,
554
+ });
555
+
556
+ this ._translations .addInterest ("set_transform__", this);
557
+ this ._rotations .addInterest ("set_transform__", this);
558
+ this ._scales .addInterest ("set_transform__", this);
559
+ this ._matrices .addInterest ("set_matrices__", this);
560
+
561
+ this .set_transform__ ();
562
+ },
563
+ getShapeKey ()
564
+ {
565
+ return 3;
566
+ },
567
+ getNumInstances ()
568
+ {
569
+ return this .numInstances;
570
+ },
571
+ getInstances ()
572
+ {
573
+ return this .instances;
574
+ },
575
+ set_bbox__: (function ()
576
+ {
577
+ const
578
+ min = new (Vector3_default()) (),
579
+ max = new (Vector3_default()) (),
580
+ bbox = new (Box3_default()) ();
581
+
582
+ return function ()
583
+ {
584
+ if (this .numInstances)
585
+ {
586
+ if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
587
+ {
588
+ if (this .getGeometry ())
589
+ bbox .assign (this .getGeometry () .getBBox ());
590
+ else
591
+ bbox .set ();
592
+
593
+ const
594
+ size1_2 = bbox .size .multiply (this .scale .magnitude () / 2),
595
+ center = bbox .center;
596
+
597
+ min .assign (this .min) .add (center) .subtract (size1_2);
598
+ max .assign (this .max) .add (center) .add (size1_2);
599
+
600
+ this .bbox .setExtents (min, max);
601
+ }
602
+ else
603
+ {
604
+ this .bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
605
+ }
606
+ }
607
+ else
608
+ {
609
+ this .bbox .set ();
610
+ }
611
+
612
+ this .getBBoxSize () .assign (this .bbox .size);
613
+ this .getBBoxCenter () .assign (this .bbox .center);
614
+ };
615
+ })(),
616
+ set_transform__ ()
617
+ {
618
+ this ._matrices = this .getBrowser () .getCurrentTime ();
619
+ },
620
+ set_matrices__ ()
621
+ {
622
+ const
623
+ browser = this .getBrowser (),
624
+ gl = browser .getContext (),
625
+ translations = this ._translations,
626
+ rotations = this ._rotations,
627
+ scales = this ._scales,
628
+ numTranslations = translations .length,
629
+ numRotations = rotations .length,
630
+ numScales = scales .length,
631
+ numInstances = Math .max (numTranslations, numRotations, numScales),
632
+ stride = this .instancesStride / Float32Array .BYTES_PER_ELEMENT,
633
+ length = this .instancesStride * numInstances,
634
+ data = new Float32Array (length),
635
+ matrix = new (Matrix4_default()) ();
636
+
637
+ this .numInstances = numInstances;
638
+
639
+ const
640
+ min = this .min .set (Number .POSITIVE_INFINITY, Number .POSITIVE_INFINITY, Number .POSITIVE_INFINITY),
641
+ max = this .max .set (Number .NEGATIVE_INFINITY, Number .NEGATIVE_INFINITY, Number .NEGATIVE_INFINITY),
642
+ scale = this .scale .assign (numScales ? max : (Vector3_default()).One);
643
+
644
+ for (let i = 0, o = 0; i < numInstances; ++ i, o += stride)
645
+ {
646
+ matrix .set (numTranslations ? translations [Math .min (i, numTranslations - 1)] .getValue () : null,
647
+ numRotations ? rotations [Math .min (i, numRotations - 1)] .getValue () : null,
648
+ numScales ? scales [Math .min (i, numScales - 1)] .getValue () : null);
649
+
650
+ if (numScales)
651
+ scale .max (scales [Math .min (i, numScales - 1)] .getValue ());
652
+
653
+ data .set (matrix, o);
654
+ data .set (matrix .submatrix .transpose () .inverse (), o + 16);
655
+
656
+ min .min (matrix .origin);
657
+ max .max (matrix .origin);
658
+ }
659
+
660
+ gl .bindBuffer (gl .ARRAY_BUFFER, this .instances);
661
+ gl .bufferData (gl .ARRAY_BUFFER, data, gl .DYNAMIC_DRAW);
662
+
663
+ this .set_bbox__ ();
664
+ },
665
+ set_geometry__ ()
666
+ {
667
+ X3DShapeNode_default().prototype .set_geometry__ .call (this);
668
+
669
+ if (this .getGeometry ())
670
+ delete this .traverse;
671
+ else
672
+ this .traverse = Function .prototype;
673
+
674
+ this .set_transform__ ();
675
+ },
676
+ intersectsBox (box, clipPlanes, modelViewMatrix)
677
+ { },
678
+ traverse (type, renderObject)
679
+ {
680
+ if (!this .numInstances)
681
+ return;
682
+
683
+ // Always look at ParticleSystem if you do modify something here and there.
684
+
685
+ switch (type)
686
+ {
687
+ case (TraverseType_default()).POINTER:
688
+ {
689
+ if (this ._pointerEvents .getValue ())
690
+ renderObject .addPointingShape (this);
691
+
692
+ break;
693
+ }
694
+ case (TraverseType_default()).PICKING:
695
+ {
696
+ break;
697
+ }
698
+ case (TraverseType_default()).COLLISION:
699
+ {
700
+ renderObject .addCollisionShape (this);
701
+ break;
702
+ }
703
+ case (TraverseType_default()).SHADOW:
704
+ {
705
+ if (this ._castShadow .getValue ())
706
+ renderObject .addShadowShape (this);
707
+
708
+ break;
709
+ }
710
+ case (TraverseType_default()).DISPLAY:
711
+ {
712
+ if (renderObject .addDisplayShape (this))
713
+ {
714
+ // Currently used for GeneratedCubeMapTexture.
715
+ this .getAppearance () .traverse (type, renderObject);
716
+ }
717
+
718
+ break;
719
+ }
720
+ }
721
+
722
+ // Currently used for ScreenText and Tools.
723
+ this .getGeometry () .traverse (type, renderObject);
724
+ },
725
+ displaySimple (gl, renderContext, shaderNode)
726
+ {
727
+ this .getGeometry () .displaySimpleInstanced (gl, shaderNode, this);
728
+ },
729
+ display (gl, renderContext)
730
+ {
731
+ this .getGeometry () .displayInstanced (gl, renderContext, this);
732
+ },
733
+ });
734
+
735
+ Object .defineProperties (InstancedShape,
736
+ {
737
+ typeName:
738
+ {
739
+ value: "InstancedShape",
740
+ enumerable: true,
741
+ },
742
+ componentInfo:
743
+ {
744
+ value: Object .freeze ({ name: "X_ITE", level: 1 }),
745
+ enumerable: true,
746
+ },
747
+ containerField:
748
+ {
749
+ value: "children",
750
+ enumerable: true,
751
+ },
752
+ specificationRange:
753
+ {
754
+ value: Object .freeze ({ from: "2.0", to: "Infinity" }),
755
+ enumerable: true,
756
+ },
757
+ fieldDefinitions:
758
+ {
759
+ value: new (FieldDefinitionArray_default()) ([
760
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
761
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "translations", new (Fields_default()).MFVec3f ()),
762
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "rotations", new (Fields_default()).MFRotation ()),
763
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "scales", new (Fields_default()).MFVec3f ()),
764
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pointerEvents", new (Fields_default()).SFBool (true)),
765
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "castShadow", new (Fields_default()).SFBool (true)),
766
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
767
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
768
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
769
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
770
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "appearance", new (Fields_default()).SFNode ()),
771
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "geometry", new (Fields_default()).SFNode ()),
772
+ ]),
773
+ enumerable: true,
774
+ },
775
+ });
776
+
777
+ const InstancedShape_default_ = InstancedShape;
778
+ ;
779
+
780
+ Namespace_default().add ("InstancedShape", "x_ite/Components/X_ITE/InstancedShape", InstancedShape_default_);
781
+ /* harmony default export */ const X_ITE_InstancedShape = (InstancedShape_default_);
436
782
  ;// CONCATENATED MODULE: ./src/assets/components/X_ITE.js
437
783
  /*******************************************************************************
438
784
  *
@@ -485,12 +831,14 @@ Namespace_default().add ("DepthMode", "x_ite/Components/X_ITE/DepthMode", DepthM
485
831
 
486
832
 
487
833
 
834
+
488
835
  Components_default().add ({
489
836
  name: "X_ITE",
490
837
  concreteNodes:
491
838
  [
492
839
  X_ITE_BlendMode,
493
840
  X_ITE_DepthMode,
841
+ X_ITE_InstancedShape,
494
842
  ],
495
843
  abstractNodes:
496
844
  [
@@ -1 +1 @@
1
- /* X_ITE v9.4.5 */(()=>{"use strict";var t={n:e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},d:(e,o)=>{for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-9.4.5")].require("x_ite/Components");var o=t.n(e);const i=window[Symbol.for("X_ITE.X3D-9.4.5")].require("x_ite/Fields");var s=t.n(i);const a=window[Symbol.for("X_ITE.X3D-9.4.5")].require("x_ite/Base/X3DFieldDefinition");var n=t.n(a);const r=window[Symbol.for("X_ITE.X3D-9.4.5")].require("x_ite/Base/FieldDefinitionArray");var _=t.n(r);const p=window[Symbol.for("X_ITE.X3D-9.4.5")].require("x_ite/Components/Shape/X3DAppearanceChildNode");var h=t.n(p);const c=window[Symbol.for("X_ITE.X3D-9.4.5")].require("x_ite/Base/X3DConstants");var l=t.n(c);const u=window[Symbol.for("X_ITE.X3D-9.4.5")].require("x_ite/Namespace");var T=t.n(u);function d(t){h().call(this,t),this.addType(l().BlendMode),this.factorTypes=new Map,this.equationTypes=new Map}Object.assign(Object.setPrototypeOf(d.prototype,h().prototype),{initialize(){h().prototype.initialize.call(this);const t=this.getBrowser().getContext(),e=t.getExtension("EXT_blend_minmax");this.factorTypes.set("ZERO",t.ZERO),this.factorTypes.set("ONE",t.ONE),this.factorTypes.set("SRC_COLOR",t.SRC_COLOR),this.factorTypes.set("ONE_MINUS_SRC_COLOR",t.ONE_MINUS_SRC_COLOR),this.factorTypes.set("DST_COLOR",t.DST_COLOR),this.factorTypes.set("ONE_MINUS_DST_COLOR",t.ONE_MINUS_DST_COLOR),this.factorTypes.set("SRC_ALPHA",t.SRC_ALPHA),this.factorTypes.set("ONE_MINUS_SRC_ALPHA",t.ONE_MINUS_SRC_ALPHA),this.factorTypes.set("DST_ALPHA",t.DST_ALPHA),this.factorTypes.set("ONE_MINUS_DST_ALPHA",t.ONE_MINUS_DST_ALPHA),this.factorTypes.set("SRC_ALPHA_SATURATE",t.SRC_ALPHA_SATURATE),this.factorTypes.set("CONSTANT_COLOR",t.CONSTANT_COLOR),this.factorTypes.set("ONE_MINUS_CONSTANT_COLOR",t.ONE_MINUS_CONSTANT_COLOR),this.factorTypes.set("CONSTANT_ALPHA",t.CONSTANT_ALPHA),this.factorTypes.set("ONE_MINUS_CONSTANT_ALPHA",t.ONE_MINUS_CONSTANT_ALPHA),this.equationTypes.set("FUNC_ADD",t.FUNC_ADD),this.equationTypes.set("FUNC_SUBTRACT",t.FUNC_SUBTRACT),this.equationTypes.set("FUNC_REVERSE_SUBTRACT",t.FUNC_REVERSE_SUBTRACT),this.equationTypes.set("MIN",t.MIN||e&&e.MIN_EXT),this.equationTypes.set("MAX",t.MAX||e&&e.MAX_EXT),this._sourceColorFactor.addInterest("set_sourceColorFactor__",this),this._sourceAlphaFactor.addInterest("set_sourceAlphaFactor__",this),this._destinationColorFactor.addInterest("set_destinationColorFactor__",this),this._destinationAlphaFactor.addInterest("set_destinationAlphaFactor__",this),this._colorEquation.addInterest("set_colorEquation__",this),this._alphaEquation.addInterest("set_alphaEquation__",this),this.set_sourceColorFactor__(),this.set_sourceAlphaFactor__(),this.set_destinationColorFactor__(),this.set_destinationAlphaFactor__(),this.set_colorEquation__(),this.set_alphaEquation__()},set_sourceColorFactor__(){this.sourceColorFactorType=this.factorTypes.get(this._sourceColorFactor.getValue()),void 0===this.sourceColorFactorType&&(this.sourceColorFactorType=this.factorTypes.get("SRC_ALPHA"))},set_sourceAlphaFactor__(){this.sourceAlphaFactorType=this.factorTypes.get(this._sourceAlphaFactor.getValue()),void 0===this.sourceAlphaFactorType&&(this.sourceAlphaFactorType=this.factorTypes.get("ONE"))},set_destinationColorFactor__(){this.destinationColorFactorType=this.factorTypes.get(this._destinationColorFactor.getValue()),void 0===this.destinationColorFactorType&&(this.destinationColorFactorType=this.factorTypes.get("ONE_MINUS_SRC_ALPHA"))},set_destinationAlphaFactor__(){this.destinationAlphaFactorType=this.factorTypes.get(this._destinationAlphaFactor.getValue()),void 0===this.destinationAlphaFactorType&&(this.destinationAlphaFactorType=this.factorTypes.get("ONE_MINUS_SRC_ALPHA"))},set_colorEquation__(){this.colorEquationType=this.equationTypes.get(this._colorEquation.getValue()),void 0===this.colorEquationType&&(this.colorEquationType=this.equationTypes.get("FUNC_ADD"))},set_alphaEquation__(){this.alphaEquationType=this.equationTypes.get(this._alphaEquation.getValue()),void 0===this.alphaEquationType&&(this.alphaEquationType=this.equationTypes.get("FUNC_ADD"))},enable(t){const e=this._blendColor.getValue();t.blendColor(e.r,e.g,e.b,e.a),t.blendFuncSeparate(this.sourceColorFactorType,this.destinationColorFactorType,this.sourceAlphaFactorType,this.destinationAlphaFactorType),t.blendEquationSeparate(this.colorEquationType,this.alphaEquationType)},disable(t){t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA),t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD)}}),Object.defineProperties(d,{typeName:{value:"BlendMode",enumerable:!0},componentInfo:{value:Object.freeze({name:"X_ITE",level:1}),enumerable:!0},containerField:{value:"blendMode",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.3",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(n())(l().inputOutput,"metadata",new(s().SFNode)),new(n())(l().inputOutput,"blendColor",new(s().SFColorRGBA)),new(n())(l().inputOutput,"sourceColorFactor",new(s().SFString)("SRC_ALPHA")),new(n())(l().inputOutput,"sourceAlphaFactor",new(s().SFString)("ONE")),new(n())(l().inputOutput,"destinationColorFactor",new(s().SFString)("ONE_MINUS_SRC_ALPHA")),new(n())(l().inputOutput,"destinationAlphaFactor",new(s().SFString)("ONE_MINUS_SRC_ALPHA")),new(n())(l().inputOutput,"colorEquation",new(s().SFString)("FUNC_ADD")),new(n())(l().inputOutput,"alphaEquation",new(s().SFString)("FUNC_ADD"))]),enumerable:!0}});const A=d;T().add("BlendMode","x_ite/Components/X_ITE/BlendMode",A);const E=A;function S(t){h().call(this,t),this.addType(l().DepthMode)}Object.assign(Object.setPrototypeOf(S.prototype,h().prototype),{initialize(){h().prototype.initialize.call(this),this._depthFunc.addInterest("set_depthFunc__",this),this.set_depthFunc__()},set_depthFunc__:function(){const t=new Map([["NEVER","NEVER"],["LESS","LESS"],["EQUAL","EQUAL"],["LESS_EQUAL","LEQUAL"],["GREATER","GREATER"],["NOT_EQUAL","NOTEQUAL"],["GREATER_EQUAL","GEQUAL"],["ALWAYS","ALWAYS"]]);return function(){const e=this.getBrowser().getContext();this.depthFunc=e[t.get(this._depthFunc.getValue())??"LEQUAL"]}}(),enable(t){this.depthTest=t.isEnabled(t.DEPTH_TEST),this.depthWriteMask=t.getParameter(t.DEPTH_WRITEMASK),t.enable(t.POLYGON_OFFSET_FILL),t.polygonOffset(...this._polygonOffset),this._depthTest.getValue()?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),t.depthFunc(this.depthFunc),t.depthRange(...this._depthRange.getValue()),t.depthMask(this._depthMask.getValue())},disable(t){t.disable(t.POLYGON_OFFSET_FILL),this.depthTest?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL),t.depthRange(0,1),t.depthMask(this.depthWriteMask)}}),Object.defineProperties(S,{typeName:{value:"DepthMode",enumerable:!0},componentInfo:{value:Object.freeze({name:"X_ITE",level:1}),enumerable:!0},containerField:{value:"depthMode",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(n())(l().inputOutput,"metadata",new(s().SFNode)),new(n())(l().inputOutput,"polygonOffset",new(s().SFVec2f)),new(n())(l().inputOutput,"depthRange",new(s().SFVec2f)(0,1)),new(n())(l().inputOutput,"depthTest",new(s().SFBool)(!0)),new(n())(l().inputOutput,"depthFunc",new(s().SFString)("LESS_EQUAL")),new(n())(l().inputOutput,"depthMask",new(s().SFBool)(!0))]),enumerable:!0}});const O=S;T().add("DepthMode","x_ite/Components/X_ITE/DepthMode",O);const F=O;o().add({name:"X_ITE",concreteNodes:[E,F],abstractNodes:[]});const C=void 0;T().add("X_ITE","assets/components/X_ITE",C)})();
1
+ /* X_ITE v9.5.1 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Components");var s=e.n(t);const i=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Fields");var n=e.n(i);const o=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Base/X3DFieldDefinition");var a=e.n(o);const r=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Base/FieldDefinitionArray");var _=e.n(r);const h=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Components/Shape/X3DAppearanceChildNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Base/X3DConstants");var u=e.n(l);const c=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Namespace");var d=e.n(c);function T(e){p().call(this,e),this.addType(u().BlendMode),this.factorTypes=new Map,this.equationTypes=new Map}Object.assign(Object.setPrototypeOf(T.prototype,p().prototype),{initialize(){p().prototype.initialize.call(this);const e=this.getBrowser().getContext(),t=e.getExtension("EXT_blend_minmax");this.factorTypes.set("ZERO",e.ZERO),this.factorTypes.set("ONE",e.ONE),this.factorTypes.set("SRC_COLOR",e.SRC_COLOR),this.factorTypes.set("ONE_MINUS_SRC_COLOR",e.ONE_MINUS_SRC_COLOR),this.factorTypes.set("DST_COLOR",e.DST_COLOR),this.factorTypes.set("ONE_MINUS_DST_COLOR",e.ONE_MINUS_DST_COLOR),this.factorTypes.set("SRC_ALPHA",e.SRC_ALPHA),this.factorTypes.set("ONE_MINUS_SRC_ALPHA",e.ONE_MINUS_SRC_ALPHA),this.factorTypes.set("DST_ALPHA",e.DST_ALPHA),this.factorTypes.set("ONE_MINUS_DST_ALPHA",e.ONE_MINUS_DST_ALPHA),this.factorTypes.set("SRC_ALPHA_SATURATE",e.SRC_ALPHA_SATURATE),this.factorTypes.set("CONSTANT_COLOR",e.CONSTANT_COLOR),this.factorTypes.set("ONE_MINUS_CONSTANT_COLOR",e.ONE_MINUS_CONSTANT_COLOR),this.factorTypes.set("CONSTANT_ALPHA",e.CONSTANT_ALPHA),this.factorTypes.set("ONE_MINUS_CONSTANT_ALPHA",e.ONE_MINUS_CONSTANT_ALPHA),this.equationTypes.set("FUNC_ADD",e.FUNC_ADD),this.equationTypes.set("FUNC_SUBTRACT",e.FUNC_SUBTRACT),this.equationTypes.set("FUNC_REVERSE_SUBTRACT",e.FUNC_REVERSE_SUBTRACT),this.equationTypes.set("MIN",e.MIN||t&&t.MIN_EXT),this.equationTypes.set("MAX",e.MAX||t&&t.MAX_EXT),this._sourceColorFactor.addInterest("set_sourceColorFactor__",this),this._sourceAlphaFactor.addInterest("set_sourceAlphaFactor__",this),this._destinationColorFactor.addInterest("set_destinationColorFactor__",this),this._destinationAlphaFactor.addInterest("set_destinationAlphaFactor__",this),this._colorEquation.addInterest("set_colorEquation__",this),this._alphaEquation.addInterest("set_alphaEquation__",this),this.set_sourceColorFactor__(),this.set_sourceAlphaFactor__(),this.set_destinationColorFactor__(),this.set_destinationAlphaFactor__(),this.set_colorEquation__(),this.set_alphaEquation__()},set_sourceColorFactor__(){this.sourceColorFactorType=this.factorTypes.get(this._sourceColorFactor.getValue()),void 0===this.sourceColorFactorType&&(this.sourceColorFactorType=this.factorTypes.get("SRC_ALPHA"))},set_sourceAlphaFactor__(){this.sourceAlphaFactorType=this.factorTypes.get(this._sourceAlphaFactor.getValue()),void 0===this.sourceAlphaFactorType&&(this.sourceAlphaFactorType=this.factorTypes.get("ONE"))},set_destinationColorFactor__(){this.destinationColorFactorType=this.factorTypes.get(this._destinationColorFactor.getValue()),void 0===this.destinationColorFactorType&&(this.destinationColorFactorType=this.factorTypes.get("ONE_MINUS_SRC_ALPHA"))},set_destinationAlphaFactor__(){this.destinationAlphaFactorType=this.factorTypes.get(this._destinationAlphaFactor.getValue()),void 0===this.destinationAlphaFactorType&&(this.destinationAlphaFactorType=this.factorTypes.get("ONE_MINUS_SRC_ALPHA"))},set_colorEquation__(){this.colorEquationType=this.equationTypes.get(this._colorEquation.getValue()),void 0===this.colorEquationType&&(this.colorEquationType=this.equationTypes.get("FUNC_ADD"))},set_alphaEquation__(){this.alphaEquationType=this.equationTypes.get(this._alphaEquation.getValue()),void 0===this.alphaEquationType&&(this.alphaEquationType=this.equationTypes.get("FUNC_ADD"))},enable(e){const t=this._blendColor.getValue();e.blendColor(t.r,t.g,t.b,t.a),e.blendFuncSeparate(this.sourceColorFactorType,this.destinationColorFactorType,this.sourceAlphaFactorType,this.destinationAlphaFactorType),e.blendEquationSeparate(this.colorEquationType,this.alphaEquationType)},disable(e){e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA),e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD)}}),Object.defineProperties(T,{typeName:{value:"BlendMode",enumerable:!0},componentInfo:{value:Object.freeze({name:"X_ITE",level:1}),enumerable:!0},containerField:{value:"blendMode",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.3",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(a())(u().inputOutput,"metadata",new(n().SFNode)),new(a())(u().inputOutput,"blendColor",new(n().SFColorRGBA)),new(a())(u().inputOutput,"sourceColorFactor",new(n().SFString)("SRC_ALPHA")),new(a())(u().inputOutput,"sourceAlphaFactor",new(n().SFString)("ONE")),new(a())(u().inputOutput,"destinationColorFactor",new(n().SFString)("ONE_MINUS_SRC_ALPHA")),new(a())(u().inputOutput,"destinationAlphaFactor",new(n().SFString)("ONE_MINUS_SRC_ALPHA")),new(a())(u().inputOutput,"colorEquation",new(n().SFString)("FUNC_ADD")),new(a())(u().inputOutput,"alphaEquation",new(n().SFString)("FUNC_ADD"))]),enumerable:!0}});const S=T;d().add("BlendMode","x_ite/Components/X_ITE/BlendMode",S);const E=S;function A(e){p().call(this,e),this.addType(u().DepthMode),this.addAlias("depthFunc",this._depthFunction)}Object.assign(Object.setPrototypeOf(A.prototype,p().prototype),{initialize(){p().prototype.initialize.call(this),this._depthFunction.addInterest("set_depthFunction__",this),this.set_depthFunction__()},set_depthFunction__:function(){const e=new Map([["NEVER","NEVER"],["LESS","LESS"],["EQUAL","EQUAL"],["LESS_EQUAL","LEQUAL"],["GREATER","GREATER"],["NOT_EQUAL","NOTEQUAL"],["GREATER_EQUAL","GEQUAL"],["ALWAYS","ALWAYS"]]);return function(){const t=this.getBrowser().getContext();this.depthFunction=t[e.get(this._depthFunction.getValue())??"LEQUAL"]}}(),enable(e){this.depthTest=e.isEnabled(e.DEPTH_TEST),this.depthWriteMask=e.getParameter(e.DEPTH_WRITEMASK),e.enable(e.POLYGON_OFFSET_FILL),e.polygonOffset(...this._polygonOffset),this._depthTest.getValue()?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),e.depthFunc(this.depthFunction),e.depthRange(...this._depthRange.getValue()),e.depthMask(this._depthMask.getValue())},disable(e){e.disable(e.POLYGON_OFFSET_FILL),this.depthTest?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.depthRange(0,1),e.depthMask(this.depthWriteMask)}}),Object.defineProperties(A,{typeName:{value:"DepthMode",enumerable:!0},componentInfo:{value:Object.freeze({name:"X_ITE",level:1}),enumerable:!0},containerField:{value:"depthMode",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(a())(u().inputOutput,"metadata",new(n().SFNode)),new(a())(u().inputOutput,"polygonOffset",new(n().SFVec2f)),new(a())(u().inputOutput,"depthRange",new(n().SFVec2f)(0,1)),new(a())(u().inputOutput,"depthTest",new(n().SFBool)(!0)),new(a())(u().inputOutput,"depthFunction",new(n().SFString)("LESS_EQUAL")),new(a())(u().inputOutput,"depthMask",new(n().SFBool)(!0))]),enumerable:!0}});const y=A;d().add("DepthMode","x_ite/Components/X_ITE/DepthMode",y);const O=y,N=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Components/Shape/X3DShapeNode");var F=e.n(N);const f=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Rendering/TraverseType");var b=e.n(f);const m=window[Symbol.for("X_ITE.X3D-9.5.1")].require("x_ite/Rendering/VertexArray");var I=e.n(m);const w=window[Symbol.for("X_ITE.X3D-9.5.1")].require("standard/Math/Numbers/Vector3");var g=e.n(w);const C=window[Symbol.for("X_ITE.X3D-9.5.1")].require("standard/Math/Numbers/Matrix4");var R=e.n(C);const L=window[Symbol.for("X_ITE.X3D-9.5.1")].require("standard/Math/Geometry/Box3");var D=e.n(L);function M(e){F().call(this,e),this.addType(u().InstancedShape),this.addChildObjects(u().outputOnly,"matrices",new(n().SFTime)),this.min=new(g()),this.max=new(g()),this.scale=new(g())(1,1,1),this.numInstances=0,this.instancesStride=25*Float32Array.BYTES_PER_ELEMENT,this.matrixOffset=0,this.normalMatrixOffset=16*Float32Array.BYTES_PER_ELEMENT}Object.assign(Object.setPrototypeOf(M.prototype,F().prototype),{initialize(){F().prototype.initialize.call(this);const e=this.getBrowser(),t=e.getContext();e.getContext().getVersion()<2||(this.instances=Object.assign(t.createBuffer(),{vertexArrayObject:new(I())(t),thickLinesVertexArrayObject:new(I())(t),lineTrianglesBuffer:t.createBuffer(),numLines:0}),this._translations.addInterest("set_transform__",this),this._rotations.addInterest("set_transform__",this),this._scales.addInterest("set_transform__",this),this._matrices.addInterest("set_matrices__",this),this.set_transform__())},getShapeKey:()=>3,getNumInstances(){return this.numInstances},getInstances(){return this.instances},set_bbox__:function(){const e=new(g()),t=new(g()),s=new(D());return function(){if(this.numInstances)if(this._bboxSize.getValue().equals(this.getDefaultBBoxSize())){this.getGeometry()?s.assign(this.getGeometry().getBBox()):s.set();const i=s.size.multiply(this.scale.magnitude()/2),n=s.center;e.assign(this.min).add(n).subtract(i),t.assign(this.max).add(n).add(i),this.bbox.setExtents(e,t)}else this.bbox.set(this._bboxSize.getValue(),this._bboxCenter.getValue());else this.bbox.set();this.getBBoxSize().assign(this.bbox.size),this.getBBoxCenter().assign(this.bbox.center)}}(),set_transform__(){this._matrices=this.getBrowser().getCurrentTime()},set_matrices__(){const e=this.getBrowser().getContext(),t=this._translations,s=this._rotations,i=this._scales,n=t.length,o=s.length,a=i.length,r=Math.max(n,o,a),_=this.instancesStride/Float32Array.BYTES_PER_ELEMENT,h=this.instancesStride*r,p=new Float32Array(h),l=new(R());this.numInstances=r;const u=this.min.set(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),c=this.max.set(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY),d=this.scale.assign(a?c:g().One);for(let e=0,h=0;e<r;++e,h+=_)l.set(n?t[Math.min(e,n-1)].getValue():null,o?s[Math.min(e,o-1)].getValue():null,a?i[Math.min(e,a-1)].getValue():null),a&&d.max(i[Math.min(e,a-1)].getValue()),p.set(l,h),p.set(l.submatrix.transpose().inverse(),h+16),u.min(l.origin),c.max(l.origin);e.bindBuffer(e.ARRAY_BUFFER,this.instances),e.bufferData(e.ARRAY_BUFFER,p,e.DYNAMIC_DRAW),this.set_bbox__()},set_geometry__(){F().prototype.set_geometry__.call(this),this.getGeometry()?delete this.traverse:this.traverse=Function.prototype,this.set_transform__()},intersectsBox(e,t,s){},traverse(e,t){if(this.numInstances){switch(e){case b().POINTER:this._pointerEvents.getValue()&&t.addPointingShape(this);break;case b().PICKING:break;case b().COLLISION:t.addCollisionShape(this);break;case b().SHADOW:this._castShadow.getValue()&&t.addShadowShape(this);break;case b().DISPLAY:t.addDisplayShape(this)&&this.getAppearance().traverse(e,t)}this.getGeometry().traverse(e,t)}},displaySimple(e,t,s){this.getGeometry().displaySimpleInstanced(e,s,this)},display(e,t){this.getGeometry().displayInstanced(e,t,this)}}),Object.defineProperties(M,{typeName:{value:"InstancedShape",enumerable:!0},componentInfo:{value:Object.freeze({name:"X_ITE",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"2.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(_())([new(a())(u().inputOutput,"metadata",new(n().SFNode)),new(a())(u().inputOutput,"translations",new(n().MFVec3f)),new(a())(u().inputOutput,"rotations",new(n().MFRotation)),new(a())(u().inputOutput,"scales",new(n().MFVec3f)),new(a())(u().inputOutput,"pointerEvents",new(n().SFBool)(!0)),new(a())(u().inputOutput,"castShadow",new(n().SFBool)(!0)),new(a())(u().inputOutput,"visible",new(n().SFBool)(!0)),new(a())(u().inputOutput,"bboxDisplay",new(n().SFBool)),new(a())(u().initializeOnly,"bboxSize",new(n().SFVec3f)(-1,-1,-1)),new(a())(u().initializeOnly,"bboxCenter",new(n().SFVec3f)),new(a())(u().inputOutput,"appearance",new(n().SFNode)),new(a())(u().inputOutput,"geometry",new(n().SFNode))]),enumerable:!0}});const x=M;d().add("InstancedShape","x_ite/Components/X_ITE/InstancedShape",x);const v=x;s().add({name:"X_ITE",concreteNodes:[E,O,v],abstractNodes:[]});const P=void 0;d().add("X_ITE","assets/components/X_ITE",P)})();
package/dist/x_ite.css CHANGED
@@ -1 +1 @@
1
- /* X_ITE v9.4.5 */@import"https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic";:host,X3DCanvas{display:inline-block;overflow:hidden;outline:none;margin:0;border:0;border-radius:0;padding:0;width:300px;height:150px;user-select:none;-webkit-user-select:none}:host([hidden]){display:none}:host(.x_ite-fullscreen){width:100vw !important;height:100vh !important}X3DCanvas>:not(.x_ite-private-browser,.x_ite-private-menu){display:none}.x_ite-private-browser{overflow:hidden;position:relative;outline:none;margin:0;border:0;border-radius:0;padding:0;width:100%;height:100%;user-select:none;-webkit-user-select:none}.x_ite-private-surface{outline:none;margin:0;border:0;border-radius:0;padding:0;height:100%}.x_ite-private-canvas{display:block;outline:none;margin:0;border:0;border-radius:0;padding:0;width:100%;height:100%}.x_ite-private-notification{position:absolute;top:20px;right:-4px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border:4px solid rgba(60,60,60,.61803);border-radius:5px;padding:5px;color:#fff;font-family:PT Sans,sans-serif;font-size:10pt;letter-spacing:unset;line-height:1;white-space:pre;pointer-events:none}.x_ite-private-notification span{padding:0 24px 0 20px;background:url("assets/images/icon.bw.png") no-repeat 0 2px}.x_ite-private-browser-timings{position:absolute;bottom:-4px;left:-4px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border-top:4px solid rgba(60,60,60,.61803);border-right:4px solid rgba(60,60,60,.61803);border-radius:5px;padding:10px 15px 14px 14px;color:#fff;font-family:PT Sans,sans-serif;font-size:9pt;white-space:pre;pointer-events:none}.x_ite-private-browser-timings table,.x_ite-private-browser-timings thead,.x_ite-private-browser-timings tbody,.x_ite-private-browser-timings tfoot,.x_ite-private-browser-timings tr,.x_ite-private-browser-timings th,.x_ite-private-browser-timings td{box-sizing:border-box;outline:0;margin:0;border:0;border-radius:0;padding:0;background:none;color:#fff;font-size:inherit;font-weight:normal;font-style:normal;letter-spacing:unset;line-height:1;text-align:left}.x_ite-private-browser-timings table{overflow:hidden;background:url("assets/images/Time.png") no-repeat;width:100%;max-width:100%;border-collapse:separate;border-spacing:2px;empty-cells:show}.x_ite-private-browser-timings thead th{padding-left:20px;padding-bottom:5px;font-weight:bold}.x_ite-private-browser-timings td:first-child{padding-right:10px}.x_ite-private-browser-timings table.more tr.x_ite-private-more td{padding-bottom:5px}.x_ite-private-browser-timings table.less tr.x_ite-private-more~tr{display:none}.x_ite-private-browser-timings td{padding-bottom:2px}.x_ite-private-browser-timings tfoot td:first-child{padding-right:0}.x_ite-private-browser-timings tfoot td{padding-top:4px}.x_ite-private-browser-timings button{box-sizing:border-box;border:0;border-radius:10px;width:100%;height:14pt;padding:0;background:rgba(0,0,0,.38196601);color:#fff;font-family:PT Sans,sans-serif;font-style:italic;font-size:9pt;letter-spacing:unset;line-height:1.1;text-align:center;pointer-events:all;cursor:pointer}.x_ite-private-world-info-overlay{position:absolute;top:0;right:0;bottom:0;left:0;inset:0}.x_ite-private-world-info{overflow-y:auto;position:absolute;top:0;right:0;bottom:0;left:0;inset:0;margin:21pt;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border:4px solid rgba(60,60,60,.61803);border-radius:15px;padding:21pt}.x_ite-private-world-info .x_ite-private-world-info-top,.x_ite-private-world-info .x_ite-private-world-info-title,.x_ite-private-world-info .x_ite-private-world-info-info,.x_ite-private-world-info p{box-sizing:border-box;outline:0;margin:0;border:0;border-radius:0;padding:0;background:none;color:#fff;font-family:PT Sans,sans-serif;font-size:inherit;font-weight:inherit;font-style:normal;letter-spacing:unset;line-height:1.2;text-align:left}.x_ite-private-world-info .x_ite-private-world-info-top{font-weight:bold;font-style:italic;font-size:9pt}.x_ite-private-world-info .x_ite-private-world-info-title{margin:.3em 0 1em 0;font-weight:bold;font-size:21pt}.x_ite-private-world-info .x_ite-private-world-info-info,.x_ite-private-world-info .x_ite-private-world-info-info p{margin:1em 0 1em 0;font-size:14pt}.x_ite-private-world-info a{text-decoration:underline;color:#fd9f2e}.x_ite-private-menu.context-menu-layer{position:fixed;z-index:10000;top:0;right:0;bottom:0;left:0;inset:0}.x_ite-private-menu.context-menu-list{position:fixed;z-index:10000;isolation:isolate}.x_ite-private-menu .context-menu-list{position:absolute}.x_ite-private-menu.context-menu-list,.x_ite-private-menu .context-menu-list{display:block;box-sizing:border-box;min-width:120px;margin:0;margin-left:1px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border:4px solid rgba(60,60,60,.61803);border-radius:5px;padding:5px 10px 9px 9px;color:#fff;font-family:PT Sans,sans-serif;font-size:10pt;white-space:pre;line-height:1.2;list-style-type:none}.x_ite-private-menu .context-menu-item{cursor:pointer;position:relative;border-radius:5px;margin:0;font-size:10pt;line-height:1;letter-spacing:unset;text-align:left}.x_ite-private-menu .context-menu-item:hover:not(.context-menu-not-selectable){background-color:rgba(255,69,58,.8)}.x_ite-private-menu .context-menu-item:hover>.context-menu-list{display:block}.x_ite-private-menu .context-menu-not-selectable{cursor:default}.x_ite-private-menu .context-menu-separator{cursor:default;margin:2px 0;border-top:0;border-bottom:1px solid #8a8a8a;padding-top:0;padding-bottom:0}.x_ite-private-menu .context-menu-separator+.context-menu-separator{display:none !important}.x_ite-private-menu .context-menu-submenu:after{content:"";position:absolute;display:block;right:0;top:8px;margin-right:2px;border-style:solid;border-width:4px 0 4px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #eee;width:0;height:0}.x_ite-private-menu .context-menu-item>span{display:block;width:100%;padding:5px 24px}.x_ite-private-menu .context-menu-input>label{cursor:pointer;display:block;box-sizing:border-box;margin:0;padding:5px 24px;width:100%;font-size:10pt;letter-spacing:unset;line-height:1}.x_ite-private-menu .context-menu-input>label>*{vertical-align:top;font-size:10pt;font-weight:normal;letter-spacing:unset;line-height:1}.x_ite-private-menu .context-menu-item>label>input{all:revert;cursor:pointer}.x_ite-private-menu .context-menu-input>label>input[type=checkbox],.x_ite-private-menu .context-menu-input>label>input[type=radio]{accent-color:#ff453a;display:inline;width:12px;margin:0;margin-left:-20px;padding:0}.x_ite-private-menu .context-menu-input>label>span{padding-left:8px}.x_ite-private-menu .context-menu-item>.context-menu-list{top:-9px;right:-5px;display:none}.x_ite-private-menu .context-menu-title{font-weight:bold}.x_ite-private-menu .context-menu-selected{font-weight:bold;font-style:italic}.x_ite-private-menu .context-menu-icon{background-repeat:no-repeat;background-position:2px 3px}.x_ite-private-icon-viewpoint{background:url("assets/images/Viewpoint.png")}.x_ite-private-icon-examine-viewer{background:url("assets/images/ExamineViewer.png")}.x_ite-private-icon-walk-viewer{background:url("assets/images/WalkViewer.png")}.x_ite-private-icon-fly-viewer{background:url("assets/images/FlyViewer.png")}.x_ite-private-icon-lookat-viewer{background:url("assets/images/gtk-zoom-in.png")}.x_ite-private-icon-plane-viewer{background:url("assets/images/PlaneViewer.png")}.x_ite-private-icon-none-viewer{background:url("assets/images/NoneViewer.png")}.x_ite-private-icon-zoom-fit{background:url("assets/images/gtk-zoom-fit.png")}.x_ite-private-icon-zoom-in{background:url("assets/images/gtk-zoom-in.png")}.x_ite-private-icon-primitive-quality{background:url("assets/images/PrimitiveQuality.png")}.x_ite-private-icon-texture-quality{background:url("assets/images/TextureQuality.png")}.x_ite-private-icon-shading{background:url("assets/images/Shading.png")}.x_ite-private-icon-enter-fullscreen{background:url("assets/images/gtk-fullscreen.png")}.x_ite-private-icon-leave-fullscreen{background:url("assets/images/gtk-leave-fullscreen.png")}.x_ite-private-icon-world-info{background:url("assets/images/go-next.png")}.x_ite-private-icon-help-about{background:url("assets/images/help-about.png")}.x_ite-private-splash-screen{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;background:#1b1d21;background:-moz-radial-gradient(center, ellipse cover, #2f3135 0%, #1b1d21 100%);background:-webkit-radial-gradient(center, ellipse cover, #2f3135 0%, #1b1d21 100%);background:radial-gradient(ellipse at center, #2f3135 0%, #1b1d21 100%)}.x_ite-private-spinner{position:absolute;top:calc(50% - 69px);left:calc(50% - 67px);width:138px;height:134px;background:url("assets/images/logo.128.png") no-repeat;-webkit-animation:spinner-animation-spin 32s linear infinite;-moz-animation:spinner-animation-spin 32s linear infinite;animation:spinner-animation-spin 32s linear infinite}@-moz-keyframes spinner-animation-spin{100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spinner-animation-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes spinner-animation-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.x_ite-private-progress{position:absolute;top:calc(50% - 28pt - 11pt);left:calc(50% - 100px);width:200px}.x_ite-private-x_ite{color:#fff;font-size:28pt;text-align:center;text-shadow:1px 1px 0 #000;font-family:PT Sans,sans-serif}.x_ite-private-x_ite span.x_ite-private-x3d{font-weight:bold}.x_ite-private-spinner-text{color:#fff;font-size:11pt;text-align:center;text-shadow:1px 1px 0 #000;font-family:PT Sans,sans-serif}.x_ite-private-progressbar{margin:8px;border-left:2px solid rgba(255,255,255,.5);border-right:2px solid rgba(255,255,255,.5);padding:0 2px;text-align:left}.x_ite-private-progressbar div{width:0%;height:6px;background:rgba(255,255,255,.5)}
1
+ /* X_ITE v9.5.1 */@import"https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic";:host,X3DCanvas{display:inline-block;overflow:hidden;outline:none;margin:0;border:0;border-radius:0;padding:0;width:300px;height:150px;user-select:none;-webkit-user-select:none}:host([hidden]){display:none}:host(.x_ite-fullscreen){width:100vw !important;height:100vh !important}X3DCanvas>:not(.x_ite-private-browser,.x_ite-private-menu){display:none}.x_ite-private-browser{overflow:hidden;position:relative;outline:none;margin:0;border:0;border-radius:0;padding:0;width:100%;height:100%;user-select:none;-webkit-user-select:none}.x_ite-private-surface{outline:none;margin:0;border:0;border-radius:0;padding:0;height:100%}.x_ite-private-canvas{display:block;outline:none;margin:0;border:0;border-radius:0;padding:0;width:100%;height:100%}.x_ite-private-notification{position:absolute;top:20px;right:-4px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border:4px solid rgba(60,60,60,.61803);border-radius:5px;padding:5px;color:#fff;font-family:PT Sans,sans-serif;font-size:10pt;letter-spacing:unset;line-height:1;white-space:pre;pointer-events:none}.x_ite-private-notification span{padding:0 24px 0 20px;background:url("assets/images/icon.bw.png") no-repeat 0 2px}.x_ite-private-browser-timings{position:absolute;bottom:-4px;left:-4px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border-top:4px solid rgba(60,60,60,.61803);border-right:4px solid rgba(60,60,60,.61803);border-radius:5px;padding:10px 15px 14px 14px;color:#fff;font-family:PT Sans,sans-serif;font-size:9pt;white-space:pre;pointer-events:none}.x_ite-private-browser-timings table,.x_ite-private-browser-timings thead,.x_ite-private-browser-timings tbody,.x_ite-private-browser-timings tfoot,.x_ite-private-browser-timings tr,.x_ite-private-browser-timings th,.x_ite-private-browser-timings td{box-sizing:border-box;outline:0;margin:0;border:0;border-radius:0;padding:0;background:none;color:#fff;font-size:inherit;font-weight:normal;font-style:normal;letter-spacing:unset;line-height:1;text-align:left}.x_ite-private-browser-timings table{overflow:hidden;background:url("assets/images/Time.png") no-repeat;width:100%;max-width:100%;border-collapse:separate;border-spacing:2px;empty-cells:show}.x_ite-private-browser-timings thead th{padding-left:20px;padding-bottom:5px;font-weight:bold}.x_ite-private-browser-timings td:first-child{padding-right:10px}.x_ite-private-browser-timings table.more tr.x_ite-private-more td{padding-bottom:5px}.x_ite-private-browser-timings table.less tr.x_ite-private-more~tr{display:none}.x_ite-private-browser-timings td{padding-bottom:2px}.x_ite-private-browser-timings tfoot td:first-child{padding-right:0}.x_ite-private-browser-timings tfoot td{padding-top:4px}.x_ite-private-browser-timings button{box-sizing:border-box;border:0;border-radius:10px;width:100%;height:14pt;padding:0;background:rgba(0,0,0,.38196601);color:#fff;font-family:PT Sans,sans-serif;font-style:italic;font-size:9pt;letter-spacing:unset;line-height:1.1;text-align:center;pointer-events:all;cursor:pointer}.x_ite-private-world-info-overlay{position:absolute;top:0;right:0;bottom:0;left:0;inset:0}.x_ite-private-world-info{overflow-y:auto;position:absolute;top:0;right:0;bottom:0;left:0;inset:0;margin:21pt;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border:4px solid rgba(60,60,60,.61803);border-radius:15px;padding:21pt}.x_ite-private-world-info .x_ite-private-world-info-top,.x_ite-private-world-info .x_ite-private-world-info-title,.x_ite-private-world-info .x_ite-private-world-info-info,.x_ite-private-world-info p{box-sizing:border-box;outline:0;margin:0;border:0;border-radius:0;padding:0;background:none;color:#fff;font-family:PT Sans,sans-serif;font-size:inherit;font-weight:inherit;font-style:normal;letter-spacing:unset;line-height:1.2;text-align:left}.x_ite-private-world-info .x_ite-private-world-info-top{font-weight:bold;font-style:italic;font-size:9pt}.x_ite-private-world-info .x_ite-private-world-info-title{margin:.3em 0 1em 0;font-weight:bold;font-size:21pt}.x_ite-private-world-info .x_ite-private-world-info-info,.x_ite-private-world-info .x_ite-private-world-info-info p{margin:1em 0 1em 0;font-size:14pt}.x_ite-private-world-info a{text-decoration:underline;color:#fd9f2e}.x_ite-private-menu.context-menu-layer{position:fixed;z-index:10000;top:0;right:0;bottom:0;left:0;inset:0}.x_ite-private-menu.context-menu-list{position:fixed;z-index:10000;isolation:isolate}.x_ite-private-menu .context-menu-list{position:absolute}.x_ite-private-menu.context-menu-list,.x_ite-private-menu .context-menu-list{display:block;box-sizing:border-box;min-width:120px;margin:0;margin-left:1px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:rgba(0,0,0,.61803);background:-moz-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:-webkit-linear-gradient(top, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);background:linear-gradient(to bottom, rgba(50, 50, 50, 0.61803) 0%, rgba(0, 0, 0, 0.61803) 100%);-webkit-background-clip:padding-box;background-clip:padding-box;border:4px solid rgba(60,60,60,.61803);border-radius:5px;padding:5px 10px 9px 9px;color:#fff;font-family:PT Sans,sans-serif;font-size:10pt;white-space:pre;line-height:1.2;list-style-type:none}.x_ite-private-menu .context-menu-item{cursor:pointer;position:relative;border-radius:5px;margin:0;font-size:10pt;line-height:1;letter-spacing:unset;text-align:left}.x_ite-private-menu .context-menu-item:hover:not(.context-menu-not-selectable){background-color:rgba(255,69,58,.8)}.x_ite-private-menu .context-menu-item:hover>.context-menu-list{display:block}.x_ite-private-menu .context-menu-not-selectable{cursor:default}.x_ite-private-menu .context-menu-separator{cursor:default;margin:2px 0;border-top:0;border-bottom:1px solid #8a8a8a;padding-top:0;padding-bottom:0}.x_ite-private-menu .context-menu-separator+.context-menu-separator{display:none !important}.x_ite-private-menu .context-menu-submenu:after{content:"";position:absolute;display:block;right:0;top:8px;margin-right:2px;border-style:solid;border-width:4px 0 4px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #eee;width:0;height:0}.x_ite-private-menu .context-menu-item>span{display:block;width:100%;padding:5px 24px}.x_ite-private-menu .context-menu-input>label{cursor:pointer;display:block;box-sizing:border-box;margin:0;padding:5px 24px;width:100%;font-size:10pt;letter-spacing:unset;line-height:1}.x_ite-private-menu .context-menu-input>label>*{vertical-align:top;font-size:10pt;font-weight:normal;letter-spacing:unset;line-height:1}.x_ite-private-menu .context-menu-item>label>input{all:revert;cursor:pointer}.x_ite-private-menu .context-menu-input>label>input[type=checkbox],.x_ite-private-menu .context-menu-input>label>input[type=radio]{accent-color:#ff453a;display:inline;width:12px;margin:0;margin-left:-20px;padding:0}.x_ite-private-menu .context-menu-input>label>span{padding-left:8px}.x_ite-private-menu .context-menu-item>.context-menu-list{top:-9px;right:-5px;display:none}.x_ite-private-menu .context-menu-title{font-weight:bold}.x_ite-private-menu .context-menu-selected{font-weight:bold;font-style:italic}.x_ite-private-menu .context-menu-icon{background-repeat:no-repeat;background-position:2px 3px}.x_ite-private-icon-viewpoint{background:url("assets/images/Viewpoint.png")}.x_ite-private-icon-examine-viewer{background:url("assets/images/ExamineViewer.png")}.x_ite-private-icon-walk-viewer{background:url("assets/images/WalkViewer.png")}.x_ite-private-icon-fly-viewer{background:url("assets/images/FlyViewer.png")}.x_ite-private-icon-lookat-viewer{background:url("assets/images/gtk-zoom-in.png")}.x_ite-private-icon-plane-viewer{background:url("assets/images/PlaneViewer.png")}.x_ite-private-icon-none-viewer{background:url("assets/images/NoneViewer.png")}.x_ite-private-icon-zoom-fit{background:url("assets/images/gtk-zoom-fit.png")}.x_ite-private-icon-zoom-in{background:url("assets/images/gtk-zoom-in.png")}.x_ite-private-icon-primitive-quality{background:url("assets/images/PrimitiveQuality.png")}.x_ite-private-icon-texture-quality{background:url("assets/images/TextureQuality.png")}.x_ite-private-icon-shading{background:url("assets/images/Shading.png")}.x_ite-private-icon-enter-fullscreen{background:url("assets/images/gtk-fullscreen.png")}.x_ite-private-icon-leave-fullscreen{background:url("assets/images/gtk-leave-fullscreen.png")}.x_ite-private-icon-world-info{background:url("assets/images/go-next.png")}.x_ite-private-icon-help-about{background:url("assets/images/help-about.png")}.x_ite-private-splash-screen{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;background:#1b1d21;background:-moz-radial-gradient(center, ellipse cover, #2f3135 0%, #1b1d21 100%);background:-webkit-radial-gradient(center, ellipse cover, #2f3135 0%, #1b1d21 100%);background:radial-gradient(ellipse at center, #2f3135 0%, #1b1d21 100%)}.x_ite-private-spinner{position:absolute;top:calc(50% - 69px);left:calc(50% - 67px);width:138px;height:134px;background:url("assets/images/logo.128.png") no-repeat;-webkit-animation:spinner-animation-spin 32s linear infinite;-moz-animation:spinner-animation-spin 32s linear infinite;animation:spinner-animation-spin 32s linear infinite}@-moz-keyframes spinner-animation-spin{100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spinner-animation-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes spinner-animation-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.x_ite-private-progress{position:absolute;top:calc(50% - 28pt - 11pt);left:calc(50% - 100px);width:200px}.x_ite-private-x_ite{color:#fff;font-size:28pt;text-align:center;text-shadow:1px 1px 0 #000;font-family:PT Sans,sans-serif}.x_ite-private-x_ite span.x_ite-private-x3d{font-weight:bold}.x_ite-private-spinner-text{color:#fff;font-size:11pt;text-align:center;text-shadow:1px 1px 0 #000;font-family:PT Sans,sans-serif}.x_ite-private-progressbar{margin:8px;border-left:2px solid rgba(255,255,255,.5);border-right:2px solid rgba(255,255,255,.5);padding:0 2px;text-align:left}.x_ite-private-progressbar div{width:0%;height:6px;background:rgba(255,255,255,.5)}
package/dist/x_ite.d.ts CHANGED
@@ -308,7 +308,7 @@ declare class X3DBrowser
308
308
  /**
309
309
  * Replace the current world with this new nodes that has been loaded or constructed from somewhere.
310
310
  */
311
- replaceWorld (nodes: MFNode): string;
311
+ replaceWorld (nodes: MFNode): Promise <void>;
312
312
  /**
313
313
  * The string may be any valid VRML content.
314
314
  */