MCPcopy
hub / github.com/microsoft/SandDance / initialize

Function initialize

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

Source from the content-addressed store, hash-verified

123145 return initialize(scene);
123146}
123147function 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}
123158function Scenegraph(scene) {
123159 if (arguments.length) this.root = sceneFromJSON(scene);
123160 else {

Callers 3

initializeIconsFunction · 0.70
sceneFromJSONFunction · 0.70
sanddance-app.jsFile · 0.70

Calls 15

boundMarkFunction · 0.70
domFindFunction · 0.70
eventListenerCheckFunction · 0.70
domClearFunction · 0.70
domChildFunction · 0.70
setAttributesFunction · 0.70
radiusFunction · 0.70
idFunction · 0.70
findFunction · 0.70
initializeStrengthFunction · 0.70
initializeDistanceFunction · 0.70
xFunction · 0.70

Tested by

no test coverage detected