mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 02:30:51 +00:00
38 lines
802 B
JavaScript
38 lines
802 B
JavaScript
/**
|
|
* Print Edge style.
|
|
*/
|
|
|
|
function CommonPrintEdgeStyle()
|
|
{
|
|
BaseEdgeStyle.apply(this, arguments);
|
|
|
|
this.strokeStyle = '#000000';
|
|
this.weightText = '#000000';
|
|
this.fillStyle = '#FFFFFF';
|
|
this.textPadding = 4;
|
|
this.textStrokeWidth = 2;
|
|
|
|
this.baseStyles.push("common");
|
|
}
|
|
CommonPrintEdgeStyle.prototype = Object.create(BaseEdgeStyle.prototype);
|
|
|
|
function SelectedEdgePrintStyle()
|
|
{
|
|
BaseEdgeStyle.apply(this, arguments);
|
|
|
|
this.strokeStyle = '#AAAAAA';
|
|
this.weightText = '#000000';
|
|
this.fillStyle = '#AAAAAA';
|
|
|
|
this.baseStyles.push("printed");
|
|
}
|
|
SelectedEdgePrintStyle.prototype = Object.create(BaseEdgeStyle.prototype);
|
|
|
|
|
|
function DefaultCommonPrintEdgeStyle()
|
|
{
|
|
return new CommonPrintEdgeStyle();
|
|
}
|
|
|
|
var DefaultPrintSelectedEdgeStyles = [new SelectedEdgePrintStyle()];
|