@@ -17,12 +17,6 @@ export interface LineConfig {
1717 customDomain : CustomDomain ;
1818 setCustomDomain : ( customDomain : CustomDomain ) => void ;
1919
20- curveType : CurveType ;
21- setCurveType : ( type : CurveType ) => void ;
22-
23- showGrid : boolean ;
24- toggleGrid : ( ) => void ;
25-
2620 xScaleType : AxisScaleType ;
2721 yScaleType : AxisScaleType ;
2822 setXScaleType : ( type : AxisScaleType ) => void ;
@@ -33,6 +27,15 @@ export interface LineConfig {
3327
3428 showErrors : boolean ;
3529 toggleErrors : ( ) => void ;
30+
31+ showAux : boolean ;
32+ toggleAux : ( ) => void ;
33+
34+ showGrid : boolean ;
35+ toggleGrid : ( ) => void ;
36+
37+ curveType : CurveType ;
38+ setCurveType : ( type : CurveType ) => void ;
3639}
3740
3841function createLineConfigStore ( ) {
@@ -42,12 +45,6 @@ function createLineConfigStore() {
4245 customDomain : [ null , null ] ,
4346 setCustomDomain : ( customDomain ) => set ( { customDomain } ) ,
4447
45- curveType : CurveType . LineOnly ,
46- setCurveType : ( curveType ) => set ( { curveType } ) ,
47-
48- showGrid : true ,
49- toggleGrid : ( ) => set ( ( state ) => ( { showGrid : ! state . showGrid } ) ) ,
50-
5148 xScaleType : ScaleType . Linear ,
5249 yScaleType : ScaleType . Linear ,
5350 setXScaleType : ( xScaleType ) => set ( { xScaleType } ) ,
@@ -58,10 +55,19 @@ function createLineConfigStore() {
5855
5956 showErrors : true ,
6057 toggleErrors : ( ) => set ( ( state ) => ( { showErrors : ! state . showErrors } ) ) ,
58+
59+ showAux : true ,
60+ toggleAux : ( ) => set ( ( state ) => ( { showAux : ! state . showAux } ) ) ,
61+
62+ showGrid : true ,
63+ toggleGrid : ( ) => set ( ( state ) => ( { showGrid : ! state . showGrid } ) ) ,
64+
65+ curveType : CurveType . LineOnly ,
66+ setCurveType : ( curveType ) => set ( { curveType } ) ,
6167 } ) ,
6268 {
6369 name : 'h5web:line' ,
64- version : 6 ,
70+ version : 7 ,
6571 } ,
6672 ) ,
6773 ) ;
0 commit comments