/** * High-DPI Bezier-curve clip-paths for `cloud` and `cloudCallout` presets. * * The static polygon entries in {@link CLIP_PATHS_EXTENDED} approximate the * cumulus silhouette with 32 vertices, which becomes visibly faceted on * Retina/4K displays. These helpers return CSS `path('M…Z')` expressions * built from cubic-Bezier lobes, so the outline stays smooth at any DPI. * * `path()` in CSS does not accept percentage units, so callers must supply * pixel dimensions and re-compute on resize. Use {@link getCloudPathForRendering} * (in `shape-geometry.ts`) for the shape-aware wrapper. * * Browser support: Chrome 109+, Safari 15.4+, Firefox 105+. * * @module cloud-bezier-paths */ /** * Produce a CSS `clip-path: path('…')` expression for the `cloud` preset. * * The body centre is the bounding-box centre. 8 cubic-Bezier lobes are * walked clockwise; each lobe is rendered as a near-circular bump using * two cubic-Bezier segments connected by a transition arc back toward the * next lobe's start. The path is closed with `Z`. * * @param width - Element width in pixels. * @param height - Element height in pixels. * @returns A CSS `path('M…Z')` expression suitable for `clip-path`. */ export declare function getCloudClipPath(width: number, height: number): string; /** * Produce a CSS `clip-path: path('…')` expression for the `cloudCallout` * preset. Combines the 8-lobe cumulus body with the spec-default 3-bump * tail trailing toward the lower-left. * * The body is shrunk to ~75% of the bounding box (centred slightly toward * the upper-right) so the tail bumps fit within the 100% box. Adjustment- * driven repositioning of the pointer tip is handled by Agent B in * `adjustment-aware-shapes.ts`; this helper uses the spec defaults. * * @param width - Element width in pixels. * @param height - Element height in pixels. * @returns A CSS `path('M…Z')` expression suitable for `clip-path`. */ export declare function getCloudCalloutClipPath(width: number, height: number): string; /** * Lobe count exposed for tests and downstream consumers that want to * verify the spec-correct number of cumulus piles. */ export declare const CLOUD_LOBE_COUNT: number; /** * Tail bump count exposed for tests; matches the spec default for the * `cloudCallout` pointer trail. */ export declare const CLOUD_CALLOUT_TAIL_COUNT: number; //# sourceMappingURL=cloud-bezier-paths.d.ts.map