@visactor/vrender-kits 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/dist/index.es.js +2 -1
  2. package/package.json +4 -4
package/dist/index.es.js CHANGED
@@ -4496,13 +4496,14 @@ function applyFillStyle(ctx, character, b) {
4496
4496
  }) : fillStyle, setTextStyle(ctx, character);
4497
4497
  }
4498
4498
  function applyStrokeStyle(ctx, character) {
4499
+ var _a, _b;
4499
4500
  const strokeStyle = character && character.stroke || defaultFormatting.stroke;
4500
4501
  if (!strokeStyle) return void (ctx.globalAlpha = 0);
4501
4502
  const {
4502
4503
  strokeOpacity = 1,
4503
4504
  opacity = 1
4504
4505
  } = character;
4505
- ctx.globalAlpha = strokeOpacity * opacity, ctx.lineWidth = character && "number" == typeof character.lineWidth ? character.lineWidth : 1, ctx.strokeStyle = strokeStyle, setTextStyle(ctx, character);
4506
+ ctx.globalAlpha = strokeOpacity * opacity, ctx.lineWidth = character && "number" == typeof character.lineWidth ? character.lineWidth : 1, ctx.setLineDash(null !== (_a = character.lineDash) && void 0 !== _a ? _a : []), ctx.lineDashOffset = null !== (_b = character.lineDashOffset) && void 0 !== _b ? _b : 0, ctx.strokeStyle = strokeStyle, setTextStyle(ctx, character);
4506
4507
  }
4507
4508
  function getStrByWithCanvas(desc, width, character, guessIndex, needTestLetter) {
4508
4509
  if (desc.length <= 1) return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-kits",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index-node.js",
@@ -44,7 +44,7 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@visactor/vutils": "~1.0.12",
47
- "@visactor/vrender-core": "1.1.4",
47
+ "@visactor/vrender-core": "1.1.5",
48
48
  "@resvg/resvg-js": "2.4.1",
49
49
  "roughjs": "4.6.6",
50
50
  "gifuct-js": "2.1.2",
@@ -69,9 +69,9 @@
69
69
  "vite": "3.2.6",
70
70
  "typescript": "4.9.5",
71
71
  "cross-env": "^7.0.3",
72
+ "@internal/bundler": "0.0.1",
72
73
  "@internal/ts-config": "0.0.1",
73
- "@internal/eslint-config": "0.0.1",
74
- "@internal/bundler": "0.0.1"
74
+ "@internal/eslint-config": "0.0.1"
75
75
  },
76
76
  "keywords": [
77
77
  "VisActor",