@bimdata/bcf-components 6.2.1-rc.1 → 6.2.1-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
|
@@ -348,9 +348,11 @@ export default {
|
|
|
348
348
|
Promise.all(
|
|
349
349
|
($viewer?.globalContext.localContexts ?? [])
|
|
350
350
|
.filter(ctx => ctx.viewer && ctx.loadedModels.length > 0)
|
|
351
|
-
.map(ctx =>
|
|
352
|
-
|
|
353
|
-
|
|
351
|
+
.map(async ctx => {
|
|
352
|
+
const viewpoint = ctx.getViewpoint();
|
|
353
|
+
viewpoint.snapshot = await ctx.viewer.getSnapshot();
|
|
354
|
+
viewpointsToCreate.value.push(viewpoint);
|
|
355
|
+
})
|
|
354
356
|
);
|
|
355
357
|
};
|
|
356
358
|
|
|
@@ -150,10 +150,12 @@ export default {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
const createViewpoint = async ({
|
|
154
|
-
unhighlightViewer(
|
|
153
|
+
const createViewpoint = async ({ context }) => {
|
|
154
|
+
unhighlightViewer(context);
|
|
155
155
|
viewerSelectVisible.value = false;
|
|
156
|
-
|
|
156
|
+
const vpt = context.getViewpoint();
|
|
157
|
+
vpt.snapshot = await context.viewer.getSnapshot();
|
|
158
|
+
viewpoint.value = vpt;
|
|
157
159
|
};
|
|
158
160
|
|
|
159
161
|
const deleteViewpoint = () => {
|
|
@@ -218,7 +218,9 @@ export default {
|
|
|
218
218
|
const createViewpoint = async ({ context }) => {
|
|
219
219
|
unhighlightViewer(context);
|
|
220
220
|
viewerSelectVisible.value = false;
|
|
221
|
-
|
|
221
|
+
const vpt = context.getViewpoint();
|
|
222
|
+
vpt.snapshot = await context.viewer.getSnapshot();
|
|
223
|
+
viewpoint.value = vpt;
|
|
222
224
|
};
|
|
223
225
|
|
|
224
226
|
const canEditComment = comment => {
|