fix(core): Return property names that are consistent with API
This commit is contained in:
parent
05fd153237
commit
1e4a064043
3 changed files with 11 additions and 9 deletions
|
@ -44,6 +44,7 @@ import { version } from '../data.mjs'
|
||||||
|
|
||||||
// Named exports
|
// Named exports
|
||||||
export {
|
export {
|
||||||
|
// Constructors
|
||||||
Attributes,
|
Attributes,
|
||||||
Design,
|
Design,
|
||||||
Pattern,
|
Pattern,
|
||||||
|
@ -52,18 +53,20 @@ export {
|
||||||
Part,
|
Part,
|
||||||
Snippet,
|
Snippet,
|
||||||
Store,
|
Store,
|
||||||
|
// Various
|
||||||
version,
|
version,
|
||||||
Bezier,
|
Bezier,
|
||||||
//consts
|
// Constants
|
||||||
|
cbqc,
|
||||||
|
goldenRatio,
|
||||||
hidePresets,
|
hidePresets,
|
||||||
// Utils
|
// Utils
|
||||||
beamIntersectsCircle,
|
beamIntersectsCircle,
|
||||||
|
beamIntersectsCurve,
|
||||||
beamIntersectsX,
|
beamIntersectsX,
|
||||||
beamIntersectsY,
|
beamIntersectsY,
|
||||||
beamsIntersect,
|
beamsIntersect,
|
||||||
beamIntersectsCurve,
|
|
||||||
capitalize,
|
capitalize,
|
||||||
cbqc,
|
|
||||||
circlesIntersect,
|
circlesIntersect,
|
||||||
curveEdge,
|
curveEdge,
|
||||||
curveIntersectsX,
|
curveIntersectsX,
|
||||||
|
@ -86,5 +89,4 @@ export {
|
||||||
splitCurve,
|
splitCurve,
|
||||||
stretchToScale,
|
stretchToScale,
|
||||||
units,
|
units,
|
||||||
goldenRatio,
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -936,7 +936,7 @@ export function getTransformedBounds(boundsObj, transforms = false) {
|
||||||
)
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tl: transformedTl,
|
topLeft: transformedTl,
|
||||||
br: transformedBr,
|
bottomRight: transformedBr,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ export const MovableStack = ({
|
||||||
const transforms = setTransforms()
|
const transforms = setTransforms()
|
||||||
|
|
||||||
// apply the transforms to the bounding box to get the new extents of the stack
|
// 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
|
// update it on the draft component
|
||||||
updateLayout(
|
updateLayout(
|
||||||
|
@ -122,8 +122,8 @@ export const MovableStack = ({
|
||||||
rotate: liveTransforms.rotation % 360,
|
rotate: liveTransforms.rotation % 360,
|
||||||
flipX: liveTransforms.flipX,
|
flipX: liveTransforms.flipX,
|
||||||
flipY: liveTransforms.flipY,
|
flipY: liveTransforms.flipY,
|
||||||
tl,
|
tl: topLeft,
|
||||||
br,
|
br: bottomRight,
|
||||||
},
|
},
|
||||||
history
|
history
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue