Browse Source

调整样式

caner 1 year ago
parent
commit
0165cbdad3
2 changed files with 6 additions and 6 deletions
  1. 4 4
      index/index.js
  2. 2 2
      index/index.wxss

+ 4 - 4
index/index.js

@@ -13,9 +13,9 @@ Page({
       },
     ],
     dicTypePath: {
-      2: 'M174.087591,0.514560141 C221.082581,-0.0605323943 258.036942,16.4651639 285.471873,39.3811671 C324.097037,71.644211 343.867653,116.568208 346.20662,144.24652 C350.19951,191.496617 349.953227,225.979727 337.927395,239.136244 C331.547559,246.11592 292.534012,273.500015 156.081032,273.500015 C124.046067,273.249295 88.3649706,267.889441 59.9639811,260.374988 C31.6787425,252.891161 10.4895126,243.339368 7.76631374,234.485863 C0.979316969,215.637975 -3.35222841,169.181427 5.40075043,132.103662 C11.4231177,109.216448 30.4968016,66.3255379 69.7184967,35.7271113 C95.2877064,15.7795392 129.422591,1.06113985 174.087591,0.514560141 Z',
-      1: 'M74.5687033,39.0988067 C103.126959,16.3660403 140.601506,-0.229902063 187.512565,0.524738835 C236.745333,1.31672823 274.595793,17.4503114 302.795795,39.6405029 C342.604241,70.9652189 363.185816,114.34989 369.416086,143.644689 C374.911511,169.484239 376.854407,192.671434 374.545889,210.933889 C372.400553,227.905431 366.593006,240.62113 356.481554,247.164644 C356.083446,247.422274 355.666331,247.696637 355.22572,247.986461 C343.683165,255.57889 315.933614,273.789334 190.568062,279.499721 C98.8356514,278.682689 21.1251422,255.234726 10.5947186,240.294075 C-0.7422251,224.209125 -2.04541832,184.937269 4.21868782,146.408753 C8.01362465,123.067308 30.8546268,73.8958162 74.5687033,39.0988067 Z',
-      0: 'M186.999991,0.5 C237.942268,0.5 284.114101,20.9396581 317.773259,54.0709856 C351.489638,87.2586372 372.650842,133.181116 373.474962,184.04672 L373.474962,184.04672 L373.49,186.000085 L373.499915,244.5 L0.499991046,244.5 L0.499991046,186.002992 C0.806967785,134.709026 21.789529,88.3201013 55.5288158,54.7612385 C89.2466165,21.2237469 135.704937,0.5 186.999991,0.5 Z'
+      2: 'M174.562965,0.513209692 C221.690071,-0.00711210434 258.74832,14.9447077 286.260378,35.6782336 C324.994127,64.8686054 344.820323,105.514125 347.165866,130.556406 C351.169981,173.306492 350.923005,204.505495 338.863366,216.40901 C332.465594,222.723955 293.34237,247.50004 156.505785,247.50004 C124.380762,247.273198 88.5993566,242.423806 60.1185245,235.625016 C31.7537688,228.853934 10.5049705,220.211836 7.77411598,212.201523 C0.968039201,195.148672 -3.37568328,153.116559 5.40190246,119.570011 C11.4412002,98.8625327 30.5685051,60.0564728 69.9004626,32.3721832 C95.541554,14.3243807 129.772401,1.00773417 174.562965,0.513209692 Z',
+      1: 'M69.4545878,34.6718448 C96.0319839,14.5464002 130.907219,-0.146079872 174.56443,0.522007913 C220.382312,1.22316053 255.607386,15.5063115 281.851378,35.1514114 C318.898628,62.8833568 338.052622,101.292047 343.850748,127.226896 C348.964999,150.102793 350.773132,170.630546 348.624737,186.798399 C346.628206,201.8234 341.223483,213.080679 331.813382,218.873688 C331.442887,219.101769 331.054704,219.344664 330.644655,219.601247 C319.902715,226.322867 294.07793,242.444674 177.407992,247.500112 C92.0383303,246.776789 19.7179823,226.018176 9.91797058,212.791135 C-0.632619328,198.551039 -1.84542038,163.783447 3.98419444,129.673937 C7.51590663,109.009626 28.7726098,65.4778309 69.4545878,34.6718448 Z',
+      0: 'M175.000036,0.5 C222.664535,0.5 265.865535,21.1909654 297.358963,54.7296453 C328.90593,88.3253418 348.705559,134.812441 349.476653,186.303442 L349.490723,188.280824 L349.5,247.5 L0.5,247.5 L0.5,188.283766 C0.787224943,136.359137 20.4197058,89.3998566 51.9881066,55.4283849 C83.5364037,21.4785471 127.005458,0.5 175.000036,0.5 Z'
     }
   },
   drawCanvas: new DrawCanvas(),
@@ -35,7 +35,7 @@ Page({
     const width = res[0].width
     const height = res[0].height
     const canvas = res[0].node
-    this.drawCanvas._init({ width, height, canvas, dicTypePath: this.data.dicTypePath[2] })
+    this.drawCanvas._init({ width, height, canvas, dicTypePath: this.data.dicTypePath[0] })
   },
 
   start() {

+ 2 - 2
index/index.wxss

@@ -1,7 +1,7 @@
 canvas{
   margin: 0 auto;
-  width: 698rpx;
-  height: 548rpx;
+  width: 700rpx;
+  height: 496rpx;
 }
 .tool {
   display: flex;