Releases: Variel/renderfig
Releases · Variel/renderfig
v0.4.0
New Features
- Per-run style override:
--style "노드//검색텍스트.속성=값"문법으로 mixed text 내 특정 텍스트 런의 스타일을 개별 변경 (fontWeight,fontFamily,fontSize,color등) - Programmatic API에서도
{ type: 'style', target, search, props }형태로 사용 가능
Bug Fixes
--style fontWeight=X등 Typography 오버라이드가styleOverrideTable항목에도 전파되도록 수정styleOverrideTable엔트리에fontName이 없는 경우 (lineHeight만 있는 등) 노드 기본값에서 복사하여 스타일 변경이 정상 적용되도록 수정
v0.3.2
Bug Fixes
- Gradient direction: Fixed gradient angle computation — Figma's gradient transform maps element→gradient space, so the inverse direction
(m11, -m10)is used instead of(m00, m10) - CENTER constraint: Absolute-positioned children with
horizontalConstraint: CENTERorverticalConstraint: CENTERnow correctly useleft:50%; transform:translate(-50%, -50%)instead of fixed coordinates - Partial text replacement: Fixed bug where targeting the same node with multiple
//partial replacements failed becauseautoRenamechanged the node name after the first replacement
v0.3.1
What's New (since v0.2.0)
Vector SVG Rendering
- fillGeometry blob을 디코딩하여 VECTOR/BOOLEAN_OPERATION 노드를 실제 SVG
<path>로 렌더링
Hug Sizing (Auto Layout)
- Hug Contents 프레임이 콘텐츠에 맞게 자동 크기 조절
Mixed Text Styles
- 하나의 TEXT 노드 내 여러 스타일(폰트 크기, 굵기 등) 정확히 렌더링
inspect에서 mixed styles 정보 자동 표시
Same-Name Node Disambiguation
NodeName[n]인덱스 문법으로 동일 이름 노드 구분
Fixes
--version이 package.json에서 읽도록 변경
v0.3.0
What's New
Vector SVG Rendering
- fillGeometry blob을 디코딩하여 VECTOR/BOOLEAN_OPERATION 노드를 실제 SVG
<path>로 렌더링 - blob 바이너리 포맷:
01=M,02=L,04=C,00=Z + float32LE 좌표
Hug Sizing (Auto Layout)
RESIZE_TO_FIT_WITH_IMPLICIT_SIZE지원으로 Hug Contents 프레임이 콘텐츠에 맞게 자동 크기 조절
Mixed Text Styles
characterStyleIDs+styleOverrideTable파싱으로 하나의 TEXT 노드 내 여러 스타일 정확히 렌더링inspect에서 mixed styles 정보 자동 표시
Same-Name Node Disambiguation
NodeName[n]인덱스 문법(0-based)으로 동일 이름 노드 구분
Fixes
--version이 package.json에서 읽도록 변경
v0.2.0
What's New
Vector SVG Rendering
- Figma vector path blob 디코딩 (M/L/C/Q/Z + float32LE)
- 단색, 그라데이션(linear/radial) fill 지원
- Stroke 렌더링 (strokeGeometry blob 또는 SVG stroke fallback)
Mixed Text Styles
characterStyleIDs+styleOverrideTable기반 per-run 스타일 렌더링- 하나의 텍스트 노드 안에서 폰트 크기, 굵기, 색상 등이 다른 구간을
<span>으로 렌더링
Partial Text Replace
--text "노드이름//검색텍스트=대체텍스트"문법으로 부분 교체 + 스타일 보존- 전체 교체 시에도 줄 수가 같으면 라인별 스타일 자동 보존
- API:
{ type: 'text', target, search, value }
Hug Sizing
- Auto-layout 프레임의
RESIZE_TO_FIT_WITH_IMPLICIT_SIZE(hug) 지원
Same-Name Node Index
NodeName[n]인덱스 문법으로 동일 이름 노드 구분 (0-based)