igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
127 lines (126 loc) • 4.78 kB
JavaScript
import { TreemapNodeStyleMappingTargetType_$type } from "./TreemapNodeStyleMappingTargetType";
import { TreemapValueMappingMode_$type } from "./TreemapValueMappingMode";
import { IgcTreemapNodeStyleComponent } from "./igc-treemap-node-style-component";
import { TreemapNodeStyleMapping } from "./TreemapNodeStyleMapping";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a style to apply to a set of nodes in the treemap.
*/
export let IgcTreemapNodeStyleMappingComponent = /*@__PURE__*/ (() => {
class IgcTreemapNodeStyleMappingComponent extends IgcTreemapNodeStyleComponent {
createImplementation() {
return new TreemapNodeStyleMapping();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
connectedCallback() {
if (super["connectedCallback"]) {
super["connectedCallback"]();
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
}
disconnectedCallback() {
if (super["disconnectedCallback"]) {
super["disconnectedCallback"]();
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
}
static get observedAttributes() {
if (IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent == null) {
let names = getAllPropertyNames(IgcTreemapNodeStyleMappingComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent = names;
}
return IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent;
}
static register() {
if (!IgcTreemapNodeStyleMappingComponent._isElementRegistered) {
IgcTreemapNodeStyleMappingComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcTreemapNodeStyleMappingComponent.htmlTagName, IgcTreemapNodeStyleMappingComponent);
}
}
/**
* 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);
this._a("targetType", enumToString(TreemapNodeStyleMappingTargetType_$type, this.i.bo));
}
/**
* 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;
this._a("minimumValue", this.i.bu);
}
/**
* Gets or sets the maximum value to which the mapping applies.
*/
get maximumValue() {
return this.i.bt;
}
set maximumValue(v) {
this.i.bt = +v;
this._a("maximumValue", this.i.bt);
}
/**
* 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);
this._a("mappingMode", enumToString(TreemapValueMappingMode_$type, this.i.bq));
}
}
IgcTreemapNodeStyleMappingComponent._observedAttributesIgcTreemapNodeStyleMappingComponent = null;
IgcTreemapNodeStyleMappingComponent.htmlTagName = "igc-treemap-node-style-mapping";
IgcTreemapNodeStyleMappingComponent._isElementRegistered = false;
return IgcTreemapNodeStyleMappingComponent;
})();