@wcardinal/wcardinal-ui 0.296.0 → 0.298.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/dist/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +5 -3
- package/dist/types/wcardinal/ui/d-chart-coordinate-base.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear-tick.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-log-tick.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate.d.ts +5 -3
- package/dist/types/wcardinal/ui/d-chart-selection-container-impl.d.ts +18 -0
- package/dist/types/wcardinal/ui/{d-chart-selection-gridline-container.d.ts → d-chart-selection-container.d.ts} +4 -4
- package/dist/types/wcardinal/ui/d-chart-selection-gridline-x.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-selection-gridline-y.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-selection-marker.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-selection-shape-base.d.ts +5 -3
- package/dist/types/wcardinal/ui/d-chart-selection-shape.d.ts +4 -3
- package/dist/types/wcardinal/ui/d-chart-selection-simple.d.ts +2 -0
- package/dist/types/wcardinal/ui/d-chart-selection-sub-impl.d.ts +3 -5
- package/dist/types/wcardinal/ui/d-chart-selection-sub.d.ts +3 -2
- package/dist/types/wcardinal/ui/index.d.ts +2 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.d.ts +6 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.d.ts +3 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.d.ts +2 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.d.ts +7 -0
- package/dist/types/wcardinal/ui/theme/dark/index.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.d.ts +6 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.d.ts +3 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.d.ts +2 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.d.ts +7 -0
- package/dist/types/wcardinal/ui/theme/white/index.d.ts +4 -0
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +41 -14
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-base.js +2 -2
- package/dist/wcardinal/ui/d-chart-coordinate-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js +47 -49
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js +48 -49
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-container-impl.js +48 -0
- package/dist/wcardinal/ui/d-chart-selection-container-impl.js.map +1 -0
- package/dist/wcardinal/ui/{d-chart-selection-gridline-container.js → d-chart-selection-container.js} +1 -1
- package/dist/wcardinal/ui/d-chart-selection-container.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-selection-gridline-x.js +5 -4
- package/dist/wcardinal/ui/d-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js +5 -4
- package/dist/wcardinal/ui/d-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-marker.js +3 -3
- package/dist/wcardinal/ui/d-chart-selection-marker.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-shape-base.js +28 -10
- package/dist/wcardinal/ui/d-chart-selection-shape-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-shape.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-simple.js +22 -6
- package/dist/wcardinal/ui/d-chart-selection-simple.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js +11 -15
- package/dist/wcardinal/ui/d-chart-selection-sub-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-selection-sub.js.map +1 -1
- package/dist/wcardinal/ui/index.js +2 -2
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.js +5 -5
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js +14 -2
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js +7 -3
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js +8 -9
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-marker.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.js +11 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-shape.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/index.js +4 -0
- package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.js +5 -5
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js +15 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-x.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js +8 -3
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline-y.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js +8 -9
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-marker.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.js +11 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-shape.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/index.js +4 -0
- package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +38 -34
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +40 -34
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +331 -268
- package/dist/wcardinal-ui.js +259 -206
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/d-chart-selection-gridline-container-impl.d.ts +0 -18
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.d.ts +0 -7
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.d.ts +0 -7
- package/dist/wcardinal/ui/d-chart-selection-gridline-container-impl.js +0 -50
- package/dist/wcardinal/ui/d-chart-selection-gridline-container-impl.js.map +0 -1
- package/dist/wcardinal/ui/d-chart-selection-gridline-container.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.js +0 -22
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-selection-gridline.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.js +0 -22
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-selection-gridline.js.map +0 -1
|
@@ -31,15 +31,17 @@ export declare class DChartAxisBaseTickContainer<CHART extends DBase = DBase, OP
|
|
|
31
31
|
unbind(): void;
|
|
32
32
|
update(): boolean;
|
|
33
33
|
protected getDomain(plotArea: DChartPlotArea<CHART>, coordinate: DChartCoordinate<CHART>, result: DChartRegion): DChartRegion;
|
|
34
|
+
protected getDomainVisible(plotArea: DChartPlotArea<CHART>, coordinate: DChartCoordinate<CHART>, result: DChartRegion): DChartRegion;
|
|
34
35
|
protected getRange(plotArea: DChartPlotArea<CHART>, coordinate: DChartCoordinate<CHART>, result: DChartRegion): DChartRegion;
|
|
35
|
-
protected
|
|
36
|
-
protected
|
|
36
|
+
protected getRangeVisible(plotArea: DChartPlotArea<CHART>, coordinate: DChartCoordinate<CHART>, result: DChartRegion): DChartRegion;
|
|
37
|
+
protected updateX(domainFrom: number, domainTo: number, domainVisibleFrom: number, domainVisibleTo: number, coordinate: DChartCoordinate<CHART>, majorShapes: EShape[], minorShapes: EShape[], gridlineShapes: EShape[], shapePositionY: number, transform: Matrix, plotAreaHeight: number): boolean;
|
|
38
|
+
protected updateY(rangeFrom: number, rangeTo: number, rangeVisibleFrom: number, rangeVisibleTo: number, coordinate: DChartCoordinate<CHART>, majorShapes: EShape[], minorShapes: EShape[], gridlineShapes: EShape[], shapePositionX: number, transform: Matrix, plotAreaWidth: number): boolean;
|
|
37
39
|
protected showMajor(shape: EShape, x: number, y: number, text?: string): void;
|
|
38
40
|
protected showMajorGridline(shape: EShape, value: number, x: number, y: number, sx: number, sy: number): void;
|
|
39
41
|
protected hideMajor(shape: EShape): void;
|
|
40
42
|
protected hideMajorGridline(shape: EShape): void;
|
|
41
43
|
protected showMinor(shape: EShape, x: number, y: number, text?: string): void;
|
|
42
44
|
protected hideMinor(shape: EShape): void;
|
|
43
|
-
protected newTicks(coordinate: DChartCoordinate<CHART>,
|
|
45
|
+
protected newTicks(coordinate: DChartCoordinate<CHART>, domainFrom: number, domainTo: number, domainVisibleFrom: number, domainVisibleTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
44
46
|
destroy(): void;
|
|
45
47
|
}
|
|
@@ -47,7 +47,7 @@ export declare abstract class DChartCoordinateBase<CHART extends DBase = DBase>
|
|
|
47
47
|
mapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
48
48
|
unmap(value: number): number;
|
|
49
49
|
unmapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
50
|
-
ticks(domainFrom: number, domainTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
50
|
+
ticks(domainFrom: number, domainTo: number, domainVisibleFrom: number, domainVisibleTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
51
51
|
protected toTheme(options?: DChartCoordinateOptions): DThemeChartCoordinate;
|
|
52
52
|
protected getThemeDefault(): DThemeChartCoordinate;
|
|
53
53
|
protected getType(): string;
|
|
@@ -10,7 +10,7 @@ export declare class DChartCoordinateLinearTick<CHART extends DBase = DBase> imp
|
|
|
10
10
|
protected toMinorStep(majorStep: number, minorCount: number, minorStep?: number | DChartCoordinateTickMinorStepFunction): number;
|
|
11
11
|
protected calcStepMinor(majorStep: number, minorCount: number): number;
|
|
12
12
|
protected calcTickMinorPositions(step: number, count: number, majorPosition: number, rangeMin: number, rangeMax: number, iresult: number, result: Float64Array): void;
|
|
13
|
-
calculate(domainFrom: number, domainTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[], coordinate: DChartCoordinate<CHART>): void;
|
|
13
|
+
calculate(domainFrom: number, domainTo: number, domainVisibleFrom: number, domainVisibleTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[], coordinate: DChartCoordinate<CHART>): void;
|
|
14
14
|
protected toTheme(options?: DChartCoordinateTickOptions): DThemeChartCoordinateTick;
|
|
15
15
|
protected getThemeDefault(): DThemeChartCoordinateTick;
|
|
16
16
|
protected getType(): string;
|
|
@@ -12,7 +12,7 @@ export declare class DChartCoordinateLogTick<CHART extends DBase = DBase> implem
|
|
|
12
12
|
protected toMinorStep(majorStep: number, minorCount: number, minorStep?: number | DChartCoordinateTickMinorStepFunction): number;
|
|
13
13
|
protected calcStepMinor(majorStep: number, minorCount: number): number;
|
|
14
14
|
protected calcTickMinorPositions(step: number, count: number, majorPosition: number, rangeMin: number, rangeMax: number, iresult: number, result: Float64Array): void;
|
|
15
|
-
calculate(domainFrom: number, domainTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[], coordinate: DChartCoordinate<CHART>): void;
|
|
15
|
+
calculate(domainFrom: number, domainTo: number, domainVisibleFrom: number, domainVisibleTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[], coordinate: DChartCoordinate<CHART>): void;
|
|
16
16
|
protected toTheme(options?: DChartCoordinateTickOptions): DThemeChartCoordinateTick;
|
|
17
17
|
protected getThemeDefault(): DThemeChartCoordinateTick;
|
|
18
18
|
protected getType(): string;
|
|
@@ -9,5 +9,5 @@ export interface DChartCoordinateTickOptions {
|
|
|
9
9
|
theme?: DThemeChartCoordinateTick;
|
|
10
10
|
}
|
|
11
11
|
export interface DChartCoordinateTick<CHART extends DBase = DBase> {
|
|
12
|
-
calculate(domainFrom: number, domainTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[], coordinate: DChartCoordinate<CHART>): void;
|
|
12
|
+
calculate(domainFrom: number, domainTo: number, domainVisibleFrom: number, domainVisibleTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[], coordinate: DChartCoordinate<CHART>): void;
|
|
13
13
|
}
|
|
@@ -74,13 +74,15 @@ export interface DChartCoordinate<CHART extends DBase = DBase> {
|
|
|
74
74
|
/**
|
|
75
75
|
* Returns major / minor tick positions.
|
|
76
76
|
*
|
|
77
|
-
* @param domainMin
|
|
78
|
-
* @param domainMax
|
|
77
|
+
* @param domainMin domain lower bound
|
|
78
|
+
* @param domainMax domain upper bound
|
|
79
|
+
* @param domainVisibleMin visible domain lower bound
|
|
80
|
+
* @param domainVisibleMax visible domain upper bound
|
|
79
81
|
* @param majorCount Expected major tick count
|
|
80
82
|
* @param minorCountPerMajor Expected minor tick count per major ticks
|
|
81
83
|
* @param minorCount Expected total minor tick count
|
|
82
84
|
* @param majorResult `majorResult.length` must be larger than `majorCount * 3`.
|
|
83
85
|
* @param minorResult `minorResult.length` must be larger than `minorCount * 3`.
|
|
84
86
|
*/
|
|
85
|
-
ticks(domainMin: number, domainMax: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
87
|
+
ticks(domainMin: number, domainMax: number, domainVisibleMin: number, domainVisibleMax: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
86
88
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IPoint } from "pixi.js";
|
|
2
|
+
import { DBase } from "./d-base";
|
|
3
|
+
import { DChartSelectionContainer } from "./d-chart-selection-container";
|
|
4
|
+
import { DChartSelectionShape } from "./d-chart-selection-shape";
|
|
5
|
+
import { DChartSeries } from "./d-chart-series";
|
|
6
|
+
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
7
|
+
export declare class DChartSelectionContainerImpl<CHART extends DBase = DBase> implements DChartSelectionContainer<CHART> {
|
|
8
|
+
protected _x: DChartSelectionShape<CHART>;
|
|
9
|
+
protected _y: DChartSelectionShape<CHART>;
|
|
10
|
+
constructor(x: DChartSelectionShape<CHART>, y: DChartSelectionShape<CHART>);
|
|
11
|
+
get x(): DChartSelectionShape<CHART>;
|
|
12
|
+
get y(): DChartSelectionShape<CHART>;
|
|
13
|
+
bind(container: DChartSeriesContainer<CHART>): void;
|
|
14
|
+
unbind(): void;
|
|
15
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
16
|
+
unset(): void;
|
|
17
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
18
|
+
}
|
|
@@ -3,16 +3,16 @@ import { DBase } from "./d-base";
|
|
|
3
3
|
import { DChartSelectionShape, DChartSelectionShapeOptions } from "./d-chart-selection-shape";
|
|
4
4
|
import { DChartSeries } from "./d-chart-series";
|
|
5
5
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
6
|
-
export interface
|
|
6
|
+
export interface DChartSelectionContainerOptions<CHART extends DBase = DBase> {
|
|
7
7
|
x?: DChartSelectionShapeOptions<CHART>;
|
|
8
8
|
y?: DChartSelectionShapeOptions<CHART>;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface DChartSelectionContainer<CHART extends DBase = DBase> {
|
|
11
11
|
readonly x: DChartSelectionShape<CHART>;
|
|
12
12
|
readonly y: DChartSelectionShape<CHART>;
|
|
13
13
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
14
14
|
unbind(): void;
|
|
15
|
-
set(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
15
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
16
16
|
unset(): void;
|
|
17
|
-
update(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint): boolean;
|
|
17
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
18
18
|
}
|
|
@@ -3,7 +3,7 @@ import { DBase } from "./d-base";
|
|
|
3
3
|
import { DChartSelectionShapeBase } from "./d-chart-selection-shape-base";
|
|
4
4
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
5
5
|
export declare class DChartSelectionGridlineX<CHART extends DBase = DBase> extends DChartSelectionShapeBase<CHART> {
|
|
6
|
-
update(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint): boolean;
|
|
7
|
-
protected isVisible(container: DChartSeriesContainer<CHART>,
|
|
6
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
7
|
+
protected isVisible(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
8
8
|
protected getType(): string;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import { DBase } from "./d-base";
|
|
|
3
3
|
import { DChartSelectionShapeBase } from "./d-chart-selection-shape-base";
|
|
4
4
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
5
5
|
export declare class DChartSelectionGridlineY<CHART extends DBase = DBase> extends DChartSelectionShapeBase<CHART> {
|
|
6
|
-
update(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint): boolean;
|
|
7
|
-
protected isVisible(container: DChartSeriesContainer<CHART>,
|
|
6
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
7
|
+
protected isVisible(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
8
8
|
protected getType(): string;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import { DBase } from "./d-base";
|
|
|
3
3
|
import { DChartSelectionShapeBase } from "./d-chart-selection-shape-base";
|
|
4
4
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
5
5
|
export declare class DChartSelectionMarker<CHART extends DBase = DBase> extends DChartSelectionShapeBase<CHART> {
|
|
6
|
-
update(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint): boolean;
|
|
7
|
-
protected isVisible(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint): boolean;
|
|
6
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
7
|
+
protected isVisible(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
8
8
|
protected getType(): string;
|
|
9
9
|
}
|
|
@@ -7,19 +7,21 @@ import { DChartSeries } from "./d-chart-series";
|
|
|
7
7
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
8
8
|
import { EShape } from "./shape/e-shape";
|
|
9
9
|
export declare abstract class DChartSelectionShapeBase<CHART extends DBase = DBase> implements DChartSelectionShape<CHART> {
|
|
10
|
+
protected _options?: DChartSelectionShapeOptions<CHART>;
|
|
10
11
|
protected _isEnabled: boolean;
|
|
11
12
|
protected _shape?: EShape;
|
|
13
|
+
protected _newShape?: (state: DBaseStateSet) => EShape;
|
|
12
14
|
protected _style: DChartSelectionStyle<CHART>;
|
|
13
15
|
protected _state: DBaseStateSet;
|
|
14
16
|
protected _theme: DThemeChartSelectionShape;
|
|
15
17
|
constructor(options?: DChartSelectionShapeOptions<CHART>);
|
|
16
18
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
17
19
|
unbind(): void;
|
|
18
|
-
protected newShape(theme: DThemeChartSelectionShape): EShape;
|
|
19
|
-
set(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
20
|
+
protected newShape(state: DBaseStateSet, theme: DThemeChartSelectionShape): EShape;
|
|
21
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
20
22
|
protected setStyle(this: unknown, shape: EShape, series: DChartSeries<CHART>): void;
|
|
21
23
|
unset(): void;
|
|
22
|
-
abstract update(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint): boolean;
|
|
24
|
+
abstract update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
23
25
|
protected toTheme(options?: DChartSelectionShapeOptions<CHART>): DThemeChartSelectionShape;
|
|
24
26
|
protected getTheme(type: string): DThemeChartSelectionShape;
|
|
25
27
|
protected abstract getType(): string;
|
|
@@ -5,9 +5,10 @@ import { DChartSelectionStyle } from "./d-chart-selection";
|
|
|
5
5
|
import { DChartSeries } from "./d-chart-series";
|
|
6
6
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
7
7
|
import { EShape } from "./shape/e-shape";
|
|
8
|
+
export declare type DChartSelectionShapeNewShape = (state: DBaseStateSet) => EShape;
|
|
8
9
|
export interface DChartSelectionShapeOptions<CHART extends DBase = DBase> {
|
|
9
10
|
enable?: boolean;
|
|
10
|
-
shape?: EShape;
|
|
11
|
+
shape?: EShape | DChartSelectionShapeNewShape;
|
|
11
12
|
style?: DChartSelectionStyle<CHART>;
|
|
12
13
|
state?: string;
|
|
13
14
|
theme?: string | DThemeChartSelectionShape;
|
|
@@ -19,7 +20,7 @@ export interface DThemeChartSelectionShape {
|
|
|
19
20
|
export interface DChartSelectionShape<CHART extends DBase = DBase> {
|
|
20
21
|
bind(container: DChartSeriesContainer<CHART>): void;
|
|
21
22
|
unbind(): void;
|
|
22
|
-
set(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
23
|
+
set(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint, series: DChartSeries<CHART>): void;
|
|
23
24
|
unset(): void;
|
|
24
|
-
update(container: DChartSeriesContainer<CHART>, mappedPosition: IPoint): boolean;
|
|
25
|
+
update(container: DChartSeriesContainer<CHART>, position: IPoint, mappedPosition: IPoint): boolean;
|
|
25
26
|
}
|
|
@@ -20,6 +20,8 @@ export declare class DChartSelectionSimple<CHART extends DBase = DBase> extends
|
|
|
20
20
|
constructor(options?: DChartSelectionSimpleOptions<CHART>);
|
|
21
21
|
protected newSelected(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
|
|
22
22
|
protected newHovered(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSub<CHART>;
|
|
23
|
+
protected toSelectedOptions(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSubOptions<CHART>;
|
|
24
|
+
protected toHoveredOptions(point: DChartSelectionPoint, options?: DChartSelectionSubOptions<CHART>): DChartSelectionSubOptions<CHART>;
|
|
23
25
|
protected toSubOptions(point: DChartSelectionPoint, options: DChartSelectionSubOptions<CHART> | undefined, state: string): DChartSelectionSubOptions<CHART>;
|
|
24
26
|
protected onClick(e: interaction.InteractionEvent): void;
|
|
25
27
|
protected onMove(e: interaction.InteractionEvent): void;
|
|
@@ -2,12 +2,11 @@ import { Point, utils } from "pixi.js";
|
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { DChartCoordinate } from "./d-chart-coordinate";
|
|
4
4
|
import { DChartSelectionPoint } from "./d-chart-selection";
|
|
5
|
-
import {
|
|
5
|
+
import { DChartSelectionContainer } from "./d-chart-selection-container";
|
|
6
6
|
import { DChartSelectionMarker } from "./d-chart-selection-marker";
|
|
7
7
|
import { DChartSelectionSub, DChartSelectionSubOptions } from "./d-chart-selection-sub";
|
|
8
8
|
import { DChartSeries, DChartSeriesHitResult } from "./d-chart-series";
|
|
9
9
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
10
|
-
import { EShape } from "./shape/e-shape";
|
|
11
10
|
export declare class DChartSelectionSubImpl<CHART extends DBase = DBase> extends utils.EventEmitter implements DChartSelectionSub<CHART> {
|
|
12
11
|
protected _container: DChartSeriesContainer<CHART> | null;
|
|
13
12
|
protected _isEnabled: boolean;
|
|
@@ -17,7 +16,7 @@ export declare class DChartSelectionSubImpl<CHART extends DBase = DBase> extends
|
|
|
17
16
|
protected _position: Point;
|
|
18
17
|
protected _point: DChartSelectionPoint;
|
|
19
18
|
protected _work: Point;
|
|
20
|
-
protected _gridline:
|
|
19
|
+
protected _gridline: DChartSelectionContainer<CHART>;
|
|
21
20
|
protected _marker: DChartSelectionMarker<CHART>;
|
|
22
21
|
protected _state: string;
|
|
23
22
|
constructor(options: DChartSelectionSubOptions<CHART>);
|
|
@@ -25,10 +24,9 @@ export declare class DChartSelectionSubImpl<CHART extends DBase = DBase> extends
|
|
|
25
24
|
unbind(): void;
|
|
26
25
|
get series(): DChartSeries<CHART> | null;
|
|
27
26
|
get position(): Point;
|
|
28
|
-
get gridline():
|
|
27
|
+
get gridline(): DChartSelectionContainer<CHART>;
|
|
29
28
|
get marker(): DChartSelectionMarker<CHART>;
|
|
30
29
|
set(series: DChartSeries<CHART>, result: DChartSeriesHitResult | DChartSelectionSub<CHART>): void;
|
|
31
|
-
protected setStyle(this: unknown, shape: EShape, series: DChartSeries<CHART>): void;
|
|
32
30
|
unset(): void;
|
|
33
31
|
update(): boolean;
|
|
34
32
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Point, utils } from "pixi.js";
|
|
2
2
|
import { DBase, DBaseOnOptions } from "./d-base";
|
|
3
3
|
import { DChartSelectionPoint } from "./d-chart-selection";
|
|
4
|
-
import {
|
|
4
|
+
import { DChartSelectionContainerOptions } from "./d-chart-selection-container";
|
|
5
5
|
import { DChartSelectionShapeOptions } from "./d-chart-selection-shape";
|
|
6
6
|
import { DChartSeries, DChartSeriesHitResult } from "./d-chart-series";
|
|
7
7
|
import { DChartSeriesContainer } from "./d-chart-series-container";
|
|
8
8
|
export interface DChartSelectionSubOptions<CHART extends DBase = DBase, EMITTER = any> {
|
|
9
9
|
enable?: boolean;
|
|
10
|
-
gridline?:
|
|
10
|
+
gridline?: DChartSelectionContainerOptions<CHART>;
|
|
11
11
|
marker?: DChartSelectionShapeOptions<CHART>;
|
|
12
|
+
label?: DChartSelectionContainerOptions<CHART>;
|
|
12
13
|
state?: string;
|
|
13
14
|
on?: DBaseOnOptions<EMITTER>;
|
|
14
15
|
point?: DChartSelectionPoint;
|
|
@@ -126,8 +126,8 @@ export * from "./d-chart-plot-area-impl";
|
|
|
126
126
|
export * from "./d-chart-region-impl-observable";
|
|
127
127
|
export * from "./d-chart-region-impl";
|
|
128
128
|
export * from "./d-chart-region";
|
|
129
|
-
export * from "./d-chart-selection-
|
|
130
|
-
export * from "./d-chart-selection-
|
|
129
|
+
export * from "./d-chart-selection-container-impl";
|
|
130
|
+
export * from "./d-chart-selection-container";
|
|
131
131
|
export * from "./d-chart-selection-gridline-x";
|
|
132
132
|
export * from "./d-chart-selection-gridline-y";
|
|
133
133
|
export * from "./d-chart-selection-marker";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
|
+
import { EShape } from "../../shape/e-shape";
|
|
3
|
+
import { DThemeDarkChartSelectionShape } from "./d-theme-dark-chart-selection-shape";
|
|
4
|
+
export declare class DThemeDarkChartSelectionGridlineX extends DThemeDarkChartSelectionShape {
|
|
5
|
+
isEnabled(state: DBaseStateSet): boolean;
|
|
6
|
+
newShape(state: DBaseStateSet): EShape;
|
|
3
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
2
|
import { EShape } from "../../shape/e-shape";
|
|
3
|
-
import {
|
|
4
|
-
export declare class DThemeDarkChartSelectionGridlineY extends
|
|
3
|
+
import { DThemeDarkChartSelectionShape } from "./d-theme-dark-chart-selection-shape";
|
|
4
|
+
export declare class DThemeDarkChartSelectionGridlineY extends DThemeDarkChartSelectionShape {
|
|
5
|
+
isEnabled(state: DBaseStateSet): boolean;
|
|
5
6
|
newShape(state: DBaseStateSet): EShape;
|
|
6
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
|
-
import { DThemeChartSelectionShape } from "../../d-chart-selection-shape";
|
|
3
2
|
import { EShape } from "../../shape/e-shape";
|
|
4
|
-
|
|
3
|
+
import { DThemeDarkChartSelectionShape } from "./d-theme-dark-chart-selection-shape";
|
|
4
|
+
export declare class DThemeDarkChartSelectionMarker extends DThemeDarkChartSelectionShape {
|
|
5
5
|
isEnabled(state: DBaseStateSet): boolean;
|
|
6
6
|
newShape(state: DBaseStateSet): EShape;
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
|
+
import { DThemeChartSelectionShape } from "../../d-chart-selection-shape";
|
|
3
|
+
import { EShape } from "../../shape/e-shape";
|
|
4
|
+
export declare abstract class DThemeDarkChartSelectionShape implements DThemeChartSelectionShape {
|
|
5
|
+
abstract isEnabled(state: DBaseStateSet): boolean;
|
|
6
|
+
abstract newShape(state: DBaseStateSet): EShape;
|
|
7
|
+
}
|
|
@@ -34,6 +34,10 @@ export * from "./d-theme-dark-chart-legend";
|
|
|
34
34
|
export * from "./d-theme-dark-chart-legend-item";
|
|
35
35
|
export * from "./d-theme-dark-chart-overview";
|
|
36
36
|
export * from "./d-theme-dark-chart-plot-area";
|
|
37
|
+
export * from "./d-theme-dark-chart-selection-gridline-x";
|
|
38
|
+
export * from "./d-theme-dark-chart-selection-gridline-y";
|
|
39
|
+
export * from "./d-theme-dark-chart-selection-marker";
|
|
40
|
+
export * from "./d-theme-dark-chart-selection-shape";
|
|
37
41
|
export * from "./d-theme-dark-content";
|
|
38
42
|
export * from "./d-theme-dark-diagram";
|
|
39
43
|
export * from "./d-theme-dark-diagram-base";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
|
+
import { EShape } from "../../shape/e-shape";
|
|
3
|
+
import { DThemeWhiteChartSelectionShape } from "./d-theme-white-chart-selection-shape";
|
|
4
|
+
export declare class DThemeWhiteChartSelectionGridlineX extends DThemeWhiteChartSelectionShape {
|
|
5
|
+
isEnabled(state: DBaseStateSet): boolean;
|
|
6
|
+
newShape(state: DBaseStateSet): EShape;
|
|
3
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
2
|
import { EShape } from "../../shape/e-shape";
|
|
3
|
-
import {
|
|
4
|
-
export declare class DThemeWhiteChartSelectionGridlineY extends
|
|
3
|
+
import { DThemeWhiteChartSelectionShape } from "./d-theme-white-chart-selection-shape";
|
|
4
|
+
export declare class DThemeWhiteChartSelectionGridlineY extends DThemeWhiteChartSelectionShape {
|
|
5
|
+
isEnabled(state: DBaseStateSet): boolean;
|
|
5
6
|
newShape(state: DBaseStateSet): EShape;
|
|
6
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
|
-
import { DThemeChartSelectionShape } from "../../d-chart-selection-shape";
|
|
3
2
|
import { EShape } from "../../shape/e-shape";
|
|
4
|
-
|
|
3
|
+
import { DThemeWhiteChartSelectionShape } from "./d-theme-white-chart-selection-shape";
|
|
4
|
+
export declare class DThemeWhiteChartSelectionMarker extends DThemeWhiteChartSelectionShape {
|
|
5
5
|
isEnabled(state: DBaseStateSet): boolean;
|
|
6
6
|
newShape(state: DBaseStateSet): EShape;
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DBaseStateSet } from "../../d-base-state-set";
|
|
2
|
+
import { DThemeChartSelectionShape } from "../../d-chart-selection-shape";
|
|
3
|
+
import { EShape } from "../../shape/e-shape";
|
|
4
|
+
export declare abstract class DThemeWhiteChartSelectionShape implements DThemeChartSelectionShape {
|
|
5
|
+
abstract isEnabled(state: DBaseStateSet): boolean;
|
|
6
|
+
abstract newShape(state: DBaseStateSet): EShape;
|
|
7
|
+
}
|
|
@@ -33,6 +33,10 @@ export * from "./d-theme-white-chart-legend-item";
|
|
|
33
33
|
export * from "./d-theme-white-chart-legend";
|
|
34
34
|
export * from "./d-theme-white-chart-overview";
|
|
35
35
|
export * from "./d-theme-white-chart-plot-area";
|
|
36
|
+
export * from "./d-theme-white-chart-selection-gridline-x";
|
|
37
|
+
export * from "./d-theme-white-chart-selection-gridline-y";
|
|
38
|
+
export * from "./d-theme-white-chart-selection-marker";
|
|
39
|
+
export * from "./d-theme-white-chart-selection-shape";
|
|
36
40
|
export * from "./d-theme-white-chart";
|
|
37
41
|
export * from "./d-theme-white-content";
|
|
38
42
|
export * from "./d-theme-white-diagram-base";
|
|
@@ -54,38 +54,59 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
54
54
|
var gridlineShapes = this._major.gridline.shapes;
|
|
55
55
|
var parser = this._parser;
|
|
56
56
|
var offset = parser.padding * this._index;
|
|
57
|
+
var work = this._work;
|
|
57
58
|
var coordinate = void 0;
|
|
58
59
|
switch (parser.position) {
|
|
59
60
|
case DChartAxisPosition.TOP:
|
|
60
61
|
coordinate = plotArea.coordinate.x.get(parser.coordinate);
|
|
61
62
|
if (coordinate) {
|
|
62
|
-
var domain = this.getDomain(plotArea, coordinate,
|
|
63
|
+
var domain = this.getDomain(plotArea, coordinate, work);
|
|
64
|
+
var domainFrom = domain.from;
|
|
65
|
+
var domainTo = domain.to;
|
|
66
|
+
var domainVisible = this.getDomainVisible(plotArea, coordinate, work);
|
|
67
|
+
var domainVisibleFrom = domainVisible.from;
|
|
68
|
+
var domainVisibleTo = domainVisible.to;
|
|
63
69
|
var plotAreaHeight = plotArea.height;
|
|
64
|
-
return this.updateX(
|
|
70
|
+
return this.updateX(domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, 0 - offset, transform, plotAreaHeight);
|
|
65
71
|
}
|
|
66
72
|
break;
|
|
67
73
|
case DChartAxisPosition.BOTTOM:
|
|
68
74
|
coordinate = plotArea.coordinate.x.get(parser.coordinate);
|
|
69
75
|
if (coordinate) {
|
|
70
|
-
var domain = this.getDomain(plotArea, coordinate,
|
|
76
|
+
var domain = this.getDomain(plotArea, coordinate, work);
|
|
77
|
+
var domainFrom = domain.from;
|
|
78
|
+
var domainTo = domain.to;
|
|
79
|
+
var domainVisible = this.getDomainVisible(plotArea, coordinate, work);
|
|
80
|
+
var domainVisibleFrom = domainVisible.from;
|
|
81
|
+
var domainVisibleTo = domainVisible.to;
|
|
71
82
|
var plotAreaHeight = plotArea.height;
|
|
72
|
-
return this.updateX(
|
|
83
|
+
return this.updateX(domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, plotAreaHeight + offset, transform, plotAreaHeight);
|
|
73
84
|
}
|
|
74
85
|
break;
|
|
75
86
|
case DChartAxisPosition.LEFT:
|
|
76
87
|
coordinate = plotArea.coordinate.y.get(parser.coordinate);
|
|
77
88
|
if (coordinate) {
|
|
78
|
-
var range = this.getRange(plotArea, coordinate,
|
|
89
|
+
var range = this.getRange(plotArea, coordinate, work);
|
|
90
|
+
var rangeFrom = range.from;
|
|
91
|
+
var rangeTo = range.to;
|
|
92
|
+
var rangeVisible = this.getRangeVisible(plotArea, coordinate, work);
|
|
93
|
+
var rangeVisibleFrom = rangeVisible.from;
|
|
94
|
+
var rangeVisibleTo = rangeVisible.to;
|
|
79
95
|
var plotAreaWidth = plotArea.width;
|
|
80
|
-
return this.updateY(
|
|
96
|
+
return this.updateY(rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, 0 - offset, transform, plotAreaWidth);
|
|
81
97
|
}
|
|
82
98
|
break;
|
|
83
99
|
case DChartAxisPosition.RIGHT:
|
|
84
100
|
coordinate = plotArea.coordinate.y.get(parser.coordinate);
|
|
85
101
|
if (coordinate) {
|
|
86
|
-
var range = this.getRange(plotArea, coordinate,
|
|
102
|
+
var range = this.getRange(plotArea, coordinate, work);
|
|
103
|
+
var rangeFrom = range.from;
|
|
104
|
+
var rangeTo = range.to;
|
|
105
|
+
var rangeVisible = this.getRangeVisible(plotArea, coordinate, work);
|
|
106
|
+
var rangeVisibleFrom = rangeVisible.from;
|
|
107
|
+
var rangeVisibleTo = rangeVisible.to;
|
|
87
108
|
var plotAreaWidth = plotArea.width;
|
|
88
|
-
return this.updateY(
|
|
109
|
+
return this.updateY(rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, plotAreaWidth + offset, transform, plotAreaWidth);
|
|
89
110
|
}
|
|
90
111
|
break;
|
|
91
112
|
}
|
|
@@ -97,12 +118,18 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
97
118
|
var transform = coordinate.transform;
|
|
98
119
|
return result.set(coordinate.unmap(transform.unmap(bounds.x)), coordinate.unmap(transform.unmap(bounds.x + bounds.width)));
|
|
99
120
|
};
|
|
121
|
+
DChartAxisBaseTickContainer.prototype.getDomainVisible = function (plotArea, coordinate, result) {
|
|
122
|
+
return result;
|
|
123
|
+
};
|
|
100
124
|
DChartAxisBaseTickContainer.prototype.getRange = function (plotArea, coordinate, result) {
|
|
101
125
|
var bounds = plotArea.getBoundsInContainer();
|
|
102
126
|
var transform = coordinate.transform;
|
|
103
127
|
return result.set(coordinate.unmap(transform.unmap(bounds.y)), coordinate.unmap(transform.unmap(bounds.y + bounds.height)));
|
|
104
128
|
};
|
|
105
|
-
DChartAxisBaseTickContainer.prototype.
|
|
129
|
+
DChartAxisBaseTickContainer.prototype.getRangeVisible = function (plotArea, coordinate, result) {
|
|
130
|
+
return result;
|
|
131
|
+
};
|
|
132
|
+
DChartAxisBaseTickContainer.prototype.updateX = function (domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionY, transform, plotAreaHeight) {
|
|
106
133
|
var tick = this._parser.tick;
|
|
107
134
|
var majorTick = tick.major;
|
|
108
135
|
var majorCount = majorTick.count;
|
|
@@ -116,7 +143,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
116
143
|
var minorFormatter = minorTick.formatter;
|
|
117
144
|
var majorTicks = this._majorTicks;
|
|
118
145
|
var minorTicks = this._minorTicks;
|
|
119
|
-
this.newTicks(coordinate,
|
|
146
|
+
this.newTicks(coordinate, domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
120
147
|
var a = transform.a;
|
|
121
148
|
var tx = transform.tx;
|
|
122
149
|
for (var i = 0; i < majorCapacity; ++i) {
|
|
@@ -155,7 +182,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
155
182
|
}
|
|
156
183
|
return true;
|
|
157
184
|
};
|
|
158
|
-
DChartAxisBaseTickContainer.prototype.updateY = function (
|
|
185
|
+
DChartAxisBaseTickContainer.prototype.updateY = function (rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, coordinate, majorShapes, minorShapes, gridlineShapes, shapePositionX, transform, plotAreaWidth) {
|
|
159
186
|
var tick = this._parser.tick;
|
|
160
187
|
var majorTick = tick.major;
|
|
161
188
|
var majorCount = majorTick.count;
|
|
@@ -169,7 +196,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
169
196
|
var minorFormatter = minorTick.formatter;
|
|
170
197
|
var majorTicks = this._majorTicks;
|
|
171
198
|
var minorTicks = this._minorTicks;
|
|
172
|
-
this.newTicks(coordinate,
|
|
199
|
+
this.newTicks(coordinate, rangeFrom, rangeTo, rangeVisibleFrom, rangeVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
173
200
|
var d = transform.d;
|
|
174
201
|
var ty = transform.ty;
|
|
175
202
|
for (var i = 0; i < majorCapacity; ++i) {
|
|
@@ -238,8 +265,8 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
238
265
|
DChartAxisBaseTickContainer.prototype.hideMinor = function (shape) {
|
|
239
266
|
shape.visible = false;
|
|
240
267
|
};
|
|
241
|
-
DChartAxisBaseTickContainer.prototype.newTicks = function (coordinate,
|
|
242
|
-
coordinate.ticks(
|
|
268
|
+
DChartAxisBaseTickContainer.prototype.newTicks = function (coordinate, domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult) {
|
|
269
|
+
coordinate.ticks(domainFrom, domainTo, domainVisibleFrom, domainVisibleTo, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorResult, minorResult);
|
|
243
270
|
};
|
|
244
271
|
DChartAxisBaseTickContainer.prototype.destroy = function () {
|
|
245
272
|
this._major.destroy();
|