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
RGB Matrix JavaScript / EcmaScript Standard
-
- Posts: 6
- Joined: Mon Dec 12, 2022 7:33 pm
- Real Name: NikNik
- mcallegari
- Posts: 4711
- Joined: Sun Apr 12, 2015 9:09 am
- Location: Italy
- Real Name: Massimo Callegari
- Contact:
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.
Qt libraries implement this JS flavour: https://doc.qt.io/qt-5/ecmascript.html
And no, you can't drag in external libraries.