From 889ffa6198c8517f36a3f95a8b0a1ccb60fb8f83 Mon Sep 17 00:00:00 2001 From: Priyank Singh Date: Wed, 11 Mar 2026 20:34:25 -0700 Subject: [PATCH] Fix #976: Document timing function constants in sync --- crates/dc_figma_import/src/reaction_schema.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/dc_figma_import/src/reaction_schema.rs b/crates/dc_figma_import/src/reaction_schema.rs index 70841e369..f119e1e83 100644 --- a/crates/dc_figma_import/src/reaction_schema.rs +++ b/crates/dc_figma_import/src/reaction_schema.rs @@ -113,6 +113,13 @@ pub enum EasingJson { // We flatten the Easing type to a bezier for the toolkit. These values were taken from // https://easings.net/ and verified against Figma optically. +// +// These cubic bezier control points are from an old reference (Robert Penner named these +// values, Macromedia Flash developers popularized them, and now they're in Figma, unchanged). +// We've verified optically that they produce the same output as Figma's preview viewer. +// +// For the spring values, they were taken from Figma's blog post announcing the +// spring timing function. impl Into for EasingJson { fn into(self) -> Easing_type { match self {