deeptwins-engine-3d 0.1.68 → 0.1.69
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/esm/drawer/index.d.ts +1 -1
- package/dist/esm/graphicLayer/BaseSource.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/map/Map.d.ts +1 -0
- package/dist/esm/map/Map.js +14 -0
- package/dist/umd/deeptwins-engine-3d.min.js +1 -1
- package/package.json +3 -2
- package/dist/esm/sceneFusion/Airway.d.ts +0 -0
- package/dist/esm/sceneFusion/Airway.js +0 -692
|
@@ -7,7 +7,7 @@ export declare const MULTI_POINT_SHAPE_TYPES: {
|
|
|
7
7
|
readonly PINCER_ARROW: "pincerArrow";
|
|
8
8
|
readonly SECTOR: "sector";
|
|
9
9
|
};
|
|
10
|
-
export declare const MULTI_POINT_SHAPES: ("polygon" | "polyline" | "attackArrow" | "
|
|
10
|
+
export declare const MULTI_POINT_SHAPES: ("polygon" | "polyline" | "attackArrow" | "pincerArrow" | "sector" | "curve")[];
|
|
11
11
|
declare class Drawer implements DrawContext {
|
|
12
12
|
private readonly _mapContext;
|
|
13
13
|
private readonly _drawContext;
|
|
@@ -15,7 +15,7 @@ export default class BaseSource {
|
|
|
15
15
|
remove(): void;
|
|
16
16
|
setData(data: any): this | undefined;
|
|
17
17
|
_toDestroy(): void;
|
|
18
|
-
static analysisSourceType(data: any): "wkt" | "sourceId" | "sourceInstance" | "geoJson" | "clampedPolygonGrid"
|
|
18
|
+
static analysisSourceType(data: any): "other" | "wkt" | "sourceId" | "sourceInstance" | "geoJson" | "clampedPolygonGrid";
|
|
19
19
|
static wktToGeoJon(wkt: string): any;
|
|
20
20
|
static geoJsonToGeoCartesian3Array(geoJson: any): any[];
|
|
21
21
|
static handleFeaturePoint(feature: any): any;
|
package/dist/esm/index.js
CHANGED
|
@@ -66,11 +66,11 @@ DEEP_TWINS_BASE_URL && (window.CESIUM_BASE_URL = DEEP_TWINS_BASE_URL);
|
|
|
66
66
|
// 全局加载css
|
|
67
67
|
loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
|
|
68
68
|
// 打印版本信息
|
|
69
|
-
console.log('DeepTwinsEngine3D Version:', "0.1.
|
|
69
|
+
console.log('DeepTwinsEngine3D Version:', "0.1.69");
|
|
70
70
|
export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
|
|
71
71
|
_classCallCheck(this, DeepTwinsEngine3D);
|
|
72
72
|
});
|
|
73
|
-
_defineProperty(DeepTwinsEngine3D, "Version", "0.1.
|
|
73
|
+
_defineProperty(DeepTwinsEngine3D, "Version", "0.1.69");
|
|
74
74
|
_defineProperty(DeepTwinsEngine3D, "Map", Map);
|
|
75
75
|
_defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
|
|
76
76
|
_defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
|
package/dist/esm/map/Map.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export default class Map extends Cesium.Viewer implements MapContext {
|
|
|
78
78
|
private _getPluginKey;
|
|
79
79
|
private _isSamePlugin;
|
|
80
80
|
private _findPluginEntry;
|
|
81
|
+
getPlugin(plugin: any): any;
|
|
81
82
|
addPlugins(plugins: any): any;
|
|
82
83
|
removePlugins(plugins: any): any;
|
|
83
84
|
destroy(): void;
|
package/dist/esm/map/Map.js
CHANGED
|
@@ -781,6 +781,20 @@ var Map = /*#__PURE__*/function (_Cesium$Viewer) {
|
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
+
// 获取插件实例
|
|
785
|
+
}, {
|
|
786
|
+
key: "getPlugin",
|
|
787
|
+
value: function getPlugin(plugin) {
|
|
788
|
+
var _this$_findPluginEntr;
|
|
789
|
+
if (isNil(plugin)) {
|
|
790
|
+
return undefined;
|
|
791
|
+
}
|
|
792
|
+
if (typeof plugin === 'string') {
|
|
793
|
+
return this._plugins[plugin];
|
|
794
|
+
}
|
|
795
|
+
return (_this$_findPluginEntr = this._findPluginEntry(plugin)) === null || _this$_findPluginEntr === void 0 ? void 0 : _this$_findPluginEntr.instance;
|
|
796
|
+
}
|
|
797
|
+
|
|
784
798
|
// 添加自定义插件
|
|
785
799
|
}, {
|
|
786
800
|
key: "addPlugins",
|