@dualbox/editor 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,6 +100,12 @@ class DualboxEditor {
100
100
  }
101
101
 
102
102
  this.loadCorePackages();
103
+
104
+ this.rootAppName = attrs.name ? attrs.name : "Application";
105
+
106
+ if( attrs.json ) {
107
+ this.setApp(json);
108
+ }
103
109
  }
104
110
 
105
111
  loadCorePackages() {
@@ -37,7 +37,7 @@ class GraphModel {
37
37
  windows : null
38
38
  };
39
39
  this.data.app = this.data.root;
40
- this.data.windows = [[ "Application", this.data.app ]];
40
+ this.data.windows = [[ this.e.rootAppName, this.data.app ]];
41
41
 
42
42
  // An object to save/restore different states of this.data (ctrl-z/ctrl-y)
43
43
  this.history = new History(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dualbox/editor",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Editor of Dualbox apps",
5
5
  "browser": "js/dist/GraphEditor.js",
6
6
  "main": "js/dist/GraphEditor.js",