Skip to content

Commit 29a2c4a

Browse files
authored
Merge branch 'main' into zoom-slider
2 parents 5c906a3 + a0b1a90 commit 29a2c4a

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/graph-builder/graph-core/2-canvas.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class GraphCanvas extends Core {
77

88
resetZoom() {
99
this.cy.reset();
10+
this.cy.center();
1011
this.dispatcher({ type: T.SET_ZOOM_LEVEL, payload: this.getZoom() });
1112
}
1213

src/toolbarActions/toolbarList.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
/* eslint-disable no-alert */
22
import {
33
FaSave, FaUndo, FaRedo, FaTrash, FaFileImport, FaPlus, FaDownload, FaEdit, FaRegTimesCircle, FaHistory,
4-
FaHammer, FaBug, FaBomb, FaToggleOn, FaThermometerEmpty, FaUndoAlt,
4+
FaHammer, FaBug, FaBomb, FaToggleOn, FaThermometerEmpty,
55
} from 'react-icons/fa';
66

7+
import {
8+
BsArrowRepeat,
9+
} from 'react-icons/bs';
10+
711
import {
812
// FiChevronDown, FiChevronsDown, FiChevronsUp, FiChevronUp,
913
FiPlay, FiStopCircle, FiToggleLeft, FiTriangle,
@@ -71,8 +75,8 @@ const toolbarList = (state, dispatcher) => [
7175
},
7276
{
7377
type: 'action',
74-
text: 'Reset',
75-
icon: FaUndoAlt,
78+
text: 'Restore',
79+
icon: BsArrowRepeat,
7680
action: resetAfterClear,
7781
active: state.curGraphInstance && state.resetEnabled,
7882
visibility: true,

0 commit comments

Comments
 (0)