You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear community, I write in English because I'm Italian. I hope you can help me.
I'm writing a program to let my students draw a flowchart with the idea of transforming it into C++.
I'm using LogicFlow and I'm having problems. I hope you can help me.
So I use the pointsList. But when I use the lf.graphModel.moveNode function the edge loses its shape and is transformed. I use the lf.graphModel.moveNode function only to move down, y coordinate + 100 for both source and target nodes. So I expect the edge to remain of the previous form: only it would be shifted down by 100. I also see the text changing position with respect to the initial configurations.
What should I do to get this result?
I have a second problem: how can I retrieve the size of a node? How can I change its size? I would like to be able to dynamically push the content into the node and have the node scale to fit the content. Consequently I will have to change the shape of the whole flowchart according to the new width of the node.
Dear community, I write in English because I'm Italian. I hope you can help me. I'm writing a program to let my students draw a flowchart with the idea of transforming it into C++. I'm using LogicFlow and I'm having problems. I hope you can help me.
So I use the pointsList. But when I use the lf.graphModel.moveNode function the edge loses its shape and is transformed. I use the lf.graphModel.moveNode function only to move down, y coordinate + 100 for both source and target nodes. So I expect the edge to remain of the previous form: only it would be shifted down by 100. I also see the text changing position with respect to the initial configurations. What should I do to get this result?
I have a second problem: how can I retrieve the size of a node? How can I change its size? I would like to be able to dynamically push the content into the node and have the node scale to fit the content. Consequently I will have to change the shape of the whole flowchart according to the new width of the node.
Thank you very much if you could help me
hey diegobenna,
for problem one, I don't actually know what's going on by your description, could you post your code about the way you use the moveNode function?
And for problem two, i think you can directly access the width and height properties of the node model, you need to obtain the corresponding node model by calling const nodeModel = lf.getNodeModelById(nodeId), then, you can access the width and height properties using nodeModel.width and nodeModel.height respectively. Additionally, you can modify the shape of the node by assigning new values to nodeModel.width and nodeModel.height, both width and height properties of nodeModel are observable, allowing for changes to be tracked (docs: https://docs.logic-flow.cn/docs/#/en/api/nodeModelApi).
Sorry, I'm busy these days. If you have a QQ number or WeChat, you can join the group chat, and you can ask questions to group members, they will be willing to solve your problems.
I can‘t provide a QR code since the number of members in the group has already exceeded 200. You can add the official WeChat account 'logic-flow,' and he will invite you in.
HI. Initially on WeChat everyone wrote and replied to me. Now the chat seems to stop. I don't see any more replies and messages. Is that so? Or is there some problem on my wechat?
Nah, that's not your problem, I saw the dialogue in the group chat, and I think most of them are at rest or taking a break on weekends. btw, we will optimize this problem before this Wednesday to provide a way for developers to change the way pointsList updates.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear community, I write in English because I'm Italian. I hope you can help me.
I'm writing a program to let my students draw a flowchart with the idea of transforming it into C++.
I'm using LogicFlow and I'm having problems. I hope you can help me.
So I use the pointsList. But when I use the lf.graphModel.moveNode function the edge loses its shape and is transformed. I use the lf.graphModel.moveNode function only to move down, y coordinate + 100 for both source and target nodes. So I expect the edge to remain of the previous form: only it would be shifted down by 100. I also see the text changing position with respect to the initial configurations.
What should I do to get this result?
Thank you very much if you could help me
Beta Was this translation helpful? Give feedback.
All reactions