Files
graphonline/script/features/draw_graph/model/PrintEdgeStyle.js
2026-01-07 19:55:04 +01:00

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()];