@mptw/skylens-ui 1.4.74 → 1.4.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,7 @@ export default defineComponent({
137
137
  let clickSubscriber: Subscription | null = null;
138
138
  let popperInstance: PopperInstance | null = null;
139
139
 
140
- const watermarkImg = computed(() => '/assets/images/commons/watermark.svg')
140
+ const watermarkImg = computed(() => '/assets/images/commons/watermark-2.svg')
141
141
  const styleOption = computed(() => {
142
142
  return Object.assign({}, DEFAULT_STYLE, customStyle.value);
143
143
  });
@@ -344,14 +344,16 @@ export default defineComponent({
344
344
  ctx.fillRect(0, 0, canvas.width, canvas.height);
345
345
  ctx.drawImage(img, 0, 0);
346
346
 
347
- const matrix = new DOMMatrix();
348
- const pattern = ctx.createPattern(watermark, "repeat");
349
- if (!pattern) return "";
347
+ // const matrix = new DOMMatrix();
348
+ // const pattern = ctx.createPattern(watermark, "repeat");
349
+ // if (!pattern) return "";
350
350
 
351
- pattern.setTransform(matrix.rotate(-20).scale(0.5));
352
- ctx.globalAlpha = 0.05;
353
- ctx.fillStyle = pattern;
354
- ctx.fillRect(0, 0, canvas.width, canvas.height);
351
+ // pattern.setTransform(matrix.rotate(-20).scale(0.5));
352
+ // ctx.globalAlpha = 0.05;
353
+ // ctx.fillStyle = pattern;
354
+ // ctx.fillRect(0, 0, canvas.width, canvas.height);
355
+
356
+ ctx.drawImage(watermark, canvas.width - watermark.width - 12, canvas.height - watermark.height - 12);
355
357
 
356
358
  return canvas.toDataURL();
357
359
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.74",
4
+ "version": "1.4.75",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -0,0 +1,16 @@
1
+ <svg width="147" height="25" viewBox="0 0 147 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.3462 6.42338C12.9267 5.88707 12.3584 5.48638 11.6411 5.23055C10.9238 4.97164 10.2429 4.84219 9.60464 4.84219C9.22774 4.84219 8.84173 4.88842 8.44357 4.97781C8.0454 5.06719 7.67155 5.2059 7.31897 5.397C6.9664 5.58809 6.67765 5.84083 6.45577 6.15214C6.23389 6.46653 6.12447 6.84565 6.12447 7.29565C6.12447 8.01381 6.38891 8.56245 6.92081 8.94157C7.44967 9.32376 8.11835 9.6474 8.9238 9.91555C9.72925 10.1837 10.5985 10.4519 11.5256 10.72C12.4526 10.9912 13.3188 11.3704 14.1273 11.8635C14.9328 12.3567 15.6015 13.0194 16.1303 13.8454C16.6592 14.6745 16.9266 15.781 16.9266 17.1711C16.9266 18.4934 16.6835 19.6462 16.1972 20.6294C15.7109 21.6157 15.0544 22.4325 14.2276 23.0828C13.3979 23.7332 12.4374 24.214 11.3462 24.5284C10.252 24.8397 9.09705 25 7.88431 25C6.36155 25 4.94517 24.7658 3.64429 24.2942C2.34037 23.8226 1.12763 23.0613 0 22.0072L3.67772 17.9078C4.20659 18.6259 4.87526 19.1807 5.68375 19.5722C6.48921 19.9667 7.32505 20.1609 8.18522 20.1609C8.60466 20.1609 9.03018 20.1116 9.46178 20.0099C9.89338 19.9082 10.2794 19.7571 10.6228 19.5568C10.9663 19.3564 11.2399 19.0975 11.4496 18.7831C11.6593 18.4688 11.7657 18.0989 11.7657 17.6735C11.7657 16.9554 11.4952 16.3913 10.9541 15.9783C10.4131 15.5653 9.73229 15.2108 8.91468 14.918C8.09707 14.6283 7.21259 14.3355 6.26429 14.0427C5.31294 13.7529 4.43151 13.3615 3.6139 12.8683C2.79629 12.3752 2.11849 11.7248 1.57747 10.9204C1.03645 10.1128 0.765939 9.04944 0.765939 7.72716C0.765939 6.45112 1.01517 5.32919 1.5106 4.36753C2.00907 3.40587 2.66863 2.59833 3.4984 1.94797C4.32816 1.29762 5.28255 0.810624 6.36459 0.486989C7.44663 0.163354 8.56211 0 9.71101 0C11.0362 0 12.3158 0.1911 13.5529 0.570215C14.7899 0.952412 15.9054 1.59043 16.8993 2.48428L13.3462 6.42338Z" fill="#221714"/>
3
+ <path d="M13.3462 6.42338C12.9267 5.88707 12.3584 5.48638 11.6411 5.23055C10.9238 4.97164 10.2429 4.84219 9.60464 4.84219C9.22774 4.84219 8.84173 4.88842 8.44357 4.97781C8.0454 5.06719 7.67155 5.2059 7.31897 5.397C6.9664 5.58809 6.67765 5.84083 6.45577 6.15214C6.23389 6.46653 6.12447 6.84565 6.12447 7.29565C6.12447 8.01381 6.38891 8.56245 6.92081 8.94157C7.44967 9.32376 8.11835 9.6474 8.9238 9.91555C9.72925 10.1837 10.5985 10.4519 11.5256 10.72C12.4526 10.9912 13.3188 11.3704 14.1273 11.8635C14.9328 12.3567 15.6015 13.0194 16.1303 13.8454C16.6592 14.6745 16.9266 15.781 16.9266 17.1711C16.9266 18.4934 16.6835 19.6462 16.1972 20.6294C15.7109 21.6157 15.0544 22.4325 14.2276 23.0828C13.3979 23.7332 12.4374 24.214 11.3462 24.5284C10.252 24.8397 9.09705 25 7.88431 25C6.36155 25 4.94517 24.7658 3.64429 24.2942C2.34037 23.8226 1.12763 23.0613 0 22.0072L3.67772 17.9078C4.20659 18.6259 4.87526 19.1807 5.68375 19.5722C6.48921 19.9667 7.32505 20.1609 8.18522 20.1609C8.60466 20.1609 9.03018 20.1116 9.46178 20.0099C9.89338 19.9082 10.2794 19.7571 10.6228 19.5568C10.9663 19.3564 11.2399 19.0975 11.4496 18.7831C11.6593 18.4688 11.7657 18.0989 11.7657 17.6735C11.7657 16.9554 11.4952 16.3913 10.9541 15.9783C10.4131 15.5653 9.73229 15.2108 8.91468 14.918C8.09707 14.6283 7.21259 14.3355 6.26429 14.0427C5.31294 13.7529 4.43151 13.3615 3.6139 12.8683C2.79629 12.3752 2.11849 11.7248 1.57747 10.9204C1.03645 10.1128 0.765939 9.04944 0.765939 7.72716C0.765939 6.45112 1.01517 5.32919 1.5106 4.36753C2.00907 3.40587 2.66863 2.59833 3.4984 1.94797C4.32816 1.29762 5.28255 0.810624 6.36459 0.486989C7.44663 0.163354 8.56211 0 9.71101 0C11.0362 0 12.3158 0.1911 13.5529 0.570215C14.7899 0.952412 15.9054 1.59043 16.8993 2.48428L13.3462 6.42338Z" fill="white" fill-opacity="0.7"/>
4
+ <path d="M20.9678 0.609375H26.1348V10.4879L35.2471 0.609375H42.0037L31.5663 11.6623L42.8973 24.395H35.6787L26.1348 13.1078V24.3981H20.9678V0.609375Z" fill="#221714"/>
5
+ <path d="M20.9678 0.609375H26.1348V10.4879L35.2471 0.609375H42.0037L31.5663 11.6623L42.8973 24.395H35.6787L26.1348 13.1078V24.3981H20.9678V0.609375Z" fill="white" fill-opacity="0.7"/>
6
+ <path d="M50.454 14.2513L41.6396 0.609375H48.0681L53.0376 9.51394L58.3049 0.609375H64.4324L55.618 14.2513V24.3981H50.451V14.2513H50.454Z" fill="#221714"/>
7
+ <path d="M50.454 14.2513L41.6396 0.609375H48.0681L53.0376 9.51394L58.3049 0.609375H64.4324L55.618 14.2513V24.3981H50.451V14.2513H50.454Z" fill="white" fill-opacity="0.7"/>
8
+ <path d="M66.3535 0.609375H71.5236V19.5589H81.0978V24.3981H66.3535V0.609375Z" fill="#221714"/>
9
+ <path d="M66.3535 0.609375H71.5236V19.5589H81.0978V24.3981H66.3535V0.609375Z" fill="white" fill-opacity="0.7"/>
10
+ <path d="M84.1466 0.609375H100.082V5.44848H89.3136V9.88382H99.4836V14.7229H89.3136V19.562H100.678V24.4011H84.1436V0.609375H84.1466Z" fill="#221714"/>
11
+ <path d="M84.1466 0.609375H100.082V5.44848H89.3136V9.88382H99.4836V14.7229H89.3136V19.562H100.678V24.4011H84.1436V0.609375H84.1466Z" fill="white" fill-opacity="0.7"/>
12
+ <path d="M104.818 0.609375H111.843L121.815 17.1394H121.882V0.609375H127.049V24.3981H120.289L110.049 7.46426H109.982V24.3981H104.815V0.609375H104.818Z" fill="#221714"/>
13
+ <path d="M104.818 0.609375H111.843L121.815 17.1394H121.882V0.609375H127.049V24.3981H120.289L110.049 7.46426H109.982V24.3981H104.815V0.609375H104.818Z" fill="white" fill-opacity="0.7"/>
14
+ <path d="M143.42 6.42338C143 5.88707 142.432 5.48638 141.715 5.23055C140.997 4.97164 140.316 4.84219 139.675 4.84219C139.301 4.84219 138.912 4.88842 138.514 4.97781C138.116 5.06719 137.742 5.2059 137.389 5.397C137.037 5.58809 136.748 5.84083 136.526 6.15214C136.304 6.46653 136.195 6.84565 136.195 7.29565C136.195 8.01381 136.459 8.56245 136.988 8.94157C137.517 9.32376 138.186 9.6474 138.994 9.91555C139.8 10.1837 140.666 10.4519 141.596 10.72C142.523 10.9912 143.392 11.3704 144.198 11.8635C145.003 12.3567 145.672 13.0194 146.204 13.8454C146.733 14.6745 147 15.781 147 17.1711C147 18.4934 146.757 19.6462 146.271 20.6294C145.784 21.6157 145.128 22.4325 144.298 23.0828C143.471 23.7332 142.508 24.214 141.417 24.5284C140.322 24.8397 139.167 25 137.955 25C136.432 25 135.016 24.7658 133.712 24.2942C132.408 23.8226 131.195 23.0613 130.067 22.0072L133.745 17.9078C134.274 18.6259 134.943 19.1807 135.748 19.5722C136.554 19.9667 137.389 20.1609 138.25 20.1609C138.669 20.1609 139.095 20.1116 139.526 20.0099C139.958 19.9082 140.344 19.7571 140.684 19.5568C141.028 19.3564 141.301 19.0975 141.514 18.7831C141.724 18.4688 141.83 18.0989 141.83 17.6735C141.83 16.9554 141.56 16.3913 141.018 15.9783C140.477 15.5653 139.797 15.2108 138.979 14.918C138.161 14.6283 137.277 14.3355 136.329 14.0427C135.38 13.7529 134.496 13.3615 133.678 12.8683C132.861 12.3752 132.18 11.7248 131.642 10.9204C131.101 10.1128 130.83 9.04944 130.83 7.72716C130.83 6.45112 131.08 5.32919 131.575 4.36753C132.07 3.40587 132.733 2.59833 133.563 1.94797C134.393 1.29762 135.347 0.810624 136.429 0.486989C137.511 0.163354 138.626 0 139.775 0C141.101 0 142.38 0.1911 143.617 0.570215C144.854 0.952412 145.97 1.59043 146.964 2.48428L143.42 6.42338Z" fill="#221714"/>
15
+ <path d="M143.42 6.42338C143 5.88707 142.432 5.48638 141.715 5.23055C140.997 4.97164 140.316 4.84219 139.675 4.84219C139.301 4.84219 138.912 4.88842 138.514 4.97781C138.116 5.06719 137.742 5.2059 137.389 5.397C137.037 5.58809 136.748 5.84083 136.526 6.15214C136.304 6.46653 136.195 6.84565 136.195 7.29565C136.195 8.01381 136.459 8.56245 136.988 8.94157C137.517 9.32376 138.186 9.6474 138.994 9.91555C139.8 10.1837 140.666 10.4519 141.596 10.72C142.523 10.9912 143.392 11.3704 144.198 11.8635C145.003 12.3567 145.672 13.0194 146.204 13.8454C146.733 14.6745 147 15.781 147 17.1711C147 18.4934 146.757 19.6462 146.271 20.6294C145.784 21.6157 145.128 22.4325 144.298 23.0828C143.471 23.7332 142.508 24.214 141.417 24.5284C140.322 24.8397 139.167 25 137.955 25C136.432 25 135.016 24.7658 133.712 24.2942C132.408 23.8226 131.195 23.0613 130.067 22.0072L133.745 17.9078C134.274 18.6259 134.943 19.1807 135.748 19.5722C136.554 19.9667 137.389 20.1609 138.25 20.1609C138.669 20.1609 139.095 20.1116 139.526 20.0099C139.958 19.9082 140.344 19.7571 140.684 19.5568C141.028 19.3564 141.301 19.0975 141.514 18.7831C141.724 18.4688 141.83 18.0989 141.83 17.6735C141.83 16.9554 141.56 16.3913 141.018 15.9783C140.477 15.5653 139.797 15.2108 138.979 14.918C138.161 14.6283 137.277 14.3355 136.329 14.0427C135.38 13.7529 134.496 13.3615 133.678 12.8683C132.861 12.3752 132.18 11.7248 131.642 10.9204C131.101 10.1128 130.83 9.04944 130.83 7.72716C130.83 6.45112 131.08 5.32919 131.575 4.36753C132.07 3.40587 132.733 2.59833 133.563 1.94797C134.393 1.29762 135.347 0.810624 136.429 0.486989C137.511 0.163354 138.626 0 139.775 0C141.101 0 142.38 0.1911 143.617 0.570215C144.854 0.952412 145.97 1.59043 146.964 2.48428L143.42 6.42338Z" fill="white" fill-opacity="0.7"/>
16
+ </svg>