refactor(resizer): correct typo

This commit is contained in:
moklick
2024-01-09 16:49:19 +01:00
parent b18ef10e43
commit c5d7f107d7
4 changed files with 14 additions and 13 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
import { drag } from 'd3-drag';
import { select } from 'd3-selection';
import { NodeLookup, Transform } from '../types';
import { OnResize, OnResizeEnd, OnResizeStart, ResizeDragEvent, ShouldResize, ControlPosition } from './types';
import { getControlDirection, getDimensionsAfterResize, getPositionAfterResize, getResizeDirection } from './utils';
import { getPointerPosition } from '../utils';
import type { NodeLookup, Transform } from '../types';
import type { OnResize, OnResizeEnd, OnResizeStart, ResizeDragEvent, ShouldResize, ControlPosition } from './types';
const initPrevValues = { width: 0, height: 0, x: 0, y: 0 };
@@ -43,7 +43,7 @@ type XYResizerParams = {
type XYResizerUpdateParams = {
controlPosition: ControlPosition;
boundries: {
boundaries: {
minWidth: number;
minHeight: number;
maxWidth: number;
@@ -66,7 +66,7 @@ export function XYResizer({ domNode, nodeId, getStoreItems, onChange }: XYResize
function update({
controlPosition,
boundries,
boundaries,
keepAspectRatio,
onResizeStart,
onResize,
@@ -114,7 +114,7 @@ export function XYResizer({ domNode, nodeId, getStoreItems, onChange }: XYResize
startValues,
controlDirection,
pointerPosition,
boundries,
boundaries,
keepAspectRatio
);