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 Sep 20, 2022
1 parent 4292667 commit bf809b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/qmxgraph/page/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ graphs.Api.prototype._getBoundsFromMxCell = function _getBoundsFromMxCell(cell)
y: y,
width: geometry.width,
height: geometry.height,
parent_anchor_position: parent_anchor_position,
parent_anchor_position: parent_anchor_position
};
};

Expand Down Expand Up @@ -1839,7 +1839,7 @@ graphs.Api.prototype._getMxEdgeTerminalsWithPorts = function _getMxEdgeTerminals

return [
[sourceId, sourcePortName],
[targetId, targetPortName],
[targetId, targetPortName]
];
};

Expand Down Expand Up @@ -1928,7 +1928,7 @@ graphs.Api.prototype.getEdgeTerminalPoints = function getEdgeTerminalPoints(edge
var terminal_points = this._getMxEdgeTerminalPoints(edge);
return [
[terminal_points[0].x, terminal_points[0].y],
[terminal_points[1].x, terminal_points[1].y],
[terminal_points[1].x, terminal_points[1].y]
];
};

Expand Down
4 changes: 2 additions & 2 deletions src/qmxgraph/page/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ graphs.utils.createTableElement = function createTableElement(contents, title) {
var td_defaults = [
["colspan", 1],
["rowspan", 1],
["style", null],
["style", null]
];
var result = "<td";
for (var i = 0; i < td_defaults.length; ++i) {
Expand Down Expand Up @@ -321,7 +321,7 @@ graphs.utils.escapeHtml = function escapeHtml(text) {
"<": "&lt;",
">": "&gt;",
'"': "&quot;",
"'": "&#039;",
"'": "&#039;"
};
return String(text).replace(/[&<>"']/g, function (m) {
return map[m];
Expand Down

0 comments on commit bf809b5

Please sign in to comment.