in src/barChart.ts [977:1100]
public enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): VisualObjectInstanceEnumeration {
let objectName = options.objectName;
let objectEnumeration: VisualObjectInstance[] = [];
switch (objectName) {
case "fontParams":
objectEnumeration.push({
objectName,
properties: {
fontSize: this.IBarChartSettings.fontParams.fontSize,
show: this.IBarChartSettings.fontParams.show,
},
selector: null,
});
break;
case "generalView":
objectEnumeration.push({
objectName,
properties: {
barsColor: this.IBarChartSettings.generalView.barsColor,
opacity: this.IBarChartSettings.generalView.opacity,
overlapColor: this.IBarChartSettings.generalView.overlapColor,
textColor: this.IBarChartSettings.generalView.textColor,
},
selector: null,
validValues: {
barHeight: {
numberRange: {
max: 200,
min: 20,
},
},
minHeight: {
numberRange: {
max: 2500,
min: 50,
},
},
opacity: {
numberRange: {
max: 100,
min: 10,
},
},
},
});
break;
case "showBarLabels":
objectEnumeration.push({
objectName,
properties: {
highlightColor: this.IBarChartSettings.showBarLabels.highlightColor,
show: this.IBarChartSettings.showBarLabels.show,
textColor: this.IBarChartSettings.showBarLabels.textColor,
},
selector: null,
});
break;
case "alignBarLabels":
objectEnumeration.push({
objectName,
properties: {
show: this.IBarChartSettings.alignBarLabels.show,
},
selector: null,
});
break;
case "barShape":
objectEnumeration.push({
objectName,
properties: {
headColor: this.IBarChartSettings.barShape.headColor,
labelPosition: this.IBarChartSettings.barShape.labelPosition,
shape: this.IBarChartSettings.barShape.shape,
},
selector: null,
});
break;
case "barHeight":
objectEnumeration.push({
objectName,
properties: {
height: this.IBarChartSettings.barHeight.height,
show: this.IBarChartSettings.barHeight.show,
},
selector: null,
validValues: {
height: {
numberRange: {
max: 200,
min: 20,
},
},
},
});
break;
case "experimental":
objectEnumeration.push({
objectName,
properties: {
blendMode: this.IBarChartSettings.experimental.blendMode,
show: this.IBarChartSettings.experimental.show,
},
selector: null,
});
break;
case "clearFilters":
objectEnumeration.push({
objectName,
properties: {
show: this.IBarChartSettings.clearFilters.show,
},
selector: null,
});
break;
default:
break;
}
return objectEnumeration;
}