@rtzh/engine 0.0.4 → 0.0.5

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 (180) hide show
  1. package/Build/Workers/{chunk-HAY6YE7M.js → chunk-23CHWHW6.js} +4 -4
  2. package/Build/Workers/{chunk-TSAJNE4K.js → chunk-27JI7F7B.js} +2 -2
  3. package/Build/Workers/{chunk-OVPPHDU7.js → chunk-2OWEFNS4.js} +4 -4
  4. package/Build/Workers/{chunk-YBVMSCW4.js → chunk-2VN5W6HA.js} +5 -5
  5. package/Build/Workers/{chunk-OOB2KZC6.js → chunk-2YAONTGQ.js} +7 -7
  6. package/Build/Workers/{chunk-JH27ZGLN.js → chunk-324L25HV.js} +6 -6
  7. package/Build/Workers/{chunk-6LZBBEA7.js → chunk-3EZBCDBK.js} +9 -9
  8. package/Build/Workers/{chunk-25BA4527.js → chunk-3JPA6GA3.js} +12 -12
  9. package/Build/Workers/{chunk-6XJO625E.js → chunk-3WRJXCJS.js} +5 -5
  10. package/Build/Workers/{chunk-SBFTVHRW.js → chunk-3ZJ6X3BW.js} +5 -5
  11. package/Build/Workers/{chunk-B2VFNYD7.js → chunk-42I3QSKJ.js} +1 -1
  12. package/Build/Workers/{chunk-BXBGWQ3Z.js → chunk-4BJHO56J.js} +6 -6
  13. package/Build/Workers/{chunk-WAS3IHIQ.js → chunk-4GPHI5UY.js} +10 -10
  14. package/Build/Workers/{chunk-3M5CRHSG.js → chunk-4NAHNN5G.js} +10 -10
  15. package/Build/Workers/{chunk-Q2DXNFYW.js → chunk-54AFUJNV.js} +11 -11
  16. package/Build/Workers/{chunk-XOVHLPKW.js → chunk-553BNJPP.js} +8 -8
  17. package/Build/Workers/{chunk-GDIBU55R.js → chunk-56MKFDJH.js} +12 -12
  18. package/Build/Workers/{chunk-K4IMD7KH.js → chunk-5DPCF65K.js} +5 -5
  19. package/Build/Workers/{chunk-5QTPACZQ.js → chunk-5MCUZL44.js} +6 -6
  20. package/Build/Workers/{chunk-2BLQ3B4Q.js → chunk-5T4DXPEL.js} +8 -8
  21. package/Build/Workers/{chunk-56XTN5NJ.js → chunk-5UHIRI2A.js} +2 -2
  22. package/Build/Workers/{chunk-5WAG5YKS.js → chunk-664SI23B.js} +12 -12
  23. package/Build/Workers/{chunk-KVDSJXRK.js → chunk-6GNLKYQO.js} +6 -6
  24. package/Build/Workers/{chunk-POY6ZE32.js → chunk-6ZF4QOFM.js} +6 -6
  25. package/Build/Workers/{chunk-ACH67MPW.js → chunk-763Q2YKY.js} +14 -14
  26. package/Build/Workers/{chunk-IELTSYPZ.js → chunk-7R74V5Z3.js} +8 -8
  27. package/Build/Workers/{chunk-PHB5MRHM.js → chunk-7X6CLAD2.js} +9 -9
  28. package/Build/Workers/{chunk-PV5B2YNB.js → chunk-ADQVXDEJ.js} +16 -16
  29. package/Build/Workers/{chunk-7B23DD46.js → chunk-ATC2WXI4.js} +17 -17
  30. package/Build/Workers/{chunk-KVE5EAPO.js → chunk-B5ZUBUPB.js} +14 -14
  31. package/Build/Workers/{chunk-TWF4XRZ6.js → chunk-BHTWF7UG.js} +2 -2
  32. package/Build/Workers/{chunk-UUJXSLQ2.js → chunk-BLZILZWF.js} +16 -16
  33. package/Build/Workers/{chunk-J4MIJCN5.js → chunk-CCPKBCZD.js} +6 -6
  34. package/Build/Workers/{chunk-4HXPSZRC.js → chunk-CMAG5O53.js} +14 -14
  35. package/Build/Workers/{chunk-FJREGHFG.js → chunk-D3FNWB3Q.js} +4 -4
  36. package/Build/Workers/{chunk-HI6X33GO.js → chunk-DAYNPAVN.js} +2 -2
  37. package/Build/Workers/{chunk-EISI2CR2.js → chunk-DKJMD2HX.js} +6 -6
  38. package/Build/Workers/{chunk-AL22JVIA.js → chunk-DVTKM7FF.js} +4 -4
  39. package/Build/Workers/{chunk-ZV42SJKS.js → chunk-FTHCZAWE.js} +2 -2
  40. package/Build/Workers/{chunk-DP76S3IQ.js → chunk-FTXEOX64.js} +17 -17
  41. package/Build/Workers/{chunk-R73BHGGI.js → chunk-FUFHIXPT.js} +4 -4
  42. package/Build/Workers/{chunk-I76SRIKN.js → chunk-G2KELS4I.js} +4 -4
  43. package/Build/Workers/{chunk-KXB3AARU.js → chunk-GCZNJHST.js} +5 -5
  44. package/Build/Workers/{chunk-2CAIFJD5.js → chunk-GJFIEALZ.js} +13 -13
  45. package/Build/Workers/{chunk-NOH3R3YY.js → chunk-HC6DDPFU.js} +7 -7
  46. package/Build/Workers/{chunk-ELXGXAYS.js → chunk-HHN2M3ES.js} +10 -10
  47. package/Build/Workers/{chunk-WLREXLZ7.js → chunk-HHUKBKWS.js} +11 -11
  48. package/Build/Workers/{chunk-TO7TWUET.js → chunk-HLIXASKN.js} +7 -7
  49. package/Build/Workers/{chunk-WMGESUDW.js → chunk-IEBTKCMB.js} +3 -3
  50. package/Build/Workers/{chunk-KFMCOG26.js → chunk-IYXLSOLF.js} +10 -10
  51. package/Build/Workers/{chunk-4Z26IS65.js → chunk-JJD7S2CV.js} +18 -18
  52. package/Build/Workers/{chunk-YPGJSFOO.js → chunk-K6PDZWHZ.js} +5 -5
  53. package/Build/Workers/{chunk-OAOREOSO.js → chunk-KWFCDTXS.js} +9 -9
  54. package/Build/Workers/{chunk-JURLMTV2.js → chunk-LENXRROQ.js} +14 -14
  55. package/Build/Workers/{chunk-5BIQOSBV.js → chunk-MB2ZJQR3.js} +1 -1
  56. package/Build/Workers/{chunk-KBAGFNQ4.js → chunk-MCNY7SPD.js} +5 -5
  57. package/Build/Workers/{chunk-KUAWPGSB.js → chunk-MHEKNHOF.js} +13 -13
  58. package/Build/Workers/{chunk-SOR7PD4V.js → chunk-MRLJERN3.js} +6 -6
  59. package/Build/Workers/{chunk-MLFVICFZ.js → chunk-NOJAQPXU.js} +4 -4
  60. package/Build/Workers/{chunk-VIYQ56Z7.js → chunk-OAFZ26QL.js} +12 -12
  61. package/Build/Workers/{chunk-245NZYCR.js → chunk-OBQVOEPZ.js} +5 -5
  62. package/Build/Workers/{chunk-5CSRWY7L.js → chunk-OC63Z35M.js} +2 -2
  63. package/Build/Workers/{chunk-E2CARZA7.js → chunk-OEAC5XUG.js} +2 -2
  64. package/Build/Workers/{chunk-55IROWAX.js → chunk-OQK27J4J.js} +5 -5
  65. package/Build/Workers/{chunk-LN4NMLYY.js → chunk-OTDNJAYJ.js} +1 -1
  66. package/Build/Workers/{chunk-LPM2FVDN.js → chunk-PGYA2CMO.js} +6 -6
  67. package/Build/Workers/{chunk-EDIUN7V3.js → chunk-PSDWIJMU.js} +7 -7
  68. package/Build/Workers/{chunk-6QVMKRJ4.js → chunk-PW3GQAXA.js} +22 -22
  69. package/Build/Workers/{chunk-DSBEWMOQ.js → chunk-Q2YRPH7V.js} +17 -17
  70. package/Build/Workers/{chunk-KKYQRQ57.js → chunk-QDNIPHD7.js} +12 -12
  71. package/Build/Workers/{chunk-3K2PK2OU.js → chunk-QEGQDFX2.js} +10 -10
  72. package/Build/Workers/{chunk-PLLZB3R4.js → chunk-R5U3MYPS.js} +7 -7
  73. package/Build/Workers/{chunk-IDVURFRN.js → chunk-RJIH4MDC.js} +8 -8
  74. package/Build/Workers/{chunk-7NCJH26L.js → chunk-RO7SDGOD.js} +5 -5
  75. package/Build/Workers/{chunk-KH2OWUUA.js → chunk-RTJ6L5O4.js} +2 -2
  76. package/Build/Workers/{chunk-JFO3ELF3.js → chunk-SCNCHSTQ.js} +6 -6
  77. package/Build/Workers/{chunk-OFJRMGNX.js → chunk-SG56ZOPD.js} +11 -11
  78. package/Build/Workers/{chunk-WO5ZNC7S.js → chunk-SHQEATE2.js} +11 -11
  79. package/Build/Workers/{chunk-D7TGILR3.js → chunk-SPL7JK6K.js} +17 -17
  80. package/Build/Workers/{chunk-VR2L2Y4Z.js → chunk-SYCWSSRX.js} +4 -4
  81. package/Build/Workers/{chunk-HAWJ7FMN.js → chunk-TEZGNCXH.js} +8 -8
  82. package/Build/Workers/{chunk-BOV6T7FO.js → chunk-TIQZUI5N.js} +2 -2
  83. package/Build/Workers/{chunk-S3AE3MZZ.js → chunk-TKJHRY4V.js} +13 -13
  84. package/Build/Workers/{chunk-KHKSE4WQ.js → chunk-TLXEQ5QY.js} +12 -12
  85. package/Build/Workers/{chunk-FVYRV2T6.js → chunk-UIMHSWDJ.js} +6 -6
  86. package/Build/Workers/{chunk-AIW5F22O.js → chunk-UO3AWZR3.js} +6 -6
  87. package/Build/Workers/{chunk-UOD5YNH3.js → chunk-UTXXZ7XH.js} +9 -9
  88. package/Build/Workers/{chunk-HU5P7PMU.js → chunk-V2TRFTCU.js} +7 -7
  89. package/Build/Workers/{chunk-F5LAPCFC.js → chunk-V4I3IKAK.js} +5 -5
  90. package/Build/Workers/{chunk-AVSQILVI.js → chunk-W2EK42GB.js} +1 -1
  91. package/Build/Workers/{chunk-DBKYAGM6.js → chunk-W2OMUTYA.js} +4 -4
  92. package/Build/Workers/{chunk-U364CIW4.js → chunk-WHOEQFL4.js} +10 -10
  93. package/Build/Workers/{chunk-64W2RXA4.js → chunk-XHNWVOIJ.js} +7 -7
  94. package/Build/Workers/{chunk-5VZISKJF.js → chunk-XNKQLSHI.js} +1 -1
  95. package/Build/Workers/{chunk-66YGZWBI.js → chunk-XOXF37BU.js} +7 -7
  96. package/Build/Workers/{chunk-KQIZ7AFF.js → chunk-YC6PFDXQ.js} +16 -16
  97. package/Build/Workers/{chunk-75UGCVME.js → chunk-YFJB3US4.js} +4 -4
  98. package/Build/Workers/{chunk-TDI7UQBO.js → chunk-YMXATXRN.js} +5 -5
  99. package/Build/Workers/{chunk-MQ62ZE2U.js → chunk-YVRD2PO5.js} +5 -5
  100. package/Build/Workers/{chunk-UTWLMOPM.js → chunk-Z24A5EMJ.js} +13 -13
  101. package/Build/Workers/{chunk-P7M4VYFT.js → chunk-Z4IW5XUY.js} +11 -11
  102. package/Build/Workers/{chunk-XJKMLTSH.js → chunk-ZFHCP7RN.js} +10 -10
  103. package/Build/Workers/{chunk-J3FBVUY4.js → chunk-ZHHEFNHL.js} +1 -1
  104. package/Build/Workers/{chunk-BJ6WXQOW.js → chunk-ZI5GDNEV.js} +4 -4
  105. package/Build/Workers/{chunk-QWV2DM66.js → chunk-ZYTMDBCR.js} +4 -4
  106. package/Build/Workers/combineGeometry.js +24 -24
  107. package/Build/Workers/createBoxGeometry.js +18 -18
  108. package/Build/Workers/createBoxOutlineGeometry.js +16 -16
  109. package/Build/Workers/createCircleGeometry.js +26 -26
  110. package/Build/Workers/createCircleOutlineGeometry.js +19 -19
  111. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
  112. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
  113. package/Build/Workers/createCorridorGeometry.js +29 -29
  114. package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
  115. package/Build/Workers/createCylinderGeometry.js +20 -20
  116. package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
  117. package/Build/Workers/createEllipseGeometry.js +26 -26
  118. package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
  119. package/Build/Workers/createEllipsoidGeometry.js +19 -19
  120. package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
  121. package/Build/Workers/createFrustumGeometry.js +18 -18
  122. package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
  123. package/Build/Workers/createGeometry.js +24 -24
  124. package/Build/Workers/createGroundPolylineGeometry.js +22 -22
  125. package/Build/Workers/createPlaneGeometry.js +16 -16
  126. package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
  127. package/Build/Workers/createPolygonGeometry.js +32 -32
  128. package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
  129. package/Build/Workers/createPolylineGeometry.js +25 -25
  130. package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
  131. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
  132. package/Build/Workers/createRectangleGeometry.js +27 -27
  133. package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
  134. package/Build/Workers/createSimplePolylineGeometry.js +23 -23
  135. package/Build/Workers/createSphereGeometry.js +19 -19
  136. package/Build/Workers/createSphereOutlineGeometry.js +18 -18
  137. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  138. package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
  139. package/Build/Workers/createVectorTileGeometries.js +24 -24
  140. package/Build/Workers/createVectorTilePoints.js +13 -13
  141. package/Build/Workers/createVectorTilePolygons.js +22 -22
  142. package/Build/Workers/createVectorTilePolylines.js +14 -14
  143. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
  144. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
  145. package/Build/Workers/createVerticesFromHeightmap.js +22 -22
  146. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
  147. package/Build/Workers/createWallGeometry.js +24 -24
  148. package/Build/Workers/createWallOutlineGeometry.js +23 -23
  149. package/Build/Workers/decodeDraco.js +10 -10
  150. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  151. package/Build/Workers/decodeI3S.js +10 -10
  152. package/Build/Workers/gaussianSplatSorter.js +4 -4
  153. package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
  154. package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
  155. package/Build/Workers/transcodeKTX2.js +6 -6
  156. package/Build/Workers/transferTypedArrayTest.js +1 -1
  157. package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
  158. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
  159. package/Source/Scene/Cesium3DTileset.js +173 -0
  160. package/Source/Scene/Model/BarycentricWireframePipelineStage.js +176 -0
  161. package/Source/Scene/Model/Model.js +174 -2
  162. package/Source/Scene/Model/Model3DTileContent.js +18 -1
  163. package/Source/Scene/Model/ModelRuntimePrimitive.js +12 -1
  164. package/Source/Scene/Model/WireframePipelineStage.js +6 -2
  165. package/Source/Shaders/Model/ModelFS.glsl +12 -0
  166. package/Source/Shaders/Model/ModelFS.js +12 -0
  167. package/Source/Shaders/Model/ModelVS.glsl +4 -0
  168. package/Source/Shaders/Model/ModelVS.js +4 -0
  169. package/index.d.ts +166 -0
  170. package/index.js +66 -65
  171. package/package.json +1 -1
  172. package/Build/Workers/chunk-2APW7KRS.js +0 -101
  173. package/Build/Workers/chunk-6H33B6OL.js +0 -37
  174. package/Build/Workers/chunk-BN4WA7LX.js +0 -75
  175. package/Build/Workers/chunk-DEIMB3B5.js +0 -629
  176. package/Build/Workers/chunk-EKMWNF4U.js +0 -55
  177. package/Build/Workers/chunk-HGIGANIQ.js +0 -163
  178. package/Build/Workers/chunk-UYT2PBMV.js +0 -58
  179. package/Build/Workers/chunk-X65Y2JSA.js +0 -55
  180. package/Build/Workers/chunk-Z356SW7E.js +0 -256
