The following updates correctly the colormap, however ignores all camera updates. Any hints on how to fix this?
using WGLMakie, JSServe, Observables
using JSServe: Button
page = Page(offline=true, exportable=true);
app = JSServe.App() do session::Session
update_button = Button("cmap")
fig, ax, obj = meshscatter(rand(10), rand(10), rand(10); color = 1:10)
cam = cameracontrols(ax.scene)
on(update_button) do click
obj.colormap[] = :plasma
cam.lookat[] = Vec3f(0)
cam.upvector[] = Vec3f(0, 0, 1)
cam.eyeposition[] = Vec3f(3)
center!(ax.scene)
end
return JSServe.record_states(session, DOM.div(fig, cmap_button))
end
app