@yft-design/engine 0.0.55 → 0.0.56

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.
@@ -1,5 +1,6 @@
1
1
  import type { RGBA } from './color';
2
2
  import { type GradientDecl } from './gradient';
3
+ import { type PatternDecl } from './pattern';
3
4
  export interface SerializedPsdShadow {
4
5
  enabled?: boolean;
5
6
  showInDialog?: boolean;
@@ -70,6 +71,13 @@ export interface PsdGradientFillDecl {
70
71
  offset: PsdEffectOffset;
71
72
  blendMode?: string;
72
73
  }
74
+ export interface PsdPatternFillDecl {
75
+ kind: 'pattern';
76
+ decl: PatternDecl;
77
+ offset: PsdEffectOffset;
78
+ blendMode?: string;
79
+ }
80
+ export type PsdFillDecl = PsdSolidFillDecl | PsdGradientFillDecl | PsdPatternFillDecl;
73
81
  export interface PsdStrokeDecl {
74
82
  kind?: 'solid' | 'gradient';
75
83
  color: string;
@@ -124,7 +132,7 @@ export interface PsdBevelDecl {
124
132
  export interface PsdEffectsDecls {
125
133
  dropShadows: PsdDropShadowDecl[];
126
134
  innerShadows: PsdInnerShadowDecl[];
127
- solidFills: Array<PsdSolidFillDecl | PsdGradientFillDecl>;
135
+ solidFills: PsdFillDecl[];
128
136
  strokes: PsdStrokeDecl[];
129
137
  bevel?: PsdBevelDecl;
130
138
  }
@@ -132,4 +140,5 @@ export interface ParsePsdEffectsOptions {
132
140
  text?: boolean;
133
141
  }
134
142
  export declare const parsePsdEffects: (raw: unknown, options?: ParsePsdEffectsOptions) => PsdEffectsDecls | null;
143
+ export declare const patternFillSrcs: (decls: PsdEffectsDecls | null | undefined) => string[];
135
144
  export declare const psdEffectsKey: (decls: PsdEffectsDecls) => string;