Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getNextMatrix(
offsetMatrix: number[],
targetMatrix: number[],
origin: number[],
n: number,
) {
return multiply(
offsetMatrix,
getAbsoluteMatrix(targetMatrix, n, origin),
n,
);
}
export function scaleMatrix(
if (length - 1 === i) {
offsetMatrix = mat.slice();
}
if (isObject(matrix[n - 1])) {
[matrix[n - 1], matrix[2 * n - 1]] =
getSVGOffset(
matrix[n - 1] as any,
endContainer,
n,
matrix[2 * n - 1] as any,
mat,
matrixes[i + 1],
);
}
mat = multiply(
mat,
matrix,
n,
);
});
const isMatrix3d = !isSVGGraphicElement && is3d;