MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getTransform

Function getTransform

libs/echarts/echarts.simple.js:17986–17995  ·  view source on GitHub ↗

* Get transform matrix of target (param target), * in coordinate of its ancestor (param ancestor) * * @param {module:zrender/mixin/Transformable} target * @param {module:zrender/mixin/Transformable} [ancestor]

(target, ancestor)

Source from the content-addressed store, hash-verified

17984 * @param {module:zrender/mixin/Transformable} [ancestor]
17985 */
17986function getTransform(target, ancestor) {
17987 var mat = identity([]);
17988
17989 while (target && target !== ancestor) {
17990 mul$1(mat, target.getLocalTransform(), mat);
17991 target = target.parent;
17992 }
17993
17994 return mat;
17995}
17996
17997/**
17998 * Apply transform to an vertex.

Callers

nothing calls this directly

Calls 2

identityFunction · 0.70
mul$1Function · 0.70

Tested by

no test coverage detected