mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 10:40:57 +00:00
Add new default style.
This commit is contained in:
41
script/features/draw_graph/model/BackgroundStyle.js
Normal file
41
script/features/draw_graph/model/BackgroundStyle.js
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Graph drawer.
|
||||
*/
|
||||
|
||||
|
||||
function CommonBackgroundStyle()
|
||||
{
|
||||
BaseBackgroundStyle.apply(this, arguments);
|
||||
|
||||
this.commonColor = '#ffffff';
|
||||
this.commonOpacity = 1.0;
|
||||
this.image = null;
|
||||
}
|
||||
|
||||
CommonBackgroundStyle.prototype = Object.create(BaseBackgroundStyle.prototype);
|
||||
|
||||
function PrintBackgroundStyle()
|
||||
{
|
||||
CommonBackgroundStyle.apply(this, arguments);
|
||||
|
||||
this.commonColor = '#ffffff';
|
||||
this.commonOpacity = 1.0;
|
||||
this.image = null;
|
||||
}
|
||||
|
||||
PrintBackgroundStyle.prototype = Object.create(CommonBackgroundStyle.prototype);
|
||||
|
||||
function GetWhiteBackgroundStyle()
|
||||
{
|
||||
return new CommonBackgroundStyle();
|
||||
}
|
||||
|
||||
function DefaultCommonBackgroundStyle()
|
||||
{
|
||||
return GetWhiteBackgroundStyle();
|
||||
}
|
||||
|
||||
function DefaultPrintBackgroundStyle()
|
||||
{
|
||||
return new PrintBackgroundStyle();
|
||||
}
|
||||
Reference in New Issue
Block a user