@@ -7,7 +7,7 @@ export class ControlBarView {
7
7
class : 'sqd-control-bar'
8
8
} ) ;
9
9
10
- const resetButton = createButton ( Icons . center , 'Reset' ) ;
10
+ const resetButton = createButton ( Icons . center , 'Reset view ' ) ;
11
11
root . appendChild ( resetButton ) ;
12
12
13
13
const zoomInButton = createButton ( Icons . zoomIn , 'Zoom in' ) ;
@@ -26,17 +26,17 @@ export class ControlBarView {
26
26
root . appendChild ( redoButton ) ;
27
27
}
28
28
29
- const moveButton = createButton ( Icons . move , 'Turn on/off drag and drop' ) ;
30
- moveButton . classList . add ( 'sqd-disabled' ) ;
31
- root . appendChild ( moveButton ) ;
29
+ const disableDragButton = createButton ( Icons . move , 'Turn on/off drag and drop' ) ;
30
+ disableDragButton . classList . add ( 'sqd-disabled' ) ;
31
+ root . appendChild ( disableDragButton ) ;
32
32
33
33
const deleteButton = createButton ( Icons . delete , 'Delete selected step' ) ;
34
34
deleteButton . classList . add ( 'sqd-delete' ) ;
35
35
deleteButton . classList . add ( 'sqd-hidden' ) ;
36
36
root . appendChild ( deleteButton ) ;
37
37
38
38
parent . appendChild ( root ) ;
39
- return new ControlBarView ( resetButton , zoomInButton , zoomOutButton , undoButton , redoButton , moveButton , deleteButton ) ;
39
+ return new ControlBarView ( resetButton , zoomInButton , zoomOutButton , undoButton , redoButton , disableDragButton , deleteButton ) ;
40
40
}
41
41
42
42
private constructor (
@@ -45,7 +45,7 @@ export class ControlBarView {
45
45
private readonly zoomOutButton : HTMLElement ,
46
46
private readonly undoButton : HTMLElement | null ,
47
47
private readonly redoButton : HTMLElement | null ,
48
- private readonly moveButton : HTMLElement ,
48
+ private readonly disableDragButton : HTMLElement ,
49
49
private readonly deleteButton : HTMLElement
50
50
) { }
51
51
@@ -75,8 +75,8 @@ export class ControlBarView {
75
75
bindClick ( this . redoButton , handler ) ;
76
76
}
77
77
78
- public bindMoveButtonClick ( handler : ( ) => void ) {
79
- bindClick ( this . moveButton , handler ) ;
78
+ public bindDisableDragButtonClick ( handler : ( ) => void ) {
79
+ bindClick ( this . disableDragButton , handler ) ;
80
80
}
81
81
82
82
public bindDeleteButtonClick ( handler : ( ) => void ) {
@@ -87,8 +87,8 @@ export class ControlBarView {
87
87
Dom . toggleClass ( this . deleteButton , isHidden , 'sqd-hidden' ) ;
88
88
}
89
89
90
- public setIsMoveButtonDisabled ( isDisabled : boolean ) {
91
- Dom . toggleClass ( this . moveButton , isDisabled , 'sqd-disabled' ) ;
90
+ public setDisableDragButtonDisabled ( isDisabled : boolean ) {
91
+ Dom . toggleClass ( this . disableDragButton , isDisabled , 'sqd-disabled' ) ;
92
92
}
93
93
94
94
public setUndoButtonDisabled ( isDisabled : boolean ) {
0 commit comments