Add this to some example:
mathbox.bind({
focus: (time, delta) => {
console.log(mathbox.get("focus"));
5 * Math.sin(time * 0.5);
},
});
And note that "1", the default, is printed many times instead of
- the function value
- the current value of "focus" for mathbox