mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-04 00:36:45 +00:00
Fix IE11 problem with default function param
This commit is contained in:
parent
e1058bbedf
commit
344191ea5f
@ -720,13 +720,23 @@ Application.prototype.GetAdjacencyMatrix = function ()
|
|||||||
return this.graph.GetAdjacencyMatrixStr();
|
return this.graph.GetAdjacencyMatrixStr();
|
||||||
}
|
}
|
||||||
|
|
||||||
Application.prototype.TestAdjacencyMatrix = function (matrix, rowsObj, colsObj, separator = ",")
|
Application.prototype.TestAdjacencyMatrix = function (matrix, rowsObj, colsObj, separator)
|
||||||
{
|
{
|
||||||
|
if(separator === undefined)
|
||||||
|
{
|
||||||
|
separator = ",";
|
||||||
|
}
|
||||||
|
|
||||||
return this.graph.TestAdjacencyMatrix(matrix, rowsObj, colsObj, separator);
|
return this.graph.TestAdjacencyMatrix(matrix, rowsObj, colsObj, separator);
|
||||||
}
|
}
|
||||||
|
|
||||||
Application.prototype.SetAdjacencyMatrix = function (matrix, separator = ",")
|
Application.prototype.SetAdjacencyMatrix = function (matrix, separator)
|
||||||
{
|
{
|
||||||
|
if(separator === undefined)
|
||||||
|
{
|
||||||
|
separator = ",";
|
||||||
|
}
|
||||||
|
|
||||||
var res = true;
|
var res = true;
|
||||||
var r = {};
|
var r = {};
|
||||||
var c = {};
|
var c = {};
|
||||||
@ -778,8 +788,13 @@ Application.prototype.Test = function ()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Application.prototype.SetAdjacencyMatrixSmart = function (matrix, separator = ",")
|
Application.prototype.SetAdjacencyMatrixSmart = function (matrix, separator)
|
||||||
{
|
{
|
||||||
|
if (separator === undefined)
|
||||||
|
{
|
||||||
|
separator = ",";
|
||||||
|
}
|
||||||
|
|
||||||
var res = false;
|
var res = false;
|
||||||
if (this.TestAdjacencyMatrix(matrix, {}, {}, separator))
|
if (this.TestAdjacencyMatrix(matrix, {}, {}, separator))
|
||||||
{
|
{
|
||||||
|
@ -82,8 +82,13 @@ var selectedEdgeStyles = [new SelectedEdgeStyle0(), new SelectedEdgeStyle1(),
|
|||||||
new SelectedEdgeStyle2(), new SelectedEdgeStyle3(), new SelectedEdgeStyle4()];
|
new SelectedEdgeStyle2(), new SelectedEdgeStyle3(), new SelectedEdgeStyle4()];
|
||||||
|
|
||||||
|
|
||||||
function BaseEdgeDrawer(context, drawObjects = null)
|
function BaseEdgeDrawer(context, drawObjects)
|
||||||
{
|
{
|
||||||
|
if (drawObjects === undefined)
|
||||||
|
{
|
||||||
|
drawObjects = null;
|
||||||
|
}
|
||||||
|
|
||||||
this.context = context;
|
this.context = context;
|
||||||
|
|
||||||
this.drawObject = null;
|
this.drawObject = null;
|
||||||
|
@ -86,8 +86,13 @@ EdgeModel.prototype.HitTest = function(position1, position2, mousePos)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
EdgeModel.prototype.HitTestLine = function(position1, position2, mousePos, factor = 1.0)
|
EdgeModel.prototype.HitTestLine = function(position1, position2, mousePos, factor)
|
||||||
{
|
{
|
||||||
|
if (factor === undefined)
|
||||||
|
{
|
||||||
|
factor = 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
var pos1 = position1;
|
var pos1 = position1;
|
||||||
var pos2 = position2;
|
var pos2 = position2;
|
||||||
var pos0 = mousePos;
|
var pos0 = mousePos;
|
||||||
|
@ -825,8 +825,13 @@ SavedDialogGraphImageHandler.prototype.pathObjects = null;
|
|||||||
// Objects.
|
// Objects.
|
||||||
SavedDialogGraphImageHandler.prototype.objects = null;
|
SavedDialogGraphImageHandler.prototype.objects = null;
|
||||||
|
|
||||||
SavedDialogGraphImageHandler.prototype.show = function(object, isFull = false)
|
SavedDialogGraphImageHandler.prototype.show = function(object, isFull)
|
||||||
{
|
{
|
||||||
|
if (isFull === undefined)
|
||||||
|
{
|
||||||
|
isFull = false;
|
||||||
|
}
|
||||||
|
|
||||||
var showDialogCallback = function ()
|
var showDialogCallback = function ()
|
||||||
{
|
{
|
||||||
var dialogButtons = {};
|
var dialogButtons = {};
|
||||||
|
@ -203,8 +203,13 @@ Graph.prototype.GetAdjacencyMatrix = function ()
|
|||||||
return matrix;
|
return matrix;
|
||||||
}
|
}
|
||||||
|
|
||||||
Graph.prototype.TestAdjacencyMatrix = function (matrix, rowsObj, colsObj, separator = ",")
|
Graph.prototype.TestAdjacencyMatrix = function (matrix, rowsObj, colsObj, separator)
|
||||||
{
|
{
|
||||||
|
if(separator === undefined)
|
||||||
|
{
|
||||||
|
separator = ",";
|
||||||
|
}
|
||||||
|
|
||||||
var bGoodFormat = true;
|
var bGoodFormat = true;
|
||||||
rowsObj.rows = [];
|
rowsObj.rows = [];
|
||||||
rowsObj.rows = matrix.split ("\n");
|
rowsObj.rows = matrix.split ("\n");
|
||||||
@ -450,8 +455,13 @@ Graph.prototype.VertexesReposition = function (viewportSize, newVertexes)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Graph.prototype.SetAdjacencyMatrix = function (matrix, viewportSize, currentEnumVertesType, separator = ",")
|
Graph.prototype.SetAdjacencyMatrix = function (matrix, viewportSize, currentEnumVertesType, separator)
|
||||||
{
|
{
|
||||||
|
if (separator === undefined)
|
||||||
|
{
|
||||||
|
separator = ",";
|
||||||
|
}
|
||||||
|
|
||||||
var rowsObj = {};
|
var rowsObj = {};
|
||||||
var colsObj = {};
|
var colsObj = {};
|
||||||
|
|
||||||
@ -512,8 +522,13 @@ Graph.prototype.SetAdjacencyMatrix = function (matrix, viewportSize, currentEnum
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Graph.prototype.TestIncidenceMatrix = function (matrix, rowsObj, colsObj, separator = ",")
|
Graph.prototype.TestIncidenceMatrix = function (matrix, rowsObj, colsObj, separator)
|
||||||
{
|
{
|
||||||
|
if (separator === undefined)
|
||||||
|
{
|
||||||
|
separator = ",";
|
||||||
|
}
|
||||||
|
|
||||||
var bGoodFormat = true;
|
var bGoodFormat = true;
|
||||||
rowsObj.rows = [];
|
rowsObj.rows = [];
|
||||||
rowsObj.rows = matrix.split ("\n");
|
rowsObj.rows = matrix.split ("\n");
|
||||||
@ -691,8 +706,13 @@ Graph.prototype.GetIncidenceMatrix = function ()
|
|||||||
return matrix;
|
return matrix;
|
||||||
}
|
}
|
||||||
|
|
||||||
Graph.prototype.SplitMatrixString = function (line, separator = ",")
|
Graph.prototype.SplitMatrixString = function (line, separator)
|
||||||
{
|
{
|
||||||
|
if (separator === undefined)
|
||||||
|
{
|
||||||
|
separator = ",";
|
||||||
|
}
|
||||||
|
|
||||||
var res = [];
|
var res = [];
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user