Skip to content

Commit

Permalink
fix(path): using appendData instead of setData for path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Oct 10, 2024
1 parent 247e119 commit e742715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tool/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e742715

Please sign in to comment.