Releases: techniq/layerchart
layerchart@2.0.0-next.46
layerchart@2.0.0-next.45
Major Changes
- feat: New docs site (#449)
Minor Changes
-
breaking: Extract
Pathprimitive component fromSplinefor better separation of concerns (#659) -
breaking: Rename simplified charts
renderContextprop tolayer(#659) -
breaking: Change
defaultChartPadding(axis, legend)todefaultChartPadding({ axis, legend })and support overrides (ex.defaultChartPadding({ left: 50 })) (#659)
Patch Changes
-
feat(Chart): Support passing explicit
widthandheightinstead of requiring parent dimensions (#659) -
feat: Support global settings (layer type, debug, etc) (#659)
-
feat(Layer): Allow
typeto be optional, fallbacking back tosettings.layertype (#659) -
feat(Chart|Svg|Html): Support passing
clipprop to hide overflown content (#659) -
feat(Circle|Rect): Support passing children snippet for Html layers (#659)
-
feat(Layer): Support showing chart and full frame boundaries with
settings.debug(#659) -
fix(Threshold): Properly clip
abovesnippet (resolving 1/2 width clipping issues when using Spline) (#659) -
fix(AnnotationRange|TooltipContext|Highlight): Fix using interval scales with reversed data (ex. xReverse) (#659)
-
fix(Canavs): Support
styleattribute (#659) -
fix(Rect): Support rounded (rx/ry) in Canvas layers (fixes #481) (#659)
-
fix(Bar): Fix browser lockup when switching between group and stack layouts (#659)
-
fix(Bar): Fix bar rounding direction when using xReverse/yReverse with interval scales (#659)
-
fix(Text): Support explicit "\n" and set line-height (to match svg/canvas) for html layers (#659)
-
feat(Chart): Support
classprop (#659) -
refactor: Move contexts to separate
$lib/contextsmodule (#659) -
refactor: Removed lodash-es dependency (#659)
layerchart@1.0.13
Patch Changes
- fix(Canvas): Fix pointer events (hit canvas) when using Brave browser with fingerprinting protection enabled (#755)
layerchart@2.0.0-next.44
Patch Changes
- fix(Canvas): Fix pointer events (hit canvas) when using Brave browser with fingerprinting protection enabled (#449)
layerchart@2.0.0-next.43
Patch Changes
- fix(Highlight|TooltipContext): Support xInterval / yInterval (#449)
layerchart@2.0.0-next.42
Patch Changes
- fix(Calendar): Respect
startinstead of always start of year (#657)
layerchart@2.0.0-next.41
Patch Changes
- fix(Tooltip): Correctly set tooltip position on chart enter and exit (#655)
layerchart@2.0.0-next.40
Patch Changes
- fix(LineChart): Restore passing xScale / yScale overrides (#449)
layerchart@2.0.0-next.39
Minor Changes
- feat: Support css-only usage (no Tailwind required) while retaining first-class Tailwind support (#557)
Patch Changes
-
feat: Simplify daisyUI, shadcn-svelte, and Skeleton integrations with single line
@import 'layerchart/{library}.css'added toapp.css(#557) -
docs: Add examples for standalone, daisyUI v5, shadcn-svelte v1, Skeleton v3, and Svelte UX v2 (next) (including light/dark theming) (#557)
-
feat(LineChart): Support
orientation="vertical". Resolves #640 (#557) -
feat: Add Html context support for applicable primitives such as Circle, Line, Rect, Text (and more) as well as transitively such as Axis, Grid, Labels (and more) (#557)
-
feat(LinearGradient): Support Html context (#557)
-
fix(Text): Apply
fill: currentColorto support more straightforward way of changing color (ex.class="text-red-500"orstyle="color:red") (#557) -
fix(TooltipContext): Revert back to pointer events (instead of mouse/touch) but with
touch-action: pan-y. Provides simplified events while allowing horizontal scrubbing with vertical scrolling. (#557) -
feat(TooltipContext): Add
touchEventsto control touch event behavior. Defaults topan-yto allow vertical scrolling but horizontal scrubbing. (#557) -
fix(TooltipContext): Fix
bandmode regression when both x/y are scaleBand (ex. punchcard chart) (#557) -
fix(SimplifiedCharts): Properly handle
legendprop as object when determining bottom padding (#557) -
fix(AreaChart|LineChart|DefaultTooltip): Handle per-series data with different length (#557)
-
feat(Highlight): Support passing
opacity(#557) -
fix(SimplifiedChart): Still add selected legend item opacity when item classes are also applied (#557)
-
feat(Legend): Add
selectedprop to fade out unselected items (if passed and non-empty) (#557) -
feat(SeriesState): Add
isHighlighted(seriesKey)to easy check if series is hightlight (or should be faded) (#557) -
fix(Primatives): Apply default classes when using Canvas context (like Svg). Resolves #544 (#557)
-
refactor: Remove use of
layerClassand applylc-{name}class directly to allow easy component <style> targetting within LayerChart (#557)