deeptwins-cesium-engine 0.0.39 → 0.0.40
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.
- package/Build/Workers/chunk-22YARAUJ.js +629 -0
- package/Build/Workers/chunk-2HVM4MOI.js +220 -0
- package/Build/Workers/chunk-2PWEYBYR.js +75 -0
- package/Build/Workers/chunk-2ZI2BRKI.js +37 -0
- package/Build/Workers/chunk-3Q6HPHTH.js +684 -0
- package/Build/Workers/chunk-4LE3SGQH.js +634 -0
- package/Build/Workers/chunk-5IBSBFAA.js +287 -0
- package/Build/Workers/chunk-5ZELPLWF.js +58 -0
- package/Build/Workers/chunk-73EDFMPB.js +1073 -0
- package/Build/Workers/chunk-ALIDMMNJ.js +10357 -0
- package/Build/Workers/chunk-AXTXYHVG.js +59 -0
- package/Build/Workers/chunk-B3DSUDQQ.js +101 -0
- package/Build/Workers/chunk-B7R4KLQV.js +959 -0
- package/Build/Workers/chunk-CET7MMFD.js +1055 -0
- package/Build/Workers/chunk-DGWWFN6L.js +102 -0
- package/Build/Workers/chunk-DPZEBUVY.js +122 -0
- package/Build/Workers/chunk-EKUYACAZ.js +163 -0
- package/Build/Workers/chunk-ETQJFLBY.js +435 -0
- package/Build/Workers/chunk-HDJDQBU6.js +758 -0
- package/Build/Workers/chunk-HOO3H5M5.js +171 -0
- package/Build/Workers/chunk-JRFRSSGD.js +1800 -0
- package/Build/Workers/chunk-KMDXAR34.js +1481 -0
- package/Build/Workers/chunk-KZDZFG2L.js +157 -0
- package/Build/Workers/chunk-LDXSEGOX.js +2857 -0
- package/Build/Workers/chunk-LYJFG66W.js +196 -0
- package/Build/Workers/chunk-N2UJHZ4W.js +368 -0
- package/Build/Workers/chunk-NZU4VBYI.js +834 -0
- package/Build/Workers/chunk-OY2Z6SFD.js +100 -0
- package/Build/Workers/chunk-PA4JZFFM.js +353 -0
- package/Build/Workers/chunk-QUJ6BNQF.js +39 -0
- package/Build/Workers/chunk-ROPEB47Y.js +300 -0
- package/Build/Workers/chunk-S3RIIJID.js +781 -0
- package/Build/Workers/chunk-SPS2I45W.js +73 -0
- package/Build/Workers/chunk-TBJBVKDE.js +262 -0
- package/Build/Workers/chunk-TJAONFQM.js +44 -0
- package/Build/Workers/chunk-TJNJ6CLS.js +239 -0
- package/Build/Workers/chunk-U4SUBL6L.js +390 -0
- package/Build/Workers/chunk-U6RITS73.js +456 -0
- package/Build/Workers/chunk-UHPBZJQF.js +2717 -0
- package/Build/Workers/chunk-UHS2YM44.js +115 -0
- package/Build/Workers/chunk-UN3RMNI2.js +500 -0
- package/Build/Workers/chunk-UYS2HZVM.js +421 -0
- package/Build/Workers/chunk-VSEDVQN7.js +305 -0
- package/Build/Workers/chunk-W7KOAHR2.js +691 -0
- package/Build/Workers/chunk-WGHS4HMU.js +55 -0
- package/Build/Workers/chunk-XV4SYFDP.js +138 -0
- package/Build/Workers/chunk-XX7RETEX.js +1258 -0
- package/Build/Workers/chunk-XYMJZUFF.js +476 -0
- package/Build/Workers/chunk-YCU6WHSN.js +963 -0
- package/Build/Workers/chunk-YWEX5QFW.js +398 -0
- package/Build/Workers/chunk-Z2WOKKJM.js +511 -0
- package/Build/Workers/chunk-ZYUOPFWQ.js +139 -0
- package/Build/Workers/combineGeometry.js +22 -22
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +24 -24
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +27 -27
- package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +22 -22
- package/Build/Workers/createGroundPolylineGeometry.js +20 -20
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +30 -30
- package/Build/Workers/createPolygonOutlineGeometry.js +28 -28
- package/Build/Workers/createPolylineGeometry.js +23 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +29 -29
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/Build/Workers/createRectangleGeometry.js +25 -25
- package/Build/Workers/createRectangleOutlineGeometry.js +18 -18
- package/Build/Workers/createSimplePolylineGeometry.js +21 -21
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
- package/Build/Workers/createVerticesFromHeightmap.js +20 -20
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/Build/Workers/createWallGeometry.js +22 -22
- package/Build/Workers/createWallOutlineGeometry.js +21 -21
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Scene/Billboard.js +22 -0
- package/Source/Scene/BillboardTexture.js +92 -2
- package/index.js +97 -97
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.39
|
|
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
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.39
|
|
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
|
+
defaultValue_default
|
|
28
|
+
} from "./chunk-QUJ6BNQF.js";
|
|
29
|
+
import {
|
|
30
|
+
DeveloperError_default
|
|
31
|
+
} from "./chunk-EKUYACAZ.js";
|
|
32
|
+
import {
|
|
33
|
+
defined_default
|
|
34
|
+
} from "./chunk-2PWEYBYR.js";
|
|
35
|
+
|
|
36
|
+
// packages/engine/Source/Core/VertexFormat.js
|
|
37
|
+
function VertexFormat(options) {
|
|
38
|
+
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
39
|
+
this.position = defaultValue_default(options.position, false);
|
|
40
|
+
this.normal = defaultValue_default(options.normal, false);
|
|
41
|
+
this.st = defaultValue_default(options.st, false);
|
|
42
|
+
this.bitangent = defaultValue_default(options.bitangent, false);
|
|
43
|
+
this.tangent = defaultValue_default(options.tangent, false);
|
|
44
|
+
this.color = defaultValue_default(options.color, false);
|
|
45
|
+
}
|
|
46
|
+
VertexFormat.POSITION_ONLY = Object.freeze(
|
|
47
|
+
new VertexFormat({
|
|
48
|
+
position: true
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
VertexFormat.POSITION_AND_NORMAL = Object.freeze(
|
|
52
|
+
new VertexFormat({
|
|
53
|
+
position: true,
|
|
54
|
+
normal: true
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
VertexFormat.POSITION_NORMAL_AND_ST = Object.freeze(
|
|
58
|
+
new VertexFormat({
|
|
59
|
+
position: true,
|
|
60
|
+
normal: true,
|
|
61
|
+
st: true
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
VertexFormat.POSITION_AND_ST = Object.freeze(
|
|
65
|
+
new VertexFormat({
|
|
66
|
+
position: true,
|
|
67
|
+
st: true
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
VertexFormat.POSITION_AND_COLOR = Object.freeze(
|
|
71
|
+
new VertexFormat({
|
|
72
|
+
position: true,
|
|
73
|
+
color: true
|
|
74
|
+
})
|
|
75
|
+
);
|
|
76
|
+
VertexFormat.ALL = Object.freeze(
|
|
77
|
+
new VertexFormat({
|
|
78
|
+
position: true,
|
|
79
|
+
normal: true,
|
|
80
|
+
st: true,
|
|
81
|
+
tangent: true,
|
|
82
|
+
bitangent: true
|
|
83
|
+
})
|
|
84
|
+
);
|
|
85
|
+
VertexFormat.DEFAULT = VertexFormat.POSITION_NORMAL_AND_ST;
|
|
86
|
+
VertexFormat.packedLength = 6;
|
|
87
|
+
VertexFormat.pack = function(value, array, startingIndex) {
|
|
88
|
+
if (!defined_default(value)) {
|
|
89
|
+
throw new DeveloperError_default("value is required");
|
|
90
|
+
}
|
|
91
|
+
if (!defined_default(array)) {
|
|
92
|
+
throw new DeveloperError_default("array is required");
|
|
93
|
+
}
|
|
94
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
95
|
+
array[startingIndex++] = value.position ? 1 : 0;
|
|
96
|
+
array[startingIndex++] = value.normal ? 1 : 0;
|
|
97
|
+
array[startingIndex++] = value.st ? 1 : 0;
|
|
98
|
+
array[startingIndex++] = value.tangent ? 1 : 0;
|
|
99
|
+
array[startingIndex++] = value.bitangent ? 1 : 0;
|
|
100
|
+
array[startingIndex] = value.color ? 1 : 0;
|
|
101
|
+
return array;
|
|
102
|
+
};
|
|
103
|
+
VertexFormat.unpack = function(array, startingIndex, result) {
|
|
104
|
+
if (!defined_default(array)) {
|
|
105
|
+
throw new DeveloperError_default("array is required");
|
|
106
|
+
}
|
|
107
|
+
startingIndex = defaultValue_default(startingIndex, 0);
|
|
108
|
+
if (!defined_default(result)) {
|
|
109
|
+
result = new VertexFormat();
|
|
110
|
+
}
|
|
111
|
+
result.position = array[startingIndex++] === 1;
|
|
112
|
+
result.normal = array[startingIndex++] === 1;
|
|
113
|
+
result.st = array[startingIndex++] === 1;
|
|
114
|
+
result.tangent = array[startingIndex++] === 1;
|
|
115
|
+
result.bitangent = array[startingIndex++] === 1;
|
|
116
|
+
result.color = array[startingIndex] === 1;
|
|
117
|
+
return result;
|
|
118
|
+
};
|
|
119
|
+
VertexFormat.clone = function(vertexFormat, result) {
|
|
120
|
+
if (!defined_default(vertexFormat)) {
|
|
121
|
+
return void 0;
|
|
122
|
+
}
|
|
123
|
+
if (!defined_default(result)) {
|
|
124
|
+
result = new VertexFormat();
|
|
125
|
+
}
|
|
126
|
+
result.position = vertexFormat.position;
|
|
127
|
+
result.normal = vertexFormat.normal;
|
|
128
|
+
result.st = vertexFormat.st;
|
|
129
|
+
result.tangent = vertexFormat.tangent;
|
|
130
|
+
result.bitangent = vertexFormat.bitangent;
|
|
131
|
+
result.color = vertexFormat.color;
|
|
132
|
+
return result;
|
|
133
|
+
};
|
|
134
|
+
var VertexFormat_default = VertexFormat;
|
|
135
|
+
|
|
136
|
+
export {
|
|
137
|
+
VertexFormat_default
|
|
138
|
+
};
|