MCPcopy
hub / github.com/fengyuanchen/cropperjs / $getTransform

Method $getTransform

packages/element-image/src/index.ts:746–748  ·  view source on GitHub ↗

* Retrieves the current transformation matrix being applied to the element. * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getTransform * @returns {Array} Returns the readonly transformation matrix.

()

Source from the content-addressed store, hash-verified

744 * @returns {Array} Returns the readonly transformation matrix.
745 */
746 $getTransform(): number[] {
747 return this.$matrix.slice();
748 }
749
750 /**
751 * Resets the current transform to the initial identity matrix.

Callers 4

$toCanvasMethod · 0.80
$renderMethod · 0.80
index.spec.tsFile · 0.80
$toCanvasMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected