MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / applyTransform$1

Function applyTransform$1

libs/echarts/echarts.simple.js:18006–18015  ·  view source on GitHub ↗

* Apply transform to an vertex. * @param {Array. } target [x, y] * @param {Array. |TypedArray. |Object} transform Can be: * + Transform matrix: like [1, 0, 0, 1, 0, 0] * + {position, rotation, scale}, the same as `zrender/Transformable`. * @param {boolean=} invert

(target, transform, invert$$1)

Source from the content-addressed store, hash-verified

18004 * @return {Array.<number>} [x, y]
18005 */
18006function applyTransform$1(target, transform, invert$$1) {
18007 if (transform && !isArrayLike(transform)) {
18008 transform = Transformable.getLocalTransform(transform);
18009 }
18010
18011 if (invert$$1) {
18012 transform = invert([], transform);
18013 }
18014 return applyTransform([], target, transform);
18015}
18016
18017/**
18018 * @param {string} direction 'left' 'right' 'top' 'bottom'

Callers 1

transformDirectionFunction · 0.70

Calls 3

isArrayLikeFunction · 0.70
invertFunction · 0.70
applyTransformFunction · 0.70

Tested by

no test coverage detected