state sync

This commit is contained in:
2025-11-23 14:59:17 -08:00
parent 537bdf1ad7
commit 39f4a8d3fc
812 changed files with 373062 additions and 84 deletions

View File

@@ -0,0 +1,24 @@
import type { Node } from '../../types.js';
export declare const solidStateFill: (color: string) => {
fill: string;
hachureAngle: number;
hachureGap: number;
fillWeight: number;
roughness: number;
stroke: string;
seed: number | undefined;
};
export declare const compileStyles: (node: Node) => {
stylesMap: Map<string, string>;
stylesArray: [string, string][];
};
export declare const styles2Map: (styles: string[]) => Map<string, string>;
export declare const isLabelStyle: (key: string) => key is "font-family" | "font-size" | "font-weight" | "font-style" | "text-align" | "white-space" | "color" | "text-decoration" | "text-transform" | "line-height" | "letter-spacing" | "word-spacing" | "text-shadow" | "text-overflow" | "word-wrap" | "word-break" | "overflow-wrap" | "hyphens";
export declare const styles2String: (node: Node) => {
labelStyles: string;
nodeStyles: string;
stylesArray: [string, string][];
borderStyles: string[];
backgroundStyles: string[];
};
export declare const userNodeOverrides: (node: Node, options: any) => any;