@flatkit/engine
v0.22.0
Published
Pure FlatInk engine: model evaluation, expressions, timeline, geometry, layers. No canvas, no clipper. Shared by the player and the compiler.
Downloads
926
Maintainers
Readme
@flatkit/engine
The pure core of the FlatInk toolchain: model evaluation, the expression
language, timeline/keyframe interpolation, geometry (paths, transforms, bezier <-> polygon), color/paint,
and layer queries. No canvas, no clipper, no DOM — shared by
@flatkit/player and
@flatkit/compiler.
Most apps depend on the player or the compiler and get the engine transitively. Import it directly for headless logic: evaluating a timeline, flattening a path, resolving an expression.
Install
pnpm add @flatkit/engineUsage
Each module is its own entry point:
import { evaluateTimeline } from '@flatkit/engine/timeline'
import { pathToPolygons, transformPath } from '@flatkit/engine/path'
import { compileExpr } from '@flatkit/engine/expr'