@@ -17,12 +17,6 @@ export interface LineConfig {
17
17
customDomain : CustomDomain ;
18
18
setCustomDomain : ( customDomain : CustomDomain ) => void ;
19
19
20
- curveType : CurveType ;
21
- setCurveType : ( type : CurveType ) => void ;
22
-
23
- showGrid : boolean ;
24
- toggleGrid : ( ) => void ;
25
-
26
20
xScaleType : AxisScaleType ;
27
21
yScaleType : AxisScaleType ;
28
22
setXScaleType : ( type : AxisScaleType ) => void ;
@@ -33,6 +27,15 @@ export interface LineConfig {
33
27
34
28
showErrors : boolean ;
35
29
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 ;
36
39
}
37
40
38
41
function createLineConfigStore ( ) {
@@ -42,12 +45,6 @@ function createLineConfigStore() {
42
45
customDomain : [ null , null ] ,
43
46
setCustomDomain : ( customDomain ) => set ( { customDomain } ) ,
44
47
45
- curveType : CurveType . LineOnly ,
46
- setCurveType : ( curveType ) => set ( { curveType } ) ,
47
-
48
- showGrid : true ,
49
- toggleGrid : ( ) => set ( ( state ) => ( { showGrid : ! state . showGrid } ) ) ,
50
-
51
48
xScaleType : ScaleType . Linear ,
52
49
yScaleType : ScaleType . Linear ,
53
50
setXScaleType : ( xScaleType ) => set ( { xScaleType } ) ,
@@ -58,10 +55,19 @@ function createLineConfigStore() {
58
55
59
56
showErrors : true ,
60
57
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 } ) ,
61
67
} ) ,
62
68
{
63
69
name : 'h5web:line' ,
64
- version : 6 ,
70
+ version : 7 ,
65
71
} ,
66
72
) ,
67
73
) ;
0 commit comments