@delon/chart 17.0.5 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bar/bar.component.d.ts +3 -4
- package/bar/bar.module.d.ts +5 -5
- package/card/card.component.d.ts +5 -7
- package/card/card.module.d.ts +6 -6
- package/chart-echarts/echarts.component.d.ts +7 -9
- package/chart-echarts/echarts.module.d.ts +4 -4
- package/chart-echarts/echarts.service.d.ts +4 -5
- package/core/g2.base.component.d.ts +8 -9
- package/core/g2.servicce.d.ts +4 -5
- package/custom/custom.component.d.ts +3 -4
- package/custom/custom.module.d.ts +4 -4
- package/esm2022/bar/bar.component.mjs +15 -19
- package/esm2022/bar/bar.module.mjs +6 -7
- package/esm2022/card/card.component.mjs +20 -27
- package/esm2022/card/card.module.mjs +6 -7
- package/esm2022/chart-echarts/echarts.component.mjs +19 -17
- package/esm2022/chart-echarts/echarts.module.mjs +6 -7
- package/esm2022/chart-echarts/echarts.service.mjs +11 -11
- package/esm2022/core/g2.base.component.mjs +20 -24
- package/esm2022/core/g2.servicce.mjs +11 -11
- package/esm2022/core/utils.mjs +1 -1
- package/esm2022/custom/custom.component.mjs +14 -18
- package/esm2022/custom/custom.module.mjs +6 -7
- package/esm2022/gauge/gauge.component.mjs +14 -18
- package/esm2022/gauge/gauge.module.mjs +6 -7
- package/esm2022/mini-area/mini-area.component.mjs +17 -28
- package/esm2022/mini-area/mini-area.module.mjs +6 -7
- package/esm2022/mini-bar/mini-bar.component.mjs +11 -16
- package/esm2022/mini-bar/mini-bar.module.mjs +6 -7
- package/esm2022/mini-progress/mini-progress.component.mjs +20 -28
- package/esm2022/mini-progress/mini-progress.module.mjs +6 -7
- package/esm2022/number-info/number-info.component.mjs +10 -15
- package/esm2022/number-info/number-info.module.mjs +6 -7
- package/esm2022/pie/pie.component.mjs +26 -44
- package/esm2022/pie/pie.module.mjs +6 -7
- package/esm2022/radar/radar.component.mjs +16 -24
- package/esm2022/radar/radar.module.mjs +6 -7
- package/esm2022/single-bar/single-bar.component.mjs +19 -32
- package/esm2022/single-bar/single-bar.module.mjs +6 -7
- package/esm2022/tag-cloud/tag-cloud.component.mjs +16 -20
- package/esm2022/tag-cloud/tag-cloud.module.mjs +6 -7
- package/esm2022/timeline/timeline.component.mjs +19 -27
- package/esm2022/timeline/timeline.module.mjs +6 -7
- package/esm2022/trend/trend.component.mjs +14 -18
- package/esm2022/trend/trend.module.mjs +6 -7
- package/esm2022/water-wave/water-wave.component.mjs +27 -37
- package/esm2022/water-wave/water-wave.module.mjs +6 -7
- package/fesm2022/bar.mjs +19 -26
- package/fesm2022/bar.mjs.map +1 -1
- package/fesm2022/card.mjs +24 -35
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/chart-echarts.mjs +31 -31
- package/fesm2022/chart-echarts.mjs.map +1 -1
- package/fesm2022/core.mjs +27 -31
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/custom.mjs +18 -24
- package/fesm2022/custom.mjs.map +1 -1
- package/fesm2022/gauge.mjs +18 -24
- package/fesm2022/gauge.mjs.map +1 -1
- package/fesm2022/mini-area.mjs +21 -33
- package/fesm2022/mini-area.mjs.map +1 -1
- package/fesm2022/mini-bar.mjs +15 -21
- package/fesm2022/mini-bar.mjs.map +1 -1
- package/fesm2022/mini-progress.mjs +24 -36
- package/fesm2022/mini-progress.mjs.map +1 -1
- package/fesm2022/number-info.mjs +14 -22
- package/fesm2022/number-info.mjs.map +1 -1
- package/fesm2022/pie.mjs +30 -53
- package/fesm2022/pie.mjs.map +1 -1
- package/fesm2022/radar.mjs +20 -33
- package/fesm2022/radar.mjs.map +1 -1
- package/fesm2022/single-bar.mjs +23 -37
- package/fesm2022/single-bar.mjs.map +1 -1
- package/fesm2022/tag-cloud.mjs +20 -26
- package/fesm2022/tag-cloud.mjs.map +1 -1
- package/fesm2022/timeline.mjs +23 -34
- package/fesm2022/timeline.mjs.map +1 -1
- package/fesm2022/trend.mjs +18 -24
- package/fesm2022/trend.mjs.map +1 -1
- package/fesm2022/water-wave.mjs +31 -44
- package/fesm2022/water-wave.mjs.map +1 -1
- package/gauge/gauge.component.d.ts +3 -4
- package/gauge/gauge.module.d.ts +4 -4
- package/mini-area/mini-area.component.d.ts +6 -7
- package/mini-area/mini-area.module.d.ts +3 -3
- package/mini-bar/mini-bar.component.d.ts +3 -4
- package/mini-bar/mini-bar.module.d.ts +3 -3
- package/mini-progress/mini-progress.component.d.ts +7 -9
- package/mini-progress/mini-progress.module.d.ts +5 -5
- package/number-info/number-info.component.d.ts +2 -3
- package/number-info/number-info.module.d.ts +5 -5
- package/package.json +3 -3
- package/pie/pie.component.d.ts +9 -10
- package/pie/pie.module.d.ts +6 -6
- package/radar/radar.component.d.ts +4 -5
- package/radar/radar.module.d.ts +6 -6
- package/single-bar/single-bar.component.d.ts +7 -8
- package/single-bar/single-bar.module.d.ts +3 -3
- package/tag-cloud/tag-cloud.component.d.ts +3 -4
- package/tag-cloud/tag-cloud.module.d.ts +4 -4
- package/timeline/timeline.component.d.ts +5 -6
- package/timeline/timeline.module.d.ts +5 -5
- package/trend/trend.component.d.ts +3 -4
- package/trend/trend.module.d.ts +4 -4
- package/water-wave/water-wave.component.d.ts +11 -14
- package/water-wave/water-wave.module.d.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"water-wave.mjs","sources":["../../../../packages/chart/water-wave/water-wave.component.ts","../../../../packages/chart/water-wave/water-wave.component.html","../../../../packages/chart/water-wave/water-wave.module.ts","../../../../packages/chart/water-wave/water-wave.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { fromEvent, Subscription, debounceTime } from 'rxjs';\n\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\n\n@Component({\n selector: 'g2-water-wave',\n exportAs: 'g2WaterWave',\n templateUrl: './water-wave.component.html',\n host: { '[class.g2-water-wave]': 'true' },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class G2WaterWaveComponent implements OnDestroy, OnChanges, OnInit {\n static ngAcceptInputType_animate: BooleanInput;\n static ngAcceptInputType_delay: NumberInput;\n static ngAcceptInputType_height: NumberInput;\n static ngAcceptInputType_percent: NumberInput;\n\n private resize$: Subscription | null = null;\n @ViewChild('container', { static: true }) private node!: ElementRef;\n private timer!: number;\n\n // #region fields\n\n @Input() @InputBoolean() animate = true;\n @Input() @InputNumber() delay = 0;\n @Input() title?: string | TemplateRef<void> | null;\n @Input() color = '#1890FF';\n @Input() @InputNumber() height = 160;\n @Input() @InputNumber() percent?: number;\n\n // #endregion\n\n constructor(\n private el: ElementRef,\n private renderer: Renderer2,\n private ngZone: NgZone,\n private cdr: ChangeDetectorRef,\n private platform: Platform\n ) {}\n\n private renderChart(isUpdate: boolean): void {\n if (!this.resize$) return;\n\n this.updateRadio();\n\n const { percent, color, node, animate } = this;\n\n const data = Math.min(Math.max(percent! / 100, 0), 100);\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const self = this;\n cancelAnimationFrame(this.timer);\n\n const canvas = node.nativeElement as HTMLCanvasElement;\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n const canvasWidth = canvas.width;\n const canvasHeight = canvas.height;\n const radius = canvasWidth / 2;\n const lineWidth = 2;\n const cR = radius - lineWidth;\n\n ctx.beginPath();\n ctx.lineWidth = lineWidth * 2;\n\n const axisLength = canvasWidth - lineWidth;\n const unit = axisLength / 8;\n const xOffset = lineWidth;\n let sp = 0; // 周期偏移量\n const range = 0.2; // 振幅\n let currRange = range;\n let currData = 0;\n const waveupsp = animate ? 0.005 : 0.015; // 水波上涨速度\n\n let arcStack: [[number, number]?] | null = [];\n const bR = radius - lineWidth;\n const circleOffset = -(Math.PI / 2);\n let circleLock = true;\n\n for (let i = circleOffset; i < circleOffset + 2 * Math.PI; i += 1 / (8 * Math.PI)) {\n arcStack.push([radius + bR * Math.cos(i), radius + bR * Math.sin(i)]);\n }\n\n const cStartPoint = arcStack.shift() as [number, number];\n ctx.strokeStyle = color;\n ctx.moveTo(cStartPoint[0], cStartPoint[1]);\n\n function drawSin(): void {\n ctx.beginPath();\n ctx.save();\n\n const sinStack: [[number, number]?] = [];\n for (let i = xOffset; i <= xOffset + axisLength; i += 20 / axisLength) {\n const x = sp + (xOffset + i) / unit;\n const y = Math.sin(x) * currRange;\n const dx = i;\n const dy = 2 * cR * (1 - currData) + (radius - cR) - unit * y;\n\n ctx.lineTo(dx, dy);\n sinStack.push([dx, dy]);\n }\n\n const startPoint = sinStack.shift() as [number, number];\n\n ctx.lineTo(xOffset + axisLength, canvasHeight);\n ctx.lineTo(xOffset, canvasHeight);\n ctx.lineTo(startPoint[0], startPoint[1]);\n\n const gradient = ctx.createLinearGradient(0, 0, 0, canvasHeight);\n gradient.addColorStop(0, '#ffffff');\n gradient.addColorStop(1, color);\n ctx.fillStyle = gradient;\n ctx.fill();\n ctx.restore();\n }\n\n function render(): void {\n ctx.clearRect(0, 0, canvasWidth, canvasHeight);\n if (circleLock && !isUpdate) {\n if (arcStack!.length) {\n if (animate) {\n const temp = arcStack!.shift() as [number, number];\n ctx.lineTo(temp[0], temp[1]);\n ctx.stroke();\n } else {\n for (const temp of arcStack!) {\n ctx.lineTo(temp![0], temp![1]);\n ctx.stroke();\n }\n arcStack = [];\n }\n } else {\n circleLock = false;\n ctx.lineTo(cStartPoint[0], cStartPoint[1]);\n ctx.stroke();\n arcStack = null;\n\n ctx.globalCompositeOperation = 'destination-over';\n ctx.beginPath();\n ctx.lineWidth = lineWidth;\n ctx.arc(radius, radius, bR, 0, 2 * Math.PI, true);\n\n ctx.beginPath();\n ctx.save();\n ctx.arc(radius, radius, radius - 3 * lineWidth, 0, 2 * Math.PI, true);\n\n ctx.restore();\n ctx.clip();\n ctx.fillStyle = color;\n }\n } else {\n if (data >= 0.85) {\n if (currRange > range / 4) {\n const t = range * 0.01;\n currRange -= t;\n }\n } else if (data <= 0.1) {\n if (currRange < range * 1.5) {\n const t = range * 0.01;\n currRange += t;\n }\n } else {\n if (currRange <= range) {\n const t = range * 0.01;\n currRange += t;\n }\n if (currRange >= range) {\n const t = range * 0.01;\n currRange -= t;\n }\n }\n if (data - currData > 0) {\n currData += waveupsp;\n }\n if (data - currData < 0) {\n currData -= waveupsp;\n }\n\n sp += 0.07;\n drawSin();\n }\n self.timer = requestAnimationFrame(render);\n }\n\n render();\n // drawSin();\n }\n\n private updateRadio(): void {\n const { offsetWidth } = this.el.nativeElement.parentNode;\n const radio = offsetWidth < this.height ? offsetWidth / this.height : 1;\n this.renderer.setStyle(this.el.nativeElement, 'transform', `scale(${radio})`);\n }\n\n render(): void {\n this.renderChart(false);\n }\n\n private installResizeEvent(): void {\n this.resize$ = fromEvent(window, 'resize')\n .pipe(debounceTime(200))\n .subscribe(() => this.updateRadio());\n }\n\n ngOnInit(): void {\n if (!this.platform.isBrowser) {\n return;\n }\n this.installResizeEvent();\n this.ngZone.runOutsideAngular(() => setTimeout(() => this.render(), this.delay));\n }\n\n ngOnChanges(): void {\n this.ngZone.runOutsideAngular(() => this.renderChart(true));\n this.cdr.detectChanges();\n }\n\n ngOnDestroy(): void {\n if (this.timer) {\n cancelAnimationFrame(this.timer);\n }\n if (this.resize$) {\n this.resize$.unsubscribe();\n }\n }\n}\n","<div [ngStyle]=\"{ 'height.px': height, 'width.px': height, overflow: 'hidden' }\">\n <canvas #container class=\"g2-water-wave__canvas\" width=\"{{ height * 2 }}\" height=\"{{ height * 2 }}\"></canvas>\n</div>\n<div class=\"g2-water-wave__desc\" [ngStyle]=\"{ 'width.px': height }\">\n @if (title) {\n <span class=\"g2-water-wave__desc-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n }\n <h4 class=\"g2-water-wave__desc-percent\">{{ percent }}%</h4>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\nimport { G2WaterWaveComponent } from './water-wave.component';\n\nconst COMPONENTS = [G2WaterWaveComponent];\n\n@NgModule({\n imports: [CommonModule, NzOutletModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class G2WaterWaveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MA6Ba,oBAAoB,CAAA;;IAqB/B,WACU,CAAA,EAAc,EACd,QAAmB,EACnB,MAAc,EACd,GAAsB,EACtB,QAAkB,EAAA;QAJlB,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;QACd,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;QACnB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAG,CAAA,GAAA,GAAH,GAAG,CAAmB;QACtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QApBpB,IAAO,CAAA,OAAA,GAAwB,IAAI,CAAC;;QAMnB,IAAO,CAAA,OAAA,GAAG,IAAI,CAAC;QAChB,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;QAEzB,IAAK,CAAA,KAAA,GAAG,SAAS,CAAC;QACH,IAAM,CAAA,MAAA,GAAG,GAAG,CAAC;KAWjC;AAEI,IAAA,WAAW,CAAC,QAAiB,EAAA;QACnC,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO;QAE1B,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;AAE/C,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAQ,GAAG,GAAG,EAAE,C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,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAI3B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,CAAC;AACvC,oBAAA,YAAY,EAAE,UAAU;AACxB,oBAAA,OAAO,EAAE,UAAU;AACpB,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"water-wave.mjs","sources":["../../../../packages/chart/water-wave/water-wave.component.ts","../../../../packages/chart/water-wave/water-wave.component.html","../../../../packages/chart/water-wave/water-wave.module.ts","../../../../packages/chart/water-wave/water-wave.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\nimport { NgStyle } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n numberAttribute\n} from '@angular/core';\nimport { fromEvent, Subscription, debounceTime } from 'rxjs';\n\nimport { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet';\n\n@Component({\n selector: 'g2-water-wave',\n exportAs: 'g2WaterWave',\n templateUrl: './water-wave.component.html',\n host: { '[class.g2-water-wave]': 'true' },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [NgStyle, NzStringTemplateOutletDirective]\n})\nexport class G2WaterWaveComponent implements OnDestroy, OnChanges, OnInit {\n private readonly el: HTMLElement = inject(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly ngZone = inject(NgZone);\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly platform = inject(Platform);\n\n private resize$: Subscription | null = null;\n @ViewChild('container', { static: true }) private node!: ElementRef;\n private timer!: number;\n\n // #region fields\n\n @Input({ transform: booleanAttribute }) animate = true;\n @Input({ transform: numberAttribute }) delay = 0;\n @Input() title?: string | TemplateRef<void> | null;\n @Input() color = '#1890FF';\n @Input({ transform: numberAttribute }) height = 160;\n @Input({ transform: numberAttribute }) percent?: number;\n\n // #endregion\n\n private renderChart(isUpdate: boolean): void {\n if (!this.resize$) return;\n\n this.updateRadio();\n\n const { percent, color, node, animate } = this;\n\n const data = Math.min(Math.max(percent! / 100, 0), 100);\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const self = this;\n cancelAnimationFrame(this.timer);\n\n const canvas = node.nativeElement as HTMLCanvasElement;\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n const canvasWidth = canvas.width;\n const canvasHeight = canvas.height;\n const radius = canvasWidth / 2;\n const lineWidth = 2;\n const cR = radius - lineWidth;\n\n ctx.beginPath();\n ctx.lineWidth = lineWidth * 2;\n\n const axisLength = canvasWidth - lineWidth;\n const unit = axisLength / 8;\n const xOffset = lineWidth;\n let sp = 0; // 周期偏移量\n const range = 0.2; // 振幅\n let currRange = range;\n let currData = 0;\n const waveupsp = animate ? 0.005 : 0.015; // 水波上涨速度\n\n let arcStack: [[number, number]?] | null = [];\n const bR = radius - lineWidth;\n const circleOffset = -(Math.PI / 2);\n let circleLock = true;\n\n for (let i = circleOffset; i < circleOffset + 2 * Math.PI; i += 1 / (8 * Math.PI)) {\n arcStack.push([radius + bR * Math.cos(i), radius + bR * Math.sin(i)]);\n }\n\n const cStartPoint = arcStack.shift() as [number, number];\n ctx.strokeStyle = color;\n ctx.moveTo(cStartPoint[0], cStartPoint[1]);\n\n function drawSin(): void {\n ctx.beginPath();\n ctx.save();\n\n const sinStack: [[number, number]?] = [];\n for (let i = xOffset; i <= xOffset + axisLength; i += 20 / axisLength) {\n const x = sp + (xOffset + i) / unit;\n const y = Math.sin(x) * currRange;\n const dx = i;\n const dy = 2 * cR * (1 - currData) + (radius - cR) - unit * y;\n\n ctx.lineTo(dx, dy);\n sinStack.push([dx, dy]);\n }\n\n const startPoint = sinStack.shift() as [number, number];\n\n ctx.lineTo(xOffset + axisLength, canvasHeight);\n ctx.lineTo(xOffset, canvasHeight);\n ctx.lineTo(startPoint[0], startPoint[1]);\n\n const gradient = ctx.createLinearGradient(0, 0, 0, canvasHeight);\n gradient.addColorStop(0, '#ffffff');\n gradient.addColorStop(1, color);\n ctx.fillStyle = gradient;\n ctx.fill();\n ctx.restore();\n }\n\n function render(): void {\n ctx.clearRect(0, 0, canvasWidth, canvasHeight);\n if (circleLock && !isUpdate) {\n if (arcStack!.length) {\n if (animate) {\n const temp = arcStack!.shift() as [number, number];\n ctx.lineTo(temp[0], temp[1]);\n ctx.stroke();\n } else {\n for (const temp of arcStack!) {\n ctx.lineTo(temp![0], temp![1]);\n ctx.stroke();\n }\n arcStack = [];\n }\n } else {\n circleLock = false;\n ctx.lineTo(cStartPoint[0], cStartPoint[1]);\n ctx.stroke();\n arcStack = null;\n\n ctx.globalCompositeOperation = 'destination-over';\n ctx.beginPath();\n ctx.lineWidth = lineWidth;\n ctx.arc(radius, radius, bR, 0, 2 * Math.PI, true);\n\n ctx.beginPath();\n ctx.save();\n ctx.arc(radius, radius, radius - 3 * lineWidth, 0, 2 * Math.PI, true);\n\n ctx.restore();\n ctx.clip();\n ctx.fillStyle = color;\n }\n } else {\n if (data >= 0.85) {\n if (currRange > range / 4) {\n const t = range * 0.01;\n currRange -= t;\n }\n } else if (data <= 0.1) {\n if (currRange < range * 1.5) {\n const t = range * 0.01;\n currRange += t;\n }\n } else {\n if (currRange <= range) {\n const t = range * 0.01;\n currRange += t;\n }\n if (currRange >= range) {\n const t = range * 0.01;\n currRange -= t;\n }\n }\n if (data - currData > 0) {\n currData += waveupsp;\n }\n if (data - currData < 0) {\n currData -= waveupsp;\n }\n\n sp += 0.07;\n drawSin();\n }\n self.timer = requestAnimationFrame(render);\n }\n\n render();\n // drawSin();\n }\n\n private updateRadio(): void {\n const { offsetWidth } = this.el.parentNode! as HTMLElement;\n const radio = offsetWidth < this.height ? offsetWidth / this.height : 1;\n this.renderer.setStyle(this.el, 'transform', `scale(${radio})`);\n }\n\n render(): void {\n this.renderChart(false);\n }\n\n private installResizeEvent(): void {\n this.resize$ = fromEvent(window, 'resize')\n .pipe(debounceTime(200))\n .subscribe(() => this.updateRadio());\n }\n\n ngOnInit(): void {\n if (!this.platform.isBrowser) {\n return;\n }\n this.installResizeEvent();\n this.ngZone.runOutsideAngular(() => setTimeout(() => this.render(), this.delay));\n }\n\n ngOnChanges(): void {\n this.ngZone.runOutsideAngular(() => this.renderChart(true));\n this.cdr.detectChanges();\n }\n\n ngOnDestroy(): void {\n if (this.timer) {\n cancelAnimationFrame(this.timer);\n }\n if (this.resize$) {\n this.resize$.unsubscribe();\n }\n }\n}\n","<div [ngStyle]=\"{ 'height.px': height, 'width.px': height, overflow: 'hidden' }\">\n <canvas #container class=\"g2-water-wave__canvas\" width=\"{{ height * 2 }}\" height=\"{{ height * 2 }}\"></canvas>\n</div>\n<div class=\"g2-water-wave__desc\" [ngStyle]=\"{ 'width.px': height }\">\n @if (title) {\n <span class=\"g2-water-wave__desc-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n }\n <h4 class=\"g2-water-wave__desc-percent\">{{ percent }}%</h4>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\nimport { G2WaterWaveComponent } from './water-wave.component';\n\nconst COMPONENTS = [G2WaterWaveComponent];\n\n@NgModule({\n imports: [CommonModule, NzOutletModule, ...COMPONENTS],\n exports: COMPONENTS\n})\nexport class G2WaterWaveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAmCa,oBAAoB,CAAA;AAXjC,IAAA,WAAA,GAAA;AAYmB,QAAA,IAAA,CAAA,EAAE,GAAgB,MAAM,CAAC,UAAU,CAAC,CA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AE,eAAe,EAAE,CAAA;gBAC5B,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACiC,MAAM,EAAA,CAAA;sBAA5C,KAAK;uBAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAA;gBACE,OAAO,EAAA,CAAA;sBAA7C,KAAK;uBAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAA;;;AE9CvC,MAAM,UAAU,GAAG,CAAC,oBAAoB,CAAC,CAAC;MAM7B,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHlB,YAAY,EAAE,cAAc,EAHpB,oBAAoB,aAApB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAM3B,iBAAiB,EAAA,OAAA,EAAA,CAHlB,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAG3B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC;AACtD,oBAAA,OAAO,EAAE,UAAU;AACpB,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { G2BaseComponent } from '@delon/chart/core';
|
|
2
|
-
import { NumberInput } from '@delon/util/decorator';
|
|
3
2
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class G2GaugeComponent extends G2BaseComponent {
|
|
6
|
-
static ngAcceptInputType_height: NumberInput;
|
|
7
|
-
static ngAcceptInputType_percent: NumberInput;
|
|
8
5
|
title?: string;
|
|
9
6
|
height?: number;
|
|
10
7
|
color: string;
|
|
@@ -15,5 +12,7 @@ export declare class G2GaugeComponent extends G2BaseComponent {
|
|
|
15
12
|
install(): void;
|
|
16
13
|
changeData(): void;
|
|
17
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2GaugeComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2GaugeComponent, "g2-gauge", ["g2Gauge"], { "title": { "alias": "title"; "required": false; }; "height": { "alias": "height"; "required": false; }; "color": { "alias": "color"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "format": { "alias": "format"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; }, {}, never, never,
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2GaugeComponent, "g2-gauge", ["g2Gauge"], { "title": { "alias": "title"; "required": false; }; "height": { "alias": "height"; "required": false; }; "color": { "alias": "color"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "format": { "alias": "format"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
static ngAcceptInputType_height: unknown;
|
|
17
|
+
static ngAcceptInputType_percent: unknown;
|
|
19
18
|
}
|
package/gauge/gauge.module.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "ng-zorro-antd/skeleton";
|
|
4
|
+
import * as i3 from "./gauge.component";
|
|
5
5
|
export declare class G2GaugeModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2GaugeModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2GaugeModule, [typeof i1.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2GaugeModule, never, [typeof i1.CommonModule, typeof i2.NzSkeletonModule, typeof i3.G2GaugeComponent], [typeof i3.G2GaugeComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2GaugeModule>;
|
|
9
9
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import type { Event } from '@antv/g2';
|
|
3
3
|
import { G2BaseComponent } from '@delon/chart/core';
|
|
4
|
-
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface G2MiniAreaData {
|
|
@@ -14,11 +13,6 @@ export interface G2MiniAreaClickItem {
|
|
|
14
13
|
ev: Event;
|
|
15
14
|
}
|
|
16
15
|
export declare class G2MiniAreaComponent extends G2BaseComponent {
|
|
17
|
-
static ngAcceptInputType_borderWidth: NumberInput;
|
|
18
|
-
static ngAcceptInputType_height: NumberInput;
|
|
19
|
-
static ngAcceptInputType_fit: BooleanInput;
|
|
20
|
-
static ngAcceptInputType_line: BooleanInput;
|
|
21
|
-
static ngAcceptInputType_animate: BooleanInput;
|
|
22
16
|
color: string;
|
|
23
17
|
borderColor: string;
|
|
24
18
|
borderWidth: number;
|
|
@@ -36,5 +30,10 @@ export declare class G2MiniAreaComponent extends G2BaseComponent {
|
|
|
36
30
|
install(): void;
|
|
37
31
|
changeData(): void;
|
|
38
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2MiniAreaComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2MiniAreaComponent, "g2-mini-area", ["g2MiniArea"], { "color": { "alias": "color"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "height": { "alias": "height"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; "line": { "alias": "line"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "xAxis": { "alias": "xAxis"; "required": false; }; "yAxis": { "alias": "yAxis"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "data": { "alias": "data"; "required": false; }; "yTooltipSuffix": { "alias": "yTooltipSuffix"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never,
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2MiniAreaComponent, "g2-mini-area", ["g2MiniArea"], { "color": { "alias": "color"; "required": false; }; "borderColor": { "alias": "borderColor"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "height": { "alias": "height"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; "line": { "alias": "line"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "xAxis": { "alias": "xAxis"; "required": false; }; "yAxis": { "alias": "yAxis"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "data": { "alias": "data"; "required": false; }; "yTooltipSuffix": { "alias": "yTooltipSuffix"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never, true, never>;
|
|
34
|
+
static ngAcceptInputType_borderWidth: unknown;
|
|
35
|
+
static ngAcceptInputType_height: unknown;
|
|
36
|
+
static ngAcceptInputType_fit: unknown;
|
|
37
|
+
static ngAcceptInputType_line: unknown;
|
|
38
|
+
static ngAcceptInputType_animate: unknown;
|
|
40
39
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./mini-area.component";
|
|
4
4
|
export declare class G2MiniAreaModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2MiniAreaModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2MiniAreaModule, [typeof i1.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2MiniAreaModule, never, [typeof i1.CommonModule, typeof i2.G2MiniAreaComponent], [typeof i2.G2MiniAreaComponent]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2MiniAreaModule>;
|
|
8
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import type { Event } from '@antv/g2';
|
|
3
3
|
import { G2BaseComponent } from '@delon/chart/core';
|
|
4
|
-
import { NumberInput } from '@delon/util/decorator';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface G2MiniBarData {
|
|
@@ -15,8 +14,6 @@ export interface G2MiniBarClickItem {
|
|
|
15
14
|
ev: Event;
|
|
16
15
|
}
|
|
17
16
|
export declare class G2MiniBarComponent extends G2BaseComponent {
|
|
18
|
-
static ngAcceptInputType_height: NumberInput;
|
|
19
|
-
static ngAcceptInputType_borderWidth: NumberInput;
|
|
20
17
|
color: string;
|
|
21
18
|
height: number;
|
|
22
19
|
borderWidth: number;
|
|
@@ -28,5 +25,7 @@ export declare class G2MiniBarComponent extends G2BaseComponent {
|
|
|
28
25
|
install(): void;
|
|
29
26
|
changeData(): void;
|
|
30
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2MiniBarComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2MiniBarComponent, "g2-mini-bar", ["g2MiniBar"], { "color": { "alias": "color"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "data": { "alias": "data"; "required": false; }; "yTooltipSuffix": { "alias": "yTooltipSuffix"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never,
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2MiniBarComponent, "g2-mini-bar", ["g2MiniBar"], { "color": { "alias": "color"; "required": false; }; "height": { "alias": "height"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "data": { "alias": "data"; "required": false; }; "yTooltipSuffix": { "alias": "yTooltipSuffix"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never, true, never>;
|
|
29
|
+
static ngAcceptInputType_height: unknown;
|
|
30
|
+
static ngAcceptInputType_borderWidth: unknown;
|
|
32
31
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./mini-bar.component";
|
|
4
4
|
export declare class G2MiniBarModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2MiniBarModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2MiniBarModule, [typeof i1.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2MiniBarModule, never, [typeof i1.CommonModule, typeof i2.G2MiniBarComponent], [typeof i2.G2MiniBarComponent]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2MiniBarModule>;
|
|
8
8
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { DelonLocaleService } from '@delon/theme';
|
|
3
|
-
import { NumberInput } from '@delon/util/decorator';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class G2MiniProgressComponent implements OnChanges {
|
|
6
|
-
i18n: DelonLocaleService;
|
|
7
|
-
private cdr;
|
|
8
|
-
static ngAcceptInputType_target: NumberInput;
|
|
9
|
-
static ngAcceptInputType_percent: NumberInput;
|
|
10
|
-
static ngAcceptInputType_strokeWidth: NumberInput;
|
|
5
|
+
readonly i18n: DelonLocaleService;
|
|
6
|
+
private readonly cdr;
|
|
11
7
|
color: string;
|
|
12
8
|
target?: number | null;
|
|
13
9
|
percent?: number | null;
|
|
14
10
|
strokeWidth?: number | null;
|
|
15
|
-
constructor(i18n: DelonLocaleService, cdr: ChangeDetectorRef);
|
|
16
11
|
private fixNum;
|
|
17
12
|
ngOnChanges(): void;
|
|
18
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2MiniProgressComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2MiniProgressComponent, "g2-mini-progress", ["g2MiniProgress"], { "color": { "alias": "color"; "required": false; }; "target": { "alias": "target"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2MiniProgressComponent, "g2-mini-progress", ["g2MiniProgress"], { "color": { "alias": "color"; "required": false; }; "target": { "alias": "target"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
static ngAcceptInputType_target: unknown;
|
|
16
|
+
static ngAcceptInputType_percent: unknown;
|
|
17
|
+
static ngAcceptInputType_strokeWidth: unknown;
|
|
20
18
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "@
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@delon/theme";
|
|
4
|
+
import * as i3 from "ng-zorro-antd/tooltip";
|
|
5
|
+
import * as i4 from "./mini-progress.component";
|
|
6
6
|
export declare class G2MiniProgressModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2MiniProgressModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2MiniProgressModule, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2MiniProgressModule, never, [typeof i1.CommonModule, typeof i2.DelonLocaleModule, typeof i3.NzToolTipModule, typeof i4.G2MiniProgressComponent], [typeof i4.G2MiniProgressComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2MiniProgressModule>;
|
|
10
10
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { NumberInput } from '@delon/util/decorator';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class NumberInfoComponent {
|
|
5
|
-
static ngAcceptInputType_gap: NumberInput;
|
|
6
4
|
/** 标题 */
|
|
7
5
|
title?: string | TemplateRef<void> | null;
|
|
8
6
|
/** 子标题 */
|
|
@@ -20,5 +18,6 @@ export declare class NumberInfoComponent {
|
|
|
20
18
|
/** 设置数字和描述直接的间距(像素) */
|
|
21
19
|
gap: number;
|
|
22
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInfoComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInfoComponent, "number-info", ["numberInfo"], { "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "total": { "alias": "total"; "required": false; }; "subTotal": { "alias": "subTotal"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "status": { "alias": "status"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; }, {}, never, never,
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInfoComponent, "number-info", ["numberInfo"], { "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "total": { "alias": "total"; "required": false; }; "subTotal": { "alias": "subTotal"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "status": { "alias": "status"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
+
static ngAcceptInputType_gap: unknown;
|
|
24
23
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "ng-zorro-antd/
|
|
5
|
-
import * as i4 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "ng-zorro-antd/icon";
|
|
4
|
+
import * as i3 from "ng-zorro-antd/core/outlet";
|
|
5
|
+
import * as i4 from "./number-info.component";
|
|
6
6
|
export declare class NumberInfoModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInfoModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NumberInfoModule, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NumberInfoModule, never, [typeof i1.CommonModule, typeof i2.NzIconModule, typeof i3.NzOutletModule, typeof i4.NumberInfoComponent], [typeof i4.NumberInfoComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<NumberInfoModule>;
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/chart",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.2.0",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@antv/data-set": "^0.11.8",
|
|
29
29
|
"@antv/g2": "^4.2.10",
|
|
30
30
|
"echarts": "^5.4.3",
|
|
31
|
-
"@delon/util": "^17.0
|
|
32
|
-
"@delon/theme": "^17.0
|
|
31
|
+
"@delon/util": "^17.2.0",
|
|
32
|
+
"@delon/theme": "^17.2.0",
|
|
33
33
|
"tslib": "^2.3.0"
|
|
34
34
|
},
|
|
35
35
|
"module": "fesm2022/chart.mjs",
|
package/pie/pie.component.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import type { Event } from '@antv/g2';
|
|
3
3
|
import { G2BaseComponent, G2InteractionType } from '@delon/chart/core';
|
|
4
|
-
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface G2PieData {
|
|
@@ -24,14 +23,6 @@ export interface G2PieRatio {
|
|
|
24
23
|
inverseColor: string;
|
|
25
24
|
}
|
|
26
25
|
export declare class G2PieComponent extends G2BaseComponent {
|
|
27
|
-
static ngAcceptInputType_height: NumberInput;
|
|
28
|
-
static ngAcceptInputType_animate: BooleanInput;
|
|
29
|
-
static ngAcceptInputType_hasLegend: BooleanInput;
|
|
30
|
-
static ngAcceptInputType_percent: NumberInput;
|
|
31
|
-
static ngAcceptInputType_tooltip: BooleanInput;
|
|
32
|
-
static ngAcceptInputType_lineWidth: NumberInput;
|
|
33
|
-
static ngAcceptInputType_blockMaxWidth: NumberInput;
|
|
34
|
-
static ngAcceptInputType_select: BooleanInput;
|
|
35
26
|
private percentColor;
|
|
36
27
|
legendData: NzSafeAny[];
|
|
37
28
|
isPercent: boolean;
|
|
@@ -63,5 +54,13 @@ export declare class G2PieComponent extends G2BaseComponent {
|
|
|
63
54
|
_click(i: number): void;
|
|
64
55
|
onChanges(): void;
|
|
65
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2PieComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2PieComponent, "g2-pie", ["g2Pie"], { "animate": { "alias": "animate"; "required": false; }; "color": { "alias": "color"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "total": { "alias": "total"; "required": false; }; "height": { "alias": "height"; "required": false; }; "hasLegend": { "alias": "hasLegend"; "required": false; }; "inner": { "alias": "inner"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "blockMaxWidth": { "alias": "blockMaxWidth"; "required": false; }; "select": { "alias": "select"; "required": false; }; "valueFormat": { "alias": "valueFormat"; "required": false; }; "data": { "alias": "data"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "interaction": { "alias": "interaction"; "required": false; }; "ratio": { "alias": "ratio"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never,
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2PieComponent, "g2-pie", ["g2Pie"], { "animate": { "alias": "animate"; "required": false; }; "color": { "alias": "color"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "total": { "alias": "total"; "required": false; }; "height": { "alias": "height"; "required": false; }; "hasLegend": { "alias": "hasLegend"; "required": false; }; "inner": { "alias": "inner"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "lineWidth": { "alias": "lineWidth"; "required": false; }; "blockMaxWidth": { "alias": "blockMaxWidth"; "required": false; }; "select": { "alias": "select"; "required": false; }; "valueFormat": { "alias": "valueFormat"; "required": false; }; "data": { "alias": "data"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "interaction": { "alias": "interaction"; "required": false; }; "ratio": { "alias": "ratio"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never, true, never>;
|
|
58
|
+
static ngAcceptInputType_animate: unknown;
|
|
59
|
+
static ngAcceptInputType_height: unknown;
|
|
60
|
+
static ngAcceptInputType_hasLegend: unknown;
|
|
61
|
+
static ngAcceptInputType_percent: unknown;
|
|
62
|
+
static ngAcceptInputType_tooltip: unknown;
|
|
63
|
+
static ngAcceptInputType_lineWidth: unknown;
|
|
64
|
+
static ngAcceptInputType_blockMaxWidth: unknown;
|
|
65
|
+
static ngAcceptInputType_select: unknown;
|
|
67
66
|
}
|
package/pie/pie.module.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "ng-zorro-antd/
|
|
5
|
-
import * as i4 from "ng-zorro-antd/
|
|
6
|
-
import * as i5 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "ng-zorro-antd/divider";
|
|
4
|
+
import * as i3 from "ng-zorro-antd/core/outlet";
|
|
5
|
+
import * as i4 from "ng-zorro-antd/skeleton";
|
|
6
|
+
import * as i5 from "./pie.component";
|
|
7
7
|
export declare class G2PieModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2PieModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2PieModule, [typeof i1.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2PieModule, never, [typeof i1.CommonModule, typeof i2.NzDividerModule, typeof i3.NzOutletModule, typeof i4.NzSkeletonModule, typeof i5.G2PieComponent], [typeof i5.G2PieComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2PieModule>;
|
|
11
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import type { Event } from '@antv/g2';
|
|
3
3
|
import { G2BaseComponent } from '@delon/chart/core';
|
|
4
|
-
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface G2RadarData {
|
|
@@ -15,9 +14,6 @@ export interface G2RadarClickItem {
|
|
|
15
14
|
ev: Event;
|
|
16
15
|
}
|
|
17
16
|
export declare class G2RadarComponent extends G2BaseComponent {
|
|
18
|
-
static ngAcceptInputType_height: NumberInput;
|
|
19
|
-
static ngAcceptInputType_hasLegend: BooleanInput;
|
|
20
|
-
static ngAcceptInputType_tickCount: NumberInput;
|
|
21
17
|
legendData: NzSafeAny[];
|
|
22
18
|
title?: string | TemplateRef<void> | null;
|
|
23
19
|
height: number;
|
|
@@ -34,5 +30,8 @@ export declare class G2RadarComponent extends G2BaseComponent {
|
|
|
34
30
|
_click(i: number): void;
|
|
35
31
|
onChanges(): void;
|
|
36
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2RadarComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2RadarComponent, "g2-radar", ["g2Radar"], { "title": { "alias": "title"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "hasLegend": { "alias": "hasLegend"; "required": false; }; "tickCount": { "alias": "tickCount"; "required": false; }; "data": { "alias": "data"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never,
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2RadarComponent, "g2-radar", ["g2Radar"], { "title": { "alias": "title"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "hasLegend": { "alias": "hasLegend"; "required": false; }; "tickCount": { "alias": "tickCount"; "required": false; }; "data": { "alias": "data"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never, true, never>;
|
|
34
|
+
static ngAcceptInputType_height: unknown;
|
|
35
|
+
static ngAcceptInputType_hasLegend: unknown;
|
|
36
|
+
static ngAcceptInputType_tickCount: unknown;
|
|
38
37
|
}
|
package/radar/radar.module.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "ng-zorro-antd/
|
|
5
|
-
import * as i4 from "ng-zorro-antd/
|
|
6
|
-
import * as i5 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "ng-zorro-antd/grid";
|
|
4
|
+
import * as i3 from "ng-zorro-antd/core/outlet";
|
|
5
|
+
import * as i4 from "ng-zorro-antd/skeleton";
|
|
6
|
+
import * as i5 from "./radar.component";
|
|
7
7
|
export declare class G2RadarModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2RadarModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2RadarModule, [typeof i1.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2RadarModule, never, [typeof i1.CommonModule, typeof i2.NzGridModule, typeof i3.NzOutletModule, typeof i4.NzSkeletonModule, typeof i5.G2RadarComponent], [typeof i5.G2RadarComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2RadarModule>;
|
|
11
11
|
}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { SimpleChanges } from '@angular/core';
|
|
2
2
|
import { G2BaseComponent } from '@delon/chart/core';
|
|
3
|
-
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
4
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class G2SingleBarComponent extends G2BaseComponent {
|
|
7
|
-
static ngAcceptInputType_height: NumberInput;
|
|
8
|
-
static ngAcceptInputType_barSize: NumberInput;
|
|
9
|
-
static ngAcceptInputType_min: NumberInput;
|
|
10
|
-
static ngAcceptInputType_max: NumberInput;
|
|
11
|
-
static ngAcceptInputType_value: NumberInput;
|
|
12
|
-
static ngAcceptInputType_line: BooleanInput;
|
|
13
6
|
plusColor: string;
|
|
14
7
|
minusColor: string;
|
|
15
8
|
height: number;
|
|
@@ -27,5 +20,11 @@ export declare class G2SingleBarComponent extends G2BaseComponent {
|
|
|
27
20
|
onlyChangeData: (changes: SimpleChanges) => boolean;
|
|
28
21
|
changeData(): void;
|
|
29
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2SingleBarComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2SingleBarComponent, "g2-single-bar", ["g2SingleBar"], { "plusColor": { "alias": "plusColor"; "required": false; }; "minusColor": { "alias": "minusColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "barSize": { "alias": "barSize"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "line": { "alias": "line"; "required": false; }; "format": { "alias": "format"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "textStyle": { "alias": "textStyle"; "required": false; }; }, {}, never, never,
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2SingleBarComponent, "g2-single-bar", ["g2SingleBar"], { "plusColor": { "alias": "plusColor"; "required": false; }; "minusColor": { "alias": "minusColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "barSize": { "alias": "barSize"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "line": { "alias": "line"; "required": false; }; "format": { "alias": "format"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "textStyle": { "alias": "textStyle"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
static ngAcceptInputType_height: unknown;
|
|
25
|
+
static ngAcceptInputType_barSize: unknown;
|
|
26
|
+
static ngAcceptInputType_min: unknown;
|
|
27
|
+
static ngAcceptInputType_max: unknown;
|
|
28
|
+
static ngAcceptInputType_value: unknown;
|
|
29
|
+
static ngAcceptInputType_line: unknown;
|
|
31
30
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./single-bar.component";
|
|
4
4
|
export declare class G2SingleBarModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2SingleBarModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2SingleBarModule, [typeof i1.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2SingleBarModule, never, [typeof i1.CommonModule, typeof i2.G2SingleBarComponent], [typeof i2.G2SingleBarComponent]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2SingleBarModule>;
|
|
8
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import type { Event } from '@antv/g2';
|
|
3
3
|
import { G2BaseComponent } from '@delon/chart/core';
|
|
4
|
-
import { NumberInput } from '@delon/util/decorator';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface G2TagCloudData {
|
|
@@ -14,8 +13,6 @@ export interface G2TagCloudClickItem {
|
|
|
14
13
|
ev: Event;
|
|
15
14
|
}
|
|
16
15
|
export declare class G2TagCloudComponent extends G2BaseComponent {
|
|
17
|
-
static ngAcceptInputType_height: NumberInput;
|
|
18
|
-
static ngAcceptInputType_width: NumberInput;
|
|
19
16
|
width: number;
|
|
20
17
|
height: number;
|
|
21
18
|
padding: number | number[] | 'auto';
|
|
@@ -27,5 +24,7 @@ export declare class G2TagCloudComponent extends G2BaseComponent {
|
|
|
27
24
|
private installResizeEvent;
|
|
28
25
|
onInit(): void;
|
|
29
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2TagCloudComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2TagCloudComponent, "g2-tag-cloud", ["g2TagCloud"], { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never,
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2TagCloudComponent, "g2-tag-cloud", ["g2TagCloud"], { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never, true, never>;
|
|
28
|
+
static ngAcceptInputType_width: unknown;
|
|
29
|
+
static ngAcceptInputType_height: unknown;
|
|
31
30
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "ng-zorro-antd/skeleton";
|
|
4
|
+
import * as i3 from "./tag-cloud.component";
|
|
5
5
|
export declare class G2TagCloudModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2TagCloudModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2TagCloudModule, [typeof i1.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2TagCloudModule, never, [typeof i1.CommonModule, typeof i2.NzSkeletonModule, typeof i3.G2TagCloudComponent], [typeof i3.G2TagCloudComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2TagCloudModule>;
|
|
9
9
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import type { Event } from '@antv/g2';
|
|
3
3
|
import { G2BaseComponent, G2Time } from '@delon/chart/core';
|
|
4
|
-
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
@@ -44,10 +43,6 @@ export interface G2TimelineClickItem {
|
|
|
44
43
|
ev: Event;
|
|
45
44
|
}
|
|
46
45
|
export declare class G2TimelineComponent extends G2BaseComponent {
|
|
47
|
-
static ngAcceptInputType_height: NumberInput;
|
|
48
|
-
static ngAcceptInputType_maxAxis: NumberInput;
|
|
49
|
-
static ngAcceptInputType_borderWidth: NumberInput;
|
|
50
|
-
static ngAcceptInputType_slider: BooleanInput;
|
|
51
46
|
title?: string | TemplateRef<void> | null;
|
|
52
47
|
maxAxis: number;
|
|
53
48
|
data: G2TimelineData[];
|
|
@@ -65,5 +60,9 @@ export declare class G2TimelineComponent extends G2BaseComponent {
|
|
|
65
60
|
install(): void;
|
|
66
61
|
changeData(): void;
|
|
67
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2TimelineComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<G2TimelineComponent, "g2-timeline", ["g2Timeline"], { "title": { "alias": "title"; "required": false; }; "maxAxis": { "alias": "maxAxis"; "required": false; }; "data": { "alias": "data"; "required": false; }; "titleMap": { "alias": "titleMap"; "required": false; }; "colorMap": { "alias": "colorMap"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "maskSlider": { "alias": "maskSlider"; "required": false; }; "position": { "alias": "position"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never,
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<G2TimelineComponent, "g2-timeline", ["g2Timeline"], { "title": { "alias": "title"; "required": false; }; "maxAxis": { "alias": "maxAxis"; "required": false; }; "data": { "alias": "data"; "required": false; }; "titleMap": { "alias": "titleMap"; "required": false; }; "colorMap": { "alias": "colorMap"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "maskSlider": { "alias": "maskSlider"; "required": false; }; "position": { "alias": "position"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "borderWidth": { "alias": "borderWidth"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; }, { "clickItem": "clickItem"; }, never, never, true, never>;
|
|
64
|
+
static ngAcceptInputType_maxAxis: unknown;
|
|
65
|
+
static ngAcceptInputType_height: unknown;
|
|
66
|
+
static ngAcceptInputType_borderWidth: unknown;
|
|
67
|
+
static ngAcceptInputType_slider: unknown;
|
|
69
68
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "ng-zorro-antd/
|
|
5
|
-
import * as i4 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "ng-zorro-antd/core/outlet";
|
|
4
|
+
import * as i3 from "ng-zorro-antd/skeleton";
|
|
5
|
+
import * as i4 from "./timeline.component";
|
|
6
6
|
export declare class G2TimelineModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<G2TimelineModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<G2TimelineModule, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<G2TimelineModule, never, [typeof i1.CommonModule, typeof i2.NzOutletModule, typeof i3.NzSkeletonModule, typeof i4.G2TimelineComponent], [typeof i4.G2TimelineComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<G2TimelineModule>;
|
|
10
10
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { BooleanInput } from '@delon/util/decorator';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class TrendComponent {
|
|
4
|
-
static ngAcceptInputType_colorful: BooleanInput;
|
|
5
|
-
static ngAcceptInputType_reverseColor: BooleanInput;
|
|
6
3
|
/** 上升下降标识 */
|
|
7
4
|
flag?: 'up' | 'down';
|
|
8
5
|
/** 是否彩色标记 */
|
|
@@ -10,5 +7,7 @@ export declare class TrendComponent {
|
|
|
10
7
|
/** 颜色反转 */
|
|
11
8
|
reverseColor: boolean;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TrendComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TrendComponent, "trend", ["trend"], { "flag": { "alias": "flag"; "required": false; }; "colorful": { "alias": "colorful"; "required": false; }; "reverseColor": { "alias": "reverseColor"; "required": false; }; }, {}, never, ["*"],
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TrendComponent, "trend", ["trend"], { "flag": { "alias": "flag"; "required": false; }; "colorful": { "alias": "colorful"; "required": false; }; "reverseColor": { "alias": "reverseColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
11
|
+
static ngAcceptInputType_colorful: unknown;
|
|
12
|
+
static ngAcceptInputType_reverseColor: unknown;
|
|
14
13
|
}
|