mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-03 16:25:59 +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();
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Application.prototype.SetAdjacencyMatrix = function (matrix, separator = ",")
|
||||
Application.prototype.SetAdjacencyMatrix = function (matrix, separator)
|
||||
{
|
||||
if(separator === undefined)
|
||||
{
|
||||
separator = ",";
|
||||
}
|
||||
|
||||
var res = true;
|
||||
var r = {};
|
||||
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;
|
||||
if (this.TestAdjacencyMatrix(matrix, {}, {}, separator))
|
||||
{
|
||||
|
@ -82,8 +82,13 @@ var selectedEdgeStyles = [new SelectedEdgeStyle0(), new SelectedEdgeStyle1(),
|
||||
new SelectedEdgeStyle2(), new SelectedEdgeStyle3(), new SelectedEdgeStyle4()];
|
||||
|
||||
|
||||
function BaseEdgeDrawer(context, drawObjects = null)
|
||||
function BaseEdgeDrawer(context, drawObjects)
|
||||
{
|
||||
if (drawObjects === undefined)
|
||||
{
|
||||
drawObjects = null;
|
||||
}
|
||||
|
||||
this.context = context;
|
||||
|
||||
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 pos2 = position2;
|
||||
var pos0 = mousePos;
|
||||
|
@ -825,8 +825,13 @@ SavedDialogGraphImageHandler.prototype.pathObjects = null;
|
||||
// Objects.
|
||||
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 dialogButtons = {};
|
||||
|
@ -203,8 +203,13 @@ Graph.prototype.GetAdjacencyMatrix = function ()
|
||||
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;
|
||||
rowsObj.rows = [];
|
||||
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 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;
|
||||
rowsObj.rows = [];
|
||||
rowsObj.rows = matrix.split ("\n");
|
||||
@ -691,8 +706,13 @@ Graph.prototype.GetIncidenceMatrix = function ()
|
||||
return matrix;
|
||||
}
|
||||
|
||||
Graph.prototype.SplitMatrixString = function (line, separator = ",")
|
||||
Graph.prototype.SplitMatrixString = function (line, separator)
|
||||
{
|
||||
if (separator === undefined)
|
||||
{
|
||||
separator = ",";
|
||||
}
|
||||
|
||||
var res = [];
|
||||
var i = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user