ComfyUI/comfy_api/input
Christian Byrne 62d9a99b8c
feat: add CurveInput ABC with MonotoneCubicCurve implementation (#12986)
CurveInput is an abstract base class so future curve representations
(bezier, LUT-based, analytical functions) can be added without breaking
downstream nodes that type-check against CurveInput.

MonotoneCubicCurve is the concrete implementation that:
- Mirrors frontend createMonotoneInterpolator (curveUtils.ts) exactly
- Pre-computes slopes as numpy arrays at construction time
- Provides vectorised interp_array() using numpy for batch evaluation
- interp() for single-value evaluation
- to_lut() for generating lookup tables

CurveEditor node wraps raw widget points in MonotoneCubicCurve.
2026-03-16 14:39:12 -04:00
..
__init__.py feat: add CurveInput ABC with MonotoneCubicCurve implementation (#12986) 2026-03-16 14:39:12 -04:00
basic_types.py ComfyAPI Core v0.0.2 (#8962) 2025-07-29 22:17:22 -04:00
video_types.py ComfyAPI Core v0.0.2 (#8962) 2025-07-29 22:17:22 -04:00