slint/api/napi
Simon Hausmann 5d102bc838 napi: Fix access to diagnostics
Invoking the diagnostics getter would throw an exception because the JsDiagnostic type has no constructor.

There's however no constructor that would allow for the previous
laziness, so instead this PR bites the bullet:

- When diagnostics are requested, we convert them all in one go into proper JavaScript objects.
- The vector returned by line_column is replaced with more idiomatic column and lineNumber properties
2023-08-08 13:46:53 +02:00
..
__test__ napi: Fix access to diagnostics 2023-08-08 13:46:53 +02:00
npm Initial setup for napi-rs port (#3171) 2023-08-07 10:44:05 +02:00
src napi: Fix access to diagnostics 2023-08-08 13:46:53 +02:00
.gitignore Initial setup for napi-rs port (#3171) 2023-08-07 10:44:05 +02:00
.npmignore Initial setup for napi-rs port (#3171) 2023-08-07 10:44:05 +02:00
.yarnrc.yml Initial setup for napi-rs port (#3171) 2023-08-07 10:44:05 +02:00
build.rs Initial setup for napi-rs port (#3171) 2023-08-07 10:44:05 +02:00
Cargo.toml napi: Remove unnecessary dependencies 2023-08-08 13:43:52 +02:00
package.json Initial setup for napi-rs port (#3171) 2023-08-07 10:44:05 +02:00
README.md Initial setup for napi-rs port (#3171) 2023-08-07 10:44:05 +02:00

Slint-napi (pre-Alpha)

This is a restart of Slint-node based on napi-rs. The current state is pre-Alpha what means it is not yet ready for testing and use.

Implemented features

  • js/ts wrapper for the Slint interpreter infrastructure
  • js/ts wrapper for Slint types
    • ImageData
    • Color
    • Brush

Missing features

  • Possibility to run js/ts async code after window run call
  • Generate a js/ts object-wrapper for the exported Slint component
  • Public access to Slint globals
  • CI: Generate prebuild platform node packages
  • Documentation generation
  • js/ts wrapper for Slint types
    • Model (wip)