cesium-pocket 0.6.9-alpha → 0.6.12-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/{CircleDrawer-vZ4-zoaH.js → CircleDrawer-D2dAuEcD.js} +55 -37
- package/{PolygonGaguger-QdxgmZFu.js → PolygonGaguger-C8cFLW0V.js} +1 -1
- package/drawer.js +1 -1
- package/gauger.js +1 -1
- package/index.css +1 -1
- package/index.d.ts +3 -2
- package/index.js +1247 -1099
- package/package.json +2 -2
- package/src/drawer/CP2dDrawer.d.ts +1 -0
- package/src/drawer/CircleDrawer.d.ts +1 -0
- package/src/drawer/RectDrawer.d.ts +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomDataSource as
|
|
1
|
+
import { CustomDataSource as U, Cartesian3 as r, JulianDate as N, defined as h, HeightReference as B, Color as E, EntityCollection as G, ScreenSpaceEventType as c, ConstantPositionProperty as A, ScreenSpaceEventHandler as C, VerticalOrigin as x, KeyboardEventModifier as b, PolylineDashMaterialProperty as Q, CallbackProperty as f, PolygonHierarchy as R, clone as F, Cartographic as L, Transforms as M, Matrix4 as P, EllipsoidGeodesic as W } from "cesium";
|
|
2
2
|
import { toRaw as u } from "vue";
|
|
3
3
|
const l = {
|
|
4
4
|
STOPED: Symbol("STOPED"),
|
|
@@ -26,7 +26,7 @@ const l = {
|
|
|
26
26
|
DEL_ENABLED: Symbol("DEL_ENABLED")
|
|
27
27
|
//可拖拽
|
|
28
28
|
};
|
|
29
|
-
class
|
|
29
|
+
class K {
|
|
30
30
|
constructor(e) {
|
|
31
31
|
this.status = l.STOPED, this.editStatus = o.DRAG_UNABLED, this.delStatus = D.DEL_UNABLED, this.viewer = e;
|
|
32
32
|
}
|
|
@@ -86,10 +86,10 @@ class W {
|
|
|
86
86
|
this.delStatus = D.DEL_ENABLED, this.viewer.canvas.style.cursor = "grabbing";
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
const
|
|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7FWA8DIhA9PI7s5cTkseMKVeK7D9mGbUcOUNkFZhMTgZjl+7xoq7XGJ0Cp75032HtAc5FN75jsG2VABGKU7n7BkF8b6TdBY8PmaFpa4QyIQAqneHiA5ral/yKLz1Pf2j4fz20dl2ODDIhADJI9MFQY8g17p2e+A92xniHZtcGACMQG61tiNieXlxGBRRLN8D6PRQfyyxwDfSKJQPqQYmNopbbEf4KyQLEX4n3alWabARGI7Qr0xMcg2M+9Z0h2LTMQWI4v4XsYWBlf+CL3niHZtcyACMRyASR8uRkQgZS7PoLOMgO6BGI5DQkvDBTDgAikGF7Fa0UYEIFUpJCSRjEMiECK4VW8VoQBEUhFCilpFMOAAwIpJnHxKgykYUAEkoYlsfGWARGIt6WXxNMwIAJJw5LYeMuACMTb0kviaRjwWyBpGBIbrxkQgXhdfkk+iQERSBJDMu81AyIQr8svyScxIAJJYkjmvWZABFJQ+cVtNRj4OQAAAP//gm46zwAAAAZJREFUAwB1f5TcL2bFTAAAAABJRU5ErkJggg==";
|
|
90
|
+
class S extends K {
|
|
91
91
|
constructor(e) {
|
|
92
|
-
super(e), this.mainData = [], this.dataSource = new
|
|
92
|
+
super(e), this.mainData = [], this.dataSource = new U("drawerDataSource"), this.currentDragPoint = null, this.currentIndex = -1, this.viewer.dataSources.add(this.dataSource);
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
95
|
* 获取DataSource
|
|
@@ -106,7 +106,7 @@ class S extends W {
|
|
|
106
106
|
return this.mainData = [], this.dataSource.entities.values.forEach((e) => {
|
|
107
107
|
var i;
|
|
108
108
|
const t = new r();
|
|
109
|
-
(i = e.position) == null || i.getValue(
|
|
109
|
+
(i = e.position) == null || i.getValue(N.now(), t), this.mainData.push(t);
|
|
110
110
|
}), this.mainData;
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
@@ -146,7 +146,7 @@ class S extends W {
|
|
|
146
146
|
color: E.TRANSPARENT,
|
|
147
147
|
outlineColor: E.YELLOW,
|
|
148
148
|
outlineWidth: 2,
|
|
149
|
-
heightReference:
|
|
149
|
+
heightReference: B.CLAMP_TO_GROUND
|
|
150
150
|
//贴地
|
|
151
151
|
}, this.dataSource.entities.add({
|
|
152
152
|
position: e,
|
|
@@ -174,9 +174,9 @@ class S extends W {
|
|
|
174
174
|
// });
|
|
175
175
|
// }
|
|
176
176
|
}
|
|
177
|
-
class
|
|
177
|
+
class Z extends S {
|
|
178
178
|
constructor(e, t = null) {
|
|
179
|
-
super(e), this.handler = null, this.pointCollection = new
|
|
179
|
+
super(e), this.handler = null, this.pointCollection = new G(), this.addPointFun = this.addBillboardCallback, this.point_L_ClickEvent = () => {
|
|
180
180
|
var i;
|
|
181
181
|
(i = this.handler) == null || i.setInputAction((a) => {
|
|
182
182
|
if (l.DRAWABLE == super.getStatus()) {
|
|
@@ -247,14 +247,14 @@ class _ extends S {
|
|
|
247
247
|
// 设置经纬度位置 (经度, 纬度, 海拔高度)
|
|
248
248
|
position: e,
|
|
249
249
|
billboard: {
|
|
250
|
-
image:
|
|
250
|
+
image: j,
|
|
251
251
|
// 设置图片显示的宽度和高度 (像素)
|
|
252
252
|
width: 40,
|
|
253
253
|
height: 40,
|
|
254
254
|
// 可选项:缩放倍数
|
|
255
255
|
scale: 1,
|
|
256
|
-
verticalOrigin:
|
|
257
|
-
heightReference:
|
|
256
|
+
verticalOrigin: x.BOTTOM,
|
|
257
|
+
heightReference: B.CLAMP_TO_GROUND
|
|
258
258
|
//贴地
|
|
259
259
|
},
|
|
260
260
|
show: !0
|
|
@@ -266,15 +266,15 @@ class _ extends S {
|
|
|
266
266
|
}) : confirm("确定要删除吗?") && (this.viewer.entities.remove(e), this.dsToMd());
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const m = {
|
|
270
270
|
LINE: Symbol("LINE"),
|
|
271
271
|
//画线模式
|
|
272
272
|
POLYGON: Symbol("POLYGON")
|
|
273
273
|
//画面模式
|
|
274
274
|
};
|
|
275
|
-
class
|
|
275
|
+
class V extends S {
|
|
276
276
|
constructor(e, t) {
|
|
277
|
-
super(e), this.handler = null, this.mainLineEntity = null, this.mainPolygonEntity = null, this.dashLineEntity = null, this.dashEndData = null, this.drawerMode =
|
|
277
|
+
super(e), this.handler = null, this.mainLineEntity = null, this.mainPolygonEntity = null, this.dashLineEntity = null, this.dashEndData = null, this.drawerMode = m.LINE, this.r_ClickEvent = () => {
|
|
278
278
|
var i;
|
|
279
279
|
(i = this.handler) == null || i.setInputAction(() => {
|
|
280
280
|
l.DRAWABLE == super.getStatus() && (this.dashLineEntity && this.viewer.entities.removeById(this.dashLineEntity.id), this.dashEndData = null, this.stopStatus(), this.stopDrawCallbackFun && this.stopDrawCallbackFun());
|
|
@@ -286,7 +286,7 @@ class Z extends S {
|
|
|
286
286
|
let n = this.viewer.camera.getPickRay(a.position), s = this.viewer.scene.globe.pick(n, this.viewer.scene);
|
|
287
287
|
if (h(s)) {
|
|
288
288
|
const d = this.addPoint(s);
|
|
289
|
-
this.afterAddPointFun && this.afterAddPointFun(d), this.mainData.push(s), this.mainData.length > 0 && (this.mainLineEntity || this.createMainLine(), this.dashLineEntity || this.createDashline(), this.mainData.length > 1 && this.drawerMode ===
|
|
289
|
+
this.afterAddPointFun && this.afterAddPointFun(d), this.mainData.push(s), this.mainData.length > 0 && (this.mainLineEntity || this.createMainLine(), this.dashLineEntity || this.createDashline(), this.mainData.length > 1 && this.drawerMode === m.POLYGON && !this.mainPolygonEntity && this.createMainPolygon());
|
|
290
290
|
}
|
|
291
291
|
} else if (l.DELETABLE == super.getStatus()) {
|
|
292
292
|
const n = this.viewer.scene.pick(a.position);
|
|
@@ -344,7 +344,7 @@ class Z extends S {
|
|
|
344
344
|
new r()
|
|
345
345
|
],
|
|
346
346
|
width: 2,
|
|
347
|
-
material: new
|
|
347
|
+
material: new Q({
|
|
348
348
|
color: E.RED,
|
|
349
349
|
dashLength: 15
|
|
350
350
|
}),
|
|
@@ -365,32 +365,39 @@ class Z extends S {
|
|
|
365
365
|
super.drawableStatus(), this.handler || (this.handler = new C(this.viewer.scene.canvas)), this.r_ClickEvent(), this.l_ClickEvent(), this.l_ClickCtrlEvent(), this.l_DownEvent(), this.l_UpEvent(), this.moveCtrlEvent(), this.moveEvent();
|
|
366
366
|
}
|
|
367
367
|
getEntity() {
|
|
368
|
-
if (this.drawerMode ===
|
|
368
|
+
if (this.drawerMode === m.LINE)
|
|
369
369
|
return this.mainLineEntity;
|
|
370
|
-
if (this.drawerMode ===
|
|
370
|
+
if (this.drawerMode === m.POLYGON)
|
|
371
371
|
return this.mainPolygonEntity;
|
|
372
372
|
}
|
|
373
373
|
getPositions() {
|
|
374
374
|
return this.dsToMd();
|
|
375
375
|
}
|
|
376
|
+
setPositions(e) {
|
|
377
|
+
this.clearAll();
|
|
378
|
+
for (let t = 0, i = e.length; t < i; t++) {
|
|
379
|
+
const a = e[t];
|
|
380
|
+
this.addPoint(a);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
376
383
|
clearAll() {
|
|
377
384
|
this.clearAllData(), this.handler = null, this.mainLineEntity && this.viewer.entities.removeById(this.mainLineEntity.id), this.mainPolygonEntity && this.viewer.entities.removeById(this.mainPolygonEntity.id), this.dashLineEntity && this.viewer.entities.removeById(this.dashLineEntity.id);
|
|
378
385
|
}
|
|
379
386
|
measurePoint(e) {
|
|
380
387
|
let t = 1 / 0, i = -1, a = 0;
|
|
381
388
|
for (let n = 0, s = this.mainData.length; n < s - 1; n++) {
|
|
382
|
-
const d = this.mainData[n], g = this.mainData[n + 1], v = r.subtract(g, d, new r()),
|
|
389
|
+
const d = this.mainData[n], g = this.mainData[n + 1], v = r.subtract(g, d, new r()), k = r.subtract(e, d, new r()), I = r.dot(v, v);
|
|
383
390
|
let y, w;
|
|
384
391
|
if (I === 0)
|
|
385
392
|
y = r.distance(e, d), w = 0;
|
|
386
393
|
else {
|
|
387
|
-
w = r.dot(
|
|
388
|
-
const
|
|
394
|
+
w = r.dot(k, v) / I;
|
|
395
|
+
const T = Math.max(0, Math.min(1, w)), O = r.add(
|
|
389
396
|
d,
|
|
390
|
-
r.multiplyByScalar(v,
|
|
397
|
+
r.multiplyByScalar(v, T, new r()),
|
|
391
398
|
new r()
|
|
392
399
|
);
|
|
393
|
-
y = r.distance(e,
|
|
400
|
+
y = r.distance(e, O);
|
|
394
401
|
}
|
|
395
402
|
y < t && (t = y, i = n, a = w);
|
|
396
403
|
}
|
|
@@ -433,7 +440,7 @@ class Z extends S {
|
|
|
433
440
|
outline: !1
|
|
434
441
|
}, e.hierarchy = new f(() => {
|
|
435
442
|
let t = this.mainData;
|
|
436
|
-
return this.dashEndData && (t = [...this.mainData, this.dashEndData]), new
|
|
443
|
+
return this.dashEndData && (t = [...this.mainData, this.dashEndData]), new R(t);
|
|
437
444
|
}, !1), this.mainPolygonEntity = this.viewer.entities.add({
|
|
438
445
|
polygon: e,
|
|
439
446
|
properties: {
|
|
@@ -442,7 +449,7 @@ class Z extends S {
|
|
|
442
449
|
});
|
|
443
450
|
}
|
|
444
451
|
}
|
|
445
|
-
class
|
|
452
|
+
class X extends S {
|
|
446
453
|
constructor(e, t) {
|
|
447
454
|
super(e), this.handler = null, this.firstPoint = null, this.endPoint = null, this.lineEntity = null, this.polygonEntity = null, this.rect_L_ClickEvent = () => {
|
|
448
455
|
var i;
|
|
@@ -482,6 +489,14 @@ class V extends S {
|
|
|
482
489
|
getPositions() {
|
|
483
490
|
return this.dsToMd();
|
|
484
491
|
}
|
|
492
|
+
/**
|
|
493
|
+
* 根据数据直接生成图形
|
|
494
|
+
* @param startPoint 起始点坐标
|
|
495
|
+
* @param endPoint 结束点坐标
|
|
496
|
+
*/
|
|
497
|
+
setPositions(e, t) {
|
|
498
|
+
this.clearAll(), this.firstPoint = F(e), this.endPoint = F(t), this.initMainData(), this.createLine(), this.createPolygon();
|
|
499
|
+
}
|
|
485
500
|
clearAll() {
|
|
486
501
|
this.clearAllData(), this.firstPoint = new r(), this.endPoint = new r(), this.mainData = [], this.handler && (this.handler = null), this.polygonEntity && this.viewer.entities.removeById(this.polygonEntity.id), this.lineEntity && this.viewer.entities.removeById(this.lineEntity.id);
|
|
487
502
|
}
|
|
@@ -496,7 +511,7 @@ class V extends S {
|
|
|
496
511
|
}
|
|
497
512
|
initMainData() {
|
|
498
513
|
if (this.firstPoint && this.endPoint) {
|
|
499
|
-
const e =
|
|
514
|
+
const e = L.fromCartesian(this.firstPoint), t = e.longitude, i = e.latitude, a = L.fromCartesian(this.endPoint), n = a.longitude, s = a.latitude, d = r.fromRadians(t, s), g = r.fromRadians(n, i);
|
|
500
515
|
this.mainData[0] = this.firstPoint, this.mainData[1] = d, this.mainData[2] = this.endPoint, this.mainData[3] = g;
|
|
501
516
|
}
|
|
502
517
|
}
|
|
@@ -526,7 +541,7 @@ class V extends S {
|
|
|
526
541
|
hierarchy: [new r(), new r(), new r()],
|
|
527
542
|
material: E.RED.withAlpha(0.4),
|
|
528
543
|
outline: !1
|
|
529
|
-
}, e.hierarchy = new f(() => new
|
|
544
|
+
}, e.hierarchy = new f(() => new R(this.mainData), !1), this.polygonEntity = this.viewer.entities.add({
|
|
530
545
|
polygon: e,
|
|
531
546
|
properties: {
|
|
532
547
|
entityType: "POLYGON"
|
|
@@ -534,7 +549,7 @@ class V extends S {
|
|
|
534
549
|
});
|
|
535
550
|
}
|
|
536
551
|
}
|
|
537
|
-
class
|
|
552
|
+
class J extends S {
|
|
538
553
|
constructor(e, t) {
|
|
539
554
|
super(e), this.handler = null, this.firstPoint = new r(), this.endPoint = new r(), this.distance = 0, this.angle = 0, this.endPointEntity = null, this.ellipseEntity = null, this.circle_L_ClickEvent = () => {
|
|
540
555
|
var i;
|
|
@@ -574,11 +589,14 @@ class X extends S {
|
|
|
574
589
|
getPositions() {
|
|
575
590
|
return this.dsToMd();
|
|
576
591
|
}
|
|
592
|
+
setPositions(e, t) {
|
|
593
|
+
this.clearAll(), this.firstPoint = e, this.endPoint = t, this.countDistance(), this.createCircle();
|
|
594
|
+
}
|
|
577
595
|
clearAll() {
|
|
578
596
|
this.clearAllData(), this.firstPoint = new r(), this.endPoint = new r(), this.handler && (this.handler = null), this.ellipseEntity && this.viewer.entities.removeById(this.ellipseEntity.id);
|
|
579
597
|
}
|
|
580
598
|
setAngle() {
|
|
581
|
-
const e =
|
|
599
|
+
const e = M.eastNorthUpToFixedFrame(this.firstPoint.clone()), t = P.inverse(e, new P()), i = P.multiplyByPoint(t, this.endPoint.clone(), new r());
|
|
582
600
|
this.angle = Math.atan2(i.x, i.y);
|
|
583
601
|
}
|
|
584
602
|
circleMove(e, t) {
|
|
@@ -596,12 +614,12 @@ class X extends S {
|
|
|
596
614
|
this.distance * Math.cos(this.angle),
|
|
597
615
|
0
|
|
598
616
|
// 保持水平,如果希望保持高度则设为 localEdge.z
|
|
599
|
-
), t =
|
|
617
|
+
), t = M.eastNorthUpToFixedFrame(this.firstPoint), i = P.multiplyByPointAsVector(t, e, new r());
|
|
600
618
|
this.endPoint = r.add(this.firstPoint, i, new r());
|
|
601
619
|
}
|
|
602
620
|
countDistance() {
|
|
603
621
|
if (this.firstPoint && this.endPoint) {
|
|
604
|
-
const e =
|
|
622
|
+
const e = L.fromCartesian(this.firstPoint), t = L.fromCartesian(this.endPoint), i = new W(e, t);
|
|
605
623
|
this.distance = i.surfaceDistance;
|
|
606
624
|
}
|
|
607
625
|
}
|
|
@@ -632,10 +650,10 @@ class X extends S {
|
|
|
632
650
|
}
|
|
633
651
|
}
|
|
634
652
|
export {
|
|
635
|
-
|
|
653
|
+
V as C,
|
|
636
654
|
l as D,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
655
|
+
Z as P,
|
|
656
|
+
X as R,
|
|
657
|
+
J as a,
|
|
658
|
+
m as b
|
|
641
659
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cartographic as v, EllipsoidGeodesic as Y, Cartesian3 as g, BoundingSphere as N, Transforms as y, Matrix4 as M, CustomDataSource as L, ConstantPositionProperty as d, ConstantProperty as u, Color as c, Cartesian2 as B, VerticalOrigin as F, HorizontalOrigin as T, LabelStyle as x, Math as k } from "cesium";
|
|
2
|
-
import { a as j, R as U, P as W, D as G, C as O, b as Z } from "./CircleDrawer-
|
|
2
|
+
import { a as j, R as U, P as W, D as G, C as O, b as Z } from "./CircleDrawer-D2dAuEcD.js";
|
|
3
3
|
const A = (n, t) => {
|
|
4
4
|
const l = v.fromCartesian(n), e = v.fromCartesian(t);
|
|
5
5
|
return new Y(l, e).surfaceDistance;
|
package/drawer.js
CHANGED
package/gauger.js
CHANGED
package/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cp-porket-compass[data-v-f9d2dfd0]{position:absolute;z-index:1000;width:100px;height:100px;cursor:pointer}.cp-porket-ruler[data-v-b4295ba8]{z-index:1000;width:100px;height:20px;text-align:center;padding-top:2px;font-size:12px;color:#ebebeb}.cp-porket-ruler-line[data-v-b4295ba8]{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-f88fbee1]{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-8d46cebf]{position:absolute;z-index:100;font-size:12px}.cp-overlay-close[data-v-8d46cebf]{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-8d46cebf]{width:30px;height:30px;color:#fff}.cesium-html-marker[data-v-0e7fc65f]{pointer-events:auto;z-index:1000}.pin-container[data-v-0e7fc65f]{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-header[data-v-ace85555]{height:24px;line-height:20px;font-size:12px;background-color:#000c;display:flex;justify-content:space-around;align-items:center}.cp-layersmap-layer[data-v-ace85555]{width:60px;height:60px;position:relative;margin-left:2px;margin-top:2px;margin-bottom:2px;cursor:pointer}.cp-layersmap-main-header[data-v-ace85555]{position:absolute;z-index:1;width:100%;height:16px;line-height:16px;text-align:center;font-size:12px;background-color:#4449}.cp-layersmap-main-footer[data-v-ace85555]{position:absolute;bottom:0;z-index:1;width:100%;display:flex;justify-content:center;align-items:center;height:14px;font-size:10px;background-color:#4449}.cp-layersmap-main-image[data-v-ace85555]{width:60px;height:60px}.cp-layersmap-active[data-v-ace85555]{background-color:#0047e0cc}.cp-layersmap[data-v-ace85555]{position:absolute;z-index:10;color:#eee;background-color:#000c;border:1px solid rgb(61,64,105);border-radius:4px}.cp-layersmap-main[data-v-ace85555]{display:flex;justify-content:space-around;padding-right:2px}.split-bar[data-v-b8f0cd86]{position:absolute;top:0;bottom:0;z-index:20;width:4px;transform:translate(-50%);background:#fff;box-shadow:0 0 8px #00000073;cursor:ew-resize;touch-action:none}.split-handle[data-v-b8f0cd86]{position:absolute;top:50%;left:50%;width:18px;height:42px;transform:translate(-50%,-50%);border-radius:9px;background:#fff;box-shadow:0 0 8px #0006}.split-handle[data-v-b8f0cd86]:before,.split-handle[data-v-b8f0cd86]:after{content:"";position:absolute;top:50%;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;transform:translateY(-50%)}.split-handle[data-v-b8f0cd86]:before{left:2px;border-right:5px solid #5a6e82}.split-handle[data-v-b8f0cd86]:after{right:2px;border-left:5px solid #5a6e82}.czml-config[data-v-4bb4e701]{position:fixed;left:0;bottom:60px;z-index:100;width:60x;background-color:#0006;border-top:1px solid rgb(60,60,60);border-right:1px solid rgb(60,60,60);border-radius:4px;padding:6px;font-size:12px;color:#ccc}.czml-config-title[data-v-4bb4e701]{padding-bottom:6px;border-bottom:1px solid #222222;font-weight:500;font-size:14px}.czml-config-label[data-v-4bb4e701]{color:#87ceeb;padding:4px 0}.czmlBar[data-v-4bb4e701]{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-4bb4e701]{width:220px;-webkit-user-select:none;user-select:none}.control-btns[data-v-4bb4e701]{display:flex;justify-content:space-around;align-items:center;padding-top:8px}.control-btns div[data-v-4bb4e701]{width:22px;height:22px;border-radius:2px;display:flex;justify-content:center;align-items:center;background-color:#ffffff4d}.control-btns img[data-v-4bb4e701]{width:14px}.control-bottom[data-v-4bb4e701]{height:30px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;color:#ff0}.bar-timeline[data-v-4bb4e701]{flex:1 1 auto;padding:10px;position:relative}.timeline-left[data-v-4bb4e701]{position:absolute;top:6px;left:10px}.timeline-right[data-v-4bb4e701]{position:absolute;top:6px;right:10px}.timeline-ruler[data-v-4bb4e701]{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-4bb4e701]{position:absolute;top:-30px;transform:translate(-25%)}.tick[data-v-4bb4e701]{position:absolute;bottom:0;width:0;height:6px;border-left:1px solid rgba(170,180,190,.45);font-size:10px}.grabbing[data-v-4bb4e701]{cursor:grabbing}.tick-major[data-v-4bb4e701]{height:12px;border-left:1px solid rgba(170,180,190,.45)}.playhead[data-v-4bb4e701]{position:absolute;top:0;bottom:0;width:0;z-index:5;transform:translate(-50%);pointer-events:none}.playhead__tri[data-v-4bb4e701]{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-4bb4e701]{position:absolute;top:10px;bottom:0;left:0;width:1px;background:#ff0}@media (max-width: 720px){.czml-config[data-v-4bb4e701]{bottom:120px}.czmlBar[data-v-4bb4e701]{height:120px;flex-direction:column;gap:6px;min-height:0}.bar-control[data-v-4bb4e701]{width:100%;display:flex;justify-content:space-between}.control-btns[data-v-4bb4e701]{width:55%}.control-bottom[data-v-4bb4e701]{flex:1}}
|
|
1
|
+
.cp-porket-compass[data-v-f9d2dfd0]{position:absolute;z-index:1000;width:100px;height:100px;cursor:pointer}.cp-porket-ruler[data-v-b4295ba8]{z-index:1000;width:100px;height:20px;text-align:center;padding-top:2px;font-size:12px;color:#ebebeb}.cp-porket-ruler-line[data-v-b4295ba8]{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-f88fbee1]{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-8d46cebf]{position:absolute;z-index:100;font-size:12px}.cp-overlay-close[data-v-8d46cebf]{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-8d46cebf]{width:30px;height:30px;color:#fff}.leader-layer[data-v-af43e71e]{position:absolute;left:0;top:0;z-index:4;pointer-events:none;overflow:visible}.sign-board[data-v-af43e71e]{position:absolute;z-index:5;display:flex;flex-direction:column;gap:2px;padding:6px 10px;color:#fff;background-color:#000c;border:1px solid #000000;border-radius:4px;font-size:14px;line-height:20px;letter-spacing:.02em;white-space:nowrap;-webkit-user-select:none;user-select:none;box-shadow:0 2px 8px #00000059}.sign-header[data-v-af43e71e]{position:relative;margin-bottom:4px;padding-bottom:4px;border-bottom:1px solid rgba(255,255,255,.35);cursor:grab;touch-action:none}.sign-header[data-v-af43e71e]:active{cursor:grabbing}.sign-title[data-v-af43e71e]{text-align:left;font-weight:600;padding:0 18px}.sign-close[data-v-af43e71e]{position:absolute;top:-2px;right:-4px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;background:transparent;color:#fff;cursor:pointer}.cesium-html-marker[data-v-0e7fc65f]{pointer-events:auto;z-index:1000}.pin-container[data-v-0e7fc65f]{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-header[data-v-ace85555]{height:24px;line-height:20px;font-size:12px;background-color:#000c;display:flex;justify-content:space-around;align-items:center}.cp-layersmap-layer[data-v-ace85555]{width:60px;height:60px;position:relative;margin-left:2px;margin-top:2px;margin-bottom:2px;cursor:pointer}.cp-layersmap-main-header[data-v-ace85555]{position:absolute;z-index:1;width:100%;height:16px;line-height:16px;text-align:center;font-size:12px;background-color:#4449}.cp-layersmap-main-footer[data-v-ace85555]{position:absolute;bottom:0;z-index:1;width:100%;display:flex;justify-content:center;align-items:center;height:14px;font-size:10px;background-color:#4449}.cp-layersmap-main-image[data-v-ace85555]{width:60px;height:60px}.cp-layersmap-active[data-v-ace85555]{background-color:#0047e0cc}.cp-layersmap[data-v-ace85555]{position:absolute;z-index:10;color:#eee;background-color:#000c;border:1px solid rgb(61,64,105);border-radius:4px}.cp-layersmap-main[data-v-ace85555]{display:flex;justify-content:space-around;padding-right:2px}.split-bar[data-v-b8f0cd86]{position:absolute;top:0;bottom:0;z-index:20;width:4px;transform:translate(-50%);background:#fff;box-shadow:0 0 8px #00000073;cursor:ew-resize;touch-action:none}.split-handle[data-v-b8f0cd86]{position:absolute;top:50%;left:50%;width:18px;height:42px;transform:translate(-50%,-50%);border-radius:9px;background:#fff;box-shadow:0 0 8px #0006}.split-handle[data-v-b8f0cd86]:before,.split-handle[data-v-b8f0cd86]:after{content:"";position:absolute;top:50%;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;transform:translateY(-50%)}.split-handle[data-v-b8f0cd86]:before{left:2px;border-right:5px solid #5a6e82}.split-handle[data-v-b8f0cd86]:after{right:2px;border-left:5px solid #5a6e82}.czml-config[data-v-4bb4e701]{position:fixed;left:0;bottom:60px;z-index:100;width:60x;background-color:#0006;border-top:1px solid rgb(60,60,60);border-right:1px solid rgb(60,60,60);border-radius:4px;padding:6px;font-size:12px;color:#ccc}.czml-config-title[data-v-4bb4e701]{padding-bottom:6px;border-bottom:1px solid #222222;font-weight:500;font-size:14px}.czml-config-label[data-v-4bb4e701]{color:#87ceeb;padding:4px 0}.czmlBar[data-v-4bb4e701]{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-4bb4e701]{width:220px;-webkit-user-select:none;user-select:none}.control-btns[data-v-4bb4e701]{display:flex;justify-content:space-around;align-items:center;padding-top:8px}.control-btns div[data-v-4bb4e701]{width:22px;height:22px;border-radius:2px;display:flex;justify-content:center;align-items:center;background-color:#ffffff4d}.control-btns img[data-v-4bb4e701]{width:14px}.control-bottom[data-v-4bb4e701]{height:30px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;color:#ff0}.bar-timeline[data-v-4bb4e701]{flex:1 1 auto;padding:10px;position:relative}.timeline-left[data-v-4bb4e701]{position:absolute;top:6px;left:10px}.timeline-right[data-v-4bb4e701]{position:absolute;top:6px;right:10px}.timeline-ruler[data-v-4bb4e701]{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-4bb4e701]{position:absolute;top:-30px;transform:translate(-25%)}.tick[data-v-4bb4e701]{position:absolute;bottom:0;width:0;height:6px;border-left:1px solid rgba(170,180,190,.45);font-size:10px}.grabbing[data-v-4bb4e701]{cursor:grabbing}.tick-major[data-v-4bb4e701]{height:12px;border-left:1px solid rgba(170,180,190,.45)}.playhead[data-v-4bb4e701]{position:absolute;top:0;bottom:0;width:0;z-index:5;transform:translate(-50%);pointer-events:none}.playhead__tri[data-v-4bb4e701]{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-4bb4e701]{position:absolute;top:10px;bottom:0;left:0;width:1px;background:#ff0}@media (max-width: 720px){.czml-config[data-v-4bb4e701]{bottom:120px}.czmlBar[data-v-4bb4e701]{height:120px;flex-direction:column;gap:6px;min-height:0}.bar-control[data-v-4bb4e701]{width:100%;display:flex;justify-content:space-between}.control-btns[data-v-4bb4e701]{width:55%}.control-bottom[data-v-4bb4e701]{flex:1}}
|
package/index.d.ts
CHANGED
|
@@ -2,16 +2,17 @@ import { default as cpCompass } from './src/base/compass/Index.vue';
|
|
|
2
2
|
import { default as cpRuler } from './src/base/ruler/Index.vue';
|
|
3
3
|
import { default as cpCoord } from './src/base/coord/Index.vue';
|
|
4
4
|
import { default as cpOverlay } from './src/base/overlay/Index.vue';
|
|
5
|
+
import { default as cpSignBoard } from './src/base/signBoard/Index.vue';
|
|
5
6
|
import { default as cpPin } from './src/base/pin/Index.vue';
|
|
6
7
|
import { default as cpLayersPicker } from './src/layers/picker/Index.vue';
|
|
7
|
-
import { default as
|
|
8
|
+
import { default as cpLayersSplit } from './src/layers/split/Index.vue';
|
|
8
9
|
import { default as cpCzmlPlayer } from './src/czml/player/Index.vue';
|
|
9
10
|
import { App } from 'vue';
|
|
10
11
|
declare const _default: {
|
|
11
12
|
install: (app: App) => App<any>;
|
|
12
13
|
};
|
|
13
14
|
export default _default;
|
|
14
|
-
export { cpCompass, cpRuler, cpCoord, cpOverlay, cpPin, cpLayersPicker,
|
|
15
|
+
export { cpCompass, cpRuler, cpCoord, cpOverlay, cpSignBoard, cpPin, cpLayersPicker, cpLayersSplit, cpCzmlPlayer };
|
|
15
16
|
export * from './pin';
|
|
16
17
|
export * from './drawer';
|
|
17
18
|
export * from './gauger';
|