diff --git a/src/tool/path.ts b/src/tool/path.ts index 76c4d099..a8569494 100644 --- a/src/tool/path.ts +++ b/src/tool/path.ts @@ -389,7 +389,7 @@ function createPathOptions(str: string, opts: SVGPathOption): InnerSVGPathOption const innerOpts: InnerSVGPathOption = extend({}, opts); innerOpts.buildPath = function (path: PathProxy | CanvasRenderingContext2D) { if (isPathProxy(path)) { - path.setData(pathProxy.data); + path.appendPath(pathProxy); // Svg and vml renderer don't have context const ctx = path.getContext(); if (ctx) {