I tried to run the example, and the browser is complaining about how ENV is not defined. Looking at the FFI javascript:
exports.getData = function () {
return ENV.generateData().toArray();
};
exports.getTimeout = function () {
return ENV.timeout
};
exports.pingRenderRate = function () {
Monitoring.renderRate.ping();
};
exports.requestAnimationFrame = function (f) {
return function () {
window.requestAnimationFrame(function () {
f();
});
}
}
It seems that ENV is meant to be provided by the user, but for example generateData() doesn't appear anywhere else in the code. Being a newcomer to the library (and purescript in general), I'm not sure what it's supposed to do.
I tried to run the example, and the browser is complaining about how
ENVis not defined. Looking at the FFI javascript:exports.getData = function () { return ENV.generateData().toArray(); }; exports.getTimeout = function () { return ENV.timeout }; exports.pingRenderRate = function () { Monitoring.renderRate.ping(); }; exports.requestAnimationFrame = function (f) { return function () { window.requestAnimationFrame(function () { f(); }); } }It seems that ENV is meant to be provided by the user, but for example
generateData()doesn't appear anywhere else in the code. Being a newcomer to the library (and purescript in general), I'm not sure what it's supposed to do.