@htmlbricks/hb-bundle
Version:
Single IIFE loader for all HTML Bricks hb-* web components from the jsDelivr CDN, with optional Subresource Integrity; includes agent/LLM docs and theme CSS variables.
29 lines (24 loc) • 667 B
TypeScript
export type TSaveType = "pdf" | "json" | "png" | "svg" | "jpg";
export type TPath = [number, number, number][];
export type IStroke = {
actionIndex: number;
visible: boolean;
color?: string;
path?: TPath;
id: string;
pathData?: string;
min?: [number, number];
max?: [number, number];
erasedAtIndex?: number;
opacity?: number;
selected?: boolean;
multipath?: IStroke[];
type: "stroke" | "multiplestroke" | "eraser" | "move";
};
export type TSave = { type: TSaveType; draw: IStroke[]; id: string; draw_id: string; name: string; version: number };
export type Component = {
id?: string;
style?: string;
load_draw?: TSave;
};
export type Events = {};