Interface PathDOpts
interface PathDOpts {
box?: () => { h: number; w: number; x: number; y: number };
cap?: "butt" | "round" | "square";
dasharray?: Val<string>;
fill?: Val<string>;
join?: "round" | "miter" | "bevel";
opacity?: Val<number>;
stroke?: Val<string>;
strokeWidth?: Val<number>;
thin?: boolean;
}
box?: () => { h: number; w: number; x: number; y: number };
cap?: "butt" | "round" | "square";
dasharray?: Val<string>;
fill?: Val<string>;
join?: "round" | "miter" | "bevel";
opacity?: Val<number>;
stroke?: Val<string>;
strokeWidth?: Val<number>;
thin?: boolean;
}
Index
Properties
Properties
Optionalbox
box?: () => { h: number; w: number; x: number; y: number }
Optionalcap
cap?: "butt" | "round" | "square"
Stroke line cap.
Optionaldasharray
Stroke dash array (e.g. "3 5").
Optionalfill
Fill color. Default: "none".
Optionaljoin
join?: "round" | "miter" | "bevel"
Stroke line join.
Optionalopacity
Reactive opacity.
Optionalstroke
Stroke color. Default: tokens.stroke.
OptionalstrokeWidth
Stroke width override; trumps thin.
Optionalthin
thin?: boolean
Use the thin stroke weight (tokens.thinWeight). Default: false.
Reactive bbox for auto-fit. Default: zero box (caller manages view).