@rfkit/charts 1.1.12 → 1.1.13

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.
Files changed (2) hide show
  1. package/index.js +32 -32
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13463,7 +13463,7 @@ const StationAllocationSwitch = ()=>{
13463
13463
  onClick: ()=>{
13464
13464
  setActive(!show);
13465
13465
  },
13466
- title: "\u4FE1\u53F7\u663E\u793A",
13466
+ title: `\u{4FE1}\u{53F7}\u{6807}\u{6CE8}-\u{5DF2}${show ? "\u663E\u793A" : "\u9690\u85CF"}`,
13467
13467
  children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("svg", {
13468
13468
  viewBox: "0 0 1024 1024",
13469
13469
  xmlns: "http://www.w3.org/2000/svg",
@@ -13883,38 +13883,38 @@ const SegmentsDisplayControl_SegmentsDisplayControl = ()=>{
13883
13883
  };
13884
13884
  const SegmentsDisplayControl = SegmentsDisplayControl_SegmentsDisplayControl;
13885
13885
  const SeriesControl = ()=>{
13886
- const [currentMode, setCurrentMode] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('bar');
13886
+ const [currentMode, setCurrentMode] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('line');
13887
13887
  const { state: { publish } } = useStore_useStore();
13888
- const seriesModes = {
13889
- line: {
13890
- realData: type_GraphicType.Line,
13891
- minData: type_GraphicType.Line,
13892
- maxData: type_GraphicType.Line,
13893
- avgData: type_GraphicType.Line,
13894
- label: "\u6298\u7EBF\u6A21\u5F0F"
13895
- },
13896
- stepline: {
13897
- realData: type_GraphicType.Stepline,
13898
- minData: type_GraphicType.Stepline,
13899
- maxData: type_GraphicType.Stepline,
13900
- avgData: type_GraphicType.Stepline,
13901
- label: "\u9636\u68AF\u7EBF\u6A21\u5F0F"
13902
- },
13903
- bar: {
13904
- realData: type_GraphicType.Bar,
13905
- minData: type_GraphicType.Line,
13906
- maxData: type_GraphicType.Line,
13907
- avgData: type_GraphicType.Line,
13908
- label: "\u67F1\u72B6\u56FE\u6A21\u5F0F"
13909
- },
13910
- area: {
13911
- realData: type_GraphicType.Area,
13912
- minData: type_GraphicType.Stepline,
13913
- maxData: type_GraphicType.Stepline,
13914
- avgData: type_GraphicType.Stepline,
13915
- label: "\u9762\u79EF\u56FE\u6A21\u5F0F"
13916
- }
13917
- };
13888
+ const seriesModes = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
13889
+ line: {
13890
+ realData: type_GraphicType.Line,
13891
+ minData: type_GraphicType.Line,
13892
+ maxData: type_GraphicType.Line,
13893
+ avgData: type_GraphicType.Line,
13894
+ label: "\u6298\u7EBF\u6A21\u5F0F"
13895
+ },
13896
+ stepline: {
13897
+ realData: type_GraphicType.Stepline,
13898
+ minData: type_GraphicType.Stepline,
13899
+ maxData: type_GraphicType.Stepline,
13900
+ avgData: type_GraphicType.Stepline,
13901
+ label: "\u9636\u68AF\u7EBF\u6A21\u5F0F"
13902
+ },
13903
+ bar: {
13904
+ realData: type_GraphicType.Bar,
13905
+ minData: type_GraphicType.Line,
13906
+ maxData: type_GraphicType.Line,
13907
+ avgData: type_GraphicType.Line,
13908
+ label: "\u67F1\u72B6\u56FE\u6A21\u5F0F"
13909
+ },
13910
+ area: {
13911
+ realData: type_GraphicType.Area,
13912
+ minData: type_GraphicType.Stepline,
13913
+ maxData: type_GraphicType.Stepline,
13914
+ avgData: type_GraphicType.Stepline,
13915
+ label: "\u9762\u79EF\u56FE\u6A21\u5F0F"
13916
+ }
13917
+ }), []);
13918
13918
  const handleSeriesControl = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>{
13919
13919
  const modes = [
13920
13920
  'bar',
package/package.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "types": "index.d.ts",
6
6
  "author": "Hxgh",
7
7
  "license": "MIT",
8
- "version": "1.1.12",
8
+ "version": "1.1.13",
9
9
  "private": false
10
10
  }