(scene)
| 123145 | return initialize(scene); |
| 123146 | } |
| 123147 | function initialize(scene) { |
| 123148 | var type7 = scene.marktype, items = scene.items, parent, i, n; |
| 123149 | if (items) for(i = 0, n = items.length; i < n; ++i){ |
| 123150 | parent = type7 ? "mark" : "group"; |
| 123151 | items[i][parent] = scene; |
| 123152 | if (items[i].zindex) items[i][parent].zdirty = true; |
| 123153 | if ("group" === (type7 || parent)) initialize(items[i]); |
| 123154 | } |
| 123155 | if (type7) boundMark(scene); |
| 123156 | return scene; |
| 123157 | } |
| 123158 | function Scenegraph(scene) { |
| 123159 | if (arguments.length) this.root = sceneFromJSON(scene); |
| 123160 | else { |
no test coverage detected