How to get the width and height of VueFlow Component? #1903
Replies: 1 comment 2 replies
-
const { dimensions } = useVueFlow()
console.log(dimensions.value.height, dimensions.value.width) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bcakmakoglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I hope to obtain the width and height of
VueFlow
, but I couldn't find a suitable method inuseVueFlow
.If you have a good method, could you please let me know?
Just like in
ReactFlow
, where the width and height are obtained through theuseStore
function.Beta Was this translation helpful? Give feedback.
All reactions