@vesium/plot 1.0.1-beta.70 → 1.0.1-beta.73
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.cjs +17 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +17 -14
- 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 +17 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -518,7 +518,7 @@ function useRender(plots, current, getCurrentTime) {
|
|
|
518
518
|
const primitiveCollection = (0, vesium.usePrimitive)(new cesium.PrimitiveCollection());
|
|
519
519
|
const groundPrimitiveCollection = (0, vesium.usePrimitive)(new cesium.PrimitiveCollection(), { collection: "ground" });
|
|
520
520
|
const dataSource = (0, vesium.useDataSource)(new cesium.CustomDataSource());
|
|
521
|
-
const entityScope = (0, vesium.useEntityScope)({ collection: () => dataSource.value
|
|
521
|
+
const entityScope = (0, vesium.useEntityScope)({ collection: () => dataSource.value?.entities });
|
|
522
522
|
const primitiveScope = (0, vesium.usePrimitiveScope)({ collection: () => primitiveCollection.value });
|
|
523
523
|
const groundPrimitiveScope = (0, vesium.usePrimitiveScope)({ collection: () => groundPrimitiveCollection.value });
|
|
524
524
|
const mouseCartesian = (0, vue.shallowRef)();
|
|
@@ -715,17 +715,18 @@ function useSkeleton(plots, current, getCurrentTime) {
|
|
|
715
715
|
onCleanup(graphicEvent.add("global", "DRAG", ({ event, pick, dragging, lockCamera }) => {
|
|
716
716
|
if (pick.id instanceof PlotSkeletonEntity && entityScope.scope.has(pick.id)) {
|
|
717
717
|
const entity = pick.id;
|
|
718
|
-
const
|
|
719
|
-
if (
|
|
718
|
+
const feature = entity.plot;
|
|
719
|
+
if (feature.defining) return;
|
|
720
720
|
activeEntity.value = entity;
|
|
721
721
|
const skeleton = entity.skeleton;
|
|
722
722
|
const index = entity.index;
|
|
723
|
-
const packable =
|
|
723
|
+
const packable = feature.sampled.getValue(getCurrentTime());
|
|
724
724
|
skeleton.onDrag?.({
|
|
725
725
|
viewer: viewer.value,
|
|
726
|
-
|
|
726
|
+
feature,
|
|
727
|
+
sampled: feature.sampled,
|
|
727
728
|
packable,
|
|
728
|
-
active: current.value ===
|
|
729
|
+
active: current.value === feature,
|
|
729
730
|
index,
|
|
730
731
|
event,
|
|
731
732
|
dragging,
|
|
@@ -750,13 +751,14 @@ function useSkeleton(plots, current, getCurrentTime) {
|
|
|
750
751
|
(0, _vueuse_core.onKeyStroke)((keyEvent) => {
|
|
751
752
|
if (activeEntity.value) {
|
|
752
753
|
const entity = activeEntity.value;
|
|
753
|
-
const
|
|
754
|
+
const feature = entity.plot;
|
|
754
755
|
const skeleton = entity.skeleton;
|
|
755
756
|
const index = entity.index;
|
|
756
|
-
const packable =
|
|
757
|
+
const packable = feature.sampled.getValue(getCurrentTime());
|
|
757
758
|
skeleton.onKeyPressed?.({
|
|
758
759
|
viewer: viewer.value,
|
|
759
|
-
|
|
760
|
+
feature,
|
|
761
|
+
sampled: feature.sampled,
|
|
760
762
|
packable,
|
|
761
763
|
index,
|
|
762
764
|
keyEvent
|
|
@@ -774,16 +776,17 @@ function useSkeleton(plots, current, getCurrentTime) {
|
|
|
774
776
|
if (pick.id instanceof PlotSkeletonEntity && entityScope.scope.has(pick.id)) {
|
|
775
777
|
const entity = pick.id;
|
|
776
778
|
activeEntity.value = entity;
|
|
777
|
-
const
|
|
779
|
+
const feature = entity.plot;
|
|
778
780
|
const skeleton = entity.skeleton;
|
|
779
781
|
const index = entity.index;
|
|
780
|
-
const packable =
|
|
782
|
+
const packable = feature.sampled.getValue(getCurrentTime());
|
|
781
783
|
skeleton.onLeftClick?.({
|
|
782
784
|
viewer: viewer.value,
|
|
783
|
-
|
|
785
|
+
feature,
|
|
786
|
+
sampled: feature.sampled,
|
|
784
787
|
packable,
|
|
785
|
-
active: current.value ===
|
|
786
|
-
defining:
|
|
788
|
+
active: current.value === feature,
|
|
789
|
+
defining: feature.defining,
|
|
787
790
|
index,
|
|
788
791
|
event
|
|
789
792
|
});
|