@pibit.ai/cure-design-system 0.6.42 → 0.6.44
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/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.development.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.js +4 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/_virtual/with-selector3.js +2 -0
- package/dist/_virtual/with-selector4.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +127 -125
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +846 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.js +9 -0
- package/dist/node_modules/d3-array/src/bisector.js +37 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/max.js +9 -0
- package/dist/node_modules/d3-array/src/min.js +9 -0
- package/dist/node_modules/d3-array/src/number.js +11 -0
- package/dist/node_modules/d3-array/src/quantile.js +24 -0
- package/dist/node_modules/d3-array/src/quickselect.js +25 -0
- package/dist/node_modules/d3-array/src/range.js +9 -0
- package/dist/node_modules/d3-array/src/sort.js +16 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-color/src/color.js +305 -0
- package/dist/node_modules/d3-color/src/define.js +12 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.js +68 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/color.js +24 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-path/src/path.js +64 -0
- package/dist/node_modules/d3-scale/src/band.js +51 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.js +75 -0
- package/dist/node_modules/d3-scale/src/diverging.js +68 -0
- package/dist/node_modules/d3-scale/src/identity.js +18 -0
- package/dist/node_modules/d3-scale/src/init.js +32 -0
- package/dist/node_modules/d3-scale/src/linear.js +39 -0
- package/dist/node_modules/d3-scale/src/log.js +86 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.js +38 -0
- package/dist/node_modules/d3-scale/src/quantize.js +31 -0
- package/dist/node_modules/d3-scale/src/radial.js +37 -0
- package/dist/node_modules/d3-scale/src/sequential.js +70 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
- package/dist/node_modules/d3-scale/src/symlog.js +29 -0
- package/dist/node_modules/d3-scale/src/threshold.js +23 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
- package/dist/node_modules/d3-scale/src/time.js +46 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/node_modules/d3-shape/src/area.js +56 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +43 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
- package/dist/node_modules/d3-shape/src/line.js +29 -0
- package/dist/node_modules/d3-shape/src/noop.js +5 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/none.js +9 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
- package/dist/node_modules/d3-shape/src/order/none.js +7 -0
- package/dist/node_modules/d3-shape/src/path.js +18 -0
- package/dist/node_modules/d3-shape/src/point.js +10 -0
- package/dist/node_modules/d3-shape/src/stack.js +35 -0
- package/dist/node_modules/d3-time/src/day.js +26 -0
- package/dist/node_modules/d3-time/src/duration.js +10 -0
- package/dist/node_modules/d3-time/src/hour.js +18 -0
- package/dist/node_modules/d3-time/src/interval.js +31 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/minute.js +18 -0
- package/dist/node_modules/d3-time/src/month.js +17 -0
- package/dist/node_modules/d3-time/src/second.js +11 -0
- package/dist/node_modules/d3-time/src/ticks.js +54 -0
- package/dist/node_modules/d3-time/src/week.js +48 -0
- package/dist/node_modules/d3-time/src/year.js +27 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
- package/dist/node_modules/d3-time-format/src/locale.js +478 -0
- package/dist/node_modules/decimal.js-light/decimal.js +472 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/baseToString.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/hasOwn.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +14 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/objectValues.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +35 -0
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +38 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +7 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +29 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
- package/dist/node_modules/eventemitter3/index.js +5 -0
- package/dist/node_modules/eventemitter3/index2.js +111 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +9 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +575 -0
- package/dist/node_modules/internmap/src/index.js +35 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +98 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +81 -0
- package/dist/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +137 -0
- package/dist/node_modules/recharts/es6/animation/AnimatedItems.js +78 -0
- package/dist/node_modules/recharts/es6/animation/AnimationControllerImpl.js +21 -0
- package/dist/node_modules/recharts/es6/animation/AnimationHandle.js +179 -0
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +84 -0
- package/dist/node_modules/recharts/es6/animation/easing.js +89 -0
- package/dist/node_modules/recharts/es6/animation/matchBy.js +105 -0
- package/dist/node_modules/recharts/es6/animation/timeoutController.js +13 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationController.js +11 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationStartSnapshot.js +20 -0
- package/dist/node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js +14 -0
- package/dist/node_modules/recharts/es6/cartesian/getCartesianPosition.js +141 -0
- package/dist/node_modules/recharts/es6/chart/CategoricalChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PieChart.js +62 -0
- package/dist/node_modules/recharts/es6/chart/PolarChart.js +144 -0
- package/dist/node_modules/recharts/es6/chart/RechartsWrapper.js +297 -0
- package/dist/node_modules/recharts/es6/component/Cell.js +5 -0
- package/dist/node_modules/recharts/es6/component/Label.js +262 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js +101 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +219 -0
- package/dist/node_modules/recharts/es6/component/Text.js +240 -0
- package/dist/node_modules/recharts/es6/component/responsiveContainerUtils.js +43 -0
- package/dist/node_modules/recharts/es6/container/ClipPathProvider.js +63 -0
- package/dist/node_modules/recharts/es6/container/Layer.js +42 -0
- package/dist/node_modules/recharts/es6/container/RootSurface.js +90 -0
- package/dist/node_modules/recharts/es6/container/Surface.js +51 -0
- package/dist/node_modules/recharts/es6/context/PanoramaContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/RegisterGraphicalItemId.js +12 -0
- package/dist/node_modules/recharts/es6/context/accessibilityContext.js +8 -0
- package/dist/node_modules/recharts/es6/context/chartDataContext.js +14 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +44 -0
- package/dist/node_modules/recharts/es6/context/legendPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/context/tooltipContext.js +33 -0
- package/dist/node_modules/recharts/es6/context/tooltipPortalContext.js +5 -0
- package/dist/node_modules/recharts/es6/hooks.js +6 -0
- package/dist/node_modules/recharts/es6/polar/Pie.js +486 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js +13 -0
- package/dist/node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js +15 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js +128 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js +151 -0
- package/dist/node_modules/recharts/es6/state/RechartsReduxContext.js +5 -0
- package/dist/node_modules/recharts/es6/state/RechartsStoreProvider.js +20 -0
- package/dist/node_modules/recharts/es6/state/ReportChartProps.js +12 -0
- package/dist/node_modules/recharts/es6/state/ReportEventSettings.js +13 -0
- package/dist/node_modules/recharts/es6/state/ReportMainChartProps.js +15 -0
- package/dist/node_modules/recharts/es6/state/ReportPolarOptions.js +12 -0
- package/dist/node_modules/recharts/es6/state/SetGraphicalItem.js +17 -0
- package/dist/node_modules/recharts/es6/state/SetLegendPayload.js +18 -0
- package/dist/node_modules/recharts/es6/state/SetTooltipEntrySettings.js +18 -0
- package/dist/node_modules/recharts/es6/state/brushSlice.js +27 -0
- package/dist/node_modules/recharts/es6/state/cartesianAxisSlice.js +148 -0
- package/dist/node_modules/recharts/es6/state/chartDataSlice.js +35 -0
- package/dist/node_modules/recharts/es6/state/errorBarSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/eventSettingsSlice.js +19 -0
- package/dist/node_modules/recharts/es6/state/externalEventsMiddleware.js +58 -0
- package/dist/node_modules/recharts/es6/state/graphicalItemsSlice.js +61 -0
- package/dist/node_modules/recharts/es6/state/hooks.js +19 -0
- package/dist/node_modules/recharts/es6/state/keyboardEventsMiddleware.js +119 -0
- package/dist/node_modules/recharts/es6/state/layoutSlice.js +38 -0
- package/dist/node_modules/recharts/es6/state/legendSlice.js +57 -0
- package/dist/node_modules/recharts/es6/state/mouseEventsMiddleware.js +52 -0
- package/dist/node_modules/recharts/es6/state/optionsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/polarAxisSlice.js +31 -0
- package/dist/node_modules/recharts/es6/state/polarOptionsSlice.js +12 -0
- package/dist/node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js +6 -0
- package/dist/node_modules/recharts/es6/state/referenceElementsSlice.js +44 -0
- package/dist/node_modules/recharts/es6/state/renderedTicksSlice.js +26 -0
- package/dist/node_modules/recharts/es6/state/rootPropsSlice.js +28 -0
- package/dist/node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js +16 -0
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +925 -0
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +14 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js +41 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js +22 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js +24 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +137 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js +20 -0
- package/dist/node_modules/recharts/es6/state/selectors/containerSelectors.js +7 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +27 -0
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pickAxisType.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/pieSelectors.js +78 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +147 -0
- package/dist/node_modules/recharts/es6/state/selectors/polarSelectors.js +36 -0
- package/dist/node_modules/recharts/es6/state/selectors/rootPropsSelectors.js +10 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectActivePropsFromChartPointer.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectAllAxes.js +6 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +11 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +123 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectPlotArea.js +15 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +8 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipEventType.js +17 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipSettings.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipState.js +4 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +62 -0
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +107 -0
- package/dist/node_modules/recharts/es6/state/selectors/touchSelectors.js +15 -0
- package/dist/node_modules/recharts/es6/state/store.js +79 -0
- package/dist/node_modules/recharts/es6/state/tooltipSlice.js +106 -0
- package/dist/node_modules/recharts/es6/state/touchEventsMiddleware.js +72 -0
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +6 -0
- package/dist/node_modules/recharts/es6/state/zIndexSlice.js +102 -0
- package/dist/node_modules/recharts/es6/synchronisation/useChartSynchronisation.js +183 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +71 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +185 -0
- package/dist/node_modules/recharts/es6/util/Constants.js +7 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +89 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
- package/dist/node_modules/recharts/es6/util/Events.js +7 -0
- package/dist/node_modules/recharts/es6/util/Global.js +6 -0
- package/dist/node_modules/recharts/es6/util/LRUCache.js +44 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js +14 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +113 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +24 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +151 -0
- package/dist/node_modules/recharts/es6/util/createEventProxy.js +15 -0
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +10 -0
- package/dist/node_modules/recharts/es6/util/getActiveCoordinate.js +141 -0
- package/dist/node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js +10 -0
- package/dist/node_modules/recharts/es6/util/getClassNameFromUnknown.js +6 -0
- package/dist/node_modules/recharts/es6/util/getRelativeCoordinate.js +31 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +6 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +131 -0
- package/dist/node_modules/recharts/es6/util/isWellBehavedNumber.js +10 -0
- package/dist/node_modules/recharts/es6/util/propsAreEqual.js +43 -0
- package/dist/node_modules/recharts/es6/util/resolveDefaultProps.js +45 -0
- package/dist/node_modules/recharts/es6/util/round.js +17 -0
- package/dist/node_modules/recharts/es6/util/scale/RechartsScale.js +44 -0
- package/dist/node_modules/recharts/es6/util/scale/createCategoricalInverse.js +29 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +119 -0
- package/dist/node_modules/recharts/es6/util/scale/util/arithmetic.js +14 -0
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +6 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesAndEvents.js +12 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +340 -0
- package/dist/node_modules/recharts/es6/util/types.js +25 -0
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +9 -0
- package/dist/node_modules/recharts/es6/util/useId.js +51 -0
- package/dist/node_modules/recharts/es6/util/usePrefersReducedMotion.js +58 -0
- package/dist/node_modules/recharts/es6/util/useReportScale.js +57 -0
- package/dist/node_modules/recharts/es6/util/useUniqueId.js +8 -0
- package/dist/node_modules/recharts/es6/zIndex/DefaultZIndexes.js +70 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexLayer.js +47 -0
- package/dist/node_modules/recharts/es6/zIndex/ZIndexPortal.js +40 -0
- package/dist/node_modules/recharts/es6/zIndex/zIndexSelectors.js +21 -0
- package/dist/node_modules/redux/dist/redux.js +258 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
- package/dist/node_modules/reselect/dist/reselect.js +226 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +47 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts +35 -0
- package/dist/primitives/donut-chart/donut-chart.d.ts.map +1 -0
- package/dist/primitives/donut-chart/donut-chart.js +121 -0
- package/dist/primitives/donut-chart/index.d.ts +2 -0
- package/dist/primitives/donut-chart/index.d.ts.map +1 -0
- package/dist/styles/components.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import i from "./formatDecimal.js";
|
|
2
|
+
import a from "./formatPrefixAuto.js";
|
|
3
|
+
import r from "./formatRounded.js";
|
|
4
|
+
const d = {
|
|
5
|
+
"%": (o, t) => (o * 100).toFixed(t),
|
|
6
|
+
b: (o) => Math.round(o).toString(2),
|
|
7
|
+
c: (o) => o + "",
|
|
8
|
+
d: i,
|
|
9
|
+
e: (o, t) => o.toExponential(t),
|
|
10
|
+
f: (o, t) => o.toFixed(t),
|
|
11
|
+
g: (o, t) => o.toPrecision(t),
|
|
12
|
+
o: (o) => Math.round(o).toString(8),
|
|
13
|
+
p: (o, t) => r(o * 100, t),
|
|
14
|
+
r,
|
|
15
|
+
s: a,
|
|
16
|
+
X: (o) => Math.round(o).toString(16).toUpperCase(),
|
|
17
|
+
x: (o) => Math.round(o).toString(16)
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
d as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import J from "./exponent.js";
|
|
2
|
+
import K from "./formatGroup.js";
|
|
3
|
+
import O from "./formatNumerals.js";
|
|
4
|
+
import z from "./formatSpecifier.js";
|
|
5
|
+
import Q from "./formatTrim.js";
|
|
6
|
+
import A from "./formatTypes.js";
|
|
7
|
+
import { prefixExponent as C } from "./formatPrefixAuto.js";
|
|
8
|
+
import E from "./identity.js";
|
|
9
|
+
var G = Array.prototype.map, I = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
10
|
+
function rn(r) {
|
|
11
|
+
var w = r.grouping === void 0 || r.thousands === void 0 ? E : K(G.call(r.grouping, Number), r.thousands + ""), L = r.currency === void 0 ? "" : r.currency[0] + "", $ = r.currency === void 0 ? "" : r.currency[1] + "", j = r.decimal === void 0 ? "." : r.decimal + "", F = r.numerals === void 0 ? E : O(G.call(r.numerals, String)), X = r.percent === void 0 ? "%" : r.percent + "", Y = r.minus === void 0 ? "−" : r.minus + "", Z = r.nan === void 0 ? "NaN" : r.nan + "";
|
|
12
|
+
function k(t, e) {
|
|
13
|
+
t = z(t);
|
|
14
|
+
var u = t.fill, h = t.align, m = t.sign, x = t.symbol, g = t.zero, b = t.width, M = t.comma, o = t.precision, S = t.trim, f = t.type;
|
|
15
|
+
f === "n" ? (M = !0, f = "g") : A[f] || (o === void 0 && (o = 12), S = !0, f = "g"), (g || u === "0" && h === "=") && (g = !0, u = "0", h = "=");
|
|
16
|
+
var B = (e && e.prefix !== void 0 ? e.prefix : "") + (x === "$" ? L : x === "#" && /[boxX]/.test(f) ? "0" + f.toLowerCase() : ""), D = (x === "$" ? $ : /[%p]/.test(f) ? X : "") + (e && e.suffix !== void 0 ? e.suffix : ""), N = A[f], H = /[defgprs%]/.test(f);
|
|
17
|
+
o = o === void 0 ? 6 : /[gprs]/.test(f) ? Math.max(1, Math.min(21, o)) : Math.max(0, Math.min(20, o));
|
|
18
|
+
function P(n) {
|
|
19
|
+
var s = B, i = D, a, T, p;
|
|
20
|
+
if (f === "c")
|
|
21
|
+
i = N(n) + i, n = "";
|
|
22
|
+
else {
|
|
23
|
+
n = +n;
|
|
24
|
+
var y = n < 0 || 1 / n < 0;
|
|
25
|
+
if (n = isNaN(n) ? Z : N(Math.abs(n), o), S && (n = Q(n)), y && +n == 0 && m !== "+" && (y = !1), s = (y ? m === "(" ? m : Y : m === "-" || m === "(" ? "" : m) + s, i = (f === "s" && !isNaN(n) && C !== void 0 ? I[8 + C / 3] : "") + i + (y && m === "(" ? ")" : ""), H) {
|
|
26
|
+
for (a = -1, T = n.length; ++a < T; )
|
|
27
|
+
if (p = n.charCodeAt(a), 48 > p || p > 57) {
|
|
28
|
+
i = (p === 46 ? j + n.slice(a + 1) : n.slice(a)) + i, n = n.slice(0, a);
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
M && !g && (n = w(n, 1 / 0));
|
|
34
|
+
var c = s.length + n.length + i.length, d = c < b ? new Array(b - c + 1).join(u) : "";
|
|
35
|
+
switch (M && g && (n = w(d + n, d.length ? b - i.length : 1 / 0), d = ""), h) {
|
|
36
|
+
case "<":
|
|
37
|
+
n = s + n + i + d;
|
|
38
|
+
break;
|
|
39
|
+
case "=":
|
|
40
|
+
n = s + d + n + i;
|
|
41
|
+
break;
|
|
42
|
+
case "^":
|
|
43
|
+
n = d.slice(0, c = d.length >> 1) + s + n + i + d.slice(c);
|
|
44
|
+
break;
|
|
45
|
+
default:
|
|
46
|
+
n = d + s + n + i;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
return F(n);
|
|
50
|
+
}
|
|
51
|
+
return P.toString = function() {
|
|
52
|
+
return t + "";
|
|
53
|
+
}, P;
|
|
54
|
+
}
|
|
55
|
+
function q(t, e) {
|
|
56
|
+
var u = Math.max(-8, Math.min(8, Math.floor(J(e) / 3))) * 3, h = Math.pow(10, -u), m = k((t = z(t), t.type = "f", t), { suffix: I[8 + u / 3] });
|
|
57
|
+
return function(x) {
|
|
58
|
+
return m(h * x);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
format: k,
|
|
63
|
+
formatPrefix: q
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
rn as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import c from "./value.js";
|
|
2
|
+
function g(e, n) {
|
|
3
|
+
var t = n ? n.length : 0, o = e ? Math.min(t, e.length) : 0, f = new Array(o), i = new Array(t), r;
|
|
4
|
+
for (r = 0; r < o; ++r) f[r] = c(e[r], n[r]);
|
|
5
|
+
for (; r < t; ++r) i[r] = n[r];
|
|
6
|
+
return function(a) {
|
|
7
|
+
for (r = 0; r < o; ++r) i[r] = f[r](a);
|
|
8
|
+
return i;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
g as genericArray
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import o from "./constant.js";
|
|
2
|
+
function e(n, r) {
|
|
3
|
+
return function(t) {
|
|
4
|
+
return n + t * r;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function i(n, r, t) {
|
|
8
|
+
return n = Math.pow(n, t), r = Math.pow(r, t) - n, t = 1 / t, function(u) {
|
|
9
|
+
return Math.pow(n + u * r, t);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function a(n) {
|
|
13
|
+
return (n = +n) == 1 ? f : function(r, t) {
|
|
14
|
+
return t - r ? i(r, t, n) : o(isNaN(r) ? t : r);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function f(n, r) {
|
|
18
|
+
var t = r - n;
|
|
19
|
+
return t ? e(n, t) : o(isNaN(n) ? r : n);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
f as default,
|
|
23
|
+
a as gamma
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function f(r, e) {
|
|
2
|
+
e || (e = []);
|
|
3
|
+
var u = r ? Math.min(e.length, r.length) : 0, i = e.slice(), n;
|
|
4
|
+
return function(t) {
|
|
5
|
+
for (n = 0; n < u; ++n) i[n] = r[n] * (1 - t) + e[n] * t;
|
|
6
|
+
return i;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function a(r) {
|
|
10
|
+
return ArrayBuffer.isView(r) && !(r instanceof DataView);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
f as default,
|
|
14
|
+
a as isNumberArray
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import r from "./value.js";
|
|
2
|
+
function u(o, e) {
|
|
3
|
+
var n = {}, f = {}, t;
|
|
4
|
+
(o === null || typeof o != "object") && (o = {}), (e === null || typeof e != "object") && (e = {});
|
|
5
|
+
for (t in e)
|
|
6
|
+
t in o ? n[t] = r(o[t], e[t]) : f[t] = e[t];
|
|
7
|
+
return function(i) {
|
|
8
|
+
for (t in n) f[t] = n[t](i);
|
|
9
|
+
return f;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
u as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import a from "./value.js";
|
|
2
|
+
function c(i, n) {
|
|
3
|
+
n === void 0 && (n = i, i = a);
|
|
4
|
+
for (var t = 0, r = n.length - 1, f = n[0], e = new Array(r < 0 ? 0 : r); t < r; ) e[t] = i(f, f = n[++t]);
|
|
5
|
+
return function(o) {
|
|
6
|
+
var h = Math.max(0, Math.min(r - 1, Math.floor(o *= r)));
|
|
7
|
+
return e[h](o - h);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
c as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import y, { gamma as l } from "./color.js";
|
|
2
|
+
import { rgb as c } from "../../d3-color/src/color.js";
|
|
3
|
+
const x = (function i(a) {
|
|
4
|
+
var m = l(a);
|
|
5
|
+
function b(o, r) {
|
|
6
|
+
var n = m((o = c(o)).r, (r = c(r)).r), p = m(o.g, r.g), u = m(o.b, r.b), f = y(o.opacity, r.opacity);
|
|
7
|
+
return function(g) {
|
|
8
|
+
return o.r = n(g), o.g = p(g), o.b = u(g), o.opacity = f(g), o + "";
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
return b.gamma = i, b;
|
|
12
|
+
})(1);
|
|
13
|
+
export {
|
|
14
|
+
x as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import g from "./number.js";
|
|
2
|
+
var x = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, c = new RegExp(x.source, "g");
|
|
3
|
+
function h(i) {
|
|
4
|
+
return function() {
|
|
5
|
+
return i;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function m(i) {
|
|
9
|
+
return function(n) {
|
|
10
|
+
return i(n) + "";
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function v(i, n) {
|
|
14
|
+
var u = x.lastIndex = c.lastIndex = 0, s, l, t, r = -1, e = [], f = [];
|
|
15
|
+
for (i = i + "", n = n + ""; (s = x.exec(i)) && (l = c.exec(n)); )
|
|
16
|
+
(t = l.index) > u && (t = n.slice(u, t), e[r] ? e[r] += t : e[++r] = t), (s = s[0]) === (l = l[0]) ? e[r] ? e[r] += l : e[++r] = l : (e[++r] = null, f.push({ i: r, x: g(s, l) })), u = c.lastIndex;
|
|
17
|
+
return u < n.length && (t = n.slice(u), e[r] ? e[r] += t : e[++r] = t), e.length < 2 ? f[0] ? m(f[0].x) : h(n) : (n = f.length, function(a) {
|
|
18
|
+
for (var o = 0, d; o < n; ++o) e[(d = f[o]).i] = d.x(a);
|
|
19
|
+
return e.join("");
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
v as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "./rgb.js";
|
|
2
|
+
import { genericArray as f } from "./array.js";
|
|
3
|
+
import a from "./date.js";
|
|
4
|
+
import i from "./number.js";
|
|
5
|
+
import p from "./object.js";
|
|
6
|
+
import u from "./string.js";
|
|
7
|
+
import c from "./constant.js";
|
|
8
|
+
import s, { isNumberArray as l } from "./numberArray.js";
|
|
9
|
+
import n from "../../d3-color/src/color.js";
|
|
10
|
+
function O(m, r) {
|
|
11
|
+
var o = typeof r, t;
|
|
12
|
+
return r == null || o === "boolean" ? c(r) : (o === "number" ? i : o === "string" ? (t = n(r)) ? (r = t, e) : u : r instanceof n ? e : r instanceof Date ? a : l(r) ? s : Array.isArray(r) ? f : typeof r.valueOf != "function" && typeof r.toString != "function" || isNaN(r) ? p : i)(m, r);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
O as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const x = Math.PI, c = 2 * x, d = 1e-6, m = c - d;
|
|
2
|
+
function E(l) {
|
|
3
|
+
this._ += l[0];
|
|
4
|
+
for (let t = 1, h = l.length; t < h; ++t)
|
|
5
|
+
this._ += arguments[t] + l[t];
|
|
6
|
+
}
|
|
7
|
+
function q(l) {
|
|
8
|
+
let t = Math.floor(l);
|
|
9
|
+
if (!(t >= 0)) throw new Error(`invalid digits: ${l}`);
|
|
10
|
+
if (t > 15) return E;
|
|
11
|
+
const h = 10 ** t;
|
|
12
|
+
return function(i) {
|
|
13
|
+
this._ += i[0];
|
|
14
|
+
for (let s = 1, _ = i.length; s < _; ++s)
|
|
15
|
+
this._ += Math.round(arguments[s] * h) / h + i[s];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
class C {
|
|
19
|
+
constructor(t) {
|
|
20
|
+
this._x0 = this._y0 = // start of current subpath
|
|
21
|
+
this._x1 = this._y1 = null, this._ = "", this._append = t == null ? E : q(t);
|
|
22
|
+
}
|
|
23
|
+
moveTo(t, h) {
|
|
24
|
+
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +h}`;
|
|
25
|
+
}
|
|
26
|
+
closePath() {
|
|
27
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
28
|
+
}
|
|
29
|
+
lineTo(t, h) {
|
|
30
|
+
this._append`L${this._x1 = +t},${this._y1 = +h}`;
|
|
31
|
+
}
|
|
32
|
+
quadraticCurveTo(t, h, i, s) {
|
|
33
|
+
this._append`Q${+t},${+h},${this._x1 = +i},${this._y1 = +s}`;
|
|
34
|
+
}
|
|
35
|
+
bezierCurveTo(t, h, i, s, _, n) {
|
|
36
|
+
this._append`C${+t},${+h},${+i},${+s},${this._x1 = +_},${this._y1 = +n}`;
|
|
37
|
+
}
|
|
38
|
+
arcTo(t, h, i, s, _) {
|
|
39
|
+
if (t = +t, h = +h, i = +i, s = +s, _ = +_, _ < 0) throw new Error(`negative radius: ${_}`);
|
|
40
|
+
let n = this._x1, u = this._y1, o = i - t, a = s - h, e = n - t, p = u - h, $ = e * e + p * p;
|
|
41
|
+
if (this._x1 === null)
|
|
42
|
+
this._append`M${this._x1 = t},${this._y1 = h}`;
|
|
43
|
+
else if ($ > d) if (!(Math.abs(p * o - a * e) > d) || !_)
|
|
44
|
+
this._append`L${this._x1 = t},${this._y1 = h}`;
|
|
45
|
+
else {
|
|
46
|
+
let f = i - n, M = s - u, y = o * o + a * a, L = f * f + M * M, v = Math.sqrt(y), b = Math.sqrt($), T = _ * Math.tan((x - Math.acos((y + $ - L) / (2 * v * b))) / 2), r = T / b, A = T / v;
|
|
47
|
+
Math.abs(r - 1) > d && this._append`L${t + r * e},${h + r * p}`, this._append`A${_},${_},0,0,${+(p * f > e * M)},${this._x1 = t + A * o},${this._y1 = h + A * a}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
arc(t, h, i, s, _, n) {
|
|
51
|
+
if (t = +t, h = +h, i = +i, n = !!n, i < 0) throw new Error(`negative radius: ${i}`);
|
|
52
|
+
let u = i * Math.cos(s), o = i * Math.sin(s), a = t + u, e = h + o, p = 1 ^ n, $ = n ? s - _ : _ - s;
|
|
53
|
+
this._x1 === null ? this._append`M${a},${e}` : (Math.abs(this._x1 - a) > d || Math.abs(this._y1 - e) > d) && this._append`L${a},${e}`, i && ($ < 0 && ($ = $ % c + c), $ > m ? this._append`A${i},${i},0,1,${p},${t - u},${h - o}A${i},${i},0,1,${p},${this._x1 = a},${this._y1 = e}` : $ > d && this._append`A${i},${i},0,${+($ >= x)},${p},${this._x1 = t + i * Math.cos(_)},${this._y1 = h + i * Math.sin(_)}`);
|
|
54
|
+
}
|
|
55
|
+
rect(t, h, i, s) {
|
|
56
|
+
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +h}h${i = +i}v${+s}h${-i}Z`;
|
|
57
|
+
}
|
|
58
|
+
toString() {
|
|
59
|
+
return this._;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
C as Path
|
|
64
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { initRange as I } from "./init.js";
|
|
2
|
+
import O from "./ordinal.js";
|
|
3
|
+
import w from "../../d3-array/src/range.js";
|
|
4
|
+
function s() {
|
|
5
|
+
var n = O().unknown(void 0), d = n.domain, v = n.range, t = 0, e = 1, i, f, o = !1, a = 0, p = 0, m = 0.5;
|
|
6
|
+
delete n.unknown;
|
|
7
|
+
function u() {
|
|
8
|
+
var r = d().length, l = e < t, g = l ? e : t, h = l ? t : e;
|
|
9
|
+
i = (h - g) / Math.max(1, r - a + p * 2), o && (i = Math.floor(i)), g += (h - g - i * (r - a)) * m, f = i * (1 - a), o && (g = Math.round(g), f = Math.round(f));
|
|
10
|
+
var c = w(r).map(function(y) {
|
|
11
|
+
return g + i * y;
|
|
12
|
+
});
|
|
13
|
+
return v(l ? c.reverse() : c);
|
|
14
|
+
}
|
|
15
|
+
return n.domain = function(r) {
|
|
16
|
+
return arguments.length ? (d(r), u()) : d();
|
|
17
|
+
}, n.range = function(r) {
|
|
18
|
+
return arguments.length ? ([t, e] = r, t = +t, e = +e, u()) : [t, e];
|
|
19
|
+
}, n.rangeRound = function(r) {
|
|
20
|
+
return [t, e] = r, t = +t, e = +e, o = !0, u();
|
|
21
|
+
}, n.bandwidth = function() {
|
|
22
|
+
return f;
|
|
23
|
+
}, n.step = function() {
|
|
24
|
+
return i;
|
|
25
|
+
}, n.round = function(r) {
|
|
26
|
+
return arguments.length ? (o = !!r, u()) : o;
|
|
27
|
+
}, n.padding = function(r) {
|
|
28
|
+
return arguments.length ? (a = Math.min(1, p = +r), u()) : a;
|
|
29
|
+
}, n.paddingInner = function(r) {
|
|
30
|
+
return arguments.length ? (a = Math.min(1, r), u()) : a;
|
|
31
|
+
}, n.paddingOuter = function(r) {
|
|
32
|
+
return arguments.length ? (p = +r, u()) : p;
|
|
33
|
+
}, n.align = function(r) {
|
|
34
|
+
return arguments.length ? (m = Math.max(0, Math.min(1, r)), u()) : m;
|
|
35
|
+
}, n.copy = function() {
|
|
36
|
+
return s(d(), [t, e]).round(o).paddingInner(a).paddingOuter(p).align(m);
|
|
37
|
+
}, I.apply(u(), arguments);
|
|
38
|
+
}
|
|
39
|
+
function M(n) {
|
|
40
|
+
var d = n.copy;
|
|
41
|
+
return n.padding = n.paddingOuter, delete n.paddingInner, delete n.paddingOuter, n.copy = function() {
|
|
42
|
+
return M(d());
|
|
43
|
+
}, n;
|
|
44
|
+
}
|
|
45
|
+
function k() {
|
|
46
|
+
return M(s.apply(null, arguments).paddingInner(1));
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
s as default,
|
|
50
|
+
k as point
|
|
51
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import w from "./constant.js";
|
|
2
|
+
import y from "./number.js";
|
|
3
|
+
import N from "../../d3-interpolate/src/number.js";
|
|
4
|
+
import A from "../../d3-interpolate/src/value.js";
|
|
5
|
+
import { bisectRight as k } from "../../d3-array/src/bisect.js";
|
|
6
|
+
import M from "../../d3-interpolate/src/round.js";
|
|
7
|
+
var h = [0, 1];
|
|
8
|
+
function p(n) {
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
function g(n, r) {
|
|
12
|
+
return (r -= n = +n) ? function(i) {
|
|
13
|
+
return (i - n) / r;
|
|
14
|
+
} : w(isNaN(r) ? NaN : 0.5);
|
|
15
|
+
}
|
|
16
|
+
function d(n, r) {
|
|
17
|
+
var i;
|
|
18
|
+
return n > r && (i = n, n = r, r = i), function(e) {
|
|
19
|
+
return Math.max(n, Math.min(r, e));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function R(n, r, i) {
|
|
23
|
+
var e = n[0], a = n[1], o = r[0], u = r[1];
|
|
24
|
+
return a < e ? (e = g(a, e), o = i(u, o)) : (e = g(e, a), o = i(o, u)), function(l) {
|
|
25
|
+
return o(e(l));
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function j(n, r, i) {
|
|
29
|
+
var e = Math.min(n.length, r.length) - 1, a = new Array(e), o = new Array(e), u = -1;
|
|
30
|
+
for (n[e] < n[0] && (n = n.slice().reverse(), r = r.slice().reverse()); ++u < e; )
|
|
31
|
+
a[u] = g(n[u], n[u + 1]), o[u] = i(r[u], r[u + 1]);
|
|
32
|
+
return function(l) {
|
|
33
|
+
var m = k(n, l, 1, e) - 1;
|
|
34
|
+
return o[m](a[m](l));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function F(n, r) {
|
|
38
|
+
return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
|
|
39
|
+
}
|
|
40
|
+
function z() {
|
|
41
|
+
var n = h, r = h, i = A, e, a, o, u = p, l, m, s;
|
|
42
|
+
function c() {
|
|
43
|
+
var t = Math.min(n.length, r.length);
|
|
44
|
+
return u !== p && (u = d(n[0], n[t - 1])), l = t > 2 ? j : R, m = s = null, f;
|
|
45
|
+
}
|
|
46
|
+
function f(t) {
|
|
47
|
+
return t == null || isNaN(t = +t) ? o : (m || (m = l(n.map(e), r, i)))(e(u(t)));
|
|
48
|
+
}
|
|
49
|
+
return f.invert = function(t) {
|
|
50
|
+
return u(a((s || (s = l(r, n.map(e), N)))(t)));
|
|
51
|
+
}, f.domain = function(t) {
|
|
52
|
+
return arguments.length ? (n = Array.from(t, y), c()) : n.slice();
|
|
53
|
+
}, f.range = function(t) {
|
|
54
|
+
return arguments.length ? (r = Array.from(t), c()) : r.slice();
|
|
55
|
+
}, f.rangeRound = function(t) {
|
|
56
|
+
return r = Array.from(t), i = M, c();
|
|
57
|
+
}, f.clamp = function(t) {
|
|
58
|
+
return arguments.length ? (u = t ? !0 : p, c()) : u !== p;
|
|
59
|
+
}, f.interpolate = function(t) {
|
|
60
|
+
return arguments.length ? (i = t, c()) : i;
|
|
61
|
+
}, f.unknown = function(t) {
|
|
62
|
+
return arguments.length ? (o = t, f) : o;
|
|
63
|
+
}, function(t, v) {
|
|
64
|
+
return e = t, a = v, c();
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function G() {
|
|
68
|
+
return z()(p, p);
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
F as copy,
|
|
72
|
+
G as default,
|
|
73
|
+
p as identity,
|
|
74
|
+
z as transformer
|
|
75
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { identity as M } from "./continuous.js";
|
|
2
|
+
import { initInterpolator as g } from "./init.js";
|
|
3
|
+
import { linearish as S } from "./linear.js";
|
|
4
|
+
import { loggish as q } from "./log.js";
|
|
5
|
+
import { copy as f } from "./sequential.js";
|
|
6
|
+
import { symlogish as x } from "./symlog.js";
|
|
7
|
+
import { powish as I } from "./pow.js";
|
|
8
|
+
import L from "../../d3-interpolate/src/piecewise.js";
|
|
9
|
+
import P from "../../d3-interpolate/src/value.js";
|
|
10
|
+
import j from "../../d3-interpolate/src/round.js";
|
|
11
|
+
function s() {
|
|
12
|
+
var n = 0, u = 0.5, m = 1, c = 1, e, t, a, l, y, i = M, p, d = !1, h;
|
|
13
|
+
function o(r) {
|
|
14
|
+
return isNaN(r = +r) ? h : (r = 0.5 + ((r = +p(r)) - t) * (c * r < c * t ? l : y), i(d ? Math.max(0, Math.min(1, r)) : r));
|
|
15
|
+
}
|
|
16
|
+
o.domain = function(r) {
|
|
17
|
+
return arguments.length ? ([n, u, m] = r, e = p(n = +n), t = p(u = +u), a = p(m = +m), l = e === t ? 0 : 0.5 / (t - e), y = t === a ? 0 : 0.5 / (a - t), c = t < e ? -1 : 1, o) : [n, u, m];
|
|
18
|
+
}, o.clamp = function(r) {
|
|
19
|
+
return arguments.length ? (d = !!r, o) : d;
|
|
20
|
+
}, o.interpolator = function(r) {
|
|
21
|
+
return arguments.length ? (i = r, o) : i;
|
|
22
|
+
};
|
|
23
|
+
function v(r) {
|
|
24
|
+
return function(R) {
|
|
25
|
+
var w, k, b;
|
|
26
|
+
return arguments.length ? ([w, k, b] = R, i = L(r, [w, k, b]), o) : [i(0), i(0.5), i(1)];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return o.range = v(P), o.rangeRound = v(j), o.unknown = function(r) {
|
|
30
|
+
return arguments.length ? (h = r, o) : h;
|
|
31
|
+
}, function(r) {
|
|
32
|
+
return p = r, e = r(n), t = r(u), a = r(m), l = e === t ? 0 : 0.5 / (t - e), y = t === a ? 0 : 0.5 / (a - t), c = t < e ? -1 : 1, o;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function z() {
|
|
36
|
+
var n = S(s()(M));
|
|
37
|
+
return n.copy = function() {
|
|
38
|
+
return f(n, z());
|
|
39
|
+
}, g.apply(n, arguments);
|
|
40
|
+
}
|
|
41
|
+
function A() {
|
|
42
|
+
var n = q(s()).domain([0.1, 1, 10]);
|
|
43
|
+
return n.copy = function() {
|
|
44
|
+
return f(n, A()).base(n.base());
|
|
45
|
+
}, g.apply(n, arguments);
|
|
46
|
+
}
|
|
47
|
+
function B() {
|
|
48
|
+
var n = x(s());
|
|
49
|
+
return n.copy = function() {
|
|
50
|
+
return f(n, B()).constant(n.constant());
|
|
51
|
+
}, g.apply(n, arguments);
|
|
52
|
+
}
|
|
53
|
+
function N() {
|
|
54
|
+
var n = I(s());
|
|
55
|
+
return n.copy = function() {
|
|
56
|
+
return f(n, N()).exponent(n.exponent());
|
|
57
|
+
}, g.apply(n, arguments);
|
|
58
|
+
}
|
|
59
|
+
function T() {
|
|
60
|
+
return N.apply(null, arguments).exponent(0.5);
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
z as default,
|
|
64
|
+
A as divergingLog,
|
|
65
|
+
N as divergingPow,
|
|
66
|
+
T as divergingSqrt,
|
|
67
|
+
B as divergingSymlog
|
|
68
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { linearish as o } from "./linear.js";
|
|
2
|
+
import u from "./number.js";
|
|
3
|
+
function i(t) {
|
|
4
|
+
var e;
|
|
5
|
+
function n(r) {
|
|
6
|
+
return r == null || isNaN(r = +r) ? e : r;
|
|
7
|
+
}
|
|
8
|
+
return n.invert = n, n.domain = n.range = function(r) {
|
|
9
|
+
return arguments.length ? (t = Array.from(r, u), n) : t.slice();
|
|
10
|
+
}, n.unknown = function(r) {
|
|
11
|
+
return arguments.length ? (e = r, n) : e;
|
|
12
|
+
}, n.copy = function() {
|
|
13
|
+
return i(t).unknown(e);
|
|
14
|
+
}, t = arguments.length ? Array.from(t, u) : [0, 1], o(n);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function n(e, t) {
|
|
2
|
+
switch (arguments.length) {
|
|
3
|
+
case 0:
|
|
4
|
+
break;
|
|
5
|
+
case 1:
|
|
6
|
+
this.range(e);
|
|
7
|
+
break;
|
|
8
|
+
default:
|
|
9
|
+
this.range(t).domain(e);
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
function i(e, t) {
|
|
15
|
+
switch (arguments.length) {
|
|
16
|
+
case 0:
|
|
17
|
+
break;
|
|
18
|
+
case 1: {
|
|
19
|
+
typeof e == "function" ? this.interpolator(e) : this.range(e);
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
default: {
|
|
23
|
+
this.domain(e), typeof t == "function" ? this.interpolator(t) : this.range(t);
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
i as initInterpolator,
|
|
31
|
+
n as initRange
|
|
32
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import p, { copy as v } from "./continuous.js";
|
|
2
|
+
import { initRange as c } from "./init.js";
|
|
3
|
+
import h from "./tickFormat.js";
|
|
4
|
+
import s, { tickIncrement as d } from "../../d3-array/src/ticks.js";
|
|
5
|
+
function k(i) {
|
|
6
|
+
var f = i.domain;
|
|
7
|
+
return i.ticks = function(n) {
|
|
8
|
+
var t = f();
|
|
9
|
+
return s(t[0], t[t.length - 1], n ?? 10);
|
|
10
|
+
}, i.tickFormat = function(n, t) {
|
|
11
|
+
var o = f();
|
|
12
|
+
return h(o[0], o[o.length - 1], n ?? 10, t);
|
|
13
|
+
}, i.nice = function(n) {
|
|
14
|
+
n == null && (n = 10);
|
|
15
|
+
var t = f(), o = 0, l = t.length - 1, e = t[o], a = t[l], u, r, m = 10;
|
|
16
|
+
for (a < e && (r = e, e = a, a = r, r = o, o = l, l = r); m-- > 0; ) {
|
|
17
|
+
if (r = d(e, a, n), r === u)
|
|
18
|
+
return t[o] = e, t[l] = a, f(t);
|
|
19
|
+
if (r > 0)
|
|
20
|
+
e = Math.floor(e / r) * r, a = Math.ceil(a / r) * r;
|
|
21
|
+
else if (r < 0)
|
|
22
|
+
e = Math.ceil(e * r) / r, a = Math.floor(a * r) / r;
|
|
23
|
+
else
|
|
24
|
+
break;
|
|
25
|
+
u = r;
|
|
26
|
+
}
|
|
27
|
+
return i;
|
|
28
|
+
}, i;
|
|
29
|
+
}
|
|
30
|
+
function g() {
|
|
31
|
+
var i = p();
|
|
32
|
+
return i.copy = function() {
|
|
33
|
+
return v(i, g());
|
|
34
|
+
}, c.apply(i, arguments), k(i);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
g as default,
|
|
38
|
+
k as linearish
|
|
39
|
+
};
|