interpolation icon indicating copy to clipboard operation
interpolation copied to clipboard

Add 'linear' and maybe add serde ?

Open ethereumdegen opened this issue 1 year ago • 1 comments

I just want to say amazing crate. In order to use it in my particular usecase, i had to vendor it and make some changes.



use serde::{Deserialize, Serialize};

#[allow(missing_docs)]
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize,Default)]
pub enum EaseFunction {
	#[default]
	Linear, 


    QuadraticIn,
    QuadraticOut,

...

so imo it would be nice if

  1. there was a 'feature' that was optional to this crate to add serde like this
  2. you also added the Linear case and made it 'default' like i do above

just some tiny improvements that prob make sense . thanks

ethereumdegen avatar Feb 16 '25 21:02 ethereumdegen

Yeah, we can add Serde support through a Cargo feature flag.

bvssvni avatar Apr 04 '25 10:04 bvssvni