Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent 46e8e8b commit 27bf562
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default ipycytoscapePlugin;
*/
function activateWidgetExtension(
app: Application<Widget>,
registry: IJupyterWidgetRegistry
registry: IJupyterWidgetRegistry,

Check failure on line 34 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 34 in src/plugin.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
): void {
registry.registerWidget({
name: MODULE_NAME,
Expand Down
20 changes: 10 additions & 10 deletions src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ export class CytoscapeView extends DOMWidgetView {
this.nodeViews = new widgets.ViewList(
this.addNodeModel,
this.removeNodeView,
this
this,

Check failure on line 120 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 120 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.nodeViews.update(this.model.get('graph').get('nodes'));

this.edgeViews = new widgets.ViewList(
this.addEdgeModel,
this.removeEdgeView,
this
this,

Check failure on line 127 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 127 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.edgeViews.update(this.model.get('graph').get('edges'));
this.cytoscape_obj.endBatch();
Expand All @@ -145,18 +145,18 @@ export class CytoscapeView extends DOMWidgetView {
this.model.on(
'change:user_zooming_enabled',
this._updateUserZoomingEnabled,
this
this,

Check failure on line 148 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 148 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.model.on('change:panning_enabled', this._updatePanningEnabled, this);
this.model.on(
'change:user_panning_enabled',
this._updateUserPanningEnabled,
this
this,

Check failure on line 154 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 154 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.model.on(
'change:box_selection_enabled',
this._updateBoxSelectionEnabled,
this
this,

Check failure on line 159 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 159 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
this.model.on('change:selection_type', this._updateSelectionType, this);
this.model.on('change:touch_tap_threshold', this.value_changed, this);
Expand All @@ -171,7 +171,7 @@ export class CytoscapeView extends DOMWidgetView {
this.model.on(
'change:_interaction_handlers',
this.listenForUserEvents,
this
this,

Check failure on line 174 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 174 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);

const layout = this.model.get('layout');
Expand Down Expand Up @@ -309,20 +309,20 @@ export class CytoscapeView extends DOMWidgetView {
}
private _updateUserZoomingEnabled() {
this.cytoscape_obj.userZoomingEnabled(
this.model.get('user_zooming_enabled')
this.model.get('user_zooming_enabled'),

Check failure on line 312 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 312 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
}
private _updatePanningEnabled() {
this.cytoscape_obj.panningEnabled(this.model.get('panning_enabled'));
}
private _updateUserPanningEnabled() {
this.cytoscape_obj.userPanningEnabled(
this.model.get('user_panning_enabled')
this.model.get('user_panning_enabled'),

Check failure on line 320 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 320 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
}
private _updateBoxSelectionEnabled() {
this.cytoscape_obj.boxSelectionEnabled(
this.model.get('box_selection_enabled')
this.model.get('box_selection_enabled'),

Check failure on line 325 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 325 in src/widget.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`
);
}
private _updateSelectionType() {
Expand Down Expand Up @@ -357,7 +357,7 @@ export class CytoscapeView extends DOMWidgetView {
*/
_addElementListeners(
ele: cytoscape.CollectionReturnValue,
view: DOMWidgetView
view: DOMWidgetView,
) {
ele.on('select', (event) => {
view.model.set('selected', true);
Expand Down

0 comments on commit 27bf562

Please sign in to comment.