earthsdk3-cesium 3.6.0-beta.121 → 3.6.0-beta.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.
- package/dist/earthsdk3-cesium.iife.js +176 -175
- package/dist/earthsdk3-cesium.js +8958 -8918
- package/dist/earthsdk3-cesium.umd.cjs +115 -114
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/MVTImageryProvider.d.ts +6 -0
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/MVTImageryProvider.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/type.d.ts +4 -0
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/extends/type.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/imageryProviderUtils.d.ts +2 -2
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/imageryProviderUtils.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmImagery/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmPois/GeoCanvasImagePoi/impl/CanvasImagePoi.d.ts +4 -0
- package/dist/types/CzmObjects/base/InnerClass/CzmPois/GeoCanvasImagePoi/impl/CanvasImagePoi.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmPois/GeoCanvasImagePoi/impl/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/CzmPois/GeoCanvasImagePoi/index.d.ts +1 -0
- package/dist/types/CzmObjects/base/InnerClass/CzmPois/GeoCanvasImagePoi/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/Polyline/index.d.ts +1 -0
- package/dist/types/CzmObjects/base/InnerClass/Polyline/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/base/InnerClass/XbsjGroundPolylinePrimitive/GroundPolylinePrimitive.d.ts +148 -0
- package/dist/types/CzmObjects/general/CzmES3DTileset/Czm3DTiles/getSimpleUpdateEvents.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmESApertureEffect/index.d.ts +3 -0
- package/dist/types/CzmObjects/general/CzmESApertureEffect/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESCzml/CzmCzml.d.ts +1 -77
- package/dist/types/CzmObjects/general/CzmESCzml/CzmCzml.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESEntityCluster/index.d.ts +1 -1
- package/dist/types/CzmObjects/general/CzmESEntityCluster/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESGeoDiv/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESGltfModel/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESImageLabel/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index.d.ts +5 -5
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index_bak.d.ts +12 -0
- package/dist/types/CzmObjects/general/CzmESMVTLayer/index_bak.d.ts.map +1 -0
- package/dist/types/CzmObjects/general/CzmESPath/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESPipeFence/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESPoi2D/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESPolygonWithHole/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESSignalTransmission/XbsjPolyline/XbsjPolylineGeometry.d.ts +3 -0
- package/dist/types/CzmObjects/general/CzmESSignalTransmission/XbsjPolyline/xbsjCreateODLinesPrimitive.d.ts +29 -0
- package/dist/types/CzmObjects/general/CzmESSunshineAnalysis/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESTerrainLayer/index.d.ts.map +1 -1
- package/dist/types/CzmObjects/general/CzmESVideoFusion/XbsjCameraVideo/XbsjCameraVideo.d.ts +18 -0
- package/dist/types/CzmObjects/general/CzmESViewShed/XbsjViewshed/XbsjViewshed.d.ts +16 -0
- package/dist/types/ESCesiumViewer/BackGroundImage/BackGroundImage.d.ts +5 -0
- package/dist/types/ESCesiumViewer/LocalSkyBox/SkyAtmosphere.d.ts +14 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/AvoidanceManager.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenLayer.d.ts +2 -2
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/ScreenLayer.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/utils.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/EventManager.d.ts +15 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/EventManager.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.d.ts +28 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/StyleManager.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileLoader.d.ts +28 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileLoader.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileRenderer.d.ts +22 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TileRenderer.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TilesCache..d.ts +23 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/TilesCache..d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.d.ts +49 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/VectorTilesManager/index.d.ts.map +1 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/index.d.ts +3 -0
- package/dist/types/ESCesiumViewer/ViewerExtensions/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/index.d.ts +3 -1
- package/dist/types/ESCesiumViewer/index.d.ts.map +1 -1
- package/dist/types/ESCesiumViewer/initCesiumViewer/GaussianSplattingExtend/GaussianSplatPipelineStage.d.ts +12 -0
- package/dist/types/ESCesiumViewer/initCesiumViewer/GaussianSplattingExtend/GaussianSplatTexturePipelineStage.d.ts +11 -0
- package/dist/types/ESCesiumViewer/initCesiumViewer/fixGoogleEarth/cesiumFixGoogleEarth.d.ts +1 -0
- package/dist/types/ESJTypesCzm/czmObject/CzmMaterialJsonType.d.ts +38 -36
- package/dist/types/ESJTypesCzm/czmObject/CzmMaterialJsonType.d.ts.map +1 -1
- package/dist/types/ESObjects/ESGeHistoryImagery/index.d.ts +1 -0
- package/dist/types/ESObjects/ESGeHistoryImagery/index.d.ts.map +1 -1
- package/dist/types/ESObjects/ESSignalTransmission.d.ts.map +1 -1
- package/dist/types/EditingSystem/editingProcessing.d.ts +2 -2
- package/dist/types/EditingSystem/editingProcessing.d.ts.map +1 -1
- package/dist/types/EditingSystem/wrapper/BaseEditingWrapper.d.ts.map +1 -1
- package/dist/types/EditingSystem/wrapper/HeightModifyEditingWrapper.d.ts.map +1 -1
- package/dist/types/__declares/cesium.d.ts +434 -0
- package/dist/types/utils/czmUtils/calculateImageTiles.d.ts +17 -0
- package/dist/types/utils/czmUtils/calculateImageTiles.d.ts.map +1 -0
- package/dist/types/utils/czmUtils/createMaterialRef.d.ts.map +1 -1
- package/dist/types/utils/czmUtils/index.d.ts +1 -0
- package/dist/types/utils/czmUtils/index.d.ts.map +1 -1
- package/dist/types/utils/czmUtils/todo/generateCartesianArc/czm/generateCartesianArc.d.ts +8 -0
- package/dist/types/utils/generalUtils/geoPolylineToBezierSpline/bezierSpline/index.d.ts +37 -0
- package/dist/types/utils/generalUtils/geoPolylineToBezierSpline/bezierSpline/lib/spline.d.ts +62 -0
- package/package.json +2 -2
- package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/VectorTilesCache.d.ts +0 -32
- package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/VectorTilesCache.d.ts.map +0 -1
- package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/index.d.ts +0 -12
- package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/index.d.ts.map +0 -1
- package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/utils.d.ts +0 -61
- package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/utils.d.ts.map +0 -1
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/getElementSize.d.ts +0 -5
- package/dist/types/ESCesiumViewer/ViewerExtensions/ScreenManager/getElementSize.d.ts.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CzmTilingSchemaJsonType } from '../../ESJTypesCzm';
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
import { ESJVector4D } from 'earthsdk3';
|
|
4
|
+
export type ImageryTileInfo = {
|
|
5
|
+
tilingScheme?: CzmTilingSchemaJsonType;
|
|
6
|
+
rectangle?: ESJVector4D;
|
|
7
|
+
maximumLevel?: number;
|
|
8
|
+
minimumLevel?: number;
|
|
9
|
+
tileWidth?: number;
|
|
10
|
+
tileHeight?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function calculateImageTiles(tiles: Cesium.QuadtreeTile | Cesium.QuadtreeTile[], terrainProvider: Cesium.TerrainProvider, imageryTileInfo: ImageryTileInfo): {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
level: number;
|
|
16
|
+
}[];
|
|
17
|
+
//# sourceMappingURL=calculateImageTiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateImageTiles.d.ts","sourceRoot":"","sources":["../../../../src/utils/czmUtils/calculateImageTiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG;IAC1B,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe;OAC/H,MAAM;OAAK,MAAM;WAAS,MAAM;IAmEjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMaterialRef.d.ts","sourceRoot":"","sources":["../../../../src/utils/czmUtils/createMaterialRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAwB,eAAe,EAAE,MAAM,WAAW,CAAC;AAElE,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,mBAAmB,mBAIvE;AAUD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"createMaterialRef.d.ts","sourceRoot":"","sources":["../../../../src/utils/czmUtils/createMaterialRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAwB,eAAe,EAAE,MAAM,WAAW,CAAC;AAElE,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,mBAAmB,mBAIvE;AAUD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,mBAAmB,QAiHlG;AAED,wBAAgB,iBAAiB,CAAC,mBAAmB,EAAE,eAAe,CAAC,mBAAmB,GAAG,SAAS,CAAC,EAAE,mBAAmB,CAAC,EAAE,mBAAmB,qEAwBjJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/czmUtils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,QAAQ,CAAC;AACvB,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/czmUtils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,QAAQ,CAAC;AACvB,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Feature, LineString, Properties } from "@turf/helpers";
|
|
2
|
+
/**
|
|
3
|
+
* Takes a {@link LineString|line} and returns a curved version
|
|
4
|
+
* by applying a [Bezier spline](http://en.wikipedia.org/wiki/B%C3%A9zier_spline)
|
|
5
|
+
* algorithm.
|
|
6
|
+
*
|
|
7
|
+
* The bezier spline implementation is by [Leszek Rybicki](http://leszek.rybicki.cc/).
|
|
8
|
+
*
|
|
9
|
+
* @name bezierSpline
|
|
10
|
+
* @param {Feature<LineString>} line input LineString
|
|
11
|
+
* @param {Object} [options={}] Optional parameters
|
|
12
|
+
* @param {Object} [options.properties={}] Translate properties to output
|
|
13
|
+
* @param {number} [options.resolution=10000] time in milliseconds between points
|
|
14
|
+
* @param {number} [options.sharpness=0.85] a measure of how curvy the path should be between splines
|
|
15
|
+
* @returns {Feature<LineString>} curved line
|
|
16
|
+
* @example
|
|
17
|
+
* var line = turf.lineString([
|
|
18
|
+
* [-76.091308, 18.427501],
|
|
19
|
+
* [-76.695556, 18.729501],
|
|
20
|
+
* [-76.552734, 19.40443],
|
|
21
|
+
* [-74.61914, 19.134789],
|
|
22
|
+
* [-73.652343, 20.07657],
|
|
23
|
+
* [-73.157958, 20.210656]
|
|
24
|
+
* ]);
|
|
25
|
+
*
|
|
26
|
+
* var curved = turf.bezierSpline(line);
|
|
27
|
+
*
|
|
28
|
+
* //addToMap
|
|
29
|
+
* var addToMap = [line, curved]
|
|
30
|
+
* curved.properties = { stroke: '#0F0' };
|
|
31
|
+
*/
|
|
32
|
+
declare function bezier<P = Properties>(line: Feature<LineString> | LineString, options?: {
|
|
33
|
+
properties?: P;
|
|
34
|
+
resolution?: number;
|
|
35
|
+
sharpness?: number;
|
|
36
|
+
}): Feature<LineString, P>;
|
|
37
|
+
export default bezier;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface Point {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
z: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* BezierSpline
|
|
8
|
+
* https://github.com/leszekr/bezier-spline-js
|
|
9
|
+
*
|
|
10
|
+
* @private
|
|
11
|
+
* @copyright
|
|
12
|
+
* Copyright (c) 2013 Leszek Rybicki
|
|
13
|
+
*
|
|
14
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
* in the Software without restriction, including without limitation the rights
|
|
17
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
* furnished to do so, subject to the following conditions:
|
|
20
|
+
*
|
|
21
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
* copies or substantial portions of the Software.
|
|
23
|
+
*
|
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
* SOFTWARE.
|
|
31
|
+
*/
|
|
32
|
+
export default class Spline {
|
|
33
|
+
duration: number;
|
|
34
|
+
points: Point[];
|
|
35
|
+
sharpness: number;
|
|
36
|
+
centers: Point[];
|
|
37
|
+
controls: Array<[Point, Point]>;
|
|
38
|
+
stepLength: number;
|
|
39
|
+
length: number;
|
|
40
|
+
delay: number;
|
|
41
|
+
steps: number[];
|
|
42
|
+
constructor(options?: any);
|
|
43
|
+
/**
|
|
44
|
+
* Caches an array of equidistant (more or less) points on the curve.
|
|
45
|
+
*/
|
|
46
|
+
cacheSteps(mindist: number): number[];
|
|
47
|
+
/**
|
|
48
|
+
* returns angle and speed in the given point in the curve
|
|
49
|
+
*/
|
|
50
|
+
vector(t: number): {
|
|
51
|
+
angle: number;
|
|
52
|
+
speed: number;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Gets the position of the point, given time.
|
|
56
|
+
*
|
|
57
|
+
* WARNING: The speed is not constant. The time it takes between control points is constant.
|
|
58
|
+
*
|
|
59
|
+
* For constant speed, use Spline.steps[i];
|
|
60
|
+
*/
|
|
61
|
+
pos(time: number): Point;
|
|
62
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "earthsdk3-cesium",
|
|
3
|
-
"version": "3.6.0-beta.
|
|
3
|
+
"version": "3.6.0-beta.3",
|
|
4
4
|
"description": "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/earthsdk3-cesium.umd.cjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"cesium": "1.134.1",
|
|
41
|
-
"earthsdk3": "3.6.0-beta.
|
|
41
|
+
"earthsdk3": "3.6.0-beta.5"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@types/delaunator": "^5.0.2",
|
package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/VectorTilesCache.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Destroyable } from "earthsdk3";
|
|
2
|
-
import { CzmESMVTLayer, ESCesiumViewer, ScreenManager } from "../../../../index";
|
|
3
|
-
export declare class VectorTilesCache extends Destroyable {
|
|
4
|
-
czmViewer: ESCesiumViewer;
|
|
5
|
-
czmESMVTLayer: CzmESMVTLayer;
|
|
6
|
-
screenManager: ScreenManager;
|
|
7
|
-
cacheSize: number;
|
|
8
|
-
urlMap: Map<string, string[]>;
|
|
9
|
-
tileScheme: "tms" | "xyz";
|
|
10
|
-
heightReference: "NONE" | "RELATIVE_TO_GROUND" | "CLAMP_TO_GROUND";
|
|
11
|
-
minimumLevel: number;
|
|
12
|
-
maximumLevel: number;
|
|
13
|
-
private _cache;
|
|
14
|
-
get cache(): Map<string, Map<string, any>> | null;
|
|
15
|
-
set cache(v: Map<string, Map<string, any>> | null);
|
|
16
|
-
lastTiles: Map<string, {
|
|
17
|
-
layer: string;
|
|
18
|
-
id: string;
|
|
19
|
-
featureTable: {
|
|
20
|
-
[layerName: string]: string[];
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
23
|
-
constructor(_czmViewer: ESCesiumViewer, _czmESMVTLayer: CzmESMVTLayer);
|
|
24
|
-
addTiles(tile: string): undefined;
|
|
25
|
-
updateTiles(tiles: string[], mode?: "show" | "hide" | "delete"): void;
|
|
26
|
-
update(currentTiles: string[]): void;
|
|
27
|
-
requestImage(x: number, y: number, z: number, tile: string): undefined;
|
|
28
|
-
clearCache(): void;
|
|
29
|
-
addScreenManage(tile: string, tileInfo: Map<string, any>): void;
|
|
30
|
-
reset(): void;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=VectorTilesCache.d.ts.map
|
package/dist/types/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/VectorTilesCache.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VectorTilesCache.d.ts","sourceRoot":"","sources":["../../../../../../src/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/VectorTilesCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqE,MAAM,WAAW,CAAC;AAG3G,OAAO,EAAE,aAAa,EAAE,cAAc,EAA4C,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGrI,qBAAa,gBAAiB,SAAQ,WAAW;IACtC,SAAS,EAAE,cAAc,CAAC;IAC1B,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAG,aAAa,CAAC;IAC9B,SAAS,SAAO;IAEhB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAa;IAE1C,UAAU,EAAE,KAAK,GAAG,KAAK,CAAS;IAClC,eAAe,EAAE,MAAM,GAAG,oBAAoB,GAAG,iBAAiB,CAAU;IAC5E,YAAY,EAAE,MAAM,CAAK;IACzB,YAAY,EAAE,MAAM,CAAM;IAEjC,OAAO,CAAC,MAAM,CAAmD;IACjE,IAAI,KAAK,yCAAyB;IAClC,IAAI,KAAK,CAAC,CAAC,sCAAA,EAAqB;IAEhC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE;YAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;SAAE,CAAA;KAAE,CAAC,CAAa;gBAQvG,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa;IA6CrE,QAAQ,CAAC,IAAI,EAAE,MAAM;IAWrB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,MAAM,GAAG,MAAM,GAAG,QAAiB;IA2BtE,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE;IAa7B,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAoC1D,UAAU;IAYV,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAmCxD,KAAK;CAQR"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Destroyable } from "earthsdk3";
|
|
2
|
-
import { VectorTilesCache } from "./VectorTilesCache";
|
|
3
|
-
import { ESCesiumViewer } from "../../../../ESCesiumViewer";
|
|
4
|
-
import { CzmESMVTLayer } from "..";
|
|
5
|
-
export declare class VectorTilesManager extends Destroyable {
|
|
6
|
-
vectorTilesCache: VectorTilesCache;
|
|
7
|
-
czmViewer: ESCesiumViewer;
|
|
8
|
-
czmESMVTLayer: CzmESMVTLayer;
|
|
9
|
-
constructor(_czmViewer: ESCesiumViewer, _czmESMVTLayer: CzmESMVTLayer);
|
|
10
|
-
updateTiles(): void;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACnC,qBAAa,kBAAmB,SAAQ,WAAW;IAC/C,gBAAgB,EAAG,gBAAgB,CAAC;IACpC,SAAS,EAAE,cAAc,CAAC;IAC1B,aAAa,EAAE,aAAa,CAAC;gBACjB,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa;IAYrE,WAAW;CAsBd"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as Cesium from 'cesium';
|
|
2
|
-
/**
|
|
3
|
-
* 从MVTLayers的样式中获取Cesium的Label或Billboard样式
|
|
4
|
-
* @param layerStyle MVTLayers的样式
|
|
5
|
-
* @returns 样式
|
|
6
|
-
*/
|
|
7
|
-
export declare function getStyleFromMVTLayers(layerStyle: {
|
|
8
|
-
[xx: string]: any;
|
|
9
|
-
}): {
|
|
10
|
-
labelStyle: Partial<{
|
|
11
|
-
position: Cesium.Cartesian3;
|
|
12
|
-
id: any;
|
|
13
|
-
text: string;
|
|
14
|
-
show: boolean;
|
|
15
|
-
font: string;
|
|
16
|
-
style: Cesium.LabelStyle;
|
|
17
|
-
scale: number;
|
|
18
|
-
showBackground: boolean;
|
|
19
|
-
backgroundColor: Cesium.Color;
|
|
20
|
-
backgroundPadding: Cesium.Cartesian2;
|
|
21
|
-
pixelOffset: Cesium.Cartesian2;
|
|
22
|
-
eyeOffset: Cesium.Cartesian3;
|
|
23
|
-
horizontalOrigin: Cesium.HorizontalOrigin;
|
|
24
|
-
verticalOrigin: Cesium.VerticalOrigin;
|
|
25
|
-
heightReference: Cesium.HeightReference;
|
|
26
|
-
fillColor: Cesium.Color;
|
|
27
|
-
outlineColor: Cesium.Color;
|
|
28
|
-
outlineWidth: number;
|
|
29
|
-
translucencyByDistance: Cesium.NearFarScalar;
|
|
30
|
-
pixelOffsetScaleByDistance: Cesium.NearFarScalar;
|
|
31
|
-
scaleByDistance: Cesium.NearFarScalar;
|
|
32
|
-
distanceDisplayCondition: Cesium.DistanceDisplayCondition;
|
|
33
|
-
disableDepthTestDistance: number;
|
|
34
|
-
}> | undefined;
|
|
35
|
-
billboardStyle: Partial<{
|
|
36
|
-
position: Cesium.Cartesian3;
|
|
37
|
-
id: any;
|
|
38
|
-
show: boolean;
|
|
39
|
-
image: string | HTMLCanvasElement;
|
|
40
|
-
scale: number;
|
|
41
|
-
pixelOffset: Cesium.Cartesian2;
|
|
42
|
-
eyeOffset: Cesium.Cartesian3;
|
|
43
|
-
horizontalOrigin: Cesium.HorizontalOrigin;
|
|
44
|
-
verticalOrigin: Cesium.VerticalOrigin;
|
|
45
|
-
heightReference: Cesium.HeightReference;
|
|
46
|
-
color: Cesium.Color;
|
|
47
|
-
rotation: number;
|
|
48
|
-
alignedAxis: Cesium.Cartesian3;
|
|
49
|
-
sizeInMeters: boolean;
|
|
50
|
-
width: number;
|
|
51
|
-
height: number;
|
|
52
|
-
scaleByDistance: Cesium.NearFarScalar;
|
|
53
|
-
translucencyByDistance: Cesium.NearFarScalar;
|
|
54
|
-
pixelOffsetScaleByDistance: Cesium.NearFarScalar;
|
|
55
|
-
imageSubRegion: Cesium.BoundingRectangle;
|
|
56
|
-
distanceDisplayCondition: Cesium.DistanceDisplayCondition;
|
|
57
|
-
disableDepthTestDistance: number;
|
|
58
|
-
splitDirection: Cesium.SplitDirection;
|
|
59
|
-
}> | undefined;
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/CzmObjects/general/CzmESMVTLayer/VectorTilesManager/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAGjC;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE;IAAE,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CtE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElementSize.d.ts","sourceRoot":"","sources":["../../../../../src/ESCesiumViewer/ViewerExtensions/ScreenManager/getElementSize.ts"],"names":[],"mappings":"AACA,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW;;;EAUlD"}
|