dumpViews - progress option not working? #2695
-
IntroductionHi, I began updating our app to v4. One of the first issues I ran into is that I cannot center the Long story short: Thanks Steps to reproduceNo response Restrictions & ConstraintsNo response Does your question relate to JointJS or JointJS+. Select both if applicable.JointJS, JointJS+ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's a mistake. There is no Are you saying it used to work in You don't need to force the paper content to rendered in order to center the paper scroller. You can use paperScroller.centerContent({ useModelGeometry: true }); It's missing from the docs right now. I am sorry for the inconveniences. |
Beta Was this translation helpful? Give feedback.
-
I was actually thinking whether it is not a mistake, thinking The setup is a bit more complicated because we have some workarounds in place for the Safari bug not rending the arrowheads, so we are waiting for the next animation frame, etc. The (most likely) issue is that we synchronously change the default router which calls The Thanks a lot for your help! On an (un)related note - I saw your comment that you fixed that Safari bug in 4.0.4 - these "rerendering" workarounds won't be needed anymore? (Now that would be great, I would love to drop it!) |
Beta Was this translation helpful? Give feedback.
It's a mistake. There is no
progress
fordumpViews
. It makes no sense asdumpViews
is always synchronous.Are you saying it used to work in
v3
and not inv4
? There were no changes in this aspect as far as I know.You don't need to force the paper content to rendered in order to center the paper scroller. You can use
useModelGeometry: true
instead.It's missing from the docs right now. I am sorry for the inconveniences.
It's the same option as
getContentArea()
useModelGeometry option.