cesium-pocket 0.4.1-alpha → 0.4.2-alpha
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/index.css +1 -1
- package/index.js +7 -14
- package/package.json +4 -4
package/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cp-porket-compass[data-v-
|
|
1
|
+
.cp-porket-compass[data-v-52d8d836]{position:absolute;z-index:1000;width:100px;height:100px;cursor:pointer}.cp-porket-ruler[data-v-8e93d8ff]{z-index:1000;width:100px;height:20px;text-align:center;padding-top:2px;font-size:12px;color:#ebebeb}.cp-porket-ruler-line[data-v-8e93d8ff]{width:100px;height:5px;border-bottom:1px solid #eeeeee;border-left:2px solid #eeeeee;border-right:2px solid #eeeeee;margin-top:-2px}.cp-porket-coord[data-v-064db41e]{z-index:1000;width:200px;height:26px;text-align:center;font-size:12px;display:flex;justify-content:space-around;color:#eee}.cp-overlay[data-v-2b05e7d5]{position:absolute;z-index:100;font-size:12px}.cp-overlay-close[data-v-2b05e7d5]{position:absolute;right:0;top:0;z-index:10;width:30px;height:30px;line-height:30px;text-align:center;cursor:pointer}.cp-overlay-close-img[data-v-2b05e7d5]{width:30px;height:30px;color:#fff}.cesium-html-marker[data-v-da185123]{pointer-events:auto;z-index:1000}.pin-container[data-v-da185123]{position:absolute;z-index:20;color:#eee;font-size:12px;text-shadow:-1px -1px 0 #06012c,1px -1px 0 #06012c,-1px 1px 0 #06012c,1px 1px 0 #06012c;margin:0;padding:5px;border-radius:4px}.cp-layersmap[data-v-3c9f5494]{position:absolute;z-index:10;color:#eee;background-color:#000c;border:1px solid rgb(61,64,105);border-radius:4px}.cp-layersmap-header[data-v-3c9f5494]{height:24px;line-height:20px;font-size:12px;background-color:#000c;display:flex;justify-content:space-around;align-items:center}.cp-layersmap-main[data-v-3c9f5494]{display:flex;justify-content:space-around;padding-right:2px}.cp-layersmap-layer[data-v-3c9f5494]{width:60px;height:60px;position:relative;margin-left:2px;margin-top:2px;margin-bottom:2px;cursor:pointer}.cp-layersmap-layer-header[data-v-3c9f5494]{position:absolute;z-index:1;width:100%;height:16px;line-height:16px;text-align:center;font-size:12px;background-color:#4449}.cp-layersmap-layer-image[data-v-3c9f5494]{width:60px;height:60px}.cp-layersmap-layer-footer[data-v-3c9f5494]{position:absolute;z-index:1;width:100%;height:16px;line-height:16px;text-align:center;font-size:12px;background-color:#4449}.cp-layersmap-active[data-v-3c9f5494]{background-color:#0047e0cc}.cp-tianmap[data-v-014b2f5e]{position:absolute;z-index:10;color:#eee;background-color:#000c;border:1px solid rgb(61,64,105);border-radius:4px}.cp-tianmap-header[data-v-014b2f5e]{height:24px;line-height:20px;font-size:12px;background-color:#000c;display:flex;justify-content:space-around;align-items:center}.cp-tianmap-main[data-v-014b2f5e]{display:flex;justify-content:space-around;padding-right:4px}.cp-tianmap-layer[data-v-014b2f5e]{width:60px;height:60px;position:relative;margin-left:4px;margin-top:4px;margin-bottom:4px;cursor:pointer}.cp-tianmap-layer-header[data-v-014b2f5e]{position:absolute;z-index:1;width:100%;height:16px;line-height:16px;text-align:center;font-size:12px;background-color:#4449}.cp-tianmap-layer-image[data-v-014b2f5e]{width:60px;height:60px}.cp-tianmap-layer-footer[data-v-014b2f5e]{position:absolute;z-index:1;width:100%;height:16px;line-height:16px;text-align:center;font-size:12px;background-color:#4449}.cp-tianmap-active[data-v-014b2f5e]{background-color:#00c6e0cc}.czml-config[data-v-020c9b69]{position:fixed;left:0;bottom:60px;z-index:100;width:60x;background-color:#0006;border-top:1px solid rgb(80,80,80);border-right:1px solid rgb(80,80,80);border-radius:4px;padding:6px;font-size:12px;color:#ccc}.czml-config img[data-v-020c9b69]{width:18px;margin:6px}.czmlBar[data-v-020c9b69]{position:fixed;bottom:0;z-index:100;height:60px;width:100%;display:flex;justify-content:space-between;flex-direction:row;background-color:#0006;font-size:12px;color:#ccc}.bar-control[data-v-020c9b69]{width:220px;-webkit-user-select:none;user-select:none}.control-btns[data-v-020c9b69]{display:flex;justify-content:space-around;align-items:center;padding-top:8px}.control-btns div[data-v-020c9b69]{width:22px;height:22px;border-radius:2px;display:flex;justify-content:center;align-items:center;background-color:#ffffff4d}.control-btns img[data-v-020c9b69]{width:14px}.control-bottom[data-v-020c9b69]{height:30px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;color:#ff0}.bar-timeline[data-v-020c9b69]{flex:1 1 auto;padding:10px;position:relative}.timeline-left[data-v-020c9b69]{position:absolute;top:6px;left:10px}.timeline-right[data-v-020c9b69]{position:absolute;top:6px;right:10px}.timeline-ruler[data-v-020c9b69]{position:relative;height:26px;margin-top:20px;margin-left:0;border-bottom:1px;border-bottom-style:solid;border-bottom-color:gray}.ruler-label[data-v-020c9b69]{position:absolute;top:-30px;transform:translate(-25%)}.tick[data-v-020c9b69]{position:absolute;bottom:0;width:0;height:6px;border-left:1px solid rgba(170,180,190,.45);font-size:10px}.grabbing[data-v-020c9b69]{cursor:grabbing}.tick-major[data-v-020c9b69]{height:12px;border-left:1px solid rgba(170,180,190,.45)}.playhead[data-v-020c9b69]{position:absolute;top:0;bottom:0;width:0;z-index:5;transform:translate(-50%);pointer-events:none}.playhead__tri[data-v-020c9b69]{position:absolute;top:0;left:70%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #ffff00;transform:translate(-50%);filter:drop-shadow(0 1px 1px #ffff00)}.playhead__line[data-v-020c9b69]{position:absolute;top:10px;bottom:0;left:0;width:1px;background:#ff0}@media (max-width: 720px){.czml-config[data-v-020c9b69]{bottom:120px}.czmlBar[data-v-020c9b69]{height:120px;flex-direction:column;gap:6px;min-height:0}.bar-control[data-v-020c9b69]{width:100%;display:flex;justify-content:space-between}.control-btns[data-v-020c9b69]{width:55%}.control-bottom[data-v-020c9b69]{flex:1}}
|
package/index.js
CHANGED
|
@@ -1753,14 +1753,14 @@ const Fe = /* @__PURE__ */ K({
|
|
|
1753
1753
|
P.customTouch ? n("resetClick", null) : l();
|
|
1754
1754
|
}, l = () => {
|
|
1755
1755
|
var i, o;
|
|
1756
|
-
(o = P.viewer) == null || o.camera.setView({
|
|
1756
|
+
P.viewer && P.viewer.trackedEntity || (o = P.viewer) == null || o.camera.setView({
|
|
1757
1757
|
destination: (i = P.viewer) == null ? void 0 : i.camera.position,
|
|
1758
1758
|
orientation: {
|
|
1759
1759
|
heading: 0,
|
|
1760
1760
|
pitch: cA.toRadians(-90),
|
|
1761
1761
|
roll: 0
|
|
1762
1762
|
}
|
|
1763
|
-
})
|
|
1763
|
+
});
|
|
1764
1764
|
}, E = () => {
|
|
1765
1765
|
const i = P.viewer;
|
|
1766
1766
|
i.camera.percentageChanged = 1e-3, C = i.camera.changed.addEventListener(T);
|
|
@@ -1784,7 +1784,7 @@ const Fe = /* @__PURE__ */ K({
|
|
|
1784
1784
|
for (const [s, e] of A)
|
|
1785
1785
|
P[s] = e;
|
|
1786
1786
|
return P;
|
|
1787
|
-
}, Re = /* @__PURE__ */ x(Fe, [["__scopeId", "data-v-
|
|
1787
|
+
}, Re = /* @__PURE__ */ x(Fe, [["__scopeId", "data-v-52d8d836"]]), _e = { class: "cp-porket-ruler" }, $e = /* @__PURE__ */ K({
|
|
1788
1788
|
__name: "Index",
|
|
1789
1789
|
props: {
|
|
1790
1790
|
viewer: {
|
|
@@ -2430,12 +2430,6 @@ class SA {
|
|
|
2430
2430
|
const s = new SA(A, P);
|
|
2431
2431
|
return await s.loadData(), s;
|
|
2432
2432
|
}
|
|
2433
|
-
// 静态工厂方法
|
|
2434
|
-
// static async create(viewer: Viewer, czml: Array<any> | string): Promise<CzmlManager> {
|
|
2435
|
-
// const instance = new CzmlManager(viewer, czml);
|
|
2436
|
-
// await instance.initialize();
|
|
2437
|
-
// return instance;
|
|
2438
|
-
// }
|
|
2439
2433
|
// 真正的异步初始化逻辑
|
|
2440
2434
|
async loadData() {
|
|
2441
2435
|
this.dataSource = await this.loadCzml(), this.viewer.clock.shouldAnimate = !1, this.viewer.clock.multiplier = 1;
|
|
@@ -2455,8 +2449,10 @@ class SA {
|
|
|
2455
2449
|
const s = (P = this.dataSource) == null ? void 0 : P.entities.values;
|
|
2456
2450
|
for (let e = 0, n = s.length; e < n; e++) {
|
|
2457
2451
|
const t = s[e];
|
|
2458
|
-
|
|
2459
|
-
|
|
2452
|
+
if (t.position) {
|
|
2453
|
+
let r = { id: t.id, name: t.name || t.id };
|
|
2454
|
+
A.push(r);
|
|
2455
|
+
}
|
|
2460
2456
|
}
|
|
2461
2457
|
}
|
|
2462
2458
|
return A;
|
|
@@ -2497,9 +2493,6 @@ class SA {
|
|
|
2497
2493
|
let A = this.speedOptions[this.speedIndex], P = this.speedDirect ? 1 : -1;
|
|
2498
2494
|
this.viewer.clock.multiplier = P * A;
|
|
2499
2495
|
}
|
|
2500
|
-
// public getSpeed() {
|
|
2501
|
-
// return this.speedOptions[this.speedIndex]
|
|
2502
|
-
// }
|
|
2503
2496
|
getCurrentRatio(A) {
|
|
2504
2497
|
const P = V.secondsDifference(A.stopTime, A.startTime);
|
|
2505
2498
|
let e = V.secondsDifference(A.currentTime, A.startTime) / P;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cesium-pocket",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2-alpha",
|
|
4
4
|
"description": "cesium的插件库;基于vue3的开发",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"cesium",
|
|
35
35
|
"pocket",
|
|
36
36
|
"vue3",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
37
|
+
"czml",
|
|
38
|
+
"组件库",
|
|
39
|
+
"WEBGIS"
|
|
40
40
|
],
|
|
41
41
|
"author": "nineamgo",
|
|
42
42
|
"license": "Apache 2.0",
|