Added style dialogs for edges and vertexes

This commit is contained in:
Unick Soft
2019-07-07 21:15:30 +02:00
parent c6df88cf3d
commit 5ba794dc34
11 changed files with 536 additions and 75 deletions

View File

@@ -5,7 +5,7 @@
// Common style of Graphs.
function CommonVertexStyle()
{
this.lineWidth = 1;
this.lineWidth = 2;
this.strokeStyle = '#c7b7c7';
this.fillStyle = '#68aeba';
this.mainTextColor = '#f0d543';
@@ -13,7 +13,9 @@ function CommonVertexStyle()
function CommonPrintVertexStyle()
{
this.lineWidth = 1;
CommonVertexStyle.apply(this, arguments);
this.lineWidth = 2;
this.strokeStyle = '#000000';
this.fillStyle = '#FFFFFF';
this.mainTextColor = '#000000';
@@ -179,7 +181,6 @@ BaseVertexDrawer.prototype.SetupStyle = function(style)
BaseVertexDrawer.prototype.DrawShape = function(baseGraph)
{
this.context.lineWidth = 2;
this.context.beginPath();
this.context.arc(baseGraph.position.x, baseGraph.position.y, baseGraph.model.diameter / 2.0, 0, 2 * Math.PI);
this.context.closePath();