slint/api/napi
Florian Blasius e34cd741a8
Create components from a slint file for napi (#3566)
* Get todo example running with napi.

* Code review fixes.

* Code review feedback.

* Code review fixes.

* docs fix

* Update api/napi/__test__/resources/error.slint

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update api/napi/__test__/resources/test.slint

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix test

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-06 12:39:17 +02:00
..
__test__ Create components from a slint file for napi (#3566) 2023-10-06 12:39:17 +02:00
src Added window js wrapper for napi (#3544) 2023-09-29 08:29:36 +02:00
.gitignore Added Model implementation for napi (#3493) 2023-09-28 13:01:59 +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 janitor: Use workspace dependnecies for the slint crates 2023-09-25 16:34:16 +02:00
index.ts Create components from a slint file for napi (#3566) 2023-10-06 12:39:17 +02:00
package.json Added Model implementation for napi (#3493) 2023-09-28 13:01:59 +02:00
README.md reuse: remove glob for markdown files 2023-08-17 08:55:28 +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)