laif-ds 0.2.21 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-select.js +92 -109
- package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
- package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
- package/dist/components/ui/message-input.js +23 -23
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/textarea.js +18 -15
- package/dist/index.d.ts +6 -7
- package/dist/lib/audio-utils.js +2 -2
- package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
- package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
- package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
- package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +2 -2
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +2 -2
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
- package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
- package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.js +14 -14
- package/dist/node_modules/dayjs/locale/it.js +4 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
- package/dist/node_modules/decimal.js-light/decimal.js +2 -2
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
- package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
- package/dist/node_modules/eventemitter3/index2.js +3 -3
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/immer/dist/immer.js +213 -216
- package/dist/node_modules/lexical/Lexical.prod.js +212 -212
- package/dist/node_modules/lodash/_baseCreate.js +2 -2
- package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
- package/dist/node_modules/lodash/_defineProperty.js +2 -2
- package/dist/node_modules/lodash/_isMasked.js +2 -2
- package/dist/node_modules/lodash/_nodeUtil.js +4 -4
- package/dist/node_modules/lodash/isArguments.js +2 -2
- package/dist/node_modules/lodash/isBuffer.js +2 -2
- package/dist/node_modules/lodash/lodash.js +16 -16
- package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
- package/dist/node_modules/prismjs/components/prism-java.js +2 -2
- package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
- package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
- package/dist/node_modules/prismjs/prism.js +8 -8
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
- package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
- package/dist/node_modules/react-window/dist/index.esm.js +2 -2
- package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
- package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
- package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
- package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
- package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
- package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
- package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
- package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
- package/dist/node_modules/recharts/es6/util/types.js +22 -332
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
- package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
- package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
- package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
- package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
- package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
- package/dist/node_modules/shiki/dist/langs.js +225 -220
- package/dist/node_modules/shiki/dist/themes.js +60 -60
- package/dist/node_modules/sonner/dist/index.js +309 -305
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/node_modules/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/isEqual.js +0 -8
- package/dist/_virtual/isEqual2.js +0 -5
- package/dist/_virtual/isEqualWith.js +0 -5
- package/dist/_virtual/isPlainObject.js +0 -5
- package/dist/_virtual/noop.js +0 -5
- package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
- package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
- package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
- package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
- package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
- package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react";
|
|
3
3
|
import { useAppSelector as r } from "../state/hooks.js";
|
|
4
|
-
import { selectChartViewBox as s,
|
|
5
|
-
import { selectChartWidth as
|
|
4
|
+
import { selectChartViewBox as s, selectChartOffsetInternal as h } from "../state/selectors/selectChartOffsetInternal.js";
|
|
5
|
+
import { selectChartWidth as n, selectChartHeight as u } from "../state/selectors/containerSelectors.js";
|
|
6
6
|
import { useIsPanorama as l } from "./PanoramaContext.js";
|
|
7
7
|
import { selectBrushDimensions as m, selectBrushSettings as p } from "../state/selectors/brushSelectors.js";
|
|
8
8
|
var B = () => {
|
|
9
|
-
var t,
|
|
10
|
-
return !
|
|
11
|
-
width:
|
|
12
|
-
height:
|
|
9
|
+
var t, a = l(), i = r(s), o = r(m), e = (t = r(p)) === null || t === void 0 ? void 0 : t.padding;
|
|
10
|
+
return !a || !o || !e ? i : {
|
|
11
|
+
width: o.width - e.left - e.right,
|
|
12
|
+
height: o.height - e.top - e.bottom,
|
|
13
13
|
x: e.left,
|
|
14
14
|
y: e.top
|
|
15
15
|
};
|
|
@@ -21,24 +21,16 @@ var B = () => {
|
|
|
21
21
|
width: 0,
|
|
22
22
|
height: 0,
|
|
23
23
|
brushBottom: 0
|
|
24
|
-
},
|
|
24
|
+
}, b = () => {
|
|
25
25
|
var t;
|
|
26
|
-
return (t = r(
|
|
27
|
-
}, I = () => r(
|
|
28
|
-
top: 0,
|
|
29
|
-
right: 0,
|
|
30
|
-
bottom: 0,
|
|
31
|
-
left: 0
|
|
32
|
-
}, A = () => {
|
|
33
|
-
var t;
|
|
34
|
-
return (t = r((o) => o.layout.margin)) !== null && t !== void 0 ? t : v;
|
|
35
|
-
}, d = (t) => t.layout.layoutType, O = () => r(d);
|
|
26
|
+
return (t = r(h)) !== null && t !== void 0 ? t : f;
|
|
27
|
+
}, x = () => r(n), I = () => r(u), S = () => r((t) => t.layout.margin), v = (t) => t.layout.layoutType, A = () => r(v);
|
|
36
28
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
v as selectChartLayout,
|
|
30
|
+
I as useChartHeight,
|
|
31
|
+
A as useChartLayout,
|
|
32
|
+
x as useChartWidth,
|
|
33
|
+
S as useMargin,
|
|
34
|
+
b as useOffsetInternal,
|
|
43
35
|
B as useViewBox
|
|
44
36
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useAppSelector as i } from "../state/hooks.js";
|
|
3
3
|
import { getBandSizeOfAxis as u } from "../util/ChartUtils.js";
|
|
4
|
-
import { selectTooltipAxisTicks as s, selectTooltipAxisScale as l
|
|
4
|
+
import { selectTooltipAxisTicks as s, selectTooltipAxisScale as l } from "../state/selectors/tooltipSelectors.js";
|
|
5
|
+
import { selectTooltipAxis as a } from "../state/selectors/selectTooltipAxis.js";
|
|
5
6
|
function n(e, t) {
|
|
6
7
|
var r = Object.keys(e);
|
|
7
8
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -27,10 +28,10 @@ function f(e, t, r) {
|
|
|
27
28
|
return (t = b(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
28
29
|
}
|
|
29
30
|
function b(e) {
|
|
30
|
-
var t =
|
|
31
|
+
var t = m(e, "string");
|
|
31
32
|
return typeof t == "symbol" ? t : t + "";
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function m(e, t) {
|
|
34
35
|
if (typeof e != "object" || !e) return e;
|
|
35
36
|
var r = e[Symbol.toPrimitive];
|
|
36
37
|
if (r !== void 0) {
|
|
@@ -40,13 +41,13 @@ function y(e, t) {
|
|
|
40
41
|
}
|
|
41
42
|
return (t === "string" ? String : Number)(e);
|
|
42
43
|
}
|
|
43
|
-
var
|
|
44
|
-
var e =
|
|
44
|
+
var y = () => i(a), P = () => {
|
|
45
|
+
var e = y(), t = i(s), r = i(l);
|
|
45
46
|
return u(c(c({}, e), {}, {
|
|
46
47
|
scale: r
|
|
47
48
|
}), t);
|
|
48
49
|
};
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
y as useTooltipAxis,
|
|
52
|
+
P as useTooltipAxisBandSize
|
|
52
53
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as w from "react";
|
|
3
3
|
import { clsx as B } from "../../../clsx/dist/clsx.js";
|
|
4
4
|
import { adaptEventHandlers as S } from "../util/types.js";
|
|
5
|
-
import {
|
|
6
|
-
import { isNumber as y, upperFirst as N } from "../util/DataUtils.js";
|
|
5
|
+
import { isNumber as y, upperFirst as E } from "../util/DataUtils.js";
|
|
7
6
|
import { isWellBehavedNumber as b } from "../util/isWellBehavedNumber.js";
|
|
7
|
+
import { svgPropertiesNoEvents as N } from "../util/svgPropertiesNoEvents.js";
|
|
8
8
|
import m from "../../../d3-shape/src/area.js";
|
|
9
9
|
import A from "../../../d3-shape/src/line.js";
|
|
10
10
|
import C, { stepBefore as X, stepAfter as Y } from "../../../d3-shape/src/curve/step.js";
|
|
@@ -16,14 +16,14 @@ import { bumpY as R, bumpX as M } from "../../../d3-shape/src/curve/bump.js";
|
|
|
16
16
|
import K from "../../../d3-shape/src/curve/basis.js";
|
|
17
17
|
import T from "../../../d3-shape/src/curve/basisOpen.js";
|
|
18
18
|
import k from "../../../d3-shape/src/curve/basisClosed.js";
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function v() {
|
|
20
|
+
return v = Object.assign ? Object.assign.bind() : function(e) {
|
|
21
21
|
for (var t = 1; t < arguments.length; t++) {
|
|
22
22
|
var r = arguments[t];
|
|
23
23
|
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
24
24
|
}
|
|
25
25
|
return e;
|
|
26
|
-
},
|
|
26
|
+
}, v.apply(null, arguments);
|
|
27
27
|
}
|
|
28
28
|
function g(e, t) {
|
|
29
29
|
var r = Object.keys(e);
|
|
@@ -80,7 +80,7 @@ var d = {
|
|
|
80
80
|
}, s = (e) => b(e.x) && b(e.y), c = (e) => e.x, f = (e) => e.y, V = (e, t) => {
|
|
81
81
|
if (typeof e == "function")
|
|
82
82
|
return e;
|
|
83
|
-
var r = "curve".concat(
|
|
83
|
+
var r = "curve".concat(E(e));
|
|
84
84
|
return (r === "curveMonotone" || r === "curveBump") && t ? d["".concat(r).concat(t === "vertical" ? "Y" : "X")] : d[r] || P;
|
|
85
85
|
}, W = (e) => {
|
|
86
86
|
var {
|
|
@@ -89,14 +89,14 @@ var d = {
|
|
|
89
89
|
baseLine: n,
|
|
90
90
|
layout: i,
|
|
91
91
|
connectNulls: u = !1
|
|
92
|
-
} = e,
|
|
92
|
+
} = e, p = V(t, i), l = u ? r.filter(s) : r, o;
|
|
93
93
|
if (Array.isArray(n)) {
|
|
94
94
|
var h = u ? n.filter((a) => s(a)) : n, j = l.map((a, x) => O(O({}, a), {}, {
|
|
95
95
|
base: h[x]
|
|
96
96
|
}));
|
|
97
|
-
return i === "vertical" ? o = m().y(f).x1(c).x0((a) => a.base.x) : o = m().x(c).y1(f).y0((a) => a.base.y), o.defined(s).curve(
|
|
97
|
+
return i === "vertical" ? o = m().y(f).x1(c).x0((a) => a.base.x) : o = m().x(c).y1(f).y0((a) => a.base.y), o.defined(s).curve(p), o(j);
|
|
98
98
|
}
|
|
99
|
-
return i === "vertical" && y(n) ? o = m().y(f).x1(c).x0(n) : y(n) ? o = m().x(c).y1(f).y0(n) : o = A().x(c).y(f), o.defined(s).curve(
|
|
99
|
+
return i === "vertical" && y(n) ? o = m().y(f).x1(c).x0(n) : y(n) ? o = m().x(c).y1(f).y0(n) : o = A().x(c).y(f), o.defined(s).curve(p), o(l);
|
|
100
100
|
}, fe = (e) => {
|
|
101
101
|
var {
|
|
102
102
|
className: t,
|
|
@@ -107,7 +107,7 @@ var d = {
|
|
|
107
107
|
if ((!r || !r.length) && !n)
|
|
108
108
|
return null;
|
|
109
109
|
var u = r && r.length ? W(e) : n;
|
|
110
|
-
return /* @__PURE__ */ w.createElement("path",
|
|
110
|
+
return /* @__PURE__ */ w.createElement("path", v({}, N(e), S(e), {
|
|
111
111
|
className: B("recharts-curve", t),
|
|
112
112
|
d: u === null ? void 0 : u,
|
|
113
113
|
ref: i
|
|
@@ -1,42 +1,83 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { filterProps as
|
|
6
|
-
import { resolveDefaultProps as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import * as P from "react";
|
|
3
|
+
import { useRef as u, useState as z, useEffect as F, useMemo as G } from "react";
|
|
4
|
+
import { clsx as Q } from "../../../clsx/dist/clsx.js";
|
|
5
|
+
import { filterProps as B } from "../util/ReactUtils.js";
|
|
6
|
+
import { resolveDefaultProps as $ } from "../util/resolveDefaultProps.js";
|
|
7
|
+
import { JavascriptAnimate as x } from "../animation/JavascriptAnimate.js";
|
|
8
|
+
import { interpolate as y } from "../util/DataUtils.js";
|
|
9
|
+
import { useAnimationId as _ } from "../util/useAnimationId.js";
|
|
10
|
+
import { getTransitionVal as d } from "../animation/util.js";
|
|
11
|
+
function H(r, t) {
|
|
12
|
+
var c = Object.keys(r);
|
|
13
|
+
if (Object.getOwnPropertySymbols) {
|
|
14
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
15
|
+
t && (n = n.filter(function(p) {
|
|
16
|
+
return Object.getOwnPropertyDescriptor(r, p).enumerable;
|
|
17
|
+
})), c.push.apply(c, n);
|
|
18
|
+
}
|
|
19
|
+
return c;
|
|
20
|
+
}
|
|
21
|
+
function X(r) {
|
|
22
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
23
|
+
var c = arguments[t] != null ? arguments[t] : {};
|
|
24
|
+
t % 2 ? H(Object(c), !0).forEach(function(n) {
|
|
25
|
+
R(r, n, c[n]);
|
|
26
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(c)) : H(Object(c)).forEach(function(n) {
|
|
27
|
+
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(c, n));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
function R(r, t, c) {
|
|
33
|
+
return (t = w(t)) in r ? Object.defineProperty(r, t, { value: c, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = c, r;
|
|
34
|
+
}
|
|
35
|
+
function w(r) {
|
|
36
|
+
var t = tt(r, "string");
|
|
37
|
+
return typeof t == "symbol" ? t : t + "";
|
|
38
|
+
}
|
|
39
|
+
function tt(r, t) {
|
|
40
|
+
if (typeof r != "object" || !r) return r;
|
|
41
|
+
var c = r[Symbol.toPrimitive];
|
|
42
|
+
if (c !== void 0) {
|
|
43
|
+
var n = c.call(r, t);
|
|
44
|
+
if (typeof n != "object") return n;
|
|
45
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
46
|
+
}
|
|
47
|
+
return (t === "string" ? String : Number)(r);
|
|
48
|
+
}
|
|
49
|
+
function O() {
|
|
50
|
+
return O = Object.assign ? Object.assign.bind() : function(r) {
|
|
51
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
52
|
+
var c = arguments[t];
|
|
53
|
+
for (var n in c) ({}).hasOwnProperty.call(c, n) && (r[n] = c[n]);
|
|
13
54
|
}
|
|
14
|
-
return
|
|
15
|
-
},
|
|
55
|
+
return r;
|
|
56
|
+
}, O.apply(null, arguments);
|
|
16
57
|
}
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
if (
|
|
20
|
-
for (var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
`).concat(
|
|
24
|
-
`).concat(
|
|
25
|
-
`).concat(
|
|
26
|
-
} else if (
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
A `).concat(
|
|
30
|
-
L `).concat(
|
|
31
|
-
A `).concat(
|
|
32
|
-
L `).concat(
|
|
33
|
-
A `).concat(
|
|
34
|
-
L `).concat(
|
|
35
|
-
A `).concat(
|
|
58
|
+
var Y = (r, t, c, n, p) => {
|
|
59
|
+
var m = Math.min(Math.abs(c) / 2, Math.abs(n) / 2), v = n >= 0 ? 1 : -1, o = c >= 0 ? 1 : -1, i = n >= 0 && c >= 0 || n < 0 && c < 0 ? 1 : 0, f;
|
|
60
|
+
if (m > 0 && p instanceof Array) {
|
|
61
|
+
for (var a = [0, 0, 0, 0], l = 0, g = 4; l < g; l++)
|
|
62
|
+
a[l] = p[l] > m ? m : p[l];
|
|
63
|
+
f = "M".concat(r, ",").concat(t + v * a[0]), a[0] > 0 && (f += "A ".concat(a[0], ",").concat(a[0], ",0,0,").concat(i, ",").concat(r + o * a[0], ",").concat(t)), f += "L ".concat(r + c - o * a[1], ",").concat(t), a[1] > 0 && (f += "A ".concat(a[1], ",").concat(a[1], ",0,0,").concat(i, `,
|
|
64
|
+
`).concat(r + c, ",").concat(t + v * a[1])), f += "L ".concat(r + c, ",").concat(t + n - v * a[2]), a[2] > 0 && (f += "A ".concat(a[2], ",").concat(a[2], ",0,0,").concat(i, `,
|
|
65
|
+
`).concat(r + c - o * a[2], ",").concat(t + n)), f += "L ".concat(r + o * a[3], ",").concat(t + n), a[3] > 0 && (f += "A ".concat(a[3], ",").concat(a[3], ",0,0,").concat(i, `,
|
|
66
|
+
`).concat(r, ",").concat(t + n - v * a[3])), f += "Z";
|
|
67
|
+
} else if (m > 0 && p === +p && p > 0) {
|
|
68
|
+
var e = Math.min(m, p);
|
|
69
|
+
f = "M ".concat(r, ",").concat(t + v * e, `
|
|
70
|
+
A `).concat(e, ",").concat(e, ",0,0,").concat(i, ",").concat(r + o * e, ",").concat(t, `
|
|
71
|
+
L `).concat(r + c - o * e, ",").concat(t, `
|
|
72
|
+
A `).concat(e, ",").concat(e, ",0,0,").concat(i, ",").concat(r + c, ",").concat(t + v * e, `
|
|
73
|
+
L `).concat(r + c, ",").concat(t + n - v * e, `
|
|
74
|
+
A `).concat(e, ",").concat(e, ",0,0,").concat(i, ",").concat(r + c - o * e, ",").concat(t + n, `
|
|
75
|
+
L `).concat(r + o * e, ",").concat(t + n, `
|
|
76
|
+
A `).concat(e, ",").concat(e, ",0,0,").concat(i, ",").concat(r, ",").concat(t + n - v * e, " Z");
|
|
36
77
|
} else
|
|
37
|
-
|
|
38
|
-
return
|
|
39
|
-
},
|
|
78
|
+
f = "M ".concat(r, ",").concat(t, " h ").concat(c, " v ").concat(n, " h ").concat(-c, " Z");
|
|
79
|
+
return f;
|
|
80
|
+
}, rt = {
|
|
40
81
|
x: 0,
|
|
41
82
|
y: 0,
|
|
42
83
|
width: 0,
|
|
@@ -50,76 +91,72 @@ var D = (o, c, t, a, p) => {
|
|
|
50
91
|
animationBegin: 0,
|
|
51
92
|
animationDuration: 1500,
|
|
52
93
|
animationEasing: "ease"
|
|
53
|
-
},
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
if (
|
|
94
|
+
}, mt = (r) => {
|
|
95
|
+
var t = $(r, rt), c = u(null), [n, p] = z(-1);
|
|
96
|
+
F(() => {
|
|
97
|
+
if (c.current && c.current.getTotalLength)
|
|
57
98
|
try {
|
|
58
|
-
var
|
|
59
|
-
|
|
99
|
+
var s = c.current.getTotalLength();
|
|
100
|
+
s && p(s);
|
|
60
101
|
} catch {
|
|
61
102
|
}
|
|
62
103
|
}, []);
|
|
63
104
|
var {
|
|
64
|
-
x:
|
|
65
|
-
y:
|
|
66
|
-
width:
|
|
67
|
-
height:
|
|
68
|
-
radius:
|
|
69
|
-
className:
|
|
70
|
-
} =
|
|
71
|
-
animationEasing:
|
|
72
|
-
animationDuration:
|
|
73
|
-
animationBegin:
|
|
74
|
-
isAnimationActive:
|
|
75
|
-
isUpdateAnimationActive:
|
|
76
|
-
} =
|
|
77
|
-
|
|
105
|
+
x: m,
|
|
106
|
+
y: v,
|
|
107
|
+
width: o,
|
|
108
|
+
height: i,
|
|
109
|
+
radius: f,
|
|
110
|
+
className: a
|
|
111
|
+
} = t, {
|
|
112
|
+
animationEasing: l,
|
|
113
|
+
animationDuration: g,
|
|
114
|
+
animationBegin: e,
|
|
115
|
+
isAnimationActive: Z,
|
|
116
|
+
isUpdateAnimationActive: j
|
|
117
|
+
} = t, D = u(o), E = u(i), L = u(m), S = u(v), K = G(() => ({
|
|
118
|
+
x: m,
|
|
119
|
+
y: v,
|
|
120
|
+
width: o,
|
|
121
|
+
height: i,
|
|
122
|
+
radius: f
|
|
123
|
+
}), [m, v, o, i, f]), M = _(K, "rectangle-");
|
|
124
|
+
if (m !== +m || v !== +v || o !== +o || i !== +i || o === 0 || i === 0)
|
|
78
125
|
return null;
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
} =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
easing: i
|
|
113
|
-
}, /* @__PURE__ */ s.createElement("path", L({}, P(c, !0), {
|
|
114
|
-
className: b,
|
|
115
|
-
d: D(S, Z, M, O, l),
|
|
116
|
-
ref: t
|
|
117
|
-
})));
|
|
118
|
-
}) : /* @__PURE__ */ s.createElement("path", L({}, P(c, !0), {
|
|
119
|
-
className: b,
|
|
120
|
-
d: D(v, f, e, m, l)
|
|
121
|
-
}));
|
|
126
|
+
var k = Q("recharts-rectangle", a);
|
|
127
|
+
if (!j)
|
|
128
|
+
return /* @__PURE__ */ P.createElement("path", O({}, B(t, !0), {
|
|
129
|
+
className: k,
|
|
130
|
+
d: Y(m, v, o, i, f)
|
|
131
|
+
}));
|
|
132
|
+
var U = D.current, h = E.current, C = L.current, J = S.current, V = "0px ".concat(n === -1 ? 1 : n, "px"), I = "".concat(n, "px 0px"), q = d(["strokeDasharray"], g, typeof l == "string" ? l : void 0);
|
|
133
|
+
return /* @__PURE__ */ P.createElement(x, {
|
|
134
|
+
animationId: M,
|
|
135
|
+
key: M,
|
|
136
|
+
canBegin: n > 0,
|
|
137
|
+
duration: g,
|
|
138
|
+
easing: l,
|
|
139
|
+
isActive: j,
|
|
140
|
+
begin: e
|
|
141
|
+
}, (s) => {
|
|
142
|
+
var A = y(U, o, s), N = y(h, i, s), T = y(C, m, s), W = y(J, v, s);
|
|
143
|
+
c.current && (D.current = A, E.current = N, L.current = T, S.current = W);
|
|
144
|
+
var b;
|
|
145
|
+
return Z ? s > 0 ? b = {
|
|
146
|
+
transition: q,
|
|
147
|
+
strokeDasharray: I
|
|
148
|
+
} : b = {
|
|
149
|
+
strokeDasharray: V
|
|
150
|
+
} : b = {
|
|
151
|
+
strokeDasharray: I
|
|
152
|
+
}, /* @__PURE__ */ P.createElement("path", O({}, B(t, !0), {
|
|
153
|
+
className: k,
|
|
154
|
+
d: Y(T, W, A, N, f),
|
|
155
|
+
ref: c,
|
|
156
|
+
style: X(X({}, b), t.style)
|
|
157
|
+
}));
|
|
158
|
+
});
|
|
122
159
|
};
|
|
123
160
|
export {
|
|
124
|
-
|
|
161
|
+
mt as Rectangle
|
|
125
162
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { filterProps as
|
|
5
|
-
import { upperFirst as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
return
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { clsx as j } from "../../../clsx/dist/clsx.js";
|
|
4
|
+
import { filterProps as d } from "../util/ReactUtils.js";
|
|
5
|
+
import { upperFirst as p } from "../util/DataUtils.js";
|
|
6
|
+
import w from "../../../d3-shape/src/symbol.js";
|
|
7
|
+
import S from "../../../d3-shape/src/symbol/wye.js";
|
|
8
|
+
import M from "../../../d3-shape/src/symbol/triangle.js";
|
|
9
|
+
import x from "../../../d3-shape/src/symbol/star.js";
|
|
10
|
+
import _ from "../../../d3-shape/src/symbol/square.js";
|
|
11
|
+
import D from "../../../d3-shape/src/symbol/diamond.js";
|
|
12
|
+
import q from "../../../d3-shape/src/symbol/cross.js";
|
|
13
|
+
import y from "../../../d3-shape/src/symbol/circle.js";
|
|
14
|
+
var E = ["type", "size", "sizeType"];
|
|
15
|
+
function u() {
|
|
16
|
+
return u = Object.assign ? Object.assign.bind() : function(r) {
|
|
17
17
|
for (var t = 1; t < arguments.length; t++) {
|
|
18
18
|
var e = arguments[t];
|
|
19
19
|
for (var o in e) ({}).hasOwnProperty.call(e, o) && (r[o] = e[o]);
|
|
20
20
|
}
|
|
21
21
|
return r;
|
|
22
|
-
},
|
|
22
|
+
}, u.apply(null, arguments);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function l(r, t) {
|
|
25
25
|
var e = Object.keys(r);
|
|
26
26
|
if (Object.getOwnPropertySymbols) {
|
|
27
27
|
var o = Object.getOwnPropertySymbols(r);
|
|
@@ -34,15 +34,15 @@ function u(r, t) {
|
|
|
34
34
|
function m(r) {
|
|
35
35
|
for (var t = 1; t < arguments.length; t++) {
|
|
36
36
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
37
|
-
t % 2 ?
|
|
38
|
-
|
|
39
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) :
|
|
37
|
+
t % 2 ? l(Object(e), !0).forEach(function(o) {
|
|
38
|
+
T(r, o, e[o]);
|
|
39
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : l(Object(e)).forEach(function(o) {
|
|
40
40
|
Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(e, o));
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
return r;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function T(r, t, e) {
|
|
46
46
|
return (t = F(t)) in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
47
47
|
}
|
|
48
48
|
function F(r) {
|
|
@@ -61,14 +61,14 @@ function I(r, t) {
|
|
|
61
61
|
}
|
|
62
62
|
function N(r, t) {
|
|
63
63
|
if (r == null) return {};
|
|
64
|
-
var e, o, a =
|
|
64
|
+
var e, o, a = A(r, t);
|
|
65
65
|
if (Object.getOwnPropertySymbols) {
|
|
66
66
|
var n = Object.getOwnPropertySymbols(r);
|
|
67
67
|
for (o = 0; o < n.length; o++) e = n[o], t.indexOf(e) === -1 && {}.propertyIsEnumerable.call(r, e) && (a[e] = r[e]);
|
|
68
68
|
}
|
|
69
69
|
return a;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function A(r, t) {
|
|
72
72
|
if (r == null) return {};
|
|
73
73
|
var e = {};
|
|
74
74
|
for (var o in r) if ({}.hasOwnProperty.call(r, o)) {
|
|
@@ -77,18 +77,18 @@ function T(r, t) {
|
|
|
77
77
|
}
|
|
78
78
|
return e;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
symbolCircle:
|
|
82
|
-
symbolCross:
|
|
83
|
-
symbolDiamond:
|
|
84
|
-
symbolSquare:
|
|
85
|
-
symbolStar:
|
|
86
|
-
symbolTriangle:
|
|
87
|
-
symbolWye:
|
|
88
|
-
},
|
|
89
|
-
var t = "symbol".concat(
|
|
90
|
-
return
|
|
91
|
-
},
|
|
80
|
+
var f = {
|
|
81
|
+
symbolCircle: y,
|
|
82
|
+
symbolCross: q,
|
|
83
|
+
symbolDiamond: D,
|
|
84
|
+
symbolSquare: _,
|
|
85
|
+
symbolStar: x,
|
|
86
|
+
symbolTriangle: M,
|
|
87
|
+
symbolWye: S
|
|
88
|
+
}, W = Math.PI / 180, C = (r) => {
|
|
89
|
+
var t = "symbol".concat(p(r));
|
|
90
|
+
return f[t] || y;
|
|
91
|
+
}, K = (r, t, e) => {
|
|
92
92
|
if (t === "area")
|
|
93
93
|
return r;
|
|
94
94
|
switch (e) {
|
|
@@ -99,7 +99,7 @@ var y = {
|
|
|
99
99
|
case "square":
|
|
100
100
|
return r * r;
|
|
101
101
|
case "star": {
|
|
102
|
-
var o = 18 *
|
|
102
|
+
var o = 18 * W;
|
|
103
103
|
return 1.25 * r * r * (Math.tan(o) - Math.tan(o * 2) * Math.tan(o) ** 2);
|
|
104
104
|
}
|
|
105
105
|
case "triangle":
|
|
@@ -109,32 +109,34 @@ var y = {
|
|
|
109
109
|
default:
|
|
110
110
|
return Math.PI * r * r / 4;
|
|
111
111
|
}
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
},
|
|
112
|
+
}, R = (r, t) => {
|
|
113
|
+
f["symbol".concat(p(r))] = t;
|
|
114
|
+
}, k = (r) => {
|
|
115
115
|
var {
|
|
116
116
|
type: t = "circle",
|
|
117
117
|
size: e = 64,
|
|
118
118
|
sizeType: o = "area"
|
|
119
|
-
} = r, a = N(r,
|
|
119
|
+
} = r, a = N(r, E), n = m(m({}, a), {}, {
|
|
120
120
|
type: t,
|
|
121
121
|
size: e,
|
|
122
122
|
sizeType: o
|
|
123
|
-
}),
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
}), i = "circle";
|
|
124
|
+
typeof t == "string" && (i = t);
|
|
125
|
+
var b = () => {
|
|
126
|
+
var O = C(i), P = w().type(O).size(K(e, o, i));
|
|
127
|
+
return P();
|
|
126
128
|
}, {
|
|
127
|
-
className:
|
|
128
|
-
cx:
|
|
129
|
-
cy:
|
|
130
|
-
} = n,
|
|
131
|
-
return
|
|
132
|
-
className:
|
|
133
|
-
transform: "translate(".concat(
|
|
134
|
-
d:
|
|
129
|
+
className: v,
|
|
130
|
+
cx: c,
|
|
131
|
+
cy: s
|
|
132
|
+
} = n, g = d(n, !0);
|
|
133
|
+
return c === +c && s === +s && e === +e ? /* @__PURE__ */ h.createElement("path", u({}, g, {
|
|
134
|
+
className: j("recharts-symbols", v),
|
|
135
|
+
transform: "translate(".concat(c, ", ").concat(s, ")"),
|
|
136
|
+
d: b()
|
|
135
137
|
})) : null;
|
|
136
138
|
};
|
|
137
|
-
|
|
139
|
+
k.registerSymbol = R;
|
|
138
140
|
export {
|
|
139
|
-
|
|
141
|
+
k as Symbols
|
|
140
142
|
};
|
|
@@ -5,14 +5,15 @@ var n = {
|
|
|
5
5
|
settings: {
|
|
6
6
|
layout: "horizontal",
|
|
7
7
|
align: "center",
|
|
8
|
-
verticalAlign: "middle"
|
|
8
|
+
verticalAlign: "middle",
|
|
9
|
+
itemSorter: "value"
|
|
9
10
|
},
|
|
10
11
|
size: {
|
|
11
12
|
width: 0,
|
|
12
13
|
height: 0
|
|
13
14
|
},
|
|
14
15
|
payload: []
|
|
15
|
-
},
|
|
16
|
+
}, o = l({
|
|
16
17
|
name: "legend",
|
|
17
18
|
initialState: n,
|
|
18
19
|
reducers: {
|
|
@@ -20,7 +21,7 @@ var n = {
|
|
|
20
21
|
e.size.width = a.payload.width, e.size.height = a.payload.height;
|
|
21
22
|
},
|
|
22
23
|
setLegendSettings(e, a) {
|
|
23
|
-
e.settings.align = a.payload.align, e.settings.layout = a.payload.layout, e.settings.verticalAlign = a.payload.verticalAlign;
|
|
24
|
+
e.settings.align = a.payload.align, e.settings.layout = a.payload.layout, e.settings.verticalAlign = a.payload.verticalAlign, e.settings.itemSorter = a.payload.itemSorter;
|
|
24
25
|
},
|
|
25
26
|
addLegendPayload(e, a) {
|
|
26
27
|
e.payload.push(d(a.payload));
|
|
@@ -35,7 +36,7 @@ var n = {
|
|
|
35
36
|
setLegendSettings: y,
|
|
36
37
|
addLegendPayload: p,
|
|
37
38
|
removeLegendPayload: h
|
|
38
|
-
} =
|
|
39
|
+
} = o.actions;
|
|
39
40
|
export {
|
|
40
41
|
p as addLegendPayload,
|
|
41
42
|
h as removeLegendPayload,
|