mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
parent
ca790f9339
commit
6e1c89234d
1 changed files with 8 additions and 0 deletions
|
@ -172,6 +172,14 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
|
|||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Activates this PaperScope, so all newly created items will be placed
|
||||
* in its active project.
|
||||
*/
|
||||
activate: function() {
|
||||
paper = this;
|
||||
},
|
||||
|
||||
clear: function() {
|
||||
// Remove all projects, views and tools.
|
||||
// This also removes the installed event handlers.
|
||||
|
|
Loading…
Reference in a new issue