@bimdata/bcf-components 6.2.1-rc.3 → 6.2.1-rc.5
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 +1 -1
- package/src/components/bcf-topic-form/BcfTopicForm.vue +1 -1
- package/src/components/bcf-topic-overview/bcf-topic-comments/BcfTopicComments.vue +1 -1
- package/src/components/bcf-topic-overview/bcf-topic-comments/topic-comment/TopicComment.vue +1 -1
- package/src/utils/viewer.js +9 -7
package/package.json
CHANGED
|
@@ -350,7 +350,7 @@ export default {
|
|
|
350
350
|
.filter(ctx => ctx.viewer && ctx.loadedModels.length > 0)
|
|
351
351
|
.map(async ctx => {
|
|
352
352
|
const viewpoint = ctx.getViewpoint();
|
|
353
|
-
viewpoint.snapshot = await ctx.
|
|
353
|
+
viewpoint.snapshot = await ctx.getSnapshot();
|
|
354
354
|
viewpointsToCreate.value.push(viewpoint);
|
|
355
355
|
})
|
|
356
356
|
);
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
unhighlightViewer(context);
|
|
155
155
|
viewerSelectVisible.value = false;
|
|
156
156
|
const vpt = context.getViewpoint();
|
|
157
|
-
vpt.snapshot = await context.
|
|
157
|
+
vpt.snapshot = await context.getSnapshot();
|
|
158
158
|
viewpoint.value = vpt;
|
|
159
159
|
};
|
|
160
160
|
|
|
@@ -219,7 +219,7 @@ export default {
|
|
|
219
219
|
unhighlightViewer(context);
|
|
220
220
|
viewerSelectVisible.value = false;
|
|
221
221
|
const vpt = context.getViewpoint();
|
|
222
|
-
vpt.snapshot = await context.
|
|
222
|
+
vpt.snapshot = await context.getSnapshot();
|
|
223
223
|
viewpoint.value = vpt;
|
|
224
224
|
};
|
|
225
225
|
|
package/src/utils/viewer.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
export function getViewerOptions($viewer) {
|
|
2
2
|
return $viewer.globalContext.localContexts
|
|
3
|
-
.filter(ctx => ctx.viewer)
|
|
3
|
+
.filter(ctx => ctx.viewer && ctx.loadedModels.length > 0)
|
|
4
4
|
.map((ctx, i) => ({ key: ctx.id, index: i, name: ctx.viewer.$plugin.name, context: ctx }));
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export function highlightViewer(context) {
|
|
8
|
-
context.
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const el = context.viewer.$viewer.localContext.el;
|
|
9
|
+
el.style.boxSizing = "border-box";
|
|
10
|
+
el.style.border = "2px solid var(--color-primary)";
|
|
11
|
+
el.style.opacity = ".85";
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export function unhighlightViewer(context) {
|
|
14
|
-
context.
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const el = context.viewer.$viewer.localContext.el;
|
|
16
|
+
el.style.boxSizing = "";
|
|
17
|
+
el.style.border = "";
|
|
18
|
+
el.style.opacity = "";
|
|
17
19
|
}
|