@gtkx/cairo 1.2.2

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.
Files changed (86) hide show
  1. package/dist/context.d.ts +229 -0
  2. package/dist/context.d.ts.map +1 -0
  3. package/dist/context.js +646 -0
  4. package/dist/context.js.map +1 -0
  5. package/dist/device.d.ts +21 -0
  6. package/dist/device.d.ts.map +1 -0
  7. package/dist/device.js +39 -0
  8. package/dist/device.js.map +1 -0
  9. package/dist/enums.d.ts +526 -0
  10. package/dist/enums.d.ts.map +1 -0
  11. package/dist/enums.js +482 -0
  12. package/dist/enums.js.map +1 -0
  13. package/dist/font-face.d.ts +55 -0
  14. package/dist/font-face.d.ts.map +1 -0
  15. package/dist/font-face.js +103 -0
  16. package/dist/font-face.js.map +1 -0
  17. package/dist/font-options.d.ts +43 -0
  18. package/dist/font-options.d.ts.map +1 -0
  19. package/dist/font-options.js +95 -0
  20. package/dist/font-options.js.map +1 -0
  21. package/dist/index.d.ts +29 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +27 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/lib.d.ts +36 -0
  26. package/dist/lib.d.ts.map +1 -0
  27. package/dist/lib.js +120 -0
  28. package/dist/lib.js.map +1 -0
  29. package/dist/matrix.d.ts +40 -0
  30. package/dist/matrix.d.ts.map +1 -0
  31. package/dist/matrix.js +93 -0
  32. package/dist/matrix.js.map +1 -0
  33. package/dist/path.d.ts +14 -0
  34. package/dist/path.d.ts.map +1 -0
  35. package/dist/path.js +67 -0
  36. package/dist/path.js.map +1 -0
  37. package/dist/pattern.d.ts +95 -0
  38. package/dist/pattern.d.ts.map +1 -0
  39. package/dist/pattern.js +250 -0
  40. package/dist/pattern.js.map +1 -0
  41. package/dist/region.d.ts +59 -0
  42. package/dist/region.d.ts.map +1 -0
  43. package/dist/region.js +154 -0
  44. package/dist/region.js.map +1 -0
  45. package/dist/scaled-font.d.ts +43 -0
  46. package/dist/scaled-font.d.ts.map +1 -0
  47. package/dist/scaled-font.js +156 -0
  48. package/dist/scaled-font.js.map +1 -0
  49. package/dist/structs.d.ts +120 -0
  50. package/dist/structs.d.ts.map +1 -0
  51. package/dist/structs.js +185 -0
  52. package/dist/structs.js.map +1 -0
  53. package/dist/surface.d.ts +98 -0
  54. package/dist/surface.d.ts.map +1 -0
  55. package/dist/surface.js +274 -0
  56. package/dist/surface.js.map +1 -0
  57. package/dist/text.d.ts +10 -0
  58. package/dist/text.d.ts.map +1 -0
  59. package/dist/text.js +45 -0
  60. package/dist/text.js.map +1 -0
  61. package/dist/types.d.ts +245 -0
  62. package/dist/types.d.ts.map +1 -0
  63. package/dist/types.js +2 -0
  64. package/dist/types.js.map +1 -0
  65. package/dist/version.d.ts +9 -0
  66. package/dist/version.d.ts.map +1 -0
  67. package/dist/version.js +13 -0
  68. package/dist/version.js.map +1 -0
  69. package/package.json +64 -0
  70. package/src/context.ts +899 -0
  71. package/src/device.ts +50 -0
  72. package/src/enums.ts +571 -0
  73. package/src/font-face.ts +157 -0
  74. package/src/font-options.ts +142 -0
  75. package/src/index.ts +28 -0
  76. package/src/lib.ts +186 -0
  77. package/src/matrix.ts +135 -0
  78. package/src/path.ts +87 -0
  79. package/src/pattern.ts +423 -0
  80. package/src/region.ts +216 -0
  81. package/src/scaled-font.ts +268 -0
  82. package/src/structs.ts +306 -0
  83. package/src/surface.ts +411 -0
  84. package/src/text.ts +56 -0
  85. package/src/types.ts +290 -0
  86. package/src/version.ts +16 -0
