jack пре 1 месец
родитељ
комит
4fa7d75dd4

+ 2 - 0
src/views/components/element/ShapeElement/BaseShapeElement.vue

@@ -30,6 +30,8 @@
           <defs>
           <defs>
             <PatternDefs
             <PatternDefs
               v-if="elementInfo.pattern"
               v-if="elementInfo.pattern"
+              :width="elementInfo.width"
+              :height="elementInfo.height"
               :id="`base-pattern-${elementInfo.id}`" 
               :id="`base-pattern-${elementInfo.id}`" 
               :src="elementInfo.pattern"
               :src="elementInfo.pattern"
             />
             />

+ 2 - 2
src/views/components/element/ShapeElement/PatternDefs.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
-  <pattern :id="id" patternContentUnits="objectBoundingBox" patternUnits="objectBoundingBox" width="1" height="1">
-    <image :href="src" width="1" height="1" preserveAspectRatio="xMidYMid slice" />
+  <pattern :id="id" patternContentUnits="objectBoundingBox" patternUnits="objectBoundingBox" :width="width" :height="height">
+    <image :href="src" :width="width" :height="height" preserveAspectRatio="xMidYMid slice" />
   </pattern>
   </pattern>
 </template>
 </template>