I am trying to work with an already reactive library (Vega) in Observable. My current progress is at https://beta.observablehq.com/@domoritz/rotating-earth. Vega has “signals” as reactive variables. In my example, I am trying to set the signal value to the reactive rotation value. The problem is that the Observable engine re-evaluates the Vega compile step because the dependency graph links the view and the rotation variable.
My question is how I could split the dependency graph or otherwise tell Observable not to re-evaluate the compile step when the rotation changes.
I feel that I should be able to use
Generators.observe (https://beta.observablehq.com/@mbostock/more-deliberate-inputs) but I can’t quite wrap my head around how.