配置 adjustEdgeStartAndEnd
没有生效
#1328
Answered
by
wumail
ParadiseWitch
asked this question in
Q&A
-
问题
代码Details
import LogicFlow from "@logicflow/core";
import "@logicflow/core/dist/style/index.css";
const lf = new LogicFlow({
container: document.querySelector("#app"),
grid: true,
adjustEdgeStartAndEnd: false
});
lf.render({
nodes: [
{
id: "1",
type: "rect",
x: 100,
y: 100,
text: "矩形1"
},
{
id: "2",
type: "rect",
x: 300,
y: 300,
text: "矩形2"
}
]
}); 最小复现Demohttps://codesandbox.io/s/logicflow-base2-forked-4sw749?file=/src/index.js:0-429 |
Beta Was this translation helpful? Give feedback.
Answered by
wumail
Sep 11, 2023
Replies: 1 comment
-
当adjustEdgeStartAndEnd为true时,连线的起点和终点分别会有一个可以通过拖拽来调整连线的点 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wumail
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当adjustEdgeStartAndEnd为true时,连线的起点和终点分别会有一个可以通过拖拽来调整连线的点
图中的拖拽调整边的是中间线段,如果希望边不能被调整,设置
adjustEdge: false