1
0
Fork 0

chore(core): Unit tests for v3 code

This commit is contained in:
Joost De Cock 2022-09-19 23:35:52 +02:00
parent d5eb2946d3
commit bb89b6ca65
11 changed files with 526 additions and 111 deletions

View file

@ -288,7 +288,7 @@ export function deg2rad(degrees) {
* @param {Stack} stack - The Stack instance
* @return {string} transform - The SVG transform value
*/
export const generateStackTransform = (x, y, rotate, flipX, flipY, stack) => {
export const generateStackTransform = (x=0, y=0, rotate=0, flipX=false, flipY=false, stack) => {
const transforms = []
let xTotal = x || 0
let yTotal = y || 0