@flatkit/types 0.7.0 → 0.9.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.
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -329,6 +329,7 @@ type Region = {
|
|
|
329
329
|
paint?: Paint;
|
|
330
330
|
fillParam?: string;
|
|
331
331
|
stroke?: Stroke;
|
|
332
|
+
strokeParam?: string;
|
|
332
333
|
noFill?: boolean;
|
|
333
334
|
xform?: Transform;
|
|
334
335
|
opacity?: number;
|
|
@@ -362,6 +363,7 @@ type Group = {
|
|
|
362
363
|
h: number;
|
|
363
364
|
};
|
|
364
365
|
expressions?: Partial<Record<ExprChannel, string>>;
|
|
366
|
+
clip?: ClipRect;
|
|
365
367
|
};
|
|
366
368
|
/** Instance of a reusable symbol: a transform + a reference to the symbol. */
|
|
367
369
|
type Instance = {
|
|
@@ -380,6 +382,14 @@ type Instance = {
|
|
|
380
382
|
blend?: BlendMode;
|
|
381
383
|
expressions?: Partial<Record<ExprChannel, string>>;
|
|
382
384
|
params?: Record<string, string>;
|
|
385
|
+
clip?: ClipRect;
|
|
386
|
+
};
|
|
387
|
+
/** A rectangular clip region in a container's LOCAL coordinates (`clip <x> <y> <w> <h>`). */
|
|
388
|
+
type ClipRect = {
|
|
389
|
+
x: number;
|
|
390
|
+
y: number;
|
|
391
|
+
w: number;
|
|
392
|
+
h: number;
|
|
383
393
|
};
|
|
384
394
|
/**
|
|
385
395
|
* Library folder (pure organization, Flash style): a tree by `parent`. SYMBOLS stay FLAT (referenced by
|
|
@@ -546,4 +556,4 @@ type EditFrame = {
|
|
|
546
556
|
};
|
|
547
557
|
type Tool = 'brush' | 'rect' | 'ellipse' | 'eraser' | 'fill' | 'select' | 'transform' | 'text' | 'pan' | 'pen' | 'pathselect' | 'ink';
|
|
548
558
|
|
|
549
|
-
export type { Action, Asset, BBox, BlendMode, Cel, ContentKey, ContentTrack, Doc, Easing, EditFrame, ExprChannel, ExprContext, Filter, Folder, FrameAction, FrameLabel, FuncDef, Group, Image, Instance, InstanceBind, InstancePlayback, Interaction, Interactor, Item, ItemEvent, ItemInteractionState, Keyframe, Layer, Paint, ParamDef, ParamType, Path, PlaybackMode, Point, PolyGroup, Polygon, Pose, Region, ResolveOpts, Ring, Seg, SendPayload, Shape, SoundClip, SpinDir, StateAnchor, StateMachine, Stop, Stroke, Subpath, SymbolDef, Text, Timeline, TimelineTrack, Tint, Tool, Transform };
|
|
559
|
+
export type { Action, Asset, BBox, BlendMode, Cel, ClipRect, ContentKey, ContentTrack, Doc, Easing, EditFrame, ExprChannel, ExprContext, Filter, Folder, FrameAction, FrameLabel, FuncDef, Group, Image, Instance, InstanceBind, InstancePlayback, Interaction, Interactor, Item, ItemEvent, ItemInteractionState, Keyframe, Layer, Paint, ParamDef, ParamType, Path, PlaybackMode, Point, PolyGroup, Polygon, Pose, Region, ResolveOpts, Ring, Seg, SendPayload, Shape, SoundClip, SpinDir, StateAnchor, StateMachine, Stop, Stroke, Subpath, SymbolDef, Text, Timeline, TimelineTrack, Tint, Tool, Transform };
|