How to select all Nodes #181
Replies: 1 comment
-
|
Hi! Thanks for the question 🙌 Foblex Flow does not manage internal state — you provide the nodes[] and connections[] arrays directly to the component. These nodes typically include x and y positions, but not width or height, since those depend on the content inside the node and are handled by the browser during rendering. However, if you explicitly assign width and height to a node (e.g., in the config or via a resize handle), those values will be included in the node data. In such cases, the fNodeResize event is also emitted with the updated size information. If you don’t define the size manually and need to measure it after rendering, you’d need to access the DOM directly (e.g., using getBoundingClientRect() inside your component). The library does not expose a public method to retrieve node dimensions, and there’s no plan to introduce one in the future. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After the flow is rendered how can i get the properties (ex. height,width) of the nodes ? More specifcally after the flow is changed how to call the method for getting all the nodes and their properties?
Beta Was this translation helpful? Give feedback.
All reactions