From f39a8fbc96586ab008cf0b214c8aa522230563cd Mon Sep 17 00:00:00 2001 From: NicolasRichel Date: Wed, 3 Aug 2022 16:11:15 +0200 Subject: [PATCH] PATCH: feat: add backgroundColor prop to bimdata-model-preview --- .../BIMDataModelPreview/BIMDataModelPreview.vue | 10 +++++++++- .../BIMDataModelPreview/Preview2D.vue | 1 - .../BIMDataModelPreview/Preview3D.vue | 1 - .../views/Components/ModelPreview/ModelPreview.vue | 13 +++++++++++-- src/web/views/Components/ModelPreview/props-data.js | 6 ++++++ 5 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue b/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue index ad54241d..ec90249f 100644 --- a/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue +++ b/src/BIMDataComponents/BIMDataModelPreview/BIMDataModelPreview.vue @@ -2,7 +2,11 @@ @@ -36,6 +40,10 @@ export default { defaultUrl: { type: String, }, + backgroundColor: { + type: String, + default: "var(--color-silver-light)", + }, }, computed: { previewComponent() { diff --git a/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue b/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue index 4669b617..3228c430 100644 --- a/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue +++ b/src/BIMDataComponents/BIMDataModelPreview/Preview2D.vue @@ -82,7 +82,6 @@ export default { .preview-2d { position: relative; height: 100%; - background-color: var(--color-silver-light); user-select: none; overflow: hidden; diff --git a/src/BIMDataComponents/BIMDataModelPreview/Preview3D.vue b/src/BIMDataComponents/BIMDataModelPreview/Preview3D.vue index 45e6514b..bf835196 100644 --- a/src/BIMDataComponents/BIMDataModelPreview/Preview3D.vue +++ b/src/BIMDataComponents/BIMDataModelPreview/Preview3D.vue @@ -55,7 +55,6 @@ export default {