jack 1 месяц назад
Родитель
Сommit
6f08afe0ea

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

@@ -32,7 +32,7 @@
               v-if="elementInfo.pattern"
               :width="elementInfo.width"
               :height="elementInfo.height"
-              :id="`base-pattern-${elementInfo.id}`" 
+              :id="`ebase-pattern-${elementInfo.id}`" 
               :src="elementInfo.pattern"
             />
             <GradientDefs
@@ -88,7 +88,7 @@ const props = defineProps<{
 const { theme } = storeToRefs(useSlidesStore())
 
 const element = computed(() => props.elementInfo)
-const { fill } = useElementFill(element, 'base')
+const { fill } = useElementFill(element, 'ebase')
 
 const outline = computed(() => props.elementInfo.outline)
 const { outlineWidth, outlineColor, strokeDashArray } = useElementOutline(outline)

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

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