@girs/gsk-4.0 4.0.0-3.2.6 → 4.0.0-3.2.8
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 +1 -1
- package/gsk-4.0-ambient.js +2 -0
- package/gsk-4.0-import.js +3 -0
- package/gsk-4.0.d.cts +13 -16
- package/gsk-4.0.d.ts +13 -16
- package/package.json +23 -17
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gsk-4.0, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Gsk-4.0, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gsk-4.0.d.cts
CHANGED
|
@@ -408,7 +408,7 @@ export function serialization_error_quark(): GLib.Quark
|
|
|
408
408
|
* @param string the string to parse
|
|
409
409
|
* @returns %TRUE if @string described a valid transform.
|
|
410
410
|
*/
|
|
411
|
-
export function transform_parse(string: string
|
|
411
|
+
export function transform_parse(string: string): [ /* returnType */ boolean, /* out_transform */ Transform ]
|
|
412
412
|
/**
|
|
413
413
|
* Retrieves the `GskRenderNode` stored inside the given `value`, and acquires
|
|
414
414
|
* a reference to it.
|
|
@@ -883,12 +883,11 @@ export class ColorMatrixNode extends RenderNode {
|
|
|
883
883
|
* Creates a `GskRenderNode` that will drawn the `child` with
|
|
884
884
|
* `color_matrix`.
|
|
885
885
|
*
|
|
886
|
-
* In particular, the node will transform
|
|
886
|
+
* In particular, the node will transform the operation
|
|
887
887
|
*
|
|
888
|
-
* pixel =
|
|
888
|
+
* pixel = color_matrix * pixel + color_offset
|
|
889
889
|
*
|
|
890
|
-
* for every pixel.
|
|
891
|
-
* colors, with color components ordered R, G, B, A.
|
|
890
|
+
* for every pixel.
|
|
892
891
|
* @constructor
|
|
893
892
|
* @param child The node to draw
|
|
894
893
|
* @param color_matrix The matrix to apply
|
|
@@ -900,12 +899,11 @@ export class ColorMatrixNode extends RenderNode {
|
|
|
900
899
|
* Creates a `GskRenderNode` that will drawn the `child` with
|
|
901
900
|
* `color_matrix`.
|
|
902
901
|
*
|
|
903
|
-
* In particular, the node will transform
|
|
902
|
+
* In particular, the node will transform the operation
|
|
904
903
|
*
|
|
905
|
-
* pixel =
|
|
904
|
+
* pixel = color_matrix * pixel + color_offset
|
|
906
905
|
*
|
|
907
|
-
* for every pixel.
|
|
908
|
-
* colors, with color components ordered R, G, B, A.
|
|
906
|
+
* for every pixel.
|
|
909
907
|
* @constructor
|
|
910
908
|
* @param child The node to draw
|
|
911
909
|
* @param color_matrix The matrix to apply
|
|
@@ -1151,7 +1149,7 @@ export interface DebugNode {
|
|
|
1151
1149
|
* Gets the debug message that was set on this node
|
|
1152
1150
|
* @returns The debug message
|
|
1153
1151
|
*/
|
|
1154
|
-
get_message(): string
|
|
1152
|
+
get_message(): string
|
|
1155
1153
|
}
|
|
1156
1154
|
|
|
1157
1155
|
/**
|
|
@@ -1299,7 +1297,7 @@ export interface GLShader {
|
|
|
1299
1297
|
* @param name uniform name
|
|
1300
1298
|
* @returns The index of the uniform, or -1
|
|
1301
1299
|
*/
|
|
1302
|
-
find_uniform_by_name(name: string
|
|
1300
|
+
find_uniform_by_name(name: string): number
|
|
1303
1301
|
/**
|
|
1304
1302
|
* Gets the value of the uniform `idx` in the `args` block.
|
|
1305
1303
|
*
|
|
@@ -1398,7 +1396,7 @@ export interface GLShader {
|
|
|
1398
1396
|
* @param idx index of the uniform
|
|
1399
1397
|
* @returns The name of the declared uniform
|
|
1400
1398
|
*/
|
|
1401
|
-
get_uniform_name(idx: number): string
|
|
1399
|
+
get_uniform_name(idx: number): string
|
|
1402
1400
|
/**
|
|
1403
1401
|
* Get the offset into the data block where data for this uniforms is stored.
|
|
1404
1402
|
* @param idx index of the uniform
|
|
@@ -1565,7 +1563,7 @@ export class GLShader extends GObject.Object {
|
|
|
1565
1563
|
* @param resource_path path to a resource that contains the GLSL sourcecode for the shader
|
|
1566
1564
|
* @returns A new `GskGLShader`
|
|
1567
1565
|
*/
|
|
1568
|
-
static new_from_resource(resource_path: string
|
|
1566
|
+
static new_from_resource(resource_path: string): GLShader
|
|
1569
1567
|
_init(config?: GLShader.ConstructorProperties): void
|
|
1570
1568
|
}
|
|
1571
1569
|
|
|
@@ -3323,8 +3321,7 @@ export interface Transform {
|
|
|
3323
3321
|
*/
|
|
3324
3322
|
ref(): Transform | null
|
|
3325
3323
|
/**
|
|
3326
|
-
* Rotates `next` `angle` degrees in 2D - or in 3D-speak, around the
|
|
3327
|
-
* The rotation happens around the origin point of (0, 0).
|
|
3324
|
+
* Rotates `next` `angle` degrees in 2D - or in 3D-speak, around the z axis.
|
|
3328
3325
|
* @param angle the rotation angle, in degrees (clockwise)
|
|
3329
3326
|
* @returns The new transform
|
|
3330
3327
|
*/
|
|
@@ -3520,7 +3517,7 @@ export class Transform {
|
|
|
3520
3517
|
* @param string the string to parse
|
|
3521
3518
|
* @returns %TRUE if @string described a valid transform.
|
|
3522
3519
|
*/
|
|
3523
|
-
static parse(string: string
|
|
3520
|
+
static parse(string: string): [ /* returnType */ boolean, /* out_transform */ Transform ]
|
|
3524
3521
|
}
|
|
3525
3522
|
|
|
3526
3523
|
/**
|
package/gsk-4.0.d.ts
CHANGED
|
@@ -410,7 +410,7 @@ function serialization_error_quark(): GLib.Quark
|
|
|
410
410
|
* @param string the string to parse
|
|
411
411
|
* @returns %TRUE if @string described a valid transform.
|
|
412
412
|
*/
|
|
413
|
-
function transform_parse(string: string
|
|
413
|
+
function transform_parse(string: string): [ /* returnType */ boolean, /* out_transform */ Transform ]
|
|
414
414
|
/**
|
|
415
415
|
* Retrieves the `GskRenderNode` stored inside the given `value`, and acquires
|
|
416
416
|
* a reference to it.
|
|
@@ -885,12 +885,11 @@ class ColorMatrixNode extends RenderNode {
|
|
|
885
885
|
* Creates a `GskRenderNode` that will drawn the `child` with
|
|
886
886
|
* `color_matrix`.
|
|
887
887
|
*
|
|
888
|
-
* In particular, the node will transform
|
|
888
|
+
* In particular, the node will transform the operation
|
|
889
889
|
*
|
|
890
|
-
* pixel =
|
|
890
|
+
* pixel = color_matrix * pixel + color_offset
|
|
891
891
|
*
|
|
892
|
-
* for every pixel.
|
|
893
|
-
* colors, with color components ordered R, G, B, A.
|
|
892
|
+
* for every pixel.
|
|
894
893
|
* @constructor
|
|
895
894
|
* @param child The node to draw
|
|
896
895
|
* @param color_matrix The matrix to apply
|
|
@@ -902,12 +901,11 @@ class ColorMatrixNode extends RenderNode {
|
|
|
902
901
|
* Creates a `GskRenderNode` that will drawn the `child` with
|
|
903
902
|
* `color_matrix`.
|
|
904
903
|
*
|
|
905
|
-
* In particular, the node will transform
|
|
904
|
+
* In particular, the node will transform the operation
|
|
906
905
|
*
|
|
907
|
-
* pixel =
|
|
906
|
+
* pixel = color_matrix * pixel + color_offset
|
|
908
907
|
*
|
|
909
|
-
* for every pixel.
|
|
910
|
-
* colors, with color components ordered R, G, B, A.
|
|
908
|
+
* for every pixel.
|
|
911
909
|
* @constructor
|
|
912
910
|
* @param child The node to draw
|
|
913
911
|
* @param color_matrix The matrix to apply
|
|
@@ -1153,7 +1151,7 @@ interface DebugNode {
|
|
|
1153
1151
|
* Gets the debug message that was set on this node
|
|
1154
1152
|
* @returns The debug message
|
|
1155
1153
|
*/
|
|
1156
|
-
get_message(): string
|
|
1154
|
+
get_message(): string
|
|
1157
1155
|
}
|
|
1158
1156
|
|
|
1159
1157
|
/**
|
|
@@ -1301,7 +1299,7 @@ interface GLShader {
|
|
|
1301
1299
|
* @param name uniform name
|
|
1302
1300
|
* @returns The index of the uniform, or -1
|
|
1303
1301
|
*/
|
|
1304
|
-
find_uniform_by_name(name: string
|
|
1302
|
+
find_uniform_by_name(name: string): number
|
|
1305
1303
|
/**
|
|
1306
1304
|
* Gets the value of the uniform `idx` in the `args` block.
|
|
1307
1305
|
*
|
|
@@ -1400,7 +1398,7 @@ interface GLShader {
|
|
|
1400
1398
|
* @param idx index of the uniform
|
|
1401
1399
|
* @returns The name of the declared uniform
|
|
1402
1400
|
*/
|
|
1403
|
-
get_uniform_name(idx: number): string
|
|
1401
|
+
get_uniform_name(idx: number): string
|
|
1404
1402
|
/**
|
|
1405
1403
|
* Get the offset into the data block where data for this uniforms is stored.
|
|
1406
1404
|
* @param idx index of the uniform
|
|
@@ -1567,7 +1565,7 @@ class GLShader extends GObject.Object {
|
|
|
1567
1565
|
* @param resource_path path to a resource that contains the GLSL sourcecode for the shader
|
|
1568
1566
|
* @returns A new `GskGLShader`
|
|
1569
1567
|
*/
|
|
1570
|
-
static new_from_resource(resource_path: string
|
|
1568
|
+
static new_from_resource(resource_path: string): GLShader
|
|
1571
1569
|
_init(config?: GLShader.ConstructorProperties): void
|
|
1572
1570
|
}
|
|
1573
1571
|
|
|
@@ -3325,8 +3323,7 @@ interface Transform {
|
|
|
3325
3323
|
*/
|
|
3326
3324
|
ref(): Transform | null
|
|
3327
3325
|
/**
|
|
3328
|
-
* Rotates `next` `angle` degrees in 2D - or in 3D-speak, around the
|
|
3329
|
-
* The rotation happens around the origin point of (0, 0).
|
|
3326
|
+
* Rotates `next` `angle` degrees in 2D - or in 3D-speak, around the z axis.
|
|
3330
3327
|
* @param angle the rotation angle, in degrees (clockwise)
|
|
3331
3328
|
* @returns The new transform
|
|
3332
3329
|
*/
|
|
@@ -3522,7 +3519,7 @@ class Transform {
|
|
|
3522
3519
|
* @param string the string to parse
|
|
3523
3520
|
* @returns %TRUE if @string described a valid transform.
|
|
3524
3521
|
*/
|
|
3525
|
-
static parse(string: string
|
|
3522
|
+
static parse(string: string): [ /* returnType */ boolean, /* out_transform */ Transform ]
|
|
3526
3523
|
}
|
|
3527
3524
|
|
|
3528
3525
|
/**
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gsk-4.0",
|
|
3
|
-
"version": "4.0.0-3.2.
|
|
3
|
+
"version": "4.0.0-3.2.8",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gsk-4.0, generated from library version 4.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gsk-4.0.js",
|
|
7
7
|
"main": "gsk-4.0.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./gsk-4.0-ambient.d.ts",
|
|
11
|
+
"default": "./gsk-4.0-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./gsk-4.0-import.d.ts",
|
|
15
|
+
"default": "./gsk-4.0-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./gsk-4.0.d.ts",
|
|
@@ -25,19 +31,19 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gsk-4.0.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
29
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
30
|
-
"@girs/gdk-4.0": "^4.0.0-3.2.
|
|
31
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
32
|
-
"@girs/gio-2.0": "^2.
|
|
33
|
-
"@girs/gjs": "^3.2.
|
|
34
|
-
"@girs/glib-2.0": "^2.
|
|
35
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
36
|
-
"@girs/gobject-2.0": "^2.
|
|
37
|
-
"@girs/graphene-1.0": "^1.0.0-3.2.
|
|
38
|
-
"@girs/harfbuzz-0.0": "^8.
|
|
39
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
40
|
-
"@girs/pangocairo-1.0": "^1.0.0-3.2.
|
|
34
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.8",
|
|
35
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.8",
|
|
36
|
+
"@girs/gdk-4.0": "^4.0.0-3.2.8",
|
|
37
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.8",
|
|
38
|
+
"@girs/gio-2.0": "^2.77.0-3.2.8",
|
|
39
|
+
"@girs/gjs": "^3.2.8",
|
|
40
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
41
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.8",
|
|
42
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8",
|
|
43
|
+
"@girs/graphene-1.0": "^1.0.0-3.2.8",
|
|
44
|
+
"@girs/harfbuzz-0.0": "^8.1.1-3.2.8",
|
|
45
|
+
"@girs/pango-1.0": "^1.51.0-3.2.8",
|
|
46
|
+
"@girs/pangocairo-1.0": "^1.0.0-3.2.8"
|
|
41
47
|
},
|
|
42
48
|
"devDependencies": {
|
|
43
49
|
"typescript": "*"
|
|
@@ -54,7 +60,7 @@
|
|
|
54
60
|
"license": "MIT",
|
|
55
61
|
"repository": {
|
|
56
62
|
"type": "git",
|
|
57
|
-
"url": "git+https://github.com/gjsify/
|
|
63
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
58
64
|
},
|
|
59
65
|
"bugs": {
|
|
60
66
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|