* 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)
| 18004 | * @return {Array.<number>} [x, y] |
| 18005 | */ |
| 18006 | function 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' |
no test coverage detected