Scientific/Css/ichartjs/src/ichart.painter.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview The interface this class defined d,so the sub class has must capability to draw and aware of event. this class is a abstract class,so you should not try to initialize it.
* @component#iChart.Painter
* @extend#iChart.Element
*/
iChart.Painter = iChart.extend(iChart.Element, {
configure : function() {
/**
* indicate the element's type
*/
this.type = 'painter';
this.dimension = iChart._2D;
/**
* define abstract method
*/
iChart._Abstract('commonDraw', this);
iChart._Abstract('initialize', this);
this.set({
/**
* @cfg {String} Specifies the default strokeStyle of the canvas's context in this element.(defaults to 'gray')
*/
strokeStyle : 'gray',
/**
* @cfg {Number} Specifies the padding for this element in pixel,the same rule as css padding.(defaults to 10)
*/
padding : 10,
/**
* @cfg {String} Specifies the font's color for this element.(defaults to 'black')
*/
color : 'black',
/**
* @cfg {Number} Specifies Horizontal offset(x-axis) in pixel.(default to 0)
*/
offsetx : 0,
/**
* @cfg {Number}Specifies Vertical distance (y-axis) in pixel.(default to 0)
*/
offsety : 0,
/**
* @cfg {String} Specifies the backgroundColor for this element.null to transparent.(defaults to 'FDFDFD')
*/
background_color : '#FEFEFE',
/**
* @cfg {float} Specifies the factor make color dark or light for this element,relative to background-color,the bigger the value you set,the larger the color changed.scope{0.01 - 0.5}.(defaults to '0.15')
*/
color_factor : 0.15,
/**
* @inner {String} ('2d','3d')
*/
style : '',
/**
* @cfg {Object} Here,specify as true by default
*/
border : {
enable : true
},
后面还有 169 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。