@girs/clutter-14 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/clutter-14.d.ts +4 -0
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Clutter-14 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Clutter-14 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/clutter-14
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import Clutter from '@girs/clutter-14';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/clutter-14` or `@girs/clutter-14/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/clutter-14'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import Clutter from 'gi://Clutter?version=14';
|
|
@@ -50,7 +50,7 @@ import Clutter from 'gi://Clutter?version=14';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/clutter-14` or `@girs/clutter-14/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/clutter-14'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const Clutter = imports.gi.Clutter;
|
|
@@ -77,7 +77,7 @@ const Clutter = imports.gi.Clutter;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
package/clutter-14.d.ts
CHANGED
|
@@ -12421,6 +12421,7 @@ export namespace Clutter {
|
|
|
12421
12421
|
* This function does not realize child actors, except in the special
|
|
12422
12422
|
* case that realizing the stage, when the stage is visible, will
|
|
12423
12423
|
* suddenly map (and thus realize) the children of the stage.
|
|
12424
|
+
* @deprecated since 1.16: Actors are automatically realized, and nothing requires explicit realization.
|
|
12424
12425
|
* @virtual
|
|
12425
12426
|
*/
|
|
12426
12427
|
vfunc_realize(): void;
|
|
@@ -12503,6 +12504,7 @@ export namespace Clutter {
|
|
|
12503
12504
|
* If you were using `clutter_actor_unrealize()` to implement
|
|
12504
12505
|
* unrealizing children of your container, then don't, ClutterActor
|
|
12505
12506
|
* will already take care of that.
|
|
12507
|
+
* @deprecated since 1.16: Actors are automatically unrealized, and nothing requires explicit realization.
|
|
12506
12508
|
* @virtual
|
|
12507
12509
|
*/
|
|
12508
12510
|
vfunc_unrealize(): void;
|
|
@@ -14080,6 +14082,7 @@ export namespace Clutter {
|
|
|
14080
14082
|
* This function does not realize child actors, except in the special
|
|
14081
14083
|
* case that realizing the stage, when the stage is visible, will
|
|
14082
14084
|
* suddenly map (and thus realize) the children of the stage.
|
|
14085
|
+
* @deprecated since 1.16: Actors are automatically realized, and nothing requires explicit realization.
|
|
14083
14086
|
*/
|
|
14084
14087
|
realize(): void;
|
|
14085
14088
|
|
|
@@ -14838,6 +14841,7 @@ export namespace Clutter {
|
|
|
14838
14841
|
* If you were using `clutter_actor_unrealize()` to implement
|
|
14839
14842
|
* unrealizing children of your container, then don't, ClutterActor
|
|
14840
14843
|
* will already take care of that.
|
|
14844
|
+
* @deprecated since 1.16: Actors are automatically unrealized, and nothing requires explicit realization.
|
|
14841
14845
|
*/
|
|
14842
14846
|
unrealize(): void;
|
|
14843
14847
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/clutter-14",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Clutter-14",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "clutter-14.js",
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^4.
|
|
35
|
-
"@girs/cairo-1.0": "^4.
|
|
36
|
-
"@girs/gobject-2.0": "^4.
|
|
37
|
-
"@girs/glib-2.0": "^4.
|
|
38
|
-
"@girs/mtk-14": "^4.
|
|
39
|
-
"@girs/graphene-1.0": "^4.
|
|
40
|
-
"@girs/gio-2.0": "^4.
|
|
41
|
-
"@girs/gmodule-2.0": "^4.
|
|
42
|
-
"@girs/gl-1.0": "^4.
|
|
43
|
-
"@girs/coglpango-14": "^4.
|
|
44
|
-
"@girs/pangocairo-1.0": "^4.
|
|
45
|
-
"@girs/pango-1.0": "^4.
|
|
46
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
47
|
-
"@girs/freetype2-2.0": "^4.
|
|
48
|
-
"@girs/cogl-14": "^4.
|
|
49
|
-
"@girs/xlib-2.0": "^4.
|
|
50
|
-
"@girs/atk-1.0": "^4.
|
|
34
|
+
"@girs/gjs": "^4.4.0",
|
|
35
|
+
"@girs/cairo-1.0": "^4.4.0",
|
|
36
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
37
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
38
|
+
"@girs/mtk-14": "^4.4.0",
|
|
39
|
+
"@girs/graphene-1.0": "^4.4.0",
|
|
40
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
41
|
+
"@girs/gmodule-2.0": "^4.4.0",
|
|
42
|
+
"@girs/gl-1.0": "^4.4.0",
|
|
43
|
+
"@girs/coglpango-14": "^4.4.0",
|
|
44
|
+
"@girs/pangocairo-1.0": "^4.4.0",
|
|
45
|
+
"@girs/pango-1.0": "^4.4.0",
|
|
46
|
+
"@girs/harfbuzz-0.0": "^4.4.0",
|
|
47
|
+
"@girs/freetype2-2.0": "^4.4.0",
|
|
48
|
+
"@girs/cogl-14": "^4.4.0",
|
|
49
|
+
"@girs/xlib-2.0": "^4.4.0",
|
|
50
|
+
"@girs/atk-1.0": "^4.4.0" },
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "*"
|
|
53
53
|
},
|