@bimdata/bcf-components 6.4.8 → 6.5.1
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
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@mouseenter="highlightViewer(element.context)"
|
|
50
50
|
@mouseleave="unhighlightViewer(element.context)"
|
|
51
51
|
>
|
|
52
|
-
{{ `(${element.index}) ${element.name}` }}
|
|
52
|
+
{{ `(${element.index + 1}) ${element.name}` }}
|
|
53
53
|
</div>
|
|
54
54
|
</template>
|
|
55
55
|
</BIMDataDropdownList>
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
125
125
|
},
|
|
126
126
|
emis: ["comment-created", "comment-updated", "comment-deleted", "view-comment-snapshot"],
|
|
127
127
|
setup(props, { emit }) {
|
|
128
|
-
let
|
|
128
|
+
let windowOpenSub, windowCloseSub;
|
|
129
129
|
|
|
130
130
|
const $viewer = inject("$viewer", null);
|
|
131
131
|
|
|
@@ -143,6 +143,8 @@ export default {
|
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
const setCommentViewpoint = async () => {
|
|
146
|
+
viewerSelectOptions.value = getViewerOptions($viewer);
|
|
147
|
+
|
|
146
148
|
if (viewerSelectOptions.value.length === 1) {
|
|
147
149
|
await createViewpoint(viewerSelectOptions.value[0]);
|
|
148
150
|
} else if (viewerSelectOptions.value.length > 1) {
|
|
@@ -204,20 +206,18 @@ export default {
|
|
|
204
206
|
|
|
205
207
|
onMounted(() => {
|
|
206
208
|
if ($viewer) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
viewerSelectOptions.value = getViewerOptions($viewer);
|
|
213
|
-
});
|
|
209
|
+
const hideViewerSelect = () => {
|
|
210
|
+
viewerSelectVisible.value = false;
|
|
211
|
+
};
|
|
212
|
+
windowOpenSub = $viewer.globalContext.hub.on("window-open", hideViewerSelect);
|
|
213
|
+
windowCloseSub = $viewer.globalContext.hub.on("window-close", hideViewerSelect);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
|
|
217
217
|
onBeforeUnmount(() => {
|
|
218
218
|
if ($viewer) {
|
|
219
|
-
$viewer.globalContext.hub.off(
|
|
220
|
-
$viewer.globalContext.hub.off(
|
|
219
|
+
$viewer.globalContext.hub.off(windowOpenSub);
|
|
220
|
+
$viewer.globalContext.hub.off(windowCloseSub);
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
|
package/src/service.js
CHANGED
|
@@ -103,11 +103,11 @@ class Service {
|
|
|
103
103
|
downloadBlobAs(`${project.name}.bcf`, response);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
async exportBcfXLSX(project, topics) {
|
|
106
|
+
async exportBcfXLSX(project, topics, locale) {
|
|
107
107
|
const response = await this.apiClient.bcfApi.downloadBcfExportXlsx(
|
|
108
108
|
project.id,
|
|
109
109
|
undefined, // Format
|
|
110
|
-
|
|
110
|
+
locale,
|
|
111
111
|
topics.map((t) => t.guid).join(",")
|
|
112
112
|
);
|
|
113
113
|
downloadBlobAs(`${project.name}.xlsx`, response);
|
package/src/utils/viewer.js
CHANGED
|
@@ -13,14 +13,14 @@ export async function getViewerViewpoint(context) {
|
|
|
13
13
|
|
|
14
14
|
export function highlightViewer(context) {
|
|
15
15
|
const ctx = context.viewer.$viewer.localContext;
|
|
16
|
-
ctx.el.style.
|
|
17
|
-
ctx.el.style.
|
|
16
|
+
ctx.el.style.outlineOffset = "-2px";
|
|
17
|
+
ctx.el.style.outline = "2px solid var(--color-primary)";
|
|
18
18
|
ctx.el.style.opacity = ".85";
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export function unhighlightViewer(context) {
|
|
22
22
|
const ctx = context.viewer.$viewer.localContext;
|
|
23
|
-
ctx.el.style.
|
|
24
|
-
ctx.el.style.
|
|
23
|
+
ctx.el.style.outlineOffset = "";
|
|
24
|
+
ctx.el.style.outline = "";
|
|
25
25
|
ctx.el.style.opacity = "";
|
|
26
26
|
}
|