deeptwins-engine-3d 0.1.76 → 0.2.1
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/dist/assets/Build/DeepTwins/Image/noise.png +0 -0
- package/dist/assets/Build/DeepTwins/Workers/CustomRasterClip.worker.js +1 -2
- package/dist/assets/Build/DeepTwins/Workers/MvtVector.worker.js +1 -1
- package/dist/assets/Build/Map3d/ThirdParty/Workers/zip-web-worker.js +640 -0
- package/dist/assets/Build/Map3d/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/assets/Build/Map3d/ThirdParty/zip-module.wasm +0 -0
- package/dist/assets/Build/Map3d/Workers/chunk-27NG6PQR.js +456 -0
- package/dist/assets/Build/Map3d/Workers/chunk-2JVMMMWT.js +353 -0
- package/dist/assets/Build/Map3d/Workers/chunk-2Y2XYQCS.js +1481 -0
- package/dist/assets/Build/Map3d/Workers/chunk-34RF3V5G.js +220 -0
- package/dist/assets/Build/Map3d/Workers/chunk-35H7BYLJ.js +1800 -0
- package/dist/assets/Build/Map3d/Workers/chunk-57OGEF5V.js +435 -0
- package/dist/assets/Build/Map3d/Workers/chunk-5PX3DYJA.js +196 -0
- package/dist/assets/Build/Map3d/Workers/chunk-7B5XGQRN.js +171 -0
- package/dist/assets/Build/Map3d/Workers/chunk-ATLWOZFF.js +39 -0
- package/dist/assets/Build/Map3d/Workers/chunk-BMSUECTA.js +1055 -0
- package/dist/assets/Build/Map3d/Workers/chunk-C6IA4TKW.js +476 -0
- package/dist/assets/Build/Map3d/Workers/chunk-CZ44I32U.js +157 -0
- package/dist/assets/Build/Map3d/Workers/chunk-DE6UV44R.js +122 -0
- package/dist/assets/Build/Map3d/Workers/chunk-DUCCKVOG.js +834 -0
- package/dist/assets/Build/Map3d/Workers/chunk-EBJBPIYX.js +239 -0
- package/dist/assets/Build/Map3d/Workers/chunk-EYSYQ2R6.js +138 -0
- package/dist/assets/Build/Map3d/Workers/chunk-FMCAAUQI.js +368 -0
- package/dist/assets/Build/Map3d/Workers/chunk-GMYZNRRQ.js +2717 -0
- package/dist/assets/Build/Map3d/Workers/chunk-GWPNZZV4.js +781 -0
- package/dist/assets/Build/Map3d/Workers/chunk-HLP2U4KW.js +758 -0
- package/dist/assets/Build/Map3d/Workers/chunk-HSJSUPQV.js +500 -0
- package/dist/assets/Build/Map3d/Workers/chunk-I73Q3AG7.js +58 -0
- package/dist/assets/Build/Map3d/Workers/chunk-IMZ4YIMV.js +511 -0
- package/dist/assets/Build/Map3d/Workers/chunk-IZSK4DVF.js +421 -0
- package/dist/assets/Build/Map3d/Workers/chunk-JKLMRPKK.js +75 -0
- package/dist/assets/Build/Map3d/Workers/chunk-KGM345JM.js +691 -0
- package/dist/assets/Build/Map3d/Workers/chunk-L4IR5U4G.js +102 -0
- package/dist/assets/Build/Map3d/Workers/chunk-MG4EVQH2.js +44 -0
- package/dist/assets/Build/Map3d/Workers/chunk-NXWEFAZJ.js +300 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PDFAJISJ.js +59 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PHWZFJR5.js +100 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PLE7CHBE.js +101 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PN3GIZ5Q.js +163 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PXL5XLHV.js +1073 -0
- package/dist/assets/Build/Map3d/Workers/chunk-QYXOF5JC.js +959 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R2LIFXV3.js +115 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R4W6IRJZ.js +10357 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R5PZXG56.js +1258 -0
- package/dist/assets/Build/Map3d/Workers/chunk-RZQLZIUI.js +629 -0
- package/dist/assets/Build/Map3d/Workers/chunk-SIBDD6Y4.js +390 -0
- package/dist/assets/Build/Map3d/Workers/chunk-U5NN6JTQ.js +398 -0
- package/dist/assets/Build/Map3d/Workers/chunk-UA5RPPP3.js +73 -0
- package/dist/assets/Build/Map3d/Workers/chunk-UXLKFS3C.js +305 -0
- package/dist/assets/Build/Map3d/Workers/chunk-VUX4BQIM.js +37 -0
- package/dist/assets/Build/Map3d/Workers/chunk-WJDUUUJS.js +684 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XBJOJHWX.js +139 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XJDMTNKD.js +634 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XUCXZZE5.js +963 -0
- package/dist/assets/Build/Map3d/Workers/chunk-YIKGVMJ5.js +287 -0
- package/dist/assets/Build/Map3d/Workers/chunk-YTNCIBPQ.js +262 -0
- package/dist/assets/Build/Map3d/Workers/chunk-ZMDUYETO.js +55 -0
- package/dist/assets/Build/Map3d/Workers/chunk-ZW52HXFN.js +2857 -0
- package/dist/esm/analyze/LineOfSightAnalysis.js +1 -326
- package/dist/esm/analyze/SubmergenceAnalysis.js +1 -137
- package/dist/esm/analyze/SunLightAnalysis.js +1 -91
- package/dist/esm/analyze/TerrainExcavationAnalysis.js +1 -612
- package/dist/esm/analyze/ViewshedAnalysis.js +1 -292
- package/dist/esm/cameraControl/ModelRoamHistory.js +1 -639
- package/dist/esm/cameraControl/ModelRoamRealTime.js +1 -874
- package/dist/esm/cameraControl/Roam.js +1 -418
- package/dist/esm/cameraControl/Rotate.js +1 -134
- package/dist/esm/cameraControl/RotateInPlace.js +1 -99
- package/dist/esm/constant.d.ts +90 -0
- package/dist/esm/constant.js +1 -1287
- package/dist/esm/deepTwins/index.js +1 -121
- package/dist/esm/drawCommand/index.js +1 -3
- package/dist/esm/drawCommand/viewShed/Event.js +1 -142
- package/dist/esm/drawCommand/viewShed/RectangularSensorPrimitive.js +1 -1306
- package/dist/esm/drawCommand/viewShed/ViewShadowPrimitive.js +1 -66
- package/dist/esm/drawCommand/viewShed/ViewShedAnalyserLayer.js +1 -466
- package/dist/esm/drawCommand/viewShed/ViewShedMap.js +1 -1238
- package/dist/esm/drawCommand/viewShed/config.js +1 -21
- package/dist/esm/drawCommand/volumeCloud/GeometryPrimitive.js +1 -89
- package/dist/esm/drawCommand/volumeCloud/ImprovedNoise.js +1 -112
- package/dist/esm/drawCommand/volumeCloud/VolumeClouds.js +1 -91
- package/dist/esm/drawer/algorithm.js +1 -314
- package/dist/esm/drawer/common.js +1 -965
- package/dist/esm/drawer/coordinate.js +1 -184
- package/dist/esm/drawer/index.js +1 -688
- package/dist/esm/drawer/plotUtil.js +1 -266
- package/dist/esm/drawer/shape/Assemble.js +1 -415
- package/dist/esm/drawer/shape/AttackArrow.js +1 -442
- package/dist/esm/drawer/shape/BaseShape.js +1 -383
- package/dist/esm/drawer/shape/Bow.js +1 -375
- package/dist/esm/drawer/shape/Circle.js +1 -461
- package/dist/esm/drawer/shape/Curve.js +1 -386
- package/dist/esm/drawer/shape/DragPoint.js +1 -211
- package/dist/esm/drawer/shape/Elliptic.js +1 -491
- package/dist/esm/drawer/shape/Formation.js +1 -395
- package/dist/esm/drawer/shape/PincerArrow.js +1 -445
- package/dist/esm/drawer/shape/Point.js +1 -131
- package/dist/esm/drawer/shape/Polygon.js +1 -368
- package/dist/esm/drawer/shape/Polyline.js +1 -325
- package/dist/esm/drawer/shape/RegularPolygon.js +1 -468
- package/dist/esm/drawer/shape/RightAngleArrow.js +1 -423
- package/dist/esm/drawer/shape/Sector.js +1 -568
- package/dist/esm/drawer/shape/StraightArrow.js +1 -422
- package/dist/esm/drawer/shape/SwallowtailArrow.js +1 -438
- package/dist/esm/drawer/types.js +1 -11
- package/dist/esm/drawer/utils.js +1 -381
- package/dist/esm/global.css +22 -1
- package/dist/esm/graphicLayer/BaseEntity.js +1 -51
- package/dist/esm/graphicLayer/BaseLayer.js +1 -730
- package/dist/esm/graphicLayer/BasePointPrimitive.js +1 -45
- package/dist/esm/graphicLayer/BasePrimitive.js +1 -36
- package/dist/esm/graphicLayer/BasePrimitiveInstance.js +1 -37
- package/dist/esm/graphicLayer/BaseSource.d.ts +1 -1
- package/dist/esm/graphicLayer/BaseSource.js +1 -630
- package/dist/esm/graphicLayer/BillboardEntity.js +1 -106
- package/dist/esm/graphicLayer/BillboardPrimitive.js +1 -119
- package/dist/esm/graphicLayer/BoxEntity.js +1 -99
- package/dist/esm/graphicLayer/BoxPrimitive.js +1 -48
- package/dist/esm/graphicLayer/BoxPrimitiveInstance.js +1 -91
- package/dist/esm/graphicLayer/EllipseEntity.js +1 -110
- package/dist/esm/graphicLayer/EllipsePrimitive.js +1 -47
- package/dist/esm/graphicLayer/EllipsePrimitiveInstance.js +1 -98
- package/dist/esm/graphicLayer/EllipsoidEntity.js +1 -118
- package/dist/esm/graphicLayer/EllipsoidPrimitive.js +1 -48
- package/dist/esm/graphicLayer/EllipsoidPrimitiveInstance.js +1 -113
- package/dist/esm/graphicLayer/GraphicLayerCollection.js +1 -491
- package/dist/esm/graphicLayer/HtmlEntity.d.ts +4 -0
- package/dist/esm/graphicLayer/HtmlEntity.js +1 -189
- package/dist/esm/graphicLayer/LabelEntity.js +1 -110
- package/dist/esm/graphicLayer/LabelPrimitive.js +1 -127
- package/dist/esm/graphicLayer/ModelEntity.js +1 -122
- package/dist/esm/graphicLayer/ModelPrimitive.js +1 -59
- package/dist/esm/graphicLayer/ModelPrimitiveInstance.js +1 -86
- package/dist/esm/graphicLayer/PointEntity.js +1 -94
- package/dist/esm/graphicLayer/PointPrimitive.js +1 -107
- package/dist/esm/graphicLayer/PolygonEntity.js +1 -103
- package/dist/esm/graphicLayer/PolygonGroundPrimitive.js +1 -49
- package/dist/esm/graphicLayer/PolygonGroundPrimitiveImageMaterialInstance.js +1 -87
- package/dist/esm/graphicLayer/PolygonPrimitive.js +1 -60
- package/dist/esm/graphicLayer/PolygonPrimitiveImageMaterialInstance.js +1 -84
- package/dist/esm/graphicLayer/PolygonPrimitiveInstance.js +1 -101
- package/dist/esm/graphicLayer/PolylineEntity.js +1 -96
- package/dist/esm/graphicLayer/PolylineGroundPrimitive.js +1 -55
- package/dist/esm/graphicLayer/PolylineGroundPrimitiveInstance.js +1 -85
- package/dist/esm/graphicLayer/PolylinePrimitive.js +1 -53
- package/dist/esm/graphicLayer/PolylinePrimitiveInstance.js +1 -85
- package/dist/esm/graphicLayer/PolylineVolumeEntity.js +1 -105
- package/dist/esm/graphicLayer/PolylineVolumePrimitive.js +1 -47
- package/dist/esm/graphicLayer/PolylineVolumePrimitiveInstance.js +1 -94
- package/dist/esm/graphicLayer/WallEntity.js +1 -96
- package/dist/esm/graphicLayer/WallPrimitive.js +1 -47
- package/dist/esm/graphicLayer/WallPrimitiveInstance.js +1 -88
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +1 -175
- package/dist/esm/lowAltitude/BarrierLayer.js +1 -172
- package/dist/esm/lowAltitude/BaseGridMvtLayer.js +1 -122
- package/dist/esm/lowAltitude/FactorLayer.js +1 -199
- package/dist/esm/lowAltitude/FlightPlanning.js +1 -411
- package/dist/esm/lowAltitude/FlightRiskEvaluation.js +1 -543
- package/dist/esm/lowAltitude/GridDraw.js +1 -137
- package/dist/esm/lowAltitude/PoiLayer.js +1 -74
- package/dist/esm/lowAltitude/RoutePlanning.js +1 -318
- package/dist/esm/lowAltitude/VisitLayer.js +1 -180
- package/dist/esm/map/Event.js +1 -377
- package/dist/esm/map/GroundSkyBox.js +1 -166
- package/dist/esm/map/Map.js +1 -881
- package/dist/esm/map/Property.js +1 -35
- package/dist/esm/material/AtmosphericDispersion.js +1 -569
- package/dist/esm/material/GlobalVolumetricCloud.js +1 -377
- package/dist/esm/material/VolumeCloud.js +1 -115
- package/dist/esm/material/WeatherEffects.js +1 -351
- package/dist/esm/material/entity/BaseMaterialProperty.js +1 -51
- package/dist/esm/material/entity/CircleWaveMaterialProperty.js +1 -101
- package/dist/esm/material/entity/DynamicWallMaterialProperty.js +1 -101
- package/dist/esm/material/entity/ImageGlowingMaterialProperty.js +1 -89
- package/dist/esm/material/entity/ImageMaterialProperty.js +1 -34
- package/dist/esm/material/entity/PolylineTrailLinkMaterialProperty.js +1 -132
- package/dist/esm/material/primitive/BaseMaterialAppearance.js +1 -28
- package/dist/esm/material/primitive/ImageGlowingMaterialAppearance.js +1 -77
- package/dist/esm/material/primitive/ImageMaterialAppearance.js +1 -77
- package/dist/esm/measure/Area.js +1 -220
- package/dist/esm/measure/BaseDraw.js +1 -105
- package/dist/esm/measure/Distance.js +1 -223
- package/dist/esm/measure/index.js +1 -266
- package/dist/esm/measure/types.js +1 -17
- package/dist/esm/measure/utils.js +1 -319
- package/dist/esm/particle/BaseParticle.js +1 -196
- package/dist/esm/particle/FireParticle.js +1 -65
- package/dist/esm/particle/FountainParticle.js +1 -80
- package/dist/esm/particle/SmokeParticle.js +1 -65
- package/dist/esm/particle/common.js +1 -23
- package/dist/esm/particle/index.js +1 -5
- package/dist/esm/property/PositionProperty.js +1 -56
- package/dist/esm/tileLayer/ArcGisLayer.js +1 -41
- package/dist/esm/tileLayer/CustomRasterClipWorkerClient.js +1 -147
- package/dist/esm/tileLayer/CustomRasterLayer.js +1 -1136
- package/dist/esm/tileLayer/ImageryLayer.js +1 -44
- package/dist/esm/tileLayer/MvtVectorLoad.js +1 -1549
- package/dist/esm/tileLayer/MvtVectorWorkerClient.js +1 -126
- package/dist/esm/tileLayer/RasterLayer.js +1 -23
- package/dist/esm/tileLayer/WmsLayer.js +1 -26
- package/dist/esm/tileLayer/WmtsLayer.js +1 -23
- package/dist/esm/tool/BuildClampedPolygonGrid.js +1 -278
- package/dist/esm/tool/Compass.js +1 -282
- package/dist/esm/tool/PrimitiveCluster.js +1 -706
- package/dist/esm/tool/TimerInterval.js +1 -58
- package/dist/esm/tool/common.js +1 -405
- package/dist/esm/tool/fetch.js +1 -222
- package/dist/esm/tool/heatmap.js +1 -631
- package/dist/esm/tool/utils.d.ts +1 -0
- package/dist/esm/tool/utils.js +1 -501
- package/dist/esm/toolTip/index.js +1 -79
- package/dist/esm/videoFusion/BaseVideo.d.ts +7 -0
- package/dist/esm/videoFusion/BaseVideo.js +1 -330
- package/dist/esm/videoFusion/VideoProject.js +1 -230
- package/dist/esm/videoFusion/VideoTexture.js +1 -163
- package/dist/esm/visualization/BaseHeatmap.js +1 -271
- package/dist/esm/visualization/BoundaryHighlight.d.ts +135 -0
- package/dist/esm/visualization/BoundaryHighlight.js +1 -0
- package/dist/esm/visualization/DynamicWater.js +1 -289
- package/dist/esm/visualization/Frustum.js +1 -248
- package/dist/esm/visualization/Heatmap2d.js +1 -97
- package/dist/esm/visualization/Heatmap3d.js +1 -281
- package/dist/esm/visualization/MigrationEffect.js +1 -397
- package/dist/esm/visualization/PointCluster.js +1 -220
- package/dist/esm/visualization/RadarScan.js +1 -333
- package/dist/esm/visualization/SampledTerrainRiver.d.ts +180 -0
- package/dist/esm/visualization/SampledTerrainRiver.js +1 -0
- package/dist/esm/visualization/SampledTerrainWater.d.ts +170 -0
- package/dist/esm/visualization/SampledTerrainWater.js +1 -0
- package/dist/esm/visualization/WindField.d.ts +72 -0
- package/dist/esm/visualization/WindField.js +1 -0
- package/dist/esm/visualization/windCore.d.ts +161 -0
- package/dist/esm/visualization/windCore.js +8 -0
- package/dist/umd/deeptwins-engine-3d.min.css +1 -1
- package/dist/umd/deeptwins-engine-3d.min.js +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.42
|
|
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
|
+
AxisAlignedBoundingBox_default
|
|
28
|
+
} from "./chunk-CZ44I32U.js";
|
|
29
|
+
import {
|
|
30
|
+
IntersectionTests_default,
|
|
31
|
+
Ray_default
|
|
32
|
+
} from "./chunk-R5PZXG56.js";
|
|
33
|
+
import {
|
|
34
|
+
Plane_default
|
|
35
|
+
} from "./chunk-7B5XGQRN.js";
|
|
36
|
+
import {
|
|
37
|
+
Cartesian4_default,
|
|
38
|
+
Matrix4_default,
|
|
39
|
+
Transforms_default
|
|
40
|
+
} from "./chunk-R4W6IRJZ.js";
|
|
41
|
+
import {
|
|
42
|
+
Cartesian2_default,
|
|
43
|
+
Cartesian3_default,
|
|
44
|
+
Ellipsoid_default
|
|
45
|
+
} from "./chunk-ZW52HXFN.js";
|
|
46
|
+
import {
|
|
47
|
+
defaultValue_default
|
|
48
|
+
} from "./chunk-ATLWOZFF.js";
|
|
49
|
+
import {
|
|
50
|
+
Check_default,
|
|
51
|
+
DeveloperError_default
|
|
52
|
+
} from "./chunk-PN3GIZ5Q.js";
|
|
53
|
+
import {
|
|
54
|
+
defined_default
|
|
55
|
+
} from "./chunk-JKLMRPKK.js";
|
|
56
|
+
|
|
57
|
+
// packages/engine/Source/Core/EllipsoidTangentPlane.js
|
|
58
|
+
var scratchCart4 = new Cartesian4_default();
|
|
59
|
+
function EllipsoidTangentPlane(origin, ellipsoid) {
|
|
60
|
+
Check_default.defined("origin", origin);
|
|
61
|
+
ellipsoid = defaultValue_default(ellipsoid, Ellipsoid_default.default);
|
|
62
|
+
origin = ellipsoid.scaleToGeodeticSurface(origin);
|
|
63
|
+
if (!defined_default(origin)) {
|
|
64
|
+
throw new DeveloperError_default(
|
|
65
|
+
"origin must not be at the center of the ellipsoid."
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
const eastNorthUp = Transforms_default.eastNorthUpToFixedFrame(origin, ellipsoid);
|
|
69
|
+
this._ellipsoid = ellipsoid;
|
|
70
|
+
this._origin = origin;
|
|
71
|
+
this._xAxis = Cartesian3_default.fromCartesian4(
|
|
72
|
+
Matrix4_default.getColumn(eastNorthUp, 0, scratchCart4)
|
|
73
|
+
);
|
|
74
|
+
this._yAxis = Cartesian3_default.fromCartesian4(
|
|
75
|
+
Matrix4_default.getColumn(eastNorthUp, 1, scratchCart4)
|
|
76
|
+
);
|
|
77
|
+
const normal = Cartesian3_default.fromCartesian4(
|
|
78
|
+
Matrix4_default.getColumn(eastNorthUp, 2, scratchCart4)
|
|
79
|
+
);
|
|
80
|
+
this._plane = Plane_default.fromPointNormal(origin, normal);
|
|
81
|
+
}
|
|
82
|
+
Object.defineProperties(EllipsoidTangentPlane.prototype, {
|
|
83
|
+
/**
|
|
84
|
+
* Gets the ellipsoid.
|
|
85
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
86
|
+
* @type {Ellipsoid}
|
|
87
|
+
*/
|
|
88
|
+
ellipsoid: {
|
|
89
|
+
get: function() {
|
|
90
|
+
return this._ellipsoid;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* Gets the origin.
|
|
95
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
96
|
+
* @type {Cartesian3}
|
|
97
|
+
*/
|
|
98
|
+
origin: {
|
|
99
|
+
get: function() {
|
|
100
|
+
return this._origin;
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* Gets the plane which is tangent to the ellipsoid.
|
|
105
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
106
|
+
* @readonly
|
|
107
|
+
* @type {Plane}
|
|
108
|
+
*/
|
|
109
|
+
plane: {
|
|
110
|
+
get: function() {
|
|
111
|
+
return this._plane;
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* Gets the local X-axis (east) of the tangent plane.
|
|
116
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
117
|
+
* @readonly
|
|
118
|
+
* @type {Cartesian3}
|
|
119
|
+
*/
|
|
120
|
+
xAxis: {
|
|
121
|
+
get: function() {
|
|
122
|
+
return this._xAxis;
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* Gets the local Y-axis (north) of the tangent plane.
|
|
127
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
128
|
+
* @readonly
|
|
129
|
+
* @type {Cartesian3}
|
|
130
|
+
*/
|
|
131
|
+
yAxis: {
|
|
132
|
+
get: function() {
|
|
133
|
+
return this._yAxis;
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* Gets the local Z-axis (up) of the tangent plane.
|
|
138
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
139
|
+
* @readonly
|
|
140
|
+
* @type {Cartesian3}
|
|
141
|
+
*/
|
|
142
|
+
zAxis: {
|
|
143
|
+
get: function() {
|
|
144
|
+
return this._plane.normal;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
var tmp = new AxisAlignedBoundingBox_default();
|
|
149
|
+
EllipsoidTangentPlane.fromPoints = function(cartesians, ellipsoid) {
|
|
150
|
+
Check_default.defined("cartesians", cartesians);
|
|
151
|
+
const box = AxisAlignedBoundingBox_default.fromPoints(cartesians, tmp);
|
|
152
|
+
return new EllipsoidTangentPlane(box.center, ellipsoid);
|
|
153
|
+
};
|
|
154
|
+
var scratchProjectPointOntoPlaneRay = new Ray_default();
|
|
155
|
+
var scratchProjectPointOntoPlaneCartesian3 = new Cartesian3_default();
|
|
156
|
+
EllipsoidTangentPlane.prototype.projectPointOntoPlane = function(cartesian, result) {
|
|
157
|
+
Check_default.defined("cartesian", cartesian);
|
|
158
|
+
const ray = scratchProjectPointOntoPlaneRay;
|
|
159
|
+
ray.origin = cartesian;
|
|
160
|
+
Cartesian3_default.normalize(cartesian, ray.direction);
|
|
161
|
+
let intersectionPoint = IntersectionTests_default.rayPlane(
|
|
162
|
+
ray,
|
|
163
|
+
this._plane,
|
|
164
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
165
|
+
);
|
|
166
|
+
if (!defined_default(intersectionPoint)) {
|
|
167
|
+
Cartesian3_default.negate(ray.direction, ray.direction);
|
|
168
|
+
intersectionPoint = IntersectionTests_default.rayPlane(
|
|
169
|
+
ray,
|
|
170
|
+
this._plane,
|
|
171
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
if (defined_default(intersectionPoint)) {
|
|
175
|
+
const v = Cartesian3_default.subtract(
|
|
176
|
+
intersectionPoint,
|
|
177
|
+
this._origin,
|
|
178
|
+
intersectionPoint
|
|
179
|
+
);
|
|
180
|
+
const x = Cartesian3_default.dot(this._xAxis, v);
|
|
181
|
+
const y = Cartesian3_default.dot(this._yAxis, v);
|
|
182
|
+
if (!defined_default(result)) {
|
|
183
|
+
return new Cartesian2_default(x, y);
|
|
184
|
+
}
|
|
185
|
+
result.x = x;
|
|
186
|
+
result.y = y;
|
|
187
|
+
return result;
|
|
188
|
+
}
|
|
189
|
+
return void 0;
|
|
190
|
+
};
|
|
191
|
+
EllipsoidTangentPlane.prototype.projectPointsOntoPlane = function(cartesians, result) {
|
|
192
|
+
Check_default.defined("cartesians", cartesians);
|
|
193
|
+
if (!defined_default(result)) {
|
|
194
|
+
result = [];
|
|
195
|
+
}
|
|
196
|
+
let count = 0;
|
|
197
|
+
const length = cartesians.length;
|
|
198
|
+
for (let i = 0; i < length; i++) {
|
|
199
|
+
const p = this.projectPointOntoPlane(cartesians[i], result[count]);
|
|
200
|
+
if (defined_default(p)) {
|
|
201
|
+
result[count] = p;
|
|
202
|
+
count++;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
result.length = count;
|
|
206
|
+
return result;
|
|
207
|
+
};
|
|
208
|
+
EllipsoidTangentPlane.prototype.projectPointToNearestOnPlane = function(cartesian, result) {
|
|
209
|
+
Check_default.defined("cartesian", cartesian);
|
|
210
|
+
if (!defined_default(result)) {
|
|
211
|
+
result = new Cartesian2_default();
|
|
212
|
+
}
|
|
213
|
+
const ray = scratchProjectPointOntoPlaneRay;
|
|
214
|
+
ray.origin = cartesian;
|
|
215
|
+
Cartesian3_default.clone(this._plane.normal, ray.direction);
|
|
216
|
+
let intersectionPoint = IntersectionTests_default.rayPlane(
|
|
217
|
+
ray,
|
|
218
|
+
this._plane,
|
|
219
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
220
|
+
);
|
|
221
|
+
if (!defined_default(intersectionPoint)) {
|
|
222
|
+
Cartesian3_default.negate(ray.direction, ray.direction);
|
|
223
|
+
intersectionPoint = IntersectionTests_default.rayPlane(
|
|
224
|
+
ray,
|
|
225
|
+
this._plane,
|
|
226
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
const v = Cartesian3_default.subtract(
|
|
230
|
+
intersectionPoint,
|
|
231
|
+
this._origin,
|
|
232
|
+
intersectionPoint
|
|
233
|
+
);
|
|
234
|
+
const x = Cartesian3_default.dot(this._xAxis, v);
|
|
235
|
+
const y = Cartesian3_default.dot(this._yAxis, v);
|
|
236
|
+
result.x = x;
|
|
237
|
+
result.y = y;
|
|
238
|
+
return result;
|
|
239
|
+
};
|
|
240
|
+
EllipsoidTangentPlane.prototype.projectPointsToNearestOnPlane = function(cartesians, result) {
|
|
241
|
+
Check_default.defined("cartesians", cartesians);
|
|
242
|
+
if (!defined_default(result)) {
|
|
243
|
+
result = [];
|
|
244
|
+
}
|
|
245
|
+
const length = cartesians.length;
|
|
246
|
+
result.length = length;
|
|
247
|
+
for (let i = 0; i < length; i++) {
|
|
248
|
+
result[i] = this.projectPointToNearestOnPlane(cartesians[i], result[i]);
|
|
249
|
+
}
|
|
250
|
+
return result;
|
|
251
|
+
};
|
|
252
|
+
var projectPointsOntoEllipsoidScratch = new Cartesian3_default();
|
|
253
|
+
EllipsoidTangentPlane.prototype.projectPointOntoEllipsoid = function(cartesian, result) {
|
|
254
|
+
Check_default.defined("cartesian", cartesian);
|
|
255
|
+
if (!defined_default(result)) {
|
|
256
|
+
result = new Cartesian3_default();
|
|
257
|
+
}
|
|
258
|
+
const ellipsoid = this._ellipsoid;
|
|
259
|
+
const origin = this._origin;
|
|
260
|
+
const xAxis = this._xAxis;
|
|
261
|
+
const yAxis = this._yAxis;
|
|
262
|
+
const tmp2 = projectPointsOntoEllipsoidScratch;
|
|
263
|
+
Cartesian3_default.multiplyByScalar(xAxis, cartesian.x, tmp2);
|
|
264
|
+
result = Cartesian3_default.add(origin, tmp2, result);
|
|
265
|
+
Cartesian3_default.multiplyByScalar(yAxis, cartesian.y, tmp2);
|
|
266
|
+
Cartesian3_default.add(result, tmp2, result);
|
|
267
|
+
ellipsoid.scaleToGeocentricSurface(result, result);
|
|
268
|
+
return result;
|
|
269
|
+
};
|
|
270
|
+
EllipsoidTangentPlane.prototype.projectPointsOntoEllipsoid = function(cartesians, result) {
|
|
271
|
+
Check_default.defined("cartesians", cartesians);
|
|
272
|
+
const length = cartesians.length;
|
|
273
|
+
if (!defined_default(result)) {
|
|
274
|
+
result = new Array(length);
|
|
275
|
+
} else {
|
|
276
|
+
result.length = length;
|
|
277
|
+
}
|
|
278
|
+
for (let i = 0; i < length; ++i) {
|
|
279
|
+
result[i] = this.projectPointOntoEllipsoid(cartesians[i], result[i]);
|
|
280
|
+
}
|
|
281
|
+
return result;
|
|
282
|
+
};
|
|
283
|
+
var EllipsoidTangentPlane_default = EllipsoidTangentPlane;
|
|
284
|
+
|
|
285
|
+
export {
|
|
286
|
+
EllipsoidTangentPlane_default
|
|
287
|
+
};
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.42
|
|
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-RZQLZIUI.js";
|
|
29
|
+
import {
|
|
30
|
+
defaultValue_default
|
|
31
|
+
} from "./chunk-ATLWOZFF.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-PN3GIZ5Q.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-JKLMRPKK.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/ComponentDatatype.js
|
|
40
|
+
var ComponentDatatype = {
|
|
41
|
+
/**
|
|
42
|
+
* 8-bit signed byte corresponding to <code>gl.BYTE</code> and the type
|
|
43
|
+
* of an element in <code>Int8Array</code>.
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @constant
|
|
47
|
+
*/
|
|
48
|
+
BYTE: WebGLConstants_default.BYTE,
|
|
49
|
+
/**
|
|
50
|
+
* 8-bit unsigned byte corresponding to <code>UNSIGNED_BYTE</code> and the type
|
|
51
|
+
* of an element in <code>Uint8Array</code>.
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @constant
|
|
55
|
+
*/
|
|
56
|
+
UNSIGNED_BYTE: WebGLConstants_default.UNSIGNED_BYTE,
|
|
57
|
+
/**
|
|
58
|
+
* 16-bit signed short corresponding to <code>SHORT</code> and the type
|
|
59
|
+
* of an element in <code>Int16Array</code>.
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @constant
|
|
63
|
+
*/
|
|
64
|
+
SHORT: WebGLConstants_default.SHORT,
|
|
65
|
+
/**
|
|
66
|
+
* 16-bit unsigned short corresponding to <code>UNSIGNED_SHORT</code> and the type
|
|
67
|
+
* of an element in <code>Uint16Array</code>.
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @constant
|
|
71
|
+
*/
|
|
72
|
+
UNSIGNED_SHORT: WebGLConstants_default.UNSIGNED_SHORT,
|
|
73
|
+
/**
|
|
74
|
+
* 32-bit signed int corresponding to <code>INT</code> and the type
|
|
75
|
+
* of an element in <code>Int32Array</code>.
|
|
76
|
+
*
|
|
77
|
+
* @memberOf ComponentDatatype
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @constant
|
|
81
|
+
*/
|
|
82
|
+
INT: WebGLConstants_default.INT,
|
|
83
|
+
/**
|
|
84
|
+
* 32-bit unsigned int corresponding to <code>UNSIGNED_INT</code> and the type
|
|
85
|
+
* of an element in <code>Uint32Array</code>.
|
|
86
|
+
*
|
|
87
|
+
* @memberOf ComponentDatatype
|
|
88
|
+
*
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @constant
|
|
91
|
+
*/
|
|
92
|
+
UNSIGNED_INT: WebGLConstants_default.UNSIGNED_INT,
|
|
93
|
+
/**
|
|
94
|
+
* 32-bit floating-point corresponding to <code>FLOAT</code> and the type
|
|
95
|
+
* of an element in <code>Float32Array</code>.
|
|
96
|
+
*
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @constant
|
|
99
|
+
*/
|
|
100
|
+
FLOAT: WebGLConstants_default.FLOAT,
|
|
101
|
+
/**
|
|
102
|
+
* 64-bit floating-point corresponding to <code>gl.DOUBLE</code> (in Desktop OpenGL;
|
|
103
|
+
* this is not supported in WebGL, and is emulated in Cesium via {@link GeometryPipeline.encodeAttribute})
|
|
104
|
+
* and the type of an element in <code>Float64Array</code>.
|
|
105
|
+
*
|
|
106
|
+
* @memberOf ComponentDatatype
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @constant
|
|
110
|
+
* @default 0x140A
|
|
111
|
+
*/
|
|
112
|
+
DOUBLE: WebGLConstants_default.DOUBLE
|
|
113
|
+
};
|
|
114
|
+
ComponentDatatype.getSizeInBytes = function(componentDatatype) {
|
|
115
|
+
if (!defined_default(componentDatatype)) {
|
|
116
|
+
throw new DeveloperError_default("value is required.");
|
|
117
|
+
}
|
|
118
|
+
switch (componentDatatype) {
|
|
119
|
+
case ComponentDatatype.BYTE:
|
|
120
|
+
return Int8Array.BYTES_PER_ELEMENT;
|
|
121
|
+
case ComponentDatatype.UNSIGNED_BYTE:
|
|
122
|
+
return Uint8Array.BYTES_PER_ELEMENT;
|
|
123
|
+
case ComponentDatatype.SHORT:
|
|
124
|
+
return Int16Array.BYTES_PER_ELEMENT;
|
|
125
|
+
case ComponentDatatype.UNSIGNED_SHORT:
|
|
126
|
+
return Uint16Array.BYTES_PER_ELEMENT;
|
|
127
|
+
case ComponentDatatype.INT:
|
|
128
|
+
return Int32Array.BYTES_PER_ELEMENT;
|
|
129
|
+
case ComponentDatatype.UNSIGNED_INT:
|
|
130
|
+
return Uint32Array.BYTES_PER_ELEMENT;
|
|
131
|
+
case ComponentDatatype.FLOAT:
|
|
132
|
+
return Float32Array.BYTES_PER_ELEMENT;
|
|
133
|
+
case ComponentDatatype.DOUBLE:
|
|
134
|
+
return Float64Array.BYTES_PER_ELEMENT;
|
|
135
|
+
//>>includeStart('debug', pragmas.debug);
|
|
136
|
+
default:
|
|
137
|
+
throw new DeveloperError_default("componentDatatype is not a valid value.");
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
ComponentDatatype.fromTypedArray = function(array) {
|
|
141
|
+
if (array instanceof Int8Array) {
|
|
142
|
+
return ComponentDatatype.BYTE;
|
|
143
|
+
}
|
|
144
|
+
if (array instanceof Uint8Array) {
|
|
145
|
+
return ComponentDatatype.UNSIGNED_BYTE;
|
|
146
|
+
}
|
|
147
|
+
if (array instanceof Int16Array) {
|
|
148
|
+
return ComponentDatatype.SHORT;
|
|
149
|
+
}
|
|
150
|
+
if (array instanceof Uint16Array) {
|
|
151
|
+
return ComponentDatatype.UNSIGNED_SHORT;
|
|
152
|
+
}
|
|
153
|
+
if (array instanceof Int32Array) {
|
|
154
|
+
return ComponentDatatype.INT;
|
|
155
|
+
}
|
|
156
|
+
if (array instanceof Uint32Array) {
|
|
157
|
+
return ComponentDatatype.UNSIGNED_INT;
|
|
158
|
+
}
|
|
159
|
+
if (array instanceof Float32Array) {
|
|
160
|
+
return ComponentDatatype.FLOAT;
|
|
161
|
+
}
|
|
162
|
+
if (array instanceof Float64Array) {
|
|
163
|
+
return ComponentDatatype.DOUBLE;
|
|
164
|
+
}
|
|
165
|
+
throw new DeveloperError_default(
|
|
166
|
+
"array must be an Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, or Float64Array."
|
|
167
|
+
);
|
|
168
|
+
};
|
|
169
|
+
ComponentDatatype.validate = function(componentDatatype) {
|
|
170
|
+
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);
|
|
171
|
+
};
|
|
172
|
+
ComponentDatatype.createTypedArray = function(componentDatatype, valuesOrLength) {
|
|
173
|
+
if (!defined_default(componentDatatype)) {
|
|
174
|
+
throw new DeveloperError_default("componentDatatype is required.");
|
|
175
|
+
}
|
|
176
|
+
if (!defined_default(valuesOrLength)) {
|
|
177
|
+
throw new DeveloperError_default("valuesOrLength is required.");
|
|
178
|
+
}
|
|
179
|
+
switch (componentDatatype) {
|
|
180
|
+
case ComponentDatatype.BYTE:
|
|
181
|
+
return new Int8Array(valuesOrLength);
|
|
182
|
+
case ComponentDatatype.UNSIGNED_BYTE:
|
|
183
|
+
return new Uint8Array(valuesOrLength);
|
|
184
|
+
case ComponentDatatype.SHORT:
|
|
185
|
+
return new Int16Array(valuesOrLength);
|
|
186
|
+
case ComponentDatatype.UNSIGNED_SHORT:
|
|
187
|
+
return new Uint16Array(valuesOrLength);
|
|
188
|
+
case ComponentDatatype.INT:
|
|
189
|
+
return new Int32Array(valuesOrLength);
|
|
190
|
+
case ComponentDatatype.UNSIGNED_INT:
|
|
191
|
+
return new Uint32Array(valuesOrLength);
|
|
192
|
+
case ComponentDatatype.FLOAT:
|
|
193
|
+
return new Float32Array(valuesOrLength);
|
|
194
|
+
case ComponentDatatype.DOUBLE:
|
|
195
|
+
return new Float64Array(valuesOrLength);
|
|
196
|
+
//>>includeStart('debug', pragmas.debug);
|
|
197
|
+
default:
|
|
198
|
+
throw new DeveloperError_default("componentDatatype is not a valid value.");
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
ComponentDatatype.createArrayBufferView = function(componentDatatype, buffer, byteOffset, length) {
|
|
202
|
+
if (!defined_default(componentDatatype)) {
|
|
203
|
+
throw new DeveloperError_default("componentDatatype is required.");
|
|
204
|
+
}
|
|
205
|
+
if (!defined_default(buffer)) {
|
|
206
|
+
throw new DeveloperError_default("buffer is required.");
|
|
207
|
+
}
|
|
208
|
+
byteOffset = defaultValue_default(byteOffset, 0);
|
|
209
|
+
length = defaultValue_default(
|
|
210
|
+
length,
|
|
211
|
+
(buffer.byteLength - byteOffset) / ComponentDatatype.getSizeInBytes(componentDatatype)
|
|
212
|
+
);
|
|
213
|
+
switch (componentDatatype) {
|
|
214
|
+
case ComponentDatatype.BYTE:
|
|
215
|
+
return new Int8Array(buffer, byteOffset, length);
|
|
216
|
+
case ComponentDatatype.UNSIGNED_BYTE:
|
|
217
|
+
return new Uint8Array(buffer, byteOffset, length);
|
|
218
|
+
case ComponentDatatype.SHORT:
|
|
219
|
+
return new Int16Array(buffer, byteOffset, length);
|
|
220
|
+
case ComponentDatatype.UNSIGNED_SHORT:
|
|
221
|
+
return new Uint16Array(buffer, byteOffset, length);
|
|
222
|
+
case ComponentDatatype.INT:
|
|
223
|
+
return new Int32Array(buffer, byteOffset, length);
|
|
224
|
+
case ComponentDatatype.UNSIGNED_INT:
|
|
225
|
+
return new Uint32Array(buffer, byteOffset, length);
|
|
226
|
+
case ComponentDatatype.FLOAT:
|
|
227
|
+
return new Float32Array(buffer, byteOffset, length);
|
|
228
|
+
case ComponentDatatype.DOUBLE:
|
|
229
|
+
return new Float64Array(buffer, byteOffset, length);
|
|
230
|
+
//>>includeStart('debug', pragmas.debug);
|
|
231
|
+
default:
|
|
232
|
+
throw new DeveloperError_default("componentDatatype is not a valid value.");
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
ComponentDatatype.fromName = function(name) {
|
|
236
|
+
switch (name) {
|
|
237
|
+
case "BYTE":
|
|
238
|
+
return ComponentDatatype.BYTE;
|
|
239
|
+
case "UNSIGNED_BYTE":
|
|
240
|
+
return ComponentDatatype.UNSIGNED_BYTE;
|
|
241
|
+
case "SHORT":
|
|
242
|
+
return ComponentDatatype.SHORT;
|
|
243
|
+
case "UNSIGNED_SHORT":
|
|
244
|
+
return ComponentDatatype.UNSIGNED_SHORT;
|
|
245
|
+
case "INT":
|
|
246
|
+
return ComponentDatatype.INT;
|
|
247
|
+
case "UNSIGNED_INT":
|
|
248
|
+
return ComponentDatatype.UNSIGNED_INT;
|
|
249
|
+
case "FLOAT":
|
|
250
|
+
return ComponentDatatype.FLOAT;
|
|
251
|
+
case "DOUBLE":
|
|
252
|
+
return ComponentDatatype.DOUBLE;
|
|
253
|
+
//>>includeStart('debug', pragmas.debug);
|
|
254
|
+
default:
|
|
255
|
+
throw new DeveloperError_default("name is not a valid value.");
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
var ComponentDatatype_default = Object.freeze(ComponentDatatype);
|
|
259
|
+
|
|
260
|
+
export {
|
|
261
|
+
ComponentDatatype_default
|
|
262
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.42
|
|
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
|
+
};
|