노드들이 연결선과 서로의 힘에 따라 움직이다가 진동이 줄며 안정된 배치에 멈춘다.Connected nodes relax under link forces, repulsion, and damping until the layout settles.
고정 초기 배치의 관계망을 300 tick 계산해 5초 동안 정착시킨다.
재생할 때마다 임의 초기 좌표를 써 군집이 바뀐다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 시간 | 5s | 3.75~7.5s | 시점 또는 전환 한 회 기준 |
| 고정 tick | 300 | 200~400 | 초기 위치와 ID 순서 고정 |
| alpha 감소 | 0.0228 | 0.015~0.03 | 초기 alpha 1, 종료 0.001 |
| 속도 감쇠 | 0.4 | 0.3~0.6 | 진동을 줄임 |
| 이징 | none | none | none은 선형 진행 |
const tl = gsap.timeline({paused:true});
const frames = solveForceFixed(graph,{ticks:300,alpha:1,alphaMin:0.001,alphaDecay:0.0228,velocityDecay:0.4});
const s = {tick:0};
tl.to(s,{tick:299,duration:5,ease:'none',onUpdate:()=>{
drawCanvasGraph(interpolateFrames(frames,s.tick));
}});그대로 붙여 넣는다Paste as is
<대상>에 포스 레이아웃 정착을 적용해줘. Canvas에서 링크 힘, 반발력과 감쇠를 계산하고 고정된 시간 간격으로 좌표를 갱신한다. 입력 좌표와 ID 대응을 먼저 준비하고 snippet의 렌더 함수는 이 규칙으로 구현한다. 지속 시간 5s; 고정 tick 300; alpha 감소 0.0228; 속도 감쇠 0.4; 이징 none로 구현하고 GSAP 코어 paused 타임라인 하나로 seek를 지원해. 고정 초기 배치의 관계망을 300 tick 계산해 5초 동안 정착시킨다.
Apply Force-directed Layout Settling to <target>. Use a 5s transition with none 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. Connected nodes relax under link forces, repulsion, and damping until the layout settles.
<파일>의 데이터 차트 갱신 구간에 포스 레이아웃 정착을 적용해. Canvas에서 링크 힘, 반발력과 감쇠를 계산하고 고정된 시간 간격으로 좌표를 갱신한다. 입력 좌표와 ID 대응을 먼저 준비하고 snippet의 렌더 함수는 이 규칙으로 구현한다. 지속 시간 5s; 고정 tick 300; alpha 감소 0.0228; 속도 감쇠 0.4; 이징 none를 사용해. 1.25초, 2.5초, 5초 시점을 캡처해 노드들이 연결선과 서로의 힘에 따라 움직이다가 진동이 줄며 안정된 배치에 멈춘다. 항목 대응과 최종 수치를 확인하고 역방향 seek에서도 같은 화면인지 검증해.
Apply Force-directed Layout Settling in the chart update section of <file>. Use the card parameter defaults, a 5s transition, and none easing; implement the snippet geometry helpers from fixed input data. Capture at 1.25s, 2.5s, and 5s 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