deeptwins-engine-3d 0.1.54 → 0.1.55

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.
@@ -18,7 +18,7 @@ export declare const MULTI_POINT_SHAPE_TYPES: {
18
18
  readonly POLYLINE: "polyline";
19
19
  readonly POLYGON: "polygon";
20
20
  };
21
- export declare const MULTI_POINT_SHAPES: ("polygon" | "polyline")[];
21
+ export declare const MULTI_POINT_SHAPES: ("polyline" | "polygon")[];
22
22
  declare class Drawer implements DrawContext {
23
23
  private readonly _mapContext;
24
24
  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): "other" | "wkt" | "sourceId" | "sourceInstance" | "geoJson" | "clampedPolygonGrid";
18
+ static analysisSourceType(data: any): "clampedPolygonGrid" | "wkt" | "sourceId" | "sourceInstance" | "geoJson" | "other";
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
@@ -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.54");
64
+ console.log('DeepTwinsEngine3D Version:', "0.1.55");
65
65
  export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
66
66
  _classCallCheck(this, DeepTwinsEngine3D);
67
67
  });
68
- _defineProperty(DeepTwinsEngine3D, "Version", "0.1.54");
68
+ _defineProperty(DeepTwinsEngine3D, "Version", "0.1.55");
69
69
  _defineProperty(DeepTwinsEngine3D, "Map", Map);
70
70
  _defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
71
71
  _defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
@@ -30,6 +30,7 @@ import BaseSource from "../graphicLayer/BaseSource";
30
30
  import GraphicLayerCollection from "../graphicLayer/GraphicLayerCollection";
31
31
  import * as common from "../tool/common";
32
32
  import * as utils from "../tool/utils";
33
+ import { getDeepTwinsFile } from "../tool/utils";
33
34
  import Event from "./Event";
34
35
  import GroundSkyBox from "./GroundSkyBox";
35
36
  var Map = /*#__PURE__*/function (_Cesium$Viewer) {
@@ -139,8 +140,17 @@ var Map = /*#__PURE__*/function (_Cesium$Viewer) {
139
140
  var el = document.createElement('div');
140
141
  el.id = constant.LOGO_CONTAINER_ID;
141
142
  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>';
143
+ var text = "DeepTwins Engine 3D";
144
+ var imgSrc = getDeepTwinsFile('Image/logo.png');
145
+ var textEl = document.createElement('div');
146
+ textEl.style.cssText = 'font-size: 12px; color: #fff; white-space: nowrap;';
147
+ textEl.textContent = text;
148
+ var imgEl = document.createElement('img');
149
+ imgEl.alt = 'logo';
150
+ imgEl.src = imgSrc;
151
+ imgEl.style.cssText = 'width: 30px; height: 30px; flex-shrink: 0;';
152
+ el.appendChild(imgEl);
153
+ el.appendChild(textEl);
144
154
  this.container.appendChild(el);
145
155
  }
146
156
  // 创建html的容器