Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed report.

This behavior is intentional in our example. After import (and after any “restore/load” scenario) we reset the view so the editor starts from a predictable state: the flow is centered and the canvas scale is reset. That’s why we explicitly call:

  • canvas.resetScaleAndCenter(false) — the false is used to apply it without animation.

So if your goal is to preserve and restore the exact scale / position from the exported transform, you simply should not call resetScaleAndCenter(...) (and rely on your databinding via [scale] / [position] instead).

About fLoaded

fLoaded is emitted when the flow is initialized. It also gets emitted again after a re-init cycle, but…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lurondev
Comment options

@siarheihuzarevich
Comment options

Answer selected by lurondev
@lurondev
Comment options

@siarheihuzarevich
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants