@rtzh/engine 0.0.2 → 0.0.3

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 (113) hide show
  1. package/Source/Scene/GltfLoader.js +2 -2
  2. package/package.json +1 -1
  3. package/Build/ThirdParty/Workers/zip-web-worker.js +0 -640
  4. package/Build/Workers/chunk-245NZYCR.js +0 -124
  5. package/Build/Workers/chunk-25BA4527.js +0 -837
  6. package/Build/Workers/chunk-4HXPSZRC.js +0 -1483
  7. package/Build/Workers/chunk-4Z26IS65.js +0 -3514
  8. package/Build/Workers/chunk-55IROWAX.js +0 -139
  9. package/Build/Workers/chunk-56XTN5NJ.js +0 -1800
  10. package/Build/Workers/chunk-5VZISKJF.js +0 -629
  11. package/Build/Workers/chunk-5WAG5YKS.js +0 -368
  12. package/Build/Workers/chunk-66YGZWBI.js +0 -1317
  13. package/Build/Workers/chunk-6H33B6OL.js +0 -37
  14. package/Build/Workers/chunk-6LZBBEA7.js +0 -439
  15. package/Build/Workers/chunk-6XJO625E.js +0 -497
  16. package/Build/Workers/chunk-75UGCVME.js +0 -102
  17. package/Build/Workers/chunk-7B23DD46.js +0 -1054
  18. package/Build/Workers/chunk-7NCJH26L.js +0 -352
  19. package/Build/Workers/chunk-AIW5F22O.js +0 -352
  20. package/Build/Workers/chunk-AL22JVIA.js +0 -256
  21. package/Build/Workers/chunk-AVSQILVI.js +0 -75
  22. package/Build/Workers/chunk-B2VFNYD7.js +0 -280
  23. package/Build/Workers/chunk-BOV6T7FO.js +0 -44
  24. package/Build/Workers/chunk-DP76S3IQ.js +0 -1067
  25. package/Build/Workers/chunk-EDIUN7V3.js +0 -219
  26. package/Build/Workers/chunk-EKMWNF4U.js +0 -55
  27. package/Build/Workers/chunk-ELXGXAYS.js +0 -682
  28. package/Build/Workers/chunk-FVYRV2T6.js +0 -455
  29. package/Build/Workers/chunk-GDIBU55R.js +0 -778
  30. package/Build/Workers/chunk-HAY6YE7M.js +0 -97
  31. package/Build/Workers/chunk-I76SRIKN.js +0 -138
  32. package/Build/Workers/chunk-IELTSYPZ.js +0 -241
  33. package/Build/Workers/chunk-J4MIJCN5.js +0 -171
  34. package/Build/Workers/chunk-JFO3ELF3.js +0 -642
  35. package/Build/Workers/chunk-K4IMD7KH.js +0 -162
  36. package/Build/Workers/chunk-KFMCOG26.js +0 -692
  37. package/Build/Workers/chunk-KH2OWUUA.js +0 -163
  38. package/Build/Workers/chunk-KQIZ7AFF.js +0 -8366
  39. package/Build/Workers/chunk-KVE5EAPO.js +0 -398
  40. package/Build/Workers/chunk-OAOREOSO.js +0 -940
  41. package/Build/Workers/chunk-OFJRMGNX.js +0 -788
  42. package/Build/Workers/chunk-PLLZB3R4.js +0 -198
  43. package/Build/Workers/chunk-POY6ZE32.js +0 -2058
  44. package/Build/Workers/chunk-PV5B2YNB.js +0 -2719
  45. package/Build/Workers/chunk-Q2DXNFYW.js +0 -414
  46. package/Build/Workers/chunk-QWV2DM66.js +0 -1443
  47. package/Build/Workers/chunk-R73BHGGI.js +0 -305
  48. package/Build/Workers/chunk-S3AE3MZZ.js +0 -511
  49. package/Build/Workers/chunk-SBFTVHRW.js +0 -57
  50. package/Build/Workers/chunk-SOR7PD4V.js +0 -114
  51. package/Build/Workers/chunk-TO7TWUET.js +0 -476
  52. package/Build/Workers/chunk-TSAJNE4K.js +0 -101
  53. package/Build/Workers/chunk-TWF4XRZ6.js +0 -73
  54. package/Build/Workers/chunk-UTWLMOPM.js +0 -387
  55. package/Build/Workers/chunk-UYT2PBMV.js +0 -58
  56. package/Build/Workers/chunk-WAS3IHIQ.js +0 -288
  57. package/Build/Workers/chunk-WO5ZNC7S.js +0 -1045
  58. package/Build/Workers/chunk-X65Y2JSA.js +0 -55
  59. package/Build/Workers/chunk-XOVHLPKW.js +0 -299
  60. package/Build/Workers/chunk-YPGJSFOO.js +0 -1460
  61. package/Build/Workers/combineGeometry.js +0 -66
  62. package/Build/Workers/createBoxGeometry.js +0 -58
  63. package/Build/Workers/createBoxOutlineGeometry.js +0 -231
  64. package/Build/Workers/createCircleGeometry.js +0 -201
  65. package/Build/Workers/createCircleOutlineGeometry.js +0 -147
  66. package/Build/Workers/createCoplanarPolygonGeometry.js +0 -505
  67. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +0 -225
  68. package/Build/Workers/createCorridorGeometry.js +0 -1258
  69. package/Build/Workers/createCorridorOutlineGeometry.js +0 -563
  70. package/Build/Workers/createCylinderGeometry.js +0 -60
  71. package/Build/Workers/createCylinderOutlineGeometry.js +0 -231
  72. package/Build/Workers/createEllipseGeometry.js +0 -72
  73. package/Build/Workers/createEllipseOutlineGeometry.js +0 -65
  74. package/Build/Workers/createEllipsoidGeometry.js +0 -59
  75. package/Build/Workers/createEllipsoidOutlineGeometry.js +0 -61
  76. package/Build/Workers/createFrustumGeometry.js +0 -58
  77. package/Build/Workers/createFrustumOutlineGeometry.js +0 -234
  78. package/Build/Workers/createGeometry.js +0 -173
  79. package/Build/Workers/createGroundPolylineGeometry.js +0 -1602
  80. package/Build/Workers/createPlaneGeometry.js +0 -223
  81. package/Build/Workers/createPlaneOutlineGeometry.js +0 -124
  82. package/Build/Workers/createPolygonGeometry.js +0 -1404
  83. package/Build/Workers/createPolygonOutlineGeometry.js +0 -532
  84. package/Build/Workers/createPolylineGeometry.js +0 -491
  85. package/Build/Workers/createPolylineVolumeGeometry.js +0 -374
  86. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +0 -272
  87. package/Build/Workers/createRectangleGeometry.js +0 -1264
  88. package/Build/Workers/createRectangleOutlineGeometry.js +0 -476
  89. package/Build/Workers/createSimplePolylineGeometry.js +0 -397
  90. package/Build/Workers/createSphereGeometry.js +0 -116
  91. package/Build/Workers/createSphereOutlineGeometry.js +0 -116
  92. package/Build/Workers/createTaskProcessorWorker.js +0 -32
  93. package/Build/Workers/createVectorTileClampedPolylines.js +0 -492
  94. package/Build/Workers/createVectorTileGeometries.js +0 -387
  95. package/Build/Workers/createVectorTilePoints.js +0 -114
  96. package/Build/Workers/createVectorTilePolygons.js +0 -386
  97. package/Build/Workers/createVectorTilePolylines.js +0 -262
  98. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +0 -91
  99. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -565
  100. package/Build/Workers/createVerticesFromHeightmap.js +0 -2254
  101. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -499
  102. package/Build/Workers/createWallGeometry.js +0 -487
  103. package/Build/Workers/createWallOutlineGeometry.js +0 -335
  104. package/Build/Workers/decodeDraco.js +0 -369
  105. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +0 -2680
  106. package/Build/Workers/decodeI3S.js +0 -1339
  107. package/Build/Workers/gaussianSplatSorter.js +0 -62
  108. package/Build/Workers/gaussianSplatTextureGenerator.js +0 -68
  109. package/Build/Workers/incrementallyBuildTerrainPicker.js +0 -121
  110. package/Build/Workers/transcodeKTX2.js +0 -3463
  111. package/Build/Workers/transferTypedArrayTest.js +0 -41
  112. package/Build/Workers/upsampleQuantizedTerrainMesh.js +0 -820
  113. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +0 -95
