@girs/gegl-0.3 0.3.35-3.2.6 → 0.3.35-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/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.6.
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.8.
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
 
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/gegl-0.3.d.cts CHANGED
@@ -177,7 +177,7 @@ export function config(): Config
177
177
  * @param rel_dim relative dimension to scale rel suffixed values by
178
178
  * @param path_root path in filesystem to use as relative root
179
179
  */
180
- export function create_chain(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
180
+ export function create_chain(ops: string, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string): void
181
181
  /**
182
182
  * Create a node chain from argv style list of op data.
183
183
  * @param ops an argv style, NULL terminated array of arguments
@@ -187,7 +187,7 @@ export function create_chain(ops: string | null, op_start: Node, op_end: Node, t
187
187
  * @param rel_dim relative dimension to scale rel suffixed values by
188
188
  * @param path_root path in filesystem to use as relative root
189
189
  */
190
- export function create_chain_argv(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
190
+ export function create_chain_argv(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string): void
191
191
  /**
192
192
  * Call this function when you're done using GEGL. It will clean up
193
193
  * caches and write/dump debug information if the correct debug flags
@@ -200,7 +200,7 @@ export function exit(): void
200
200
  * @param format_name A Babl format name, e.g. "RGBA float"
201
201
  * @returns the format pointer
202
202
  */
203
- export function format(format_name: string | null): any | null
203
+ export function format(format_name: string): any | null
204
204
  export function format_get_name(format: any): string | null
205
205
  /**
206
206
  * This function fetches the version of the GEGL library being used by
@@ -219,7 +219,7 @@ export function graph_dump_outputs(node: Node): void
219
219
  * @param roi The request rectangle
220
220
  */
221
221
  export function graph_dump_request(node: Node, roi: Rectangle): void
222
- export function has_operation(operation_type: string | null): boolean
222
+ export function has_operation(operation_type: string): boolean
223
223
  /**
224
224
  * Call this function before using any other GEGL functions. It will
225
225
  * initialize everything needed to operate GEGL and parses some
@@ -239,7 +239,7 @@ export function list_operations(): string[]
239
239
  * Load all gegl modules found in the given directory.
240
240
  * @param path the directory to load modules from
241
241
  */
242
- export function load_module_directory(path: string | null): void
242
+ export function load_module_directory(path: string): void
243
243
  /**
244
244
  * Creates a new #GParamSpec instance specifying a #GeglAudioFragment property.
245
245
  * @param name canonical name of the property specified
@@ -248,7 +248,7 @@ export function load_module_directory(path: string | null): void
248
248
  * @param flags flags for the property specified
249
249
  * @returns a newly created parameter specification
250
250
  */
251
- export function param_spec_audio_fragment(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
251
+ export function param_spec_audio_fragment(name: string, nick: string, blurb: string, flags: GObject.ParamFlags): GObject.ParamSpec
252
252
  /**
253
253
  * Creates a new #GParamSpec instance specifying a #GeglColor property.
254
254
  * @param name canonical name of the property specified
@@ -258,7 +258,7 @@ export function param_spec_audio_fragment(name: string | null, nick: string | nu
258
258
  * @param flags flags for the property specified
259
259
  * @returns a newly created parameter specification
260
260
  */
261
- export function param_spec_color(name: string | null, nick: string | null, blurb: string | null, default_color: Color, flags: GObject.ParamFlags): GObject.ParamSpec
261
+ export function param_spec_color(name: string, nick: string, blurb: string, default_color: Color, flags: GObject.ParamFlags): GObject.ParamSpec
262
262
  /**
263
263
  * Creates a new #GParamSpec instance specifying a #GeglColor property.
264
264
  * @param name canonical name of the property specified
@@ -268,7 +268,7 @@ export function param_spec_color(name: string | null, nick: string | null, blurb
268
268
  * @param flags flags for the property specified
269
269
  * @returns a newly created parameter specification
270
270
  */
271
- export function param_spec_color_from_string(name: string | null, nick: string | null, blurb: string | null, default_color_string: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
271
+ export function param_spec_color_from_string(name: string, nick: string, blurb: string, default_color_string: string, flags: GObject.ParamFlags): GObject.ParamSpec
272
272
  /**
273
273
  * Get the default color value of the param spec
274
274
  * @param self a #GeglColor #GParamSpec
@@ -284,7 +284,7 @@ export function param_spec_color_get_default(self: GObject.ParamSpec): Color
284
284
  * @param flags flags for the property specified
285
285
  * @returns a newly created parameter specification
286
286
  */
287
- export function param_spec_curve(name: string | null, nick: string | null, blurb: string | null, default_curve: Curve, flags: GObject.ParamFlags): GObject.ParamSpec
287
+ export function param_spec_curve(name: string, nick: string, blurb: string, default_curve: Curve, flags: GObject.ParamFlags): GObject.ParamSpec
288
288
  /**
289
289
  * Creates a new #GeglParamSpecDouble instance.
290
290
  * @param name canonical name of the property specified
@@ -299,7 +299,7 @@ export function param_spec_curve(name: string | null, nick: string | null, blurb
299
299
  * @param flags flags for the property specified
300
300
  * @returns a newly created parameter specification
301
301
  */
302
- export function param_spec_double(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
302
+ export function param_spec_double(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
303
303
  /**
304
304
  * Creates a new #GeglParamSpecEnum instance.
305
305
  * @param name canonical name of the property specified
@@ -310,7 +310,7 @@ export function param_spec_double(name: string | null, nick: string | null, blur
310
310
  * @param flags flags for the property specified
311
311
  * @returns a newly created parameter specification
312
312
  */
313
- export function param_spec_enum(name: string | null, nick: string | null, blurb: string | null, enum_type: GObject.GType, default_value: number, flags: GObject.ParamFlags): GObject.ParamSpec
313
+ export function param_spec_enum(name: string, nick: string, blurb: string, enum_type: GObject.GType, default_value: number, flags: GObject.ParamFlags): GObject.ParamSpec
314
314
  /**
315
315
  * Creates a new #GeglParamSpecFilePath instance.
316
316
  * @param name canonical name of the property specified
@@ -322,7 +322,7 @@ export function param_spec_enum(name: string | null, nick: string | null, blurb:
322
322
  * @param flags flags for the property specified
323
323
  * @returns a newly created parameter specification
324
324
  */
325
- export function param_spec_file_path(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
325
+ export function param_spec_file_path(name: string, nick: string, blurb: string, no_validate: boolean, null_ok: boolean, default_value: string, flags: GObject.ParamFlags): GObject.ParamSpec
326
326
  /**
327
327
  * Creates a new #GeglParamSpecFormat instance specifying a Babl format.
328
328
  * @param name canonical name of the property specified
@@ -331,8 +331,8 @@ export function param_spec_file_path(name: string | null, nick: string | null, b
331
331
  * @param flags flags for the property specified
332
332
  * @returns a newly created parameter specification
333
333
  */
334
- export function param_spec_format(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
335
- export function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name: string | null): string | null
334
+ export function param_spec_format(name: string, nick: string, blurb: string, flags: GObject.ParamFlags): GObject.ParamSpec
335
+ export function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name: string): string
336
336
  /**
337
337
  * Creates a new #GeglParamSpecInt instance.
338
338
  * @param name canonical name of the property specified
@@ -347,7 +347,7 @@ export function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name:
347
347
  * @param flags flags for the property specified
348
348
  * @returns a newly created parameter specification
349
349
  */
350
- export function param_spec_int(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
350
+ export function param_spec_int(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
351
351
  /**
352
352
  * Creates a new #GParamSpec instance specifying a #GeglPath property.
353
353
  * @param name canonical name of the property specified
@@ -357,7 +357,7 @@ export function param_spec_int(name: string | null, nick: string | null, blurb:
357
357
  * @param flags flags for the property specified
358
358
  * @returns a newly created parameter specification
359
359
  */
360
- export function param_spec_path(name: string | null, nick: string | null, blurb: string | null, default_path: Path, flags: GObject.ParamFlags): GObject.ParamSpec
360
+ export function param_spec_path(name: string, nick: string, blurb: string, default_path: Path, flags: GObject.ParamFlags): GObject.ParamSpec
361
361
  /**
362
362
  * Creates a new #GeglParamSpecSeed instance specifying an integer random seed.
363
363
  * @param name canonical name of the property specified
@@ -366,8 +366,8 @@ export function param_spec_path(name: string | null, nick: string | null, blurb:
366
366
  * @param flags flags for the property specified
367
367
  * @returns a newly created parameter specification
368
368
  */
369
- export function param_spec_seed(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
370
- export function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name: string | null, value: string | null): void
369
+ export function param_spec_seed(name: string, nick: string, blurb: string, flags: GObject.ParamFlags): GObject.ParamSpec
370
+ export function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name: string, value: string): void
371
371
  /**
372
372
  * Creates a new #GeglParamSpecString instance.
373
373
  * @param name canonical name of the property specified
@@ -379,7 +379,7 @@ export function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name:
379
379
  * @param flags flags for the property specified
380
380
  * @returns a newly created parameter specification
381
381
  */
382
- export function param_spec_string(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
382
+ export function param_spec_string(name: string, nick: string, blurb: string, no_validate: boolean, null_ok: boolean, default_value: string, flags: GObject.ParamFlags): GObject.ParamSpec
383
383
  /**
384
384
  * Creates a new #GeglParamSpecUri instance.
385
385
  * @param name canonical name of the property specified
@@ -391,7 +391,7 @@ export function param_spec_string(name: string | null, nick: string | null, blur
391
391
  * @param flags flags for the property specified
392
392
  * @returns a newly created parameter specification
393
393
  */
394
- export function param_spec_uri(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
394
+ export function param_spec_uri(name: string, nick: string, blurb: string, no_validate: boolean, null_ok: boolean, default_value: string, flags: GObject.ParamFlags): GObject.ParamSpec
395
395
  /**
396
396
  * Returns a GeglRectangle that represents an infininte plane.
397
397
  */
@@ -401,7 +401,7 @@ export function rectangle_infinite_plane(): Rectangle
401
401
  * by #gegl_stats().
402
402
  */
403
403
  export function reset_stats(): void
404
- export function serialize(start: Node, end: Node, basepath: string | null, serialize_flags: SerializeFlag): string | null
404
+ export function serialize(start: Node, end: Node, basepath: string, serialize_flags: SerializeFlag): string | null
405
405
  /**
406
406
  * Returns a GeglStats object with properties that can be read to monitor
407
407
  * GEGL statistics.
@@ -507,29 +507,21 @@ export module Buffer {
507
507
 
508
508
  // Own constructor properties of Gegl-0.3.Gegl.Buffer
509
509
 
510
- abyss_height?: number | null
511
- abyss_width?: number | null
512
- abyss_x?: number | null
513
- abyss_y?: number | null
514
- backend?: TileBackend | null
515
- format?: any | null
516
- height?: number | null
517
- path?: string | null
518
- shift_x?: number | null
519
- shift_y?: number | null
520
- tile_height?: number | null
521
- tile_width?: number | null
522
- width?: number | null
523
- x?: number | null
524
- y?: number | null
525
510
  abyssHeight?: number | null
526
511
  abyssWidth?: number | null
527
512
  abyssX?: number | null
528
513
  abyssY?: number | null
514
+ backend?: TileBackend | null
515
+ format?: any | null
516
+ height?: number | null
517
+ path?: string | null
529
518
  shiftX?: number | null
530
519
  shiftY?: number | null
531
520
  tileHeight?: number | null
532
521
  tileWidth?: number | null
522
+ width?: number | null
523
+ x?: number | null
524
+ y?: number | null
533
525
  }
534
526
 
535
527
  }
@@ -538,28 +530,19 @@ export interface Buffer {
538
530
 
539
531
  // Own properties of Gegl-0.3.Gegl.Buffer
540
532
 
541
- readonly abyss_height: number
542
533
  readonly abyssHeight: number
543
- readonly abyss_width: number
544
534
  readonly abyssWidth: number
545
- readonly abyss_x: number
546
535
  readonly abyssX: number
547
- readonly abyss_y: number
548
536
  readonly abyssY: number
549
537
  readonly backend: TileBackend
550
538
  format: any
551
539
  height: number
552
540
  readonly path: string | null
553
541
  readonly pixels: number
554
- readonly px_size: number
555
542
  readonly pxSize: number
556
- readonly shift_x: number
557
543
  readonly shiftX: number
558
- readonly shift_y: number
559
544
  readonly shiftY: number
560
- readonly tile_height: number
561
545
  readonly tileHeight: number
562
- readonly tile_width: number
563
546
  readonly tileWidth: number
564
547
  width: number
565
548
  x: number
@@ -639,7 +622,7 @@ export interface Buffer {
639
622
  * @param format_name the format of the input data.
640
623
  * @param src pixel data to write to `buffer`.
641
624
  */
642
- set(rect: Rectangle, format_name: string | null, src: Uint8Array): void
625
+ set(rect: Rectangle, format_name: string, src: Uint8Array): void
643
626
  /**
644
627
  * This function makes sure GeglBuffer and underlying code is aware of changes
645
628
  * being made to the linear buffer. If the request was not a compatible one
@@ -665,7 +648,7 @@ export interface Buffer {
665
648
  * @param path the path where the gegl buffer will be saved, any writable GIO uri is valid.
666
649
  * @param roi the region of interest to write, this is the tiles that will be collected and written to disk.
667
650
  */
668
- save(path: string | null, roi: Rectangle): void
651
+ save(path: string, roi: Rectangle): void
669
652
  /**
670
653
  * Changes the size and position of the abyss rectangle of a buffer.
671
654
  *
@@ -708,7 +691,7 @@ export interface Buffer {
708
691
  * @param c_handler c function callback
709
692
  * @returns an handle like g_signal_connect.
710
693
  */
711
- signal_connect(detailed_signal: string | null, c_handler: GObject.Callback): number
694
+ signal_connect(detailed_signal: string, c_handler: GObject.Callback): number
712
695
 
713
696
  // Own signals of Gegl-0.3.Gegl.Buffer
714
697
 
@@ -794,7 +777,7 @@ export class Buffer extends TileHandler {
794
777
  * @param width width of the buffer's extent
795
778
  * @param height height of the buffer's extent
796
779
  */
797
- constructor(format_name: string | null, x: number, y: number, width: number, height: number)
780
+ constructor(format_name: string, x: number, y: number, width: number, height: number)
798
781
  /**
799
782
  * Create a new GeglBuffer with the given format and dimensions.
800
783
  * @constructor
@@ -804,7 +787,7 @@ export class Buffer extends TileHandler {
804
787
  * @param width width of the buffer's extent
805
788
  * @param height height of the buffer's extent
806
789
  */
807
- static new(format_name: string | null, x: number, y: number, width: number, height: number): Buffer
790
+ static new(format_name: string, x: number, y: number, width: number, height: number): Buffer
808
791
  /**
809
792
  * Create a new GeglBuffer from a backend, if NULL is passed in the extent of
810
793
  * the buffer will be inherited from the extent of the backend.
@@ -823,7 +806,7 @@ export class Buffer extends TileHandler {
823
806
  * @param path the path to a gegl buffer on disk.
824
807
  * @returns a #GeglBuffer object.
825
808
  */
826
- static load(path: string | null): Buffer
809
+ static load(path: string): Buffer
827
810
  /**
828
811
  * Open an existing on-disk GeglBuffer, this buffer is opened in a monitored
829
812
  * state so multiple instances of gegl can share the same buffer. Sets on
@@ -831,7 +814,7 @@ export class Buffer extends TileHandler {
831
814
  * @param path the path to a gegl buffer on disk.
832
815
  * @returns a GeglBuffer object.
833
816
  */
834
- static open(path: string | null): Buffer
817
+ static open(path: string): Buffer
835
818
  }
836
819
 
837
820
  export module Color {
@@ -919,7 +902,7 @@ export class Color extends GObject.Object {
919
902
  * @constructor
920
903
  * @param string a string describing the color to be created.
921
904
  */
922
- constructor(string: string | null)
905
+ constructor(string: string)
923
906
  /**
924
907
  * Creates a new #GeglColor.
925
908
  *
@@ -927,7 +910,7 @@ export class Color extends GObject.Object {
927
910
  * @constructor
928
911
  * @param string a string describing the color to be created.
929
912
  */
930
- static new(string: string | null): Color
913
+ static new(string: string): Color
931
914
  _init(config?: Color.ConstructorProperties): void
932
915
  }
933
916
 
@@ -939,19 +922,12 @@ export module Config {
939
922
 
940
923
  // Own constructor properties of Gegl-0.3.Gegl.Config
941
924
 
942
- application_license?: string | null
943
- chunk_size?: number | null
944
- quality?: number | null
945
- queue_size?: number | null
946
- swap?: string | null
947
- threads?: number | null
948
- tile_cache_size?: number | null
949
- tile_height?: number | null
950
- tile_width?: number | null
951
- use_opencl?: boolean | null
952
925
  applicationLicense?: string | null
953
926
  chunkSize?: number | null
927
+ quality?: number | null
954
928
  queueSize?: number | null
929
+ swap?: string | null
930
+ threads?: number | null
955
931
  tileCacheSize?: number | null
956
932
  tileHeight?: number | null
957
933
  tileWidth?: number | null
@@ -964,22 +940,15 @@ export interface Config {
964
940
 
965
941
  // Own properties of Gegl-0.3.Gegl.Config
966
942
 
967
- application_license: string | null
968
943
  applicationLicense: string | null
969
- chunk_size: number
970
944
  chunkSize: number
971
945
  quality: number
972
- queue_size: number
973
946
  queueSize: number
974
947
  swap: string | null
975
948
  threads: number
976
- tile_cache_size: number
977
949
  tileCacheSize: number
978
- tile_height: number
979
950
  tileHeight: number
980
- tile_width: number
981
951
  tileWidth: number
982
- use_opencl: boolean
983
952
  useOpencl: boolean
984
953
 
985
954
  // Class property signals of Gegl-0.3.Gegl.Config
@@ -1174,14 +1143,11 @@ export module Node {
1174
1143
 
1175
1144
  // Own constructor properties of Gegl-0.3.Gegl.Node
1176
1145
 
1177
- dont_cache?: boolean | null
1178
- gegl_operation?: Operation | null
1146
+ dontCache?: boolean | null
1147
+ geglOperation?: Operation | null
1179
1148
  name?: string | null
1180
1149
  operation?: string | null
1181
1150
  passthrough?: boolean | null
1182
- use_opencl?: boolean | null
1183
- dontCache?: boolean | null
1184
- geglOperation?: Operation | null
1185
1151
  useOpencl?: boolean | null
1186
1152
  }
1187
1153
 
@@ -1191,14 +1157,11 @@ export interface Node {
1191
1157
 
1192
1158
  // Own properties of Gegl-0.3.Gegl.Node
1193
1159
 
1194
- dont_cache: boolean
1195
1160
  dontCache: boolean
1196
- gegl_operation: Operation
1197
1161
  geglOperation: Operation
1198
1162
  name: string | null
1199
1163
  operation: string | null
1200
1164
  passthrough: boolean
1201
- use_opencl: boolean
1202
1165
  useOpencl: boolean
1203
1166
 
1204
1167
  // Owm methods of Gegl-0.3.Gegl.Node
@@ -1226,7 +1189,7 @@ export interface Node {
1226
1189
  * @param source the node producing data we want to connect.
1227
1190
  * @param output_pad_name the output pad we want to use on the source.
1228
1191
  */
1229
- connect_from(input_pad_name: string | null, source: Node, output_pad_name: string | null): boolean
1192
+ connect_from(input_pad_name: string, source: Node, output_pad_name: string): boolean
1230
1193
  /**
1231
1194
  * Makes a connection between the pads of two nodes.
1232
1195
  *
@@ -1235,7 +1198,7 @@ export interface Node {
1235
1198
  * @param sink the node we're connecting an input to
1236
1199
  * @param input_pad_name the name of the input pad we are connecting to
1237
1200
  */
1238
- connect_to(output_pad_name: string | null, sink: Node, input_pad_name: string | null): boolean
1201
+ connect_to(output_pad_name: string, sink: Node, input_pad_name: string): boolean
1239
1202
  /**
1240
1203
  * Creates a new processing node that performs the specified operation.
1241
1204
  * All properties of the operation will have their default values. This
@@ -1245,7 +1208,7 @@ export interface Node {
1245
1208
  * @param operation the type of node to create.
1246
1209
  * @returns a newly created node. The node will be destroyed by the parent. Calling g_object_unref on a node will cause the node to be dropped by the parent. (You may also add additional references using g_object_ref/g_object_unref, but in general relying on the parents reference counting is easiest.)
1247
1210
  */
1248
- create_child(operation: string | null): Node
1211
+ create_child(operation: string): Node
1249
1212
  /**
1250
1213
  * Performs hit detection by returning the node providing data at a given
1251
1214
  * coordinate pair. Currently operates only on bounding boxes and not
@@ -1261,8 +1224,8 @@ export interface Node {
1261
1224
  * Returns TRUE if a connection was broken.
1262
1225
  * @param input_pad the input pad to disconnect.
1263
1226
  */
1264
- disconnect(input_pad: string | null): boolean
1265
- find_property(property_name: string | null): GObject.ParamSpec
1227
+ disconnect(input_pad: string): boolean
1228
+ find_property(property_name: string): GObject.ParamSpec
1266
1229
  get_children(): Node[]
1267
1230
  /**
1268
1231
  * Retrieve which pads on which nodes are connected to a named output_pad,
@@ -1273,7 +1236,7 @@ export interface Node {
1273
1236
  * Returns the number of consumers connected to this output_pad.
1274
1237
  * @param output_pad the output pad we want to know who uses.
1275
1238
  */
1276
- get_consumers(output_pad: string | null): [ /* returnType */ number, /* nodes */ Node[], /* pads */ string[] ]
1239
+ get_consumers(output_pad: string): [ /* returnType */ number, /* nodes */ Node[], /* pads */ string[] ]
1277
1240
  get_gegl_operation(): Operation | null
1278
1241
  /**
1279
1242
  * Proxies are used to route between nodes of a subgraph contained within
@@ -1281,34 +1244,34 @@ export interface Node {
1281
1244
  * @param pad_name the name of the pad.
1282
1245
  * @returns Returns an input proxy for the named pad. If no input proxy exists with this name a new one will be created.
1283
1246
  */
1284
- get_input_proxy(pad_name: string | null): Node
1285
- get_operation(): string | null
1247
+ get_input_proxy(pad_name: string): Node
1248
+ get_operation(): string
1286
1249
  /**
1287
1250
  * Proxies are used to route between nodes of a subgraph contained within
1288
1251
  * a node.
1289
1252
  * @param pad_name the name of the pad.
1290
1253
  * @returns Returns a output proxy for the named pad. If no output proxy exists with this name a new one will be created.
1291
1254
  */
1292
- get_output_proxy(pad_name: string | null): Node
1255
+ get_output_proxy(pad_name: string): Node
1293
1256
  /**
1294
1257
  * Returns a GeglNode that keeps a reference on a child.
1295
1258
  * @returns the parent of a node or NULL.
1296
1259
  */
1297
1260
  get_parent(): Node
1298
1261
  get_passthrough(): boolean
1299
- get_producer(input_pad_name: string | null, output_pad_name: string | null): Node
1262
+ get_producer(input_pad_name: string, output_pad_name: string | null): Node
1300
1263
  /**
1301
1264
  * Returns TRUE if the node has a pad with the specified name
1302
1265
  * @param pad_name the pad name we are looking for
1303
1266
  */
1304
- has_pad(pad_name: string | null): boolean
1267
+ has_pad(pad_name: string): boolean
1305
1268
  /**
1306
1269
  * Returns the position and dimensions of a rectangle spanning the area
1307
1270
  * defined by a node.
1308
1271
  * @returns pointer a #GeglRectangle
1309
1272
  */
1310
1273
  get_bounding_box(): Rectangle
1311
- get_property(property_name: string | null): any
1274
+ get_property(property_name: string): any
1312
1275
 
1313
1276
  // Overloads of get_property
1314
1277
 
@@ -1332,7 +1295,7 @@ export interface Node {
1332
1295
  * @param property_name the name of the property to get
1333
1296
  * @param value return location for the property value
1334
1297
  */
1335
- get_property(property_name: string | null, value: any): void
1298
+ get_property(property_name: string, value: any): void
1336
1299
  /**
1337
1300
  * Synthetic sugar for linking the "output" pad of `source` to the "input"
1338
1301
  * pad of `sink`.
@@ -1403,7 +1366,7 @@ export interface Node {
1403
1366
  * @param property_name the name of the property to set
1404
1367
  * @param value a GValue containing the value to be set in the property.
1405
1368
  */
1406
- set_property(property_name: string | null, value: any): void
1369
+ set_property(property_name: string, value: any): void
1407
1370
  /**
1408
1371
  * Returns a freshly allocated \0 terminated string containing a XML
1409
1372
  * serialization of the composition produced by a node (and thus also
@@ -1413,7 +1376,7 @@ export interface Node {
1413
1376
  * for the serialization.
1414
1377
  * @param path_root filesystem path to construct relative paths from.
1415
1378
  */
1416
- to_xml(path_root: string | null): string | null
1379
+ to_xml(path_root: string): string | null
1417
1380
  /**
1418
1381
  * Returns a freshly allocated \0 terminated string containing a XML
1419
1382
  * serialization of a segment of a graph from `head` to `tail` nodes.
@@ -1422,7 +1385,7 @@ export interface Node {
1422
1385
  * @param path_root filesystem path to construct relative paths from.
1423
1386
  * @returns XML serialization of a graph segment.
1424
1387
  */
1425
- to_xml_full(tail: Node | null, path_root: string | null): string | null
1388
+ to_xml_full(tail: Node | null, path_root: string): string | null
1426
1389
 
1427
1390
  // Own signals of Gegl-0.3.Gegl.Node
1428
1391
 
@@ -1492,8 +1455,8 @@ export class Node extends GObject.Object {
1492
1455
  * @param path the path to a file on the local file system to be parsed.
1493
1456
  * @returns a GeglNode containing the parsed XML as a subgraph.
1494
1457
  */
1495
- static new_from_file(path: string | null): Node
1496
- static new_from_serialized(chaindata: string | null, path_root: string | null): Node
1458
+ static new_from_file(path: string): Node
1459
+ static new_from_serialized(chaindata: string, path_root: string): Node
1497
1460
  /**
1498
1461
  * The #GeglNode returned contains the graph described by the tree of stacks
1499
1462
  * in the XML document. The tree is connected to the "output" pad of the
@@ -1503,7 +1466,7 @@ export class Node extends GObject.Object {
1503
1466
  * @param path_root a file system path that relative paths in the XML will be resolved in relation to.
1504
1467
  * @returns a GeglNode containing the parsed XML as a subgraph.
1505
1468
  */
1506
- static new_from_xml(xmldata: string | null, path_root: string | null): Node
1469
+ static new_from_xml(xmldata: string, path_root: string): Node
1507
1470
  _init(config?: Node.ConstructorProperties): void
1508
1471
  }
1509
1472
 
@@ -1537,13 +1500,13 @@ export class Operation extends GObject.Object {
1537
1500
 
1538
1501
  constructor(config?: Operation.ConstructorProperties)
1539
1502
  _init(config?: Operation.ConstructorProperties): void
1540
- static find_property(operation_type: string | null, property_name: string | null): GObject.ParamSpec
1541
- static get_key(operation_type: string | null, key_name: string | null): string | null
1542
- static get_op_version(op_name: string | null): string | null
1543
- static get_property_key(operation_type: string | null, property_name: string | null, property_key_name: string | null): string | null
1544
- static list_keys(operation_type: string | null): string[]
1545
- static list_properties(operation_type: string | null): GObject.ParamSpec[]
1546
- static list_property_keys(operation_type: string | null, property_name: string | null): string[]
1503
+ static find_property(operation_type: string, property_name: string): GObject.ParamSpec
1504
+ static get_key(operation_type: string, key_name: string): string
1505
+ static get_op_version(op_name: string): string
1506
+ static get_property_key(operation_type: string, property_name: string, property_key_name: string): string
1507
+ static list_keys(operation_type: string): string[]
1508
+ static list_properties(operation_type: string): GObject.ParamSpec[]
1509
+ static list_property_keys(operation_type: string, property_name: string): string[]
1547
1510
  }
1548
1511
 
1549
1512
  export interface ParamAudioFragment {
@@ -1778,7 +1741,7 @@ export interface Path {
1778
1741
  * gegl_path_clean() first if you want to replace the existing path.
1779
1742
  * @param instructions a string describing a path.
1780
1743
  */
1781
- parse_string(instructions: string | null): void
1744
+ parse_string(instructions: string): void
1782
1745
  /**
1783
1746
  * Removes the node number `pos` in `path`.
1784
1747
  * @param pos a node in the path.
@@ -1855,7 +1818,7 @@ export class Path extends GObject.Object {
1855
1818
  * @constructor
1856
1819
  * @param instructions a string describing the path.
1857
1820
  */
1858
- static new_from_string(instructions: string | null): Path
1821
+ static new_from_string(instructions: string): Path
1859
1822
  _init(config?: Path.ConstructorProperties): void
1860
1823
  /**
1861
1824
  * Adds a new type to the path system, FIXME this should probably
@@ -1865,7 +1828,7 @@ export class Path extends GObject.Object {
1865
1828
  * @param items the number of floating point data items the instruction takes
1866
1829
  * @param description a human readable description of this entry
1867
1830
  */
1868
- static add_type(type: number, items: number, description: string | null): void
1831
+ static add_type(type: number, items: number, description: string): void
1869
1832
  }
1870
1833
 
1871
1834
  export module Processor {
@@ -1963,23 +1926,14 @@ export interface Stats {
1963
1926
 
1964
1927
  // Own properties of Gegl-0.3.Gegl.Stats
1965
1928
 
1966
- readonly swap_busy: boolean
1967
1929
  readonly swapBusy: boolean
1968
- readonly swap_file_size: number
1969
1930
  readonly swapFileSize: number
1970
- readonly swap_total: number
1971
1931
  readonly swapTotal: number
1972
- readonly tile_cache_hits: number
1973
1932
  readonly tileCacheHits: number
1974
- readonly tile_cache_misses: number
1975
1933
  readonly tileCacheMisses: number
1976
- readonly tile_cache_total: number
1977
1934
  readonly tileCacheTotal: number
1978
- readonly tile_cache_total_max: number
1979
1935
  readonly tileCacheTotalMax: number
1980
- readonly tile_cache_total_uncloned: number
1981
1936
  readonly tileCacheTotalUncloned: number
1982
- readonly zoom_total: number
1983
1937
  readonly zoomTotal: number
1984
1938
 
1985
1939
  // Class property signals of Gegl-0.3.Gegl.Stats
@@ -2038,11 +1992,8 @@ export module TileBackend {
2038
1992
 
2039
1993
  // Own constructor properties of Gegl-0.3.Gegl.TileBackend
2040
1994
 
2041
- flush_on_destroy?: boolean | null
2042
- format?: any | null
2043
- tile_height?: number | null
2044
- tile_width?: number | null
2045
1995
  flushOnDestroy?: boolean | null
1996
+ format?: any | null
2046
1997
  tileHeight?: number | null
2047
1998
  tileWidth?: number | null
2048
1999
  }
@@ -2053,16 +2004,11 @@ export interface TileBackend {
2053
2004
 
2054
2005
  // Own properties of Gegl-0.3.Gegl.TileBackend
2055
2006
 
2056
- flush_on_destroy: boolean
2057
2007
  flushOnDestroy: boolean
2058
2008
  readonly format: any
2059
- readonly px_size: number
2060
2009
  readonly pxSize: number
2061
- readonly tile_height: number
2062
2010
  readonly tileHeight: number
2063
- readonly tile_size: number
2064
2011
  readonly tileSize: number
2065
- readonly tile_width: number
2066
2012
  readonly tileWidth: number
2067
2013
 
2068
2014
  // Own fields of Gegl-0.3.Gegl.TileBackend
@@ -2436,7 +2382,7 @@ export interface Matrix3 {
2436
2382
  * Parse a transofmation matrix from a string.
2437
2383
  * @param string a string describing the matrix (right now a small subset of the transform strings allowed by SVG)
2438
2384
  */
2439
- parse_string(string: string | null): void
2385
+ parse_string(string: string): void
2440
2386
  /**
2441
2387
  * Serialize a #GeglMatrix3 to a string.
2442
2388
  *
package/gegl-0.3.d.ts CHANGED
@@ -179,7 +179,7 @@ function config(): Config
179
179
  * @param rel_dim relative dimension to scale rel suffixed values by
180
180
  * @param path_root path in filesystem to use as relative root
181
181
  */
182
- function create_chain(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
182
+ function create_chain(ops: string, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string): void
183
183
  /**
184
184
  * Create a node chain from argv style list of op data.
185
185
  * @param ops an argv style, NULL terminated array of arguments
@@ -189,7 +189,7 @@ function create_chain(ops: string | null, op_start: Node, op_end: Node, time: nu
189
189
  * @param rel_dim relative dimension to scale rel suffixed values by
190
190
  * @param path_root path in filesystem to use as relative root
191
191
  */
192
- function create_chain_argv(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string | null): void
192
+ function create_chain_argv(ops: string | null, op_start: Node, op_end: Node, time: number, rel_dim: number, path_root: string): void
193
193
  /**
194
194
  * Call this function when you're done using GEGL. It will clean up
195
195
  * caches and write/dump debug information if the correct debug flags
@@ -202,7 +202,7 @@ function exit(): void
202
202
  * @param format_name A Babl format name, e.g. "RGBA float"
203
203
  * @returns the format pointer
204
204
  */
205
- function format(format_name: string | null): any | null
205
+ function format(format_name: string): any | null
206
206
  function format_get_name(format: any): string | null
207
207
  /**
208
208
  * This function fetches the version of the GEGL library being used by
@@ -221,7 +221,7 @@ function graph_dump_outputs(node: Node): void
221
221
  * @param roi The request rectangle
222
222
  */
223
223
  function graph_dump_request(node: Node, roi: Rectangle): void
224
- function has_operation(operation_type: string | null): boolean
224
+ function has_operation(operation_type: string): boolean
225
225
  /**
226
226
  * Call this function before using any other GEGL functions. It will
227
227
  * initialize everything needed to operate GEGL and parses some
@@ -241,7 +241,7 @@ function list_operations(): string[]
241
241
  * Load all gegl modules found in the given directory.
242
242
  * @param path the directory to load modules from
243
243
  */
244
- function load_module_directory(path: string | null): void
244
+ function load_module_directory(path: string): void
245
245
  /**
246
246
  * Creates a new #GParamSpec instance specifying a #GeglAudioFragment property.
247
247
  * @param name canonical name of the property specified
@@ -250,7 +250,7 @@ function load_module_directory(path: string | null): void
250
250
  * @param flags flags for the property specified
251
251
  * @returns a newly created parameter specification
252
252
  */
253
- function param_spec_audio_fragment(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
253
+ function param_spec_audio_fragment(name: string, nick: string, blurb: string, flags: GObject.ParamFlags): GObject.ParamSpec
254
254
  /**
255
255
  * Creates a new #GParamSpec instance specifying a #GeglColor property.
256
256
  * @param name canonical name of the property specified
@@ -260,7 +260,7 @@ function param_spec_audio_fragment(name: string | null, nick: string | null, blu
260
260
  * @param flags flags for the property specified
261
261
  * @returns a newly created parameter specification
262
262
  */
263
- function param_spec_color(name: string | null, nick: string | null, blurb: string | null, default_color: Color, flags: GObject.ParamFlags): GObject.ParamSpec
263
+ function param_spec_color(name: string, nick: string, blurb: string, default_color: Color, flags: GObject.ParamFlags): GObject.ParamSpec
264
264
  /**
265
265
  * Creates a new #GParamSpec instance specifying a #GeglColor property.
266
266
  * @param name canonical name of the property specified
@@ -270,7 +270,7 @@ function param_spec_color(name: string | null, nick: string | null, blurb: strin
270
270
  * @param flags flags for the property specified
271
271
  * @returns a newly created parameter specification
272
272
  */
273
- function param_spec_color_from_string(name: string | null, nick: string | null, blurb: string | null, default_color_string: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
273
+ function param_spec_color_from_string(name: string, nick: string, blurb: string, default_color_string: string, flags: GObject.ParamFlags): GObject.ParamSpec
274
274
  /**
275
275
  * Get the default color value of the param spec
276
276
  * @param self a #GeglColor #GParamSpec
@@ -286,7 +286,7 @@ function param_spec_color_get_default(self: GObject.ParamSpec): Color
286
286
  * @param flags flags for the property specified
287
287
  * @returns a newly created parameter specification
288
288
  */
289
- function param_spec_curve(name: string | null, nick: string | null, blurb: string | null, default_curve: Curve, flags: GObject.ParamFlags): GObject.ParamSpec
289
+ function param_spec_curve(name: string, nick: string, blurb: string, default_curve: Curve, flags: GObject.ParamFlags): GObject.ParamSpec
290
290
  /**
291
291
  * Creates a new #GeglParamSpecDouble instance.
292
292
  * @param name canonical name of the property specified
@@ -301,7 +301,7 @@ function param_spec_curve(name: string | null, nick: string | null, blurb: strin
301
301
  * @param flags flags for the property specified
302
302
  * @returns a newly created parameter specification
303
303
  */
304
- function param_spec_double(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
304
+ function param_spec_double(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
305
305
  /**
306
306
  * Creates a new #GeglParamSpecEnum instance.
307
307
  * @param name canonical name of the property specified
@@ -312,7 +312,7 @@ function param_spec_double(name: string | null, nick: string | null, blurb: stri
312
312
  * @param flags flags for the property specified
313
313
  * @returns a newly created parameter specification
314
314
  */
315
- function param_spec_enum(name: string | null, nick: string | null, blurb: string | null, enum_type: GObject.GType, default_value: number, flags: GObject.ParamFlags): GObject.ParamSpec
315
+ function param_spec_enum(name: string, nick: string, blurb: string, enum_type: GObject.GType, default_value: number, flags: GObject.ParamFlags): GObject.ParamSpec
316
316
  /**
317
317
  * Creates a new #GeglParamSpecFilePath instance.
318
318
  * @param name canonical name of the property specified
@@ -324,7 +324,7 @@ function param_spec_enum(name: string | null, nick: string | null, blurb: string
324
324
  * @param flags flags for the property specified
325
325
  * @returns a newly created parameter specification
326
326
  */
327
- function param_spec_file_path(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
327
+ function param_spec_file_path(name: string, nick: string, blurb: string, no_validate: boolean, null_ok: boolean, default_value: string, flags: GObject.ParamFlags): GObject.ParamSpec
328
328
  /**
329
329
  * Creates a new #GeglParamSpecFormat instance specifying a Babl format.
330
330
  * @param name canonical name of the property specified
@@ -333,8 +333,8 @@ function param_spec_file_path(name: string | null, nick: string | null, blurb: s
333
333
  * @param flags flags for the property specified
334
334
  * @returns a newly created parameter specification
335
335
  */
336
- function param_spec_format(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
337
- function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name: string | null): string | null
336
+ function param_spec_format(name: string, nick: string, blurb: string, flags: GObject.ParamFlags): GObject.ParamSpec
337
+ function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name: string): string
338
338
  /**
339
339
  * Creates a new #GeglParamSpecInt instance.
340
340
  * @param name canonical name of the property specified
@@ -349,7 +349,7 @@ function param_spec_get_property_key(pspec: GObject.ParamSpec, key_name: string
349
349
  * @param flags flags for the property specified
350
350
  * @returns a newly created parameter specification
351
351
  */
352
- function param_spec_int(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
352
+ function param_spec_int(name: string, nick: string, blurb: string, minimum: number, maximum: number, default_value: number, ui_minimum: number, ui_maximum: number, ui_gamma: number, flags: GObject.ParamFlags): GObject.ParamSpec
353
353
  /**
354
354
  * Creates a new #GParamSpec instance specifying a #GeglPath property.
355
355
  * @param name canonical name of the property specified
@@ -359,7 +359,7 @@ function param_spec_int(name: string | null, nick: string | null, blurb: string
359
359
  * @param flags flags for the property specified
360
360
  * @returns a newly created parameter specification
361
361
  */
362
- function param_spec_path(name: string | null, nick: string | null, blurb: string | null, default_path: Path, flags: GObject.ParamFlags): GObject.ParamSpec
362
+ function param_spec_path(name: string, nick: string, blurb: string, default_path: Path, flags: GObject.ParamFlags): GObject.ParamSpec
363
363
  /**
364
364
  * Creates a new #GeglParamSpecSeed instance specifying an integer random seed.
365
365
  * @param name canonical name of the property specified
@@ -368,8 +368,8 @@ function param_spec_path(name: string | null, nick: string | null, blurb: string
368
368
  * @param flags flags for the property specified
369
369
  * @returns a newly created parameter specification
370
370
  */
371
- function param_spec_seed(name: string | null, nick: string | null, blurb: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
372
- function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name: string | null, value: string | null): void
371
+ function param_spec_seed(name: string, nick: string, blurb: string, flags: GObject.ParamFlags): GObject.ParamSpec
372
+ function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name: string, value: string): void
373
373
  /**
374
374
  * Creates a new #GeglParamSpecString instance.
375
375
  * @param name canonical name of the property specified
@@ -381,7 +381,7 @@ function param_spec_set_property_key(pspec: GObject.ParamSpec, key_name: string
381
381
  * @param flags flags for the property specified
382
382
  * @returns a newly created parameter specification
383
383
  */
384
- function param_spec_string(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
384
+ function param_spec_string(name: string, nick: string, blurb: string, no_validate: boolean, null_ok: boolean, default_value: string, flags: GObject.ParamFlags): GObject.ParamSpec
385
385
  /**
386
386
  * Creates a new #GeglParamSpecUri instance.
387
387
  * @param name canonical name of the property specified
@@ -393,7 +393,7 @@ function param_spec_string(name: string | null, nick: string | null, blurb: stri
393
393
  * @param flags flags for the property specified
394
394
  * @returns a newly created parameter specification
395
395
  */
396
- function param_spec_uri(name: string | null, nick: string | null, blurb: string | null, no_validate: boolean, null_ok: boolean, default_value: string | null, flags: GObject.ParamFlags): GObject.ParamSpec
396
+ function param_spec_uri(name: string, nick: string, blurb: string, no_validate: boolean, null_ok: boolean, default_value: string, flags: GObject.ParamFlags): GObject.ParamSpec
397
397
  /**
398
398
  * Returns a GeglRectangle that represents an infininte plane.
399
399
  */
@@ -403,7 +403,7 @@ function rectangle_infinite_plane(): Rectangle
403
403
  * by #gegl_stats().
404
404
  */
405
405
  function reset_stats(): void
406
- function serialize(start: Node, end: Node, basepath: string | null, serialize_flags: SerializeFlag): string | null
406
+ function serialize(start: Node, end: Node, basepath: string, serialize_flags: SerializeFlag): string | null
407
407
  /**
408
408
  * Returns a GeglStats object with properties that can be read to monitor
409
409
  * GEGL statistics.
@@ -509,29 +509,21 @@ module Buffer {
509
509
 
510
510
  // Own constructor properties of Gegl-0.3.Gegl.Buffer
511
511
 
512
- abyss_height?: number | null
513
- abyss_width?: number | null
514
- abyss_x?: number | null
515
- abyss_y?: number | null
516
- backend?: TileBackend | null
517
- format?: any | null
518
- height?: number | null
519
- path?: string | null
520
- shift_x?: number | null
521
- shift_y?: number | null
522
- tile_height?: number | null
523
- tile_width?: number | null
524
- width?: number | null
525
- x?: number | null
526
- y?: number | null
527
512
  abyssHeight?: number | null
528
513
  abyssWidth?: number | null
529
514
  abyssX?: number | null
530
515
  abyssY?: number | null
516
+ backend?: TileBackend | null
517
+ format?: any | null
518
+ height?: number | null
519
+ path?: string | null
531
520
  shiftX?: number | null
532
521
  shiftY?: number | null
533
522
  tileHeight?: number | null
534
523
  tileWidth?: number | null
524
+ width?: number | null
525
+ x?: number | null
526
+ y?: number | null
535
527
  }
536
528
 
537
529
  }
@@ -540,28 +532,19 @@ interface Buffer {
540
532
 
541
533
  // Own properties of Gegl-0.3.Gegl.Buffer
542
534
 
543
- readonly abyss_height: number
544
535
  readonly abyssHeight: number
545
- readonly abyss_width: number
546
536
  readonly abyssWidth: number
547
- readonly abyss_x: number
548
537
  readonly abyssX: number
549
- readonly abyss_y: number
550
538
  readonly abyssY: number
551
539
  readonly backend: TileBackend
552
540
  format: any
553
541
  height: number
554
542
  readonly path: string | null
555
543
  readonly pixels: number
556
- readonly px_size: number
557
544
  readonly pxSize: number
558
- readonly shift_x: number
559
545
  readonly shiftX: number
560
- readonly shift_y: number
561
546
  readonly shiftY: number
562
- readonly tile_height: number
563
547
  readonly tileHeight: number
564
- readonly tile_width: number
565
548
  readonly tileWidth: number
566
549
  width: number
567
550
  x: number
@@ -641,7 +624,7 @@ interface Buffer {
641
624
  * @param format_name the format of the input data.
642
625
  * @param src pixel data to write to `buffer`.
643
626
  */
644
- set(rect: Rectangle, format_name: string | null, src: Uint8Array): void
627
+ set(rect: Rectangle, format_name: string, src: Uint8Array): void
645
628
  /**
646
629
  * This function makes sure GeglBuffer and underlying code is aware of changes
647
630
  * being made to the linear buffer. If the request was not a compatible one
@@ -667,7 +650,7 @@ interface Buffer {
667
650
  * @param path the path where the gegl buffer will be saved, any writable GIO uri is valid.
668
651
  * @param roi the region of interest to write, this is the tiles that will be collected and written to disk.
669
652
  */
670
- save(path: string | null, roi: Rectangle): void
653
+ save(path: string, roi: Rectangle): void
671
654
  /**
672
655
  * Changes the size and position of the abyss rectangle of a buffer.
673
656
  *
@@ -710,7 +693,7 @@ interface Buffer {
710
693
  * @param c_handler c function callback
711
694
  * @returns an handle like g_signal_connect.
712
695
  */
713
- signal_connect(detailed_signal: string | null, c_handler: GObject.Callback): number
696
+ signal_connect(detailed_signal: string, c_handler: GObject.Callback): number
714
697
 
715
698
  // Own signals of Gegl-0.3.Gegl.Buffer
716
699
 
@@ -796,7 +779,7 @@ class Buffer extends TileHandler {
796
779
  * @param width width of the buffer's extent
797
780
  * @param height height of the buffer's extent
798
781
  */
799
- constructor(format_name: string | null, x: number, y: number, width: number, height: number)
782
+ constructor(format_name: string, x: number, y: number, width: number, height: number)
800
783
  /**
801
784
  * Create a new GeglBuffer with the given format and dimensions.
802
785
  * @constructor
@@ -806,7 +789,7 @@ class Buffer extends TileHandler {
806
789
  * @param width width of the buffer's extent
807
790
  * @param height height of the buffer's extent
808
791
  */
809
- static new(format_name: string | null, x: number, y: number, width: number, height: number): Buffer
792
+ static new(format_name: string, x: number, y: number, width: number, height: number): Buffer
810
793
  /**
811
794
  * Create a new GeglBuffer from a backend, if NULL is passed in the extent of
812
795
  * the buffer will be inherited from the extent of the backend.
@@ -825,7 +808,7 @@ class Buffer extends TileHandler {
825
808
  * @param path the path to a gegl buffer on disk.
826
809
  * @returns a #GeglBuffer object.
827
810
  */
828
- static load(path: string | null): Buffer
811
+ static load(path: string): Buffer
829
812
  /**
830
813
  * Open an existing on-disk GeglBuffer, this buffer is opened in a monitored
831
814
  * state so multiple instances of gegl can share the same buffer. Sets on
@@ -833,7 +816,7 @@ class Buffer extends TileHandler {
833
816
  * @param path the path to a gegl buffer on disk.
834
817
  * @returns a GeglBuffer object.
835
818
  */
836
- static open(path: string | null): Buffer
819
+ static open(path: string): Buffer
837
820
  }
838
821
 
839
822
  module Color {
@@ -921,7 +904,7 @@ class Color extends GObject.Object {
921
904
  * @constructor
922
905
  * @param string a string describing the color to be created.
923
906
  */
924
- constructor(string: string | null)
907
+ constructor(string: string)
925
908
  /**
926
909
  * Creates a new #GeglColor.
927
910
  *
@@ -929,7 +912,7 @@ class Color extends GObject.Object {
929
912
  * @constructor
930
913
  * @param string a string describing the color to be created.
931
914
  */
932
- static new(string: string | null): Color
915
+ static new(string: string): Color
933
916
  _init(config?: Color.ConstructorProperties): void
934
917
  }
935
918
 
@@ -941,19 +924,12 @@ module Config {
941
924
 
942
925
  // Own constructor properties of Gegl-0.3.Gegl.Config
943
926
 
944
- application_license?: string | null
945
- chunk_size?: number | null
946
- quality?: number | null
947
- queue_size?: number | null
948
- swap?: string | null
949
- threads?: number | null
950
- tile_cache_size?: number | null
951
- tile_height?: number | null
952
- tile_width?: number | null
953
- use_opencl?: boolean | null
954
927
  applicationLicense?: string | null
955
928
  chunkSize?: number | null
929
+ quality?: number | null
956
930
  queueSize?: number | null
931
+ swap?: string | null
932
+ threads?: number | null
957
933
  tileCacheSize?: number | null
958
934
  tileHeight?: number | null
959
935
  tileWidth?: number | null
@@ -966,22 +942,15 @@ interface Config {
966
942
 
967
943
  // Own properties of Gegl-0.3.Gegl.Config
968
944
 
969
- application_license: string | null
970
945
  applicationLicense: string | null
971
- chunk_size: number
972
946
  chunkSize: number
973
947
  quality: number
974
- queue_size: number
975
948
  queueSize: number
976
949
  swap: string | null
977
950
  threads: number
978
- tile_cache_size: number
979
951
  tileCacheSize: number
980
- tile_height: number
981
952
  tileHeight: number
982
- tile_width: number
983
953
  tileWidth: number
984
- use_opencl: boolean
985
954
  useOpencl: boolean
986
955
 
987
956
  // Class property signals of Gegl-0.3.Gegl.Config
@@ -1176,14 +1145,11 @@ module Node {
1176
1145
 
1177
1146
  // Own constructor properties of Gegl-0.3.Gegl.Node
1178
1147
 
1179
- dont_cache?: boolean | null
1180
- gegl_operation?: Operation | null
1148
+ dontCache?: boolean | null
1149
+ geglOperation?: Operation | null
1181
1150
  name?: string | null
1182
1151
  operation?: string | null
1183
1152
  passthrough?: boolean | null
1184
- use_opencl?: boolean | null
1185
- dontCache?: boolean | null
1186
- geglOperation?: Operation | null
1187
1153
  useOpencl?: boolean | null
1188
1154
  }
1189
1155
 
@@ -1193,14 +1159,11 @@ interface Node {
1193
1159
 
1194
1160
  // Own properties of Gegl-0.3.Gegl.Node
1195
1161
 
1196
- dont_cache: boolean
1197
1162
  dontCache: boolean
1198
- gegl_operation: Operation
1199
1163
  geglOperation: Operation
1200
1164
  name: string | null
1201
1165
  operation: string | null
1202
1166
  passthrough: boolean
1203
- use_opencl: boolean
1204
1167
  useOpencl: boolean
1205
1168
 
1206
1169
  // Owm methods of Gegl-0.3.Gegl.Node
@@ -1228,7 +1191,7 @@ interface Node {
1228
1191
  * @param source the node producing data we want to connect.
1229
1192
  * @param output_pad_name the output pad we want to use on the source.
1230
1193
  */
1231
- connect_from(input_pad_name: string | null, source: Node, output_pad_name: string | null): boolean
1194
+ connect_from(input_pad_name: string, source: Node, output_pad_name: string): boolean
1232
1195
  /**
1233
1196
  * Makes a connection between the pads of two nodes.
1234
1197
  *
@@ -1237,7 +1200,7 @@ interface Node {
1237
1200
  * @param sink the node we're connecting an input to
1238
1201
  * @param input_pad_name the name of the input pad we are connecting to
1239
1202
  */
1240
- connect_to(output_pad_name: string | null, sink: Node, input_pad_name: string | null): boolean
1203
+ connect_to(output_pad_name: string, sink: Node, input_pad_name: string): boolean
1241
1204
  /**
1242
1205
  * Creates a new processing node that performs the specified operation.
1243
1206
  * All properties of the operation will have their default values. This
@@ -1247,7 +1210,7 @@ interface Node {
1247
1210
  * @param operation the type of node to create.
1248
1211
  * @returns a newly created node. The node will be destroyed by the parent. Calling g_object_unref on a node will cause the node to be dropped by the parent. (You may also add additional references using g_object_ref/g_object_unref, but in general relying on the parents reference counting is easiest.)
1249
1212
  */
1250
- create_child(operation: string | null): Node
1213
+ create_child(operation: string): Node
1251
1214
  /**
1252
1215
  * Performs hit detection by returning the node providing data at a given
1253
1216
  * coordinate pair. Currently operates only on bounding boxes and not
@@ -1263,8 +1226,8 @@ interface Node {
1263
1226
  * Returns TRUE if a connection was broken.
1264
1227
  * @param input_pad the input pad to disconnect.
1265
1228
  */
1266
- disconnect(input_pad: string | null): boolean
1267
- find_property(property_name: string | null): GObject.ParamSpec
1229
+ disconnect(input_pad: string): boolean
1230
+ find_property(property_name: string): GObject.ParamSpec
1268
1231
  get_children(): Node[]
1269
1232
  /**
1270
1233
  * Retrieve which pads on which nodes are connected to a named output_pad,
@@ -1275,7 +1238,7 @@ interface Node {
1275
1238
  * Returns the number of consumers connected to this output_pad.
1276
1239
  * @param output_pad the output pad we want to know who uses.
1277
1240
  */
1278
- get_consumers(output_pad: string | null): [ /* returnType */ number, /* nodes */ Node[], /* pads */ string[] ]
1241
+ get_consumers(output_pad: string): [ /* returnType */ number, /* nodes */ Node[], /* pads */ string[] ]
1279
1242
  get_gegl_operation(): Operation | null
1280
1243
  /**
1281
1244
  * Proxies are used to route between nodes of a subgraph contained within
@@ -1283,34 +1246,34 @@ interface Node {
1283
1246
  * @param pad_name the name of the pad.
1284
1247
  * @returns Returns an input proxy for the named pad. If no input proxy exists with this name a new one will be created.
1285
1248
  */
1286
- get_input_proxy(pad_name: string | null): Node
1287
- get_operation(): string | null
1249
+ get_input_proxy(pad_name: string): Node
1250
+ get_operation(): string
1288
1251
  /**
1289
1252
  * Proxies are used to route between nodes of a subgraph contained within
1290
1253
  * a node.
1291
1254
  * @param pad_name the name of the pad.
1292
1255
  * @returns Returns a output proxy for the named pad. If no output proxy exists with this name a new one will be created.
1293
1256
  */
1294
- get_output_proxy(pad_name: string | null): Node
1257
+ get_output_proxy(pad_name: string): Node
1295
1258
  /**
1296
1259
  * Returns a GeglNode that keeps a reference on a child.
1297
1260
  * @returns the parent of a node or NULL.
1298
1261
  */
1299
1262
  get_parent(): Node
1300
1263
  get_passthrough(): boolean
1301
- get_producer(input_pad_name: string | null, output_pad_name: string | null): Node
1264
+ get_producer(input_pad_name: string, output_pad_name: string | null): Node
1302
1265
  /**
1303
1266
  * Returns TRUE if the node has a pad with the specified name
1304
1267
  * @param pad_name the pad name we are looking for
1305
1268
  */
1306
- has_pad(pad_name: string | null): boolean
1269
+ has_pad(pad_name: string): boolean
1307
1270
  /**
1308
1271
  * Returns the position and dimensions of a rectangle spanning the area
1309
1272
  * defined by a node.
1310
1273
  * @returns pointer a #GeglRectangle
1311
1274
  */
1312
1275
  get_bounding_box(): Rectangle
1313
- get_property(property_name: string | null): any
1276
+ get_property(property_name: string): any
1314
1277
 
1315
1278
  // Overloads of get_property
1316
1279
 
@@ -1334,7 +1297,7 @@ interface Node {
1334
1297
  * @param property_name the name of the property to get
1335
1298
  * @param value return location for the property value
1336
1299
  */
1337
- get_property(property_name: string | null, value: any): void
1300
+ get_property(property_name: string, value: any): void
1338
1301
  /**
1339
1302
  * Synthetic sugar for linking the "output" pad of `source` to the "input"
1340
1303
  * pad of `sink`.
@@ -1405,7 +1368,7 @@ interface Node {
1405
1368
  * @param property_name the name of the property to set
1406
1369
  * @param value a GValue containing the value to be set in the property.
1407
1370
  */
1408
- set_property(property_name: string | null, value: any): void
1371
+ set_property(property_name: string, value: any): void
1409
1372
  /**
1410
1373
  * Returns a freshly allocated \0 terminated string containing a XML
1411
1374
  * serialization of the composition produced by a node (and thus also
@@ -1415,7 +1378,7 @@ interface Node {
1415
1378
  * for the serialization.
1416
1379
  * @param path_root filesystem path to construct relative paths from.
1417
1380
  */
1418
- to_xml(path_root: string | null): string | null
1381
+ to_xml(path_root: string): string | null
1419
1382
  /**
1420
1383
  * Returns a freshly allocated \0 terminated string containing a XML
1421
1384
  * serialization of a segment of a graph from `head` to `tail` nodes.
@@ -1424,7 +1387,7 @@ interface Node {
1424
1387
  * @param path_root filesystem path to construct relative paths from.
1425
1388
  * @returns XML serialization of a graph segment.
1426
1389
  */
1427
- to_xml_full(tail: Node | null, path_root: string | null): string | null
1390
+ to_xml_full(tail: Node | null, path_root: string): string | null
1428
1391
 
1429
1392
  // Own signals of Gegl-0.3.Gegl.Node
1430
1393
 
@@ -1494,8 +1457,8 @@ class Node extends GObject.Object {
1494
1457
  * @param path the path to a file on the local file system to be parsed.
1495
1458
  * @returns a GeglNode containing the parsed XML as a subgraph.
1496
1459
  */
1497
- static new_from_file(path: string | null): Node
1498
- static new_from_serialized(chaindata: string | null, path_root: string | null): Node
1460
+ static new_from_file(path: string): Node
1461
+ static new_from_serialized(chaindata: string, path_root: string): Node
1499
1462
  /**
1500
1463
  * The #GeglNode returned contains the graph described by the tree of stacks
1501
1464
  * in the XML document. The tree is connected to the "output" pad of the
@@ -1505,7 +1468,7 @@ class Node extends GObject.Object {
1505
1468
  * @param path_root a file system path that relative paths in the XML will be resolved in relation to.
1506
1469
  * @returns a GeglNode containing the parsed XML as a subgraph.
1507
1470
  */
1508
- static new_from_xml(xmldata: string | null, path_root: string | null): Node
1471
+ static new_from_xml(xmldata: string, path_root: string): Node
1509
1472
  _init(config?: Node.ConstructorProperties): void
1510
1473
  }
1511
1474
 
@@ -1539,13 +1502,13 @@ class Operation extends GObject.Object {
1539
1502
 
1540
1503
  constructor(config?: Operation.ConstructorProperties)
1541
1504
  _init(config?: Operation.ConstructorProperties): void
1542
- static find_property(operation_type: string | null, property_name: string | null): GObject.ParamSpec
1543
- static get_key(operation_type: string | null, key_name: string | null): string | null
1544
- static get_op_version(op_name: string | null): string | null
1545
- static get_property_key(operation_type: string | null, property_name: string | null, property_key_name: string | null): string | null
1546
- static list_keys(operation_type: string | null): string[]
1547
- static list_properties(operation_type: string | null): GObject.ParamSpec[]
1548
- static list_property_keys(operation_type: string | null, property_name: string | null): string[]
1505
+ static find_property(operation_type: string, property_name: string): GObject.ParamSpec
1506
+ static get_key(operation_type: string, key_name: string): string
1507
+ static get_op_version(op_name: string): string
1508
+ static get_property_key(operation_type: string, property_name: string, property_key_name: string): string
1509
+ static list_keys(operation_type: string): string[]
1510
+ static list_properties(operation_type: string): GObject.ParamSpec[]
1511
+ static list_property_keys(operation_type: string, property_name: string): string[]
1549
1512
  }
1550
1513
 
1551
1514
  interface ParamAudioFragment {
@@ -1780,7 +1743,7 @@ interface Path {
1780
1743
  * gegl_path_clean() first if you want to replace the existing path.
1781
1744
  * @param instructions a string describing a path.
1782
1745
  */
1783
- parse_string(instructions: string | null): void
1746
+ parse_string(instructions: string): void
1784
1747
  /**
1785
1748
  * Removes the node number `pos` in `path`.
1786
1749
  * @param pos a node in the path.
@@ -1857,7 +1820,7 @@ class Path extends GObject.Object {
1857
1820
  * @constructor
1858
1821
  * @param instructions a string describing the path.
1859
1822
  */
1860
- static new_from_string(instructions: string | null): Path
1823
+ static new_from_string(instructions: string): Path
1861
1824
  _init(config?: Path.ConstructorProperties): void
1862
1825
  /**
1863
1826
  * Adds a new type to the path system, FIXME this should probably
@@ -1867,7 +1830,7 @@ class Path extends GObject.Object {
1867
1830
  * @param items the number of floating point data items the instruction takes
1868
1831
  * @param description a human readable description of this entry
1869
1832
  */
1870
- static add_type(type: number, items: number, description: string | null): void
1833
+ static add_type(type: number, items: number, description: string): void
1871
1834
  }
1872
1835
 
1873
1836
  module Processor {
@@ -1965,23 +1928,14 @@ interface Stats {
1965
1928
 
1966
1929
  // Own properties of Gegl-0.3.Gegl.Stats
1967
1930
 
1968
- readonly swap_busy: boolean
1969
1931
  readonly swapBusy: boolean
1970
- readonly swap_file_size: number
1971
1932
  readonly swapFileSize: number
1972
- readonly swap_total: number
1973
1933
  readonly swapTotal: number
1974
- readonly tile_cache_hits: number
1975
1934
  readonly tileCacheHits: number
1976
- readonly tile_cache_misses: number
1977
1935
  readonly tileCacheMisses: number
1978
- readonly tile_cache_total: number
1979
1936
  readonly tileCacheTotal: number
1980
- readonly tile_cache_total_max: number
1981
1937
  readonly tileCacheTotalMax: number
1982
- readonly tile_cache_total_uncloned: number
1983
1938
  readonly tileCacheTotalUncloned: number
1984
- readonly zoom_total: number
1985
1939
  readonly zoomTotal: number
1986
1940
 
1987
1941
  // Class property signals of Gegl-0.3.Gegl.Stats
@@ -2040,11 +1994,8 @@ module TileBackend {
2040
1994
 
2041
1995
  // Own constructor properties of Gegl-0.3.Gegl.TileBackend
2042
1996
 
2043
- flush_on_destroy?: boolean | null
2044
- format?: any | null
2045
- tile_height?: number | null
2046
- tile_width?: number | null
2047
1997
  flushOnDestroy?: boolean | null
1998
+ format?: any | null
2048
1999
  tileHeight?: number | null
2049
2000
  tileWidth?: number | null
2050
2001
  }
@@ -2055,16 +2006,11 @@ interface TileBackend {
2055
2006
 
2056
2007
  // Own properties of Gegl-0.3.Gegl.TileBackend
2057
2008
 
2058
- flush_on_destroy: boolean
2059
2009
  flushOnDestroy: boolean
2060
2010
  readonly format: any
2061
- readonly px_size: number
2062
2011
  readonly pxSize: number
2063
- readonly tile_height: number
2064
2012
  readonly tileHeight: number
2065
- readonly tile_size: number
2066
2013
  readonly tileSize: number
2067
- readonly tile_width: number
2068
2014
  readonly tileWidth: number
2069
2015
 
2070
2016
  // Own fields of Gegl-0.3.Gegl.TileBackend
@@ -2438,7 +2384,7 @@ interface Matrix3 {
2438
2384
  * Parse a transofmation matrix from a string.
2439
2385
  * @param string a string describing the matrix (right now a small subset of the transform strings allowed by SVG)
2440
2386
  */
2441
- parse_string(string: string | null): void
2387
+ parse_string(string: string): void
2442
2388
  /**
2443
2389
  * Serialize a #GeglMatrix3 to a string.
2444
2390
  *
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/gegl-0.3",
3
- "version": "0.3.35-3.2.6",
3
+ "version": "0.3.35-3.2.8",
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",
7
7
  "main": "gegl-0.3.js",
8
8
  "exports": {
9
- "./ambient": "./gegl-0.3-ambient.d.ts",
10
- "./import": "./gegl-0.3-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./gegl-0.3-ambient.d.ts",
11
+ "default": "./gegl-0.3-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./gegl-0.3-import.d.ts",
15
+ "default": "./gegl-0.3-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./gegl-0.3.d.ts",
@@ -25,9 +31,9 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gegl-0.3.d.cts"
26
32
  },
27
33
  "dependencies": {
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"
34
+ "@girs/gjs": "^3.2.8",
35
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
36
+ "@girs/gobject-2.0": "^2.77.0-3.2.8"
31
37
  },
32
38
  "devDependencies": {
33
39
  "typescript": "*"
@@ -44,7 +50,7 @@
44
50
  "license": "MIT",
45
51
  "repository": {
46
52
  "type": "git",
47
- "url": "git+https://github.com/gjsify/types.git"
53
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
48
54
  },
49
55
  "bugs": {
50
56
  "url": "https://github.com/gjsify/ts-for-gir/issues"