File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
import { Dasard, CustomItem } from 'devexpress-dasard/model'
1+
// #region imports
2+
import { Dasard, CustomItem } from 'devexpress-dasard/model'
23
import { CustomItemViewer, ResourceManager } from 'devexpress-dasard/common'
34
import { FormItemTemplates } from 'devexpress-dasard/designer'
45
import dxFunnel from 'devextreme/viz/funnel'
5-
6+
// #endregion
7+
// #region svgIcon
68
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
711
var funnelChartItemMetaData = {
812
bindings: [{
913
propertyName: 'measureValue',
@@ -41,7 +45,8 @@ var funnelChartItemMetaData = {
4145
icon: 'funnelChartItemIcon',
4246
title: 'Funnel Chart'
4347
};
44-
48+
// #endregion
49+
// #region viewer
4550
class FunnelChartItemViewer extends CustomItemViewer {
4651
constructor(model, $container, options) {
4752
super(model, $container, options);
@@ -118,6 +123,8 @@ class FunnelChartItemViewer extends CustomItemViewer {
118123
}
119124
}
120125
}
126+
// #endregion
127+
// #region createItem
121128
class FunnelChartItem {
122129
constructor(dasardControl) {
123130
ResourceManager.registerIcon(svgIcon);
@@ -131,3 +138,4 @@ class FunnelChartItem {
131138
}
132139

133140
export default FunnelChartItem;
141+
// #endregion

0 commit comments

Comments
 (0)