Release v1.62.0-beta.9 candidate

Issue: #108
User-Visible: yes
This commit is contained in:
Matysh
2026-08-12 21:49:29 +03:00
parent 9bb5f7c5a8
commit 8e2973fa7a
40 changed files with 779 additions and 393 deletions
+6 -1
View File
@@ -59,11 +59,16 @@ const DEFAULTS: Record<OpeningPlacementType, number> = {
gate: 300,
};
/** One authority for toolbar presets and dialog type changes. */
export function openingDefaultLengthCm(type: OpeningPlacementType): number {
return DEFAULTS[type];
}
export function openingPlacementPreset(
type: OpeningPlacementType,
revision: number,
): OpeningPlacementPreset {
return { type, lengthCm: DEFAULTS[type], flipH: false, flipV: false, revision };
return { type, lengthCm: openingDefaultLengthCm(type), flipH: false, flipV: false, revision };
}
function pointOrder(a: readonly number[], b: readonly number[]): number {