x_ite 10.1.0 → 10.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.
Files changed (95) hide show
  1. package/README.md +18 -18
  2. package/dist/LICENSE.md +4 -0
  3. package/dist/X3DUOM.xml +69 -11
  4. package/dist/assets/components/{Annotation.js → AnnotationComponent.js} +138 -260
  5. package/dist/assets/components/AnnotationComponent.min.js +2 -0
  6. package/dist/assets/components/{CADGeometry.js → CADGeometryComponent.js} +177 -299
  7. package/dist/assets/components/CADGeometryComponent.min.js +2 -0
  8. package/dist/assets/components/{CubeMapTexturing.js → CubeMapTexturingComponent.js} +218 -257
  9. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -0
  10. package/dist/assets/components/DISComponent.js +994 -0
  11. package/dist/assets/components/DISComponent.min.js +2 -0
  12. package/dist/assets/components/{EventUtilities.js → EventUtilitiesComponent.js} +121 -274
  13. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -0
  14. package/dist/assets/components/{Geometry2D.js → Geometry2DComponent.js} +233 -371
  15. package/dist/assets/components/Geometry2DComponent.min.js +2 -0
  16. package/dist/assets/components/{Geospatial.js → GeospatialComponent.js} +449 -676
  17. package/dist/assets/components/GeospatialComponent.min.js +2 -0
  18. package/dist/assets/components/{HAnim.js → HAnimComponent.js} +277 -387
  19. package/dist/assets/components/HAnimComponent.min.js +2 -0
  20. package/dist/assets/components/{KeyDeviceSensor.js → KeyDeviceSensorComponent.js} +71 -114
  21. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -0
  22. package/dist/assets/components/{Layout.js → LayoutComponent.js} +234 -339
  23. package/dist/assets/components/LayoutComponent.min.js +2 -0
  24. package/dist/assets/components/{NURBS.js → NURBSComponent.js} +351 -654
  25. package/dist/assets/components/NURBSComponent.min.js +2 -0
  26. package/dist/assets/components/{ParticleSystems.js → ParticleSystemsComponent.js} +345 -674
  27. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -0
  28. package/dist/assets/components/{Picking.js → PickingComponent.js} +245 -472
  29. package/dist/assets/components/PickingComponent.min.js +2 -0
  30. package/dist/assets/components/{RigidBodyPhysics.js → RigidBodyPhysicsComponent.js} +496 -804
  31. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -0
  32. package/dist/assets/components/ScriptingComponent.js +899 -0
  33. package/dist/assets/components/ScriptingComponent.min.js +2 -0
  34. package/dist/assets/components/{Text.js → TextComponent.js} +199 -251
  35. package/dist/assets/components/TextComponent.min.js +2 -0
  36. package/dist/assets/components/{TextureProjection.js → TextureProjectionComponent.js} +144 -190
  37. package/dist/assets/components/TextureProjectionComponent.min.js +2 -0
  38. package/dist/assets/components/{Texturing3D.js → Texturing3DComponent.js} +224 -386
  39. package/dist/assets/components/Texturing3DComponent.min.js +2 -0
  40. package/dist/assets/components/{VolumeRendering.js → VolumeRenderingComponent.js} +316 -603
  41. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -0
  42. package/dist/assets/components/{X_ITE.js → X_ITEComponent.js} +1250 -1347
  43. package/dist/assets/components/X_ITEComponent.min.js +2 -0
  44. package/dist/assets/fonts/PT_Sans/OFL.txt +94 -0
  45. package/dist/assets/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
  46. package/dist/assets/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
  47. package/dist/assets/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
  48. package/dist/assets/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
  49. package/dist/assets/images/XR.svg +74 -0
  50. package/dist/assets/lib/mikktspace_bg.wasm +0 -0
  51. package/dist/example.html +1 -1
  52. package/dist/x_ite.css +1 -1
  53. package/dist/x_ite.d.ts +128 -22
  54. package/dist/x_ite.js +3575 -6278
  55. package/dist/x_ite.min.js +2 -1
  56. package/dist/x_ite.min.mjs +2 -1
  57. package/dist/x_ite.mjs +3575 -6278
  58. package/dist/x_ite.zip +0 -0
  59. package/package.json +7 -5
  60. package/dist/assets/components/Annotation.min.js +0 -1
  61. package/dist/assets/components/CADGeometry.min.js +0 -1
  62. package/dist/assets/components/CubeMapTexturing.min.js +0 -1
  63. package/dist/assets/components/DIS.js +0 -1104
  64. package/dist/assets/components/DIS.min.js +0 -1
  65. package/dist/assets/components/EventUtilities.min.js +0 -1
  66. package/dist/assets/components/Geometry2D.min.js +0 -1
  67. package/dist/assets/components/Geospatial.min.js +0 -1
  68. package/dist/assets/components/HAnim.min.js +0 -1
  69. package/dist/assets/components/KeyDeviceSensor.min.js +0 -1
  70. package/dist/assets/components/Layout.min.js +0 -1
  71. package/dist/assets/components/NURBS.min.js +0 -1
  72. package/dist/assets/components/ParticleSystems.min.js +0 -1
  73. package/dist/assets/components/Picking.min.js +0 -1
  74. package/dist/assets/components/RigidBodyPhysics.min.js +0 -1
  75. package/dist/assets/components/Scripting.js +0 -927
  76. package/dist/assets/components/Scripting.min.js +0 -1
  77. package/dist/assets/components/Text.min.js +0 -1
  78. package/dist/assets/components/TextureProjection.min.js +0 -1
  79. package/dist/assets/components/Texturing3D.min.js +0 -1
  80. package/dist/assets/components/VolumeRendering.min.js +0 -1
  81. package/dist/assets/components/X_ITE.min.js +0 -1
  82. /package/dist/assets/fonts/{DroidSerif Apache License.txt → Droid/DroidSerif Apache License.txt} +0 -0
  83. /package/dist/assets/fonts/{DroidSerif-Bold.ttf → Droid/DroidSerif-Bold.ttf} +0 -0
  84. /package/dist/assets/fonts/{DroidSerif-BoldItalic.ttf → Droid/DroidSerif-BoldItalic.ttf} +0 -0
  85. /package/dist/assets/fonts/{DroidSerif-Italic.ttf → Droid/DroidSerif-Italic.ttf} +0 -0
  86. /package/dist/assets/fonts/{DroidSerif-Regular.ttf → Droid/DroidSerif-Regular.ttf} +0 -0
  87. /package/dist/assets/fonts/{Ubuntu LICENCE.txt → Ubuntu/Ubuntu LICENCE.txt} +0 -0
  88. /package/dist/assets/fonts/{Ubuntu-B.ttf → Ubuntu/Ubuntu-B.ttf} +0 -0
  89. /package/dist/assets/fonts/{Ubuntu-BI.ttf → Ubuntu/Ubuntu-BI.ttf} +0 -0
  90. /package/dist/assets/fonts/{Ubuntu-R.ttf → Ubuntu/Ubuntu-R.ttf} +0 -0
  91. /package/dist/assets/fonts/{Ubuntu-RI.ttf → Ubuntu/Ubuntu-RI.ttf} +0 -0
  92. /package/dist/assets/fonts/{UbuntuMono-B.ttf → Ubuntu/UbuntuMono-B.ttf} +0 -0
  93. /package/dist/assets/fonts/{UbuntuMono-BI.ttf → Ubuntu/UbuntuMono-BI.ttf} +0 -0
  94. /package/dist/assets/fonts/{UbuntuMono-R.ttf → Ubuntu/UbuntuMono-R.ttf} +0 -0
  95. /package/dist/assets/fonts/{UbuntuMono-RI.ttf → Ubuntu/UbuntuMono-RI.ttf} +0 -0
