@vesium/plot 1.0.1-beta.70 → 1.0.1-beta.71

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 CHANGED
@@ -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 plot = entity.plot;
719
- if (plot.defining) return;
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 = plot.sampled.getValue(getCurrentTime());
723
+ const packable = feature.sampled.getValue(getCurrentTime());
724
724
  skeleton.onDrag?.({
725
725
  viewer: viewer.value,
726
- sampled: plot.sampled,
726
+ feature,
727
+ sampled: feature.sampled,
727
728
  packable,
728
- active: current.value === plot,
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 plot = entity.plot;
754
+ const feature = entity.plot;
754
755
  const skeleton = entity.skeleton;
755
756
  const index = entity.index;
756
- const packable = plot.sampled.getValue(getCurrentTime());
757
+ const packable = feature.sampled.getValue(getCurrentTime());
757
758
  skeleton.onKeyPressed?.({
758
759
  viewer: viewer.value,
759
- sampled: plot.sampled,
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 plot = entity.plot;
779
+ const feature = entity.plot;
778
780
  const skeleton = entity.skeleton;
779
781
  const index = entity.index;
780
- const packable = plot.sampled.getValue(getCurrentTime());
782
+ const packable = feature.sampled.getValue(getCurrentTime());
781
783
  skeleton.onLeftClick?.({
782
784
  viewer: viewer.value,
783
- sampled: plot.sampled,
785
+ feature,
786
+ sampled: feature.sampled,
784
787
  packable,
785
- active: current.value === plot,
786
- defining: plot.defining,
788
+ active: current.value === feature,
789
+ defining: feature.defining,
787
790
  index,
788
791
  event
789
792
  });