ag-psd 16.0.0 → 17.0.0

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.
@@ -13,25 +13,37 @@ export interface DescriptorUnitsValue {
13
13
  value: number;
14
14
  }
15
15
  export type DescriptorColor = {
16
+ _name: '';
17
+ _classID: 'RGBC';
16
18
  'Rd ': number;
17
19
  'Grn ': number;
18
20
  'Bl ': number;
19
21
  } | {
22
+ _name: '';
23
+ _classID: 'HSBC';
20
24
  'H ': DescriptorUnitsValue;
21
25
  Strt: number;
22
26
  Brgh: number;
23
27
  } | {
28
+ _name: '';
29
+ _classID: 'CMYC';
24
30
  'Cyn ': number;
25
31
  Mgnt: number;
26
32
  'Ylw ': number;
27
33
  Blck: number;
28
34
  } | {
35
+ _name: '';
36
+ _classID: 'GRYC';
29
37
  'Gry ': number;
30
38
  } | {
39
+ _name: '';
40
+ _classID: 'LABC';
31
41
  Lmnc: number;
32
42
  'A ': number;
33
43
  'B ': number;
34
44
  } | {
45
+ _name: '';
46
+ _classID: 'XXXX';
35
47
  redFloat: number;
36
48
  greenFloat: number;
37
49
  blueFloat: number;
@@ -133,6 +145,8 @@ export interface WarpDescriptor {
133
145
  uOrder: number;
134
146
  vOrder: number;
135
147
  customEnvelopeWarp?: {
148
+ _name: '';
149
+ _classID: 'customEnvelopeWarp';
136
150
  meshPoints: {
137
151
  type: 'Hrzn' | 'Vrtc';
138
152
  values: number[];
@@ -143,6 +157,8 @@ export interface QuiltWarpDescriptor extends WarpDescriptor {
143
157
  deformNumRows: number;
144
158
  deformNumCols: number;
145
159
  customEnvelopeWarp: {
160
+ _name: '';
161
+ _classID: 'customEnvelopeWarp';
146
162
  quiltSliceX: {
147
163
  type: 'quiltSliceX';
148
164
  values: number[];
@@ -312,7 +328,12 @@ export declare function parseUnitsOrNumber(value: DescriptorUnitsValue | number,
312
328
  export declare function parseUnitsToNumber({ units, value }: DescriptorUnitsValue, expectedUnits: string): number;
313
329
  export declare function unitsAngle(value: number | undefined): DescriptorUnitsValue;
314
330
  export declare function unitsPercent(value: number | undefined): DescriptorUnitsValue;
331
+ export declare function unitsPercentF(value: number | undefined): DescriptorUnitsValue;
315
332
  export declare function unitsValue(x: UnitsValue | undefined, key: string): DescriptorUnitsValue;
333
+ export declare function frac({ numerator, denominator }: FractionDescriptor): {
334
+ numerator: number;
335
+ denominator: number;
336
+ };
316
337
  export declare const textGridding: {
317
338
  decode: (val: string) => TextGridding;
318
339
  encode: (val: TextGridding | undefined) => string;
@@ -413,3 +434,111 @@ export declare const strokeStyleLineAlignment: {
413
434
  decode: (val: string) => LineAlignment;
414
435
  encode: (val: LineAlignment | undefined) => string;
415
436
  };
437
+ export declare const BlrM: {
438
+ decode: (val: string) => "spin" | "zoom";
439
+ encode: (val: "spin" | "zoom" | undefined) => string;
440
+ };
441
+ export declare const BlrQ: {
442
+ decode: (val: string) => "draft" | "good" | "best";
443
+ encode: (val: "draft" | "good" | "best" | undefined) => string;
444
+ };
445
+ export declare const SmBM: {
446
+ decode: (val: string) => "normal" | "edge only" | "overlay edge";
447
+ encode: (val: "normal" | "edge only" | "overlay edge" | undefined) => string;
448
+ };
449
+ export declare const SmBQ: {
450
+ decode: (val: string) => "high" | "low" | "medium";
451
+ encode: (val: "high" | "low" | "medium" | undefined) => string;
452
+ };
453
+ export declare const DspM: {
454
+ decode: (val: string) => "stretch to fit" | "tile";
455
+ encode: (val: "stretch to fit" | "tile" | undefined) => string;
456
+ };
457
+ export declare const UndA: {
458
+ decode: (val: string) => "wrap around" | "repeat edge pixels";
459
+ encode: (val: "wrap around" | "repeat edge pixels" | undefined) => string;
460
+ };
461
+ export declare const Cnvr: {
462
+ decode: (val: string) => "rectangular to polar" | "polar to rectangular";
463
+ encode: (val: "rectangular to polar" | "polar to rectangular" | undefined) => string;
464
+ };
465
+ export declare const RplS: {
466
+ decode: (val: string) => "small" | "medium" | "large";
467
+ encode: (val: "small" | "medium" | "large" | undefined) => string;
468
+ };
469
+ export declare const SphM: {
470
+ decode: (val: string) => "normal" | "horizontal only" | "vertical only";
471
+ encode: (val: "normal" | "horizontal only" | "vertical only" | undefined) => string;
472
+ };
473
+ export declare const Wvtp: {
474
+ decode: (val: string) => "sine" | "square" | "triangle";
475
+ encode: (val: "sine" | "square" | "triangle" | undefined) => string;
476
+ };
477
+ export declare const ZZTy: {
478
+ decode: (val: string) => "around center" | "out from center" | "pond ripples";
479
+ encode: (val: "around center" | "out from center" | "pond ripples" | undefined) => string;
480
+ };
481
+ export declare const Dstr: {
482
+ decode: (val: string) => "uniform" | "gaussian";
483
+ encode: (val: "uniform" | "gaussian" | undefined) => string;
484
+ };
485
+ export declare const Chnl: {
486
+ decode: (val: string) => "composite" | "red" | "green" | "blue";
487
+ encode: (val: "composite" | "red" | "green" | "blue" | undefined) => string;
488
+ };
489
+ export declare const MztT: {
490
+ decode: (val: string) => "fine dots" | "medium dots" | "grainy dots" | "coarse dots" | "short lines" | "medium lines" | "long lines" | "short strokes" | "medium strokes" | "long strokes";
491
+ encode: (val: "fine dots" | "medium dots" | "grainy dots" | "coarse dots" | "short lines" | "medium lines" | "long lines" | "short strokes" | "medium strokes" | "long strokes" | undefined) => string;
492
+ };
493
+ export declare const Lns: {
494
+ decode: (val: string) => "50-300mm zoom" | "32mm prime" | "105mm prime" | "movie prime";
495
+ encode: (val: "50-300mm zoom" | "32mm prime" | "105mm prime" | "movie prime" | undefined) => string;
496
+ };
497
+ export declare const blurType: {
498
+ decode: (val: string) => "gaussian blur" | "motion blur" | "lens blur";
499
+ encode: (val: "gaussian blur" | "motion blur" | "lens blur" | undefined) => string;
500
+ };
501
+ export declare const DfsM: {
502
+ decode: (val: string) => "normal" | "darken only" | "lighten only" | "anisotropic";
503
+ encode: (val: "normal" | "darken only" | "lighten only" | "anisotropic" | undefined) => string;
504
+ };
505
+ export declare const ExtT: {
506
+ decode: (val: string) => "blocks" | "pyramids";
507
+ encode: (val: "blocks" | "pyramids" | undefined) => string;
508
+ };
509
+ export declare const ExtR: {
510
+ decode: (val: string) => "random" | "level-based";
511
+ encode: (val: "random" | "level-based" | undefined) => string;
512
+ };
513
+ export declare const FlCl: {
514
+ decode: (val: string) => "background color" | "foreground color" | "inverse image" | "unaltered image";
515
+ encode: (val: "background color" | "foreground color" | "inverse image" | "unaltered image" | undefined) => string;
516
+ };
517
+ export declare const CntE: {
518
+ decode: (val: string) => "upper" | "lower";
519
+ encode: (val: "upper" | "lower" | undefined) => string;
520
+ };
521
+ export declare const WndM: {
522
+ decode: (val: string) => "wind" | "blast" | "stagger";
523
+ encode: (val: "wind" | "blast" | "stagger" | undefined) => string;
524
+ };
525
+ export declare const Drct: {
526
+ decode: (val: string) => "left" | "right";
527
+ encode: (val: "left" | "right" | undefined) => string;
528
+ };
529
+ export declare const IntE: {
530
+ decode: (val: string) => "odd lines" | "even lines";
531
+ encode: (val: "odd lines" | "even lines" | undefined) => string;
532
+ };
533
+ export declare const IntC: {
534
+ decode: (val: string) => "duplication" | "interpolation";
535
+ encode: (val: "duplication" | "interpolation" | undefined) => string;
536
+ };
537
+ export declare const FlMd: {
538
+ decode: (val: string) => "wrap around" | "repeat edge pixels" | "set to transparent";
539
+ encode: (val: "wrap around" | "repeat edge pixels" | "set to transparent" | undefined) => string;
540
+ };
541
+ export declare const prjM: {
542
+ decode: (val: string) => "auto" | "perspective" | "fisheye" | "full spherical";
543
+ encode: (val: "auto" | "perspective" | "fisheye" | "full spherical" | undefined) => string;
544
+ };