deeptwins-engine-3d 0.1.53 → 0.1.54
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/constant.d.ts
CHANGED
|
@@ -64,7 +64,9 @@ export declare const DEFAULT_VIEW_CONFIG: () => {
|
|
|
64
64
|
enableZoom: boolean;
|
|
65
65
|
enableCollisionDetection: boolean;
|
|
66
66
|
};
|
|
67
|
+
logo: boolean;
|
|
67
68
|
};
|
|
69
|
+
export declare const LOGO_CONTAINER_ID = "logoContainer";
|
|
68
70
|
export declare const HTML_CONTAINER_ID = "deepHtmlContainer";
|
|
69
71
|
export declare const HEATMAP_CONTAINER_ID = "deepHeatMapContainer";
|
|
70
72
|
export declare const VIDEO_CONTAINER_ID = "deepVideoContainer";
|
package/dist/esm/constant.js
CHANGED
|
@@ -97,10 +97,12 @@ export var DEFAULT_VIEW_CONFIG = function DEFAULT_VIEW_CONFIG() {
|
|
|
97
97
|
enableTilt: true,
|
|
98
98
|
enableZoom: true,
|
|
99
99
|
enableCollisionDetection: true
|
|
100
|
-
}
|
|
100
|
+
},
|
|
101
|
+
logo: false
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
|
-
|
|
104
|
+
// 默认logo容器id
|
|
105
|
+
export var LOGO_CONTAINER_ID = 'logoContainer';
|
|
104
106
|
// 默认html容器id
|
|
105
107
|
export var HTML_CONTAINER_ID = 'deepHtmlContainer';
|
|
106
108
|
|
package/dist/esm/index.js
CHANGED
|
@@ -61,11 +61,11 @@ DEEP_TWINS_BASE_URL && (window.CESIUM_BASE_URL = DEEP_TWINS_BASE_URL);
|
|
|
61
61
|
// 全局加载css
|
|
62
62
|
loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
|
|
63
63
|
// 打印版本信息
|
|
64
|
-
console.log('DeepTwinsEngine3D Version:', "0.1.
|
|
64
|
+
console.log('DeepTwinsEngine3D Version:', "0.1.54");
|
|
65
65
|
export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
|
|
66
66
|
_classCallCheck(this, DeepTwinsEngine3D);
|
|
67
67
|
});
|
|
68
|
-
_defineProperty(DeepTwinsEngine3D, "Version", "0.1.
|
|
68
|
+
_defineProperty(DeepTwinsEngine3D, "Version", "0.1.54");
|
|
69
69
|
_defineProperty(DeepTwinsEngine3D, "Map", Map);
|
|
70
70
|
_defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
|
|
71
71
|
_defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
|
package/dist/esm/map/Map.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export default class Map extends Cesium.Viewer implements MapContext {
|
|
|
15
15
|
private _eventTrick;
|
|
16
16
|
constructor(container: any, options: any);
|
|
17
17
|
getMap(): this;
|
|
18
|
+
private _createLogoContainer;
|
|
18
19
|
private _createHtmlContainer;
|
|
19
20
|
private _createHeatMapContainer;
|
|
20
21
|
private _createVideoContainer;
|
package/dist/esm/map/Map.js
CHANGED
|
@@ -121,6 +121,10 @@ var Map = /*#__PURE__*/function (_Cesium$Viewer) {
|
|
|
121
121
|
_this._createHtmlContainer();
|
|
122
122
|
// 默认监听事件集合
|
|
123
123
|
_this._onDefaultEvents();
|
|
124
|
+
// 创建logo容器
|
|
125
|
+
if (_this.configOptions.logo) {
|
|
126
|
+
_this._createLogoContainer();
|
|
127
|
+
}
|
|
124
128
|
return _this;
|
|
125
129
|
}
|
|
126
130
|
_createClass(Map, [{
|
|
@@ -128,7 +132,17 @@ var Map = /*#__PURE__*/function (_Cesium$Viewer) {
|
|
|
128
132
|
value: function getMap() {
|
|
129
133
|
return this;
|
|
130
134
|
}
|
|
131
|
-
|
|
135
|
+
// 创建一个logo容器
|
|
136
|
+
}, {
|
|
137
|
+
key: "_createLogoContainer",
|
|
138
|
+
value: function _createLogoContainer() {
|
|
139
|
+
var el = document.createElement('div');
|
|
140
|
+
el.id = constant.LOGO_CONTAINER_ID;
|
|
141
|
+
el.style.cssText = 'position: absolute; right: 10px; bottom: 10px; pointer-events: none; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.3); padding: 8px; display: flex; align-items: center; gap: 10px;';
|
|
142
|
+
el.innerHTML = '<img src="/public/images/logo.png" style="width: 30px; height: 30px; flex-shrink: 0;" />';
|
|
143
|
+
el.innerHTML += '<div style="font-size: 12px; color: #fff; white-space: nowrap;"> DeepTwins Engine 3D</div>';
|
|
144
|
+
this.container.appendChild(el);
|
|
145
|
+
}
|
|
132
146
|
// 创建html的容器
|
|
133
147
|
}, {
|
|
134
148
|
key: "_createHtmlContainer",
|