vesium 1.0.1-beta.57 → 1.0.1-beta.61
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/README.md +1 -1
- package/dist/index.cjs +57 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.iife.js +56 -50
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(exports,
|
|
1
|
+
(function(exports, _vueuse_core, cesium, vue, _vesium_shared) {
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
//#region createViewer/index.ts
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const scope = (0, vue.getCurrentScope)();
|
|
20
20
|
if (scope) CREATE_VIEWER_COLLECTION.set(scope, readonlyViewer);
|
|
21
21
|
const canvas = (0, vue.computed)(() => viewer.value?.canvas);
|
|
22
|
-
(0,
|
|
22
|
+
(0, _vueuse_core.useMutationObserver)(document?.body, () => {
|
|
23
23
|
if (canvas.value && !document?.body.contains(canvas.value)) viewer.value = void 0;
|
|
24
24
|
}, {
|
|
25
25
|
childList: true,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
onCleanup(() => !viewer.value?.isDestroyed() && viewer.value?.destroy());
|
|
35
35
|
} else viewer.value = void 0;
|
|
36
36
|
});
|
|
37
|
-
(0,
|
|
37
|
+
(0, _vueuse_core.tryOnScopeDispose)(() => {
|
|
38
38
|
viewer.value = void 0;
|
|
39
39
|
});
|
|
40
40
|
return (0, vue.computed)(() => {
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
try {
|
|
67
67
|
const { raw = true } = options;
|
|
68
68
|
let value;
|
|
69
|
-
if ((0,
|
|
69
|
+
if ((0, _vesium_shared.isFunction)(source)) value = await source();
|
|
70
70
|
else {
|
|
71
71
|
const result = (0, vue.toValue)(source);
|
|
72
|
-
value = (0,
|
|
72
|
+
value = (0, _vesium_shared.isPromise)(result) ? await result : result;
|
|
73
73
|
}
|
|
74
74
|
return raw ? (0, vue.toRaw)(value) : value;
|
|
75
75
|
} catch (error) {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
-
(0,
|
|
108
|
+
(0, _vueuse_core.tryOnScopeDispose)(cleanup.stop);
|
|
109
109
|
return cleanup.stop;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
const eventField = (0, vue.toValue)(options.event) || "changed";
|
|
148
148
|
return camera.value?.[eventField];
|
|
149
149
|
});
|
|
150
|
-
const changedSymbol = (0,
|
|
150
|
+
const changedSymbol = (0, _vueuse_core.refThrottled)((0, vue.shallowRef)(Symbol("camera change")), options.delay ?? 8, true, false);
|
|
151
151
|
const setChangedSymbol = () => {
|
|
152
152
|
changedSymbol.value = Symbol("camera change");
|
|
153
153
|
};
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
const p = (0, vue.shallowRef)(performance.now());
|
|
196
196
|
useCesiumEventListener(() => viewer.value?.scene.postRender, () => p.value = performance.now());
|
|
197
197
|
const interval = (0, vue.ref)(0);
|
|
198
|
-
(0,
|
|
198
|
+
(0, _vueuse_core.watchThrottled)(p, (value, oldValue) => {
|
|
199
199
|
interval.value = value - oldValue;
|
|
200
200
|
}, { throttle: delay });
|
|
201
201
|
const fps = (0, vue.computed)(() => {
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
const scope = (0, vue.shallowReactive)(/* @__PURE__ */ new Set());
|
|
220
220
|
const add = (instance, ...args) => {
|
|
221
221
|
const result = addEffect(instance, ...args);
|
|
222
|
-
if ((0,
|
|
222
|
+
if ((0, _vesium_shared.isPromise)(result)) return new Promise((resolve, reject) => {
|
|
223
223
|
result.then((i) => {
|
|
224
224
|
scope.add(i);
|
|
225
225
|
resolve(i);
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
remove(instance, ...args);
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
|
-
(0,
|
|
247
|
+
(0, _vueuse_core.tryOnScopeDispose)(() => removeScope(...removeScopeArgs));
|
|
248
248
|
return {
|
|
249
249
|
scope: (0, vue.shallowReadonly)(scope),
|
|
250
250
|
add,
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
//#region useDataSource/index.ts
|
|
259
259
|
function useDataSource(dataSources, options = {}) {
|
|
260
260
|
const { destroyOnRemove, collection, isActive = true, evaluating } = options;
|
|
261
|
-
const result = (0,
|
|
261
|
+
const result = (0, _vueuse_core.computedAsync)(() => toPromiseValue(dataSources), void 0, { evaluating });
|
|
262
262
|
const viewer = useViewer();
|
|
263
263
|
(0, vue.watchEffect)((onCleanup) => {
|
|
264
264
|
if ((0, vue.toValue)(isActive)) {
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
return useCollectionScope({
|
|
289
289
|
addEffect(instance) {
|
|
290
290
|
if (!collection.value) throw new Error("collection is not defined");
|
|
291
|
-
if ((0,
|
|
291
|
+
if ((0, _vesium_shared.isPromise)(instance)) return new Promise((resolve, reject) => {
|
|
292
292
|
instance.then((i) => {
|
|
293
293
|
collection.value.add(i);
|
|
294
294
|
resolve(i);
|
|
@@ -318,11 +318,13 @@
|
|
|
318
318
|
} } = options;
|
|
319
319
|
const viewer = useViewer();
|
|
320
320
|
const cartesian3 = (0, vue.computed)(() => {
|
|
321
|
-
|
|
321
|
+
const positionValue = (0, vue.toValue)(position);
|
|
322
|
+
if (!positionValue) return;
|
|
323
|
+
else if (!(0, vue.toValue)(clampToGround)) return (0, _vesium_shared.toCartesian3)(positionValue);
|
|
322
324
|
else {
|
|
323
|
-
const cartographic = (0,
|
|
325
|
+
const cartographic = (0, _vesium_shared.toCartographic)((0, vue.toValue)(positionValue));
|
|
324
326
|
cartographic.height = +(viewer.value?.scene.globe.getHeight(cartographic) || 0).toFixed(2);
|
|
325
|
-
return (0,
|
|
327
|
+
return (0, _vesium_shared.toCartesian3)(cartographic);
|
|
326
328
|
}
|
|
327
329
|
});
|
|
328
330
|
const coord = (0, vue.shallowRef)();
|
|
@@ -330,12 +332,16 @@
|
|
|
330
332
|
if (!viewer.value?.scene) return;
|
|
331
333
|
if (!cartesian3.value) coord.value = void 0;
|
|
332
334
|
else {
|
|
333
|
-
const result = (0,
|
|
334
|
-
|
|
335
|
+
const result = (0, _vesium_shared.cartesianToCanvasCoord)(cartesian3.value, viewer.value.scene);
|
|
336
|
+
if (result) {
|
|
337
|
+
result.x = +result.x.toFixed(2);
|
|
338
|
+
result.y = +result.y.toFixed(2);
|
|
339
|
+
coord.value = !cesium.Cartesian2.equals(result, coord.value) ? result : coord.value;
|
|
340
|
+
}
|
|
335
341
|
}
|
|
336
342
|
});
|
|
337
|
-
const canvasBounding = (0,
|
|
338
|
-
const targetBounding = (0,
|
|
343
|
+
const canvasBounding = (0, _vueuse_core.useElementBounding)(() => viewer.value?.canvas.parentElement);
|
|
344
|
+
const targetBounding = (0, _vueuse_core.useElementBounding)(target);
|
|
339
345
|
const finalOffset = (0, vue.computed)(() => {
|
|
340
346
|
const _offset = (0, vue.toValue)(offset);
|
|
341
347
|
let x$1 = _offset?.x ?? 0;
|
|
@@ -389,7 +395,7 @@
|
|
|
389
395
|
//#region useEntity/index.ts
|
|
390
396
|
function useEntity(data, options = {}) {
|
|
391
397
|
const { collection, isActive = true, evaluating } = options;
|
|
392
|
-
const result = (0,
|
|
398
|
+
const result = (0, _vueuse_core.computedAsync)(() => toPromiseValue(data), [], { evaluating });
|
|
393
399
|
const viewer = useViewer();
|
|
394
400
|
(0, vue.watchEffect)((onCleanup) => {
|
|
395
401
|
if ((0, vue.toValue)(isActive)) {
|
|
@@ -419,7 +425,7 @@
|
|
|
419
425
|
return useCollectionScope({
|
|
420
426
|
addEffect(instance) {
|
|
421
427
|
if (!collection.value) throw new Error("collection is not defined");
|
|
422
|
-
if ((0,
|
|
428
|
+
if ((0, _vesium_shared.isPromise)(instance)) return new Promise((resolve, reject) => {
|
|
423
429
|
instance.then((i) => {
|
|
424
430
|
collection.value.add(i);
|
|
425
431
|
resolve(i);
|
|
@@ -450,7 +456,7 @@
|
|
|
450
456
|
const { width = 3, height = 3, throttled = 8 } = options;
|
|
451
457
|
const isActive = (0, vue.toRef)(options.isActive ?? true);
|
|
452
458
|
const viewer = useViewer();
|
|
453
|
-
const position = (0,
|
|
459
|
+
const position = (0, _vueuse_core.refThrottled)((0, vue.computed)(() => (0, vue.toValue)(windowPosition)?.clone()), throttled, false, true);
|
|
454
460
|
const pick = (0, vue.shallowRef)();
|
|
455
461
|
(0, vue.watchEffect)(() => {
|
|
456
462
|
if (viewer.value && position.value && isActive.value) {
|
|
@@ -490,7 +496,7 @@
|
|
|
490
496
|
const modifierValue = (0, vue.toValue)(modifier);
|
|
491
497
|
const handlerValue = (0, vue.toValue)(handler);
|
|
492
498
|
if (!handlerValue || !isActive.value || !inputAction) return;
|
|
493
|
-
if ((0,
|
|
499
|
+
if ((0, _vesium_shared.isDef)(typeValue)) {
|
|
494
500
|
handlerValue.setInputAction(inputAction, typeValue, modifierValue);
|
|
495
501
|
onCleanup(() => handlerValue.removeInputAction(typeValue, modifierValue));
|
|
496
502
|
}
|
|
@@ -499,7 +505,7 @@
|
|
|
499
505
|
cleanup1();
|
|
500
506
|
cleanup2();
|
|
501
507
|
};
|
|
502
|
-
(0,
|
|
508
|
+
(0, _vueuse_core.tryOnScopeDispose)(stop);
|
|
503
509
|
return stop;
|
|
504
510
|
}
|
|
505
511
|
|
|
@@ -539,7 +545,7 @@
|
|
|
539
545
|
dragging.value = true;
|
|
540
546
|
position.value = event.position.clone();
|
|
541
547
|
});
|
|
542
|
-
const stopMouseMoveWatch = useScreenSpaceEventHandler(cesium.ScreenSpaceEventType.MOUSE_MOVE, (0,
|
|
548
|
+
const stopMouseMoveWatch = useScreenSpaceEventHandler(cesium.ScreenSpaceEventType.MOUSE_MOVE, (0, _vesium_shared.throttle)(({ startPosition, endPosition }) => {
|
|
543
549
|
motionEvent.value = {
|
|
544
550
|
startPosition: motionEvent.value?.endPosition.clone() || startPosition.clone(),
|
|
545
551
|
endPosition: endPosition.clone()
|
|
@@ -562,7 +568,7 @@
|
|
|
562
568
|
stopMouseMoveWatch();
|
|
563
569
|
stopLeftUpWatch();
|
|
564
570
|
};
|
|
565
|
-
(0,
|
|
571
|
+
(0, _vueuse_core.tryOnScopeDispose)(stop);
|
|
566
572
|
return stop;
|
|
567
573
|
}
|
|
568
574
|
|
|
@@ -677,15 +683,15 @@
|
|
|
677
683
|
eventTypeMap.get(type) ?? eventTypeMap.set(type, /* @__PURE__ */ new Set());
|
|
678
684
|
eventTypeMap.get(type).add(listener);
|
|
679
685
|
let { cursor = "pointer", dragCursor } = options;
|
|
680
|
-
if ((0,
|
|
681
|
-
const _cursor = (0,
|
|
686
|
+
if ((0, _vesium_shared.isDef)(cursor)) {
|
|
687
|
+
const _cursor = (0, _vesium_shared.isFunction)(cursor) ? cursor : () => cursor;
|
|
682
688
|
cursorCollection.get(_graphic) ?? cursorCollection.set(_graphic, /* @__PURE__ */ new Map());
|
|
683
689
|
cursorCollection.get(_graphic).get(type) ?? cursorCollection.get(_graphic).set(type, /* @__PURE__ */ new Map());
|
|
684
690
|
cursorCollection.get(_graphic).get(type).set(listener, _cursor);
|
|
685
691
|
}
|
|
686
692
|
if (type === "DRAG") dragCursor ??= ((event) => event?.dragging ? "crosshair" : void 0);
|
|
687
|
-
if ((0,
|
|
688
|
-
const _dragCursor = (0,
|
|
693
|
+
if ((0, _vesium_shared.isDef)(dragCursor)) {
|
|
694
|
+
const _dragCursor = (0, _vesium_shared.isFunction)(dragCursor) ? dragCursor : () => dragCursor;
|
|
689
695
|
dragCursorCollection.get(_graphic) ?? dragCursorCollection.set(_graphic, /* @__PURE__ */ new Map());
|
|
690
696
|
dragCursorCollection.get(_graphic).get(type) ?? dragCursorCollection.get(_graphic).set(type, /* @__PURE__ */ new Map());
|
|
691
697
|
dragCursorCollection.get(_graphic).get(type).set(listener, _dragCursor);
|
|
@@ -708,31 +714,31 @@
|
|
|
708
714
|
if (dragCursorCollection?.get(_graphic)?.size === 0) dragCursorCollection?.delete(_graphic);
|
|
709
715
|
};
|
|
710
716
|
for (const type of POSITIONED_EVENT_TYPES) usePositioned(type, (event) => {
|
|
711
|
-
(0,
|
|
712
|
-
collection.get(graphic)?.get(type)?.forEach((fn) => (0,
|
|
717
|
+
(0, _vesium_shared.resolvePick)(event.pick).concat(GLOBAL_GRAPHIC_SYMBOL).forEach((graphic) => {
|
|
718
|
+
collection.get(graphic)?.get(type)?.forEach((fn) => (0, _vesium_shared.tryRun)(fn)?.(event));
|
|
713
719
|
});
|
|
714
720
|
});
|
|
715
721
|
const dragging = (0, vue.ref)(false);
|
|
716
722
|
const viewer = useViewer();
|
|
717
723
|
useHover((event) => {
|
|
718
|
-
(0,
|
|
719
|
-
collection.get(graphic)?.get("HOVER")?.forEach((fn) => (0,
|
|
724
|
+
(0, _vesium_shared.resolvePick)(event.pick).concat(GLOBAL_GRAPHIC_SYMBOL).forEach((graphic) => {
|
|
725
|
+
collection.get(graphic)?.get("HOVER")?.forEach((fn) => (0, _vesium_shared.tryRun)(fn)?.(event));
|
|
720
726
|
if (!dragging.value) cursorCollection.get(graphic)?.forEach((map) => {
|
|
721
727
|
map.forEach((fn) => {
|
|
722
|
-
const cursor = event.hovering ? (0,
|
|
728
|
+
const cursor = event.hovering ? (0, _vesium_shared.tryRun)(fn)(event) : "";
|
|
723
729
|
viewer.value?.canvas.style?.setProperty("cursor", cursor);
|
|
724
730
|
});
|
|
725
731
|
});
|
|
726
732
|
});
|
|
727
733
|
});
|
|
728
734
|
useDrag((event) => {
|
|
729
|
-
const graphics = (0,
|
|
735
|
+
const graphics = (0, _vesium_shared.resolvePick)(event.pick).concat(GLOBAL_GRAPHIC_SYMBOL);
|
|
730
736
|
dragging.value = event.dragging;
|
|
731
737
|
graphics.forEach((graphic) => {
|
|
732
|
-
collection.get(graphic)?.get("DRAG")?.forEach((fn) => (0,
|
|
738
|
+
collection.get(graphic)?.get("DRAG")?.forEach((fn) => (0, _vesium_shared.tryRun)(fn)(event));
|
|
733
739
|
dragCursorCollection.get(graphic)?.forEach((map) => {
|
|
734
740
|
map.forEach((fn) => {
|
|
735
|
-
const cursor = event.dragging ? (0,
|
|
741
|
+
const cursor = event.dragging ? (0, _vesium_shared.tryRun)(fn)(event) : "";
|
|
736
742
|
viewer.value?.canvas.style?.setProperty("cursor", cursor);
|
|
737
743
|
});
|
|
738
744
|
});
|
|
@@ -749,7 +755,7 @@
|
|
|
749
755
|
//#region useImageryLayer/index.ts
|
|
750
756
|
function useImageryLayer(data, options = {}) {
|
|
751
757
|
const { destroyOnRemove, collection, isActive = true, evaluating } = options;
|
|
752
|
-
const result = (0,
|
|
758
|
+
const result = (0, _vueuse_core.computedAsync)(() => toPromiseValue(data), [], { evaluating });
|
|
753
759
|
const viewer = useViewer();
|
|
754
760
|
(0, vue.watchEffect)((onCleanup) => {
|
|
755
761
|
if ((0, vue.toValue)(isActive)) {
|
|
@@ -791,7 +797,7 @@
|
|
|
791
797
|
return useCollectionScope({
|
|
792
798
|
addEffect(instance, index) {
|
|
793
799
|
if (!collection.value) throw new Error("collection is not defined");
|
|
794
|
-
if ((0,
|
|
800
|
+
if ((0, _vesium_shared.isPromise)(instance)) return new Promise((resolve, reject) => {
|
|
795
801
|
instance.then((i) => {
|
|
796
802
|
collection.value.add(i, index);
|
|
797
803
|
resolve(i);
|
|
@@ -813,7 +819,7 @@
|
|
|
813
819
|
//#region usePostProcessStage/index.ts
|
|
814
820
|
function usePostProcessStage(data, options = {}) {
|
|
815
821
|
const { collection, isActive = true, evaluating } = options;
|
|
816
|
-
const result = (0,
|
|
822
|
+
const result = (0, _vueuse_core.computedAsync)(() => toPromiseValue(data), void 0, { evaluating });
|
|
817
823
|
const viewer = useViewer();
|
|
818
824
|
(0, vue.watchEffect)((onCleanup) => {
|
|
819
825
|
if (!viewer.value) return;
|
|
@@ -844,7 +850,7 @@
|
|
|
844
850
|
return useCollectionScope({
|
|
845
851
|
addEffect(instance) {
|
|
846
852
|
if (!collection.value) throw new Error("collection is not defined");
|
|
847
|
-
if ((0,
|
|
853
|
+
if ((0, _vesium_shared.isPromise)(instance)) return new Promise((resolve, reject) => {
|
|
848
854
|
instance.then((instance$1) => {
|
|
849
855
|
collection.value.add(instance$1);
|
|
850
856
|
resolve(instance$1);
|
|
@@ -863,7 +869,7 @@
|
|
|
863
869
|
//#region usePrimitive/index.ts
|
|
864
870
|
function usePrimitive(data, options = {}) {
|
|
865
871
|
const { collection, isActive = true, evaluating } = options;
|
|
866
|
-
const result = (0,
|
|
872
|
+
const result = (0, _vueuse_core.computedAsync)(() => toPromiseValue(data), void 0, { evaluating });
|
|
867
873
|
const viewer = useViewer();
|
|
868
874
|
(0, vue.watchEffect)((onCleanup) => {
|
|
869
875
|
if ((0, vue.toValue)(isActive)) {
|
|
@@ -894,7 +900,7 @@
|
|
|
894
900
|
const { scope, add, remove, removeWhere, removeScope } = useCollectionScope({
|
|
895
901
|
addEffect(instance, ...args) {
|
|
896
902
|
if (!collection.value) throw new Error("collection is not defined");
|
|
897
|
-
if ((0,
|
|
903
|
+
if ((0, _vesium_shared.isPromise)(instance)) return new Promise((resolve, reject) => {
|
|
898
904
|
instance.then((instance$1) => resolve(collection.value.add(instance$1, ...args))).catch((error) => reject(error));
|
|
899
905
|
});
|
|
900
906
|
else return collection.value.add(instance, ...args);
|
|
@@ -960,7 +966,7 @@
|
|
|
960
966
|
const { maxPixel = 80, delay = 8 } = options;
|
|
961
967
|
const maxPixelRef = (0, vue.computed)(() => (0, vue.toValue)(maxPixel));
|
|
962
968
|
const viewer = useViewer();
|
|
963
|
-
const canvasSize = (0,
|
|
969
|
+
const canvasSize = (0, _vueuse_core.useElementSize)(() => viewer.value?.canvas);
|
|
964
970
|
const pixelDistance = (0, vue.ref)();
|
|
965
971
|
const setPixelDistance = async () => {
|
|
966
972
|
await (0, vue.nextTick)();
|
|
@@ -974,8 +980,8 @@
|
|
|
974
980
|
if (!leftPosition || !rightPosition) return;
|
|
975
981
|
pixelDistance.value = new cesium.EllipsoidGeodesic(scene.globe.ellipsoid.cartesianToCartographic(leftPosition), scene.globe.ellipsoid.cartesianToCartographic(rightPosition)).surfaceDistance;
|
|
976
982
|
};
|
|
977
|
-
(0,
|
|
978
|
-
useCesiumEventListener(() => viewer.value?.camera.changed, (0,
|
|
983
|
+
(0, _vueuse_core.watchImmediate)(viewer, () => setPixelDistance());
|
|
984
|
+
useCesiumEventListener(() => viewer.value?.camera.changed, (0, _vesium_shared.throttle)(setPixelDistance, delay));
|
|
979
985
|
const distance = (0, vue.computed)(() => {
|
|
980
986
|
if (pixelDistance.value) return distances.find((item) => pixelDistance.value * maxPixelRef.value > item);
|
|
981
987
|
});
|
|
@@ -1005,7 +1011,7 @@
|
|
|
1005
1011
|
function useSceneDrillPick(windowPosition, options = {}) {
|
|
1006
1012
|
const { width = 3, height = 3, limit, throttled = 8, isActive = true } = options;
|
|
1007
1013
|
const viewer = useViewer();
|
|
1008
|
-
const position = (0,
|
|
1014
|
+
const position = (0, _vueuse_core.refThrottled)((0, vue.computed)(() => (0, vue.toValue)(windowPosition)), throttled, false, true);
|
|
1009
1015
|
return (0, vue.computed)(() => {
|
|
1010
1016
|
if (position.value && (0, vue.toValue)(isActive)) return viewer.value?.scene.drillPick(position.value, (0, vue.toValue)(limit), (0, vue.toValue)(width), (0, vue.toValue)(height));
|
|
1011
1017
|
});
|
|
@@ -1037,10 +1043,10 @@ exports.useSceneDrillPick = useSceneDrillPick;
|
|
|
1037
1043
|
exports.useScenePick = useScenePick;
|
|
1038
1044
|
exports.useScreenSpaceEventHandler = useScreenSpaceEventHandler;
|
|
1039
1045
|
exports.useViewer = useViewer;
|
|
1040
|
-
Object.keys(
|
|
1046
|
+
Object.keys(_vesium_shared).forEach(function (k) {
|
|
1041
1047
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
1042
1048
|
enumerable: true,
|
|
1043
|
-
get: function () { return
|
|
1049
|
+
get: function () { return _vesium_shared[k]; }
|
|
1044
1050
|
});
|
|
1045
1051
|
});
|
|
1046
1052
|
|