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

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.mjs CHANGED
@@ -489,7 +489,7 @@ function useRender(plots, current, getCurrentTime) {
489
489
  const primitiveCollection = usePrimitive(new PrimitiveCollection());
490
490
  const groundPrimitiveCollection = usePrimitive(new PrimitiveCollection(), { collection: "ground" });
491
491
  const dataSource = useDataSource(new CustomDataSource());
492
- const entityScope = useEntityScope({ collection: () => dataSource.value.entities });
492
+ const entityScope = useEntityScope({ collection: () => dataSource.value?.entities });
493
493
  const primitiveScope = usePrimitiveScope({ collection: () => primitiveCollection.value });
494
494
  const groundPrimitiveScope = usePrimitiveScope({ collection: () => groundPrimitiveCollection.value });
495
495
  const mouseCartesian = shallowRef();
@@ -551,6 +551,7 @@ function useRender(plots, current, getCurrentTime) {
551
551
  };
552
552
  watch(current, (plot, previous) => {
553
553
  previous && update(previous);
554
+ plot && !plot.defining && update(plot);
554
555
  });
555
556
  useCesiumEventListener(() => plots.value.map((item) => item.definitionChanged), (plot, key) => {
556
557
  if ([