Determine the top and left padding of an element #2678
-
IntroductionPaperscroller offers a function that lets developer position an element using padding as follow: Does JointJS+ offer a function that does the opposite? for example, given an element, the function returns its top and left padding Thanks Steps to reproduceNo response Restrictions & ConstraintsNo response Does your question relate to JointJS or JointJS+. Select both if applicable.JointJS+ |
Beta Was this translation helpful? Give feedback.
Answered by
kumilingus
May 30, 2024
Replies: 1 comment 1 reply
-
This should do: element.position().difference(scroller.getVisibleArea().topLeft()) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kumilingus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should do: