[MyComponent] [TextInput value:someVar /] [/MyComponent]
TextInputcomponent to work out of the box (interacting with the component writes the value back into the prop) when I'm importing it like a react-component. If I'm using
TextInputas a child and get it from the array (
React.Children.toArray(this.props.children)) it works fine but the first approach would be cleaner I think?
I could see how we increment
transformationStep in increments of 0.33 though (since there are 3 steps), with basing off the
transformation prop of
IdyllApparatusComponent via the
scrollerIndex variable, since it'll be 1, 2, and 3, respectively:
[IdyllAppratusComponent ...other props transformation: `scrollerIndex / 3.0` /]
But again, I'm unsure exactly how to get the 100 steps in here... I'll update if I think of something that could work
scrollamaoption that is supposed to give that value in a callback, however it didn't appear to work when I tried a couple of weeks ago. Possibly I was doing something wrong, or just an error in that library. If anyone has a little time to look more into that it would be :pray: :pray: :pray: :pray: . happy to guide to the parts of the codebase that would need to be adjusted
react-tooltiplib. i made an issue for it (idyll-lang/idyll-vega-lite#1). it isn't clear to me exactly what's going wrong as I followed all the steps that were listed on the vega side, however this should definitely be fixed
idyll-vega-litethat has the fixes and tooltips enabled by default so you don't have to install the extra package
ReferenceError: window is not defined at /Users/80526/www/LF-anthropocene/node_modules/vega-embed/build/src/embed.js:17:11 at /Users/80526/www/LF-anthropocene/node_modules/vega-embed/build/vega-embed.js:2:85 at Object.<anonymous> (/Users/80526/www/LF-anthropocene/node_modules/vega-embed/build/vega-embed.js:5:2)
I saw that scroll progress have been implemented! I will add it to an article I wrote with a colleague on deforestation in Amazonia.
Article (in french): https://ateliercartographie.github.io/BR163/
Source code: https://github.com/AtelierCartographie/BR163
If it deserves to appear in the gallery of idyll, we would be delighted.
And thanks for this great tool!