diff --git a/.changeset/two-parrots-film.md b/.changeset/two-parrots-film.md new file mode 100644 index 000000000..b4018a09b --- /dev/null +++ b/.changeset/two-parrots-film.md @@ -0,0 +1,5 @@ +--- +'@antv/g-plugin-canvas-path-generator': patch +--- + +fix: `path` elements are drawn incorrectly after using `markerStartOffset` (#1760) diff --git a/demo/issues/issue-1760.html b/demo/issues/issue-1760.html new file mode 100644 index 000000000..4b4a1006f --- /dev/null +++ b/demo/issues/issue-1760.html @@ -0,0 +1,92 @@ + + + + + + issue-1760 + + + + +
+ + + + + diff --git a/package.json b/package.json index 5c9b7630b..b90d300e5 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,6 @@ "get-pixels": "3.3.3", "git-contributor": "~1.0.11", "hammerjs": "^2.0.8", - "http-server": "^14.1.1", "husky": "^7.0.4", "is-ci": "2.0.0", "jest": "^29.7.0", diff --git a/packages/g-plugin-canvas-path-generator/src/paths/Path.ts b/packages/g-plugin-canvas-path-generator/src/paths/Path.ts index f95cf0918..95189f95b 100644 --- a/packages/g-plugin-canvas-path-generator/src/paths/Path.ts +++ b/packages/g-plugin-canvas-path-generator/src/paths/Path.ts @@ -54,7 +54,6 @@ export function generatePath( // Use start marker offset if (useStartOffset) { context.moveTo(params[1] + startOffsetX, params[2] + startOffsetY); - context.lineTo(params[1], params[2]); } else { context.moveTo(params[1], params[2]); }