Skip to content

Commit

Permalink
fix(core): line getPath返回数据格式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
DymoneLewis committed Nov 26, 2024
1 parent 32d8e1c commit d165682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/model/edge/LineEdgeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class LineEdgeModel extends BaseEdgeModel {
}
getPath(points: Point[]): string {
const [start, end] = points
return `M ${start.x} ${start.y} L ${end.x} ${end.y}`
return `${start.x},${start.y} ${end.x},${end.y}`
}
getTextPosition(): Point {
return {
Expand Down

0 comments on commit d165682

Please sign in to comment.