From ad55cb72d4a91d23e9b34114f558dcf0864bbbb8 Mon Sep 17 00:00:00 2001 From: Gaelle Date: Wed, 17 Jun 2026 10:31:01 +0200 Subject: [PATCH 1/3] add fragments viewer btn --- .../specific/models/models-table/columns.js | 4 +-- .../model-actions-cell/ModelActionsCell.scss | 34 +++++++++++++++++- .../model-actions-cell/ModelActionsCell.vue | 21 ++++++++++- .../model-actions-cell/ViewerButton.vue | 36 +++++++++---------- src/config/viewer.js | 12 ++++--- 5 files changed, 80 insertions(+), 27 deletions(-) diff --git a/src/components/specific/models/models-table/columns.js b/src/components/specific/models/models-table/columns.js index 940e6f7e4..f5e8d8286 100644 --- a/src/components/specific/models/models-table/columns.js +++ b/src/components/specific/models/models-table/columns.js @@ -33,7 +33,7 @@ export default [ { id: "lastupdate", text: "t.modifiedOn", - width: "160px", + width: "140px", align: "center", }, { @@ -45,6 +45,6 @@ export default [ { id: "actions", label: " ", - width: "200px", + width: "220px", }, ]; diff --git a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss index 962de3cd0..eb47a749f 100644 --- a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss +++ b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss @@ -3,7 +3,39 @@ display: flex; justify-content: flex-end; align-items: center; - gap: calc(var(--spacing-unit) * 3 / 2); + gap: var(--spacing-unit); + + .separator { + width: 1px; + height: 30px; + background-color: var(--color-primary); + flex-shrink: 0; + } + + .viewer-fragments { + position: relative; + &:deep(.bimdata-btn) { + display: flex; + flex-direction: column; + background-color: #fef6df; + & > span { + line-height: 1; + } + } + .beta-label { + font-size: 8px; + } + ::before { + content: ""; + width: 8px; + height: 8px; + background: var(--color-secondary); + clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%); + position: absolute; + left: 4%; + top: 20%; + } + } &__btn { color: var(--color-granite-light); diff --git a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue index cbc5a64c2..202e501e4 100644 --- a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue +++ b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue @@ -90,6 +90,23 @@ /> + + @@ -37,23 +33,27 @@ import AppLink from "../../../app/app-link/AppLink.vue"; defineProps({ project: { type: Object, - required: true + required: true, }, model: { type: Object, - required: true + required: true, }, window: { type: String, - default: DEFAULT_WINDOW + default: DEFAULT_WINDOW, }, disabled: { type: Boolean, - default: false + default: false, }, text: { - type: String - } + type: String, + }, + color: { + type: String, + default: "granite", + }, }); diff --git a/src/config/viewer.js b/src/config/viewer.js index 59ff1b11e..6d18ef51d 100644 --- a/src/config/viewer.js +++ b/src/config/viewer.js @@ -16,7 +16,8 @@ const WINDOWS = Object.freeze({ IFC3D: "3d", PHOTOSPHERE: "photosphere", PLAN: "plan", - POINT_CLOUD: "pointCloud" + POINT_CLOUD: "pointCloud", + FRAGMENTS: "3d-fragments", }); /** @@ -32,9 +33,9 @@ const PLUGINS_CONFIG = { "anchor-synchronization": false, bcfManager: true, buildingMaker: true, - "drawing-tools" : true, + "drawing-tools": true, header: { - warnings: false + warnings: false, }, pdfExport: false, properties: { @@ -44,7 +45,7 @@ const PLUGINS_CONFIG = { split: true, structure: { export: true, - merge: true + merge: true, }, "structure-properties": { editProperties: true, @@ -56,8 +57,9 @@ const PLUGINS_CONFIG = { viewer3d: { enableDTX: true, }, + "viewer3d-fragments": true, "zone-editor": true, - "zone-editor-button": true + "zone-editor-button": true, }; export { AVAILABLE_PLUGINS, DEFAULT_WINDOW, PLUGINS_CONFIG, WINDOWS }; From 6531335e8486460b059cca835f2523c6c34f3e5b Mon Sep 17 00:00:00 2001 From: Gaelle Date: Wed, 17 Jun 2026 10:39:22 +0200 Subject: [PATCH 2/3] display viewer btn is model ready --- .../model-actions-cell/ModelActionsCell.scss | 6 +- .../model-actions-cell/ModelActionsCell.vue | 188 +++++++++--------- 2 files changed, 100 insertions(+), 94 deletions(-) diff --git a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss index eb47a749f..537e79f2a 100644 --- a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss +++ b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.scss @@ -3,7 +3,11 @@ display: flex; justify-content: flex-end; align-items: center; - gap: var(--spacing-unit); + gap: calc(var(--spacing-unit) / 2); + + .actions-btn { + gap: var(--spacing-unit); + } .separator { width: 1px; diff --git a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue index 202e501e4..1fd3c8108 100644 --- a/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue +++ b/src/components/specific/models/models-table/model-actions-cell/ModelActionsCell.vue @@ -1,111 +1,113 @@