@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.
- package/dist/core/psdEffects.d.ts +10 -1
- package/dist/index.js +47 -47
- package/dist/model/textTransform.d.ts +5 -0
- package/dist/render/SourceManager.d.ts +6 -1
- package/dist/render/TextRenderer.d.ts +4 -0
- package/dist/render/imageEffects.d.ts +3 -2
- package/dist/render/patternSource.d.ts +8 -0
- package/dist/render/psdEffectPainter.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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;
|