feat(ui): split canvas tool previews into modules

This commit is contained in:
psychedelicious
2024-08-31 10:29:39 +10:00
parent 8c65f60e7d
commit d001a36e14
13 changed files with 651 additions and 387 deletions

View File

@@ -1,7 +1,8 @@
import { roundToMultiple } from 'common/util/roundDownToMultiple';
import { CANVAS_GRID_SIZE_FINE } from 'features/controlLayers/konva/constants';
import type { Dimensions } from 'features/controlLayers/store/types';
const CANVAS_GRID_SIZE_FINE = 8;
/**
* Scales the bounding box dimensions to the optimal dimension. The optimal dimensions should be the trained dimension
* for the model. For example, 1024 for SDXL or 512 for SD1.5.