invensys-ng 21.3.4 → 21.3.6
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/fesm2022/invensys-ng.mjs +57 -32
- package/fesm2022/invensys-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/invensys-ng.d.ts +27 -0
package/package.json
CHANGED
package/types/invensys-ng.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Observable, Subscription } from 'rxjs';
|
|
|
7
7
|
import { Router } from '@angular/router';
|
|
8
8
|
import { IPosition } from '@shared/enums/IPosition';
|
|
9
9
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
10
|
+
import { LegendItem } from 'chart.js';
|
|
10
11
|
import { Meta, Title } from '@angular/platform-browser';
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -5177,6 +5178,10 @@ interface IChartDisplay {
|
|
|
5177
5178
|
* ];
|
|
5178
5179
|
* ```
|
|
5179
5180
|
*/
|
|
5181
|
+
interface IChartLegendItem extends LegendItem {
|
|
5182
|
+
fillStyleText: string;
|
|
5183
|
+
strokeStyleText: string;
|
|
5184
|
+
}
|
|
5180
5185
|
declare class IChart implements AfterViewInit, OnDestroy, OnChanges {
|
|
5181
5186
|
/**
|
|
5182
5187
|
* Array of chart data objects to render
|
|
@@ -5207,6 +5212,11 @@ declare class IChart implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
5207
5212
|
* @internal
|
|
5208
5213
|
*/
|
|
5209
5214
|
private chartInstances;
|
|
5215
|
+
/**
|
|
5216
|
+
* Legend items generated from Chart.js for each chart instance.
|
|
5217
|
+
* @internal
|
|
5218
|
+
*/
|
|
5219
|
+
chartLegendItems: IChartLegendItem[][];
|
|
5210
5220
|
/**
|
|
5211
5221
|
* Flag to track if component has initialized
|
|
5212
5222
|
* @internal
|
|
@@ -5309,6 +5319,23 @@ declare class IChart implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
5309
5319
|
* @internal
|
|
5310
5320
|
*/
|
|
5311
5321
|
private addTransparency;
|
|
5322
|
+
/**
|
|
5323
|
+
* Get legend items for a chart display.
|
|
5324
|
+
* @param chartIndex - The index of the chart display
|
|
5325
|
+
* @returns Legend items generated by Chart.js
|
|
5326
|
+
*/
|
|
5327
|
+
getLegendItems(chartIndex: number): IChartLegendItem[];
|
|
5328
|
+
/**
|
|
5329
|
+
* Toggle a chart legend item using the same Chart.js behavior as the built-in legend.
|
|
5330
|
+
* @param chartIndex - The index of the chart display
|
|
5331
|
+
* @param item - The legend item to toggle
|
|
5332
|
+
*/
|
|
5333
|
+
toggleLegendItem(chartIndex: number, item: IChartLegendItem): void;
|
|
5334
|
+
/**
|
|
5335
|
+
* Refresh the custom legend items for a chart instance.
|
|
5336
|
+
* @internal
|
|
5337
|
+
*/
|
|
5338
|
+
private updateLegendItems;
|
|
5312
5339
|
/**
|
|
5313
5340
|
* Get the height style for a chart display
|
|
5314
5341
|
* @param display - The chart display configuration
|