Selaa lähdekoodia

feat: 形状池补充

pipipi-pikachu 5 vuotta sitten
vanhempi
commit
fee765a20c
2 muutettua tiedostoa jossa 77 lisäystä ja 5 poistoa
  1. 72 0
      src/configs/shapes.ts
  2. 5 5
      src/views/Editor/CanvasTool/ShapePool.vue

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 72 - 0
src/configs/shapes.ts


+ 5 - 5
src/views/Editor/CanvasTool/ShapePool.vue

@@ -7,11 +7,11 @@
           <div class="shape-content" @click="selectShape(shape)">
             <SvgWrapper 
               overflow="visible" 
-              width="20"
-              height="20"
+              width="18"
+              height="18"
             >
               <g 
-                :transform="`scale(${20 / shape.viewBox}, ${20 / shape.viewBox}) translate(0,0) matrix(1,0,0,1,0,0)`"
+                :transform="`scale(${18 / shape.viewBox}, ${18 / shape.viewBox}) translate(0,0) matrix(1,0,0,1,0,0)`"
               >
                 <path 
                   class="shape-path"
@@ -56,8 +56,8 @@ export default defineComponent({
 
 <style lang="scss" scoped>
 .shape-pool {
-  width: 360px;
-  max-height: 500px;
+  width: 340px;
+  max-height: 540px;
   overflow: auto;
   margin-bottom: -12px;
   margin-right: -12px;