@bimdata/bcf-components 6.1.0-rc.1 → 6.1.0-rc.2
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/package.json
CHANGED
|
@@ -346,9 +346,11 @@ export default {
|
|
|
346
346
|
|
|
347
347
|
const createViewpoints = () => {
|
|
348
348
|
Promise.all(
|
|
349
|
-
($viewer?.globalContext.getViewers() ?? [])
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
($viewer?.globalContext.getViewers() ?? [])
|
|
350
|
+
.filter(viewer => viewer.getLoadedModels().length > 0)
|
|
351
|
+
.map(viewer =>
|
|
352
|
+
viewer.getViewpoint().then(viewpoint => viewpointsToCreate.value.push(viewpoint))
|
|
353
|
+
)
|
|
352
354
|
);
|
|
353
355
|
};
|
|
354
356
|
|