@reekon-tools/boldr-utils 1.19.3 → 1.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,7 @@ export declare const GROUP_HEADER_COLLAPSED_WIDTH: number;
|
|
|
16
16
|
export declare const GROUP_HEADER_COLLAPSED_HEIGHT: number;
|
|
17
17
|
export declare const groupHeaderBaseDims: (collapsed?: boolean) => StampTileDims;
|
|
18
18
|
export declare const DEFAULT_TILE_SCALE = 1;
|
|
19
|
-
export declare const TILE_SCALE_MIN = 0.
|
|
19
|
+
export declare const TILE_SCALE_MIN = 0.05;
|
|
20
20
|
export declare const TILE_SCALE_MAX = 2;
|
|
21
21
|
export declare const resolveTileScaleFactor: (canvas: Pick<AnnotationCanvasState, "tileScaleFactor" | "tileScaleFactorMobile">, platform: TileScalePlatform) => number;
|
|
22
22
|
export declare const resolveHeaderTileScaleFactor: (canvas: Pick<AnnotationCanvasState, "tileScaleFactor" | "tileScaleFactorMobile" | "headerTileScaleFactor" | "headerTileScaleFactorMobile">, platform: TileScalePlatform) => number;
|
|
@@ -67,7 +67,13 @@ export const groupHeaderBaseDims = (collapsed) => collapsed
|
|
|
67
67
|
// Web and mobile persist separate knobs (AnnotationCanvasState.tileScaleFactor
|
|
68
68
|
// vs .tileScaleFactorMobile) — read them through resolveTileScaleFactor below.
|
|
69
69
|
export const DEFAULT_TILE_SCALE = 1;
|
|
70
|
-
|
|
70
|
+
// Floor 0.05 ≈ a 5pt speck at the content-fit view — far under tap size,
|
|
71
|
+
// which is fine: the zoom multiplier composes, so pinching in restores the
|
|
72
|
+
// tap target. (Was 0.4; large dense drawings needed much smaller tiles.)
|
|
73
|
+
// NOTE: the slider's 0.05 commit rounding makes the first step off the floor
|
|
74
|
+
// a 2× jump — if that grates in practice, finer low-end rounding and/or a log
|
|
75
|
+
// track in the TileScaleSlider components is the follow-up.
|
|
76
|
+
export const TILE_SCALE_MIN = 0.05;
|
|
71
77
|
export const TILE_SCALE_MAX = 2;
|
|
72
78
|
// Resolve the document-wide tile-scale knob for a platform. Web and mobile
|
|
73
79
|
// persist separate values because a scale calibrated against a desktop window
|