diff --git a/packages/core/src/index.mjs b/packages/core/src/index.mjs index 3bc982451aa..bd581724564 100644 --- a/packages/core/src/index.mjs +++ b/packages/core/src/index.mjs @@ -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, } diff --git a/packages/core/src/utils.mjs b/packages/core/src/utils.mjs index 23d39930a8a..5304f8070f2 100644 --- a/packages/core/src/utils.mjs +++ b/packages/core/src/utils.mjs @@ -936,7 +936,7 @@ export function getTransformedBounds(boundsObj, transforms = false) { ) return { - tl: transformedTl, - br: transformedBr, + topLeft: transformedTl, + bottomRight: transformedBr, } } diff --git a/sites/shared/components/workbench/pattern/movable/stack.mjs b/sites/shared/components/workbench/pattern/movable/stack.mjs index f11aa01ac8d..a3bcfe59805 100644 --- a/sites/shared/components/workbench/pattern/movable/stack.mjs +++ b/sites/shared/components/workbench/pattern/movable/stack.mjs @@ -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 )