Bake Size slider zoom into saved SVG via viewBox crop

Fixkamo-internal
관련 상품
2026년 3월 11일 오후 9:03 UTC
이름 *
kamo
뚱 베어
334fbe5

Avatar Creator's internal scale transform zooms the avatar body within the SVG canvas, but the effect is imperceptible at small display sizes (e.g. a 140x140 Avatar component). The preview was using a redundant CSS transform: scale() to show the zoom, but that CSS is never part of the saved SVG, so preview and saved always looked different. New approach: - Remove scale from avatarOptions (no Avatar Creator internal scale transform) - Add applyViewBoxZoom() which shrinks the SVG viewBox to the centre crop equivalent to CSS transform:scale(N) with overflow:hidden — this is visible at any display size and survives being saved to MinIO - Apply applyViewBoxZoom in generateAvatar so the preview SVG already reflects the correct zoom without any CSS transform - Update addBackgroundToSvg to read all four viewBox values (x, y, w, h) so the background rect is correctly positioned after a viewBox crop

모든 변경 사항

배송을 보는 것과 같이?

작업 공간의 모든 업데이트 땅은 자동으로. 일주일 후 무료로 시청하십시오.

무료 영원히 시작가격 비교