package/README.md CHANGED
@@ -12,6 +12,10 @@ X_ITE is a robust X3D JavaScript WebGL browser that is compatible with all major
12
12
 
13
13
  🚀 For more information and a live preview, please visit our [home page](https://create3000.github.io/x_ite/).
14
14
 
15
+ ## Funding
16
+
17
+ X_ITE needs your support. If you become a [Patreon](https://patreon.com/X_ITE), we can improve X_ITE even better.
18
+
15
19
  ## Quick Links
16
20
 
17
21
  * [Getting Started](https://create3000.github.io/x_ite/)
@@ -32,15 +36,25 @@ If you are going to use X_ITE in a production environment, you should use a fixe
32
36
  jsDelivr is an open-source content delivery network (CDN) renowned for its no-cost access, swift performance, and reliable service.
33
37
 
34
38
  ```html
35
- <script src="https://cdn.jsdelivr.net/npm/x_ite@10.1.0/dist/x_ite.min.js"></script>
39
+ <script src="https://cdn.jsdelivr.net/npm/x_ite@10.3.0/dist/x_ite.min.js"></script>
36
40
  <!-- or as ES module for use in scripts -->
37
41
  <script type="module">
38
- import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.1.0/dist/x_ite.min.mjs";
42
+ import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.3.0/dist/x_ite.min.mjs";
39
43
  </script>
40
44
  ```
41
45
 
42
46
  >**Info:** It is no longer necessary to include the CSS file.
43
47
 
48
+ ## Get it from NPM
49
+
50
+ To install, use the following command:
51
+
52
+ ```console
53
+ $ npm install x_ite
54
+ ```
55
+
56
+ Maybe you are curious now [how to use X_ITE with Electron](https://create3000.github.io/x_ite/how-to-use-x-ite-with-electron)?
57
+
44
58
  ## Usage
45
59
 
46
60
  This script initializes an X3D canvas within an HTML page, configuring it to contain a scene, a camera and a geometric cube with default material properties. It then animates the rotation of the cube within the scene, ensuring that the camera captures the dynamic action.
@@ -48,7 +62,7 @@ This script initializes an X3D canvas within an HTML page, configuring it to con
48
62
  ### Declarative Syntax
49
63
 
50
64
  ```html
51
- <script src="https://cdn.jsdelivr.net/npm/x_ite@10.1.0/dist/x_ite.min.js"></script>
65
+ <script src="https://cdn.jsdelivr.net/npm/x_ite@10.3.0/dist/x_ite.min.js"></script>
52
66
  <x3d-canvas>
53
67
  <X3D profile='Interchange' version='4.0'>
54
68
  <head>
@@ -87,7 +101,7 @@ The same scene can also be created using pure JavaScript:
87
101
 
88
102
  ```html
89
103
  <script type="module">
90
- import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.1.0/dist/x_ite.min.mjs";
104
+ import X3D from "https://cdn.jsdelivr.net/npm/x_ite@10.3.0/dist/x_ite.min.mjs";
91
105
 
92
106
  const
93
107
  browser = X3D .getBrowser (),
@@ -156,20 +170,6 @@ scene .addRoute (interpolatorNode, "value_changed", transformNode, "set_ro
156
170
  <x3d-canvas></x3d-canvas>
157
171
  ```
158
172
 
159
- ## NPM Usage
160
-
161
- To install, use the following command:
162
-
163
- ```console
164
- $ npm install x_ite
165
- ```
166
-
167
- Maybe you are curious now [how to use X_ITE with Electron](https://create3000.github.io/x_ite/how-to-use-x-ite-with-electron)?
168
-
169
- ## Funding
170
-
171
- X_ITE needs your support. If you become a [Patreon](https://patreon.com/X_ITE), we can improve X_ITE even better.
172
-
173
173
  ## License
174
174
 
175
175
  X_ITE is free software: you can redistribute it and/or modify it under the terms of the [GNU General Public License version 3](LICENSE.md) only, as published by the Free Software Foundation.
package/dist/LICENSE.md CHANGED
@@ -625,6 +625,10 @@ copy of the Program in return for a fee.
625
625
 
626
626
  END OF TERMS AND CONDITIONS
627
627
  ---------------------------
628
+
629
+ ADDITIONAL LICENSES
630
+ -------------------
631
+
628
632
  ```
629
633
  /*!
630
634
  * jQuery JavaScript Library v3.7.1
package/dist/X3DUOM.xml CHANGED
@@ -9,7 +9,7 @@
9
9
  <ConcreteNode name="EnvironmentLight">
10
10
  <InterfaceDefinition
11
11
  specificationUrl="https://create3000.github.io/x_ite/components/lighting/environmentlight"
12
- appinfo="EnvironmentLight ... This node only affects PhysicalMaterial nodes and SpecularGlossinessMaterial nodes.">
12
+ appinfo="EnvironmentLight ... This node only affects the PhysicalMaterial and SpecularGlossinessMaterial nodes.">
13
13
  <componentInfo name="Lighting" level="3" />
14
14
  <Inheritance baseType="X3DLightNode" />
15
15
  <field name="metadata"
@@ -215,7 +215,7 @@
215
215
  <ConcreteNode name="AnisotropyMaterialExtension">
216
216
  <InterfaceDefinition
217
217
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/anisotropymaterialextension"
218
- appinfo="AnisotropyMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
218
+ appinfo="AnisotropyMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
219
219
  <componentInfo name="X_ITE" level="1" />
220
220
  <Inheritance baseType="X3DMaterialExtensionNode" />
221
221
  <field name="metadata"
@@ -405,7 +405,7 @@
405
405
  <ConcreteNode name="ClearcoatMaterialExtension">
406
406
  <InterfaceDefinition
407
407
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/clearcoatmaterialextension"
408
- appinfo="ClearcoatMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
408
+ appinfo="ClearcoatMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
409
409
  <componentInfo name="X_ITE" level="1" />
410
410
  <Inheritance baseType="X3DMaterialExtensionNode" />
411
411
  <field name="metadata"
@@ -530,7 +530,7 @@
530
530
  <ConcreteNode name="DispersionMaterialExtension">
531
531
  <InterfaceDefinition
532
532
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/dispersionmaterialextension"
533
- appinfo="DispersionMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
533
+ appinfo="DispersionMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
534
534
  <componentInfo name="X_ITE" level="1" />
535
535
  <Inheritance baseType="X3DMaterialExtensionNode" />
536
536
  <field name="metadata"
@@ -553,7 +553,7 @@
553
553
  <ConcreteNode name="EmissiveStrengthMaterialExtension">
554
554
  <InterfaceDefinition
555
555
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/emissivestrengthmaterialextension"
556
- appinfo="EmissiveStrengthMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
556
+ appinfo="EmissiveStrengthMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes.">
557
557
  <componentInfo name="X_ITE" level="1" />
558
558
  <Inheritance baseType="X3DMaterialExtensionNode" />
559
559
  <field name="metadata"
@@ -576,7 +576,7 @@
576
576
  <ConcreteNode name="IORMaterialExtension">
577
577
  <InterfaceDefinition
578
578
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/iormaterialextension"
579
- appinfo="IORMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
579
+ appinfo="IORMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
580
580
  <componentInfo name="X_ITE" level="1" />
581
581
  <Inheritance baseType="X3DMaterialExtensionNode" />
582
582
  <field name="metadata"
@@ -681,7 +681,7 @@
681
681
  <ConcreteNode name="IridescenceMaterialExtension">
682
682
  <InterfaceDefinition
683
683
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/iridescencematerialextension"
684
- appinfo="IridescenceMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
684
+ appinfo="IridescenceMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
685
685
  <componentInfo name="X_ITE" level="1" />
686
686
  <Inheritance baseType="X3DMaterialExtensionNode" />
687
687
  <field name="metadata"
@@ -751,7 +751,7 @@
751
751
  <ConcreteNode name="SheenMaterialExtension">
752
752
  <InterfaceDefinition
753
753
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/sheenmaterialextension"
754
- appinfo="SheenMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
754
+ appinfo="SheenMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
755
755
  <componentInfo name="X_ITE" level="1" />
756
756
  <Inheritance baseType="X3DMaterialExtensionNode" />
757
757
  <field name="metadata"
@@ -950,7 +950,7 @@
950
950
  <ConcreteNode name="SpecularMaterialExtension">
951
951
  <InterfaceDefinition
952
952
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/specularmaterialextension"
953
- appinfo="SpecularMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
953
+ appinfo="SpecularMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
954
954
  <componentInfo name="X_ITE" level="1" />
955
955
  <Inheritance baseType="X3DMaterialExtensionNode" />
956
956
  <field name="metadata"
@@ -1007,7 +1007,7 @@
1007
1007
  <ConcreteNode name="TransmissionMaterialExtension">
1008
1008
  <InterfaceDefinition
1009
1009
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/transmissionmaterialextension"
1010
- appinfo="TransmissionMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
1010
+ appinfo="TransmissionMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
1011
1011
  <componentInfo name="X_ITE" level="1" />
1012
1012
  <Inheritance baseType="X3DMaterialExtensionNode" />
1013
1013
  <field name="metadata"
@@ -1043,7 +1043,7 @@
1043
1043
  <ConcreteNode name="VolumeMaterialExtension">
1044
1044
  <InterfaceDefinition
1045
1045
  specificationUrl="https://create3000.github.io/x_ite/components/x-ite/volumematerialextension"
1046
- appinfo="VolumeMaterialExtension is an extension for PhysicalMaterial node and SpecularGlossinessMaterial node.">
1046
+ appinfo="VolumeMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
1047
1047
  <componentInfo name="X_ITE" level="1" />
1048
1048
  <Inheritance baseType="X3DMaterialExtensionNode" />
1049
1049
  <field name="metadata"
@@ -1092,5 +1092,63 @@
1092
1092
  </InterfaceDefinition>
1093
1093
  </ConcreteNode>
1094
1094
 
1095
+ <ConcreteNode name="DiffuseTransmissionMaterialExtension">
1096
+ <InterfaceDefinition
1097
+ specificationUrl="https://create3000.github.io/x_ite/components/x-ite/diffusetransmissionmaterialextension"
1098
+ appinfo="DiffuseTransmissionMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.">
1099
+ <componentInfo name="X_ITE" level="1" />
1100
+ <Inheritance baseType="X3DMaterialExtensionNode" />
1101
+ <field name="metadata"
1102
+ type="SFNode"
1103
+ accessType="inputOutput"
1104
+ default="NULL"
1105
+ inheritedFrom="X3DMetadataObject"
1106
+ description="Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node."
1107
+ ></field>
1108
+ <field name="diffuseTransmission"
1109
+ type="SFFloat"
1110
+ accessType="inputOutput"
1111
+ default="0"
1112
+ minInclusive="0"
1113
+ description="The percentage of reflected, non-specularly reflected light that is transmitted through the surface via the Lambertian diffuse transmission, i.e., the strength of the diffuse transmission effect."
1114
+ ></field>
1115
+ <field name="diffuseTransmissionTextureMapping"
1116
+ type="SFString"
1117
+ accessType="inputOutput"
1118
+ default=""
1119
+ description="Input/Output field *diffuseTransmissionTextureMapping*."
1120
+ ></field>
1121
+ <field name="diffuseTransmissionTexture"
1122
+ type="SFNode"
1123
+ accessType="inputOutput"
1124
+ default="NULL"
1125
+ inheritedFrom="X3DSingleTextureNode"
1126
+ description="A texture that defines the strength of the diffuse transmission effect, stored in the alpha (A) channel. Will be multiplied by the diffuseTransmissionFactor."
1127
+ ></field>
1128
+ <field name="diffuseTransmissionColor"
1129
+ type="SFColor"
1130
+ accessType="inputOutput"
1131
+ default="1 1 1"
1132
+ minInclusive="0"
1133
+ maxInclusive="1"
1134
+ description="The color of the transmitted light."
1135
+ ></field>
1136
+ <field name="diffuseTransmissionColorTextureMapping"
1137
+ type="SFString"
1138
+ accessType="inputOutput"
1139
+ default=""
1140
+ description="Input/Output field *diffuseTransmissionColorTextureMapping*."
1141
+ ></field>
1142
+ <field name="diffuseTransmissionColorTexture"
1143
+ type="SFNode"
1144
+ accessType="inputOutput"
1145
+ default="NULL"
1146
+ inheritedFrom="X3DSingleTextureNode"
1147
+ description="A texture that defines the color of the transmitted light, stored in the RGB channels and encoded in sRGB. This texture will be multiplied by diffuseTransmissionColorFactor."
1148
+ ></field>
1149
+ <containerField default="extensions" type="xs:NMTOKEN" />
1150
+ </InterfaceDefinition>
1151
+ </ConcreteNode>
1152
+
1095
1153
  </ConcreteNodes>
1096
1154
  </X3dUnifiedObjectModel>