mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Node.js docs: Add some missing type mappings
This commit is contained in:
parent
ad21ecb2c5
commit
1c0ebe4c0e
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,7 @@ The types used for properties in .slint design markup each translate to specific
|
|||
| `.slint` Type | JavaScript Type | Notes |
|
||||
| --- | --- | --- |
|
||||
| `int` | `Number` | |
|
||||
| `bool` | `Boolean` | |
|
||||
| `float` | `Number` | |
|
||||
| `string` | `String` | |
|
||||
| `color` | {@link RgbaColor} | Property getters always return {@link SlintBrush} |
|
||||
|
@ -184,6 +185,7 @@ The types used for properties in .slint design markup each translate to specific
|
|||
| `physical_length` | `Number` | |
|
||||
| `duration` | `Number` | The number of milliseconds |
|
||||
| `angle` | `Number` | The angle in degrees |
|
||||
| `relative-font-size` | `Number` | Relative font size factor that is multiplied with the `Window.default-font-size` and can be converted to a `length`. |
|
||||
| structure | `Object` | Structures are mapped to JavaScript objects where each structure field is a property. |
|
||||
| array | `Array` or any implementation of {@link Model} | |
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue