흐름량이 바뀌면 리본 두께와 노드 높이가 변하고 연결 끝점이 함께 이동한다.Ribbon widths, node heights, and connected endpoints change together as flow values update.
같은 노드 ID를 유지하며 분기 유량에 맞춰 리본 폭과 노드 높이를 바꾼다.
노드만 이동하고 연결 끝점은 뒤늦게 갱신한다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 시간 | 1s | 0.75~1.5s | 시점 또는 전환 한 회 기준 |
| 노드 폭 | 24px | 16~32px | 전후 같은 폭 |
| 노드 간격 | 8px | 6~16px | 연결 끝점도 함께 보간 |
| 이징 | power2.inOut | power2.inOut | none은 선형 진행 |
const tl = gsap.timeline({paused:true});
const s = {p:0};
const matched = matchSankeyById(before,after);
tl.to(s,{p:1,duration:1,ease:'power2.inOut',onUpdate:()=>{
renderSankeyInterpolated(matched,s.p,24,8);
}});그대로 붙여 넣는다Paste as is
<대상>에 생키 흐름 재배치을 적용해줘. 전후 노드 경계와 리본 제어점을 ID로 대응해 보간한다. 입력 좌표와 ID 대응을 먼저 준비하고 snippet의 렌더 함수는 이 규칙으로 구현한다. 지속 시간 1s; 노드 폭 24px; 노드 간격 8px; 이징 power2.inOut로 구현하고 GSAP 코어 paused 타임라인 하나로 seek를 지원해. 같은 노드 ID를 유지하며 분기 유량에 맞춰 리본 폭과 노드 높이를 바꾼다.
Apply Sankey Reflow to <target>. Use a 1s transition with power2.inOut easing and preserve item IDs, colors, and chart scales. Implement the geometry renderer used in the snippet with explicit before and after data; use a single paused GSAP core timeline and derive every frame from its playhead. Ribbon widths, node heights, and connected endpoints change together as flow values update.
<파일>의 데이터 차트 갱신 구간에 생키 흐름 재배치을 적용해. 전후 노드 경계와 리본 제어점을 ID로 대응해 보간한다. 입력 좌표와 ID 대응을 먼저 준비하고 snippet의 렌더 함수는 이 규칙으로 구현한다. 지속 시간 1s; 노드 폭 24px; 노드 간격 8px; 이징 power2.inOut를 사용해. 0.25초, 0.5초, 1초 시점을 캡처해 흐름량이 바뀌면 리본 두께와 노드 높이가 변하고 연결 끝점이 함께 이동한다. 항목 대응과 최종 수치를 확인하고 역방향 seek에서도 같은 화면인지 검증해.
Apply Sankey Reflow in the chart update section of <file>. Use the card parameter defaults, a 1s transition, and power2.inOut easing; implement the snippet geometry helpers from fixed input data. Capture at 0.25s, 0.5s, and 1s to verify item correspondence, the intermediate geometry, and final values. Seek backward and forward to confirm identical output at identical times.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo