feat: add split to parts by tile size

This commit is contained in:
2026-10-07 14:11:32 +05:00
parent 557c74b26e
commit 32cb369ca9
9 changed files with 217 additions and 33 deletions
+3
View File
@@ -16,6 +16,8 @@ import type { Position9 } from "./core/textdraw";
*/
export interface FieldSpecBase {
label?: string;
/** Поле видно только когда другое поле равно значению (режимы инструмента). */
visibleWhen?: { field: string; equals: string };
}
export interface NumberSpec extends FieldSpecBase {
@@ -291,6 +293,7 @@ export const field = {
maxFromSource?: boolean;
lockAspectWith?: string;
presets?: boolean;
visibleWhen?: { field: string; equals: string };
}): Field<Dimension> => ({
spec: { kind: "dimension", ...s },
}),