Minor Changes
-
feat: New
GeoClipPathcomponent for clipping content to GeoJSON boundaries in both SVG and Canvas modes (#449) -
feat(Text): Add
segmentsprop for inline mixed-style text (#449)New
segmentsprop accepts an array of{ value, class }objects to render text with different styles (font size, weight, color) inline. Works across SVG (via tspans), Canvas (via sequential measureText/fillText), and HTML layers. Useful for labels that combine a bold name with a lighter value, such as treemap headers. -
feat(Hull): Add CommonStyleProps (fill, fillOpacity, stroke, strokeOpacity, strokeWidth, opacity) for Canvas layer compatibility (#449)
-
feat(Tooltip): Add
fadeDurationprop to control fade in/out transition (#828)The fade transition on
Tooltip.Rootis now configurable via thefadeDurationprop (default:100ms). Set to0to disable the fade transition entirely. -
feat(Tooltip): Portal tooltip to body by default to fix overflow clipping. Resolves #446 (#828)
Tooltip.Root now portals to
document.body(or.PortalTarget) by default using theportalaction from@layerstack/svelte-actions. This prevents tooltips from being clipped by ancestor elements withoverflow: hidden. The tooltip usesposition: fixedwith viewport-relative coordinates when portaled. Setportal={false}to restore the previous inline behavior. Bothcontained="container"andcontained="window"modes continue to work correctly with portaling.
Patch Changes
-
fix(ArcLabel): Support rotation in Canvas mode (#449)
Changed
centroid-rotatedandcentroid-radialplacements to passrotateprop instead of SVGtransformstring toText, enabling rotation in Canvas rendering. -
fix: Pie and Arc components now correctly use Chart's
xRangeprop for angle degrees instead of the computed viewport pixel range, and compute radius from chart dimensions instead of scale range (#449)