@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
|
@@ -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 =
|
|
139
|
+
const viewerSelectOptions = shallowRef([]);
|
|
140
140
|
|
|
141
141
|
const loadComments = async () => {
|
|
142
142
|
comments.value = await service.fetchTopicComments(props.project, props.topic);
|
package/src/utils/viewer.js
CHANGED
|
@@ -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) {
|