@yft-design/psd-lib 1.0.1
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 +45 -0
- package/dist/abr.d.ts +143 -0
- package/dist/abr.js +300 -0
- package/dist/additionalInfo.d.ts +26 -0
- package/dist/additionalInfo.js +3891 -0
- package/dist/csh.d.ts +10 -0
- package/dist/csh.js +32 -0
- package/dist/descriptor.d.ts +566 -0
- package/dist/descriptor.js +1958 -0
- package/dist/effectsHelpers.d.ts +5 -0
- package/dist/effectsHelpers.js +280 -0
- package/dist/engineData.d.ts +2 -0
- package/dist/engineData.js +330 -0
- package/dist/engineData2.d.ts +2 -0
- package/dist/engineData2.js +405 -0
- package/dist/helpers.d.ts +89 -0
- package/dist/helpers.js +300 -0
- package/dist/imageResources.d.ts +17 -0
- package/dist/imageResources.js +1070 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +30 -0
- package/dist/initializeCanvas.d.ts +1 -0
- package/dist/initializeCanvas.js +21 -0
- package/dist/jpeg.d.ts +1 -0
- package/dist/jpeg.js +1017 -0
- package/dist/psd.d.ts +1822 -0
- package/dist/psd.js +7 -0
- package/dist/psdReader.d.ts +46 -0
- package/dist/psdReader.js +1188 -0
- package/dist/psdWriter.d.ts +33 -0
- package/dist/psdWriter.js +733 -0
- package/dist/text.d.ts +179 -0
- package/dist/text.js +556 -0
- package/dist/utf8.d.ts +4 -0
- package/dist/utf8.js +150 -0
- package/package.json +46 -0
package/dist/csh.d.ts
ADDED
package/dist/csh.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { readVectorMask } from './additionalInfo';
|
|
2
|
+
import { readUint32, checkSignature, createReader, readPascalString, readUnicodeString } from './psdReader';
|
|
3
|
+
export function readCsh(buffer) {
|
|
4
|
+
const reader = createReader(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
5
|
+
const csh = { shapes: [] };
|
|
6
|
+
checkSignature(reader, 'cush');
|
|
7
|
+
if (readUint32(reader) !== 2)
|
|
8
|
+
throw new Error('Invalid version');
|
|
9
|
+
const count = readUint32(reader);
|
|
10
|
+
for (let i = 0; i < count; i++) {
|
|
11
|
+
const name = readUnicodeString(reader);
|
|
12
|
+
while (reader.offset % 4)
|
|
13
|
+
reader.offset++; // pad to 4byte bounds
|
|
14
|
+
if (readUint32(reader) !== 1)
|
|
15
|
+
throw new Error('Invalid shape version');
|
|
16
|
+
const size = readUint32(reader);
|
|
17
|
+
const end = reader.offset + size;
|
|
18
|
+
const id = readPascalString(reader, 1);
|
|
19
|
+
// this might not be correct ???
|
|
20
|
+
const y1 = readUint32(reader);
|
|
21
|
+
const x1 = readUint32(reader);
|
|
22
|
+
const y2 = readUint32(reader);
|
|
23
|
+
const x2 = readUint32(reader);
|
|
24
|
+
const width = x2 - x1;
|
|
25
|
+
const height = y2 - y1;
|
|
26
|
+
const mask = { paths: [] };
|
|
27
|
+
readVectorMask(reader, mask, width, height, end - reader.offset);
|
|
28
|
+
csh.shapes.push({ name, id, width, height, ...mask });
|
|
29
|
+
reader.offset = end;
|
|
30
|
+
}
|
|
31
|
+
return csh;
|
|
32
|
+
}
|
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
import { AntiAlias, BevelDirection, BevelStyle, BevelTechnique, BlendMode, Color, GlowSource, GlowTechnique, GradientStyle, InterpolationMethod, LayerEffectsInfo, LineAlignment, LineCapType, LineJoinType, Orientation, TextGridding, TimelineKeyInterpolation, TimelineTrack, TimelineTrackType, Units, UnitsBounds, UnitsValue, VectorContent, WarpStyle } from './psd';
|
|
2
|
+
import { PsdReader } from './psdReader';
|
|
3
|
+
import { PsdWriter } from './psdWriter';
|
|
4
|
+
export declare function setLogErrors(value: boolean): void;
|
|
5
|
+
export declare function readAsciiStringOrClassId(reader: PsdReader): string;
|
|
6
|
+
export declare function readDescriptorStructure(reader: PsdReader, includeClass: boolean): any;
|
|
7
|
+
export declare function writeDescriptorStructure(writer: PsdWriter, name: string, classId: string, value: any, root: string): void;
|
|
8
|
+
export declare function readVersionAndDescriptor(reader: PsdReader, includeClass?: boolean): any;
|
|
9
|
+
export declare function writeVersionAndDescriptor(writer: PsdWriter, name: string, classID: string, descriptor: any, root?: string): void;
|
|
10
|
+
export type DescriptorUnits = 'Angle' | 'Density' | 'Distance' | 'None' | 'Percent' | 'Pixels' | 'Millimeters' | 'Points' | 'Picas' | 'Inches' | 'Centimeters';
|
|
11
|
+
export interface DescriptorUnitsValue {
|
|
12
|
+
units: DescriptorUnits;
|
|
13
|
+
value: number;
|
|
14
|
+
}
|
|
15
|
+
export type DescriptorColor = {
|
|
16
|
+
_name: '';
|
|
17
|
+
_classID: 'RGBC';
|
|
18
|
+
'Rd ': number;
|
|
19
|
+
'Grn ': number;
|
|
20
|
+
'Bl ': number;
|
|
21
|
+
} | {
|
|
22
|
+
_name: '';
|
|
23
|
+
_classID: 'HSBC';
|
|
24
|
+
'H ': DescriptorUnitsValue;
|
|
25
|
+
Strt: number;
|
|
26
|
+
Brgh: number;
|
|
27
|
+
} | {
|
|
28
|
+
_name: '';
|
|
29
|
+
_classID: 'CMYC';
|
|
30
|
+
'Cyn ': number;
|
|
31
|
+
Mgnt: number;
|
|
32
|
+
'Ylw ': number;
|
|
33
|
+
Blck: number;
|
|
34
|
+
} | {
|
|
35
|
+
_name: '';
|
|
36
|
+
_classID: 'GRYC';
|
|
37
|
+
'Gry ': number;
|
|
38
|
+
} | {
|
|
39
|
+
_name: '';
|
|
40
|
+
_classID: 'LABC';
|
|
41
|
+
Lmnc: number;
|
|
42
|
+
'A ': number;
|
|
43
|
+
'B ': number;
|
|
44
|
+
} | {
|
|
45
|
+
_name: '';
|
|
46
|
+
_classID: 'RGBC';
|
|
47
|
+
redFloat: number;
|
|
48
|
+
greenFloat: number;
|
|
49
|
+
blueFloat: number;
|
|
50
|
+
};
|
|
51
|
+
export interface DesciptorPattern {
|
|
52
|
+
'Nm ': string;
|
|
53
|
+
Idnt: string;
|
|
54
|
+
}
|
|
55
|
+
export type DesciptorGradient = {
|
|
56
|
+
'Nm ': string;
|
|
57
|
+
GrdF: 'GrdF.CstS';
|
|
58
|
+
Intr: number;
|
|
59
|
+
Clrs: {
|
|
60
|
+
'Clr ': DescriptorColor;
|
|
61
|
+
Type: 'Clry.UsrS';
|
|
62
|
+
Lctn: number;
|
|
63
|
+
Mdpn: number;
|
|
64
|
+
}[];
|
|
65
|
+
Trns: {
|
|
66
|
+
Opct: DescriptorUnitsValue;
|
|
67
|
+
Lctn: number;
|
|
68
|
+
Mdpn: number;
|
|
69
|
+
}[];
|
|
70
|
+
} | {
|
|
71
|
+
GrdF: 'GrdF.ClNs';
|
|
72
|
+
Smth: number;
|
|
73
|
+
'Nm ': string;
|
|
74
|
+
ClrS: string;
|
|
75
|
+
RndS: number;
|
|
76
|
+
VctC?: boolean;
|
|
77
|
+
ShTr?: boolean;
|
|
78
|
+
'Mnm ': number[];
|
|
79
|
+
'Mxm ': number[];
|
|
80
|
+
};
|
|
81
|
+
export interface DescriptorColorContent {
|
|
82
|
+
'Clr ': DescriptorColor;
|
|
83
|
+
}
|
|
84
|
+
export interface DescriptorGradientContent {
|
|
85
|
+
Dthr?: boolean;
|
|
86
|
+
gradientsInterpolationMethod?: string;
|
|
87
|
+
Angl?: DescriptorUnitsValue;
|
|
88
|
+
Type: string;
|
|
89
|
+
Grad: DesciptorGradient;
|
|
90
|
+
Rvrs?: boolean;
|
|
91
|
+
'Scl '?: DescriptorUnitsValue;
|
|
92
|
+
Algn?: boolean;
|
|
93
|
+
Ofst?: {
|
|
94
|
+
Hrzn: DescriptorUnitsValue;
|
|
95
|
+
Vrtc: DescriptorUnitsValue;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
export interface DescriptorPatternContent {
|
|
99
|
+
Ptrn: DesciptorPattern;
|
|
100
|
+
Lnkd?: boolean;
|
|
101
|
+
phase?: {
|
|
102
|
+
Hrzn: number;
|
|
103
|
+
Vrtc: number;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export type DescriptorVectorContent = DescriptorColorContent | DescriptorGradientContent | DescriptorPatternContent;
|
|
107
|
+
export interface StrokeDescriptor {
|
|
108
|
+
strokeStyleVersion: number;
|
|
109
|
+
strokeEnabled: boolean;
|
|
110
|
+
fillEnabled: boolean;
|
|
111
|
+
strokeStyleLineWidth: DescriptorUnitsValue;
|
|
112
|
+
strokeStyleLineDashOffset: DescriptorUnitsValue;
|
|
113
|
+
strokeStyleMiterLimit: number;
|
|
114
|
+
strokeStyleLineCapType: string;
|
|
115
|
+
strokeStyleLineJoinType: string;
|
|
116
|
+
strokeStyleLineAlignment: string;
|
|
117
|
+
strokeStyleScaleLock: boolean;
|
|
118
|
+
strokeStyleStrokeAdjust: boolean;
|
|
119
|
+
strokeStyleLineDashSet: DescriptorUnitsValue[];
|
|
120
|
+
strokeStyleBlendMode: string;
|
|
121
|
+
strokeStyleOpacity: DescriptorUnitsValue;
|
|
122
|
+
strokeStyleContent: DescriptorVectorContent;
|
|
123
|
+
strokeStyleResolution: number;
|
|
124
|
+
}
|
|
125
|
+
export interface BoundsDescriptor {
|
|
126
|
+
Left: DescriptorUnitsValue;
|
|
127
|
+
'Top ': DescriptorUnitsValue;
|
|
128
|
+
Rght: DescriptorUnitsValue;
|
|
129
|
+
Btom: DescriptorUnitsValue;
|
|
130
|
+
}
|
|
131
|
+
export interface TextDescriptor {
|
|
132
|
+
'Txt ': string;
|
|
133
|
+
textGridding: string;
|
|
134
|
+
Ornt: string;
|
|
135
|
+
AntA: string;
|
|
136
|
+
bounds?: BoundsDescriptor;
|
|
137
|
+
boundingBox?: BoundsDescriptor;
|
|
138
|
+
TextIndex: number;
|
|
139
|
+
EngineData?: Uint8Array;
|
|
140
|
+
}
|
|
141
|
+
export interface WarpDescriptor {
|
|
142
|
+
warpStyle: string;
|
|
143
|
+
warpValue?: number;
|
|
144
|
+
warpValues?: number[];
|
|
145
|
+
warpPerspective: number;
|
|
146
|
+
warpPerspectiveOther: number;
|
|
147
|
+
warpRotate: string;
|
|
148
|
+
bounds?: {
|
|
149
|
+
'Top ': DescriptorUnitsValue;
|
|
150
|
+
Left: DescriptorUnitsValue;
|
|
151
|
+
Btom: DescriptorUnitsValue;
|
|
152
|
+
Rght: DescriptorUnitsValue;
|
|
153
|
+
} | {
|
|
154
|
+
_classID: 'classFloatRect';
|
|
155
|
+
'Top ': number;
|
|
156
|
+
Left: number;
|
|
157
|
+
Btom: number;
|
|
158
|
+
Rght: number;
|
|
159
|
+
};
|
|
160
|
+
uOrder: number;
|
|
161
|
+
vOrder: number;
|
|
162
|
+
customEnvelopeWarp?: {
|
|
163
|
+
_name: '';
|
|
164
|
+
_classID: 'customEnvelopeWarp';
|
|
165
|
+
meshPoints: {
|
|
166
|
+
type: 'Hrzn' | 'Vrtc';
|
|
167
|
+
values: number[];
|
|
168
|
+
}[];
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export interface QuiltWarpDescriptor extends WarpDescriptor {
|
|
172
|
+
deformNumRows: number;
|
|
173
|
+
deformNumCols: number;
|
|
174
|
+
customEnvelopeWarp: {
|
|
175
|
+
_name: '';
|
|
176
|
+
_classID: 'customEnvelopeWarp';
|
|
177
|
+
quiltSliceX: {
|
|
178
|
+
type: 'quiltSliceX';
|
|
179
|
+
values: number[];
|
|
180
|
+
}[];
|
|
181
|
+
quiltSliceY: {
|
|
182
|
+
type: 'quiltSliceY';
|
|
183
|
+
values: number[];
|
|
184
|
+
}[];
|
|
185
|
+
meshPoints: {
|
|
186
|
+
type: 'Hrzn' | 'Vrtc';
|
|
187
|
+
values: number[];
|
|
188
|
+
}[];
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
export interface FractionDescriptor {
|
|
192
|
+
numerator: number;
|
|
193
|
+
denominator: number;
|
|
194
|
+
}
|
|
195
|
+
export interface HrznVrtcDescriptor {
|
|
196
|
+
Hrzn: number;
|
|
197
|
+
Vrtc: number;
|
|
198
|
+
}
|
|
199
|
+
export interface FrameDescriptor {
|
|
200
|
+
FrLs: number[];
|
|
201
|
+
enab?: boolean;
|
|
202
|
+
IMsk?: {
|
|
203
|
+
Ofst: HrznVrtcDescriptor;
|
|
204
|
+
};
|
|
205
|
+
VMsk?: {
|
|
206
|
+
Ofst: HrznVrtcDescriptor;
|
|
207
|
+
};
|
|
208
|
+
Ofst?: HrznVrtcDescriptor;
|
|
209
|
+
FXRf?: HrznVrtcDescriptor;
|
|
210
|
+
Lefx?: Lfx2Descriptor;
|
|
211
|
+
blendOptions?: {
|
|
212
|
+
Opct: DescriptorUnitsValue;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
export interface FrameListDescriptor {
|
|
216
|
+
LaID: number;
|
|
217
|
+
LaSt: FrameDescriptor[];
|
|
218
|
+
}
|
|
219
|
+
export declare function horzVrtcToXY(hv: HrznVrtcDescriptor): {
|
|
220
|
+
x: number;
|
|
221
|
+
y: number;
|
|
222
|
+
};
|
|
223
|
+
export declare function xyToHorzVrtc(xy: {
|
|
224
|
+
x: number;
|
|
225
|
+
y: number;
|
|
226
|
+
}): HrznVrtcDescriptor;
|
|
227
|
+
export declare function descBoundsToBounds(desc: BoundsDescriptor): UnitsBounds;
|
|
228
|
+
export declare function boundsToDescBounds(bounds: UnitsBounds): BoundsDescriptor;
|
|
229
|
+
export type TimelineAnimKeyDescriptor = {
|
|
230
|
+
Type: 'keyType.Opct';
|
|
231
|
+
Opct: DescriptorUnitsValue;
|
|
232
|
+
} | {
|
|
233
|
+
Type: 'keyType.Trnf';
|
|
234
|
+
'Scl ': HrznVrtcDescriptor;
|
|
235
|
+
Skew: HrznVrtcDescriptor;
|
|
236
|
+
rotation: number;
|
|
237
|
+
translation: HrznVrtcDescriptor;
|
|
238
|
+
} | {
|
|
239
|
+
Type: 'keyType.Pstn';
|
|
240
|
+
Hrzn: number;
|
|
241
|
+
Vrtc: number;
|
|
242
|
+
} | {
|
|
243
|
+
Type: 'keyType.sheetStyle';
|
|
244
|
+
sheetStyle: {
|
|
245
|
+
Vrsn: number;
|
|
246
|
+
Lefx?: Lfx2Descriptor;
|
|
247
|
+
blendOptions: {};
|
|
248
|
+
};
|
|
249
|
+
} | {
|
|
250
|
+
Type: 'keyType.globalLighting';
|
|
251
|
+
gblA: number;
|
|
252
|
+
globalAltitude: number;
|
|
253
|
+
};
|
|
254
|
+
export interface TimelineKeyDescriptor {
|
|
255
|
+
Vrsn: 1;
|
|
256
|
+
animInterpStyle: 'animInterpStyle.Lnr ' | 'animInterpStyle.hold';
|
|
257
|
+
time: FractionDescriptor;
|
|
258
|
+
animKey: TimelineAnimKeyDescriptor;
|
|
259
|
+
selected: boolean;
|
|
260
|
+
}
|
|
261
|
+
export interface TimelineTrackDescriptor {
|
|
262
|
+
trackID: 'stdTrackID.globalLightingTrack' | 'stdTrackID.opacityTrack' | 'stdTrackID.styleTrack' | 'stdTrackID.sheetTransformTrack' | 'stdTrackID.sheetPositionTrack';
|
|
263
|
+
Vrsn: 1;
|
|
264
|
+
enab: boolean;
|
|
265
|
+
Effc: boolean;
|
|
266
|
+
effectParams?: {
|
|
267
|
+
keyList: TimelineKeyDescriptor[];
|
|
268
|
+
fillCanvas: boolean;
|
|
269
|
+
zoomOrigin: number;
|
|
270
|
+
};
|
|
271
|
+
keyList: TimelineKeyDescriptor[];
|
|
272
|
+
}
|
|
273
|
+
export interface TimeScopeDescriptor {
|
|
274
|
+
Vrsn: 1;
|
|
275
|
+
Strt: FractionDescriptor;
|
|
276
|
+
duration: FractionDescriptor;
|
|
277
|
+
inTime: FractionDescriptor;
|
|
278
|
+
outTime: FractionDescriptor;
|
|
279
|
+
}
|
|
280
|
+
export interface TimelineDescriptor {
|
|
281
|
+
Vrsn: 1;
|
|
282
|
+
timeScope: TimeScopeDescriptor;
|
|
283
|
+
autoScope: boolean;
|
|
284
|
+
audioLevel: number;
|
|
285
|
+
LyrI: number;
|
|
286
|
+
trackList?: TimelineTrackDescriptor[];
|
|
287
|
+
}
|
|
288
|
+
export interface EffectDescriptor extends Partial<DescriptorGradientContent>, Partial<DescriptorPatternContent> {
|
|
289
|
+
enab?: boolean;
|
|
290
|
+
Styl: string;
|
|
291
|
+
PntT?: string;
|
|
292
|
+
'Md '?: string;
|
|
293
|
+
Opct?: DescriptorUnitsValue;
|
|
294
|
+
'Sz '?: DescriptorUnitsValue;
|
|
295
|
+
'Clr '?: DescriptorColor;
|
|
296
|
+
present?: boolean;
|
|
297
|
+
showInDialog?: boolean;
|
|
298
|
+
overprint?: boolean;
|
|
299
|
+
uglg?: boolean;
|
|
300
|
+
}
|
|
301
|
+
export interface Lfx2Descriptor {
|
|
302
|
+
'Scl '?: DescriptorUnitsValue;
|
|
303
|
+
masterFXSwitch?: boolean;
|
|
304
|
+
DrSh?: EffectDescriptor;
|
|
305
|
+
IrSh?: EffectDescriptor;
|
|
306
|
+
OrGl?: EffectDescriptor;
|
|
307
|
+
IrGl?: EffectDescriptor;
|
|
308
|
+
ebbl?: EffectDescriptor;
|
|
309
|
+
SoFi?: EffectDescriptor;
|
|
310
|
+
patternFill?: EffectDescriptor;
|
|
311
|
+
GrFl?: EffectDescriptor;
|
|
312
|
+
ChFX?: EffectDescriptor;
|
|
313
|
+
FrFX?: EffectDescriptor;
|
|
314
|
+
}
|
|
315
|
+
export interface LmfxDescriptor {
|
|
316
|
+
'Scl '?: DescriptorUnitsValue;
|
|
317
|
+
masterFXSwitch?: boolean;
|
|
318
|
+
dropShadowMulti?: EffectDescriptor[];
|
|
319
|
+
innerShadowMulti?: EffectDescriptor[];
|
|
320
|
+
OrGl?: EffectDescriptor;
|
|
321
|
+
solidFillMulti?: EffectDescriptor[];
|
|
322
|
+
gradientFillMulti?: EffectDescriptor[];
|
|
323
|
+
patternFill?: EffectDescriptor;
|
|
324
|
+
frameFXMulti?: EffectDescriptor[];
|
|
325
|
+
IrGl?: EffectDescriptor;
|
|
326
|
+
ebbl?: EffectDescriptor;
|
|
327
|
+
ChFX?: EffectDescriptor;
|
|
328
|
+
numModifyingFX?: number;
|
|
329
|
+
}
|
|
330
|
+
export declare function serializeEffects(e: LayerEffectsInfo, log: boolean, multi: boolean): Lfx2Descriptor & LmfxDescriptor;
|
|
331
|
+
export declare function parseEffects(info: Lfx2Descriptor & LmfxDescriptor, log: boolean): LayerEffectsInfo;
|
|
332
|
+
export declare function parseTrackList(trackList: TimelineTrackDescriptor[], logMissingFeatures: boolean): TimelineTrack[];
|
|
333
|
+
export declare function serializeTrackList(tracks: TimelineTrack[]): TimelineTrackDescriptor[];
|
|
334
|
+
export declare function parseVectorContent(descriptor: DescriptorVectorContent): VectorContent;
|
|
335
|
+
export declare function serializeVectorContent(content: VectorContent): {
|
|
336
|
+
descriptor: DescriptorVectorContent;
|
|
337
|
+
key: string;
|
|
338
|
+
};
|
|
339
|
+
export declare function parseColor(color: DescriptorColor): Color;
|
|
340
|
+
export declare function serializeColor(color: Color | undefined): DescriptorColor;
|
|
341
|
+
export declare function parseAngle(x: DescriptorUnitsValue): number;
|
|
342
|
+
export declare function parsePercent(x: DescriptorUnitsValue | undefined): number;
|
|
343
|
+
export declare function parsePercentOrAngle(x: DescriptorUnitsValue | undefined): number;
|
|
344
|
+
export declare function parseUnits({ units, value }: DescriptorUnitsValue): UnitsValue;
|
|
345
|
+
export declare function parseUnitsOrNumber(value: DescriptorUnitsValue | number, units?: Units): UnitsValue;
|
|
346
|
+
export declare function parseUnitsToNumber({ units, value }: DescriptorUnitsValue, expectedUnits: string): number;
|
|
347
|
+
export declare function unitsAngle(value: number | undefined): DescriptorUnitsValue;
|
|
348
|
+
export declare function unitsPercent(value: number | undefined): DescriptorUnitsValue;
|
|
349
|
+
export declare function unitsPercentF(value: number | undefined): DescriptorUnitsValue;
|
|
350
|
+
export declare function unitsValue(x: UnitsValue | undefined, key: string): DescriptorUnitsValue;
|
|
351
|
+
export declare function frac({ numerator, denominator }: FractionDescriptor): {
|
|
352
|
+
numerator: number;
|
|
353
|
+
denominator: number;
|
|
354
|
+
};
|
|
355
|
+
export declare const textGridding: {
|
|
356
|
+
decode: (val: string) => TextGridding;
|
|
357
|
+
encode: (val: TextGridding | undefined) => string;
|
|
358
|
+
};
|
|
359
|
+
export declare const Ornt: {
|
|
360
|
+
decode: (val: string) => Orientation;
|
|
361
|
+
encode: (val: Orientation | undefined) => string;
|
|
362
|
+
};
|
|
363
|
+
export declare const Annt: {
|
|
364
|
+
decode: (val: string) => AntiAlias;
|
|
365
|
+
encode: (val: AntiAlias | undefined) => string;
|
|
366
|
+
};
|
|
367
|
+
export declare const warpStyle: {
|
|
368
|
+
decode: (val: string) => WarpStyle;
|
|
369
|
+
encode: (val: WarpStyle | undefined) => string;
|
|
370
|
+
};
|
|
371
|
+
export declare const BlnM: {
|
|
372
|
+
decode: (val: string) => BlendMode;
|
|
373
|
+
encode: (val: BlendMode | undefined) => string;
|
|
374
|
+
};
|
|
375
|
+
export declare const BESl: {
|
|
376
|
+
decode: (val: string) => BevelStyle;
|
|
377
|
+
encode: (val: BevelStyle | undefined) => string;
|
|
378
|
+
};
|
|
379
|
+
export declare const bvlT: {
|
|
380
|
+
decode: (val: string) => BevelTechnique;
|
|
381
|
+
encode: (val: BevelTechnique | undefined) => string;
|
|
382
|
+
};
|
|
383
|
+
export declare const BESs: {
|
|
384
|
+
decode: (val: string) => BevelDirection;
|
|
385
|
+
encode: (val: BevelDirection | undefined) => string;
|
|
386
|
+
};
|
|
387
|
+
export declare const BETE: {
|
|
388
|
+
decode: (val: string) => GlowTechnique;
|
|
389
|
+
encode: (val: GlowTechnique | undefined) => string;
|
|
390
|
+
};
|
|
391
|
+
export declare const IGSr: {
|
|
392
|
+
decode: (val: string) => GlowSource;
|
|
393
|
+
encode: (val: GlowSource | undefined) => string;
|
|
394
|
+
};
|
|
395
|
+
export declare const GrdT: {
|
|
396
|
+
decode: (val: string) => GradientStyle;
|
|
397
|
+
encode: (val: GradientStyle | undefined) => string;
|
|
398
|
+
};
|
|
399
|
+
export declare const animInterpStyleEnum: {
|
|
400
|
+
decode: (val: string) => TimelineKeyInterpolation;
|
|
401
|
+
encode: (val: TimelineKeyInterpolation | undefined) => string;
|
|
402
|
+
};
|
|
403
|
+
export declare const stdTrackID: {
|
|
404
|
+
decode: (val: string) => TimelineTrackType;
|
|
405
|
+
encode: (val: TimelineTrackType | undefined) => string;
|
|
406
|
+
};
|
|
407
|
+
export declare const gradientInterpolationMethodType: {
|
|
408
|
+
decode: (val: string) => InterpolationMethod;
|
|
409
|
+
encode: (val: InterpolationMethod | undefined) => string;
|
|
410
|
+
};
|
|
411
|
+
export declare const ClrS: {
|
|
412
|
+
decode: (val: string) => "rgb" | "hsb" | "lab";
|
|
413
|
+
encode: (val: "rgb" | "hsb" | "lab" | undefined) => string;
|
|
414
|
+
};
|
|
415
|
+
export declare const FStl: {
|
|
416
|
+
decode: (val: string) => "center" | "inside" | "outside";
|
|
417
|
+
encode: (val: "center" | "inside" | "outside" | undefined) => string;
|
|
418
|
+
};
|
|
419
|
+
export declare const FrFl: {
|
|
420
|
+
decode: (val: string) => "color" | "gradient" | "pattern";
|
|
421
|
+
encode: (val: "color" | "gradient" | "pattern" | undefined) => string;
|
|
422
|
+
};
|
|
423
|
+
export declare const ESliceType: {
|
|
424
|
+
decode: (val: string) => "image" | "noImage";
|
|
425
|
+
encode: (val: "image" | "noImage" | undefined) => string;
|
|
426
|
+
};
|
|
427
|
+
export declare const ESliceHorzAlign: {
|
|
428
|
+
decode: (val: string) => "default";
|
|
429
|
+
encode: (val: "default" | undefined) => string;
|
|
430
|
+
};
|
|
431
|
+
export declare const ESliceVertAlign: {
|
|
432
|
+
decode: (val: string) => "default";
|
|
433
|
+
encode: (val: "default" | undefined) => string;
|
|
434
|
+
};
|
|
435
|
+
export declare const ESliceOrigin: {
|
|
436
|
+
decode: (val: string) => "userGenerated" | "autoGenerated" | "layer";
|
|
437
|
+
encode: (val: "userGenerated" | "autoGenerated" | "layer" | undefined) => string;
|
|
438
|
+
};
|
|
439
|
+
export declare const ESliceBGColorType: {
|
|
440
|
+
decode: (val: string) => "color" | "none" | "matte";
|
|
441
|
+
encode: (val: "color" | "none" | "matte" | undefined) => string;
|
|
442
|
+
};
|
|
443
|
+
export declare const strokeStyleLineCapType: {
|
|
444
|
+
decode: (val: string) => LineCapType;
|
|
445
|
+
encode: (val: LineCapType | undefined) => string;
|
|
446
|
+
};
|
|
447
|
+
export declare const strokeStyleLineJoinType: {
|
|
448
|
+
decode: (val: string) => LineJoinType;
|
|
449
|
+
encode: (val: LineJoinType | undefined) => string;
|
|
450
|
+
};
|
|
451
|
+
export declare const strokeStyleLineAlignment: {
|
|
452
|
+
decode: (val: string) => LineAlignment;
|
|
453
|
+
encode: (val: LineAlignment | undefined) => string;
|
|
454
|
+
};
|
|
455
|
+
export declare const BlrM: {
|
|
456
|
+
decode: (val: string) => "spin" | "zoom";
|
|
457
|
+
encode: (val: "spin" | "zoom" | undefined) => string;
|
|
458
|
+
};
|
|
459
|
+
export declare const BlrQ: {
|
|
460
|
+
decode: (val: string) => "draft" | "good" | "best";
|
|
461
|
+
encode: (val: "draft" | "good" | "best" | undefined) => string;
|
|
462
|
+
};
|
|
463
|
+
export declare const SmBM: {
|
|
464
|
+
decode: (val: string) => "normal" | "edge only" | "overlay edge";
|
|
465
|
+
encode: (val: "normal" | "edge only" | "overlay edge" | undefined) => string;
|
|
466
|
+
};
|
|
467
|
+
export declare const SmBQ: {
|
|
468
|
+
decode: (val: string) => "low" | "medium" | "high";
|
|
469
|
+
encode: (val: "low" | "medium" | "high" | undefined) => string;
|
|
470
|
+
};
|
|
471
|
+
export declare const DspM: {
|
|
472
|
+
decode: (val: string) => "stretch to fit" | "tile";
|
|
473
|
+
encode: (val: "stretch to fit" | "tile" | undefined) => string;
|
|
474
|
+
};
|
|
475
|
+
export declare const UndA: {
|
|
476
|
+
decode: (val: string) => "wrap around" | "repeat edge pixels";
|
|
477
|
+
encode: (val: "wrap around" | "repeat edge pixels" | undefined) => string;
|
|
478
|
+
};
|
|
479
|
+
export declare const Cnvr: {
|
|
480
|
+
decode: (val: string) => "rectangular to polar" | "polar to rectangular";
|
|
481
|
+
encode: (val: "rectangular to polar" | "polar to rectangular" | undefined) => string;
|
|
482
|
+
};
|
|
483
|
+
export declare const RplS: {
|
|
484
|
+
decode: (val: string) => "medium" | "small" | "large";
|
|
485
|
+
encode: (val: "medium" | "small" | "large" | undefined) => string;
|
|
486
|
+
};
|
|
487
|
+
export declare const SphM: {
|
|
488
|
+
decode: (val: string) => "normal" | "horizontal only" | "vertical only";
|
|
489
|
+
encode: (val: "normal" | "horizontal only" | "vertical only" | undefined) => string;
|
|
490
|
+
};
|
|
491
|
+
export declare const Wvtp: {
|
|
492
|
+
decode: (val: string) => "square" | "sine" | "triangle";
|
|
493
|
+
encode: (val: "square" | "sine" | "triangle" | undefined) => string;
|
|
494
|
+
};
|
|
495
|
+
export declare const ZZTy: {
|
|
496
|
+
decode: (val: string) => "around center" | "out from center" | "pond ripples";
|
|
497
|
+
encode: (val: "around center" | "out from center" | "pond ripples" | undefined) => string;
|
|
498
|
+
};
|
|
499
|
+
export declare const Dstr: {
|
|
500
|
+
decode: (val: string) => "uniform" | "gaussian";
|
|
501
|
+
encode: (val: "uniform" | "gaussian" | undefined) => string;
|
|
502
|
+
};
|
|
503
|
+
export declare const Chnl: {
|
|
504
|
+
decode: (val: string) => "red" | "green" | "blue" | "composite";
|
|
505
|
+
encode: (val: "red" | "green" | "blue" | "composite" | undefined) => string;
|
|
506
|
+
};
|
|
507
|
+
export declare const MztT: {
|
|
508
|
+
decode: (val: string) => "fine dots" | "medium dots" | "grainy dots" | "coarse dots" | "short lines" | "medium lines" | "long lines" | "short strokes" | "medium strokes" | "long strokes";
|
|
509
|
+
encode: (val: "fine dots" | "medium dots" | "grainy dots" | "coarse dots" | "short lines" | "medium lines" | "long lines" | "short strokes" | "medium strokes" | "long strokes" | undefined) => string;
|
|
510
|
+
};
|
|
511
|
+
export declare const Lns: {
|
|
512
|
+
decode: (val: string) => "50-300mm zoom" | "32mm prime" | "105mm prime" | "movie prime";
|
|
513
|
+
encode: (val: "50-300mm zoom" | "32mm prime" | "105mm prime" | "movie prime" | undefined) => string;
|
|
514
|
+
};
|
|
515
|
+
export declare const blurType: {
|
|
516
|
+
decode: (val: string) => "gaussian blur" | "motion blur" | "lens blur";
|
|
517
|
+
encode: (val: "gaussian blur" | "motion blur" | "lens blur" | undefined) => string;
|
|
518
|
+
};
|
|
519
|
+
export declare const DfsM: {
|
|
520
|
+
decode: (val: string) => "normal" | "darken only" | "lighten only" | "anisotropic";
|
|
521
|
+
encode: (val: "normal" | "darken only" | "lighten only" | "anisotropic" | undefined) => string;
|
|
522
|
+
};
|
|
523
|
+
export declare const ExtT: {
|
|
524
|
+
decode: (val: string) => "blocks" | "pyramids";
|
|
525
|
+
encode: (val: "blocks" | "pyramids" | undefined) => string;
|
|
526
|
+
};
|
|
527
|
+
export declare const ExtR: {
|
|
528
|
+
decode: (val: string) => "random" | "level-based";
|
|
529
|
+
encode: (val: "random" | "level-based" | undefined) => string;
|
|
530
|
+
};
|
|
531
|
+
export declare const FlCl: {
|
|
532
|
+
decode: (val: string) => "background color" | "foreground color" | "inverse image" | "unaltered image";
|
|
533
|
+
encode: (val: "background color" | "foreground color" | "inverse image" | "unaltered image" | undefined) => string;
|
|
534
|
+
};
|
|
535
|
+
export declare const CntE: {
|
|
536
|
+
decode: (val: string) => "lower" | "upper";
|
|
537
|
+
encode: (val: "lower" | "upper" | undefined) => string;
|
|
538
|
+
};
|
|
539
|
+
export declare const WndM: {
|
|
540
|
+
decode: (val: string) => "wind" | "blast" | "stagger";
|
|
541
|
+
encode: (val: "wind" | "blast" | "stagger" | undefined) => string;
|
|
542
|
+
};
|
|
543
|
+
export declare const Drct: {
|
|
544
|
+
decode: (val: string) => "left" | "right";
|
|
545
|
+
encode: (val: "left" | "right" | undefined) => string;
|
|
546
|
+
};
|
|
547
|
+
export declare const IntE: {
|
|
548
|
+
decode: (val: string) => "odd lines" | "even lines";
|
|
549
|
+
encode: (val: "odd lines" | "even lines" | undefined) => string;
|
|
550
|
+
};
|
|
551
|
+
export declare const IntC: {
|
|
552
|
+
decode: (val: string) => "duplication" | "interpolation";
|
|
553
|
+
encode: (val: "duplication" | "interpolation" | undefined) => string;
|
|
554
|
+
};
|
|
555
|
+
export declare const FlMd: {
|
|
556
|
+
decode: (val: string) => "wrap around" | "repeat edge pixels" | "set to transparent";
|
|
557
|
+
encode: (val: "wrap around" | "repeat edge pixels" | "set to transparent" | undefined) => string;
|
|
558
|
+
};
|
|
559
|
+
export declare const prjM: {
|
|
560
|
+
decode: (val: string) => "fisheye" | "auto" | "perspective" | "full spherical";
|
|
561
|
+
encode: (val: "fisheye" | "auto" | "perspective" | "full spherical" | undefined) => string;
|
|
562
|
+
};
|
|
563
|
+
export declare const presetKindType: {
|
|
564
|
+
decode: (val: string) => "custom" | "default";
|
|
565
|
+
encode: (val: "custom" | "default" | undefined) => string;
|
|
566
|
+
};
|