]> git.proxmox.com Git - extjs.git/blame - extjs/packages/charts/src/chart/grid/RadialGrid.js
add extjs 6.0.1 sources
[extjs.git] / extjs / packages / charts / src / chart / grid / RadialGrid.js
CommitLineData
6527f429
DM
1/**\r
2 * @class Ext.chart.grid.RadialGrid\r
3 * @extends Ext.draw.sprite.Path\r
4 * \r
5 * Radial Grid sprite. Used by Radar chart to render a series of radial lines.\r
6 * Represents the scale of the radar chart on the yField.\r
7 */\r
8Ext.define('Ext.chart.grid.RadialGrid', {\r
9 extend: 'Ext.draw.sprite.Path',\r
10 alias: 'grid.radial',\r
11\r
12 inheritableStatics: {\r
13 def: {\r
14 processors: {\r
15 startRadius: 'number',\r
16 endRadius: 'number'\r
17 },\r
18\r
19 defaults: {\r
20 startRadius: 0,\r
21 endRadius: 1,\r
22 scalingCenterX: 0,\r
23 scalingCenterY: 0,\r
24 strokeStyle: '#DDD'\r
25 },\r
26\r
27 triggers: {\r
28 startRadius: 'path,bbox',\r
29 endRadius: 'path,bbox'\r
30 }\r
31 }\r
32 },\r
33\r
34 render: function () {\r
35 this.callParent(arguments);\r
36 },\r
37\r
38 updatePath: function (path, attr) {\r
39 var startRadius = attr.startRadius,\r
40 endRadius = attr.endRadius;\r
41 path.moveTo(startRadius, 0);\r
42 path.lineTo(endRadius, 0);\r
43 }\r
44});