fix: remove font-size clamp from resize-bake path

Direct manipulation (scaling text up/down) should respect user intent
without artificial caps. Clamps remain on creation defaults only.
This commit is contained in:
Hiren Kangad
2026-03-12 23:38:47 +05:30
parent 150bb91a27
commit eb4591dca0
+1 -2
View File
@@ -15,7 +15,6 @@ import { PinOverlay } from '../canvas/PinOverlay';
import { CropOverlay } from '../canvas/CropOverlay';
import { TextSprite } from '../canvas/sprites/TextSprite';
import { TextSharpnessManager } from '../canvas/textSharpness';
import { clampTextFontSize } from '../canvas/textLimits';
// PresenceOverlay removed — remote selection highlighting was too heavy for minimal benefit
import { connectSocket, disconnectSocket } from '../socket';
import api from '../api';
@@ -219,7 +218,7 @@ export function useCanvasSetup(deps: CanvasSetupDeps) {
// Use average scale as font multiplier
const scale = (absSx + absSy) / 2;
const d = item.data as any;
d.fontSize = clampTextFontSize(d.fontSize * scale);
d.fontSize = Math.round(d.fontSize * scale);
d.sx = item.data.sx > 0 ? 1 : -1;
d.sy = item.data.sy > 0 ? 1 : -1;
if (item.displayObject instanceof TextSprite) {