@yft-design/engine 0.0.37 → 0.0.38
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.
|
@@ -6,6 +6,7 @@ export declare const strokeSupersampleCap: (node: SceneNode) => number;
|
|
|
6
6
|
export declare const imageFiltersSig: (node: SceneNode) => string;
|
|
7
7
|
export declare const imageRoundedRadius: (node: SceneNode) => number | null;
|
|
8
8
|
export declare const imageRoundedSig: (node: SceneNode) => string;
|
|
9
|
+
export declare const roundedMaskSource: (source: CanvasImageSource, sourceRect: SourceRect | null, rounded: number | null, cw: number, ch: number) => CanvasImageSource;
|
|
9
10
|
export declare const buildTextEffectSource: (node: TextNode, scale?: number) => HTMLCanvasElement | null;
|
|
10
11
|
export interface PsdShadowBake {
|
|
11
12
|
canvas: HTMLCanvasElement;
|
|
@@ -10,6 +10,7 @@ export declare const linearExtent: (node: SceneNode) => {
|
|
|
10
10
|
x: number;
|
|
11
11
|
y: number;
|
|
12
12
|
};
|
|
13
|
+
export declare const shadowGeoKey: (node: SceneNode) => string;
|
|
13
14
|
export declare const drawTextGlyphs: (ctx: CanvasRenderingContext2D, node: TextNode, color: string) => void;
|
|
14
15
|
export declare const drawSilhouette: (ctx: CanvasRenderingContext2D, node: SceneNode, color: string) => void;
|
|
15
16
|
export declare const bakeShadow: (node: SceneNode, decl: ShadowDecl) => ShadowBakeResult | null;
|