MCPcopy
hub / github.com/tdewolff/minify / getTransform

Function getTransform

_benchmarks/sample_echarts.js:14523–14532  ·  view source on GitHub ↗

* Get transform matrix of target (param target), * in coordinate of its ancestor (param ancestor) * * @param target * @param [ancestor]

(target, ancestor)

Source from the content-addressed store, hash-verified

14521 */
14522
14523 function getTransform(target, ancestor) {
14524 var mat = identity([]);
14525
14526 while (target && target !== ancestor) {
14527 mul$1(mat, target.getLocalTransform(), mat);
14528 target = target.parent;
14529 }
14530
14531 return mat;
14532 }
14533 /**
14534 * Apply transform to an vertex.
14535 * @param target [x, y]

Callers 3

getTransform$1Function · 0.70
sample_echarts.jsFile · 0.70
setLabelFunction · 0.70

Calls 2

mul$1Function · 0.85
identityFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…