@girs/gsk-4.0 4.0.0-3.2.7 → 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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gsk-4.0)
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.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.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/gsk-4.0.d.cts CHANGED
@@ -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 colors by applying
886
+ * In particular, the node will transform the operation
887
887
  *
888
- * pixel = transpose(color_matrix) * pixel + color_offset
888
+ * pixel = color_matrix * pixel + color_offset
889
889
  *
890
- * for every pixel. The transformation operates on unpremultiplied
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 colors by applying
902
+ * In particular, the node will transform the operation
904
903
  *
905
- * pixel = transpose(color_matrix) * pixel + color_offset
904
+ * pixel = color_matrix * pixel + color_offset
906
905
  *
907
- * for every pixel. The transformation operates on unpremultiplied
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
@@ -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 Z axis.
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
  */
package/gsk-4.0.d.ts CHANGED
@@ -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 colors by applying
888
+ * In particular, the node will transform the operation
889
889
  *
890
- * pixel = transpose(color_matrix) * pixel + color_offset
890
+ * pixel = color_matrix * pixel + color_offset
891
891
  *
892
- * for every pixel. The transformation operates on unpremultiplied
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 colors by applying
904
+ * In particular, the node will transform the operation
906
905
  *
907
- * pixel = transpose(color_matrix) * pixel + color_offset
906
+ * pixel = color_matrix * pixel + color_offset
908
907
  *
909
- * for every pixel. The transformation operates on unpremultiplied
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
@@ -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 Z axis.
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
  */
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/gsk-4.0",
3
- "version": "4.0.0-3.2.7",
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": "./gsk-4.0-ambient.d.ts",
10
- "./import": "./gsk-4.0-import.d.ts",
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.7",
29
- "@girs/freetype2-2.0": "^2.0.0-3.2.7",
30
- "@girs/gdk-4.0": "^4.0.0-3.2.7",
31
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
32
- "@girs/gio-2.0": "^2.78.0-3.2.7",
33
- "@girs/gjs": "^3.2.7",
34
- "@girs/glib-2.0": "^2.78.0-3.2.7",
35
- "@girs/gmodule-2.0": "^2.0.0-3.2.7",
36
- "@girs/gobject-2.0": "^2.78.0-3.2.7",
37
- "@girs/graphene-1.0": "^1.0.0-3.2.7",
38
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
39
- "@girs/pango-1.0": "^1.51.0-3.2.7",
40
- "@girs/pangocairo-1.0": "^1.0.0-3.2.7"
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/types.git"
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"