Skip to content

Intermact API Reference / @intermact/core / buildMatchingFrames

Function: buildMatchingFrames()

buildMatchingFrames(source, target, matchBy, count): AlignedMorph

Defined in: packages/core/src/animation/morph.ts:231

Build aligned frames for the matching strategy (design.md §11.4). Matched keys transform; source-only keys collapse to their centroid (remover); target-only keys grow from their centroid (introducer). The result is one flat aligned set so the morph track stays a single seekable geometry override.

Parameters

source

IMObject2D

target

IMObject2D

matchBy

MatchByFn | undefined

count

number

Returns

AlignedMorph

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)