mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Various clean-ups regarding the handling of activeLayer, JSON deserialization, DOM insertion and and layer reusing.
JSON deserialization does no longer insert items into DOM twice now, and should therefore be faster.
This commit is contained in:
parent
42ec121c0a
commit
af4410953f
6 changed files with 97 additions and 35 deletions
|
@ -16,7 +16,6 @@ function testExportImportJSON(project) {
|
|||
// Use higher precision than in comparissons, for bounds
|
||||
var json = project.exportJSON({ precision: 8 });
|
||||
var project2 = new Project();
|
||||
project2.clear();
|
||||
project2.importJSON(json);
|
||||
compareProjects(project2, project);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue