mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-03 08:15:38 +00:00
Add enum from zero.
Fix page title Fix font for dialogs.
This commit is contained in:
parent
dccdcecc93
commit
b674a7abb7
@ -127,11 +127,10 @@
|
||||
|
||||
.ui-dialog.EdgeDialog
|
||||
{
|
||||
font-size: 15px; //14px;
|
||||
font-family: 'PT Sans', Arial, Helvetica, sans-serif;
|
||||
font-size: 15px;
|
||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
}
|
||||
|
||||
|
||||
.ui-dialog-titlebar-close
|
||||
{
|
||||
border: 1px solid #c5dbec;
|
||||
|
@ -11,7 +11,7 @@ function Application(document, window)
|
||||
this.canvas = this.document.getElementById('canvas');
|
||||
this.handler = new AddGraphHandler(this);
|
||||
this.savedGraphName = "";
|
||||
this.currentEnumVertesType = new BaseEnumVertices(this);//this.enumVertexesTextList[0];
|
||||
this.currentEnumVertesType = new BaseEnumVertices(this, 1);//this.enumVertexesTextList[0];
|
||||
this.findPathReport = 1;
|
||||
this.isTimerRender = false;
|
||||
globalApplication = this;
|
||||
@ -20,7 +20,7 @@ function Application(document, window)
|
||||
this.renderPathLength = 0;
|
||||
this.renderPathCounter = 0;
|
||||
this.renderPathLoops = 0;
|
||||
this.enumVertexesTextList = [new BaseEnumVertices(this), new TextEnumVertexs(this), new TextEnumVertexsCyr(this), new TextEnumVertexsGreek(this), new TextEnumVertexsCustom(this)];
|
||||
this.enumVertexesTextList = [new BaseEnumVertices(this, 1), new BaseEnumVertices(this, 0), new TextEnumVertexs(this), new TextEnumVertexsCyr(this), new TextEnumVertexsGreek(this), new TextEnumVertexsCustom(this)];
|
||||
this.SetDefaultTransformations();
|
||||
this.algorithmsValues = {};
|
||||
this.userAction = function(){};
|
||||
|
@ -7,14 +7,15 @@
|
||||
* Base Enum Vertexs.
|
||||
*
|
||||
*/
|
||||
function BaseEnumVertices(app)
|
||||
function BaseEnumVertices(app, startNumber)
|
||||
{
|
||||
this.app = app;
|
||||
this.startNumber = startNumber;
|
||||
}
|
||||
|
||||
BaseEnumVertices.prototype.GetVertexText = function(id)
|
||||
{
|
||||
return id;
|
||||
return this.startNumber + id;
|
||||
}
|
||||
|
||||
BaseEnumVertices.prototype.GetVertexTextAsync = function(callback)
|
||||
@ -24,12 +25,12 @@ BaseEnumVertices.prototype.GetVertexTextAsync = function(callback)
|
||||
|
||||
BaseEnumVertices.prototype.GetText = function()
|
||||
{
|
||||
return "1, 2, 3...";
|
||||
return this.startNumber + ", " + (this.startNumber + 1) + ", " + (this.startNumber + 2) + "...";
|
||||
}
|
||||
|
||||
BaseEnumVertices.prototype.GetValue = function()
|
||||
{
|
||||
return "Numbers";
|
||||
return "Numbers" + this.startNumber;
|
||||
}
|
||||
|
||||
function TextEnumTitle(app, title)
|
||||
|
@ -27,12 +27,15 @@
|
||||
|
||||
fclose($cvsFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (strlen($graphId) > 0 || strlen($graphName) == 0) {
|
||||
$graphName = L('graph'). " " . $graphId;
|
||||
}
|
||||
}
|
||||
|
||||
if (strlen($graphName) > 0)
|
||||
{
|
||||
$g_lang["m_title"] = $graphName;
|
||||
$g_lang["m_title"] = $g_lang["m_title"] . " (" . $graphName . ")";
|
||||
$g_lang["m_keyWords"] = $graphName . ", " . $g_lang["m_keyWords"];
|
||||
$g_lang["m_description"] = $g_lang["title_notg"] . ": " . $graphName;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user