Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
language: python
files: \.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.18"
rev: "v0.15.20"
hooks:
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down
8 changes: 4 additions & 4 deletions src/qmxgraph/page/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ graphs.Api.prototype.setSelectedCells = function setSelectedCells(cellIds) {
var cellsToSelect = [];
var model = this._graphEditor.graph.getModel();
var cell = null;
for (var i = cellIds.length; i--; ) {
for (var i = cellIds.length; i--;) {
cell = model.getCell(cellIds[i]);
cellsToSelect.push(cell);
}
Expand All @@ -947,7 +947,7 @@ graphs.Api.prototype.getSelectedCells = function getSelectedCells() {
var selectionModel = this._graphEditor.graph.getSelectionModel();
var cells = selectionModel.cells;
var cellIds = [];
for (var i = cells.length; i--; ) {
for (var i = cells.length; i--;) {
cellIds.push(cells[i].getId());
}
return cellIds;
Expand Down Expand Up @@ -1144,7 +1144,7 @@ graphs.Api.prototype.removePort = function removePort(vertexId, portName) {
// This array will contain the port and edges connected on the parent vertex using the port.
var cellsToRemove = [port];
var edges = graph.getEdges(parent);
for (var i = edges.length; i--; ) {
for (var i = edges.length; i--;) {
var terminals = this._getMxEdgeTerminalsWithPorts(edges[i]);
var source_terminal = terminals[0];
var target_terminal = terminals[1];
Expand Down Expand Up @@ -1297,7 +1297,7 @@ graphs.Api.prototype.registerSelectionChangedHandler = function registerSelectio
var selectionHandler = function (source, event) {
var selectedCells = source.cells;
var selectedCellsIds = [];
for (var i = selectedCells.length; i--; ) {
for (var i = selectedCells.length; i--;) {
selectedCellsIds.push(selectedCells[i].getId());
}
handler(selectedCellsIds);
Expand Down
2 changes: 1 addition & 1 deletion src/qmxgraph/page/graphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ graphs.createGraph = function createGraph(container, options, styles) {

sender.__moved = [];

for (var c = cells.length; c--; ) {
for (var c = cells.length; c--;) {
var cell = cells[c];
if (!cell.isEdge()) {
var edges = sender.model.getEdges(cell);
Expand Down