@covalent/echarts
Version:
Teradata UI Platform Echarts Module
170 lines (165 loc) • 6.81 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-sankey", ""];
class TdChartSeriesSankeyComponent extends TdSeriesDirective {
zlevel;
z;
left;
top;
right;
bottom;
width;
height;
nodeWidth;
nodeGap;
layoutIterations;
orient;
draggable;
focusNodeAdjacency;
label;
itemStyle;
lineStyle;
emphasis;
nodes;
links;
edges;
silent;
constructor() {
const _optionsService = inject(TdChartOptionsService);
super('sankey', _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,
nodeWidth: this.nodeWidth,
nodeGap: this.nodeGap,
layoutIterations: this.layoutIterations,
orient: this.orient,
draggable: this.draggable,
focusNodeAdjacency: this.focusNodeAdjacency,
label: this.label,
itemStyle: this.itemStyle,
lineStyle: this.lineStyle,
emphasis: this.emphasis,
nodes: this.nodes,
links: this.links,
edges: this.edges,
silent: this.silent,
};
}
static ɵfac = function TdChartSeriesSankeyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartSeriesSankeyComponent)(); };
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartSeriesSankeyComponent, selectors: [["td-chart-series", "td-sankey", ""]], 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", nodeWidth: "nodeWidth", nodeGap: "nodeGap", layoutIterations: "layoutIterations", orient: "orient", draggable: "draggable", focusNodeAdjacency: "focusNodeAdjacency", label: "label", itemStyle: "itemStyle", lineStyle: "lineStyle", emphasis: "emphasis", nodes: "nodes", links: "links", edges: "edges", silent: "silent" }, features: [i0.ɵɵProvidersFeature([
{
provide: TdSeriesDirective,
useExisting: forwardRef(() => TdChartSeriesSankeyComponent),
},
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 0, vars: 0, template: function TdChartSeriesSankeyComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartSeriesSankeyComponent, [{
type: Component,
args: [{
selector: 'td-chart-series[td-sankey]',
template: '',
changeDetection: ChangeDetectionStrategy.OnPush,
inputs: [
'config',
'id',
'name',
'color',
'data',
'animation',
'animationThreshold',
'animationDuration',
'animationEasing',
'animationDelay',
'animationDurationUpdate',
'animationEasingUpdate',
'animationDelayUpdate',
'tooltip',
],
providers: [
{
provide: TdSeriesDirective,
useExisting: forwardRef(() => TdChartSeriesSankeyComponent),
},
],
}]
}], () => [], { zlevel: [{
type: Input
}], z: [{
type: Input
}], left: [{
type: Input
}], top: [{
type: Input
}], right: [{
type: Input
}], bottom: [{
type: Input
}], width: [{
type: Input
}], height: [{
type: Input
}], nodeWidth: [{
type: Input
}], nodeGap: [{
type: Input
}], layoutIterations: [{
type: Input
}], orient: [{
type: Input
}], draggable: [{
type: Input
}], focusNodeAdjacency: [{
type: Input
}], label: [{
type: Input
}], itemStyle: [{
type: Input
}], lineStyle: [{
type: Input
}], emphasis: [{
type: Input
}], nodes: [{
type: Input
}], links: [{
type: Input
}], edges: [{
type: Input
}], silent: [{
type: Input
}] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartSeriesSankeyComponent, { className: "TdChartSeriesSankeyComponent", filePath: "sankey.component.ts", lineNumber: 92 }); })();
const SANKEY_MODULE_COMPONENTS = [
TdChartSeriesSankeyComponent,
];
/**
* @deprecated This module is deprecated and will be removed in future versions.
* Please migrate to using standalone components as soon as possible.
*/
class CovalentSankeyEchartsModule {
static ɵfac = function CovalentSankeyEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentSankeyEchartsModule)(); };
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentSankeyEchartsModule });
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSankeyEchartsModule, [{
type: NgModule,
args: [{
imports: [SANKEY_MODULE_COMPONENTS],
exports: [SANKEY_MODULE_COMPONENTS],
}]
}], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentSankeyEchartsModule, { imports: [TdChartSeriesSankeyComponent], exports: [TdChartSeriesSankeyComponent] }); })();
/**
* Generated bundle index. Do not edit.
*/
export { CovalentSankeyEchartsModule, SANKEY_MODULE_COMPONENTS, TdChartSeriesSankeyComponent };
//# sourceMappingURL=covalent-echarts-sankey.mjs.map