(scene)
| 123156 | return scene; |
| 123157 | } |
| 123158 | function Scenegraph(scene) { |
| 123159 | if (arguments.length) this.root = sceneFromJSON(scene); |
| 123160 | else { |
| 123161 | this.root = createMark({ |
| 123162 | marktype: "group", |
| 123163 | name: "root", |
| 123164 | role: "frame" |
| 123165 | }); |
| 123166 | this.root.items = [ |
| 123167 | new GroupItem(this.root) |
| 123168 | ]; |
| 123169 | } |
| 123170 | } |
| 123171 | Scenegraph.prototype = { |
| 123172 | toJSON (indent) { |
| 123173 | return sceneToJSON(this.root, indent || 0); |
nothing calls this directly
no test coverage detected