update at 2026-02-14 11:59:00
This commit is contained in:
@@ -565,7 +565,8 @@ function buildSankeyLayout(links, width, height, renderOptions) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const leftX = padding;
|
const leftX = padding;
|
||||||
const rightX = Math.max(padding + nodeWidth + 80, width - padding - nodeWidth);
|
// 右侧节点贴齐预览窗右边界(x + nodeWidth = width),与 Web 视觉保持一致。
|
||||||
|
const rightX = Math.max(leftX + nodeWidth + 40, width - nodeWidth);
|
||||||
const columnStep = maxDepth > 0 ? (rightX - leftX) / maxDepth : 0;
|
const columnStep = maxDepth > 0 ? (rightX - leftX) / maxDepth : 0;
|
||||||
|
|
||||||
const nodePositionMap = {};
|
const nodePositionMap = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user