deeptwins-engine-3d 0.0.50 → 0.0.52
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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/toolTip/index.css +24 -0
- package/dist/toolTip/index.d.ts +1 -1
- package/dist/toolTip/index.js +2 -2
- package/package.json +1 -2
- package/dist/toolTip/index.less +0 -24
- /package/dist/{global.less → global.css} +0 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import RotateInPlace from "./cameraControl/RotateInPlace";
|
|
|
17
17
|
import { CAMERA_EVENT_TYPE, DEFAULT_BASE_LAYER_TYPE, LAYER_EVENT_TYPE, SCENE_EVENT_TYPE } from "./constant";
|
|
18
18
|
import DeepTwins from "./deepTwins";
|
|
19
19
|
import Drawer from "./drawer/index";
|
|
20
|
-
import "./global.
|
|
20
|
+
import "./global.css";
|
|
21
21
|
import GroundSkyBox from "./map/GroundSkyBox";
|
|
22
22
|
import Map from "./map/Map";
|
|
23
23
|
import CircleWaveMaterialProperty from "./material/CircleWaveMaterialProperty";
|
|
@@ -45,7 +45,7 @@ window.Cesium = Cesium;
|
|
|
45
45
|
var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
|
|
46
46
|
_classCallCheck(this, DeepTwinsEngine3D);
|
|
47
47
|
});
|
|
48
|
-
_defineProperty(DeepTwinsEngine3D, "Version", '0.0.
|
|
48
|
+
_defineProperty(DeepTwinsEngine3D, "Version", '0.0.52');
|
|
49
49
|
_defineProperty(DeepTwinsEngine3D, "Map", Map);
|
|
50
50
|
_defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
|
|
51
51
|
_defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.deepTwins-toolTip {
|
|
2
|
+
position: absolute;
|
|
3
|
+
background: rgba(42, 42, 42, 90%);
|
|
4
|
+
color: white;
|
|
5
|
+
padding: 4px 8px;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
transform: translate3d(10px, -50%, 0);
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.deepTwins-toolTip::before {
|
|
15
|
+
border-bottom: 5px solid transparent;
|
|
16
|
+
border-right: 5px solid rgba(0, 0, 0, 60%);
|
|
17
|
+
border-top: 5px solid transparent;
|
|
18
|
+
content: "";
|
|
19
|
+
display: block;
|
|
20
|
+
left: -5px;
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: calc(50% - 5px);
|
|
24
|
+
}
|
package/dist/toolTip/index.d.ts
CHANGED
package/dist/toolTip/index.js
CHANGED
|
@@ -6,7 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
import * as Cesium from 'deeptwins-cesium';
|
|
9
|
-
import "./index.
|
|
9
|
+
import "./index.css";
|
|
10
10
|
var ToolTip = /*#__PURE__*/function () {
|
|
11
11
|
function ToolTip(map, options) {
|
|
12
12
|
_classCallCheck(this, ToolTip);
|
|
@@ -17,7 +17,7 @@ var ToolTip = /*#__PURE__*/function () {
|
|
|
17
17
|
_defineProperty(this, "_handleLeave", void 0);
|
|
18
18
|
this._map = map;
|
|
19
19
|
this.tooltip = document.createElement('div');
|
|
20
|
-
this.tooltip.className = '
|
|
20
|
+
this.tooltip.className = 'deepTwins-toolTip';
|
|
21
21
|
map.container.appendChild(this.tooltip);
|
|
22
22
|
this.setOptions(options);
|
|
23
23
|
this._init();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deeptwins-engine-3d",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"description": "map for 3d",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"raw-loader": "^4.0.2",
|
|
85
85
|
"react": "^18.0.0",
|
|
86
86
|
"react-dom": "^18.0.0",
|
|
87
|
-
"stylelint": "^14.9.1",
|
|
88
87
|
"webpack": "^5.97.1"
|
|
89
88
|
},
|
|
90
89
|
"dependencies": {
|
package/dist/toolTip/index.less
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.deepTwins_toolTip{
|
|
2
|
-
position: absolute;
|
|
3
|
-
background: rgba(42, 42, 42, 0.9);
|
|
4
|
-
color: white;
|
|
5
|
-
padding: 4px 8px;
|
|
6
|
-
border-radius: 4px;
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
white-space: nowrap;
|
|
9
|
-
transform: translate3d(10px, -50%, 0);
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
display: none;
|
|
12
|
-
|
|
13
|
-
&::before {
|
|
14
|
-
border-bottom: 5px solid transparent;
|
|
15
|
-
border-right: 5px solid rgba(0, 0, 0, .6);
|
|
16
|
-
border-top: 5px solid transparent;
|
|
17
|
-
content: "";
|
|
18
|
-
display: block;
|
|
19
|
-
left: -5px;
|
|
20
|
-
pointer-events: none;
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: calc(50% - 5px);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
File without changes
|