@vesium/plot 1.0.1-beta.71 → 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 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.entities });
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)();