@tetacom/svg-charts 1.7.37 → 1.7.39
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/package.json
CHANGED
|
@@ -377,7 +377,6 @@ interface Series<T extends BasePoint> {
|
|
|
377
377
|
clipPointsDirection?: ClipPointsDirection;
|
|
378
378
|
draggablePath?: boolean;
|
|
379
379
|
pathDragType?: DragPointType;
|
|
380
|
-
selectedForPathDrag?: boolean;
|
|
381
380
|
}
|
|
382
381
|
|
|
383
382
|
declare enum ZoomType {
|
|
@@ -510,7 +509,7 @@ interface ISeriesOffsetItem {
|
|
|
510
509
|
offsetPx: ISeriesOffset;
|
|
511
510
|
offsetValue: ISeriesOffset;
|
|
512
511
|
}
|
|
513
|
-
interface
|
|
512
|
+
interface ISeriesMove {
|
|
514
513
|
series: Series<BasePoint>;
|
|
515
514
|
seriesList?: Series<BasePoint>[];
|
|
516
515
|
seriesIds?: Array<number | string>;
|
|
@@ -531,8 +530,9 @@ declare class ChartService {
|
|
|
531
530
|
plotBandClick: Observable<IChartEvent<PlotBand>>;
|
|
532
531
|
plotBandContextMenu: Observable<IChartEvent<PlotBand>>;
|
|
533
532
|
pointMove: Observable<IChartEvent<IPointMove>>;
|
|
534
|
-
|
|
533
|
+
seriesMove: Observable<IChartEvent<ISeriesMove>>;
|
|
535
534
|
seriesPathOffsets: Observable<Map<number | string, ISeriesOffset>>;
|
|
535
|
+
selectedSeriesIds: Observable<Array<number | string>>;
|
|
536
536
|
annotationMove: Observable<IChartEvent<Annotation>>;
|
|
537
537
|
annotationClick: Observable<IChartEvent<Annotation>>;
|
|
538
538
|
annotationContextMenu: Observable<IChartEvent<Annotation>>;
|
|
@@ -547,8 +547,9 @@ declare class ChartService {
|
|
|
547
547
|
private plotBandEvent$;
|
|
548
548
|
private plotLineMove$;
|
|
549
549
|
private pointMove$;
|
|
550
|
-
private
|
|
550
|
+
private seriesMove$;
|
|
551
551
|
private seriesPathOffsets$;
|
|
552
|
+
private selectedSeriesIds$;
|
|
552
553
|
private chartClick$;
|
|
553
554
|
private chartContextMenu$;
|
|
554
555
|
private annotationEvent$;
|
|
@@ -566,9 +567,14 @@ declare class ChartService {
|
|
|
566
567
|
emitPlotBand(event: IChartEvent<PlotBand>): void;
|
|
567
568
|
emitPlotLine(event: IChartEvent<PlotLine>): void;
|
|
568
569
|
emitPoint(event: IChartEvent<IPointMove>): void;
|
|
569
|
-
|
|
570
|
+
emitSeriesMove(event: IChartEvent<ISeriesMove>): void;
|
|
570
571
|
getSeriesPathOffsets(): Map<string | number, ISeriesOffset>;
|
|
571
572
|
setSeriesPathOffsets(offsets: Map<number | string, ISeriesOffset>): void;
|
|
573
|
+
clearSeriesPathOffsets(): void;
|
|
574
|
+
getSelectedSeriesIds(): (string | number)[];
|
|
575
|
+
setSelectedSeriesIds(seriesIds: Array<number | string>): void;
|
|
576
|
+
toggleSelectedSeriesId(seriesId: number | string): void;
|
|
577
|
+
private areSeriesIdsEqual;
|
|
572
578
|
emitChartClick(event: IChartEvent<BasePoint>): void;
|
|
573
579
|
emitChartContextMenu(event: IChartEvent<BasePoint>): void;
|
|
574
580
|
private saveCookie;
|
|
@@ -593,7 +599,8 @@ declare class ChartComponent implements OnInit, OnDestroy {
|
|
|
593
599
|
plotBandContextMenu: EventEmitter<IChartEvent<PlotBand>>;
|
|
594
600
|
plotLinesMove: EventEmitter<IChartEvent<PlotLine>>;
|
|
595
601
|
pointMove: EventEmitter<IChartEvent<IPointMove>>;
|
|
596
|
-
|
|
602
|
+
seriesMove: EventEmitter<IChartEvent<ISeriesMove>>;
|
|
603
|
+
selectedSeriesIdsChange: EventEmitter<Array<number | string>>;
|
|
597
604
|
chartClick: EventEmitter<IChartEvent<BasePoint>>;
|
|
598
605
|
chartContextMenu: EventEmitter<IChartEvent<BasePoint>>;
|
|
599
606
|
annotationContextMenu: EventEmitter<IChartEvent<Annotation>>;
|
|
@@ -603,13 +610,15 @@ declare class ChartComponent implements OnInit, OnDestroy {
|
|
|
603
610
|
brushServiceInstance: EventEmitter<BrushService>;
|
|
604
611
|
configUpdated: EventEmitter<string>;
|
|
605
612
|
set config(config: IChartConfig);
|
|
613
|
+
set selectedSeriesIds(seriesIds: Array<number | string>);
|
|
606
614
|
private _alive;
|
|
607
615
|
constructor(chartService: ChartService, zoomService: ZoomService, brushService: BrushService, scaleService: ScaleService);
|
|
608
616
|
resetZoom(): void;
|
|
609
617
|
ngOnInit(): void;
|
|
610
618
|
ngOnDestroy(): void;
|
|
619
|
+
private areSeriesIdsEqual;
|
|
611
620
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
612
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "teta-svg-chart", never, { "config": { "alias": "config"; "required": false; }; }, { "pointerMove": "pointerMove"; "plotBandsMove": "plotBandsMove"; "plotBandClick": "plotBandClick"; "plotBandContextMenu": "plotBandContextMenu"; "plotLinesMove": "plotLinesMove"; "pointMove": "pointMove"; "
|
|
621
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "teta-svg-chart", never, { "config": { "alias": "config"; "required": false; }; "selectedSeriesIds": { "alias": "selectedSeriesIds"; "required": false; }; }, { "pointerMove": "pointerMove"; "plotBandsMove": "plotBandsMove"; "plotBandClick": "plotBandClick"; "plotBandContextMenu": "plotBandContextMenu"; "plotLinesMove": "plotLinesMove"; "pointMove": "pointMove"; "seriesMove": "seriesMove"; "selectedSeriesIdsChange": "selectedSeriesIdsChange"; "chartClick": "chartClick"; "chartContextMenu": "chartContextMenu"; "annotationContextMenu": "annotationContextMenu"; "annotationClick": "annotationClick"; "annotationMove": "annotationMove"; "zoomServiceInstance": "zoomServiceInstance"; "brushServiceInstance": "brushServiceInstance"; "configUpdated": "configUpdated"; }, never, ["*"], true, never>;
|
|
613
622
|
}
|
|
614
623
|
|
|
615
624
|
declare class LegendComponent {
|
|
@@ -630,6 +639,7 @@ declare class LinearSeriesBaseComponent<T extends BasePoint> extends SeriesBaseC
|
|
|
630
639
|
defaultClipPointsMapping: Map<ClipPointsDirection, (min: number, max: number) => (point: BasePoint, idx: number, arr: Array<BasePoint>) => boolean>;
|
|
631
640
|
display: Observable<number>;
|
|
632
641
|
markers: i0.Signal<T[]>;
|
|
642
|
+
private sortedTooltipData;
|
|
633
643
|
path: i0.Signal<any>;
|
|
634
644
|
protected update: i0.WritableSignal<unknown>;
|
|
635
645
|
protected getClipOffset(): {
|
|
@@ -696,10 +706,12 @@ declare class LineSeriesComponent<T extends BasePoint> extends LinearSeriesBaseC
|
|
|
696
706
|
private start;
|
|
697
707
|
private labelStart;
|
|
698
708
|
private seriesPathOffsets;
|
|
709
|
+
private selectedSeriesIds;
|
|
699
710
|
private seriesDragStartOffsets;
|
|
700
711
|
private seriesDragGroup;
|
|
701
712
|
private seriesDragMoved;
|
|
702
713
|
private seriesOffsetValue;
|
|
714
|
+
seriesSelectedForPathDrag: i0.Signal<boolean>;
|
|
703
715
|
seriesPathTransform: i0.Signal<string>;
|
|
704
716
|
seriesMoveStart(event: SeriesDragEvent): void;
|
|
705
717
|
seriesMoveProcess(event: SeriesDragEvent): void;
|
|
@@ -711,11 +723,12 @@ declare class LineSeriesComponent<T extends BasePoint> extends LinearSeriesBaseC
|
|
|
711
723
|
startLabel(event: any, label: any): void;
|
|
712
724
|
moveLabel(event: any, label: any): void;
|
|
713
725
|
allowDrag: (point: BasePoint) => (newPoint: any) => boolean;
|
|
714
|
-
private
|
|
726
|
+
private emitSeriesMove;
|
|
715
727
|
private updateSeriesOffset;
|
|
716
728
|
private getScaleOffset;
|
|
717
729
|
protected getClipOffset(): any;
|
|
718
730
|
private getPathDragSeriesGroup;
|
|
731
|
+
private isSeriesSelectedForPathDrag;
|
|
719
732
|
private getOffsetPixels;
|
|
720
733
|
static ɵfac: i0.ɵɵFactoryDeclaration<LineSeriesComponent<any>, never>;
|
|
721
734
|
static ɵcmp: i0.ɵɵComponentDeclaration<LineSeriesComponent<any>, "svg:svg[teta-line-series]", never, {}, {}, never, never, true, never>;
|
|
@@ -731,4 +744,4 @@ declare const getTextWidth: (inputText?: string | number | null, backupRatio?: n
|
|
|
731
744
|
declare function generateTicks(extremes: number[], count?: number): any;
|
|
732
745
|
|
|
733
746
|
export { AreaSeriesComponent, Axis, AxisOrientation, BarSeriesComponent, BlockAreaSeriesComponent, BlockHorizontalSeriesComponent, BlockSeriesComponent, BroadcastService, BrushMessage, BrushService, BrushType, ChartBounds, ChartComponent, ChartService, ClipPointsDirection, DragPointType, FillDirection, FillType, LegendComponent, LineSeriesComponent, LinearSeriesBaseComponent, PlotBand, PlotLine, ScaleService, ScaleType, ScatterSeriesComponent, SeriesBaseComponent, SeriesType, TooltipTracking, ZoomBehaviorType, ZoomMessage, ZoomService, ZoomType, chartConfigPostfix, generateTicks, getTextWidth };
|
|
734
|
-
export type { Annotation, AxisOptions, BasePoint, DragObjectOptions, IBroadcastMessage, IChartConfig, IChartEvent, IDisplayTooltip, IPointMove, IScalesMap, ISeriesOffset, ISeriesOffsetItem,
|
|
747
|
+
export type { Annotation, AxisOptions, BasePoint, DragObjectOptions, IBroadcastMessage, IChartConfig, IChartEvent, IDisplayTooltip, IPointMove, IScalesMap, ISeriesMove, ISeriesOffset, ISeriesOffsetItem, LabelOptions, MarkerOptions, Series, SvgAttributes, TargetAxis, TransformStyle };
|