Car/Css/ichartjs/src/ichart.label.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @overview the label componment
* @component#iChart.Label
* @extend#iChart.Component
*/
iChart.Label = iChart.extend(iChart.Component, {
configure : function() {
/**
* invoked the super class's configuration
*/
iChart.Label.superclass.configure.apply(this, arguments);
/**
* indicate the legend's type
*/
this.type = 'label';
this.set({
/**
* @cfg {String} Specifies the text of this label,Normally,this will given by chart.(default to '').
*/
text : '',
/**
* @cfg {Number} Specifies the lineheight when text display multiline.(default to 12).
*/
line_height : 12,
/**
* @cfg {Number} Specifies the thickness of line in pixel.(default to 1).
*/
line_thickness : 1,
/**
* @cfg {String} Specifies the shape of legend' sign (default to 'square').Available value are:
* @Option 'round'
* @Option 'square'
*/
sign : 'square',
/**
* @cfg {Number} Specifies the size of legend' sign in pixel.(default to 12)
*/
sign_size : 12,
/**
* @cfg {Number} Override the default as 2 in pixel.
*/
padding : '2 5',
/**
* @cfg {Number} Override the default as 2 in pixel.
*/
offsety : 2,
/**
* @cfg {Number} Specifies the space between the sign and text.(default to 5)
*/
sign_space : 5,
/**
* @cfg {Number} Override the default as '#efefef'.
*/
background_color : '#efefef',
/**
* @cfg {Boolean} If true the text's color will accord with sign's.(default to false)
*/
text_with_sign_color : false
后面还有 82 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。