MCPcopy Index your code
hub / github.com/microsoft/SandDance / Scenegraph

Function Scenegraph

docs/app/js/sanddance-app.js:123158–123170  ·  view source on GitHub ↗
(scene)

Source from the content-addressed store, hash-verified

123156 return scene;
123157}
123158function 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}
123171Scenegraph.prototype = {
123172 toJSON (indent) {
123173 return sceneToJSON(this.root, indent || 0);

Callers

nothing calls this directly

Calls 2

sceneFromJSONFunction · 0.70
createMarkFunction · 0.70

Tested by

no test coverage detected