@rtzh/engine 0.0.1 → 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 (115) hide show
  1. package/Source/Scene/GltfLoader.js +2 -2
  2. package/Source/Scene/Model/CustomShader.js +2 -2
  3. package/index.js +504 -504
  4. package/package.json +1 -1
  5. package/Build/ThirdParty/Workers/zip-web-worker.js +0 -640
  6. package/Build/Workers/chunk-245NZYCR.js +0 -124
  7. package/Build/Workers/chunk-25BA4527.js +0 -837
  8. package/Build/Workers/chunk-4HXPSZRC.js +0 -1483
  9. package/Build/Workers/chunk-4Z26IS65.js +0 -3514
  10. package/Build/Workers/chunk-55IROWAX.js +0 -139
  11. package/Build/Workers/chunk-56XTN5NJ.js +0 -1800
  12. package/Build/Workers/chunk-5VZISKJF.js +0 -629
  13. package/Build/Workers/chunk-5WAG5YKS.js +0 -368
  14. package/Build/Workers/chunk-66YGZWBI.js +0 -1317
  15. package/Build/Workers/chunk-6H33B6OL.js +0 -37
  16. package/Build/Workers/chunk-6LZBBEA7.js +0 -439
  17. package/Build/Workers/chunk-6XJO625E.js +0 -497
  18. package/Build/Workers/chunk-75UGCVME.js +0 -102
  19. package/Build/Workers/chunk-7B23DD46.js +0 -1054
  20. package/Build/Workers/chunk-7NCJH26L.js +0 -352
  21. package/Build/Workers/chunk-AIW5F22O.js +0 -352
  22. package/Build/Workers/chunk-AL22JVIA.js +0 -256
  23. package/Build/Workers/chunk-AVSQILVI.js +0 -75
  24. package/Build/Workers/chunk-B2VFNYD7.js +0 -280
  25. package/Build/Workers/chunk-BOV6T7FO.js +0 -44
  26. package/Build/Workers/chunk-DP76S3IQ.js +0 -1067
  27. package/Build/Workers/chunk-EDIUN7V3.js +0 -219
  28. package/Build/Workers/chunk-EKMWNF4U.js +0 -55
  29. package/Build/Workers/chunk-ELXGXAYS.js +0 -682
  30. package/Build/Workers/chunk-FVYRV2T6.js +0 -455
  31. package/Build/Workers/chunk-GDIBU55R.js +0 -778
  32. package/Build/Workers/chunk-HAY6YE7M.js +0 -97
  33. package/Build/Workers/chunk-I76SRIKN.js +0 -138
  34. package/Build/Workers/chunk-IELTSYPZ.js +0 -241
  35. package/Build/Workers/chunk-J4MIJCN5.js +0 -171
  36. package/Build/Workers/chunk-JFO3ELF3.js +0 -642
  37. package/Build/Workers/chunk-K4IMD7KH.js +0 -162
  38. package/Build/Workers/chunk-KFMCOG26.js +0 -692
  39. package/Build/Workers/chunk-KH2OWUUA.js +0 -163
  40. package/Build/Workers/chunk-KQIZ7AFF.js +0 -8366
  41. package/Build/Workers/chunk-KVE5EAPO.js +0 -398
  42. package/Build/Workers/chunk-OAOREOSO.js +0 -940
  43. package/Build/Workers/chunk-OFJRMGNX.js +0 -788
  44. package/Build/Workers/chunk-PLLZB3R4.js +0 -198
  45. package/Build/Workers/chunk-POY6ZE32.js +0 -2058
  46. package/Build/Workers/chunk-PV5B2YNB.js +0 -2719
  47. package/Build/Workers/chunk-Q2DXNFYW.js +0 -414
  48. package/Build/Workers/chunk-QWV2DM66.js +0 -1443
  49. package/Build/Workers/chunk-R73BHGGI.js +0 -305
  50. package/Build/Workers/chunk-S3AE3MZZ.js +0 -511
  51. package/Build/Workers/chunk-SBFTVHRW.js +0 -57
  52. package/Build/Workers/chunk-SOR7PD4V.js +0 -114
  53. package/Build/Workers/chunk-TO7TWUET.js +0 -476
  54. package/Build/Workers/chunk-TSAJNE4K.js +0 -101
  55. package/Build/Workers/chunk-TWF4XRZ6.js +0 -73
  56. package/Build/Workers/chunk-UTWLMOPM.js +0 -387
  57. package/Build/Workers/chunk-UYT2PBMV.js +0 -58
  58. package/Build/Workers/chunk-WAS3IHIQ.js +0 -288
  59. package/Build/Workers/chunk-WO5ZNC7S.js +0 -1045
  60. package/Build/Workers/chunk-X65Y2JSA.js +0 -55
  61. package/Build/Workers/chunk-XOVHLPKW.js +0 -299
  62. package/Build/Workers/chunk-YPGJSFOO.js +0 -1460
  63. package/Build/Workers/combineGeometry.js +0 -66
  64. package/Build/Workers/createBoxGeometry.js +0 -58
  65. package/Build/Workers/createBoxOutlineGeometry.js +0 -231
  66. package/Build/Workers/createCircleGeometry.js +0 -201
  67. package/Build/Workers/createCircleOutlineGeometry.js +0 -147
  68. package/Build/Workers/createCoplanarPolygonGeometry.js +0 -505
  69. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +0 -225
  70. package/Build/Workers/createCorridorGeometry.js +0 -1258
  71. package/Build/Workers/createCorridorOutlineGeometry.js +0 -563
  72. package/Build/Workers/createCylinderGeometry.js +0 -60
  73. package/Build/Workers/createCylinderOutlineGeometry.js +0 -231
  74. package/Build/Workers/createEllipseGeometry.js +0 -72
  75. package/Build/Workers/createEllipseOutlineGeometry.js +0 -65
  76. package/Build/Workers/createEllipsoidGeometry.js +0 -59
  77. package/Build/Workers/createEllipsoidOutlineGeometry.js +0 -61
  78. package/Build/Workers/createFrustumGeometry.js +0 -58
  79. package/Build/Workers/createFrustumOutlineGeometry.js +0 -234
  80. package/Build/Workers/createGeometry.js +0 -173
  81. package/Build/Workers/createGroundPolylineGeometry.js +0 -1602
  82. package/Build/Workers/createPlaneGeometry.js +0 -223
  83. package/Build/Workers/createPlaneOutlineGeometry.js +0 -124
  84. package/Build/Workers/createPolygonGeometry.js +0 -1404
  85. package/Build/Workers/createPolygonOutlineGeometry.js +0 -532
  86. package/Build/Workers/createPolylineGeometry.js +0 -491
  87. package/Build/Workers/createPolylineVolumeGeometry.js +0 -374
  88. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +0 -272
  89. package/Build/Workers/createRectangleGeometry.js +0 -1264
  90. package/Build/Workers/createRectangleOutlineGeometry.js +0 -476
  91. package/Build/Workers/createSimplePolylineGeometry.js +0 -397
  92. package/Build/Workers/createSphereGeometry.js +0 -116
  93. package/Build/Workers/createSphereOutlineGeometry.js +0 -116
  94. package/Build/Workers/createTaskProcessorWorker.js +0 -32
  95. package/Build/Workers/createVectorTileClampedPolylines.js +0 -492
  96. package/Build/Workers/createVectorTileGeometries.js +0 -387
  97. package/Build/Workers/createVectorTilePoints.js +0 -114
  98. package/Build/Workers/createVectorTilePolygons.js +0 -386
  99. package/Build/Workers/createVectorTilePolylines.js +0 -262
  100. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +0 -91
  101. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -565
  102. package/Build/Workers/createVerticesFromHeightmap.js +0 -2254
  103. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -499
  104. package/Build/Workers/createWallGeometry.js +0 -487
  105. package/Build/Workers/createWallOutlineGeometry.js +0 -335
  106. package/Build/Workers/decodeDraco.js +0 -369
  107. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +0 -2680
  108. package/Build/Workers/decodeI3S.js +0 -1339
  109. package/Build/Workers/gaussianSplatSorter.js +0 -62
  110. package/Build/Workers/gaussianSplatTextureGenerator.js +0 -68
  111. package/Build/Workers/incrementallyBuildTerrainPicker.js +0 -121
  112. package/Build/Workers/transcodeKTX2.js +0 -3463
  113. package/Build/Workers/transferTypedArrayTest.js +0 -41
  114. package/Build/Workers/upsampleQuantizedTerrainMesh.js +0 -820
  115. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +0 -95
