@girs/gstgl-1.0 1.0.0-3.2.4 → 1.0.0-3.2.6
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 +14 -1
- package/gstgl-1.0-ambient.d.ts +0 -1
- package/gstgl-1.0-import.d.ts +0 -1
- package/gstgl-1.0.d.cts +33 -0
- package/gstgl-1.0.d.ts +33 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GstGL-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for GstGL-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
|
|
|
81
81
|
const GstGL = imports.gi.GstGL;
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
|
|
85
|
+
### ESM vs. CommonJS
|
|
86
|
+
|
|
87
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
88
|
+
|
|
89
|
+
In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
|
|
90
|
+
|
|
91
|
+
On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
|
|
92
|
+
|
|
93
|
+
This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
|
|
94
|
+
|
|
95
|
+
Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
|
|
96
|
+
|
|
84
97
|
### Bundle
|
|
85
98
|
|
|
86
99
|
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/gstgl-1.0-ambient.d.ts
CHANGED
package/gstgl-1.0-import.d.ts
CHANGED
package/gstgl-1.0.d.cts
CHANGED
|
@@ -1441,6 +1441,7 @@ export module GLBaseSrc {
|
|
|
1441
1441
|
// Own constructor properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1442
1442
|
|
|
1443
1443
|
timestamp_offset?: number | null
|
|
1444
|
+
timestampOffset?: number | null
|
|
1444
1445
|
}
|
|
1445
1446
|
|
|
1446
1447
|
}
|
|
@@ -1450,6 +1451,7 @@ export interface GLBaseSrc {
|
|
|
1450
1451
|
// Own properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1451
1452
|
|
|
1452
1453
|
timestamp_offset: number
|
|
1454
|
+
timestampOffset: number
|
|
1453
1455
|
|
|
1454
1456
|
// Conflicting properties
|
|
1455
1457
|
|
|
@@ -1593,6 +1595,9 @@ export interface GLBaseSrc {
|
|
|
1593
1595
|
connect(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1594
1596
|
connect_after(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1595
1597
|
emit(sigName: "notify::do-timestamp", ...args: any[]): void
|
|
1598
|
+
connect(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1599
|
+
connect_after(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1600
|
+
emit(sigName: "notify::num-buffers", ...args: any[]): void
|
|
1596
1601
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1597
1602
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1598
1603
|
emit(sigName: string, ...args: any[]): void
|
|
@@ -4290,12 +4295,25 @@ export module GLViewConvert {
|
|
|
4290
4295
|
input_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4291
4296
|
output_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4292
4297
|
output_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4298
|
+
downmixMode?: GLStereoDownmix | null
|
|
4299
|
+
inputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4300
|
+
inputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4301
|
+
outputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4302
|
+
outputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4293
4303
|
}
|
|
4294
4304
|
|
|
4295
4305
|
}
|
|
4296
4306
|
|
|
4297
4307
|
export interface GLViewConvert {
|
|
4298
4308
|
|
|
4309
|
+
// Own properties of GstGL-1.0.GstGL.GLViewConvert
|
|
4310
|
+
|
|
4311
|
+
downmixMode: GLStereoDownmix
|
|
4312
|
+
inputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4313
|
+
inputModeOverride: GstVideo.VideoMultiviewMode
|
|
4314
|
+
outputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4315
|
+
outputModeOverride: GstVideo.VideoMultiviewMode
|
|
4316
|
+
|
|
4299
4317
|
// Own fields of GstGL-1.0.GstGL.GLViewConvert
|
|
4300
4318
|
|
|
4301
4319
|
object: any
|
|
@@ -4408,6 +4426,21 @@ export interface GLViewConvert {
|
|
|
4408
4426
|
|
|
4409
4427
|
// Class property signals of GstGL-1.0.GstGL.GLViewConvert
|
|
4410
4428
|
|
|
4429
|
+
connect(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4430
|
+
connect_after(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4431
|
+
emit(sigName: "notify::downmix-mode", ...args: any[]): void
|
|
4432
|
+
connect(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4433
|
+
connect_after(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4434
|
+
emit(sigName: "notify::input-flags-override", ...args: any[]): void
|
|
4435
|
+
connect(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4436
|
+
connect_after(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4437
|
+
emit(sigName: "notify::input-mode-override", ...args: any[]): void
|
|
4438
|
+
connect(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4439
|
+
connect_after(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4440
|
+
emit(sigName: "notify::output-flags-override", ...args: any[]): void
|
|
4441
|
+
connect(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4442
|
+
connect_after(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4443
|
+
emit(sigName: "notify::output-mode-override", ...args: any[]): void
|
|
4411
4444
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
4412
4445
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
4413
4446
|
emit(sigName: string, ...args: any[]): void
|
package/gstgl-1.0.d.ts
CHANGED
|
@@ -1443,6 +1443,7 @@ module GLBaseSrc {
|
|
|
1443
1443
|
// Own constructor properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1444
1444
|
|
|
1445
1445
|
timestamp_offset?: number | null
|
|
1446
|
+
timestampOffset?: number | null
|
|
1446
1447
|
}
|
|
1447
1448
|
|
|
1448
1449
|
}
|
|
@@ -1452,6 +1453,7 @@ interface GLBaseSrc {
|
|
|
1452
1453
|
// Own properties of GstGL-1.0.GstGL.GLBaseSrc
|
|
1453
1454
|
|
|
1454
1455
|
timestamp_offset: number
|
|
1456
|
+
timestampOffset: number
|
|
1455
1457
|
|
|
1456
1458
|
// Conflicting properties
|
|
1457
1459
|
|
|
@@ -1595,6 +1597,9 @@ interface GLBaseSrc {
|
|
|
1595
1597
|
connect(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1596
1598
|
connect_after(sigName: "notify::do-timestamp", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1597
1599
|
emit(sigName: "notify::do-timestamp", ...args: any[]): void
|
|
1600
|
+
connect(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1601
|
+
connect_after(sigName: "notify::num-buffers", callback: (($obj: GLBaseSrc, pspec: GObject.ParamSpec) => void)): number
|
|
1602
|
+
emit(sigName: "notify::num-buffers", ...args: any[]): void
|
|
1598
1603
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
1599
1604
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
1600
1605
|
emit(sigName: string, ...args: any[]): void
|
|
@@ -4292,12 +4297,25 @@ module GLViewConvert {
|
|
|
4292
4297
|
input_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4293
4298
|
output_flags_override?: GstVideo.VideoMultiviewFlags | null
|
|
4294
4299
|
output_mode_override?: GstVideo.VideoMultiviewMode | null
|
|
4300
|
+
downmixMode?: GLStereoDownmix | null
|
|
4301
|
+
inputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4302
|
+
inputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4303
|
+
outputFlagsOverride?: GstVideo.VideoMultiviewFlags | null
|
|
4304
|
+
outputModeOverride?: GstVideo.VideoMultiviewMode | null
|
|
4295
4305
|
}
|
|
4296
4306
|
|
|
4297
4307
|
}
|
|
4298
4308
|
|
|
4299
4309
|
interface GLViewConvert {
|
|
4300
4310
|
|
|
4311
|
+
// Own properties of GstGL-1.0.GstGL.GLViewConvert
|
|
4312
|
+
|
|
4313
|
+
downmixMode: GLStereoDownmix
|
|
4314
|
+
inputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4315
|
+
inputModeOverride: GstVideo.VideoMultiviewMode
|
|
4316
|
+
outputFlagsOverride: GstVideo.VideoMultiviewFlags
|
|
4317
|
+
outputModeOverride: GstVideo.VideoMultiviewMode
|
|
4318
|
+
|
|
4301
4319
|
// Own fields of GstGL-1.0.GstGL.GLViewConvert
|
|
4302
4320
|
|
|
4303
4321
|
object: any
|
|
@@ -4410,6 +4428,21 @@ interface GLViewConvert {
|
|
|
4410
4428
|
|
|
4411
4429
|
// Class property signals of GstGL-1.0.GstGL.GLViewConvert
|
|
4412
4430
|
|
|
4431
|
+
connect(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4432
|
+
connect_after(sigName: "notify::downmix-mode", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4433
|
+
emit(sigName: "notify::downmix-mode", ...args: any[]): void
|
|
4434
|
+
connect(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4435
|
+
connect_after(sigName: "notify::input-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4436
|
+
emit(sigName: "notify::input-flags-override", ...args: any[]): void
|
|
4437
|
+
connect(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4438
|
+
connect_after(sigName: "notify::input-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4439
|
+
emit(sigName: "notify::input-mode-override", ...args: any[]): void
|
|
4440
|
+
connect(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4441
|
+
connect_after(sigName: "notify::output-flags-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4442
|
+
emit(sigName: "notify::output-flags-override", ...args: any[]): void
|
|
4443
|
+
connect(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4444
|
+
connect_after(sigName: "notify::output-mode-override", callback: (($obj: GLViewConvert, pspec: GObject.ParamSpec) => void)): number
|
|
4445
|
+
emit(sigName: "notify::output-mode-override", ...args: any[]): void
|
|
4413
4446
|
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
4414
4447
|
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
4415
4448
|
emit(sigName: string, ...args: any[]): void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gstgl-1.0",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GstGL-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gstgl-1.0.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gstgl-1.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gst-1.0": "^1.23.0-3.2.
|
|
33
|
-
"@girs/gstbase-1.0": "^1.0.0-3.2.
|
|
34
|
-
"@girs/gstvideo-1.0": "^1.0.0-3.2.
|
|
28
|
+
"@girs/gjs": "^3.2.6",
|
|
29
|
+
"@girs/glib-2.0": "^2.78.0-3.2.6",
|
|
30
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.6",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.6",
|
|
32
|
+
"@girs/gst-1.0": "^1.23.0-3.2.6",
|
|
33
|
+
"@girs/gstbase-1.0": "^1.0.0-3.2.6",
|
|
34
|
+
"@girs/gstvideo-1.0": "^1.0.0-3.2.6"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "*"
|