chore: cleanup components

This commit is contained in:
braks
2023-10-30 13:36:07 +01:00
committed by Braks
parent c32c0df4fa
commit 119f6d15db
12 changed files with 97 additions and 78 deletions
+12
View File
@@ -1,3 +1,5 @@
import { ResizeControlVariant } from './types'
interface GetDirectionParams {
width: number
prevWidth: number
@@ -25,3 +27,13 @@ export function getDirection({ width, prevWidth, height, prevHeight, invertX, in
return direction
}
export const DefaultPositions = {
[ResizeControlVariant.Line]: 'right',
[ResizeControlVariant.Handle]: 'bottom-right',
}
export const StylingProperty = {
[ResizeControlVariant.Line]: 'borderColor',
[ResizeControlVariant.Handle]: 'backgroundColor',
}