@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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +2 -1
- 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 +2 -1
- 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)();
|
|
@@ -580,6 +580,7 @@ function useRender(plots, current, getCurrentTime) {
|
|
|
580
580
|
};
|
|
581
581
|
(0, vue.watch)(current, (plot, previous) => {
|
|
582
582
|
previous && update(previous);
|
|
583
|
+
plot && !plot.defining && update(plot);
|
|
583
584
|
});
|
|
584
585
|
(0, vesium.useCesiumEventListener)(() => plots.value.map((item) => item.definitionChanged), (plot, key) => {
|
|
585
586
|
if ([
|