@@ -1,387 +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
- EllipseGeometryLibrary_default
28
- } from "./chunk-R73BHGGI.js";
29
- import {
30
- GeometryOffsetAttribute_default
31
- } from "./chunk-6H33B6OL.js";
32
- import {
33
- IndexDatatype_default
34
- } from "./chunk-55IROWAX.js";
35
- import {
36
- GeometryAttributes_default
37
- } from "./chunk-BOV6T7FO.js";
38
- import {
39
- GeometryAttribute_default,
40
- Geometry_default,
41
- PrimitiveType_default
42
- } from "./chunk-XOVHLPKW.js";
43
- import {
44
- BoundingSphere_default
45
- } from "./chunk-OAOREOSO.js";
46
- import {
47
- ComponentDatatype_default
48
- } from "./chunk-AL22JVIA.js";
49
- import {
50
- Ellipsoid_default
51
- } from "./chunk-YPGJSFOO.js";
52
- import {
53
- Cartesian3_default,
54
- Frozen_default
55
- } from "./chunk-QWV2DM66.js";
56
- import {
57
- Math_default
58
- } from "./chunk-6XJO625E.js";
59
- import {
60
- DeveloperError_default
61
- } from "./chunk-KH2OWUUA.js";
62
- import {
63
- defined_default
64
- } from "./chunk-AVSQILVI.js";
65
-
66
- // packages/engine/Source/Core/EllipseOutlineGeometry.js
67
- var scratchCartesian1 = new Cartesian3_default();
68
- var boundingSphereCenter = new Cartesian3_default();
69
- function computeEllipse(options) {
70
- const center = options.center;
71
- boundingSphereCenter = Cartesian3_default.multiplyByScalar(
72
- options.ellipsoid.geodeticSurfaceNormal(center, boundingSphereCenter),
73
- options.height,
74
- boundingSphereCenter
75
- );
76
- boundingSphereCenter = Cartesian3_default.add(
77
- center,
78
- boundingSphereCenter,
79
- boundingSphereCenter
80
- );
81
- const boundingSphere = new BoundingSphere_default(
82
- boundingSphereCenter,
83
- options.semiMajorAxis
84
- );
85
- const positions = EllipseGeometryLibrary_default.computeEllipsePositions(
86
- options,
87
- false,
88
- true
89
- ).outerPositions;
90
- const attributes = new GeometryAttributes_default({
91
- position: new GeometryAttribute_default({
92
- componentDatatype: ComponentDatatype_default.DOUBLE,
93
- componentsPerAttribute: 3,
94
- values: EllipseGeometryLibrary_default.raisePositionsToHeight(
95
- positions,
96
- options,
97
- false
98
- )
99
- })
100
- });
101
- const length = positions.length / 3;
102
- const indices = IndexDatatype_default.createTypedArray(length, length * 2);
103
- let index = 0;
104
- for (let i = 0; i < length; ++i) {
105
- indices[index++] = i;
106
- indices[index++] = (i + 1) % length;
107
- }
108
- return {
109
- boundingSphere,
110
- attributes,
111
- indices
112
- };
113
- }
114
- var topBoundingSphere = new BoundingSphere_default();
115
- var bottomBoundingSphere = new BoundingSphere_default();
116
- function computeExtrudedEllipse(options) {
117
- const center = options.center;
118
- const ellipsoid = options.ellipsoid;
119
- const semiMajorAxis = options.semiMajorAxis;
120
- let scaledNormal = Cartesian3_default.multiplyByScalar(
121
- ellipsoid.geodeticSurfaceNormal(center, scratchCartesian1),
122
- options.height,
123
- scratchCartesian1
124
- );
125
- topBoundingSphere.center = Cartesian3_default.add(
126
- center,
127
- scaledNormal,
128
- topBoundingSphere.center
129
- );
130
- topBoundingSphere.radius = semiMajorAxis;
131
- scaledNormal = Cartesian3_default.multiplyByScalar(
132
- ellipsoid.geodeticSurfaceNormal(center, scaledNormal),
133
- options.extrudedHeight,
134
- scaledNormal
135
- );
136
- bottomBoundingSphere.center = Cartesian3_default.add(
137
- center,
138
- scaledNormal,
139
- bottomBoundingSphere.center
140
- );
141
- bottomBoundingSphere.radius = semiMajorAxis;
142
- let positions = EllipseGeometryLibrary_default.computeEllipsePositions(
143
- options,
144
- false,
145
- true
146
- ).outerPositions;
147
- const attributes = new GeometryAttributes_default({
148
- position: new GeometryAttribute_default({
149
- componentDatatype: ComponentDatatype_default.DOUBLE,
150
- componentsPerAttribute: 3,
151
- values: EllipseGeometryLibrary_default.raisePositionsToHeight(
152
- positions,
153
- options,
154
- true
155
- )
156
- })
157
- });
158
- positions = attributes.position.values;
159
- const boundingSphere = BoundingSphere_default.union(
160
- topBoundingSphere,
161
- bottomBoundingSphere
162
- );
163
- let length = positions.length / 3;
164
- if (defined_default(options.offsetAttribute)) {
165
- let applyOffset = new Uint8Array(length);
166
- if (options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
167
- applyOffset = applyOffset.fill(1, 0, length / 2);
168
- } else {
169
- const offsetValue = options.offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
170
- applyOffset = applyOffset.fill(offsetValue);
171
- }
172
- attributes.applyOffset = new GeometryAttribute_default({
173
- componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
174
- componentsPerAttribute: 1,
175
- values: applyOffset
176
- });
177
- }
178
- let numberOfVerticalLines = options.numberOfVerticalLines ?? 16;
179
- numberOfVerticalLines = Math_default.clamp(
180
- numberOfVerticalLines,
181
- 0,
182
- length / 2
183
- );
184
- const indices = IndexDatatype_default.createTypedArray(
185
- length,
186
- length * 2 + numberOfVerticalLines * 2
187
- );
188
- length /= 2;
189
- let index = 0;
190
- let i;
191
- for (i = 0; i < length; ++i) {
192
- indices[index++] = i;
193
- indices[index++] = (i + 1) % length;
194
- indices[index++] = i + length;
195
- indices[index++] = (i + 1) % length + length;
196
- }
197
- let numSide;
198
- if (numberOfVerticalLines > 0) {
199
- const numSideLines = Math.min(numberOfVerticalLines, length);
200
- numSide = Math.round(length / numSideLines);
201
- const maxI = Math.min(numSide * numberOfVerticalLines, length);
202
- for (i = 0; i < maxI; i += numSide) {
203
- indices[index++] = i;
204
- indices[index++] = i + length;
205
- }
206
- }
207
- return {
208
- boundingSphere,
209
- attributes,
210
- indices
211
- };
212
- }
213
- function EllipseOutlineGeometry(options) {
214
- options = options ?? Frozen_default.EMPTY_OBJECT;
215
- const center = options.center;
216
- const ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
217
- const semiMajorAxis = options.semiMajorAxis;
218
- const semiMinorAxis = options.semiMinorAxis;
219
- const granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
220
- if (!defined_default(center)) {
221
- throw new DeveloperError_default("center is required.");
222
- }
223
- if (!defined_default(semiMajorAxis)) {
224
- throw new DeveloperError_default("semiMajorAxis is required.");
225
- }
226
- if (!defined_default(semiMinorAxis)) {
227
- throw new DeveloperError_default("semiMinorAxis is required.");
228
- }
229
- if (semiMajorAxis < semiMinorAxis) {
230
- throw new DeveloperError_default(
231
- "semiMajorAxis must be greater than or equal to the semiMinorAxis."
232
- );
233
- }
234
- if (granularity <= 0) {
235
- throw new DeveloperError_default("granularity must be greater than zero.");
236
- }
237
- const height = options.height ?? 0;
238
- const extrudedHeight = options.extrudedHeight ?? height;
239
- this._center = Cartesian3_default.clone(center);
240
- this._semiMajorAxis = semiMajorAxis;
241
- this._semiMinorAxis = semiMinorAxis;
242
- this._ellipsoid = Ellipsoid_default.clone(ellipsoid);
243
- this._rotation = options.rotation ?? 0;
244
- this._height = Math.max(extrudedHeight, height);
245
- this._granularity = granularity;
246
- this._extrudedHeight = Math.min(extrudedHeight, height);
247
- this._numberOfVerticalLines = Math.max(
248
- options.numberOfVerticalLines ?? 16,
249
- 0
250
- );
251
- this._offsetAttribute = options.offsetAttribute;
252
- this._workerName = "createEllipseOutlineGeometry";
253
- }
254
- EllipseOutlineGeometry.packedLength = Cartesian3_default.packedLength + Ellipsoid_default.packedLength + 8;
255
- EllipseOutlineGeometry.pack = function(value, array, startingIndex) {
256
- if (!defined_default(value)) {
257
- throw new DeveloperError_default("value is required");
258
- }
259
- if (!defined_default(array)) {
260
- throw new DeveloperError_default("array is required");
261
- }
262
- startingIndex = startingIndex ?? 0;
263
- Cartesian3_default.pack(value._center, array, startingIndex);
264
- startingIndex += Cartesian3_default.packedLength;
265
- Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
266
- startingIndex += Ellipsoid_default.packedLength;
267
- array[startingIndex++] = value._semiMajorAxis;
268
- array[startingIndex++] = value._semiMinorAxis;
269
- array[startingIndex++] = value._rotation;
270
- array[startingIndex++] = value._height;
271
- array[startingIndex++] = value._granularity;
272
- array[startingIndex++] = value._extrudedHeight;
273
- array[startingIndex++] = value._numberOfVerticalLines;
274
- array[startingIndex] = value._offsetAttribute ?? -1;
275
- return array;
276
- };
277
- var scratchCenter = new Cartesian3_default();
278
- var scratchEllipsoid = new Ellipsoid_default();
279
- var scratchOptions = {
280
- center: scratchCenter,
281
- ellipsoid: scratchEllipsoid,
282
- semiMajorAxis: void 0,
283
- semiMinorAxis: void 0,
284
- rotation: void 0,
285
- height: void 0,
286
- granularity: void 0,
287
- extrudedHeight: void 0,
288
- numberOfVerticalLines: void 0,
289
- offsetAttribute: void 0
290
- };
291
- EllipseOutlineGeometry.unpack = function(array, startingIndex, result) {
292
- if (!defined_default(array)) {
293
- throw new DeveloperError_default("array is required");
294
- }
295
- startingIndex = startingIndex ?? 0;
296
- const center = Cartesian3_default.unpack(array, startingIndex, scratchCenter);
297
- startingIndex += Cartesian3_default.packedLength;
298
- const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
299
- startingIndex += Ellipsoid_default.packedLength;
300
- const semiMajorAxis = array[startingIndex++];
301
- const semiMinorAxis = array[startingIndex++];
302
- const rotation = array[startingIndex++];
303
- const height = array[startingIndex++];
304
- const granularity = array[startingIndex++];
305
- const extrudedHeight = array[startingIndex++];
306
- const numberOfVerticalLines = array[startingIndex++];
307
- const offsetAttribute = array[startingIndex];
308
- if (!defined_default(result)) {
309
- scratchOptions.height = height;
310
- scratchOptions.extrudedHeight = extrudedHeight;
311
- scratchOptions.granularity = granularity;
312
- scratchOptions.rotation = rotation;
313
- scratchOptions.semiMajorAxis = semiMajorAxis;
314
- scratchOptions.semiMinorAxis = semiMinorAxis;
315
- scratchOptions.numberOfVerticalLines = numberOfVerticalLines;
316
- scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
317
- return new EllipseOutlineGeometry(scratchOptions);
318
- }
319
- result._center = Cartesian3_default.clone(center, result._center);
320
- result._ellipsoid = Ellipsoid_default.clone(ellipsoid, result._ellipsoid);
321
- result._semiMajorAxis = semiMajorAxis;
322
- result._semiMinorAxis = semiMinorAxis;
323
- result._rotation = rotation;
324
- result._height = height;
325
- result._granularity = granularity;
326
- result._extrudedHeight = extrudedHeight;
327
- result._numberOfVerticalLines = numberOfVerticalLines;
328
- result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
329
- return result;
330
- };
331
- EllipseOutlineGeometry.createGeometry = function(ellipseGeometry) {
332
- if (ellipseGeometry._semiMajorAxis <= 0 || ellipseGeometry._semiMinorAxis <= 0) {
333
- return;
334
- }
335
- const height = ellipseGeometry._height;
336
- const extrudedHeight = ellipseGeometry._extrudedHeight;
337
- const extrude = !Math_default.equalsEpsilon(
338
- height,
339
- extrudedHeight,
340
- 0,
341
- Math_default.EPSILON2
342
- );
343
- ellipseGeometry._center = ellipseGeometry._ellipsoid.scaleToGeodeticSurface(
344
- ellipseGeometry._center,
345
- ellipseGeometry._center
346
- );
347
- const options = {
348
- center: ellipseGeometry._center,
349
- semiMajorAxis: ellipseGeometry._semiMajorAxis,
350
- semiMinorAxis: ellipseGeometry._semiMinorAxis,
351
- ellipsoid: ellipseGeometry._ellipsoid,
352
- rotation: ellipseGeometry._rotation,
353
- height,
354
- granularity: ellipseGeometry._granularity,
355
- numberOfVerticalLines: ellipseGeometry._numberOfVerticalLines
356
- };
357
- let geometry;
358
- if (extrude) {
359
- options.extrudedHeight = extrudedHeight;
360
- options.offsetAttribute = ellipseGeometry._offsetAttribute;
361
- geometry = computeExtrudedEllipse(options);
362
- } else {
363
- geometry = computeEllipse(options);
364
- if (defined_default(ellipseGeometry._offsetAttribute)) {
365
- const length = geometry.attributes.position.values.length;
366
- const offsetValue = ellipseGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
367
- const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
368
- geometry.attributes.applyOffset = new GeometryAttribute_default({
369
- componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
370
- componentsPerAttribute: 1,
371
- values: applyOffset
372
- });
373
- }
374
- }
375
- return new Geometry_default({
376
- attributes: geometry.attributes,
377
- indices: geometry.indices,
378
- primitiveType: PrimitiveType_default.LINES,
379
- boundingSphere: geometry.boundingSphere,
380
- offsetAttribute: ellipseGeometry._offsetAttribute
381
- });
382
- };
383
- var EllipseOutlineGeometry_default = EllipseOutlineGeometry;
384
-
385
- export {
386
- EllipseOutlineGeometry_default
387
- };
@@ -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
- };