Skip to content

Commit

Permalink
fix xase
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaroldi committed Aug 11, 2023
1 parent dec835d commit f44cc25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const ROTATE_WIDTH = 1;
export const ROTATE_HANDLE_TOP = ROTATE_GAP + RESIZE_HANDLE_MARGIN;
export const CROP_HANDLE_SIZE = 22;
export const CROP_HANDLE_WIDTH = 7;
export const Xs_CROP: DNDDirectionX[] = ['w', 'e'];
export const Ys_CROP: DnDDirectionY[] = ['s', 'n'];
export const XS_CROP: DNDDirectionX[] = ['w', 'e'];
export const YS_CROP: DnDDirectionY[] = ['s', 'n'];

export const MIN_HEIGHT_WIDTH = 3 * RESIZE_HANDLE_SIZE + 2 * RESIZE_HANDLE_MARGIN;
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
CROP_HANDLE_SIZE,
CROP_HANDLE_WIDTH,
ROTATION,
Xs_CROP,
Ys_CROP,
XS_CROP,
YS_CROP,
} from '../constants/constants';

/**
Expand Down Expand Up @@ -102,8 +102,8 @@ export function getCropHTML(): CreateElementData[] {
children: [],
};
if (containerHTML) {
Xs_CROP.forEach(x =>
Ys_CROP.forEach(y => containerHTML.children?.push(getCropHTMLInternal(x, y)))
XS_CROP.forEach(x =>
YS_CROP.forEach(y => containerHTML.children?.push(getCropHTMLInternal(x, y)))
);
}
return [containerHTML, overlayHTML, overlayHTML, overlayHTML, overlayHTML];
Expand Down

0 comments on commit f44cc25

Please sign in to comment.