yuang-framework-ui-pc 1.1.9 → 1.1.10

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.
@@ -96,9 +96,7 @@ const _sfc_main = vue.defineComponent({
96
96
  };
97
97
  const fillTexts = (ctx, drawX, drawY, drawWidth, drawHeight) => {
98
98
  const ratio = util.getPixelRatio();
99
- const { color, fontSize, fontStyle, fontWeight, fontFamily } = util.getFont(
100
- props2.font
101
- );
99
+ const { color, fontSize, fontStyle, fontWeight, fontFamily } = util.getFont(props2.font);
102
100
  const mergedFontSize = fontSize * ratio;
103
101
  ctx.font = `${fontStyle} normal ${fontWeight} ${mergedFontSize}px/${drawHeight}px ${fontFamily}`;
104
102
  ctx.fillStyle = color;
@@ -108,11 +106,7 @@ const _sfc_main = vue.defineComponent({
108
106
  const content = props2.content;
109
107
  const contents = Array.isArray(content) ? content : [content];
110
108
  contents.forEach((item, index2) => {
111
- ctx.fillText(
112
- item ?? "",
113
- drawX,
114
- drawY + index2 * (mergedFontSize + props2.lineGap * ratio)
115
- );
109
+ ctx.fillText(item ?? "", drawX, drawY + index2 * (mergedFontSize + props2.lineGap * ratio));
116
110
  });
117
111
  };
118
112
  const render = () => {
@@ -156,13 +150,7 @@ const _sfc_main = vue.defineComponent({
156
150
  ctx.drawImage(img, drawX, drawY, drawWidth, drawHeight);
157
151
  ctx.restore();
158
152
  util.rotateWatermark(ctx, alternateRotateX, alternateRotateY, rotate);
159
- ctx.drawImage(
160
- img,
161
- alternateDrawX,
162
- alternateDrawY,
163
- drawWidth,
164
- drawHeight
165
- );
153
+ ctx.drawImage(img, alternateDrawX, alternateDrawY, drawWidth, drawHeight);
166
154
  updateStyle(canvas.toDataURL(), `${(gapX + markWidth) * SIZE}px`);
167
155
  };
168
156
  img.crossOrigin = "anonymous";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",
@@ -188,6 +188,6 @@
188
188
  "repository": "",
189
189
  "license": "",
190
190
  "dependencies": {
191
- "yuang-framework-ui-common": "^1.0.29"
191
+ "yuang-framework-ui-common": "^1.0.40"
192
192
  }
193
193
  }