@@ -1,55 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
-
27
- // packages/engine/Source/Core/Intersect.js
28
- var Intersect = {
29
- /**
30
- * Represents that an object is not contained within the frustum.
31
- *
32
- * @type {number}
33
- * @constant
34
- */
35
- OUTSIDE: -1,
36
- /**
37
- * Represents that an object intersects one of the frustum's planes.
38
- *
39
- * @type {number}
40
- * @constant
41
- */
42
- INTERSECTING: 0,
43
- /**
44
- * Represents that an object is fully within the frustum.
45
- *
46
- * @type {number}
47
- * @constant
48
- */
49
- INSIDE: 1
50
- };
51
- var Intersect_default = Object.freeze(Intersect);
52
-
53
- export {
54
- Intersect_default
55
- };
@@ -1,163 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.4
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- defined_default
28
- } from "./chunk-BN4WA7LX.js";
29
-
30
- // packages/engine/Source/Core/DeveloperError.js
31
- function DeveloperError(message) {
32
- this.name = "DeveloperError";
33
- this.message = message;
34
- let stack;
35
- try {
36
- throw new Error();
37
- } catch (e) {
38
- stack = e.stack;
39
- }
40
- this.stack = stack;
41
- }
42
- if (defined_default(Object.create)) {
43
- DeveloperError.prototype = Object.create(Error.prototype);
44
- DeveloperError.prototype.constructor = DeveloperError;
45
- }
46
- DeveloperError.prototype.toString = function() {
47
- let str = `${this.name}: ${this.message}`;
48
- if (defined_default(this.stack)) {
49
- str += `
50
- ${this.stack.toString()}`;
51
- }
52
- return str;
53
- };
54
- DeveloperError.throwInstantiationError = function() {
55
- throw new DeveloperError(
56
- "This function defines an interface and should not be called directly."
57
- );
58
- };
59
- var DeveloperError_default = DeveloperError;
60
-
61
- // packages/engine/Source/Core/Check.js
62
- var Check = {};
63
- Check.typeOf = {};
64
- function getUndefinedErrorMessage(name) {
65
- return `${name} is required, actual value was undefined`;
66
- }
67
- function getFailedTypeErrorMessage(actual, expected, name) {
68
- return `Expected ${name} to be typeof ${expected}, actual typeof was ${actual}`;
69
- }
70
- Check.defined = function(name, test) {
71
- if (!defined_default(test)) {
72
- throw new DeveloperError_default(getUndefinedErrorMessage(name));
73
- }
74
- };
75
- Check.typeOf.func = function(name, test) {
76
- if (typeof test !== "function") {
77
- throw new DeveloperError_default(
78
- getFailedTypeErrorMessage(typeof test, "function", name)
79
- );
80
- }
81
- };
82
- Check.typeOf.string = function(name, test) {
83
- if (typeof test !== "string") {
84
- throw new DeveloperError_default(
85
- getFailedTypeErrorMessage(typeof test, "string", name)
86
- );
87
- }
88
- };
89
- Check.typeOf.number = function(name, test) {
90
- if (typeof test !== "number") {
91
- throw new DeveloperError_default(
92
- getFailedTypeErrorMessage(typeof test, "number", name)
93
- );
94
- }
95
- };
96
- Check.typeOf.number.lessThan = function(name, test, limit) {
97
- Check.typeOf.number(name, test);
98
- if (test >= limit) {
99
- throw new DeveloperError_default(
100
- `Expected ${name} to be less than ${limit}, actual value was ${test}`
101
- );
102
- }
103
- };
104
- Check.typeOf.number.lessThanOrEquals = function(name, test, limit) {
105
- Check.typeOf.number(name, test);
106
- if (test > limit) {
107
- throw new DeveloperError_default(
108
- `Expected ${name} to be less than or equal to ${limit}, actual value was ${test}`
109
- );
110
- }
111
- };
112
- Check.typeOf.number.greaterThan = function(name, test, limit) {
113
- Check.typeOf.number(name, test);
114
- if (test <= limit) {
115
- throw new DeveloperError_default(
116
- `Expected ${name} to be greater than ${limit}, actual value was ${test}`
117
- );
118
- }
119
- };
120
- Check.typeOf.number.greaterThanOrEquals = function(name, test, limit) {
121
- Check.typeOf.number(name, test);
122
- if (test < limit) {
123
- throw new DeveloperError_default(
124
- `Expected ${name} to be greater than or equal to ${limit}, actual value was ${test}`
125
- );
126
- }
127
- };
128
- Check.typeOf.object = function(name, test) {
129
- if (typeof test !== "object") {
130
- throw new DeveloperError_default(
131
- getFailedTypeErrorMessage(typeof test, "object", name)
132
- );
133
- }
134
- };
135
- Check.typeOf.bool = function(name, test) {
136
- if (typeof test !== "boolean") {
137
- throw new DeveloperError_default(
138
- getFailedTypeErrorMessage(typeof test, "boolean", name)
139
- );
140
- }
141
- };
142
- Check.typeOf.bigint = function(name, test) {
143
- if (typeof test !== "bigint") {
144
- throw new DeveloperError_default(
145
- getFailedTypeErrorMessage(typeof test, "bigint", name)
146
- );
147
- }
148
- };
149
- Check.typeOf.number.equals = function(name1, name2, test1, test2) {
150
- Check.typeOf.number(name1, test1);
151
- Check.typeOf.number(name2, test2);
152
- if (test1 !== test2) {
153
- throw new DeveloperError_default(
154
- `${name1} must be equal to ${name2}, the actual values are ${test1} and ${test2}`
155
- );
156
- }
157
- };
158
- var Check_default = Check;
159
-
160
- export {
161
- DeveloperError_default,
162
- Check_default
163
- };
@@ -1,58 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- defined_default
28
- } from "./chunk-AVSQILVI.js";
29
-
30
- // packages/engine/Source/Core/RuntimeError.js
31
- function RuntimeError(message) {
32
- this.name = "RuntimeError";
33
- this.message = message;
34
- let stack;
35
- try {
36
- throw new Error();
37
- } catch (e) {
38
- stack = e.stack;
39
- }
40
- this.stack = stack;
41
- }
42
- if (defined_default(Object.create)) {
43
- RuntimeError.prototype = Object.create(Error.prototype);
44
- RuntimeError.prototype.constructor = RuntimeError;
45
- }
46
- RuntimeError.prototype.toString = function() {
47
- let str = `${this.name}: ${this.message}`;
48
- if (defined_default(this.stack)) {
49
- str += `
50
- ${this.stack.toString()}`;
51
- }
52
- return str;
53
- };
54
- var RuntimeError_default = RuntimeError;
55
-
56
- export {
57
- RuntimeError_default
58
- };
@@ -1,55 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
-
27
- // packages/engine/Source/Core/ArcType.js
28
- var ArcType = {
29
- /**
30
- * Straight line that does not conform to the surface of the ellipsoid.
31
- *
32
- * @type {number}
33
- * @constant
34
- */
35
- NONE: 0,
36
- /**
37
- * Follow geodesic path.
38
- *
39
- * @type {number}
40
- * @constant
41
- */
42
- GEODESIC: 1,
43
- /**
44
- * Follow rhumb or loxodrome path.
45
- *
46
- * @type {number}
47
- * @constant
48
- */
49
- RHUMB: 2
50
- };
51
- var ArcType_default = Object.freeze(ArcType);
52
-
53
- export {
54
- ArcType_default
55
- };
@@ -1,256 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.4
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- WebGLConstants_default
28
- } from "./chunk-DEIMB3B5.js";
29
- import {
30
- DeveloperError_default
31
- } from "./chunk-HGIGANIQ.js";
32
- import {
33
- defined_default
34
- } from "./chunk-BN4WA7LX.js";
35
-
36
- // packages/engine/Source/Core/ComponentDatatype.js
37
- var ComponentDatatype = {
38
- /**
39
- * 8-bit signed byte corresponding to <code>gl.BYTE</code> and the type
40
- * of an element in <code>Int8Array</code>.
41
- *
42
- * @type {number}
43
- * @constant
44
- */
45
- BYTE: WebGLConstants_default.BYTE,
46
- /**
47
- * 8-bit unsigned byte corresponding to <code>UNSIGNED_BYTE</code> and the type
48
- * of an element in <code>Uint8Array</code>.
49
- *
50
- * @type {number}
51
- * @constant
52
- */
53
- UNSIGNED_BYTE: WebGLConstants_default.UNSIGNED_BYTE,
54
- /**
55
- * 16-bit signed short corresponding to <code>SHORT</code> and the type
56
- * of an element in <code>Int16Array</code>.
57
- *
58
- * @type {number}
59
- * @constant
60
- */
61
- SHORT: WebGLConstants_default.SHORT,
62
- /**
63
- * 16-bit unsigned short corresponding to <code>UNSIGNED_SHORT</code> and the type
64
- * of an element in <code>Uint16Array</code>.
65
- *
66
- * @type {number}
67
- * @constant
68
- */
69
- UNSIGNED_SHORT: WebGLConstants_default.UNSIGNED_SHORT,
70
- /**
71
- * 32-bit signed int corresponding to <code>INT</code> and the type
72
- * of an element in <code>Int32Array</code>.
73
- *
74
- * @memberOf ComponentDatatype
75
- *
76
- * @type {number}
77
- * @constant
78
- */
79
- INT: WebGLConstants_default.INT,
80
- /**
81
- * 32-bit unsigned int corresponding to <code>UNSIGNED_INT</code> and the type
82
- * of an element in <code>Uint32Array</code>.
83
- *
84
- * @memberOf ComponentDatatype
85
- *
86
- * @type {number}
87
- * @constant
88
- */
89
- UNSIGNED_INT: WebGLConstants_default.UNSIGNED_INT,
90
- /**
91
- * 32-bit floating-point corresponding to <code>FLOAT</code> and the type
92
- * of an element in <code>Float32Array</code>.
93
- *
94
- * @type {number}
95
- * @constant
96
- */
97
- FLOAT: WebGLConstants_default.FLOAT,
98
- /**
99
- * 64-bit floating-point corresponding to <code>gl.DOUBLE</code> (in Desktop OpenGL;
100
- * this is not supported in WebGL, and is emulated in Cesium via {@link GeometryPipeline.encodeAttribute})
101
- * and the type of an element in <code>Float64Array</code>.
102
- *
103
- * @memberOf ComponentDatatype
104
- *
105
- * @type {number}
106
- * @constant
107
- * @default 0x140A
108
- */
109
- DOUBLE: WebGLConstants_default.DOUBLE
110
- };
111
- ComponentDatatype.getSizeInBytes = function(componentDatatype) {
112
- if (!defined_default(componentDatatype)) {
113
- throw new DeveloperError_default("value is required.");
114
- }
115
- switch (componentDatatype) {
116
- case ComponentDatatype.BYTE:
117
- return Int8Array.BYTES_PER_ELEMENT;
118
- case ComponentDatatype.UNSIGNED_BYTE:
119
- return Uint8Array.BYTES_PER_ELEMENT;
120
- case ComponentDatatype.SHORT:
121
- return Int16Array.BYTES_PER_ELEMENT;
122
- case ComponentDatatype.UNSIGNED_SHORT:
123
- return Uint16Array.BYTES_PER_ELEMENT;
124
- case ComponentDatatype.INT:
125
- return Int32Array.BYTES_PER_ELEMENT;
126
- case ComponentDatatype.UNSIGNED_INT:
127
- return Uint32Array.BYTES_PER_ELEMENT;
128
- case ComponentDatatype.FLOAT:
129
- return Float32Array.BYTES_PER_ELEMENT;
130
- case ComponentDatatype.DOUBLE:
131
- return Float64Array.BYTES_PER_ELEMENT;
132
- //>>includeStart('debug', pragmas.debug);
133
- default:
134
- throw new DeveloperError_default("componentDatatype is not a valid value.");
135
- }
136
- };
137
- ComponentDatatype.fromTypedArray = function(array) {
138
- if (array instanceof Int8Array) {
139
- return ComponentDatatype.BYTE;
140
- }
141
- if (array instanceof Uint8Array) {
142
- return ComponentDatatype.UNSIGNED_BYTE;
143
- }
144
- if (array instanceof Int16Array) {
145
- return ComponentDatatype.SHORT;
146
- }
147
- if (array instanceof Uint16Array) {
148
- return ComponentDatatype.UNSIGNED_SHORT;
149
- }
150
- if (array instanceof Int32Array) {
151
- return ComponentDatatype.INT;
152
- }
153
- if (array instanceof Uint32Array) {
154
- return ComponentDatatype.UNSIGNED_INT;
155
- }
156
- if (array instanceof Float32Array) {
157
- return ComponentDatatype.FLOAT;
158
- }
159
- if (array instanceof Float64Array) {
160
- return ComponentDatatype.DOUBLE;
161
- }
162
- throw new DeveloperError_default(
163
- "array must be an Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, or Float64Array."
164
- );
165
- };
166
- ComponentDatatype.validate = function(componentDatatype) {
167
- return defined_default(componentDatatype) && (componentDatatype === ComponentDatatype.BYTE || componentDatatype === ComponentDatatype.UNSIGNED_BYTE || componentDatatype === ComponentDatatype.SHORT || componentDatatype === ComponentDatatype.UNSIGNED_SHORT || componentDatatype === ComponentDatatype.INT || componentDatatype === ComponentDatatype.UNSIGNED_INT || componentDatatype === ComponentDatatype.FLOAT || componentDatatype === ComponentDatatype.DOUBLE);
168
- };
169
- ComponentDatatype.createTypedArray = function(componentDatatype, valuesOrLength) {
170
- if (!defined_default(componentDatatype)) {
171
- throw new DeveloperError_default("componentDatatype is required.");
172
- }
173
- if (!defined_default(valuesOrLength)) {
174
- throw new DeveloperError_default("valuesOrLength is required.");
175
- }
176
- switch (componentDatatype) {
177
- case ComponentDatatype.BYTE:
178
- return new Int8Array(valuesOrLength);
179
- case ComponentDatatype.UNSIGNED_BYTE:
180
- return new Uint8Array(valuesOrLength);
181
- case ComponentDatatype.SHORT:
182
- return new Int16Array(valuesOrLength);
183
- case ComponentDatatype.UNSIGNED_SHORT:
184
- return new Uint16Array(valuesOrLength);
185
- case ComponentDatatype.INT:
186
- return new Int32Array(valuesOrLength);
187
- case ComponentDatatype.UNSIGNED_INT:
188
- return new Uint32Array(valuesOrLength);
189
- case ComponentDatatype.FLOAT:
190
- return new Float32Array(valuesOrLength);
191
- case ComponentDatatype.DOUBLE:
192
- return new Float64Array(valuesOrLength);
193
- //>>includeStart('debug', pragmas.debug);
194
- default:
195
- throw new DeveloperError_default("componentDatatype is not a valid value.");
196
- }
197
- };
198
- ComponentDatatype.createArrayBufferView = function(componentDatatype, buffer, byteOffset, length) {
199
- if (!defined_default(componentDatatype)) {
200
- throw new DeveloperError_default("componentDatatype is required.");
201
- }
202
- if (!defined_default(buffer)) {
203
- throw new DeveloperError_default("buffer is required.");
204
- }
205
- byteOffset = byteOffset ?? 0;
206
- length = length ?? (buffer.byteLength - byteOffset) / ComponentDatatype.getSizeInBytes(componentDatatype);
207
- switch (componentDatatype) {
208
- case ComponentDatatype.BYTE:
209
- return new Int8Array(buffer, byteOffset, length);
210
- case ComponentDatatype.UNSIGNED_BYTE:
211
- return new Uint8Array(buffer, byteOffset, length);
212
- case ComponentDatatype.SHORT:
213
- return new Int16Array(buffer, byteOffset, length);
214
- case ComponentDatatype.UNSIGNED_SHORT:
215
- return new Uint16Array(buffer, byteOffset, length);
216
- case ComponentDatatype.INT:
217
- return new Int32Array(buffer, byteOffset, length);
218
- case ComponentDatatype.UNSIGNED_INT:
219
- return new Uint32Array(buffer, byteOffset, length);
220
- case ComponentDatatype.FLOAT:
221
- return new Float32Array(buffer, byteOffset, length);
222
- case ComponentDatatype.DOUBLE:
223
- return new Float64Array(buffer, byteOffset, length);
224
- //>>includeStart('debug', pragmas.debug);
225
- default:
226
- throw new DeveloperError_default("componentDatatype is not a valid value.");
227
- }
228
- };
229
- ComponentDatatype.fromName = function(name) {
230
- switch (name) {
231
- case "BYTE":
232
- return ComponentDatatype.BYTE;
233
- case "UNSIGNED_BYTE":
234
- return ComponentDatatype.UNSIGNED_BYTE;
235
- case "SHORT":
236
- return ComponentDatatype.SHORT;
237
- case "UNSIGNED_SHORT":
238
- return ComponentDatatype.UNSIGNED_SHORT;
239
- case "INT":
240
- return ComponentDatatype.INT;
241
- case "UNSIGNED_INT":
242
- return ComponentDatatype.UNSIGNED_INT;
243
- case "FLOAT":
244
- return ComponentDatatype.FLOAT;
245
- case "DOUBLE":
246
- return ComponentDatatype.DOUBLE;
247
- //>>includeStart('debug', pragmas.debug);
248
- default:
249
- throw new DeveloperError_default("name is not a valid value.");
250
- }
251
- };
252
- var ComponentDatatype_default = Object.freeze(ComponentDatatype);
253
-
254
- export {
255
- ComponentDatatype_default
256
- };