MCPcopy Create free account
hub / github.com/breck7/scroll / executeShifts

Function executeShifts

external/.d3.js:13859–13871  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

13857// performed by this function. To prepare the shifts, we have to adjust
13858// change(w+), shift(w+), and change(w-).
13859function executeShifts(v) {
13860 var shift = 0,
13861 change = 0,
13862 children = v.children,
13863 i = children.length,
13864 w;
13865 while (--i >= 0) {
13866 w = children[i];
13867 w.z += shift;
13868 w.m += shift;
13869 shift += w.s + (change += w.c);
13870 }
13871}
13872
13873// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,
13874// returns the specified (default) ancestor.

Callers 1

firstWalkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected