@girs/gegl-0.3 0.3.35-3.2.4 → 0.3.35-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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gegl-0.3)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gegl-0.3, generated from library version 0.3.35 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.4.
8
+ GJS TypeScript type definitions for Gegl-0.3, generated from library version 0.3.35 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
9
9
 
10
10
  GEGL (Generic Graphics Library) is a data flow based image processing framework, providing floating point processing and non-destructive image processing capabilities to GNU Image Manipulation Program and other projects (imgflo, GNOME Photos, gcut, iconographer, …)
11
11
 
@@ -82,6 +82,19 @@ Now you have also type support for this, too:
82
82
  const Gegl = imports.gi.Gegl;
83
83
  ```
84
84
 
85
+
86
+ ### ESM vs. CommonJS
87
+
88
+ GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
89
+
90
+ 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.
91
+
92
+ 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.
93
+
94
+ 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.
95
+
96
+ 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.
97
+
85
98
  ### Bundle
86
99
 
87
100
  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).
@@ -1,9 +1,12 @@
1
1
 
2
-
3
2
  declare module 'gi://Gegl?version=0.3' {
4
3
  import Gegl03 from '@girs/gegl-0.3';
5
4
  export default Gegl03;
6
5
  }
7
6
 
7
+ declare module 'gi://Gegl' {
8
+ import Gegl03 from '@girs/gegl-0.3';
9
+ export default Gegl03;
10
+ }
8
11
 
9
12
 
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  import Gegl03 from '@girs/gegl-0.3';
4
3
 
5
4
  declare global {
package/gegl-0.3.d.cts CHANGED
@@ -522,6 +522,14 @@ export module Buffer {
522
522
  width?: number | null
523
523
  x?: number | null
524
524
  y?: number | null
525
+ abyssHeight?: number | null
526
+ abyssWidth?: number | null
527
+ abyssX?: number | null
528
+ abyssY?: number | null
529
+ shiftX?: number | null
530
+ shiftY?: number | null
531
+ tileHeight?: number | null
532
+ tileWidth?: number | null
525
533
  }
526
534
 
527
535
  }
@@ -531,19 +539,28 @@ export interface Buffer {
531
539
  // Own properties of Gegl-0.3.Gegl.Buffer
532
540
 
533
541
  readonly abyss_height: number
542
+ readonly abyssHeight: number
534
543
  readonly abyss_width: number
544
+ readonly abyssWidth: number
535
545
  readonly abyss_x: number
546
+ readonly abyssX: number
536
547
  readonly abyss_y: number
548
+ readonly abyssY: number
537
549
  readonly backend: TileBackend
538
550
  format: any
539
551
  height: number
540
552
  readonly path: string | null
541
553
  readonly pixels: number
542
554
  readonly px_size: number
555
+ readonly pxSize: number
543
556
  readonly shift_x: number
557
+ readonly shiftX: number
544
558
  readonly shift_y: number
559
+ readonly shiftY: number
545
560
  readonly tile_height: number
561
+ readonly tileHeight: number
546
562
  readonly tile_width: number
563
+ readonly tileWidth: number
547
564
  width: number
548
565
  x: number
549
566
  y: number
@@ -932,6 +949,13 @@ export module Config {
932
949
  tile_height?: number | null
933
950
  tile_width?: number | null
934
951
  use_opencl?: boolean | null
952
+ applicationLicense?: string | null
953
+ chunkSize?: number | null
954
+ queueSize?: number | null
955
+ tileCacheSize?: number | null
956
+ tileHeight?: number | null
957
+ tileWidth?: number | null
958
+ useOpencl?: boolean | null
935
959
  }
936
960
 
937
961
  }
@@ -941,15 +965,22 @@ export interface Config {
941
965
  // Own properties of Gegl-0.3.Gegl.Config
942
966
 
943
967
  application_license: string | null
968
+ applicationLicense: string | null
944
969
  chunk_size: number
970
+ chunkSize: number
945
971
  quality: number
946
972
  queue_size: number
973
+ queueSize: number
947
974
  swap: string | null
948
975
  threads: number
949
976
  tile_cache_size: number
977
+ tileCacheSize: number
950
978
  tile_height: number
979
+ tileHeight: number
951
980
  tile_width: number
981
+ tileWidth: number
952
982
  use_opencl: boolean
983
+ useOpencl: boolean
953
984
 
954
985
  // Class property signals of Gegl-0.3.Gegl.Config
955
986
 
@@ -1149,6 +1180,9 @@ export module Node {
1149
1180
  operation?: string | null
1150
1181
  passthrough?: boolean | null
1151
1182
  use_opencl?: boolean | null
1183
+ dontCache?: boolean | null
1184
+ geglOperation?: Operation | null
1185
+ useOpencl?: boolean | null
1152
1186
  }
1153
1187
 
1154
1188
  }
@@ -1158,11 +1192,14 @@ export interface Node {
1158
1192
  // Own properties of Gegl-0.3.Gegl.Node
1159
1193
 
1160
1194
  dont_cache: boolean
1195
+ dontCache: boolean
1161
1196
  gegl_operation: Operation
1197
+ geglOperation: Operation
1162
1198
  name: string | null
1163
1199
  operation: string | null
1164
1200
  passthrough: boolean
1165
1201
  use_opencl: boolean
1202
+ useOpencl: boolean
1166
1203
 
1167
1204
  // Owm methods of Gegl-0.3.Gegl.Node
1168
1205
 
@@ -1927,14 +1964,23 @@ export interface Stats {
1927
1964
  // Own properties of Gegl-0.3.Gegl.Stats
1928
1965
 
1929
1966
  readonly swap_busy: boolean
1967
+ readonly swapBusy: boolean
1930
1968
  readonly swap_file_size: number
1969
+ readonly swapFileSize: number
1931
1970
  readonly swap_total: number
1971
+ readonly swapTotal: number
1932
1972
  readonly tile_cache_hits: number
1973
+ readonly tileCacheHits: number
1933
1974
  readonly tile_cache_misses: number
1975
+ readonly tileCacheMisses: number
1934
1976
  readonly tile_cache_total: number
1977
+ readonly tileCacheTotal: number
1935
1978
  readonly tile_cache_total_max: number
1979
+ readonly tileCacheTotalMax: number
1936
1980
  readonly tile_cache_total_uncloned: number
1981
+ readonly tileCacheTotalUncloned: number
1937
1982
  readonly zoom_total: number
1983
+ readonly zoomTotal: number
1938
1984
 
1939
1985
  // Class property signals of Gegl-0.3.Gegl.Stats
1940
1986
 
@@ -1996,6 +2042,9 @@ export module TileBackend {
1996
2042
  format?: any | null
1997
2043
  tile_height?: number | null
1998
2044
  tile_width?: number | null
2045
+ flushOnDestroy?: boolean | null
2046
+ tileHeight?: number | null
2047
+ tileWidth?: number | null
1999
2048
  }
2000
2049
 
2001
2050
  }
@@ -2005,11 +2054,16 @@ export interface TileBackend {
2005
2054
  // Own properties of Gegl-0.3.Gegl.TileBackend
2006
2055
 
2007
2056
  flush_on_destroy: boolean
2057
+ flushOnDestroy: boolean
2008
2058
  readonly format: any
2009
2059
  readonly px_size: number
2060
+ readonly pxSize: number
2010
2061
  readonly tile_height: number
2062
+ readonly tileHeight: number
2011
2063
  readonly tile_size: number
2064
+ readonly tileSize: number
2012
2065
  readonly tile_width: number
2066
+ readonly tileWidth: number
2013
2067
 
2014
2068
  // Own fields of Gegl-0.3.Gegl.TileBackend
2015
2069
 
package/gegl-0.3.d.ts CHANGED
@@ -524,6 +524,14 @@ module Buffer {
524
524
  width?: number | null
525
525
  x?: number | null
526
526
  y?: number | null
527
+ abyssHeight?: number | null
528
+ abyssWidth?: number | null
529
+ abyssX?: number | null
530
+ abyssY?: number | null
531
+ shiftX?: number | null
532
+ shiftY?: number | null
533
+ tileHeight?: number | null
534
+ tileWidth?: number | null
527
535
  }
528
536
 
529
537
  }
@@ -533,19 +541,28 @@ interface Buffer {
533
541
  // Own properties of Gegl-0.3.Gegl.Buffer
534
542
 
535
543
  readonly abyss_height: number
544
+ readonly abyssHeight: number
536
545
  readonly abyss_width: number
546
+ readonly abyssWidth: number
537
547
  readonly abyss_x: number
548
+ readonly abyssX: number
538
549
  readonly abyss_y: number
550
+ readonly abyssY: number
539
551
  readonly backend: TileBackend
540
552
  format: any
541
553
  height: number
542
554
  readonly path: string | null
543
555
  readonly pixels: number
544
556
  readonly px_size: number
557
+ readonly pxSize: number
545
558
  readonly shift_x: number
559
+ readonly shiftX: number
546
560
  readonly shift_y: number
561
+ readonly shiftY: number
547
562
  readonly tile_height: number
563
+ readonly tileHeight: number
548
564
  readonly tile_width: number
565
+ readonly tileWidth: number
549
566
  width: number
550
567
  x: number
551
568
  y: number
@@ -934,6 +951,13 @@ module Config {
934
951
  tile_height?: number | null
935
952
  tile_width?: number | null
936
953
  use_opencl?: boolean | null
954
+ applicationLicense?: string | null
955
+ chunkSize?: number | null
956
+ queueSize?: number | null
957
+ tileCacheSize?: number | null
958
+ tileHeight?: number | null
959
+ tileWidth?: number | null
960
+ useOpencl?: boolean | null
937
961
  }
938
962
 
939
963
  }
@@ -943,15 +967,22 @@ interface Config {
943
967
  // Own properties of Gegl-0.3.Gegl.Config
944
968
 
945
969
  application_license: string | null
970
+ applicationLicense: string | null
946
971
  chunk_size: number
972
+ chunkSize: number
947
973
  quality: number
948
974
  queue_size: number
975
+ queueSize: number
949
976
  swap: string | null
950
977
  threads: number
951
978
  tile_cache_size: number
979
+ tileCacheSize: number
952
980
  tile_height: number
981
+ tileHeight: number
953
982
  tile_width: number
983
+ tileWidth: number
954
984
  use_opencl: boolean
985
+ useOpencl: boolean
955
986
 
956
987
  // Class property signals of Gegl-0.3.Gegl.Config
957
988
 
@@ -1151,6 +1182,9 @@ module Node {
1151
1182
  operation?: string | null
1152
1183
  passthrough?: boolean | null
1153
1184
  use_opencl?: boolean | null
1185
+ dontCache?: boolean | null
1186
+ geglOperation?: Operation | null
1187
+ useOpencl?: boolean | null
1154
1188
  }
1155
1189
 
1156
1190
  }
@@ -1160,11 +1194,14 @@ interface Node {
1160
1194
  // Own properties of Gegl-0.3.Gegl.Node
1161
1195
 
1162
1196
  dont_cache: boolean
1197
+ dontCache: boolean
1163
1198
  gegl_operation: Operation
1199
+ geglOperation: Operation
1164
1200
  name: string | null
1165
1201
  operation: string | null
1166
1202
  passthrough: boolean
1167
1203
  use_opencl: boolean
1204
+ useOpencl: boolean
1168
1205
 
1169
1206
  // Owm methods of Gegl-0.3.Gegl.Node
1170
1207
 
@@ -1929,14 +1966,23 @@ interface Stats {
1929
1966
  // Own properties of Gegl-0.3.Gegl.Stats
1930
1967
 
1931
1968
  readonly swap_busy: boolean
1969
+ readonly swapBusy: boolean
1932
1970
  readonly swap_file_size: number
1971
+ readonly swapFileSize: number
1933
1972
  readonly swap_total: number
1973
+ readonly swapTotal: number
1934
1974
  readonly tile_cache_hits: number
1975
+ readonly tileCacheHits: number
1935
1976
  readonly tile_cache_misses: number
1977
+ readonly tileCacheMisses: number
1936
1978
  readonly tile_cache_total: number
1979
+ readonly tileCacheTotal: number
1937
1980
  readonly tile_cache_total_max: number
1981
+ readonly tileCacheTotalMax: number
1938
1982
  readonly tile_cache_total_uncloned: number
1983
+ readonly tileCacheTotalUncloned: number
1939
1984
  readonly zoom_total: number
1985
+ readonly zoomTotal: number
1940
1986
 
1941
1987
  // Class property signals of Gegl-0.3.Gegl.Stats
1942
1988
 
@@ -1998,6 +2044,9 @@ module TileBackend {
1998
2044
  format?: any | null
1999
2045
  tile_height?: number | null
2000
2046
  tile_width?: number | null
2047
+ flushOnDestroy?: boolean | null
2048
+ tileHeight?: number | null
2049
+ tileWidth?: number | null
2001
2050
  }
2002
2051
 
2003
2052
  }
@@ -2007,11 +2056,16 @@ interface TileBackend {
2007
2056
  // Own properties of Gegl-0.3.Gegl.TileBackend
2008
2057
 
2009
2058
  flush_on_destroy: boolean
2059
+ flushOnDestroy: boolean
2010
2060
  readonly format: any
2011
2061
  readonly px_size: number
2062
+ readonly pxSize: number
2012
2063
  readonly tile_height: number
2064
+ readonly tileHeight: number
2013
2065
  readonly tile_size: number
2066
+ readonly tileSize: number
2014
2067
  readonly tile_width: number
2068
+ readonly tileWidth: number
2015
2069
 
2016
2070
  // Own fields of Gegl-0.3.Gegl.TileBackend
2017
2071
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gegl-0.3",
3
- "version": "0.3.35-3.2.4",
3
+ "version": "0.3.35-3.2.6",
4
4
  "description": "GJS TypeScript type definitions for Gegl-0.3, generated from library version 0.3.35",
5
5
  "type": "module",
6
6
  "module": "gegl-0.3.js",
@@ -25,9 +25,9 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gegl-0.3.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gjs": "^3.2.4",
29
- "@girs/glib-2.0": "^2.78.0-3.2.4",
30
- "@girs/gobject-2.0": "^2.78.0-3.2.4"
28
+ "@girs/gjs": "^3.2.6",
29
+ "@girs/glib-2.0": "^2.78.0-3.2.6",
30
+ "@girs/gobject-2.0": "^2.78.0-3.2.6"
31
31
  },
32
32
  "devDependencies": {
33
33
  "typescript": "*"