mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-01 16:49:15 -04:00
Implement #_needsRedraw() mechanism in PaperScope and Project, to notify Views of redraws required by changes in appearance.
This commit is contained in:
parent
25b31b6b7d
commit
596cc8f83b
5 changed files with 28 additions and 7 deletions
src/project
|
@ -57,10 +57,9 @@ var Project = this.Project = Base.extend({
|
|||
this.activeLayer = new Layer();
|
||||
},
|
||||
|
||||
_changed: function(flags) {
|
||||
if (flags & ChangeFlag.GEOMETRY) {
|
||||
// TODO: Mark as requireRedraw
|
||||
}
|
||||
_needsRedraw: function() {
|
||||
if (this._scope)
|
||||
this._scope._needsRedraw();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue