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:
@@ -15,7 +15,6 @@ import { PinOverlay } from '../canvas/PinOverlay';
|
|||||||
import { CropOverlay } from '../canvas/CropOverlay';
|
import { CropOverlay } from '../canvas/CropOverlay';
|
||||||
import { TextSprite } from '../canvas/sprites/TextSprite';
|
import { TextSprite } from '../canvas/sprites/TextSprite';
|
||||||
import { TextSharpnessManager } from '../canvas/textSharpness';
|
import { TextSharpnessManager } from '../canvas/textSharpness';
|
||||||
import { clampTextFontSize } from '../canvas/textLimits';
|
|
||||||
// PresenceOverlay removed — remote selection highlighting was too heavy for minimal benefit
|
// PresenceOverlay removed — remote selection highlighting was too heavy for minimal benefit
|
||||||
import { connectSocket, disconnectSocket } from '../socket';
|
import { connectSocket, disconnectSocket } from '../socket';
|
||||||
import api from '../api';
|
import api from '../api';
|
||||||
@@ -219,7 +218,7 @@ export function useCanvasSetup(deps: CanvasSetupDeps) {
|
|||||||
// Use average scale as font multiplier
|
// Use average scale as font multiplier
|
||||||
const scale = (absSx + absSy) / 2;
|
const scale = (absSx + absSy) / 2;
|
||||||
const d = item.data as any;
|
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.sx = item.data.sx > 0 ? 1 : -1;
|
||||||
d.sy = item.data.sy > 0 ? 1 : -1;
|
d.sy = item.data.sy > 0 ? 1 : -1;
|
||||||
if (item.displayObject instanceof TextSprite) {
|
if (item.displayObject instanceof TextSprite) {
|
||||||
|
|||||||
Reference in New Issue
Block a user