@@ -0,0 +1,526 @@
1
+ /** One of the `Status` codes a cairo object or operation reports. */
2
+ type Status = (typeof Status)[keyof typeof Status];
3
+ /** One of the `Content` kinds a surface holds. */
4
+ type Content = (typeof Content)[keyof typeof Content];
5
+ /** One of the `Operator` compositing modes. */
6
+ type Operator = (typeof Operator)[keyof typeof Operator];
7
+ /** One of the `Antialias` modes for rendering shapes and text. */
8
+ type Antialias = (typeof Antialias)[keyof typeof Antialias];
9
+ /** One of the `FillRule` modes deciding which areas a path fills. */
10
+ type FillRule = (typeof FillRule)[keyof typeof FillRule];
11
+ /** One of the `LineCap` styles for the ends of a stroked line. */
12
+ type LineCap = (typeof LineCap)[keyof typeof LineCap];
13
+ /** One of the `LineJoin` styles for the corners of a stroked path. */
14
+ type LineJoin = (typeof LineJoin)[keyof typeof LineJoin];
15
+ /** One of the `TextClusterFlags` values describing a cluster mapping. */
16
+ type TextClusterFlags = (typeof TextClusterFlags)[keyof typeof TextClusterFlags];
17
+ /** One of the `FontSlant` values for a toy font face. */
18
+ type FontSlant = (typeof FontSlant)[keyof typeof FontSlant];
19
+ /** One of the `FontWeight` values for a toy font face. */
20
+ type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];
21
+ /** One of the `SubpixelOrder` values for subpixel antialiasing. */
22
+ type SubpixelOrder = (typeof SubpixelOrder)[keyof typeof SubpixelOrder];
23
+ /** One of the `HintStyle` values for font outline hinting. */
24
+ type HintStyle = (typeof HintStyle)[keyof typeof HintStyle];
25
+ /** One of the `HintMetrics` values for font metric quantization. */
26
+ type HintMetrics = (typeof HintMetrics)[keyof typeof HintMetrics];
27
+ /** One of the `FontType` backends a font face or scaled font uses. */
28
+ type FontType = (typeof FontType)[keyof typeof FontType];
29
+ /** One of the `PathDataType` segment kinds in a copied path. */
30
+ type PathDataType = (typeof PathDataType)[keyof typeof PathDataType];
31
+ /** One of the `DeviceType` backends a device belongs to. */
32
+ type DeviceType = (typeof DeviceType)[keyof typeof DeviceType];
33
+ /** One of the `SurfaceType` backends a surface belongs to. */
34
+ type SurfaceType = (typeof SurfaceType)[keyof typeof SurfaceType];
35
+ /** One of the `Format` pixel layouts of an image surface. */
36
+ type Format = (typeof Format)[keyof typeof Format];
37
+ /** One of the `PatternType` kinds a pattern can be. */
38
+ type PatternType = (typeof PatternType)[keyof typeof PatternType];
39
+ /** One of the `Extend` modes for drawing outside a pattern's natural area. */
40
+ type Extend = (typeof Extend)[keyof typeof Extend];
41
+ /** One of the `Filter` modes for resizing a pattern. */
42
+ type Filter = (typeof Filter)[keyof typeof Filter];
43
+ /** One of the `RegionOverlap` results of a region containment test. */
44
+ type RegionOverlap = (typeof RegionOverlap)[keyof typeof RegionOverlap];
45
+ /**
46
+ * The result a cairo object or operation reports; anything but `SUCCESS` marks the object as errored.
47
+ * @enum
48
+ */
49
+ declare const Status: {
50
+ /** No error has occurred. */
51
+ readonly SUCCESS: 0;
52
+ /** Out of memory. */
53
+ readonly NO_MEMORY: 1;
54
+ /** `restore` was called without a matching `save`. */
55
+ readonly INVALID_RESTORE: 2;
56
+ /** `popGroup` was called without a matching `pushGroup`. */
57
+ readonly INVALID_POP_GROUP: 3;
58
+ /** No current point is defined. */
59
+ readonly NO_CURRENT_POINT: 4;
60
+ /** The matrix is invalid, such as one that is not invertible. */
61
+ readonly INVALID_MATRIX: 5;
62
+ /** The status value is invalid. */
63
+ readonly INVALID_STATUS: 6;
64
+ /** A null pointer was passed. */
65
+ readonly NULL_POINTER: 7;
66
+ /** The string is invalid, such as malformed UTF-8. */
67
+ readonly INVALID_STRING: 8;
68
+ /** The path data is not valid. */
69
+ readonly INVALID_PATH_DATA: 9;
70
+ /** An error occurred while reading from an input stream. */
71
+ readonly READ_ERROR: 10;
72
+ /** An error occurred while writing to an output stream. */
73
+ readonly WRITE_ERROR: 11;
74
+ /** The target surface has been finished. */
75
+ readonly SURFACE_FINISHED: 12;
76
+ /** The surface type is not appropriate for the operation. */
77
+ readonly SURFACE_TYPE_MISMATCH: 13;
78
+ /** The pattern type is not appropriate for the operation. */
79
+ readonly PATTERN_TYPE_MISMATCH: 14;
80
+ /** The content value is invalid. */
81
+ readonly INVALID_CONTENT: 15;
82
+ /** The format value is invalid. */
83
+ readonly INVALID_FORMAT: 16;
84
+ /** The visual value is invalid. */
85
+ readonly INVALID_VISUAL: 17;
86
+ /** The file was not found. */
87
+ readonly FILE_NOT_FOUND: 18;
88
+ /** The dash setting is invalid. */
89
+ readonly INVALID_DASH: 19;
90
+ /** The DSC comment is invalid. */
91
+ readonly INVALID_DSC_COMMENT: 20;
92
+ /** The index passed to a getter is out of range. */
93
+ readonly INVALID_INDEX: 21;
94
+ /** The clip region is not representable in the desired format. */
95
+ readonly CLIP_NOT_REPRESENTABLE: 22;
96
+ /** An error occurred while creating a temporary file. */
97
+ readonly TEMP_FILE_ERROR: 23;
98
+ /** The stride value is invalid. */
99
+ readonly INVALID_STRIDE: 24;
100
+ /** The font type is not appropriate for the operation. */
101
+ readonly FONT_TYPE_MISMATCH: 25;
102
+ /** The user font is immutable. */
103
+ readonly USER_FONT_IMMUTABLE: 26;
104
+ /** An error occurred in a user font callback. */
105
+ readonly USER_FONT_ERROR: 27;
106
+ /** A negative number was used where it is not allowed. */
107
+ readonly NEGATIVE_COUNT: 28;
108
+ /** The input clusters do not represent the accompanying text and glyph arrays. */
109
+ readonly INVALID_CLUSTERS: 29;
110
+ /** The font slant value is invalid. */
111
+ readonly INVALID_SLANT: 30;
112
+ /** The font weight value is invalid. */
113
+ readonly INVALID_WEIGHT: 31;
114
+ /** The size value, such as a negative width, is invalid. */
115
+ readonly INVALID_SIZE: 32;
116
+ /** The user font method is not implemented. */
117
+ readonly USER_FONT_NOT_IMPLEMENTED: 33;
118
+ /** The device type is not appropriate for the operation. */
119
+ readonly DEVICE_TYPE_MISMATCH: 34;
120
+ /** An operation on the device caused an unspecified error. */
121
+ readonly DEVICE_ERROR: 35;
122
+ /** A mesh pattern construction operation was used outside a `beginPatch`/`endPatch` pair. */
123
+ readonly INVALID_MESH_CONSTRUCTION: 36;
124
+ /** The target device has been finished. */
125
+ readonly DEVICE_FINISHED: 37;
126
+ /** A JBIG2 global data stream was attached without its global identifier. */
127
+ readonly JBIG2_GLOBAL_MISSING: 38;
128
+ };
129
+ /**
130
+ * What a surface holds: color, alpha coverage, or both.
131
+ * @enum
132
+ */
133
+ declare const Content: {
134
+ /** The surface holds color content only. */
135
+ readonly COLOR: 4096;
136
+ /** The surface holds alpha content only. */
137
+ readonly ALPHA: 8192;
138
+ /** The surface holds color and alpha content. */
139
+ readonly COLOR_ALPHA: 12288;
140
+ };
141
+ /**
142
+ * How a drawing operation composites its source onto the destination.
143
+ * @enum
144
+ */
145
+ declare const Operator: {
146
+ /** Clears the destination where the source is drawn. */
147
+ readonly CLEAR: 0;
148
+ /** Replaces the destination with the source. */
149
+ readonly SOURCE: 1;
150
+ /** Draws the source over the destination. */
151
+ readonly OVER: 2;
152
+ /** Draws the source where there was destination content. */
153
+ readonly IN: 3;
154
+ /** Draws the source where there was no destination content. */
155
+ readonly OUT: 4;
156
+ /** Draws the source on top of the destination, limited to the destination's extents. */
157
+ readonly ATOP: 5;
158
+ /** Ignores the source. */
159
+ readonly DEST: 6;
160
+ /** Draws the destination on top of the source. */
161
+ readonly DEST_OVER: 7;
162
+ /** Leaves the destination only where there was source content. */
163
+ readonly DEST_IN: 8;
164
+ /** Leaves the destination only where there was no source content. */
165
+ readonly DEST_OUT: 9;
166
+ /** Leaves the destination on top of the source, limited to the source's extents. */
167
+ readonly DEST_ATOP: 10;
168
+ /** Shows the source and destination where there is only one of them. */
169
+ readonly XOR: 11;
170
+ /** Accumulates the source and destination layers. */
171
+ readonly ADD: 12;
172
+ /** Like `OVER`, but assumes the source and destination are disjoint geometries. */
173
+ readonly SATURATE: 13;
174
+ /** Multiplies the source and destination colors, always darkening. */
175
+ readonly MULTIPLY: 14;
176
+ /** Complements and multiplies the source and destination, always lightening. */
177
+ readonly SCREEN: 15;
178
+ /** Multiplies or screens depending on the destination lightness. */
179
+ readonly OVERLAY: 16;
180
+ /** Keeps the darker of the source and destination. */
181
+ readonly DARKEN: 17;
182
+ /** Keeps the lighter of the source and destination. */
183
+ readonly LIGHTEN: 18;
184
+ /** Brightens the destination to reflect the source. */
185
+ readonly COLOR_DODGE: 19;
186
+ /** Darkens the destination to reflect the source. */
187
+ readonly COLOR_BURN: 20;
188
+ /** Multiplies or screens depending on the source lightness. */
189
+ readonly HARD_LIGHT: 21;
190
+ /** Darkens or lightens depending on the source lightness. */
191
+ readonly SOFT_LIGHT: 22;
192
+ /** Takes the difference of the source and destination. */
193
+ readonly DIFFERENCE: 23;
194
+ /** Like `DIFFERENCE` but with lower contrast. */
195
+ readonly EXCLUSION: 24;
196
+ /** Takes the hue of the source and the saturation and luminosity of the destination. */
197
+ readonly HSL_HUE: 25;
198
+ /** Takes the saturation of the source and the hue and luminosity of the destination. */
199
+ readonly HSL_SATURATION: 26;
200
+ /** Takes the hue and saturation of the source and the luminosity of the destination. */
201
+ readonly HSL_COLOR: 27;
202
+ /** Takes the luminosity of the source and the hue and saturation of the destination. */
203
+ readonly HSL_LUMINOSITY: 28;
204
+ };
205
+ /**
206
+ * How shapes and text are antialiased.
207
+ * @enum
208
+ */
209
+ declare const Antialias: {
210
+ /** Uses the default antialiasing of the subsystem and target device. */
211
+ readonly DEFAULT: 0;
212
+ /** Uses a bilevel alpha mask. */
213
+ readonly NONE: 1;
214
+ /** Uses a single color for antialiasing. */
215
+ readonly GRAY: 2;
216
+ /** Uses the subpixels of an LCD panel. */
217
+ readonly SUBPIXEL: 3;
218
+ /** Prefers speed over quality. */
219
+ readonly FAST: 4;
220
+ /** Balances quality against performance. */
221
+ readonly GOOD: 5;
222
+ /** Renders at the highest quality, sacrificing speed. */
223
+ readonly BEST: 6;
224
+ };
225
+ /**
226
+ * Which areas inside a path a fill covers.
227
+ * @enum
228
+ */
229
+ declare const FillRule: {
230
+ /** Fills where the winding number is non-zero. */
231
+ readonly WINDING: 0;
232
+ /** Fills where a ray crosses the path an odd number of times. */
233
+ readonly EVEN_ODD: 1;
234
+ };
235
+ /**
236
+ * How the ends of a stroked line are rendered.
237
+ * @enum
238
+ */
239
+ declare const LineCap: {
240
+ /** Starts and stops the line exactly at the start and end points. */
241
+ readonly BUTT: 0;
242
+ /** Uses a round ending centered on the end point. */
243
+ readonly ROUND: 1;
244
+ /** Uses a squared ending extending past the end point. */
245
+ readonly SQUARE: 2;
246
+ };
247
+ /**
248
+ * How the corners of a stroked path are rendered.
249
+ * @enum
250
+ */
251
+ declare const LineJoin: {
252
+ /** Uses a sharp corner cut off at the miter limit. */
253
+ readonly MITER: 0;
254
+ /** Uses a rounded join centered on the joint point. */
255
+ readonly ROUND: 1;
256
+ /** Uses a cut-off join at half the line width from the joint point. */
257
+ readonly BEVEL: 2;
258
+ };
259
+ /**
260
+ * Properties of a text cluster mapping.
261
+ * @enum
262
+ */
263
+ declare const TextClusterFlags: {
264
+ /** The clusters map to glyphs from the end of the glyph array backwards. */
265
+ readonly BACKWARD: 1;
266
+ };
267
+ /**
268
+ * The slant of a toy font face.
269
+ * @enum
270
+ */
271
+ declare const FontSlant: {
272
+ /** Upright font style. */
273
+ readonly NORMAL: 0;
274
+ /** Italic font style. */
275
+ readonly ITALIC: 1;
276
+ /** Oblique font style. */
277
+ readonly OBLIQUE: 2;
278
+ };
279
+ /**
280
+ * The weight of a toy font face.
281
+ * @enum
282
+ */
283
+ declare const FontWeight: {
284
+ /** Normal font weight. */
285
+ readonly NORMAL: 0;
286
+ /** Bold font weight. */
287
+ readonly BOLD: 1;
288
+ };
289
+ /**
290
+ * The order of color elements within each pixel on a display, for subpixel antialiasing.
291
+ * @enum
292
+ */
293
+ declare const SubpixelOrder: {
294
+ /** Uses the default subpixel order for the target device. */
295
+ readonly DEFAULT: 0;
296
+ /** Subpixels are ordered red, green, blue horizontally. */
297
+ readonly RGB: 1;
298
+ /** Subpixels are ordered blue, green, red horizontally. */
299
+ readonly BGR: 2;
300
+ /** Subpixels are ordered red, green, blue vertically. */
301
+ readonly VRGB: 3;
302
+ /** Subpixels are ordered blue, green, red vertically. */
303
+ readonly VBGR: 4;
304
+ };
305
+ /**
306
+ * How much font outlines are fitted to the pixel grid.
307
+ * @enum
308
+ */
309
+ declare const HintStyle: {
310
+ /** Uses the default hint style of the font backend and target device. */
311
+ readonly DEFAULT: 0;
312
+ /** Does not hint outlines. */
313
+ readonly NONE: 1;
314
+ /** Hints outlines slightly, keeping contrast while preserving shape. */
315
+ readonly SLIGHT: 2;
316
+ /** Hints outlines with medium strength. */
317
+ readonly MEDIUM: 3;
318
+ /** Hints outlines to maximize contrast. */
319
+ readonly FULL: 4;
320
+ };
321
+ /**
322
+ * Whether font metrics are quantized to integer device units.
323
+ * @enum
324
+ */
325
+ declare const HintMetrics: {
326
+ /** Uses the default metric hinting of the font backend and target device. */
327
+ readonly DEFAULT: 0;
328
+ /** Does not hint metrics. */
329
+ readonly OFF: 1;
330
+ /** Hints metrics to integer device units. */
331
+ readonly ON: 2;
332
+ };
333
+ /**
334
+ * The backend behind a font face or scaled font.
335
+ * @enum
336
+ */
337
+ declare const FontType: {
338
+ /** A font created with the toy font API (`selectFontFace`). */
339
+ readonly TOY: 0;
340
+ /** A font of type FreeType. */
341
+ readonly FT: 1;
342
+ /** A font of type Win32. */
343
+ readonly WIN32: 2;
344
+ /** A font of type Quartz. */
345
+ readonly QUARTZ: 3;
346
+ /** A font created with the user font API. */
347
+ readonly USER: 4;
348
+ };
349
+ /**
350
+ * The kind of a segment in a copied path.
351
+ * @enum
352
+ */
353
+ declare const PathDataType: {
354
+ /** Starts a new sub-path. */
355
+ readonly MOVE_TO: 0;
356
+ /** Adds a straight line. */
357
+ readonly LINE_TO: 1;
358
+ /** Adds a cubic Bézier curve. */
359
+ readonly CURVE_TO: 2;
360
+ /** Closes the current sub-path. */
361
+ readonly CLOSE_PATH: 3;
362
+ };
363
+ /**
364
+ * The backend behind a device.
365
+ * @enum
366
+ */
367
+ declare const DeviceType: {
368
+ /** A Direct Render Manager device. */
369
+ readonly DRM: 0;
370
+ /** An OpenGL device. */
371
+ readonly GL: 1;
372
+ /** A script recording device. */
373
+ readonly SCRIPT: 2;
374
+ /** An XCB device. */
375
+ readonly XCB: 3;
376
+ /** An Xlib device. */
377
+ readonly XLIB: 4;
378
+ /** An XML recording device. */
379
+ readonly XML: 5;
380
+ /** A Cogl device. */
381
+ readonly COGL: 6;
382
+ /** A Win32 device. */
383
+ readonly WIN32: 7;
384
+ /** An invalid device. */
385
+ readonly INVALID: -1;
386
+ };
387
+ /**
388
+ * The backend behind a surface.
389
+ * @enum
390
+ */
391
+ declare const SurfaceType: {
392
+ /** An image surface backed by memory. */
393
+ readonly IMAGE: 0;
394
+ /** A PDF surface. */
395
+ readonly PDF: 1;
396
+ /** A PostScript surface. */
397
+ readonly PS: 2;
398
+ /** An Xlib surface. */
399
+ readonly XLIB: 3;
400
+ /** An XCB surface. */
401
+ readonly XCB: 4;
402
+ /** A Glitz surface. */
403
+ readonly GLITZ: 5;
404
+ /** A Quartz surface. */
405
+ readonly QUARTZ: 6;
406
+ /** A Win32 surface. */
407
+ readonly WIN32: 7;
408
+ /** A BeOS surface. */
409
+ readonly BEOS: 8;
410
+ /** A DirectFB surface. */
411
+ readonly DIRECTFB: 9;
412
+ /** An SVG surface. */
413
+ readonly SVG: 10;
414
+ /** An OS/2 surface. */
415
+ readonly OS2: 11;
416
+ /** A Win32 printing surface. */
417
+ readonly WIN32_PRINTING: 12;
418
+ /** A Quartz image surface. */
419
+ readonly QUARTZ_IMAGE: 13;
420
+ /** A script recording surface. */
421
+ readonly SCRIPT: 14;
422
+ /** A Qt surface. */
423
+ readonly QT: 15;
424
+ /** A recording surface that replays its drawing. */
425
+ readonly RECORDING: 16;
426
+ /** An OpenVG surface. */
427
+ readonly VG: 17;
428
+ /** An OpenGL surface. */
429
+ readonly GL: 18;
430
+ /** A Direct Render Manager surface. */
431
+ readonly DRM: 19;
432
+ /** A tee surface that forwards to several others. */
433
+ readonly TEE: 20;
434
+ /** An XML recording surface. */
435
+ readonly XML: 21;
436
+ /** A Skia surface. */
437
+ readonly SKIA: 22;
438
+ /** A subsurface created with `Surface.createForRectangle`. */
439
+ readonly SUBSURFACE: 23;
440
+ /** A Cogl surface. */
441
+ readonly COGL: 24;
442
+ };
443
+ /**
444
+ * The memory layout of the pixels of an image surface.
445
+ * @enum
446
+ */
447
+ declare const Format: {
448
+ /** No such format exists or is supported. */
449
+ readonly INVALID: -1;
450
+ /** 32 bits per pixel with premultiplied alpha in the upper 8 bits, then red, green, blue. */
451
+ readonly ARGB32: 0;
452
+ /** 32 bits per pixel with the upper 8 bits unused, then red, green, blue. */
453
+ readonly RGB24: 1;
454
+ /** 8 bits per pixel holding an alpha value. */
455
+ readonly A8: 2;
456
+ /** 1 bit per pixel holding an alpha value. */
457
+ readonly A1: 3;
458
+ /** 16 bits per pixel with 5 bits red, 6 bits green and 5 bits blue. */
459
+ readonly RGB16_565: 4;
460
+ /** 30 bits per pixel with 10 bits per color channel. */
461
+ readonly RGB30: 5;
462
+ };
463
+ /**
464
+ * The kind of a pattern.
465
+ * @enum
466
+ */
467
+ declare const PatternType: {
468
+ /** A single color. */
469
+ readonly SOLID: 0;
470
+ /** A surface used as a source. */
471
+ readonly SURFACE: 1;
472
+ /** A linear gradient. */
473
+ readonly LINEAR: 2;
474
+ /** A radial gradient. */
475
+ readonly RADIAL: 3;
476
+ /** A mesh gradient. */
477
+ readonly MESH: 4;
478
+ /** A raster source pattern driven by callbacks. */
479
+ readonly RASTER_SOURCE: 5;
480
+ };
481
+ /**
482
+ * What a pattern draws outside its natural area.
483
+ * @enum
484
+ */
485
+ declare const Extend: {
486
+ /** Draws transparent outside the pattern. */
487
+ readonly NONE: 0;
488
+ /** Tiles the pattern by repeating it. */
489
+ readonly REPEAT: 1;
490
+ /** Tiles the pattern by reflecting it at its edges. */
491
+ readonly REFLECT: 2;
492
+ /** Extends the pattern's closest edge color outward. */
493
+ readonly PAD: 3;
494
+ };
495
+ /**
496
+ * How a pattern is sampled when it is scaled.
497
+ * @enum
498
+ */
499
+ declare const Filter: {
500
+ /** A high-performance filter with a quality similar to `NEAREST`. */
501
+ readonly FAST: 0;
502
+ /** A reasonable-performance filter with a quality similar to `BILINEAR`. */
503
+ readonly GOOD: 1;
504
+ /** The highest-quality filter available. */
505
+ readonly BEST: 2;
506
+ /** Nearest-neighbor filtering. */
507
+ readonly NEAREST: 3;
508
+ /** Linear interpolation in two dimensions. */
509
+ readonly BILINEAR: 4;
510
+ /** Gaussian interpolation in two dimensions. */
511
+ readonly GAUSSIAN: 5;
512
+ };
513
+ /**
514
+ * How a rectangle relates to a region.
515
+ * @enum
516
+ */
517
+ declare const RegionOverlap: {
518
+ /** The rectangle is entirely inside the region. */
519
+ readonly IN: 0;
520
+ /** The rectangle is entirely outside the region. */
521
+ readonly OUT: 1;
522
+ /** The rectangle is partially inside and partially outside the region. */
523
+ readonly PART: 2;
524
+ };
525
+ export { Antialias, Content, DeviceType, Extend, FillRule, Filter, FontSlant, FontType, FontWeight, Format, HintMetrics, HintStyle, LineCap, LineJoin, Operator, PathDataType, PatternType, RegionOverlap, Status, SubpixelOrder, SurfaceType, TextClusterFlags, };
526
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,KAAK,MAAM,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AACnD,kDAAkD;AAClD,KAAK,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AACtD,+CAA+C;AAC/C,KAAK,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AACzD,kEAAkE;AAClE,KAAK,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAC5D,qEAAqE;AACrE,KAAK,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AACzD,kEAAkE;AAClE,KAAK,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AACtD,sEAAsE;AACtE,KAAK,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAA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