@covalent/echarts
Version:
Teradata UI Platform Echarts Module
213 lines (208 loc) • 8.23 kB
JavaScript
import * as i0 from '@angular/core';
import { inject, forwardRef, ChangeDetectionStrategy, Component, Input, NgModule } from '@angular/core';
import { TdSeriesDirective, TdChartOptionsService } from '@covalent/echarts/base';
const _c0 = ["td-treemap", ""];
class TdChartSeriesTreemapComponent extends TdSeriesDirective {
config = {};
id;
name;
data;
zlevel;
z;
left;
top;
right;
bottom;
width;
height;
squareRatio;
leafDepth;
drillDownIcon;
roam;
nodeClick;
zoomToNodeRatio;
levels;
silent;
visualDimension;
visualMin;
visualMax;
colorAlpha;
colorSaturation;
colorMappingBy;
visibleMin;
childrenVisibleMin;
itemStyle;
label;
upperLabel;
breadcrumb;
emphasis;
tooltip;
constructor() {
const _optionsService = inject(TdChartOptionsService);
super('treemap', _optionsService);
}
getConfig() {
return {
zlevel: this.zlevel,
z: this.z,
left: this.left,
top: this.top,
right: this.right,
bottom: this.bottom,
width: this.width,
height: this.height,
squareRatio: this.squareRatio,
leafDepth: this.leafDepth,
drillDownIcon: this.drillDownIcon,
roam: this.roam,
nodeClick: this.nodeClick,
zoomToNodeRatio: this.zoomToNodeRatio,
levels: this.levels,
silent: this.silent,
visualDimension: this.visualDimension,
visualMin: this.visualMin,
visualMax: this.visualMax,
colorAlpha: this.colorAlpha,
colorSaturation: this.colorSaturation,
colorMappingBy: this.colorMappingBy,
visibleMin: this.visibleMin,
childrenVisibleMin: this.childrenVisibleMin,
itemStyle: this.itemStyle,
label: this.label,
upperLabel: this.upperLabel,
breadcrumb: this.breadcrumb,
emphasis: this.emphasis,
};
}
static ɵfac = function TdChartSeriesTreemapComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartSeriesTreemapComponent)(); };
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartSeriesTreemapComponent, selectors: [["td-chart-series", "td-treemap", ""]], inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", zlevel: "zlevel", z: "z", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height", squareRatio: "squareRatio", leafDepth: "leafDepth", drillDownIcon: "drillDownIcon", roam: "roam", nodeClick: "nodeClick", zoomToNodeRatio: "zoomToNodeRatio", levels: "levels", silent: "silent", visualDimension: "visualDimension", visualMin: "visualMin", visualMax: "visualMax", colorAlpha: "colorAlpha", colorSaturation: "colorSaturation", colorMappingBy: "colorMappingBy", visibleMin: "visibleMin", childrenVisibleMin: "childrenVisibleMin", itemStyle: "itemStyle", label: "label", upperLabel: "upperLabel", breadcrumb: "breadcrumb", emphasis: "emphasis" }, features: [i0.ɵɵProvidersFeature([
{
provide: TdSeriesDirective,
useExisting: forwardRef(() => TdChartSeriesTreemapComponent),
},
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 0, vars: 0, template: function TdChartSeriesTreemapComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartSeriesTreemapComponent, [{
type: Component,
args: [{
selector: 'td-chart-series[td-treemap]',
template: '',
changeDetection: ChangeDetectionStrategy.OnPush,
inputs: [
'config',
'id',
'name',
'color',
'data',
'animation',
'animationThreshold',
'animationDuration',
'animationEasing',
'animationDelay',
'animationDurationUpdate',
'animationEasingUpdate',
'animationDelayUpdate',
'tooltip',
],
providers: [
{
provide: TdSeriesDirective,
useExisting: forwardRef(() => TdChartSeriesTreemapComponent),
},
],
}]
}], () => [], { config: [{
type: Input
}], id: [{
type: Input
}], name: [{
type: Input
}], data: [{
type: Input
}], zlevel: [{
type: Input
}], z: [{
type: Input
}], left: [{
type: Input
}], top: [{
type: Input
}], right: [{
type: Input
}], bottom: [{
type: Input
}], width: [{
type: Input
}], height: [{
type: Input
}], squareRatio: [{
type: Input
}], leafDepth: [{
type: Input
}], drillDownIcon: [{
type: Input
}], roam: [{
type: Input
}], nodeClick: [{
type: Input
}], zoomToNodeRatio: [{
type: Input
}], levels: [{
type: Input
}], silent: [{
type: Input
}], visualDimension: [{
type: Input
}], visualMin: [{
type: Input
}], visualMax: [{
type: Input
}], colorAlpha: [{
type: Input
}], colorSaturation: [{
type: Input
}], colorMappingBy: [{
type: Input
}], visibleMin: [{
type: Input
}], childrenVisibleMin: [{
type: Input
}], itemStyle: [{
type: Input
}], label: [{
type: Input
}], upperLabel: [{
type: Input
}], breadcrumb: [{
type: Input
}], emphasis: [{
type: Input
}], tooltip: [{
type: Input
}] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartSeriesTreemapComponent, { className: "TdChartSeriesTreemapComponent", filePath: "treemap.component.ts", lineNumber: 145 }); })();
const TREEMAP_MODULE_COMPONENTS = [
TdChartSeriesTreemapComponent,
];
/**
* @deprecated This module is deprecated and will be removed in future versions.
* Please migrate to using standalone components as soon as possible.
*/
class CovalentTreemapEchartsModule {
static ɵfac = function CovalentTreemapEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentTreemapEchartsModule)(); };
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentTreemapEchartsModule });
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentTreemapEchartsModule, [{
type: NgModule,
args: [{
imports: [TREEMAP_MODULE_COMPONENTS],
exports: [TREEMAP_MODULE_COMPONENTS],
}]
}], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentTreemapEchartsModule, { imports: [TdChartSeriesTreemapComponent], exports: [TdChartSeriesTreemapComponent] }); })();
/**
* Generated bundle index. Do not edit.
*/
export { CovalentTreemapEchartsModule, TREEMAP_MODULE_COMPONENTS, TdChartSeriesTreemapComponent };
//# sourceMappingURL=covalent-echarts-treemap.mjs.map