File tree
Expand file treeCollapse file tree1 file changed
+11
-3
lines changed Expand file treeCollapse file tree1 file changed
+11
-3
lines changed Original file line number | Diff line number | Diff line change |
---|
|
1 |
| -import { Dasard, CustomItem } from 'devexpress-dasard/model' |
| 1 | +// #region imports |
| 2 | +import { Dasard, CustomItem } from 'devexpress-dasard/model' |
2 | 3 | import { CustomItemViewer, ResourceManager } from 'devexpress-dasard/common'
|
3 | 4 | import { FormItemTemplates } from 'devexpress-dasard/designer'
|
4 | 5 | import dxFunnel from 'devextreme/viz/funnel'
|
5 |
| - |
| 6 | +// #endregion |
| 7 | +// #region svgIcon |
6 | 8 | var svgIcon = '<svg id="funnelChartItemIcon" viewBox="0 0 24 24"><path stroke="#ffffff" fill="#f442ae" d="M12 2 L2 22 L22 22 Z" /></svg>';
|
| 9 | +// #endregion |
| 10 | +// #region metadata |
7 | 11 | var funnelChartItemMetaData = {
|
8 | 12 | bindings: [{
|
9 | 13 | propertyName: 'measureValue',
|
@@ -41,7 +45,8 @@ var funnelChartItemMetaData = {
|
41 | 45 | icon: 'funnelChartItemIcon',
|
42 | 46 | title: 'Funnel Chart'
|
43 | 47 | };
|
44 |
| - |
| 48 | +// #endregion |
| 49 | +// #region viewer |
45 | 50 | class FunnelChartItemViewer extends CustomItemViewer {
|
46 | 51 | constructor(model, $container, options) {
|
47 | 52 | super(model, $container, options);
|
@@ -118,6 +123,8 @@ class FunnelChartItemViewer extends CustomItemViewer {
|
118 | 123 | }
|
119 | 124 | }
|
120 | 125 | }
|
| 126 | +// #endregion |
| 127 | +// #region createItem |
121 | 128 | class FunnelChartItem {
|
122 | 129 | constructor(dasardControl) {
|
123 | 130 | ResourceManager.registerIcon(svgIcon);
|
@@ -131,3 +138,4 @@ class FunnelChartItem {
|
131 | 138 | }
|
132 | 139 |
|
133 | 140 | export default FunnelChartItem;
|
| 141 | +// #endregion |
You can’t perform that action at this time.
0 commit comments