Skip to content

Commit b1cbb51

Browse files
committed
Apply prettier
1 parent 9673bb7 commit b1cbb51

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib/components/Cytoscape.react.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ class Cytoscape extends Component {
219219
const originalMinZoomFn = cy.minZoom;
220220

221221
// Override the maxZoom function to trigger maxZoomChange custom event
222-
cy.maxZoom = function(e) {
222+
cy.maxZoom = function (e) {
223223
const currentMaxZoom = originalMaxZoomFn.call(cy, e);
224-
225-
// Trigger your custom event if the current max zoom level is different from the
224+
225+
// Trigger your custom event if the current max zoom level is different from the
226226
// previously stored max zoom level
227227
if (currentMaxZoom !== cy._previousMaxZoom) {
228228
cy._previousMaxZoom = currentMaxZoom;
@@ -232,10 +232,10 @@ class Cytoscape extends Component {
232232
};
233233

234234
// Override the minZoom function to trigger minZoomChange custom event
235-
cy.minZoom = function(e) {
235+
cy.minZoom = function (e) {
236236
const currentMinZoom = originalMinZoomFn.call(cy, e);
237-
238-
// Trigger your custom event if the current min zoom level is different from the
237+
238+
// Trigger your custom event if the current min zoom level is different from the
239239
// previously stored min zoom level
240240
if (currentMinZoom !== cy._previousMinZoom) {
241241
cy._previousMinZoom = currentMinZoom;
@@ -353,7 +353,7 @@ class Cytoscape extends Component {
353353

354354
// Refresh layout if current zoom is out of boundaries
355355
cy.on('minMaxZoomChange', function () {
356-
var zoom = cy.zoom();
356+
const zoom = cy.zoom();
357357
if (zoom > cy.maxZoom() || zoom < cy.minZoom()) {
358358
cy.fit();
359359
}

0 commit comments

Comments
 (0)