mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
40 lines
953 B
TypeScript
40 lines
953 B
TypeScript
export interface StrokeOptions {
|
|
thinning: number;
|
|
smoothing: number;
|
|
streamline: number;
|
|
easing: string;
|
|
simulatePressure?: boolean;
|
|
start: {
|
|
cap: boolean;
|
|
taper: number | boolean;
|
|
easing: string;
|
|
};
|
|
end: {
|
|
cap: boolean;
|
|
taper: number | boolean;
|
|
easing: string;
|
|
};
|
|
}
|
|
|
|
export interface PenOptions {
|
|
highlighter: boolean;
|
|
constantPressure: boolean;
|
|
hasOutline: boolean;
|
|
outlineWidth: number;
|
|
options: StrokeOptions;
|
|
}
|
|
|
|
export declare type ExtendedFillStyle = "dots"|"zigzag"|"zigzag-line"|"dashed"|"hachure"|"cross-hatch"|"solid"|"";
|
|
export declare type PenType = "default" | "highlighter" | "finetip" | "fountain" | "marker" | "thick-thin" | "thin-thick-thin";
|
|
|
|
export interface PenStyle {
|
|
type: PenType;
|
|
freedrawOnly: boolean;
|
|
strokeColor?: string;
|
|
backgroundColor?: string;
|
|
fillStyle: ExtendedFillStyle;
|
|
strokeWidth: number;
|
|
roughness: number;
|
|
penOptions: PenOptions;
|
|
}
|