+
-
+
diff --git a/src/web/views/Components/ModelPreview/ModelPreview.vue b/src/web/views/Components/ModelPreview/ModelPreview.vue
index 0c8f2b4a..ff82c4bd 100644
--- a/src/web/views/Components/ModelPreview/ModelPreview.vue
+++ b/src/web/views/Components/ModelPreview/ModelPreview.vue
@@ -6,7 +6,12 @@
-
+
@@ -19,9 +24,15 @@
+
@@ -34,6 +45,8 @@
<BIMDataModelPreview
:type="{{ type }}"
+ :width="{{ width }}"
+ :height="{{ height }}"
:previewUrl="{{ imgUrl }}"
/>
@@ -77,7 +90,8 @@ export default {
data() {
return {
// Parameters
- size: "300px",
+ width: 300,
+ height: 300,
type: "3d",
// Data
propsData,
diff --git a/src/web/views/Components/ModelPreview/props-data.js b/src/web/views/Components/ModelPreview/props-data.js
index 5d5176a7..08a7af9b 100644
--- a/src/web/views/Components/ModelPreview/props-data.js
+++ b/src/web/views/Components/ModelPreview/props-data.js
@@ -8,10 +8,16 @@ export default [
"The type of preview: '2d' or '3d'"
],
[
- "size",
- "String",
- "205px",
- "The size (width, height) of the preview"
+ "width",
+ "Number",
+ "240",
+ "Width of the preview in pixels"
+ ],
+ [
+ "height",
+ "Number",
+ "240",
+ "Height of the preview in pixels"
],
[
"previewUrl",