Scroll to the first element in a (Autoscrollable : true) paper. #2545
Unanswered
jibinjoy8897
asked this question in
Q&A
Replies: 1 comment 6 replies
-
You can find the most top-left point of your graph and tell the paper scroller to position this point to its top-left corner. const graphTopLeftPoint = graph.getBBox().topLeft();
paperScroller.positionPoint(graphTopLeftPoint, 0, 0, { padding: 20 }); |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
We have used directLayout and autoResize:true for graph.(graph only has positive coordinates allowNewOrigin: 'positive')
We have used diagram save positions as per user input.
Query:
Suppose if user changes the element positions and again regenerates diagram with saved positions.I want to scroll to the first element that appears on scroll from (0,0).
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions