1
0
Fork 0

fix(core): Return property names that are consistent with API

This commit is contained in:
Joost De Cock 2023-10-21 13:26:45 +02:00
parent 05fd153237
commit 1e4a064043
3 changed files with 11 additions and 9 deletions

View file

@ -44,6 +44,7 @@ import { version } from '../data.mjs'
// Named exports
export {
// Constructors
Attributes,
Design,
Pattern,
@ -52,18 +53,20 @@ export {
Part,
Snippet,
Store,
// Various
version,
Bezier,
//consts
// Constants
cbqc,
goldenRatio,
hidePresets,
// Utils
beamIntersectsCircle,
beamIntersectsCurve,
beamIntersectsX,
beamIntersectsY,
beamsIntersect,
beamIntersectsCurve,
capitalize,
cbqc,
circlesIntersect,
curveEdge,
curveIntersectsX,
@ -86,5 +89,4 @@ export {
splitCurve,
stretchToScale,
units,
goldenRatio,
}

View file

@ -936,7 +936,7 @@ export function getTransformedBounds(boundsObj, transforms = false) {
)
return {
tl: transformedTl,
br: transformedBr,
topLeft: transformedTl,
bottomRight: transformedBr,
}
}

View file

@ -109,7 +109,7 @@ export const MovableStack = ({
const transforms = setTransforms()
// apply the transforms to the bounding box to get the new extents of the stack
const { tl, br } = getTransformedBounds(stack, transforms)
const { topLeft, bottomRight } = getTransformedBounds(stack, transforms)
// update it on the draft component
updateLayout(
@ -122,8 +122,8 @@ export const MovableStack = ({
rotate: liveTransforms.rotation % 360,
flipX: liveTransforms.flipX,
flipY: liveTransforms.flipY,
tl,
br,
tl: topLeft,
br: bottomRight,
},
history
)