Skip to content

Commit

Permalink
Merge pull request #1681 from VisActor/fix/area-connect
Browse files Browse the repository at this point in the history
fix: fix issue with area connect type
  • Loading branch information
neuqzxy authored Jan 15, 2025
2 parents 86d9998 + fce71d8 commit 1ebdb09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vrender-core",
"comment": "fix: fix issue with area connect type",
"type": "none"
}
],
"packageName": "@visactor/vrender-core"
}
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ export class DefaultCanvasAreaRender extends BaseRender<IArea> implements IGraph
const bottomPoints: IPointLike[] = [];
for (let i = topPoints.length - 1; i >= 0; i--) {
bottomPoints.push({
x: points[i].x1 ?? topPoints[i].x,
y: points[i].y1 ?? topPoints[i].y
x: topPoints[i].x1 ?? topPoints[i].x,
y: topPoints[i].y1 ?? topPoints[i].y
});
}
const topCache = calcLineCache(topPoints, curveType, { curveTension });
Expand Down

0 comments on commit 1ebdb09

Please sign in to comment.