Page 1 of 1

RGB Matrix JavaScript / EcmaScript Standard

Posted: Mon Dec 12, 2022 8:16 pm
by pnolle
Hey dear community,

I have a question about the JS interpreter for the RGB matrix scripts. Seems like a subset of JS or a pretty old ES standard is being used. I've tried referencing local JSON files via import, require or fetch. The browser-based dev tool does whatever browsers do (like giving me CORS errors :) but Qlc+ just won't show my script anymore as soon as I use any of those.

Furthermore I'd like to use 3rd party libs like gzip within the scripts and I'm thinking of using Node and a bundler like Webpack or Vite to compile this into vanilla JS.. but that might be a little far-fetched for now. If I'd get those imports to run, that would be really great.

Does anyone know how to achieve this?

Thanks, Nik

Re: RGB Matrix JavaScript / EcmaScript Standard

Posted: Tue Dec 13, 2022 9:05 am
by mcallegari
QLC+ uses Qt libraries.
Qt libraries implement this JS flavour: https://doc.qt.io/qt-5/ecmascript.html
And no, you can't drag in external libraries.