Replies: 1 comment
-
To calculate the port position by
Here's a simple example: const node = graph.findById('node-id');
const model = node.getModel();
const portPosition = {
x: model.x + osX, // osX is your offset x
y: model.y + osY // osY is your offset y
}; This code snippet assumes you have access to the node's ID and the If you have more specific requirements or encounter any issues, feel free to provide additional details, and I can assist further! 🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Beta Was this translation helpful? Give feedback.
-
How to calc port position by os x and os y on 5.x version
Beta Was this translation helpful? Give feedback.
All reactions