@@ -1,66 +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
- PrimitivePipeline_default
28
- } from "./chunk-GDIBU55R.js";
29
- import {
30
- createTaskProcessorWorker_default
31
- } from "./chunk-TSAJNE4K.js";
32
- import "./chunk-SOR7PD4V.js";
33
- import "./chunk-PV5B2YNB.js";
34
- import "./chunk-6LZBBEA7.js";
35
- import "./chunk-75UGCVME.js";
36
- import "./chunk-66YGZWBI.js";
37
- import "./chunk-J4MIJCN5.js";
38
- import "./chunk-55IROWAX.js";
39
- import "./chunk-BOV6T7FO.js";
40
- import "./chunk-XOVHLPKW.js";
41
- import "./chunk-OAOREOSO.js";
42
- import "./chunk-EKMWNF4U.js";
43
- import "./chunk-KQIZ7AFF.js";
44
- import "./chunk-POY6ZE32.js";
45
- import "./chunk-AL22JVIA.js";
46
- import "./chunk-5VZISKJF.js";
47
- import "./chunk-UYT2PBMV.js";
48
- import "./chunk-YPGJSFOO.js";
49
- import "./chunk-QWV2DM66.js";
50
- import "./chunk-6XJO625E.js";
51
- import "./chunk-KH2OWUUA.js";
52
- import "./chunk-AVSQILVI.js";
53
-
54
- // packages/engine/Source/Workers/combineGeometry.js
55
- function combineGeometry(packedParameters, transferableObjects) {
56
- const parameters = PrimitivePipeline_default.unpackCombineGeometryParameters(packedParameters);
57
- const results = PrimitivePipeline_default.combineGeometry(parameters);
58
- return PrimitivePipeline_default.packCombineGeometryResults(
59
- results,
60
- transferableObjects
61
- );
62
- }
63
- var combineGeometry_default = createTaskProcessorWorker_default(combineGeometry);
64
- export {
65
- combineGeometry_default as default
66
- };
@@ -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
- BoxGeometry_default
28
- } from "./chunk-ELXGXAYS.js";
29
- import "./chunk-6H33B6OL.js";
30
- import "./chunk-I76SRIKN.js";
31
- import "./chunk-BOV6T7FO.js";
32
- import "./chunk-XOVHLPKW.js";
33
- import "./chunk-OAOREOSO.js";
34
- import "./chunk-EKMWNF4U.js";
35
- import "./chunk-KQIZ7AFF.js";
36
- import "./chunk-POY6ZE32.js";
37
- import "./chunk-AL22JVIA.js";
38
- import "./chunk-5VZISKJF.js";
39
- import "./chunk-UYT2PBMV.js";
40
- import "./chunk-YPGJSFOO.js";
41
- import "./chunk-QWV2DM66.js";
42
- import "./chunk-6XJO625E.js";
43
- import "./chunk-KH2OWUUA.js";
44
- import {
45
- defined_default
46
- } from "./chunk-AVSQILVI.js";
47
-
48
- // packages/engine/Source/Workers/createBoxGeometry.js
49
- function createBoxGeometry(boxGeometry, offset) {
50
- if (defined_default(offset)) {
51
- boxGeometry = BoxGeometry_default.unpack(boxGeometry, offset);
52
- }
53
- return BoxGeometry_default.createGeometry(boxGeometry);
54
- }
55
- var createBoxGeometry_default = createBoxGeometry;
56
- export {
57
- createBoxGeometry_default as default
58
- };
@@ -1,231 +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
- GeometryOffsetAttribute_default
28
- } from "./chunk-6H33B6OL.js";
29
- import {
30
- GeometryAttributes_default
31
- } from "./chunk-BOV6T7FO.js";
32
- import {
33
- GeometryAttribute_default,
34
- Geometry_default,
35
- PrimitiveType_default
36
- } from "./chunk-XOVHLPKW.js";
37
- import {
38
- BoundingSphere_default
39
- } from "./chunk-OAOREOSO.js";
40
- import "./chunk-EKMWNF4U.js";
41
- import "./chunk-KQIZ7AFF.js";
42
- import "./chunk-POY6ZE32.js";
43
- import {
44
- ComponentDatatype_default
45
- } from "./chunk-AL22JVIA.js";
46
- import "./chunk-5VZISKJF.js";
47
- import "./chunk-UYT2PBMV.js";
48
- import "./chunk-YPGJSFOO.js";
49
- import {
50
- Cartesian3_default,
51
- Frozen_default
52
- } from "./chunk-QWV2DM66.js";
53
- import "./chunk-6XJO625E.js";
54
- import {
55
- Check_default,
56
- DeveloperError_default
57
- } from "./chunk-KH2OWUUA.js";
58
- import {
59
- defined_default
60
- } from "./chunk-AVSQILVI.js";
61
-
62
- // packages/engine/Source/Core/BoxOutlineGeometry.js
63
- var diffScratch = new Cartesian3_default();
64
- function BoxOutlineGeometry(options) {
65
- options = options ?? Frozen_default.EMPTY_OBJECT;
66
- const min = options.minimum;
67
- const max = options.maximum;
68
- Check_default.typeOf.object("min", min);
69
- Check_default.typeOf.object("max", max);
70
- if (defined_default(options.offsetAttribute) && options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
71
- throw new DeveloperError_default(
72
- "GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry."
73
- );
74
- }
75
- this._min = Cartesian3_default.clone(min);
76
- this._max = Cartesian3_default.clone(max);
77
- this._offsetAttribute = options.offsetAttribute;
78
- this._workerName = "createBoxOutlineGeometry";
79
- }
80
- BoxOutlineGeometry.fromDimensions = function(options) {
81
- options = options ?? Frozen_default.EMPTY_OBJECT;
82
- const dimensions = options.dimensions;
83
- Check_default.typeOf.object("dimensions", dimensions);
84
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.x", dimensions.x, 0);
85
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.y", dimensions.y, 0);
86
- Check_default.typeOf.number.greaterThanOrEquals("dimensions.z", dimensions.z, 0);
87
- const corner = Cartesian3_default.multiplyByScalar(dimensions, 0.5, new Cartesian3_default());
88
- return new BoxOutlineGeometry({
89
- minimum: Cartesian3_default.negate(corner, new Cartesian3_default()),
90
- maximum: corner,
91
- offsetAttribute: options.offsetAttribute
92
- });
93
- };
94
- BoxOutlineGeometry.fromAxisAlignedBoundingBox = function(boundingBox) {
95
- Check_default.typeOf.object("boundindBox", boundingBox);
96
- return new BoxOutlineGeometry({
97
- minimum: boundingBox.minimum,
98
- maximum: boundingBox.maximum
99
- });
100
- };
101
- BoxOutlineGeometry.packedLength = 2 * Cartesian3_default.packedLength + 1;
102
- BoxOutlineGeometry.pack = function(value, array, startingIndex) {
103
- Check_default.typeOf.object("value", value);
104
- Check_default.defined("array", array);
105
- startingIndex = startingIndex ?? 0;
106
- Cartesian3_default.pack(value._min, array, startingIndex);
107
- Cartesian3_default.pack(value._max, array, startingIndex + Cartesian3_default.packedLength);
108
- array[startingIndex + Cartesian3_default.packedLength * 2] = value._offsetAttribute ?? -1;
109
- return array;
110
- };
111
- var scratchMin = new Cartesian3_default();
112
- var scratchMax = new Cartesian3_default();
113
- var scratchOptions = {
114
- minimum: scratchMin,
115
- maximum: scratchMax,
116
- offsetAttribute: void 0
117
- };
118
- BoxOutlineGeometry.unpack = function(array, startingIndex, result) {
119
- Check_default.defined("array", array);
120
- startingIndex = startingIndex ?? 0;
121
- const min = Cartesian3_default.unpack(array, startingIndex, scratchMin);
122
- const max = Cartesian3_default.unpack(
123
- array,
124
- startingIndex + Cartesian3_default.packedLength,
125
- scratchMax
126
- );
127
- const offsetAttribute = array[startingIndex + Cartesian3_default.packedLength * 2];
128
- if (!defined_default(result)) {
129
- scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
130
- return new BoxOutlineGeometry(scratchOptions);
131
- }
132
- result._min = Cartesian3_default.clone(min, result._min);
133
- result._max = Cartesian3_default.clone(max, result._max);
134
- result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
135
- return result;
136
- };
137
- BoxOutlineGeometry.createGeometry = function(boxGeometry) {
138
- const min = boxGeometry._min;
139
- const max = boxGeometry._max;
140
- if (Cartesian3_default.equals(min, max)) {
141
- return;
142
- }
143
- const attributes = new GeometryAttributes_default();
144
- const indices = new Uint16Array(12 * 2);
145
- const positions = new Float64Array(8 * 3);
146
- positions[0] = min.x;
147
- positions[1] = min.y;
148
- positions[2] = min.z;
149
- positions[3] = max.x;
150
- positions[4] = min.y;
151
- positions[5] = min.z;
152
- positions[6] = max.x;
153
- positions[7] = max.y;
154
- positions[8] = min.z;
155
- positions[9] = min.x;
156
- positions[10] = max.y;
157
- positions[11] = min.z;
158
- positions[12] = min.x;
159
- positions[13] = min.y;
160
- positions[14] = max.z;
161
- positions[15] = max.x;
162
- positions[16] = min.y;
163
- positions[17] = max.z;
164
- positions[18] = max.x;
165
- positions[19] = max.y;
166
- positions[20] = max.z;
167
- positions[21] = min.x;
168
- positions[22] = max.y;
169
- positions[23] = max.z;
170
- attributes.position = new GeometryAttribute_default({
171
- componentDatatype: ComponentDatatype_default.DOUBLE,
172
- componentsPerAttribute: 3,
173
- values: positions
174
- });
175
- indices[0] = 4;
176
- indices[1] = 5;
177
- indices[2] = 5;
178
- indices[3] = 6;
179
- indices[4] = 6;
180
- indices[5] = 7;
181
- indices[6] = 7;
182
- indices[7] = 4;
183
- indices[8] = 0;
184
- indices[9] = 1;
185
- indices[10] = 1;
186
- indices[11] = 2;
187
- indices[12] = 2;
188
- indices[13] = 3;
189
- indices[14] = 3;
190
- indices[15] = 0;
191
- indices[16] = 0;
192
- indices[17] = 4;
193
- indices[18] = 1;
194
- indices[19] = 5;
195
- indices[20] = 2;
196
- indices[21] = 6;
197
- indices[22] = 3;
198
- indices[23] = 7;
199
- const diff = Cartesian3_default.subtract(max, min, diffScratch);
200
- const radius = Cartesian3_default.magnitude(diff) * 0.5;
201
- if (defined_default(boxGeometry._offsetAttribute)) {
202
- const length = positions.length;
203
- const offsetValue = boxGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
204
- const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
205
- attributes.applyOffset = new GeometryAttribute_default({
206
- componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
207
- componentsPerAttribute: 1,
208
- values: applyOffset
209
- });
210
- }
211
- return new Geometry_default({
212
- attributes,
213
- indices,
214
- primitiveType: PrimitiveType_default.LINES,
215
- boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, radius),
216
- offsetAttribute: boxGeometry._offsetAttribute
217
- });
218
- };
219
- var BoxOutlineGeometry_default = BoxOutlineGeometry;
220
-
221
- // packages/engine/Source/Workers/createBoxOutlineGeometry.js
222
- function createBoxOutlineGeometry(boxGeometry, offset) {
223
- if (defined_default(offset)) {
224
- boxGeometry = BoxOutlineGeometry_default.unpack(boxGeometry, offset);
225
- }
226
- return BoxOutlineGeometry_default.createGeometry(boxGeometry);
227
- }
228
- var createBoxOutlineGeometry_default = createBoxOutlineGeometry;
229
- export {
230
- createBoxOutlineGeometry_default as default
231
- };
@@ -1,201 +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
- EllipseGeometry_default
28
- } from "./chunk-DP76S3IQ.js";
29
- import "./chunk-R73BHGGI.js";
30
- import "./chunk-SBFTVHRW.js";
31
- import "./chunk-PV5B2YNB.js";
32
- import "./chunk-6LZBBEA7.js";
33
- import "./chunk-75UGCVME.js";
34
- import "./chunk-6H33B6OL.js";
35
- import {
36
- VertexFormat_default
37
- } from "./chunk-I76SRIKN.js";
38
- import "./chunk-66YGZWBI.js";
39
- import "./chunk-J4MIJCN5.js";
40
- import "./chunk-55IROWAX.js";
41
- import "./chunk-BOV6T7FO.js";
42
- import "./chunk-XOVHLPKW.js";
43
- import "./chunk-OAOREOSO.js";
44
- import "./chunk-EKMWNF4U.js";
45
- import "./chunk-KQIZ7AFF.js";
46
- import "./chunk-POY6ZE32.js";
47
- import "./chunk-AL22JVIA.js";
48
- import "./chunk-5VZISKJF.js";
49
- import "./chunk-UYT2PBMV.js";
50
- import {
51
- Ellipsoid_default
52
- } from "./chunk-YPGJSFOO.js";
53
- import {
54
- Cartesian3_default,
55
- Frozen_default
56
- } from "./chunk-QWV2DM66.js";
57
- import "./chunk-6XJO625E.js";
58
- import {
59
- Check_default
60
- } from "./chunk-KH2OWUUA.js";
61
- import {
62
- defined_default
63
- } from "./chunk-AVSQILVI.js";
64
-
65
- // packages/engine/Source/Core/CircleGeometry.js
66
- function CircleGeometry(options) {
67
- options = options ?? Frozen_default.EMPTY_OBJECT;
68
- const radius = options.radius;
69
- Check_default.typeOf.number("radius", radius);
70
- const ellipseGeometryOptions = {
71
- center: options.center,
72
- semiMajorAxis: radius,
73
- semiMinorAxis: radius,
74
- ellipsoid: options.ellipsoid,
75
- height: options.height,
76
- extrudedHeight: options.extrudedHeight,
77
- granularity: options.granularity,
78
- vertexFormat: options.vertexFormat,
79
- stRotation: options.stRotation,
80
- shadowVolume: options.shadowVolume
81
- };
82
- this._ellipseGeometry = new EllipseGeometry_default(ellipseGeometryOptions);
83
- this._workerName = "createCircleGeometry";
84
- }
85
- CircleGeometry.packedLength = EllipseGeometry_default.packedLength;
86
- CircleGeometry.pack = function(value, array, startingIndex) {
87
- Check_default.typeOf.object("value", value);
88
- return EllipseGeometry_default.pack(value._ellipseGeometry, array, startingIndex);
89
- };
90
- var scratchEllipseGeometry = new EllipseGeometry_default({
91
- center: new Cartesian3_default(),
92
- semiMajorAxis: 1,
93
- semiMinorAxis: 1
94
- });
95
- var scratchOptions = {
96
- center: new Cartesian3_default(),
97
- radius: void 0,
98
- ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.default),
99
- height: void 0,
100
- extrudedHeight: void 0,
101
- granularity: void 0,
102
- vertexFormat: new VertexFormat_default(),
103
- stRotation: void 0,
104
- semiMajorAxis: void 0,
105
- semiMinorAxis: void 0,
106
- shadowVolume: void 0
107
- };
108
- CircleGeometry.unpack = function(array, startingIndex, result) {
109
- const ellipseGeometry = EllipseGeometry_default.unpack(
110
- array,
111
- startingIndex,
112
- scratchEllipseGeometry
113
- );
114
- scratchOptions.center = Cartesian3_default.clone(
115
- ellipseGeometry._center,
116
- scratchOptions.center
117
- );
118
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
119
- ellipseGeometry._ellipsoid,
120
- scratchOptions.ellipsoid
121
- );
122
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
123
- ellipseGeometry._ellipsoid,
124
- scratchEllipseGeometry._ellipsoid
125
- );
126
- scratchOptions.height = ellipseGeometry._height;
127
- scratchOptions.extrudedHeight = ellipseGeometry._extrudedHeight;
128
- scratchOptions.granularity = ellipseGeometry._granularity;
129
- scratchOptions.vertexFormat = VertexFormat_default.clone(
130
- ellipseGeometry._vertexFormat,
131
- scratchOptions.vertexFormat
132
- );
133
- scratchOptions.stRotation = ellipseGeometry._stRotation;
134
- scratchOptions.shadowVolume = ellipseGeometry._shadowVolume;
135
- if (!defined_default(result)) {
136
- scratchOptions.radius = ellipseGeometry._semiMajorAxis;
137
- return new CircleGeometry(scratchOptions);
138
- }
139
- scratchOptions.semiMajorAxis = ellipseGeometry._semiMajorAxis;
140
- scratchOptions.semiMinorAxis = ellipseGeometry._semiMinorAxis;
141
- result._ellipseGeometry = new EllipseGeometry_default(scratchOptions);
142
- return result;
143
- };
144
- CircleGeometry.createGeometry = function(circleGeometry) {
145
- return EllipseGeometry_default.createGeometry(circleGeometry._ellipseGeometry);
146
- };
147
- CircleGeometry.createShadowVolume = function(circleGeometry, minHeightFunc, maxHeightFunc) {
148
- const granularity = circleGeometry._ellipseGeometry._granularity;
149
- const ellipsoid = circleGeometry._ellipseGeometry._ellipsoid;
150
- const minHeight = minHeightFunc(granularity, ellipsoid);
151
- const maxHeight = maxHeightFunc(granularity, ellipsoid);
152
- return new CircleGeometry({
153
- center: circleGeometry._ellipseGeometry._center,
154
- radius: circleGeometry._ellipseGeometry._semiMajorAxis,
155
- ellipsoid,
156
- stRotation: circleGeometry._ellipseGeometry._stRotation,
157
- granularity,
158
- extrudedHeight: minHeight,
159
- height: maxHeight,
160
- vertexFormat: VertexFormat_default.POSITION_ONLY,
161
- shadowVolume: true
162
- });
163
- };
164
- Object.defineProperties(CircleGeometry.prototype, {
165
- /**
166
- * @private
167
- */
168
- rectangle: {
169
- get: function() {
170
- return this._ellipseGeometry.rectangle;
171
- }
172
- },
173
- /**
174
- * For remapping texture coordinates when rendering CircleGeometries as GroundPrimitives.
175
- * @private
176
- */
177
- textureCoordinateRotationPoints: {
178
- get: function() {
179
- return this._ellipseGeometry.textureCoordinateRotationPoints;
180
- }
181
- }
182
- });
183
- var CircleGeometry_default = CircleGeometry;
184
-
185
- // packages/engine/Source/Workers/createCircleGeometry.js
186
- function createCircleGeometry(circleGeometry, offset) {
187
- if (defined_default(offset)) {
188
- circleGeometry = CircleGeometry_default.unpack(circleGeometry, offset);
189
- }
190
- circleGeometry._ellipseGeometry._center = Cartesian3_default.clone(
191
- circleGeometry._ellipseGeometry._center
192
- );
193
- circleGeometry._ellipseGeometry._ellipsoid = Ellipsoid_default.clone(
194
- circleGeometry._ellipseGeometry._ellipsoid
195
- );
196
- return CircleGeometry_default.createGeometry(circleGeometry);
197
- }
198
- var createCircleGeometry_default = createCircleGeometry;
199
- export {
200
- createCircleGeometry_default as default
201
- };
@@ -1,147 +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
- EllipseOutlineGeometry_default
28
- } from "./chunk-UTWLMOPM.js";
29
- import "./chunk-R73BHGGI.js";
30
- import "./chunk-6H33B6OL.js";
31
- import "./chunk-55IROWAX.js";
32
- import "./chunk-BOV6T7FO.js";
33
- import "./chunk-XOVHLPKW.js";
34
- import "./chunk-OAOREOSO.js";
35
- import "./chunk-EKMWNF4U.js";
36
- import "./chunk-KQIZ7AFF.js";
37
- import "./chunk-POY6ZE32.js";
38
- import "./chunk-AL22JVIA.js";
39
- import "./chunk-5VZISKJF.js";
40
- import "./chunk-UYT2PBMV.js";
41
- import {
42
- Ellipsoid_default
43
- } from "./chunk-YPGJSFOO.js";
44
- import {
45
- Cartesian3_default,
46
- Frozen_default
47
- } from "./chunk-QWV2DM66.js";
48
- import "./chunk-6XJO625E.js";
49
- import {
50
- Check_default
51
- } from "./chunk-KH2OWUUA.js";
52
- import {
53
- defined_default
54
- } from "./chunk-AVSQILVI.js";
55
-
56
- // packages/engine/Source/Core/CircleOutlineGeometry.js
57
- function CircleOutlineGeometry(options) {
58
- options = options ?? Frozen_default.EMPTY_OBJECT;
59
- const radius = options.radius;
60
- Check_default.typeOf.number("radius", radius);
61
- const ellipseGeometryOptions = {
62
- center: options.center,
63
- semiMajorAxis: radius,
64
- semiMinorAxis: radius,
65
- ellipsoid: options.ellipsoid,
66
- height: options.height,
67
- extrudedHeight: options.extrudedHeight,
68
- granularity: options.granularity,
69
- numberOfVerticalLines: options.numberOfVerticalLines
70
- };
71
- this._ellipseGeometry = new EllipseOutlineGeometry_default(ellipseGeometryOptions);
72
- this._workerName = "createCircleOutlineGeometry";
73
- }
74
- CircleOutlineGeometry.packedLength = EllipseOutlineGeometry_default.packedLength;
75
- CircleOutlineGeometry.pack = function(value, array, startingIndex) {
76
- Check_default.typeOf.object("value", value);
77
- return EllipseOutlineGeometry_default.pack(
78
- value._ellipseGeometry,
79
- array,
80
- startingIndex
81
- );
82
- };
83
- var scratchEllipseGeometry = new EllipseOutlineGeometry_default({
84
- center: new Cartesian3_default(),
85
- semiMajorAxis: 1,
86
- semiMinorAxis: 1
87
- });
88
- var scratchOptions = {
89
- center: new Cartesian3_default(),
90
- radius: void 0,
91
- ellipsoid: Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE),
92
- height: void 0,
93
- extrudedHeight: void 0,
94
- granularity: void 0,
95
- numberOfVerticalLines: void 0,
96
- semiMajorAxis: void 0,
97
- semiMinorAxis: void 0
98
- };
99
- CircleOutlineGeometry.unpack = function(array, startingIndex, result) {
100
- const ellipseGeometry = EllipseOutlineGeometry_default.unpack(
101
- array,
102
- startingIndex,
103
- scratchEllipseGeometry
104
- );
105
- scratchOptions.center = Cartesian3_default.clone(
106
- ellipseGeometry._center,
107
- scratchOptions.center
108
- );
109
- scratchOptions.ellipsoid = Ellipsoid_default.clone(
110
- ellipseGeometry._ellipsoid,
111
- scratchOptions.ellipsoid
112
- );
113
- scratchOptions.height = ellipseGeometry._height;
114
- scratchOptions.extrudedHeight = ellipseGeometry._extrudedHeight;
115
- scratchOptions.granularity = ellipseGeometry._granularity;
116
- scratchOptions.numberOfVerticalLines = ellipseGeometry._numberOfVerticalLines;
117
- if (!defined_default(result)) {
118
- scratchOptions.radius = ellipseGeometry._semiMajorAxis;
119
- return new CircleOutlineGeometry(scratchOptions);
120
- }
121
- scratchOptions.semiMajorAxis = ellipseGeometry._semiMajorAxis;
122
- scratchOptions.semiMinorAxis = ellipseGeometry._semiMinorAxis;
123
- result._ellipseGeometry = new EllipseOutlineGeometry_default(scratchOptions);
124
- return result;
125
- };
126
- CircleOutlineGeometry.createGeometry = function(circleGeometry) {
127
- return EllipseOutlineGeometry_default.createGeometry(circleGeometry._ellipseGeometry);
128
- };
129
- var CircleOutlineGeometry_default = CircleOutlineGeometry;
130
-
131
- // packages/engine/Source/Workers/createCircleOutlineGeometry.js
132
- function createCircleOutlineGeometry(circleGeometry, offset) {
133
- if (defined_default(offset)) {
134
- circleGeometry = CircleOutlineGeometry_default.unpack(circleGeometry, offset);
135
- }
136
- circleGeometry._ellipseGeometry._center = Cartesian3_default.clone(
137
- circleGeometry._ellipseGeometry._center
138
- );
139
- circleGeometry._ellipseGeometry._ellipsoid = Ellipsoid_default.clone(
140
- circleGeometry._ellipseGeometry._ellipsoid
141
- );
142
- return CircleOutlineGeometry_default.createGeometry(circleGeometry);
143
- }
144
- var createCircleOutlineGeometry_default = createCircleOutlineGeometry;
145
- export {
146
- createCircleOutlineGeometry_default as default
147
- };