Simon Hausmann
279ce560f9
Convert NodeJS API to use & export TypeScript
...
This will make the types available to API consumers and makes the
documentation clearer.
2020-10-20 15:57:50 +02:00
Simon Hausmann
b6466eaa9e
Expose the array model as an ecmascript class
...
This allows documenting it easily with JSDoc
2020-10-20 11:03:03 +02:00
Olivier Goffart
14198052ac
ArrayModel support in JS
2020-10-17 13:33:22 +02:00
Simon Hausmann
e5dfb3a4c0
Implement basic focus handling
...
Similar to the mouse_grabber, we use a VisitChildrenResult field to
track the focus item within a component. Unlike the mouse grabber
however, it is set/cleared using dedicated focus events.
The key event now routes the key event directly to the focus item.
The focus can be requested via set_focus_item on a window, which the
TextItem does.
2020-09-25 10:43:47 +02:00
Olivier Goffart
42aa91e3eb
Support for signal with arguments in the interpreter
2020-09-09 11:27:58 +02:00
Olivier Goffart
58cdaeb8dd
Update license header to mention that commertial option are available
2020-08-26 13:23:42 +02:00
Simon Hausmann
2823f32692
Apply license headers to all non-binary/non-json sources
2020-08-17 17:55:20 +02:00
Olivier Goffart
f4cce26d51
Test the mouse click
2020-08-10 12:54:29 +02:00
Simon Hausmann
84d8eaa130
Add support for emitting signals for nodejs and the interpreter
...
This also enables the property and signal accessor test case for js.
2020-06-12 10:38:01 +02:00
Olivier Goffart
b7bc884447
Run the JS test without using npm install
2020-06-09 10:25:38 +02:00
Olivier Goffart
7a8c549625
Be able to read or write properties from JS
2020-06-04 15:48:39 +02:00
Olivier Goffart
ec8baa81f2
formating
2020-06-04 14:05:17 +02:00
Olivier Goffart
5ee09398e8
Node: Allow to init properties to value
2020-06-03 17:33:45 +02:00
Olivier Goffart
30d61452ba
Interpreter and node API: some refactoring towards being able to set properties from JS
2020-06-03 17:33:43 +02:00
Olivier Goffart
13c7e0dec8
Begin working on a Node API
...
Currently, the followinf command in the example/nodetest directory works:
npm install ../../api/sixtyfps-node && node main.js
2020-06-03 17:33:05 +02:00