@bimdata/bcf-components 6.2.1-rc.3 → 6.2.1-rc.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bimdata/bcf-components",
3
- "version": "6.2.1-rc.3",
3
+ "version": "6.2.1-rc.4",
4
4
  "files": [
5
5
  "src",
6
6
  "vue3-plugin.js"
@@ -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.el.style.boxSizing = "border-box";
9
- context.el.style.border = "2px solid var(--color-primary)";
10
- context.el.style.opacity = ".85";
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.el.style.boxSizing = "";
15
- context.el.style.border = "";
16
- context.el.style.opacity = "";
15
+ const el = context.viewer.$viewer.localContext.el;
16
+ el.style.boxSizing = "";
17
+ el.style.border = "";
18
+ el.style.opacity = "";
17
19
  }