deeptwins-cesium-engine 0.1.2 → 0.1.4
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-2HWLF3FT.js +837 -0
- package/Build/Workers/chunk-2KXMJ5XS.js +3792 -0
- package/Build/Workers/chunk-2NPCLB3H.js +56 -0
- package/Build/Workers/chunk-2ZHQTIBH.js +1483 -0
- package/Build/Workers/chunk-3GLYOW63.js +352 -0
- package/Build/Workers/chunk-3L22KMPU.js +219 -0
- package/Build/Workers/chunk-3Q6V2B2I.js +73 -0
- package/Build/Workers/chunk-3QOKKRIG.js +387 -0
- package/Build/Workers/chunk-44YZFGRH.js +1800 -0
- package/Build/Workers/chunk-45VV4SBO.js +2342 -0
- package/Build/Workers/chunk-4EJ4AA2S.js +368 -0
- package/Build/Workers/chunk-4IJFHUL6.js +414 -0
- package/Build/Workers/chunk-4K3V5CGW.js +454 -0
- package/Build/Workers/chunk-4M4QL6KJ.js +305 -0
- package/Build/Workers/chunk-4YNRIEQ6.js +288 -0
- package/Build/Workers/chunk-56CVDPH5.js +352 -0
- package/Build/Workers/chunk-5CTAAPXH.js +1483 -0
- package/Build/Workers/chunk-5ISZ6NJD.js +102 -0
- package/Build/Workers/chunk-5SDHYIOS.js +56 -0
- package/Build/Workers/chunk-66TGUMCU.js +2719 -0
- package/Build/Workers/chunk-6EJMTDQJ.js +163 -0
- package/Build/Workers/chunk-6VWXYSMH.js +959 -0
- package/Build/Workers/chunk-6VZ7VB2Q.js +241 -0
- package/Build/Workers/chunk-7AMRE57Q.js +301 -0
- package/Build/Workers/chunk-7DH6C33H.js +398 -0
- package/Build/Workers/chunk-7VUS3FVE.js +38 -0
- package/Build/Workers/chunk-7Y3ZA6H3.js +198 -0
- package/Build/Workers/chunk-A6BMHZNA.js +38 -0
- package/Build/Workers/chunk-A7XY2MN7.js +171 -0
- package/Build/Workers/chunk-AC7ND63S.js +57 -0
- package/Build/Workers/chunk-AHCZ757M.js +9230 -0
- package/Build/Workers/chunk-ANOA7E7F.js +56 -0
- package/Build/Workers/chunk-AYO5HHV6.js +789 -0
- package/Build/Workers/chunk-BE2N56VZ.js +1344 -0
- package/Build/Workers/chunk-BR3BPM64.js +9230 -0
- package/Build/Workers/chunk-BVMRWGOK.js +455 -0
- package/Build/Workers/chunk-BXEL2NX7.js +455 -0
- package/Build/Workers/chunk-C5BO2JCG.js +278 -0
- package/Build/Workers/chunk-CIRQNZVR.js +301 -0
- package/Build/Workers/chunk-CM67CQME.js +305 -0
- package/Build/Workers/chunk-D3QIW4DH.js +630 -0
- package/Build/Workers/chunk-E5W7QIGZ.js +511 -0
- package/Build/Workers/chunk-E6CYGUJI.js +1054 -0
- package/Build/Workers/chunk-EIZ23IOX.js +414 -0
- package/Build/Workers/chunk-EIZJUMQY.js +101 -0
- package/Build/Workers/chunk-EXTMZJXB.js +82 -0
- package/Build/Workers/chunk-EYOOSIBW.js +682 -0
- package/Build/Workers/chunk-F37WADVC.js +1054 -0
- package/Build/Workers/chunk-FIWPJFHX.js +101 -0
- package/Build/Workers/chunk-FM32TNGT.js +198 -0
- package/Build/Workers/chunk-FOMYIEIB.js +476 -0
- package/Build/Workers/chunk-FWYDLSVQ.js +97 -0
- package/Build/Workers/chunk-HGZR6CZF.js +1067 -0
- package/Build/Workers/chunk-HIXHDABG.js +288 -0
- package/Build/Workers/chunk-HMCCZZWE.js +97 -0
- package/Build/Workers/chunk-HW54WHGM.js +2719 -0
- package/Build/Workers/chunk-IHYAI7GF.js +973 -0
- package/Build/Workers/chunk-INLQ7LVK.js +837 -0
- package/Build/Workers/chunk-IQMESTCB.js +124 -0
- package/Build/Workers/chunk-J4PISUNT.js +2342 -0
- package/Build/Workers/chunk-JSWU557I.js +693 -0
- package/Build/Workers/chunk-KHONDSQ7.js +693 -0
- package/Build/Workers/chunk-KLUL2SOE.js +352 -0
- package/Build/Workers/chunk-KMBLKQCC.js +1992 -0
- package/Build/Workers/chunk-KOTWWQN7.js +171 -0
- package/Build/Workers/chunk-KWV6ZTF4.js +163 -0
- package/Build/Workers/chunk-LSEFPQHG.js +476 -0
- package/Build/Workers/chunk-M66X4O24.js +44 -0
- package/Build/Workers/chunk-M6IXKBC7.js +1992 -0
- package/Build/Workers/chunk-MFUC3D5C.js +162 -0
- package/Build/Workers/chunk-MRMNELAH.js +82 -0
- package/Build/Workers/chunk-N3NUA5H2.js +3792 -0
- package/Build/Workers/chunk-NFB2NXJN.js +138 -0
- package/Build/Workers/chunk-NQAXBK4K.js +789 -0
- package/Build/Workers/chunk-NUGQWV6S.js +352 -0
- package/Build/Workers/chunk-O7S7WL7K.js +278 -0
- package/Build/Workers/chunk-ODZYB26X.js +1287 -0
- package/Build/Workers/chunk-OEHJY463.js +3201 -0
- package/Build/Workers/chunk-OMMRNMXF.js +44 -0
- package/Build/Workers/chunk-OZ3CQDO3.js +138 -0
- package/Build/Workers/chunk-PNXBG64I.js +219 -0
- package/Build/Workers/chunk-PYR35GK4.js +973 -0
- package/Build/Workers/chunk-Q4CXGW74.js +57 -0
- package/Build/Workers/chunk-QGISLKCW.js +147 -0
- package/Build/Workers/chunk-QQHVOJW6.js +497 -0
- package/Build/Workers/chunk-QWCMMRJW.js +58 -0
- package/Build/Workers/chunk-RDEZCHF4.js +398 -0
- package/Build/Workers/chunk-SJTE7FVN.js +778 -0
- package/Build/Workers/chunk-SM5T67LR.js +162 -0
- package/Build/Workers/chunk-T27NNXEU.js +58 -0
- package/Build/Workers/chunk-T4J5BWUO.js +511 -0
- package/Build/Workers/chunk-T6JS4BRN.js +140 -0
- package/Build/Workers/chunk-UH6DUQBW.js +140 -0
- package/Build/Workers/chunk-UJAH6XKF.js +73 -0
- package/Build/Workers/chunk-UKSTJ2PH.js +454 -0
- package/Build/Workers/chunk-UQCDCCZ7.js +368 -0
- package/Build/Workers/chunk-UXIFNEA3.js +1287 -0
- package/Build/Workers/chunk-UXJ6J5L7.js +56 -0
- package/Build/Workers/chunk-V4VUAZXI.js +1800 -0
- package/Build/Workers/chunk-VQH2YXO2.js +497 -0
- package/Build/Workers/chunk-VXKCLSE4.js +241 -0
- package/Build/Workers/chunk-W3U6YBEI.js +280 -0
- package/Build/Workers/chunk-W75ZVFKP.js +778 -0
- package/Build/Workers/chunk-WCDFJYFB.js +1344 -0
- package/Build/Workers/chunk-WME5M6W3.js +630 -0
- package/Build/Workers/chunk-XDQBQB64.js +1067 -0
- package/Build/Workers/chunk-Y6HOIWE5.js +959 -0
- package/Build/Workers/chunk-YEMC2ZOR.js +147 -0
- package/Build/Workers/chunk-YWNF3TPE.js +682 -0
- package/Build/Workers/chunk-Z55VGWJP.js +280 -0
- package/Build/Workers/chunk-Z5YWP24C.js +124 -0
- package/Build/Workers/chunk-ZHXCWUJB.js +387 -0
- package/Build/Workers/chunk-ZIMPUF2I.js +102 -0
- package/Build/Workers/chunk-ZKDWYQKC.js +3201 -0
- package/Build/Workers/combineGeometry.js +24 -22
- package/Build/Workers/createBoxGeometry.js +18 -16
- package/Build/Workers/createBoxOutlineGeometry.js +23 -25
- package/Build/Workers/createCircleGeometry.js +29 -27
- package/Build/Workers/createCircleOutlineGeometry.js +22 -20
- package/Build/Workers/createCoplanarPolygonGeometry.js +43 -43
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +37 -35
- package/Build/Workers/createCorridorGeometry.js +46 -49
- package/Build/Workers/createCorridorOutlineGeometry.js +40 -43
- package/Build/Workers/createCylinderGeometry.js +20 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +27 -25
- package/Build/Workers/createEllipseGeometry.js +28 -25
- package/Build/Workers/createEllipseOutlineGeometry.js +21 -18
- package/Build/Workers/createEllipsoidGeometry.js +19 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -16
- package/Build/Workers/createFrustumGeometry.js +18 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +21 -21
- package/Build/Workers/createGeometry.js +31 -26
- package/Build/Workers/createGroundPolylineGeometry.js +188 -135
- package/Build/Workers/createPlaneGeometry.js +22 -21
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -13
- package/Build/Workers/createPolygonGeometry.js +51 -52
- package/Build/Workers/createPolygonOutlineGeometry.js +43 -44
- package/Build/Workers/createPolylineGeometry.js +37 -40
- package/Build/Workers/createPolylineVolumeGeometry.js +41 -44
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +36 -39
- package/Build/Workers/createRectangleGeometry.js +47 -53
- package/Build/Workers/createRectangleOutlineGeometry.js +32 -33
- package/Build/Workers/createSimplePolylineGeometry.js +33 -34
- package/Build/Workers/createSphereGeometry.js +20 -20
- package/Build/Workers/createSphereOutlineGeometry.js +19 -19
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +16 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -22
- package/Build/Workers/createVectorTilePoints.js +15 -13
- package/Build/Workers/createVectorTilePolygons.js +24 -21
- package/Build/Workers/createVectorTilePolylines.js +16 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -27
- package/Build/Workers/createVerticesFromHeightmap.js +42 -63
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -280
- package/Build/Workers/createWallGeometry.js +35 -36
- package/Build/Workers/createWallOutlineGeometry.js +33 -34
- package/Build/Workers/decodeDraco.js +10 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +16 -20
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +20 -12
- package/Build/Workers/transcodeKTX2.js +42 -14
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +24 -21
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Shaders/BillboardCollectionFS.js +85 -81
- package/Source/Shaders/BillboardCollectionVS.js +60 -118
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.js +12 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdgesDirect.js +11 -0
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +11 -0
- package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
- package/Source/Shaders/Builtin/CzmBuiltins.js +12 -0
- package/Source/Shaders/Builtin/Functions/columbusViewMorph.js +8 -1
- package/Source/Shaders/Builtin/Functions/computeTextureTransform.js +25 -0
- package/Source/Shaders/Builtin/Functions/decodeRGB8.js +24 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.js +2 -1
- package/Source/Shaders/Builtin/Functions/unpackTexture.js +37 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +0 -1
- package/Source/Shaders/EllipsoidVS.js +4 -4
- package/Source/Shaders/FXAA3_11.js +2 -0
- package/Source/Shaders/GlobeFS.js +22 -0
- package/Source/Shaders/GlobeVS.js +3 -2
- package/Source/Shaders/Model/MaterialStageFS.js +50 -20
- package/Source/Shaders/Model/MetadataStageFS.js +2 -1
- package/Source/Shaders/Model/MetadataStageVS.js +2 -1
- package/Source/Shaders/Model/ModelFS.js +32 -2
- package/Source/Shaders/Model/ModelVS.js +15 -1
- package/Source/Shaders/Model/PointCloudStylingStageVS.js +2 -1
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +0 -1
- package/Source/Shaders/PointPrimitiveCollectionVS.js +8 -39
- package/Source/Shaders/PolygonSignedDistanceFS.js +64 -33
- package/Source/Shaders/PolylineCommon.js +1 -1
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +7 -15
- package/Source/Shaders/SkyAtmosphereVS.js +2 -1
- package/Source/Shaders/Voxels/IntersectBox.js +20 -33
- package/Source/Shaders/Voxels/IntersectCylinder.js +28 -32
- package/Source/Shaders/Voxels/IntersectDepth.js +10 -6
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +12 -20
- package/Source/Shaders/Voxels/IntersectLongitude.js +21 -9
- package/Source/Shaders/Voxels/Intersection.js +3 -5
- package/Source/Shaders/Voxels/IntersectionUtils.js +2 -1
- package/Source/Shaders/Voxels/Megatexture.js +15 -83
- package/Source/Shaders/Voxels/Octree.js +53 -61
- package/Source/Shaders/Voxels/VoxelFS.js +67 -52
- package/Source/Shaders/Voxels/VoxelUtils.js +0 -19
- package/index.js +346 -261
- package/package.json +1 -1
- package/Source/Shaders/Voxels/IntersectClippingPlanes.js +0 -80
- package/Source/Shaders/Voxels/convertUvToBox.js +0 -46
- package/Source/Shaders/Voxels/convertUvToCylinder.js +0 -101
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +0 -141
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,190 +25,243 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
WebMercatorProjection_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QGISLKCW.js";
|
|
29
29
|
import {
|
|
30
30
|
ArcType_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UXJ6J5L7.js";
|
|
32
32
|
import {
|
|
33
33
|
EncodedCartesian3_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5ISZ6NJD.js";
|
|
35
35
|
import {
|
|
36
36
|
EllipsoidGeodesic_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KLUL2SOE.js";
|
|
38
38
|
import {
|
|
39
39
|
arrayRemoveDuplicates_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FWYDLSVQ.js";
|
|
41
41
|
import {
|
|
42
42
|
EllipsoidRhumbLine_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BVMRWGOK.js";
|
|
44
44
|
import {
|
|
45
45
|
IntersectionTests_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-BE2N56VZ.js";
|
|
47
47
|
import {
|
|
48
48
|
Plane_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KOTWWQN7.js";
|
|
50
50
|
import {
|
|
51
51
|
GeometryAttribute_default,
|
|
52
52
|
Geometry_default
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7AMRE57Q.js";
|
|
54
54
|
import {
|
|
55
55
|
BoundingSphere_default,
|
|
56
56
|
GeographicProjection_default
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ODZYB26X.js";
|
|
58
|
+
import "./chunk-ANOA7E7F.js";
|
|
58
59
|
import {
|
|
59
60
|
Quaternion_default,
|
|
60
61
|
Rectangle_default,
|
|
61
62
|
Resource_default,
|
|
62
63
|
buildModuleUrl_default
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-BR3BPM64.js";
|
|
65
|
+
import "./chunk-OEHJY463.js";
|
|
64
66
|
import {
|
|
65
67
|
ComponentDatatype_default
|
|
66
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-C5BO2JCG.js";
|
|
69
|
+
import "./chunk-D3QIW4DH.js";
|
|
70
|
+
import "./chunk-T27NNXEU.js";
|
|
67
71
|
import {
|
|
68
72
|
Cartesian2_default,
|
|
69
|
-
Cartesian3_default,
|
|
70
73
|
Cartographic_default,
|
|
71
|
-
Ellipsoid_default
|
|
74
|
+
Ellipsoid_default
|
|
75
|
+
} from "./chunk-M6IXKBC7.js";
|
|
76
|
+
import {
|
|
77
|
+
Cartesian3_default,
|
|
78
|
+
Frozen_default,
|
|
72
79
|
Matrix3_default
|
|
73
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-J4PISUNT.js";
|
|
74
81
|
import {
|
|
75
82
|
Math_default
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import "./chunk-RZQLZIUI.js";
|
|
78
|
-
import "./chunk-I73Q3AG7.js";
|
|
79
|
-
import {
|
|
80
|
-
defaultValue_default
|
|
81
|
-
} from "./chunk-ATLWOZFF.js";
|
|
83
|
+
} from "./chunk-VQH2YXO2.js";
|
|
82
84
|
import {
|
|
83
85
|
Check_default,
|
|
84
86
|
DeveloperError_default
|
|
85
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
86
88
|
import {
|
|
87
89
|
defined_default
|
|
88
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-MRMNELAH.js";
|
|
89
91
|
|
|
90
92
|
// packages/engine/Source/Core/GeographicTilingScheme.js
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
93
|
+
var GeographicTilingScheme = class {
|
|
94
|
+
/**
|
|
95
|
+
* @param {object} [options] Object with the following properties:
|
|
96
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.default] The ellipsoid whose surface is being tiled. Defaults to
|
|
97
|
+
* the default ellipsoid.
|
|
98
|
+
* @param {Rectangle} [options.rectangle=Rectangle.MAX_VALUE] The rectangle, in radians, covered by the tiling scheme.
|
|
99
|
+
* @param {number} [options.numberOfLevelZeroTilesX=2] The number of tiles in the X direction at level zero of
|
|
100
|
+
* the tile tree.
|
|
101
|
+
* @param {number} [options.numberOfLevelZeroTilesY=1] The number of tiles in the Y direction at level zero of
|
|
102
|
+
* the tile tree.
|
|
103
|
+
*/
|
|
104
|
+
constructor(options) {
|
|
105
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
106
|
+
this._ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
|
|
107
|
+
this._rectangle = options.rectangle ?? Rectangle_default.MAX_VALUE;
|
|
108
|
+
this._projection = new GeographicProjection_default(this._ellipsoid);
|
|
109
|
+
this._numberOfLevelZeroTilesX = options.numberOfLevelZeroTilesX ?? 2;
|
|
110
|
+
this._numberOfLevelZeroTilesY = options.numberOfLevelZeroTilesY ?? 1;
|
|
111
|
+
}
|
|
106
112
|
/**
|
|
107
113
|
* Gets the ellipsoid that is tiled by this tiling scheme.
|
|
108
|
-
* @memberof GeographicTilingScheme.prototype
|
|
109
114
|
* @type {Ellipsoid}
|
|
110
115
|
*/
|
|
111
|
-
ellipsoid
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
+
get ellipsoid() {
|
|
117
|
+
return this._ellipsoid;
|
|
118
|
+
}
|
|
116
119
|
/**
|
|
117
120
|
* Gets the rectangle, in radians, covered by this tiling scheme.
|
|
118
|
-
* @memberof GeographicTilingScheme.prototype
|
|
119
121
|
* @type {Rectangle}
|
|
120
122
|
*/
|
|
121
|
-
rectangle
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
},
|
|
123
|
+
get rectangle() {
|
|
124
|
+
return this._rectangle;
|
|
125
|
+
}
|
|
126
126
|
/**
|
|
127
127
|
* Gets the map projection used by this tiling scheme.
|
|
128
|
-
* @memberof GeographicTilingScheme.prototype
|
|
129
128
|
* @type {MapProjection}
|
|
130
129
|
*/
|
|
131
|
-
projection
|
|
132
|
-
|
|
133
|
-
return this._projection;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
GeographicTilingScheme.prototype.getNumberOfXTilesAtLevel = function(level) {
|
|
138
|
-
return this._numberOfLevelZeroTilesX << level;
|
|
139
|
-
};
|
|
140
|
-
GeographicTilingScheme.prototype.getNumberOfYTilesAtLevel = function(level) {
|
|
141
|
-
return this._numberOfLevelZeroTilesY << level;
|
|
142
|
-
};
|
|
143
|
-
GeographicTilingScheme.prototype.rectangleToNativeRectangle = function(rectangle, result) {
|
|
144
|
-
Check_default.defined("rectangle", rectangle);
|
|
145
|
-
const west = Math_default.toDegrees(rectangle.west);
|
|
146
|
-
const south = Math_default.toDegrees(rectangle.south);
|
|
147
|
-
const east = Math_default.toDegrees(rectangle.east);
|
|
148
|
-
const north = Math_default.toDegrees(rectangle.north);
|
|
149
|
-
if (!defined_default(result)) {
|
|
150
|
-
return new Rectangle_default(west, south, east, north);
|
|
130
|
+
get projection() {
|
|
131
|
+
return this._projection;
|
|
151
132
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
rectangleRadians.west = Math_default.toDegrees(rectangleRadians.west);
|
|
161
|
-
rectangleRadians.south = Math_default.toDegrees(rectangleRadians.south);
|
|
162
|
-
rectangleRadians.east = Math_default.toDegrees(rectangleRadians.east);
|
|
163
|
-
rectangleRadians.north = Math_default.toDegrees(rectangleRadians.north);
|
|
164
|
-
return rectangleRadians;
|
|
165
|
-
};
|
|
166
|
-
GeographicTilingScheme.prototype.tileXYToRectangle = function(x, y, level, result) {
|
|
167
|
-
const rectangle = this._rectangle;
|
|
168
|
-
const xTiles = this.getNumberOfXTilesAtLevel(level);
|
|
169
|
-
const yTiles = this.getNumberOfYTilesAtLevel(level);
|
|
170
|
-
const xTileWidth = rectangle.width / xTiles;
|
|
171
|
-
const west = x * xTileWidth + rectangle.west;
|
|
172
|
-
const east = (x + 1) * xTileWidth + rectangle.west;
|
|
173
|
-
const yTileHeight = rectangle.height / yTiles;
|
|
174
|
-
const north = rectangle.north - y * yTileHeight;
|
|
175
|
-
const south = rectangle.north - (y + 1) * yTileHeight;
|
|
176
|
-
if (!defined_default(result)) {
|
|
177
|
-
result = new Rectangle_default(west, south, east, north);
|
|
133
|
+
/**
|
|
134
|
+
* Gets the total number of tiles in the X direction at a specified level-of-detail.
|
|
135
|
+
*
|
|
136
|
+
* @param {number} level The level-of-detail.
|
|
137
|
+
* @returns {number} The number of tiles in the X direction at the given level.
|
|
138
|
+
*/
|
|
139
|
+
getNumberOfXTilesAtLevel(level) {
|
|
140
|
+
return this._numberOfLevelZeroTilesX << level;
|
|
178
141
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
if (!Rectangle_default.contains(rectangle, position)) {
|
|
188
|
-
return void 0;
|
|
142
|
+
/**
|
|
143
|
+
* Gets the total number of tiles in the Y direction at a specified level-of-detail.
|
|
144
|
+
*
|
|
145
|
+
* @param {number} level The level-of-detail.
|
|
146
|
+
* @returns {number} The number of tiles in the Y direction at the given level.
|
|
147
|
+
*/
|
|
148
|
+
getNumberOfYTilesAtLevel(level) {
|
|
149
|
+
return this._numberOfLevelZeroTilesY << level;
|
|
189
150
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
151
|
+
/**
|
|
152
|
+
* Transforms a rectangle specified in geodetic radians to the native coordinate system
|
|
153
|
+
* of this tiling scheme.
|
|
154
|
+
*
|
|
155
|
+
* @param {Rectangle} rectangle The rectangle to transform.
|
|
156
|
+
* @param {Rectangle} [result] The instance to which to copy the result, or undefined if a new instance
|
|
157
|
+
* should be created.
|
|
158
|
+
* @returns {Rectangle} The specified 'result', or a new object containing the native rectangle if 'result'
|
|
159
|
+
* is undefined.
|
|
160
|
+
*/
|
|
161
|
+
rectangleToNativeRectangle(rectangle, result) {
|
|
162
|
+
Check_default.defined("rectangle", rectangle);
|
|
163
|
+
const west = Math_default.toDegrees(rectangle.west);
|
|
164
|
+
const south = Math_default.toDegrees(rectangle.south);
|
|
165
|
+
const east = Math_default.toDegrees(rectangle.east);
|
|
166
|
+
const north = Math_default.toDegrees(rectangle.north);
|
|
167
|
+
if (!defined_default(result)) {
|
|
168
|
+
return new Rectangle_default(west, south, east, north);
|
|
169
|
+
}
|
|
170
|
+
result.west = west;
|
|
171
|
+
result.south = south;
|
|
172
|
+
result.east = east;
|
|
173
|
+
result.north = north;
|
|
174
|
+
return result;
|
|
197
175
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
176
|
+
/**
|
|
177
|
+
* Converts tile x, y coordinates and level to a rectangle expressed in the native coordinates
|
|
178
|
+
* of the tiling scheme.
|
|
179
|
+
*
|
|
180
|
+
* @param {number} x The integer x coordinate of the tile.
|
|
181
|
+
* @param {number} y The integer y coordinate of the tile.
|
|
182
|
+
* @param {number} level The tile level-of-detail. Zero is the least detailed.
|
|
183
|
+
* @param {Rectangle} [result] The instance to which to copy the result, or undefined if a new instance
|
|
184
|
+
* should be created.
|
|
185
|
+
* @returns {Rectangle} The specified 'result', or a new object containing the rectangle
|
|
186
|
+
* if 'result' is undefined.
|
|
187
|
+
*/
|
|
188
|
+
tileXYToNativeRectangle(x, y, level, result) {
|
|
189
|
+
const rectangleRadians = this.tileXYToRectangle(x, y, level, result);
|
|
190
|
+
rectangleRadians.west = Math_default.toDegrees(rectangleRadians.west);
|
|
191
|
+
rectangleRadians.south = Math_default.toDegrees(rectangleRadians.south);
|
|
192
|
+
rectangleRadians.east = Math_default.toDegrees(rectangleRadians.east);
|
|
193
|
+
rectangleRadians.north = Math_default.toDegrees(rectangleRadians.north);
|
|
194
|
+
return rectangleRadians;
|
|
201
195
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
196
|
+
/**
|
|
197
|
+
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
|
198
|
+
*
|
|
199
|
+
* @param {number} x The integer x coordinate of the tile.
|
|
200
|
+
* @param {number} y The integer y coordinate of the tile.
|
|
201
|
+
* @param {number} level The tile level-of-detail. Zero is the least detailed.
|
|
202
|
+
* @param {Rectangle} [result] The instance to which to copy the result, or undefined if a new instance
|
|
203
|
+
* should be created.
|
|
204
|
+
* @returns {Rectangle} The specified 'result', or a new object containing the rectangle
|
|
205
|
+
* if 'result' is undefined.
|
|
206
|
+
*/
|
|
207
|
+
tileXYToRectangle(x, y, level, result) {
|
|
208
|
+
const rectangle = this._rectangle;
|
|
209
|
+
const xTiles = this.getNumberOfXTilesAtLevel(level);
|
|
210
|
+
const yTiles = this.getNumberOfYTilesAtLevel(level);
|
|
211
|
+
const xTileWidth = rectangle.width / xTiles;
|
|
212
|
+
const west = x * xTileWidth + rectangle.west;
|
|
213
|
+
const east = (x + 1) * xTileWidth + rectangle.west;
|
|
214
|
+
const yTileHeight = rectangle.height / yTiles;
|
|
215
|
+
const north = rectangle.north - y * yTileHeight;
|
|
216
|
+
const south = rectangle.north - (y + 1) * yTileHeight;
|
|
217
|
+
if (!defined_default(result)) {
|
|
218
|
+
result = new Rectangle_default(west, south, east, north);
|
|
219
|
+
}
|
|
220
|
+
result.west = west;
|
|
221
|
+
result.south = south;
|
|
222
|
+
result.east = east;
|
|
223
|
+
result.north = north;
|
|
224
|
+
return result;
|
|
205
225
|
}
|
|
206
|
-
|
|
207
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Calculates the tile x, y coordinates of the tile containing
|
|
228
|
+
* a given cartographic position.
|
|
229
|
+
*
|
|
230
|
+
* @param {Cartographic} position The position.
|
|
231
|
+
* @param {number} level The tile level-of-detail. Zero is the least detailed.
|
|
232
|
+
* @param {Cartesian2} [result] The instance to which to copy the result, or undefined if a new instance
|
|
233
|
+
* should be created.
|
|
234
|
+
* @returns {Cartesian2} The specified 'result', or a new object containing the tile x, y coordinates
|
|
235
|
+
* if 'result' is undefined.
|
|
236
|
+
*/
|
|
237
|
+
positionToTileXY(position, level, result) {
|
|
238
|
+
const rectangle = this._rectangle;
|
|
239
|
+
if (!Rectangle_default.contains(rectangle, position)) {
|
|
240
|
+
return void 0;
|
|
241
|
+
}
|
|
242
|
+
const xTiles = this.getNumberOfXTilesAtLevel(level);
|
|
243
|
+
const yTiles = this.getNumberOfYTilesAtLevel(level);
|
|
244
|
+
const xTileWidth = rectangle.width / xTiles;
|
|
245
|
+
const yTileHeight = rectangle.height / yTiles;
|
|
246
|
+
let longitude = position.longitude;
|
|
247
|
+
if (rectangle.east < rectangle.west) {
|
|
248
|
+
longitude += Math_default.TWO_PI;
|
|
249
|
+
}
|
|
250
|
+
let xTileCoordinate = (longitude - rectangle.west) / xTileWidth | 0;
|
|
251
|
+
if (xTileCoordinate >= xTiles) {
|
|
252
|
+
xTileCoordinate = xTiles - 1;
|
|
253
|
+
}
|
|
254
|
+
let yTileCoordinate = (rectangle.north - position.latitude) / yTileHeight | 0;
|
|
255
|
+
if (yTileCoordinate >= yTiles) {
|
|
256
|
+
yTileCoordinate = yTiles - 1;
|
|
257
|
+
}
|
|
258
|
+
if (!defined_default(result)) {
|
|
259
|
+
return new Cartesian2_default(xTileCoordinate, yTileCoordinate);
|
|
260
|
+
}
|
|
261
|
+
result.x = xTileCoordinate;
|
|
262
|
+
result.y = yTileCoordinate;
|
|
263
|
+
return result;
|
|
208
264
|
}
|
|
209
|
-
result.x = xTileCoordinate;
|
|
210
|
-
result.y = yTileCoordinate;
|
|
211
|
-
return result;
|
|
212
265
|
};
|
|
213
266
|
var GeographicTilingScheme_default = GeographicTilingScheme;
|
|
214
267
|
|
|
@@ -248,7 +301,7 @@ ApproximateTerrainHeights.getMinimumMaximumHeights = function(rectangle, ellipso
|
|
|
248
301
|
"You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function"
|
|
249
302
|
);
|
|
250
303
|
}
|
|
251
|
-
ellipsoid =
|
|
304
|
+
ellipsoid = ellipsoid ?? Ellipsoid_default.default;
|
|
252
305
|
const xyLevel = getTileXYLevel(rectangle);
|
|
253
306
|
let minTerrainHeight = ApproximateTerrainHeights._defaultMinTerrainHeight;
|
|
254
307
|
let maxTerrainHeight = ApproximateTerrainHeights._defaultMaxTerrainHeight;
|
|
@@ -302,7 +355,7 @@ ApproximateTerrainHeights.getBoundingSphere = function(rectangle, ellipsoid) {
|
|
|
302
355
|
"You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function"
|
|
303
356
|
);
|
|
304
357
|
}
|
|
305
|
-
ellipsoid =
|
|
358
|
+
ellipsoid = ellipsoid ?? Ellipsoid_default.default;
|
|
306
359
|
const xyLevel = getTileXYLevel(rectangle);
|
|
307
360
|
let maxTerrainHeight = ApproximateTerrainHeights._defaultMaxTerrainHeight;
|
|
308
361
|
if (defined_default(xyLevel)) {
|
|
@@ -407,7 +460,7 @@ var MITER_BREAK_LARGE = Math.cos(Math_default.toRadians(150));
|
|
|
407
460
|
var WALL_INITIAL_MIN_HEIGHT = 0;
|
|
408
461
|
var WALL_INITIAL_MAX_HEIGHT = 1e3;
|
|
409
462
|
function GroundPolylineGeometry(options) {
|
|
410
|
-
options =
|
|
463
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
411
464
|
const positions = options.positions;
|
|
412
465
|
if (!defined_default(positions) || positions.length < 2) {
|
|
413
466
|
throw new DeveloperError_default("At least two positions are required.");
|
|
@@ -417,11 +470,11 @@ function GroundPolylineGeometry(options) {
|
|
|
417
470
|
"Valid options for arcType are ArcType.GEODESIC and ArcType.RHUMB."
|
|
418
471
|
);
|
|
419
472
|
}
|
|
420
|
-
this.width =
|
|
473
|
+
this.width = options.width ?? 1;
|
|
421
474
|
this._positions = positions;
|
|
422
|
-
this.granularity =
|
|
423
|
-
this.loop =
|
|
424
|
-
this.arcType =
|
|
475
|
+
this.granularity = options.granularity ?? 9999;
|
|
476
|
+
this.loop = options.loop ?? false;
|
|
477
|
+
this.arcType = options.arcType ?? ArcType_default.GEODESIC;
|
|
425
478
|
this._ellipsoid = Ellipsoid_default.default;
|
|
426
479
|
this._projectionIndex = 0;
|
|
427
480
|
this._workerName = "createGroundPolylineGeometry";
|
|
@@ -533,7 +586,7 @@ function getPosition(ellipsoid, cartographic, height, result) {
|
|
|
533
586
|
GroundPolylineGeometry.pack = function(value, array, startingIndex) {
|
|
534
587
|
Check_default.typeOf.object("value", value);
|
|
535
588
|
Check_default.defined("array", array);
|
|
536
|
-
let index =
|
|
589
|
+
let index = startingIndex ?? 0;
|
|
537
590
|
const positions = value._positions;
|
|
538
591
|
const positionsLength = positions.length;
|
|
539
592
|
array[index++] = positionsLength;
|
|
@@ -553,7 +606,7 @@ GroundPolylineGeometry.pack = function(value, array, startingIndex) {
|
|
|
553
606
|
};
|
|
554
607
|
GroundPolylineGeometry.unpack = function(array, startingIndex, result) {
|
|
555
608
|
Check_default.defined("array", array);
|
|
556
|
-
let index =
|
|
609
|
+
let index = startingIndex ?? 0;
|
|
557
610
|
const positionsLength = array[index++];
|
|
558
611
|
const positions = new Array(positionsLength);
|
|
559
612
|
for (let i = 0; i < positionsLength; i++) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,42 +25,43 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
VertexFormat_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OZ3CQDO3.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryAttributes_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OMMRNMXF.js";
|
|
32
32
|
import {
|
|
33
33
|
GeometryAttribute_default,
|
|
34
34
|
Geometry_default,
|
|
35
35
|
PrimitiveType_default
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7AMRE57Q.js";
|
|
37
37
|
import {
|
|
38
38
|
BoundingSphere_default
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-ODZYB26X.js";
|
|
40
|
+
import "./chunk-ANOA7E7F.js";
|
|
41
|
+
import "./chunk-BR3BPM64.js";
|
|
42
|
+
import "./chunk-OEHJY463.js";
|
|
41
43
|
import {
|
|
42
44
|
ComponentDatatype_default
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-C5BO2JCG.js";
|
|
46
|
+
import "./chunk-D3QIW4DH.js";
|
|
47
|
+
import "./chunk-T27NNXEU.js";
|
|
48
|
+
import "./chunk-M6IXKBC7.js";
|
|
44
49
|
import {
|
|
45
|
-
Cartesian3_default
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-I73Q3AG7.js";
|
|
50
|
-
import {
|
|
51
|
-
defaultValue_default
|
|
52
|
-
} from "./chunk-ATLWOZFF.js";
|
|
50
|
+
Cartesian3_default,
|
|
51
|
+
Frozen_default
|
|
52
|
+
} from "./chunk-J4PISUNT.js";
|
|
53
|
+
import "./chunk-VQH2YXO2.js";
|
|
53
54
|
import {
|
|
54
55
|
Check_default
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
56
57
|
import {
|
|
57
58
|
defined_default
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-MRMNELAH.js";
|
|
59
60
|
|
|
60
61
|
// packages/engine/Source/Core/PlaneGeometry.js
|
|
61
62
|
function PlaneGeometry(options) {
|
|
62
|
-
options =
|
|
63
|
-
const vertexFormat =
|
|
63
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
64
|
+
const vertexFormat = options.vertexFormat ?? VertexFormat_default.DEFAULT;
|
|
64
65
|
this._vertexFormat = vertexFormat;
|
|
65
66
|
this._workerName = "createPlaneGeometry";
|
|
66
67
|
}
|
|
@@ -68,7 +69,7 @@ PlaneGeometry.packedLength = VertexFormat_default.packedLength;
|
|
|
68
69
|
PlaneGeometry.pack = function(value, array, startingIndex) {
|
|
69
70
|
Check_default.typeOf.object("value", value);
|
|
70
71
|
Check_default.defined("array", array);
|
|
71
|
-
startingIndex =
|
|
72
|
+
startingIndex = startingIndex ?? 0;
|
|
72
73
|
VertexFormat_default.pack(value._vertexFormat, array, startingIndex);
|
|
73
74
|
return array;
|
|
74
75
|
};
|
|
@@ -78,7 +79,7 @@ var scratchOptions = {
|
|
|
78
79
|
};
|
|
79
80
|
PlaneGeometry.unpack = function(array, startingIndex, result) {
|
|
80
81
|
Check_default.defined("array", array);
|
|
81
|
-
startingIndex =
|
|
82
|
+
startingIndex = startingIndex ?? 0;
|
|
82
83
|
const vertexFormat = VertexFormat_default.unpack(
|
|
83
84
|
array,
|
|
84
85
|
startingIndex,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,32 +25,34 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
GeometryAttributes_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OMMRNMXF.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryAttribute_default,
|
|
31
31
|
Geometry_default,
|
|
32
32
|
PrimitiveType_default
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7AMRE57Q.js";
|
|
34
34
|
import {
|
|
35
35
|
BoundingSphere_default
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-ODZYB26X.js";
|
|
37
|
+
import "./chunk-ANOA7E7F.js";
|
|
38
|
+
import "./chunk-BR3BPM64.js";
|
|
39
|
+
import "./chunk-OEHJY463.js";
|
|
38
40
|
import {
|
|
39
41
|
ComponentDatatype_default
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-C5BO2JCG.js";
|
|
43
|
+
import "./chunk-D3QIW4DH.js";
|
|
44
|
+
import "./chunk-T27NNXEU.js";
|
|
45
|
+
import "./chunk-M6IXKBC7.js";
|
|
41
46
|
import {
|
|
42
47
|
Cartesian3_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-RZQLZIUI.js";
|
|
46
|
-
import "./chunk-I73Q3AG7.js";
|
|
47
|
-
import "./chunk-ATLWOZFF.js";
|
|
48
|
+
} from "./chunk-J4PISUNT.js";
|
|
49
|
+
import "./chunk-VQH2YXO2.js";
|
|
48
50
|
import {
|
|
49
51
|
Check_default
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
51
53
|
import {
|
|
52
54
|
defined_default
|
|
53
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-MRMNELAH.js";
|
|
54
56
|
|
|
55
57
|
// packages/engine/Source/Core/PlaneOutlineGeometry.js
|
|
56
58
|
function PlaneOutlineGeometry() {
|