@open-pencil-lowcode/motion
v0.15.0
Published
Framework-agnostic deterministic Motion planning, sampling, projection, and continuous-driver primitives for OpenPencil.
Readme
@open-pencil-lowcode/motion
Framework-agnostic deterministic Motion planning and sampling for OpenPencil.
Ownership
This package owns:
- easing, timing, path, track, and scene-plan sampling;
- advanced paint, effect, font-axis, and vector projection planning;
- continuous-driver mapping, source inspection, target preparation, and input batching;
- deterministic generated-effect sampling and authored node changes.
Authored MotionSpec schemas, validation, presets, recipes, and libraries remain in
@open-pencil-lowcode/scene-graph. Clocks, scheduling, playback handles, DOM projection, and Vanilla/Vue
lifecycle adapters remain in @open-pencil-lowcode/motion-runtime. Editor state, Canvas rendering, export,
and authoring tools remain in @open-pencil-lowcode/core and the app.
Usage
import { prepareMotionSamplingPlan, samplePreparedMotionPlan } from '@open-pencil-lowcode/motion'
const plan = prepareMotionSamplingPlan(motion, {
selection: { mode: 'trigger', trigger: 'mount' }
})
const frame = samplePreparedMotionPlan(plan, 250)The established @open-pencil-lowcode/core/motion entrypoint remains a compatibility export. New code
should import this package directly.
