@bimdata/bcf-components 6.5.1 → 6.5.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bimdata/bcf-components",
3
- "version": "6.5.1",
3
+ "version": "6.5.2",
4
4
  "files": [
5
5
  "src",
6
6
  "vue3-plugin.js"
@@ -94,7 +94,7 @@
94
94
  </template>
95
95
 
96
96
  <script>
97
- import { onMounted, inject, ref, watch, onBeforeUnmount } from "vue";
97
+ import { onMounted, inject, ref, watch, onBeforeUnmount, shallowRef } from "vue";
98
98
  import service from "../../../service.js";
99
99
  import { getViewerOptions, getViewerViewpoint, highlightViewer, unhighlightViewer } from "../../../utils/viewer.js";
100
100
 
@@ -136,7 +136,7 @@ export default {
136
136
  const text = ref("");
137
137
  const viewpoint = ref(null);
138
138
  const viewerSelectVisible = ref(false);
139
- const viewerSelectOptions = ref([]);
139
+ const viewerSelectOptions = shallowRef([]);
140
140
 
141
141
  const loadComments = async () => {
142
142
  comments.value = await service.fetchTopicComments(props.project, props.topic);
@@ -1,7 +1,9 @@
1
+ import { markRaw } from "vue";
2
+
1
3
  export function getViewerOptions($viewer) {
2
4
  return $viewer.globalContext.localContexts
3
5
  .filter(ctx => ctx.viewer && ctx.loadedModels.length > 0)
4
- .map((ctx, i) => ({ key: ctx.id, index: i, name: ctx.viewer.$plugin.name, context: ctx }));
6
+ .map((ctx, i) => ({ key: ctx.id, index: i, name: ctx.viewer.$plugin.name, context: markRaw(ctx) }));
5
7
  }
6
8
 
7
9
  export async function getViewerViewpoint(context) {