@wcardinal/wcardinal-ui 0.240.0 → 0.241.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-options-parser.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +2 -0
- package/dist/types/wcardinal/ui/d-chart-axis-base.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear-tick.d.ts +3 -4
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-log-tick.d.ts +3 -4
- package/dist/types/wcardinal/ui/d-chart-coordinate-log.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-chart-coordinate.d.ts +1 -1
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.d.ts +1 -1
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.d.ts +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +7 -4
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-options.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js +15 -15
- package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js +5 -11
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js +2 -2
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js +4 -10
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log.js +2 -2
- package/dist/wcardinal/ui/d-chart-coordinate-log.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/theme/dark/d-theme-dark-chart-axis-base.js +4 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-x-datetime.js +149 -1
- 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-tick.js +12 -8
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js +4 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-x-datetime.js +149 -1
- 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-tick.js +12 -8
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +166 -11
- 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 +166 -11
- 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 +366 -65
- package/dist/wcardinal-ui.js +36 -45
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -44,6 +44,7 @@ export interface DChartAxisBaseTickMajorGridlineOptions {
|
|
|
44
44
|
export declare type DChartAxisTickPositionOption = DChartAxisTickPosition | keyof typeof DChartAxisTickPosition;
|
|
45
45
|
export interface DChartAxisBaseTickMajorOptions {
|
|
46
46
|
count?: number;
|
|
47
|
+
capacity?: number;
|
|
47
48
|
step?: number | DChartCoordinateTickMajorStepFunction;
|
|
48
49
|
size?: number;
|
|
49
50
|
position?: DChartAxisTickPositionOption;
|
|
@@ -96,6 +97,7 @@ export interface DThemeChartAxisBase {
|
|
|
96
97
|
getStrokeStyle(): EShapeStrokeStyle | undefined;
|
|
97
98
|
getTickEnable(): boolean;
|
|
98
99
|
getMajorTickCount(): number;
|
|
100
|
+
getMajorTickCapacity(count: number): number;
|
|
99
101
|
getMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;
|
|
100
102
|
getMajorTickSize(): number;
|
|
101
103
|
getMajorTickPosition(): DChartAxisTickPosition;
|
|
@@ -17,8 +17,8 @@ export declare class DChartAxisBase<CHART extends DBase = DBase, OPTIONS extends
|
|
|
17
17
|
protected _bar: DChartAxisBaseBar;
|
|
18
18
|
protected _index: number;
|
|
19
19
|
protected _tick: DChartAxisBaseTickContainer;
|
|
20
|
-
protected _majorTicks:
|
|
21
|
-
protected _minorTicks:
|
|
20
|
+
protected _majorTicks: number[];
|
|
21
|
+
protected _minorTicks: number[];
|
|
22
22
|
protected _label?: DeepPartial<EShapeTextLike>;
|
|
23
23
|
protected _theme: DThemeChartAxisBase;
|
|
24
24
|
constructor(options?: OPTIONS);
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
2
|
import { DChartCoordinate } from "./d-chart-coordinate";
|
|
3
|
-
import { DChartCoordinateTickOptions, DThemeChartCoordinateTick } from "./d-chart-coordinate-tick";
|
|
3
|
+
import { DChartCoordinateTick, DChartCoordinateTickOptions, DThemeChartCoordinateTick } from "./d-chart-coordinate-tick";
|
|
4
4
|
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
5
5
|
import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick-minor-step-function";
|
|
6
|
-
export declare class DChartCoordinateLinearTick<CHART extends DBase = DBase> {
|
|
6
|
+
export declare class DChartCoordinateLinearTick<CHART extends DBase = DBase> implements DChartCoordinateTick<CHART> {
|
|
7
7
|
protected _theme: DThemeChartCoordinateTick;
|
|
8
8
|
constructor(options?: DChartCoordinateTickOptions);
|
|
9
9
|
protected toMajorStep(domainMin: number, domainMax: number, majorCount: number, majorStep?: number | DChartCoordinateTickMajorStepFunction): number;
|
|
10
|
-
protected calcStepMajor(domainMin: number, domainMax: number, majorCount: number): number;
|
|
11
10
|
protected toMinorStep(majorStep: number, minorCount: number, minorStep?: number | DChartCoordinateTickMinorStepFunction): number;
|
|
12
11
|
protected calcStepMinor(majorStep: number, minorCount: number): number;
|
|
13
12
|
protected calcTickMinorPositions(step: number, count: number, majorPosition: number, rangeMin: number, rangeMax: number, iresult: number, result: Float64Array): void;
|
|
14
|
-
calculate(domainFrom: number, domainTo: number, majorCount: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult:
|
|
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;
|
|
15
14
|
protected toTheme(options?: DChartCoordinateTickOptions): DThemeChartCoordinateTick;
|
|
16
15
|
protected getThemeDefault(): DThemeChartCoordinateTick;
|
|
17
16
|
protected getType(): string;
|
|
@@ -41,7 +41,7 @@ export declare class DChartCoordinateLinear<CHART extends DBase = DBase> impleme
|
|
|
41
41
|
mapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
42
42
|
unmap(value: number): number;
|
|
43
43
|
unmapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
44
|
-
ticks(domainFrom: number, domainTo: number, majorCount: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult:
|
|
44
|
+
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;
|
|
45
45
|
protected toTheme(options?: DChartCoordinateOptions): DThemeChartCoordinate;
|
|
46
46
|
protected getThemeDefault(): DThemeChartCoordinate;
|
|
47
47
|
protected getType(): string;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
2
|
import { DChartCoordinate } from "./d-chart-coordinate";
|
|
3
|
-
import { DChartCoordinateTickOptions, DThemeChartCoordinateTick } from "./d-chart-coordinate-tick";
|
|
3
|
+
import { DChartCoordinateTick, DChartCoordinateTickOptions, DThemeChartCoordinateTick } from "./d-chart-coordinate-tick";
|
|
4
4
|
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
5
5
|
import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick-minor-step-function";
|
|
6
6
|
export interface DThemeChartCoordinateLogTick extends DThemeChartCoordinateTick {
|
|
7
7
|
}
|
|
8
|
-
export declare class DChartCoordinateLogTick<CHART extends DBase = DBase> {
|
|
8
|
+
export declare class DChartCoordinateLogTick<CHART extends DBase = DBase> implements DChartCoordinateTick<CHART> {
|
|
9
9
|
protected _theme: DThemeChartCoordinateTick;
|
|
10
10
|
constructor(options?: DChartCoordinateTickOptions);
|
|
11
11
|
protected toMajorStep(domainMin: number, domainMax: number, majorCount: number, majorStep?: number | DChartCoordinateTickMajorStepFunction): number;
|
|
12
|
-
protected calcStepMajor(domainMin: number, domainMax: number, majorCount: number): number;
|
|
13
12
|
protected toMinorStep(majorStep: number, minorCount: number, minorStep?: number | DChartCoordinateTickMinorStepFunction): number;
|
|
14
13
|
protected calcStepMinor(majorStep: number, minorCount: number): number;
|
|
15
14
|
protected calcTickMinorPositions(step: number, count: number, majorPosition: number, rangeMin: number, rangeMax: number, iresult: number, result: Float64Array): void;
|
|
16
|
-
calculate(domainFrom: number, domainTo: number, majorCount: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult:
|
|
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;
|
|
17
16
|
protected toTheme(options?: DChartCoordinateTickOptions): DThemeChartCoordinateTick;
|
|
18
17
|
protected getThemeDefault(): DThemeChartCoordinateTick;
|
|
19
18
|
protected getType(): string;
|
|
@@ -41,7 +41,7 @@ export declare class DChartCoordinateLog<CHART extends DBase = DBase> implements
|
|
|
41
41
|
mapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
42
42
|
unmap(value: number): number;
|
|
43
43
|
unmapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
44
|
-
ticks(domainFrom: number, domainTo: number, majorCount: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult:
|
|
44
|
+
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;
|
|
45
45
|
protected toTheme(options?: DChartCoordinateOptions): DThemeChartCoordinate;
|
|
46
46
|
protected getThemeDefault(): DThemeChartCoordinate;
|
|
47
47
|
protected getType(): string;
|
|
@@ -3,11 +3,11 @@ import { DChartCoordinate } from "./d-chart-coordinate";
|
|
|
3
3
|
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
4
4
|
import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick-minor-step-function";
|
|
5
5
|
export interface DThemeChartCoordinateTick {
|
|
6
|
-
|
|
6
|
+
toStep(domainMin: number, domainMax: number, majorCount: number): number;
|
|
7
7
|
}
|
|
8
8
|
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, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult:
|
|
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;
|
|
13
13
|
}
|
|
@@ -82,5 +82,5 @@ export interface DChartCoordinate<CHART extends DBase = DBase> {
|
|
|
82
82
|
* @param majorResult `majorResult.length` must be larger than `majorCount * 3`.
|
|
83
83
|
* @param minorResult `minorResult.length` must be larger than `minorCount * 3`.
|
|
84
84
|
*/
|
|
85
|
-
ticks(domainMin: number, domainMax: number, majorCount: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult:
|
|
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;
|
|
86
86
|
}
|
|
@@ -28,6 +28,7 @@ export declare class DThemeDarkChartAxisBase implements DThemeChartAxisBase {
|
|
|
28
28
|
getStrokeStyle(): EShapeStrokeStyle | undefined;
|
|
29
29
|
getTickEnable(): boolean;
|
|
30
30
|
getMajorTickCount(): number;
|
|
31
|
+
getMajorTickCapacity(count: number): number;
|
|
31
32
|
getMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;
|
|
32
33
|
getMajorTickSize(): number;
|
|
33
34
|
getMajorTickPosition(): DChartAxisTickPosition;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { DChartCoordinateTickMajorStepFunction } from "../../d-chart-coordinate-tick-major-step-function";
|
|
1
2
|
import { DThemeDarkChartAxisX } from "./d-theme-dark-chart-axis-x";
|
|
2
3
|
export declare class DThemeDarkChartAxisXDatetime extends DThemeDarkChartAxisX {
|
|
3
4
|
getMajorTickTextFormat(): string;
|
|
5
|
+
getMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;
|
|
4
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DThemeChartCoordinateTick } from "../../d-chart-coordinate-tick";
|
|
2
2
|
export declare class DThemeDarkChartCoordinateTick implements DThemeChartCoordinateTick {
|
|
3
|
-
|
|
3
|
+
toStep(domainMin: number, domainMax: number, majorCount: number): number;
|
|
4
4
|
}
|
|
@@ -28,6 +28,7 @@ export declare class DThemeWhiteChartAxisBase implements DThemeChartAxisBase {
|
|
|
28
28
|
getStrokeStyle(): EShapeStrokeStyle | undefined;
|
|
29
29
|
getTickEnable(): boolean;
|
|
30
30
|
getMajorTickCount(): number;
|
|
31
|
+
getMajorTickCapacity(count: number): number;
|
|
31
32
|
getMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;
|
|
32
33
|
getMajorTickSize(): number;
|
|
33
34
|
getMajorTickPosition(): DChartAxisTickPosition;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { DChartCoordinateTickMajorStepFunction } from "../../d-chart-coordinate-tick-major-step-function";
|
|
1
2
|
import { DThemeWhiteChartAxisX } from "./d-theme-white-chart-axis-x";
|
|
2
3
|
export declare class DThemeWhiteChartAxisXDatetime extends DThemeWhiteChartAxisX {
|
|
3
4
|
getMajorTickTextFormat(): string;
|
|
5
|
+
getMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;
|
|
4
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DThemeChartCoordinateTick } from "../../d-chart-coordinate-tick";
|
|
2
2
|
export declare class DThemeWhiteChartCoordinateTick implements DThemeChartCoordinateTick {
|
|
3
|
-
|
|
3
|
+
toStep(domainMin: number, domainMax: number, majorCount: number): number;
|
|
4
4
|
}
|
|
@@ -88,17 +88,20 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
|
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
DChartAxisBaseOptionParser.prototype.toTickMajor = function (theme, options) {
|
|
91
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
91
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
92
92
|
var major = options === null || options === void 0 ? void 0 : options.major;
|
|
93
93
|
var position = (_b = (_a = major === null || major === void 0 ? void 0 : major.position) !== null && _a !== void 0 ? _a : options === null || options === void 0 ? void 0 : options.position) !== null && _b !== void 0 ? _b : theme.getMajorTickPosition();
|
|
94
94
|
var optionsStyle = options === null || options === void 0 ? void 0 : options.style;
|
|
95
95
|
var style = EShapePointsStyles.from((_d = (_c = major === null || major === void 0 ? void 0 : major.style) !== null && _c !== void 0 ? _c : optionsStyle) !== null && _d !== void 0 ? _d : theme.getMajorTickStyle());
|
|
96
96
|
var optionsStroke = options === null || options === void 0 ? void 0 : options.stroke;
|
|
97
97
|
var stroke = this.toTickMajorStroke(theme, major === null || major === void 0 ? void 0 : major.stroke, optionsStroke);
|
|
98
|
+
var count = (_e = major === null || major === void 0 ? void 0 : major.count) !== null && _e !== void 0 ? _e : theme.getMajorTickCount();
|
|
99
|
+
var capacity = (_f = major === null || major === void 0 ? void 0 : major.capacity) !== null && _f !== void 0 ? _f : theme.getMajorTickCapacity(count);
|
|
98
100
|
return {
|
|
99
|
-
count:
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
count: count,
|
|
102
|
+
capacity: capacity,
|
|
103
|
+
step: (_g = major === null || major === void 0 ? void 0 : major.step) !== null && _g !== void 0 ? _g : theme.getMajorTickStep(),
|
|
104
|
+
size: (_h = major === null || major === void 0 ? void 0 : major.size) !== null && _h !== void 0 ? _h : theme.getMajorTickSize(),
|
|
102
105
|
position: this.toTickPosition(position),
|
|
103
106
|
style: style,
|
|
104
107
|
stroke: stroke,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-axis-base-options-parser.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAU5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,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,mCAAI,KAAK,CAAC,yBAAyB,EAAE;YACpE,QAAQ,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,KAAK,CAAC,uBAAuB,EAAE;SAC9D,CAAC;IACH,CAAC;IAES,qDAAgB,GAA1B,UACC,KAA0B,EAC1B,OAA6B;QAE7B,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC;IAES,iDAAY,GAAtB,UAAuB,KAA0B,EAAE,OAAgB;QAClE,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IACF,iCAAC;AAAD,CAAC,AA/fD,IA+fC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n\tDChartAxisBaseOptions,\n\tDChartAxisBaseTickContainerOptions,\n\tDChartAxisBaseTickMajorGridlineOptions,\n\tDChartAxisBaseTickMajorOptions,\n\tDChartAxisBaseTickMajorTextOptions,\n\tDThemeChartAxisBase\n} from \"./d-chart-axis-base-options\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption, EShapePointsStyles } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { EShapeBar } from \"./shape/variant/e-shape-bar\";\nimport { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { isString } from \"./util/is-string\";\nimport { NumberFormatter } from \"./util/number-formatter\";\nimport { NumberFormatters } from \"./util/number-formatters\";\n\nexport interface DChartAxisBaseGridline {\n\tenable: boolean;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tshapes?: EShapeBar[];\n}\n\nexport interface DChartAxisBaseTickMajor {\n\tcount: number;\n\tstep: number | DChartCoordinateTickMajorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickMajorTextOptions;\n\tformatter: NumberFormatter;\n\tshapes?: EShapeBar[];\n\n\tgridline: DChartAxisBaseGridline;\n}\n\nexport interface DChartAxisBaseTickMinor {\n\tcount: number;\n\tstep: number | DChartCoordinateTickMinorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tshapes?: EShapeBar[];\n}\n\nexport interface DChartAxisBaseBar {\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tshape?: EShapeBar;\n}\n\nexport interface DChartAxisBaseTickContainer {\n\tenable: boolean;\n\tmajor: DChartAxisBaseTickMajor;\n\tminor: DChartAxisBaseTickMinor;\n}\n\nexport class DChartAxisBaseOptionParser {\n\tprotected _coordinateIndex: number;\n\tprotected _position: DChartAxisPosition;\n\tprotected _tick: DChartAxisBaseTickContainer;\n\tprotected _label: DeepPartial<EShapeTextLike> | undefined;\n\tprotected _padding: number;\n\tprotected _bar: DChartAxisBaseBar;\n\n\tconstructor(theme: DThemeChartAxisBase, options?: DChartAxisBaseOptions) {\n\t\tthis._coordinateIndex = options?.coordinate ?? 0;\n\t\tthis._position = this.toPosition(theme, options);\n\t\tthis._tick = this.toTickContainer(theme, options);\n\t\tthis._label = this.toLabel(theme, options);\n\t\tthis._padding = options?.padding ?? theme.getPadding();\n\t\tthis._bar = this.toBar(theme, options);\n\t}\n\n\tget coordinateIndex(): number {\n\t\treturn this._coordinateIndex;\n\t}\n\n\tget padding(): number {\n\t\treturn this._padding;\n\t}\n\n\tget position(): DChartAxisPosition {\n\t\treturn this._position;\n\t}\n\n\tget bar(): DChartAxisBaseBar {\n\t\treturn this._bar;\n\t}\n\n\tget tick(): DChartAxisBaseTickContainer {\n\t\treturn this._tick;\n\t}\n\n\tget label(): DeepPartial<EShapeTextLike> | undefined {\n\t\treturn this._label;\n\t}\n\n\tprotected toPosition(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisPosition {\n\t\tconst position = options?.position;\n\t\tif (isString(position)) {\n\t\t\treturn DChartAxisPosition[position];\n\t\t} else if (position != null) {\n\t\t\treturn position;\n\t\t}\n\t\treturn theme.getPosition();\n\t}\n\n\tprotected toBar(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseBar {\n\t\treturn {\n\t\t\tstyle: options?.style ?? theme.getStyle(),\n\t\t\tstroke: this.toBarStroke(theme, options?.stroke),\n\t\t\tshape: undefined\n\t\t};\n\t}\n\n\tprotected toTickContainer(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseTickContainer {\n\t\tconst tick = options?.tick;\n\t\treturn {\n\t\t\tenable: tick?.enable ?? theme.getTickEnable(),\n\t\t\tmajor: this.toTickMajor(theme, tick),\n\t\t\tminor: this.toMinorTick(theme, tick)\n\t\t};\n\t}\n\n\tprotected toTickMajor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseTickMajor {\n\t\tconst major = options?.major;\n\t\tconst position = major?.position ?? options?.position ?? theme.getMajorTickPosition();\n\t\tconst optionsStyle = options?.style;\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tmajor?.style ?? optionsStyle ?? theme.getMajorTickStyle()\n\t\t);\n\t\tconst optionsStroke = options?.stroke;\n\t\tconst stroke = this.toTickMajorStroke(theme, major?.stroke, optionsStroke);\n\t\treturn {\n\t\t\tcount: major?.count ?? theme.getMajorTickCount(),\n\t\t\tstep: major?.step ?? theme.getMajorTickStep(),\n\t\t\tsize: major?.size ?? theme.getMajorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke,\n\t\t\ttext: this.toMajorTickText(theme, major?.text),\n\t\t\tformatter: this.toMajorTickFormatter(theme, major),\n\t\t\tshapes: undefined,\n\t\t\tgridline: this.toTickMajorGridline(theme, major?.gridline, optionsStyle, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickMajorGridline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions: DChartAxisBaseTickMajorGridlineOptions | undefined,\n\t\toptionsStyle: EShapePointsStyleOption | undefined,\n\t\toptionsStroke: Partial<EShapeStrokeLike> | undefined\n\t): DChartAxisBaseGridline {\n\t\tconst style = EShapePointsStyles.from(\n\t\t\toptions?.style ?? optionsStyle ?? theme.getMajorTickGridlineStyle()\n\t\t);\n\t\treturn {\n\t\t\tenable: options?.enable ?? theme.getMajorTickGridlineEnable(),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMajorGridlineStroke(theme, options?.stroke, optionsStroke),\n\t\t\tshapes: undefined\n\t\t};\n\t}\n\n\tprotected toTickPosition(\n\t\ttickPosition: DChartAxisTickPosition | keyof typeof DChartAxisTickPosition\n\t): EShapeBarPosition {\n\t\tconst position = this._position;\n\t\tif (tickPosition === DChartAxisTickPosition.OUTSIDE || tickPosition === \"OUTSIDE\") {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t} else {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected toMinorTick(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseTickMinor {\n\t\tconst minor = options?.minor;\n\t\tconst position = minor?.position ?? options?.position ?? theme.getMinorTickPosition();\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tminor?.style ?? options?.style ?? theme.getMinorTickStyle()\n\t\t);\n\t\treturn {\n\t\t\tcount: minor?.count ?? theme.getMinorTickCount(),\n\t\t\tstep: minor?.step ?? theme.getMinorTickStep(),\n\t\t\tsize: minor?.size ?? theme.getMinorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMinorStroke(theme, minor?.stroke, options?.stroke),\n\t\t\tshapes: undefined\n\t\t};\n\t}\n\n\tprotected toBarStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptions,\n\t\t\tundefined,\n\t\t\ttheme.getStrokeEnable(),\n\t\t\ttheme.getStrokeColor(),\n\t\t\ttheme.getStrokeAlpha(),\n\t\t\ttheme.getStrokeWidth(),\n\t\t\ttheme.getStrokeAlign(),\n\t\t\ttheme.getStrokeSide(),\n\t\t\ttheme.getStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickStrokeEnable(),\n\t\t\ttheme.getMajorTickStrokeColor(),\n\t\t\ttheme.getMajorTickStrokeAlpha(),\n\t\t\ttheme.getMajorTickStrokeWidth(),\n\t\t\ttheme.getMajorTickStrokeAlign(),\n\t\t\ttheme.getMajorTickStrokeSide(),\n\t\t\ttheme.getMajorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorGridlineStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickGridlineStrokeEnable(),\n\t\t\ttheme.getMajorTickGridlineStrokeColor(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlpha(),\n\t\t\ttheme.getMajorTickGridlineStrokeWidth(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlign(),\n\t\t\ttheme.getMajorTickGridlineStrokeSide(),\n\t\t\ttheme.getMajorTickGridlineStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMinorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMinorTickStrokeEnable(),\n\t\t\ttheme.getMinorTickStrokeColor(),\n\t\t\ttheme.getMinorTickStrokeAlpha(),\n\t\t\ttheme.getMinorTickStrokeWidth(),\n\t\t\ttheme.getMinorTickStrokeAlign(),\n\t\t\ttheme.getMinorTickStrokeSide(),\n\t\t\ttheme.getMinorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toStroke(\n\t\toptionsA: Partial<EShapeStrokeLike> | undefined,\n\t\toptionsB: Partial<EShapeStrokeLike> | undefined,\n\t\tenable: boolean | undefined,\n\t\tcolor: number | undefined,\n\t\talpha: number | undefined,\n\t\twidth: number | undefined,\n\t\talign: number | undefined,\n\t\tside: EShapeStrokeSide | undefined,\n\t\tstyle: EShapeStrokeStyle | undefined\n\t): Partial<EShapeStrokeLike> {\n\t\tif (optionsA) {\n\t\t\tif (optionsB) {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? optionsB.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? optionsB.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? optionsB.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? optionsB.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? optionsB.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? optionsB.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? optionsB.style ?? style\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? style\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (optionsB) {\n\t\t\treturn {\n\t\t\t\tenable: optionsB.enable ?? enable,\n\t\t\t\tcolor: optionsB.color ?? color,\n\t\t\t\talpha: optionsB.alpha ?? alpha,\n\t\t\t\twidth: optionsB.width ?? width,\n\t\t\t\talign: optionsB.align ?? align,\n\t\t\t\tside: optionsB.side ?? side,\n\t\t\t\tstyle: optionsB.style ?? style\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tenable,\n\t\t\t\tcolor,\n\t\t\t\talpha,\n\t\t\t\twidth,\n\t\t\t\talign,\n\t\t\t\tside,\n\t\t\t\tstyle\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickFormatter(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMajorOptions\n\t): NumberFormatter {\n\t\tconst text = options?.text;\n\t\tif (text) {\n\t\t\tconst format = text.format;\n\t\t\tif (format != null) {\n\t\t\t\treturn NumberFormatters.create(format);\n\t\t\t} else {\n\t\t\t\tconst formatter = text.formatter;\n\t\t\t\tif (formatter) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tformat: formatter\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn NumberFormatters.create(theme.getMajorTickTextFormat());\n\t}\n\n\tprotected toMajorTickText(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMajorTextOptions\n\t): DChartAxisBaseTickMajorTextOptions | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toMajorTickTextColor(theme, options.color),\n\t\t\talpha: options.alpha,\n\t\t\tfamily: options.family,\n\t\t\tsize: options.size,\n\t\t\tweight: options.weight,\n\t\t\talign: this.toMajorTickTextAlign(theme, options.align),\n\t\t\toffset: this.toMajorTickTextOffset(theme, options.offset),\n\t\t\tstyle: options.style,\n\t\t\toutline: this.toMajorTickTextOutline(theme, options.outline),\n\t\t\tspacing: this.toMajorTickTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMajorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toMajorTickTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toMajorTickTextOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toMajorTickTextOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toTickMajorTextDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getMajorTickTextDirection();\n\t}\n\n\tprotected toMajorTickTextColor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: number\n\t): number | undefined {\n\t\treturn options ?? theme.getMajorTickTextColor();\n\t}\n\n\tprotected toLabel(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DeepPartial<EShapeTextLike> | undefined {\n\t\tconst label = options?.label;\n\t\tif (label) {\n\t\t\treturn {\n\t\t\t\tvalue: label.value,\n\t\t\t\tcolor: this.toLabelColor(theme, label.color),\n\t\t\t\talpha: label.alpha,\n\t\t\t\tfamily: label.family,\n\t\t\t\tsize: label.size,\n\t\t\t\tweight: label.weight,\n\t\t\t\talign: this.toLabelAlign(theme, label.align),\n\t\t\t\toffset: this.toLabelOffset(theme, label.offset),\n\t\t\t\tstyle: label.style,\n\t\t\t\toutline: this.toLabelOutline(theme, label.outline),\n\t\t\t\tspacing: this.toLabelSpacing(theme, label.spacing),\n\t\t\t\tdirection: this.toLabelDirection(theme, label.direction),\n\t\t\t\tpadding: this.toLabelPadding(theme, label.padding),\n\t\t\t\tclipping: label.clipping\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getLabelAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toLabelOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getLabelPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toLabelDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getLabelDirection();\n\t}\n\n\tprotected toLabelColor(theme: DThemeChartAxisBase, options?: number): number | undefined {\n\t\treturn options ?? theme.getLabelColor();\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"d-chart-axis-base-options-parser.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options-parser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAU5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AA8C5D;IAQC,oCAAY,KAA0B,EAAE,OAA+B;;QACtE,IAAI,CAAC,gBAAgB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QACvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED,sBAAI,uDAAe;aAAnB;YACC,OAAO,IAAI,CAAC,gBAAgB,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAI,+CAAO;aAAX;YACC,OAAO,IAAI,CAAC,QAAQ,CAAC;QACtB,CAAC;;;OAAA;IAED,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AxisBaseTickMajorGridlineOptions,\n\tDChartAxisBaseTickMajorOptions,\n\tDChartAxisBaseTickMajorTextOptions,\n\tDThemeChartAxisBase\n} from \"./d-chart-axis-base-options\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption, EShapePointsStyles } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { EShapeBar } from \"./shape/variant/e-shape-bar\";\nimport { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { isString } from \"./util/is-string\";\nimport { NumberFormatter } from \"./util/number-formatter\";\nimport { NumberFormatters } from \"./util/number-formatters\";\n\nexport interface DChartAxisBaseGridline {\n\tenable: boolean;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tshapes?: EShapeBar[];\n}\n\nexport interface DChartAxisBaseTickMajor {\n\tcapacity: number;\n\tcount: number;\n\tstep: number | DChartCoordinateTickMajorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickMajorTextOptions;\n\tformatter: NumberFormatter;\n\tshapes?: EShapeBar[];\n\n\tgridline: DChartAxisBaseGridline;\n}\n\nexport interface DChartAxisBaseTickMinor {\n\tcount: number;\n\tstep: number | DChartCoordinateTickMinorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tshapes?: EShapeBar[];\n}\n\nexport interface DChartAxisBaseBar {\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tshape?: EShapeBar;\n}\n\nexport interface DChartAxisBaseTickContainer {\n\tenable: boolean;\n\tmajor: DChartAxisBaseTickMajor;\n\tminor: DChartAxisBaseTickMinor;\n}\n\nexport class DChartAxisBaseOptionParser {\n\tprotected _coordinateIndex: number;\n\tprotected _position: DChartAxisPosition;\n\tprotected _tick: DChartAxisBaseTickContainer;\n\tprotected _label: DeepPartial<EShapeTextLike> | undefined;\n\tprotected _padding: number;\n\tprotected _bar: DChartAxisBaseBar;\n\n\tconstructor(theme: DThemeChartAxisBase, options?: DChartAxisBaseOptions) {\n\t\tthis._coordinateIndex = options?.coordinate ?? 0;\n\t\tthis._position = this.toPosition(theme, options);\n\t\tthis._tick = this.toTickContainer(theme, options);\n\t\tthis._label = this.toLabel(theme, options);\n\t\tthis._padding = options?.padding ?? theme.getPadding();\n\t\tthis._bar = this.toBar(theme, options);\n\t}\n\n\tget coordinateIndex(): number {\n\t\treturn this._coordinateIndex;\n\t}\n\n\tget padding(): number {\n\t\treturn this._padding;\n\t}\n\n\tget position(): DChartAxisPosition {\n\t\treturn this._position;\n\t}\n\n\tget bar(): DChartAxisBaseBar {\n\t\treturn this._bar;\n\t}\n\n\tget tick(): DChartAxisBaseTickContainer {\n\t\treturn this._tick;\n\t}\n\n\tget label(): DeepPartial<EShapeTextLike> | undefined {\n\t\treturn this._label;\n\t}\n\n\tprotected toPosition(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisPosition {\n\t\tconst position = options?.position;\n\t\tif (isString(position)) {\n\t\t\treturn DChartAxisPosition[position];\n\t\t} else if (position != null) {\n\t\t\treturn position;\n\t\t}\n\t\treturn theme.getPosition();\n\t}\n\n\tprotected toBar(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseBar {\n\t\treturn {\n\t\t\tstyle: options?.style ?? theme.getStyle(),\n\t\t\tstroke: this.toBarStroke(theme, options?.stroke),\n\t\t\tshape: undefined\n\t\t};\n\t}\n\n\tprotected toTickContainer(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DChartAxisBaseTickContainer {\n\t\tconst tick = options?.tick;\n\t\treturn {\n\t\t\tenable: tick?.enable ?? theme.getTickEnable(),\n\t\t\tmajor: this.toTickMajor(theme, tick),\n\t\t\tminor: this.toMinorTick(theme, tick)\n\t\t};\n\t}\n\n\tprotected toTickMajor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseTickMajor {\n\t\tconst major = options?.major;\n\t\tconst position = major?.position ?? options?.position ?? theme.getMajorTickPosition();\n\t\tconst optionsStyle = options?.style;\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tmajor?.style ?? optionsStyle ?? theme.getMajorTickStyle()\n\t\t);\n\t\tconst optionsStroke = options?.stroke;\n\t\tconst stroke = this.toTickMajorStroke(theme, major?.stroke, optionsStroke);\n\t\tconst count = major?.count ?? theme.getMajorTickCount();\n\t\tconst capacity = major?.capacity ?? theme.getMajorTickCapacity(count);\n\t\treturn {\n\t\t\tcount,\n\t\t\tcapacity,\n\t\t\tstep: major?.step ?? theme.getMajorTickStep(),\n\t\t\tsize: major?.size ?? theme.getMajorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke,\n\t\t\ttext: this.toMajorTickText(theme, major?.text),\n\t\t\tformatter: this.toMajorTickFormatter(theme, major),\n\t\t\tshapes: undefined,\n\t\t\tgridline: this.toTickMajorGridline(theme, major?.gridline, optionsStyle, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickMajorGridline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions: DChartAxisBaseTickMajorGridlineOptions | undefined,\n\t\toptionsStyle: EShapePointsStyleOption | undefined,\n\t\toptionsStroke: Partial<EShapeStrokeLike> | undefined\n\t): DChartAxisBaseGridline {\n\t\tconst style = EShapePointsStyles.from(\n\t\t\toptions?.style ?? optionsStyle ?? theme.getMajorTickGridlineStyle()\n\t\t);\n\t\treturn {\n\t\t\tenable: options?.enable ?? theme.getMajorTickGridlineEnable(),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMajorGridlineStroke(theme, options?.stroke, optionsStroke),\n\t\t\tshapes: undefined\n\t\t};\n\t}\n\n\tprotected toTickPosition(\n\t\ttickPosition: DChartAxisTickPosition | keyof typeof DChartAxisTickPosition\n\t): EShapeBarPosition {\n\t\tconst position = this._position;\n\t\tif (tickPosition === DChartAxisTickPosition.OUTSIDE || tickPosition === \"OUTSIDE\") {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t} else {\n\t\t\tswitch (position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\treturn EShapeBarPosition.BOTTOM;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\treturn EShapeBarPosition.RIGHT;\n\t\t\t\tdefault:\n\t\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected toMinorTick(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickContainerOptions\n\t): DChartAxisBaseTickMinor {\n\t\tconst minor = options?.minor;\n\t\tconst position = minor?.position ?? options?.position ?? theme.getMinorTickPosition();\n\t\tconst style = EShapePointsStyles.from(\n\t\t\tminor?.style ?? options?.style ?? theme.getMinorTickStyle()\n\t\t);\n\t\treturn {\n\t\t\tcount: minor?.count ?? theme.getMinorTickCount(),\n\t\t\tstep: minor?.step ?? theme.getMinorTickStep(),\n\t\t\tsize: minor?.size ?? theme.getMinorTickSize(),\n\t\t\tposition: this.toTickPosition(position),\n\t\t\tstyle,\n\t\t\tstroke: this.toTickMinorStroke(theme, minor?.stroke, options?.stroke),\n\t\t\tshapes: undefined\n\t\t};\n\t}\n\n\tprotected toBarStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptions,\n\t\t\tundefined,\n\t\t\ttheme.getStrokeEnable(),\n\t\t\ttheme.getStrokeColor(),\n\t\t\ttheme.getStrokeAlpha(),\n\t\t\ttheme.getStrokeWidth(),\n\t\t\ttheme.getStrokeAlign(),\n\t\t\ttheme.getStrokeSide(),\n\t\t\ttheme.getStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickStrokeEnable(),\n\t\t\ttheme.getMajorTickStrokeColor(),\n\t\t\ttheme.getMajorTickStrokeAlpha(),\n\t\t\ttheme.getMajorTickStrokeWidth(),\n\t\t\ttheme.getMajorTickStrokeAlign(),\n\t\t\ttheme.getMajorTickStrokeSide(),\n\t\t\ttheme.getMajorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMajorGridlineStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMajorTickGridlineStrokeEnable(),\n\t\t\ttheme.getMajorTickGridlineStrokeColor(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlpha(),\n\t\t\ttheme.getMajorTickGridlineStrokeWidth(),\n\t\t\ttheme.getMajorTickGridlineStrokeAlign(),\n\t\t\ttheme.getMajorTickGridlineStrokeSide(),\n\t\t\ttheme.getMajorTickGridlineStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toTickMinorStroke(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptionsA?: Partial<EShapeStrokeLike>,\n\t\toptionsB?: Partial<EShapeStrokeLike>\n\t): Partial<EShapeStrokeLike> {\n\t\treturn this.toStroke(\n\t\t\toptionsA,\n\t\t\toptionsB,\n\t\t\ttheme.getMinorTickStrokeEnable(),\n\t\t\ttheme.getMinorTickStrokeColor(),\n\t\t\ttheme.getMinorTickStrokeAlpha(),\n\t\t\ttheme.getMinorTickStrokeWidth(),\n\t\t\ttheme.getMinorTickStrokeAlign(),\n\t\t\ttheme.getMinorTickStrokeSide(),\n\t\t\ttheme.getMinorTickStrokeStyle()\n\t\t);\n\t}\n\n\tprotected toStroke(\n\t\toptionsA: Partial<EShapeStrokeLike> | undefined,\n\t\toptionsB: Partial<EShapeStrokeLike> | undefined,\n\t\tenable: boolean | undefined,\n\t\tcolor: number | undefined,\n\t\talpha: number | undefined,\n\t\twidth: number | undefined,\n\t\talign: number | undefined,\n\t\tside: EShapeStrokeSide | undefined,\n\t\tstyle: EShapeStrokeStyle | undefined\n\t): Partial<EShapeStrokeLike> {\n\t\tif (optionsA) {\n\t\t\tif (optionsB) {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? optionsB.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? optionsB.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? optionsB.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? optionsB.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? optionsB.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? optionsB.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? optionsB.style ?? style\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\treturn {\n\t\t\t\t\tenable: optionsA.enable ?? enable,\n\t\t\t\t\tcolor: optionsA.color ?? color,\n\t\t\t\t\talpha: optionsA.alpha ?? alpha,\n\t\t\t\t\twidth: optionsA.width ?? width,\n\t\t\t\t\talign: optionsA.align ?? align,\n\t\t\t\t\tside: optionsA.side ?? side,\n\t\t\t\t\tstyle: optionsA.style ?? style\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (optionsB) {\n\t\t\treturn {\n\t\t\t\tenable: optionsB.enable ?? enable,\n\t\t\t\tcolor: optionsB.color ?? color,\n\t\t\t\talpha: optionsB.alpha ?? alpha,\n\t\t\t\twidth: optionsB.width ?? width,\n\t\t\t\talign: optionsB.align ?? align,\n\t\t\t\tside: optionsB.side ?? side,\n\t\t\t\tstyle: optionsB.style ?? style\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tenable,\n\t\t\t\tcolor,\n\t\t\t\talpha,\n\t\t\t\twidth,\n\t\t\t\talign,\n\t\t\t\tside,\n\t\t\t\tstyle\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickFormatter(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMajorOptions\n\t): NumberFormatter {\n\t\tconst text = options?.text;\n\t\tif (text) {\n\t\t\tconst format = text.format;\n\t\t\tif (format != null) {\n\t\t\t\treturn NumberFormatters.create(format);\n\t\t\t} else {\n\t\t\t\tconst formatter = text.formatter;\n\t\t\t\tif (formatter) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tformat: formatter\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn NumberFormatters.create(theme.getMajorTickTextFormat());\n\t}\n\n\tprotected toMajorTickText(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseTickMajorTextOptions\n\t): DChartAxisBaseTickMajorTextOptions | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toMajorTickTextColor(theme, options.color),\n\t\t\talpha: options.alpha,\n\t\t\tfamily: options.family,\n\t\t\tsize: options.size,\n\t\t\tweight: options.weight,\n\t\t\talign: this.toMajorTickTextAlign(theme, options.align),\n\t\t\toffset: this.toMajorTickTextOffset(theme, options.offset),\n\t\t\tstyle: options.style,\n\t\t\toutline: this.toMajorTickTextOutline(theme, options.outline),\n\t\t\tspacing: this.toMajorTickTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMajorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toMajorTickTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toMajorTickTextOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toMajorTickTextOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toMajorTickTextPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMajorTickTextPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getMajorTickTextPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toTickMajorTextDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getMajorTickTextDirection();\n\t}\n\n\tprotected toMajorTickTextColor(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: number\n\t): number | undefined {\n\t\treturn options ?? theme.getMajorTickTextColor();\n\t}\n\n\tprotected toLabel(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: DChartAxisBaseOptions\n\t): DeepPartial<EShapeTextLike> | undefined {\n\t\tconst label = options?.label;\n\t\tif (label) {\n\t\t\treturn {\n\t\t\t\tvalue: label.value,\n\t\t\t\tcolor: this.toLabelColor(theme, label.color),\n\t\t\t\talpha: label.alpha,\n\t\t\t\tfamily: label.family,\n\t\t\t\tsize: label.size,\n\t\t\t\tweight: label.weight,\n\t\t\t\talign: this.toLabelAlign(theme, label.align),\n\t\t\t\toffset: this.toLabelOffset(theme, label.offset),\n\t\t\t\tstyle: label.style,\n\t\t\t\toutline: this.toLabelOutline(theme, label.outline),\n\t\t\t\tspacing: this.toLabelSpacing(theme, label.spacing),\n\t\t\t\tdirection: this.toLabelDirection(theme, label.direction),\n\t\t\t\tpadding: this.toLabelPadding(theme, label.padding),\n\t\t\t\tclipping: label.clipping\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelOutline(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOutlineLike>\n\t): Partial<EShapeTextOutlineLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\tenable: options.enable,\n\t\t\t\tcolor: options.color,\n\t\t\t\talpha: options.alpha,\n\t\t\t\twidth: options.width\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelAlign(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextAlignLike>\n\t): Partial<EShapeTextAlignLike> | undefined {\n\t\tconst position = this._position;\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getLabelAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toLabelOffset(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelSpacing(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> | undefined {\n\t\tif (options) {\n\t\t\treturn {\n\t\t\t\thorizontal: options.horizontal,\n\t\t\t\tvertical: options.vertical\n\t\t\t};\n\t\t}\n\t}\n\n\tprotected toLabelPadding(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getLabelPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getLabelPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toLabelDirection(\n\t\ttheme: DThemeChartAxisBase,\n\t\toptions?: EShapeTextDirection\n\t): EShapeTextDirection {\n\t\treturn options ?? theme.getLabelDirection();\n\t}\n\n\tprotected toLabelColor(theme: DThemeChartAxisBase, options?: number): number | undefined {\n\t\treturn options ?? theme.getLabelColor();\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-chart-axis-base-options.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DChartAxisOptions } from \"./d-chart-axis\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike, EShapeTextStyle, EShapeTextWeight } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextAlignHorizontal } from \"./shape/e-shape-text-align-horizontal\";\nimport { EShapeTextAlignVertical } from \"./shape/e-shape-text-align-vertical\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { NumberFormatterFunction } from \"./util/number-formatter-function\";\n\nexport interface DChartAxisBaseTickMajorTextOptions {\n\t/** A format. Please refer to {@link NumberFormatter} for format details. */\n\tformat?: string;\n\n\t/** A formatter function. */\n\tformatter?: NumberFormatterFunction;\n\n\tcolor?: number;\n\talpha?: number;\n\tfamily?: string;\n\tsize?: number;\n\tweight?: EShapeTextWeight;\n\talign?: Partial<EShapeTextAlignLike>;\n\toffset?: Partial<EShapeTextOffsetLike>;\n\tstyle?: EShapeTextStyle;\n\toutline?: Partial<EShapeTextOutlineLike>;\n\tspacing?: Partial<EShapeTextOffsetLike>;\n\tdirection?: EShapeTextDirection;\n\tpadding?: Partial<EShapeTextOffsetLike>;\n\tclipping?: boolean;\n}\n\nexport interface DChartAxisBaseTickMajorGridlineOptions {\n\tenable?: boolean;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport type DChartAxisTickPositionOption =\n\t| DChartAxisTickPosition\n\t| keyof typeof DChartAxisTickPosition;\n\nexport interface DChartAxisBaseTickMajorOptions {\n\tcount?: number;\n\tstep?: number | DChartCoordinateTickMajorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickMajorTextOptions;\n\tgridline?: DChartAxisBaseTickMajorGridlineOptions;\n}\n\nexport interface DChartAxisBaseTickMinorOptions {\n\tcount?: number;\n\tstep?: number | DChartCoordinateTickMinorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseTickContainerOptions {\n\tenable?: boolean;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tmajor?: DChartAxisBaseTickMajorOptions;\n\tminor?: DChartAxisBaseTickMinorOptions;\n}\n\nexport interface DChartAxisBaseOptions extends DChartAxisOptions {\n\ttick?: DChartAxisBaseTickContainerOptions;\n\tlabel?: DeepPartial<EShapeTextLike>;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tcoordinate?: number;\n\tpadding?: number;\n\ttheme?: DThemeChartAxisBase;\n}\n\nexport interface DThemeChartAxisBase {\n\tgetPosition(): DChartAxisPosition;\n\tgetPadding(): number;\n\n\tgetLabelAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetLabelAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetLabelPaddingHorizontal(): number;\n\tgetLabelPaddingVertical(): number;\n\tgetLabelDirection(): EShapeTextDirection;\n\tgetLabelColor(): number | undefined;\n\n\tgetStyle(): EShapePointsStyle | undefined;\n\n\tgetStrokeEnable(): boolean | undefined;\n\tgetStrokeColor(): number | undefined;\n\tgetStrokeAlpha(): number | undefined;\n\tgetStrokeWidth(): number | undefined;\n\tgetStrokeAlign(): number | undefined;\n\tgetStrokeSide(): EShapeStrokeSide | undefined;\n\tgetStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetTickEnable(): boolean;\n\n\tgetMajorTickCount(): number;\n\tgetMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;\n\tgetMajorTickSize(): number;\n\tgetMajorTickPosition(): DChartAxisTickPosition;\n\tgetMajorTickStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickTextAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetMajorTickTextAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetMajorTickTextDirection(): EShapeTextDirection;\n\tgetMajorTickTextFormat(): string;\n\tgetMajorTickTextColor(): number | undefined;\n\tgetMajorTickTextPaddingHorizontal(): number;\n\tgetMajorTickTextPaddingVertical(): number;\n\tgetMajorTickStrokeEnable(): boolean | undefined;\n\tgetMajorTickStrokeColor(): number | undefined;\n\tgetMajorTickStrokeAlpha(): number | undefined;\n\tgetMajorTickStrokeWidth(): number | undefined;\n\tgetMajorTickStrokeAlign(): number | undefined;\n\tgetMajorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMajorTickGridlineEnable(): boolean;\n\tgetMajorTickGridlineStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickGridlineStrokeEnable(): boolean | undefined;\n\tgetMajorTickGridlineStrokeColor(): number | undefined;\n\tgetMajorTickGridlineStrokeAlpha(): number | undefined;\n\tgetMajorTickGridlineStrokeWidth(): number | undefined;\n\tgetMajorTickGridlineStrokeAlign(): number | undefined;\n\tgetMajorTickGridlineStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickGridlineStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMinorTickCount(): number;\n\tgetMinorTickStep(): number | DChartCoordinateTickMinorStepFunction | undefined;\n\tgetMinorTickSize(): number;\n\tgetMinorTickPosition(): DChartAxisTickPosition;\n\tgetMinorTickStyle(): EShapePointsStyle | undefined;\n\tgetMinorTickStrokeEnable(): boolean | undefined;\n\tgetMinorTickStrokeColor(): number | undefined;\n\tgetMinorTickStrokeAlpha(): number | undefined;\n\tgetMinorTickStrokeWidth(): number | undefined;\n\tgetMinorTickStrokeAlign(): number | undefined;\n\tgetMinorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMinorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"d-chart-axis-base-options.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-options.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DChartAxisOptions } from \"./d-chart-axis\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { DChartAxisTickPosition } from \"./d-chart-axis-tick-position\";\nimport { DChartCoordinateTickMajorStepFunction } from \"./d-chart-coordinate-tick-major-step-function\";\nimport { DChartCoordinateTickMinorStepFunction } from \"./d-chart-coordinate-tick-minor-step-function\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapePointsStyleOption } from \"./shape/e-shape-points-styles\";\nimport { EShapeStrokeLike } from \"./shape/e-shape-stroke\";\nimport { EShapeStrokeSide } from \"./shape/e-shape-stroke-side\";\nimport { EShapeStrokeStyle } from \"./shape/e-shape-stroke-style\";\nimport { EShapeTextLike, EShapeTextStyle, EShapeTextWeight } from \"./shape/e-shape-text\";\nimport { EShapeTextAlignLike } from \"./shape/e-shape-text-align\";\nimport { EShapeTextAlignHorizontal } from \"./shape/e-shape-text-align-horizontal\";\nimport { EShapeTextAlignVertical } from \"./shape/e-shape-text-align-vertical\";\nimport { EShapeTextDirection } from \"./shape/e-shape-text-direction\";\nimport { EShapeTextOffsetLike } from \"./shape/e-shape-text-offset\";\nimport { EShapeTextOutlineLike } from \"./shape/e-shape-text-outline\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { NumberFormatterFunction } from \"./util/number-formatter-function\";\n\nexport interface DChartAxisBaseTickMajorTextOptions {\n\t/** A format. Please refer to {@link NumberFormatter} for format details. */\n\tformat?: string;\n\n\t/** A formatter function. */\n\tformatter?: NumberFormatterFunction;\n\n\tcolor?: number;\n\talpha?: number;\n\tfamily?: string;\n\tsize?: number;\n\tweight?: EShapeTextWeight;\n\talign?: Partial<EShapeTextAlignLike>;\n\toffset?: Partial<EShapeTextOffsetLike>;\n\tstyle?: EShapeTextStyle;\n\toutline?: Partial<EShapeTextOutlineLike>;\n\tspacing?: Partial<EShapeTextOffsetLike>;\n\tdirection?: EShapeTextDirection;\n\tpadding?: Partial<EShapeTextOffsetLike>;\n\tclipping?: boolean;\n}\n\nexport interface DChartAxisBaseTickMajorGridlineOptions {\n\tenable?: boolean;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport type DChartAxisTickPositionOption =\n\t| DChartAxisTickPosition\n\t| keyof typeof DChartAxisTickPosition;\n\nexport interface DChartAxisBaseTickMajorOptions {\n\tcount?: number;\n\tcapacity?: number;\n\tstep?: number | DChartCoordinateTickMajorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseTickMajorTextOptions;\n\tgridline?: DChartAxisBaseTickMajorGridlineOptions;\n}\n\nexport interface DChartAxisBaseTickMinorOptions {\n\tcount?: number;\n\tstep?: number | DChartCoordinateTickMinorStepFunction;\n\tsize?: number;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseTickContainerOptions {\n\tenable?: boolean;\n\tposition?: DChartAxisTickPositionOption;\n\tstyle?: EShapePointsStyleOption;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tmajor?: DChartAxisBaseTickMajorOptions;\n\tminor?: DChartAxisBaseTickMinorOptions;\n}\n\nexport interface DChartAxisBaseOptions extends DChartAxisOptions {\n\ttick?: DChartAxisBaseTickContainerOptions;\n\tlabel?: DeepPartial<EShapeTextLike>;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\tcoordinate?: number;\n\tpadding?: number;\n\ttheme?: DThemeChartAxisBase;\n}\n\nexport interface DThemeChartAxisBase {\n\tgetPosition(): DChartAxisPosition;\n\tgetPadding(): number;\n\n\tgetLabelAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetLabelAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetLabelPaddingHorizontal(): number;\n\tgetLabelPaddingVertical(): number;\n\tgetLabelDirection(): EShapeTextDirection;\n\tgetLabelColor(): number | undefined;\n\n\tgetStyle(): EShapePointsStyle | undefined;\n\n\tgetStrokeEnable(): boolean | undefined;\n\tgetStrokeColor(): number | undefined;\n\tgetStrokeAlpha(): number | undefined;\n\tgetStrokeWidth(): number | undefined;\n\tgetStrokeAlign(): number | undefined;\n\tgetStrokeSide(): EShapeStrokeSide | undefined;\n\tgetStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetTickEnable(): boolean;\n\n\tgetMajorTickCount(): number;\n\tgetMajorTickCapacity(count: number): number;\n\tgetMajorTickStep(): number | DChartCoordinateTickMajorStepFunction | undefined;\n\tgetMajorTickSize(): number;\n\tgetMajorTickPosition(): DChartAxisTickPosition;\n\tgetMajorTickStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickTextAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;\n\tgetMajorTickTextAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;\n\tgetMajorTickTextDirection(): EShapeTextDirection;\n\tgetMajorTickTextFormat(): string;\n\tgetMajorTickTextColor(): number | undefined;\n\tgetMajorTickTextPaddingHorizontal(): number;\n\tgetMajorTickTextPaddingVertical(): number;\n\tgetMajorTickStrokeEnable(): boolean | undefined;\n\tgetMajorTickStrokeColor(): number | undefined;\n\tgetMajorTickStrokeAlpha(): number | undefined;\n\tgetMajorTickStrokeWidth(): number | undefined;\n\tgetMajorTickStrokeAlign(): number | undefined;\n\tgetMajorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMajorTickGridlineEnable(): boolean;\n\tgetMajorTickGridlineStyle(): EShapePointsStyle | undefined;\n\tgetMajorTickGridlineStrokeEnable(): boolean | undefined;\n\tgetMajorTickGridlineStrokeColor(): number | undefined;\n\tgetMajorTickGridlineStrokeAlpha(): number | undefined;\n\tgetMajorTickGridlineStrokeWidth(): number | undefined;\n\tgetMajorTickGridlineStrokeAlign(): number | undefined;\n\tgetMajorTickGridlineStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMajorTickGridlineStrokeStyle(): EShapeStrokeStyle | undefined;\n\n\tgetMinorTickCount(): number;\n\tgetMinorTickStep(): number | DChartCoordinateTickMinorStepFunction | undefined;\n\tgetMinorTickSize(): number;\n\tgetMinorTickPosition(): DChartAxisTickPosition;\n\tgetMinorTickStyle(): EShapePointsStyle | undefined;\n\tgetMinorTickStrokeEnable(): boolean | undefined;\n\tgetMinorTickStrokeColor(): number | undefined;\n\tgetMinorTickStrokeAlpha(): number | undefined;\n\tgetMinorTickStrokeWidth(): number | undefined;\n\tgetMinorTickStrokeAlign(): number | undefined;\n\tgetMinorTickStrokeSide(): EShapeStrokeSide | undefined;\n\tgetMinorTickStrokeStyle(): EShapeStrokeStyle | undefined;\n}\n"]}
|
|
@@ -23,10 +23,8 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
23
23
|
this._tick = tick;
|
|
24
24
|
this._label = parser.label;
|
|
25
25
|
this._bar = parser.bar;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
this._majorTicks = new Float64Array(tickMajorCount * 3);
|
|
29
|
-
this._minorTicks = new Float64Array((tickMajorCount + 1) * tickMinorCount * 3);
|
|
26
|
+
this._majorTicks = [];
|
|
27
|
+
this._minorTicks = [];
|
|
30
28
|
}
|
|
31
29
|
Object.defineProperty(DChartAxisBase.prototype, "position", {
|
|
32
30
|
get: function () {
|
|
@@ -73,18 +71,19 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
73
71
|
var tick = this._tick;
|
|
74
72
|
var majorTick = tick.major;
|
|
75
73
|
var majorCount = majorTick.count;
|
|
74
|
+
var majorCapacity = majorTick.capacity;
|
|
76
75
|
var majorStep = majorTick.step;
|
|
77
76
|
var majorFormatter = majorTick.formatter;
|
|
78
77
|
var minorTick = tick.minor;
|
|
79
78
|
var minorCountPerMajor = minorTick.count;
|
|
80
|
-
var minorCount = (
|
|
79
|
+
var minorCount = (majorCapacity + 1) * minorCountPerMajor;
|
|
81
80
|
var minorStep = minorTick.step;
|
|
82
81
|
var majorTicks = this._majorTicks;
|
|
83
82
|
var minorTicks = this._minorTicks;
|
|
84
|
-
coordinate.ticks(domainMin, domainMax, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
83
|
+
coordinate.ticks(domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
85
84
|
var a = transform.a;
|
|
86
85
|
var tx = transform.tx;
|
|
87
|
-
for (var i = 0; i <
|
|
86
|
+
for (var i = 0; i < majorCapacity; ++i) {
|
|
88
87
|
var majorShape = majorShapes[i];
|
|
89
88
|
var imajorTick = i * 3;
|
|
90
89
|
var majorTickPosition = majorTicks[imajorTick + 0];
|
|
@@ -134,18 +133,19 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
134
133
|
var tick = this._tick;
|
|
135
134
|
var majorTick = tick.major;
|
|
136
135
|
var majorCount = majorTick.count;
|
|
136
|
+
var majorCapacity = majorTick.capacity;
|
|
137
137
|
var majorStep = majorTick.step;
|
|
138
138
|
var majorFormatter = majorTick.formatter;
|
|
139
139
|
var minorTick = tick.minor;
|
|
140
140
|
var minorCountPerMajor = minorTick.count;
|
|
141
|
-
var minorCount = (
|
|
141
|
+
var minorCount = (majorCapacity + 1) * minorCountPerMajor;
|
|
142
142
|
var minorStep = minorTick.step;
|
|
143
143
|
var majorTicks = this._majorTicks;
|
|
144
144
|
var minorTicks = this._minorTicks;
|
|
145
|
-
coordinate.ticks(domainMin, domainMax, majorCount, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
145
|
+
coordinate.ticks(domainMin, domainMax, majorCount, majorCapacity, majorStep, minorCountPerMajor, minorCount, minorStep, majorTicks, minorTicks);
|
|
146
146
|
var d = transform.d;
|
|
147
147
|
var ty = transform.ty;
|
|
148
|
-
for (var i = 0; i <
|
|
148
|
+
for (var i = 0; i < majorCapacity; ++i) {
|
|
149
149
|
var majorShape = majorShapes[i];
|
|
150
150
|
var imajorTick = i * 3;
|
|
151
151
|
var majorTickPosition = majorTicks[imajorTick + 0];
|
|
@@ -277,9 +277,9 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
277
277
|
var gridlinePosition = position === DChartAxisPosition.LEFT || position === DChartAxisPosition.RIGHT
|
|
278
278
|
? EShapeBarPosition.LEFT
|
|
279
279
|
: EShapeBarPosition.TOP;
|
|
280
|
-
var
|
|
280
|
+
var gridlineCapacity = tickMajor.capacity;
|
|
281
281
|
var gridlineStyle = gridline.style || EShapePointsStyle.NONE;
|
|
282
|
-
for (var i = 0; i <
|
|
282
|
+
for (var i = 0; i < gridlineCapacity; ++i) {
|
|
283
283
|
var gridlineShape = new EShapeBar();
|
|
284
284
|
gridlineShape.points.position = gridlinePosition;
|
|
285
285
|
gridlineShape.points.style = gridlineStyle;
|
|
@@ -297,11 +297,11 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
297
297
|
if (!tickMajorShapes && tick.enable) {
|
|
298
298
|
tickMajorShapes = [];
|
|
299
299
|
tickMajor.shapes = tickMajorShapes;
|
|
300
|
-
var
|
|
300
|
+
var tickMajorCapacity = tickMajor.capacity;
|
|
301
301
|
var tickMajorSize = tickMajor.size;
|
|
302
302
|
var tickMajorPosition = tickMajor.position;
|
|
303
303
|
var tickMajorStyle = tickMajor.style || EShapePointsStyle.NONE;
|
|
304
|
-
for (var i = 0; i <
|
|
304
|
+
for (var i = 0; i < tickMajorCapacity; ++i) {
|
|
305
305
|
var tickMajorShape = new EShapeBar();
|
|
306
306
|
tickMajorShape.points.position = tickMajorPosition;
|
|
307
307
|
tickMajorShape.points.size = tickMajorSize;
|
|
@@ -327,7 +327,7 @@ var DChartAxisBase = /** @class */ (function () {
|
|
|
327
327
|
var tickMinorSize = tickMinor.size;
|
|
328
328
|
var tickMinorPosition = tickMinor.position;
|
|
329
329
|
var tickMinorStyle = tickMinor.style || EShapePointsStyle.NONE;
|
|
330
|
-
for (var i = 0, imax = (tickMajor.
|
|
330
|
+
for (var i = 0, imax = (tickMajor.capacity + 1) * tickMinorCount; i < imax; ++i) {
|
|
331
331
|
var tickMinorShape = new EShapeBar();
|
|
332
332
|
tickMinorShape.points.position = tickMinorPosition;
|
|
333
333
|
tickMinorShape.points.size = tickMinorSize;
|