These are chat archives for ractivejs/ractive

21st
Jul 2017
Bob Schellink
@sabob
Jul 21 2017 07:16
would the color interpretor be part of Ractive or a plugin?
Chris Reeves
@evs-chris
Jul 21 2017 07:17
I'm leaning more towards plugin
I had to add hsl conversion to get true lighten and darken, and it got a bit larger
Bob Schellink
@sabob
Jul 21 2017 07:19
Plugin sounds good.
Chris Reeves
@evs-chris
Jul 21 2017 07:20
I'd love to have everything built in, but ractive already has a bit of a weight problem
Bob Schellink
@sabob
Jul 21 2017 07:55
Agreed. With Ractive it is very possible to build various apps (think cruds) with 20% of the functionality. Those folks could be unhappy with extra features they don't need, at least initally ;-)
kouts
@kouts
Jul 21 2017 07:58
I don't know the internals but could these bits be added as plugins as e.g we now have transitions?
Bob Schellink
@sabob
Jul 21 2017 08:29
I guess it is hard to balance Ractive' declarative nature vs an imperative approach where you have full flexibility. Because it takes a bit of effort and LOC to create a declarative version of an imperative feature. As long as it's easy to integrate with Ractive all is good. For example, the jQuery landscape is massive and I don't have the energy/time to create directives for each plugin just so I can use them declaratively. So if I can use jQuery plugins and somehow keep Ractive' model up to date, all is good for me.
Bob Schellink
@sabob
Jul 21 2017 08:45
Btw, I've not had issues integrating with Ractive, except perhaps conceptually. For example: I'm integrating jQuey UI draggables/droppables/sortables to move items between two lists that was rendered with Ractive, and because these plugins physically move the list item' DOM, I have to update Ractive' data so it knows about the change and re-render the lists. So far so good.
Joseph
@fskreuz
Jul 21 2017 12:22
I've always wondered what interpolators are for. Even in the docs they're a mystery.
First impressions, they're like easings (input -> (function) -> output) but support more than just numbers, yes?
Chris Reeves
@evs-chris
Jul 21 2017 14:26
They are functions that take two values and return a function that takes a time code to compute a value between the two original given values
Easings generate the time code, interpolators apply it to the value
Joseph
@fskreuz
Jul 21 2017 14:27
Ahh...