Skip to content

Commit

Permalink
Merge pull request #394 from VisActor/fix/area-stroke-top
Browse files Browse the repository at this point in the history
fix: fix the issue of area stroke, closed #392
  • Loading branch information
neuqzxy authored Aug 29, 2023
2 parents 17ce4e4 + 90fa8cf commit ac5f490
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions common/changes/@visactor/vrender/develop_2023-08-29-07-53.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vrender",
"comment": "fix: fix the issue of area stroke, closed #392",
"type": "patch"
}
],
"packageName": "@visactor/vrender"
}
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export class DefaultCanvasAreaRender implements IGraphicRender {
if (strokeCb) {
strokeCb(context, attribute, defaultAttribute);
} else {
const { stroke } = attribute;
const { stroke = defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke } = attribute;
if (isArray(stroke) && (stroke[0] || stroke[2]) && stroke[1] === false) {
context.beginPath();
drawSegments(
Expand Down

0 comments on commit ac5f490

Please sign in to comment.