1
0
Fork 0

wip(core): Work on stack-based layouts

This commit is contained in:
Joost De Cock 2022-09-14 12:24:09 +02:00
parent 7ac5a88dff
commit 1c442ad580
8 changed files with 139 additions and 105 deletions

View file

@ -361,8 +361,8 @@ export function pctBasedOn(measurement) {
}
}
/** Generates the transform attributes needed for a given part */
export const generatePartTransform = (x, y, rotate, flipX, flipY, part) => {
/** Generates the transform attributes needed for a given stack */
export const generateStackTransform = (x, y, rotate, flipX, flipY, part) => {
const transforms = []
let xTotal = x || 0
let yTotal = y || 0