igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
77 lines (76 loc) • 1.98 kB
JavaScript
import { TreemapNodeStyleMappingTargetType_$type } from "./TreemapNodeStyleMappingTargetType";
import { TreemapValueMappingMode_$type } from "./TreemapValueMappingMode";
import { IgrTreemapNodeStyle } from "./igr-treemap-node-style";
import { TreemapNodeStyleMapping } from "./TreemapNodeStyleMapping";
import { ensureEnum } from "igniteui-react-core";
/**
* Represents a style to apply to a set of nodes in the treemap.
*/
export class IgrTreemapNodeStyleMapping extends IgrTreemapNodeStyle {
createImplementation() {
return new TreemapNodeStyleMapping();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets or sets the unique name of the mapping.
*/
get targetType() {
return this.i.bo;
}
set targetType(v) {
this.i.bo = ensureEnum(TreemapNodeStyleMappingTargetType_$type, v);
}
/**
* Gets or sets the unique name of the mapping.
*/
get name() {
return this.i.b1;
}
set name(v) {
this.i.b1 = v;
}
/**
* Gets or sets the minimum value to which the mapping applies.
*/
get minimumValue() {
return this.i.bu;
}
set minimumValue(v) {
this.i.bu = +v;
}
/**
* Gets or sets the maximum value to which the mapping applies.
*/
get maximumValue() {
return this.i.bt;
}
set maximumValue(v) {
this.i.bt = +v;
}
/**
* Gets or sets the value to which the mapping applies.
*/
get value() {
return this.i.bw;
}
set value(v) {
this.i.bw = v;
}
/**
* Gets or sets the mapping mode to use to evaluate whether the mapping applies.
*/
get mappingMode() {
return this.i.bq;
}
set mappingMode(v) {
this.i.bq = ensureEnum(TreemapValueMappingMode_$type, v);
}
}