-
Notifications
You must be signed in to change notification settings - Fork 857
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dia.Paper): add autoFreeze option (#2134)
- Loading branch information
1 parent
169f26a
commit ce1f70a
Showing
6 changed files
with
128 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
docs/src/joint/api/dia/Paper/prototype/options/autoFreeze.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<code>autoFreeze</code> - By default, the paper periodically checks the viewport calling <a href="#dia.Paper.prototype.options.viewport"><code>viewport</code></a> callback for every view. | ||
The options <code>autoFreeze</code> can be used to suppress this behavior. When the option is enabled, it freezes the paper as soon as there are no more updates and unfreezes it when there is an update scheduled. | ||
(paper has no updates to perform when <a href="#dia.Paper.prototype.hasScheduledUpdates">hasScheduledUpdates()</a> returns <code>false</code>). | ||
In that case, the user needs to <a href="#dia.Paper.prototype.checkViewport"><code>checkViewport</code></a> manually when he wants to reinvoke <a href="#dia.Paper.prototype.options.viewport"><code>viewport</code></a> | ||
when external changes occurred, e. g. during scrolling and zooming. The freeze state will be set on the next frame cycle after processing all updates. On this cycle paper will call <a href="#dia.Paper.prototype.options.viewport"><code>viewport</code></a> callback | ||
and freeze itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters