@wcardinal/wcardinal-ui 0.292.0 → 0.294.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.
Files changed (64) hide show
  1. package/dist/types/wcardinal/ui/d-chart-axis-bar.d.ts +1 -1
  2. package/dist/types/wcardinal/ui/d-chart-axis-base-bar.d.ts +1 -1
  3. package/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +6 -12
  4. package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +1 -1
  5. package/dist/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +1 -1
  6. package/dist/types/wcardinal/ui/d-chart-axis-base-tick-major-gridline.d.ts +1 -1
  7. package/dist/types/wcardinal/ui/d-chart-axis-base-tick-major.d.ts +1 -1
  8. package/dist/types/wcardinal/ui/d-chart-axis-base-tick-minor.d.ts +1 -1
  9. package/dist/types/wcardinal/ui/d-chart-axis-base.d.ts +5 -1
  10. package/dist/types/wcardinal/ui/d-chart-axis-tick-container.d.ts +1 -1
  11. package/dist/types/wcardinal/ui/d-chart-axis-tick-major-gridline.d.ts +1 -1
  12. package/dist/types/wcardinal/ui/d-chart-axis-tick-major.d.ts +1 -1
  13. package/dist/types/wcardinal/ui/d-chart-axis-tick-minor.d.ts +1 -1
  14. package/dist/types/wcardinal/ui/d-chart-axis-x-datetime.d.ts +1 -1
  15. package/dist/types/wcardinal/ui/d-chart-axis-x.d.ts +1 -1
  16. package/dist/types/wcardinal/ui/d-chart-axis-y.d.ts +1 -1
  17. package/dist/types/wcardinal/ui/d-chart-axis.d.ts +3 -1
  18. package/dist/types/wcardinal/ui/d-chart-series-base.d.ts +1 -0
  19. package/dist/types/wcardinal/ui/d-chart-series-container-impl.d.ts +1 -0
  20. package/dist/types/wcardinal/ui/d-chart-series-line-of-any.d.ts +3 -1
  21. package/dist/types/wcardinal/ui/d-chart-series-line.d.ts +3 -1
  22. package/dist/types/wcardinal/ui/d-chart-series-linear.d.ts +3 -1
  23. package/dist/types/wcardinal/ui/d-chart-series.d.ts +1 -0
  24. package/dist/wcardinal/ui/d-chart-axis-bar.js.map +1 -1
  25. package/dist/wcardinal/ui/d-chart-axis-base-bar.js.map +1 -1
  26. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +10 -52
  27. package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js.map +1 -1
  28. package/dist/wcardinal/ui/d-chart-axis-base-options.js.map +1 -1
  29. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +4 -4
  30. package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
  31. package/dist/wcardinal/ui/d-chart-axis-base-tick-major-gridline.js.map +1 -1
  32. package/dist/wcardinal/ui/d-chart-axis-base-tick-major.js.map +1 -1
  33. package/dist/wcardinal/ui/d-chart-axis-base-tick-minor.js.map +1 -1
  34. package/dist/wcardinal/ui/d-chart-axis-base.js +23 -7
  35. package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
  36. package/dist/wcardinal/ui/d-chart-axis-tick-container.js.map +1 -1
  37. package/dist/wcardinal/ui/d-chart-axis-tick-major-gridline.js.map +1 -1
  38. package/dist/wcardinal/ui/d-chart-axis-tick-major.js.map +1 -1
  39. package/dist/wcardinal/ui/d-chart-axis-tick-minor.js.map +1 -1
  40. package/dist/wcardinal/ui/d-chart-axis-x-datetime.js.map +1 -1
  41. package/dist/wcardinal/ui/d-chart-axis-x.js.map +1 -1
  42. package/dist/wcardinal/ui/d-chart-axis-y.js.map +1 -1
  43. package/dist/wcardinal/ui/d-chart-axis.js.map +1 -1
  44. package/dist/wcardinal/ui/d-chart-plot-area-impl.js +2 -4
  45. package/dist/wcardinal/ui/d-chart-plot-area-impl.js.map +1 -1
  46. package/dist/wcardinal/ui/d-chart-series-base.js.map +1 -1
  47. package/dist/wcardinal/ui/d-chart-series-container-impl.js +10 -0
  48. package/dist/wcardinal/ui/d-chart-series-container-impl.js.map +1 -1
  49. package/dist/wcardinal/ui/d-chart-series-line-of-any.js +15 -4
  50. package/dist/wcardinal/ui/d-chart-series-line-of-any.js.map +1 -1
  51. package/dist/wcardinal/ui/d-chart-series-line.js +15 -4
  52. package/dist/wcardinal/ui/d-chart-series-line.js.map +1 -1
  53. package/dist/wcardinal/ui/d-chart-series-linear.js +15 -4
  54. package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
  55. package/dist/wcardinal/ui/d-chart-series.js.map +1 -1
  56. package/dist/wcardinal-ui-theme-dark.js +1 -1
  57. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  58. package/dist/wcardinal-ui-theme-white.js +1 -1
  59. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  60. package/dist/wcardinal-ui.cjs.js +95 -80
  61. package/dist/wcardinal-ui.js +95 -80
  62. package/dist/wcardinal-ui.min.js +2 -2
  63. package/dist/wcardinal-ui.min.js.map +1 -1
  64. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { DBase } from "./d-base";
2
2
  import { DChartAxisContainer } from "./d-chart-axis-container";
3
3
  import { EShape } from "./shape/e-shape";
4
- export interface DChartAxisBar<CHART extends DBase> {
4
+ export interface DChartAxisBar<CHART extends DBase = DBase> {
5
5
  readonly shape: EShape;
6
6
  bind(container: DChartAxisContainer<CHART>, index: number): void;
7
7
  unbind(): void;
@@ -4,7 +4,7 @@ import { DChartAxisBaseOptionParser } from "./d-chart-axis-base-options-parser";
4
4
  import { DChartAxisContainer } from "./d-chart-axis-container";
5
5
  import { EShape } from "./shape/e-shape";
6
6
  import { EShapeBarPosition } from "./shape/variant/e-shape-bar-position";
7
- export declare class DChartAxisBaseBar<CHART extends DBase> implements DChartAxisBar<CHART> {
7
+ export declare class DChartAxisBaseBar<CHART extends DBase = DBase> implements DChartAxisBar<CHART> {
8
8
  protected _parser: DChartAxisBaseOptionParser;
9
9
  protected _container?: DChartAxisContainer<CHART>;
10
10
  protected _index: number;
@@ -73,19 +73,13 @@ export interface DChartAxisBaseOptionParserBar {
73
73
  stroke?: Partial<EShapeStrokeLike>;
74
74
  }
75
75
  export declare class DChartAxisBaseOptionParser<THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>> {
76
- protected _coordinateIndex: number;
77
- protected _position: DChartAxisPosition;
78
- protected _tick: DChartAxisBaseOptionParserTick;
79
- protected _label: DeepPartial<EShapeTextLike> | undefined;
80
- protected _padding: number;
81
- protected _bar: DChartAxisBaseOptionParserBar;
76
+ coordinate: number;
77
+ position: DChartAxisPosition;
78
+ tick: DChartAxisBaseOptionParserTick;
79
+ label: DeepPartial<EShapeTextLike> | undefined;
80
+ padding: number;
81
+ bar: DChartAxisBaseOptionParserBar;
82
82
  constructor(theme: THEME, options?: OPTIONS);
83
- get coordinateIndex(): number;
84
- get padding(): number;
85
- get position(): DChartAxisPosition;
86
- get bar(): DChartAxisBaseOptionParserBar;
87
- get tick(): DChartAxisBaseOptionParserTick;
88
- get label(): DeepPartial<EShapeTextLike> | undefined;
89
83
  protected toPosition(theme: THEME, options?: OPTIONS): DChartAxisPosition;
90
84
  protected toBar(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserBar;
91
85
  protected toTick(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserTick;
@@ -96,7 +96,7 @@ export interface DChartAxisBaseLabelOptions {
96
96
  padding?: Partial<EShapeTextOffsetLike>;
97
97
  clipping?: boolean;
98
98
  }
99
- export interface DChartAxisBaseOptions<THEME extends DThemeChartAxisBase> extends DChartAxisOptions {
99
+ export interface DChartAxisBaseOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisOptions {
100
100
  tick?: DChartAxisBaseTickOptions;
101
101
  label?: DChartAxisBaseLabelOptions;
102
102
  style?: EShapePointsStyle;
@@ -11,7 +11,7 @@ import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick
11
11
  import { EShape } from "./shape/e-shape";
12
12
  export interface DChartAxisBaseTickContainerOptions {
13
13
  }
14
- export declare class DChartAxisBaseTickContainer<CHART extends DBase, OPTIONS extends DChartAxisBaseTickContainerOptions> implements DChartAxisTickContainer<CHART> {
14
+ export declare class DChartAxisBaseTickContainer<CHART extends DBase = DBase, OPTIONS extends DChartAxisBaseTickContainerOptions = DChartAxisBaseTickContainerOptions> implements DChartAxisTickContainer<CHART> {
15
15
  protected _parser: DChartAxisBaseOptionParser;
16
16
  protected _container?: DChartAxisContainer<CHART>;
17
17
  protected _index: number;
@@ -4,7 +4,7 @@ import { DChartAxisContainer } from "./d-chart-axis-container";
4
4
  import { DChartAxisTickMajorGridline } from "./d-chart-axis-tick-major-gridline";
5
5
  import { EShape } from "./shape/e-shape";
6
6
  import { EShapeBarPosition } from "./shape/variant/e-shape-bar-position";
7
- export declare class DChartAxisBaseTickMajorGridline<CHART extends DBase> implements DChartAxisTickMajorGridline<CHART> {
7
+ export declare class DChartAxisBaseTickMajorGridline<CHART extends DBase = DBase> implements DChartAxisTickMajorGridline<CHART> {
8
8
  protected _parser: DChartAxisBaseOptionParser;
9
9
  protected _container?: DChartAxisContainer<CHART>;
10
10
  protected _index: number;
@@ -4,7 +4,7 @@ import { DChartAxisBaseTickMajorGridline } from "./d-chart-axis-base-tick-major-
4
4
  import { DChartAxisContainer } from "./d-chart-axis-container";
5
5
  import { DChartAxisTickMajor } from "./d-chart-axis-tick-major";
6
6
  import { EShape } from "./shape/e-shape";
7
- export declare class DChartAxisBaseTickMajor<CHART extends DBase> implements DChartAxisTickMajor<CHART> {
7
+ export declare class DChartAxisBaseTickMajor<CHART extends DBase = DBase> implements DChartAxisTickMajor<CHART> {
8
8
  protected _parser: DChartAxisBaseOptionParser;
9
9
  protected _container?: DChartAxisContainer<CHART>;
10
10
  protected _index: number;
@@ -3,7 +3,7 @@ import { DChartAxisBaseOptionParser } from "./d-chart-axis-base-options-parser";
3
3
  import { DChartAxisContainer } from "./d-chart-axis-container";
4
4
  import { DChartAxisTickMinor } from "./d-chart-axis-tick-minor";
5
5
  import { EShape } from "./shape/e-shape";
6
- export declare class DChartAxisBaseTickMinor<CHART extends DBase> implements DChartAxisTickMinor<CHART> {
6
+ export declare class DChartAxisBaseTickMinor<CHART extends DBase = DBase> implements DChartAxisTickMinor<CHART> {
7
7
  protected _parser: DChartAxisBaseOptionParser;
8
8
  protected _container?: DChartAxisContainer<CHART>;
9
9
  protected _index: number;
@@ -14,9 +14,13 @@ export declare class DChartAxisBase<CHART extends DBase = DBase, THEME extends D
14
14
  protected _bar: DChartAxisBar<CHART>;
15
15
  protected _tick: DChartAxisTickContainer<CHART>;
16
16
  constructor(options?: OPTIONS);
17
- get parser(): DChartAxisBaseOptionParser<THEME>;
18
17
  protected newParser(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParser<THEME>;
19
18
  get position(): DChartAxisPosition;
19
+ set position(position: DChartAxisPosition);
20
+ get coordinate(): number;
21
+ set coordinate(coordinate: number);
22
+ get padding(): number;
23
+ set padding(padding: number);
20
24
  get bar(): DChartAxisBar<CHART>;
21
25
  protected newBar(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisBar<CHART>;
22
26
  get tick(): DChartAxisTickContainer<CHART>;
@@ -2,7 +2,7 @@ import { DBase } from "./d-base";
2
2
  import { DChartAxisContainer } from "./d-chart-axis-container";
3
3
  import { DChartAxisTickMajor } from "./d-chart-axis-tick-major";
4
4
  import { DChartAxisTickMinor } from "./d-chart-axis-tick-minor";
5
- export interface DChartAxisTickContainer<CHART extends DBase> {
5
+ export interface DChartAxisTickContainer<CHART extends DBase = DBase> {
6
6
  readonly major: DChartAxisTickMajor<CHART>;
7
7
  readonly minor: DChartAxisTickMinor<CHART>;
8
8
  bind(container: DChartAxisContainer<CHART>, index: number): void;
@@ -1,5 +1,5 @@
1
1
  import { DBase } from "./d-base";
2
2
  import { EShape } from "./shape/e-shape";
3
- export interface DChartAxisTickMajorGridline<CHART extends DBase> {
3
+ export interface DChartAxisTickMajorGridline<CHART extends DBase = DBase> {
4
4
  readonly shapes: EShape[];
5
5
  }
@@ -2,7 +2,7 @@ import { DBase } from "./d-base";
2
2
  import { DChartAxisContainer } from "./d-chart-axis-container";
3
3
  import { DChartAxisTickMajorGridline } from "./d-chart-axis-tick-major-gridline";
4
4
  import { EShape } from "./shape/e-shape";
5
- export interface DChartAxisTickMajor<CHART extends DBase> {
5
+ export interface DChartAxisTickMajor<CHART extends DBase = DBase> {
6
6
  readonly shapes: EShape[];
7
7
  readonly gridline: DChartAxisTickMajorGridline<CHART>;
8
8
  bind(container: DChartAxisContainer<CHART>, index: number): void;
@@ -1,7 +1,7 @@
1
1
  import { DBase } from "./d-base";
2
2
  import { DChartAxisContainer } from "./d-chart-axis-container";
3
3
  import { EShape } from "./shape/e-shape";
4
- export interface DChartAxisTickMinor<CHART extends DBase> {
4
+ export interface DChartAxisTickMinor<CHART extends DBase = DBase> {
5
5
  readonly shapes: EShape[];
6
6
  bind(container: DChartAxisContainer<CHART>, index: number): void;
7
7
  unbind(): void;
@@ -1,7 +1,7 @@
1
1
  import { DBase } from "./d-base";
2
2
  import { DThemeChartAxisBase } from "./d-chart-axis-base-options";
3
3
  import { DChartAxisX, DChartAxisXOptions } from "./d-chart-axis-x";
4
- export interface DChartAxisXDatetimeOptions<THEME extends DThemeChartAxisBase> extends DChartAxisXOptions<THEME> {
4
+ export interface DChartAxisXDatetimeOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisXOptions<THEME> {
5
5
  }
6
6
  /**
7
7
  * An X axis for datetimes.
@@ -1,7 +1,7 @@
1
1
  import { DBase } from "./d-base";
2
2
  import { DChartAxisBase } from "./d-chart-axis-base";
3
3
  import { DChartAxisBaseOptions, DThemeChartAxisBase } from "./d-chart-axis-base-options";
4
- export interface DChartAxisXOptions<THEME extends DThemeChartAxisBase> extends DChartAxisBaseOptions<THEME> {
4
+ export interface DChartAxisXOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisBaseOptions<THEME> {
5
5
  }
6
6
  /**
7
7
  * An X axis.
@@ -1,7 +1,7 @@
1
1
  import { DBase } from "./d-base";
2
2
  import { DChartAxisBase } from "./d-chart-axis-base";
3
3
  import { DChartAxisBaseOptions, DThemeChartAxisBase } from "./d-chart-axis-base-options";
4
- export interface DChartAxisYOptions<THEME extends DThemeChartAxisBase> extends DChartAxisBaseOptions<THEME> {
4
+ export interface DChartAxisYOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisBaseOptions<THEME> {
5
5
  }
6
6
  /**
7
7
  * An Y axis.
@@ -7,7 +7,9 @@ export interface DChartAxisOptions {
7
7
  position?: DChartAxisPosition | keyof typeof DChartAxisPosition;
8
8
  }
9
9
  export interface DChartAxis<CHART extends DBase = DBase> {
10
- readonly position: DChartAxisPosition;
10
+ position: DChartAxisPosition;
11
+ coordinate: number;
12
+ padding: number;
11
13
  readonly bar: DChartAxisBar<CHART>;
12
14
  readonly tick: DChartAxisTickContainer<CHART>;
13
15
  bind(container: DChartAxisContainer<CHART>, index: number): void;
@@ -33,6 +33,7 @@ export declare abstract class DChartSeriesBase<CHART extends DBase = DBase> exte
33
33
  unbind(): this;
34
34
  abstract toDirty(): this;
35
35
  abstract update(): this;
36
+ abstract onRender(): this;
36
37
  get domain(): DChartRegionImmutable;
37
38
  get range(): DChartRegionImmutable;
38
39
  get container(): DChartSeriesContainer<CHART> | null;
@@ -35,6 +35,7 @@ export declare class DChartSeriesContainerImpl<CHART extends DBase = DBase> impl
35
35
  get plotArea(): DChartPlotArea<CHART>;
36
36
  get selection(): DChartSelection<CHART> | null;
37
37
  update(): void;
38
+ onRender(): void;
38
39
  add(series: DChartSeries<CHART>): void;
39
40
  get(index: number): DChartSeries<CHART> | null;
40
41
  indexOf(series: DChartSeries<CHART>): number;
@@ -55,7 +55,9 @@ export declare abstract class DChartSeriesLineOfAny<CHART extends DBase = DBase>
55
55
  set points(points: Array<number | null>);
56
56
  toDirty(): this;
57
57
  update(): this;
58
- protected updateLine(line: EShapeLineOfAny, xcoordinate: DChartCoordinate<CHART>, ycoordinate: DChartCoordinate<CHART>): void;
58
+ onRender(): this;
59
+ protected doUpdate(render: boolean): boolean;
60
+ protected doUpdateLine(line: EShapeLineOfAny, xcoordinate: DChartCoordinate<CHART>, ycoordinate: DChartCoordinate<CHART>): void;
59
61
  protected adjustLineRegion(xmin: number, xmax: number, ymin: number, ymax: number, result: DChartSeriesLineOfAnyRegion): DChartSeriesLineOfAnyRegion;
60
62
  protected applyLine(line: EShapeLineOfAny, xcoordinate: DChartCoordinate<CHART>, ycoordinate: DChartCoordinate<CHART>, sx: number, sy: number, cx: number, cy: number, values: number[]): void;
61
63
  protected updateRegion(): void;
@@ -35,7 +35,9 @@ export declare class DChartSeriesLine<CHART extends DBase = DBase> extends DChar
35
35
  set points(points: Array<number | null>);
36
36
  toDirty(): this;
37
37
  update(): this;
38
- protected updateLine(line: EShapeLine, xcoordinate: DChartCoordinate<CHART>, ycoordinate: DChartCoordinate<CHART>, isPointsDirty: boolean): void;
38
+ onRender(): this;
39
+ protected doUpdate(render: boolean): boolean;
40
+ protected doUpdateLine(line: EShapeLine, xcoordinate: DChartCoordinate<CHART>, ycoordinate: DChartCoordinate<CHART>, isPointsDirty: boolean): void;
39
41
  protected updateRegion(): void;
40
42
  destroy(): this;
41
43
  hitTest(x: number, y: number): boolean;
@@ -32,7 +32,9 @@ export declare class DChartSeriesLinear<CHART extends DBase = DBase> extends DCh
32
32
  get parameters(): DChartSeriesLinearParameters;
33
33
  toDirty(): this;
34
34
  update(): this;
35
- protected updateLine(line: EShapeLine, xcoordinate: DChartCoordinate<CHART>, ycoordinate: DChartCoordinate<CHART>, plotAreaSizeX: number, plotAreaSizeY: number): void;
35
+ onRender(): this;
36
+ protected doUpdate(render: boolean): boolean;
37
+ protected doUpdateLine(line: EShapeLine, xcoordinate: DChartCoordinate<CHART>, ycoordinate: DChartCoordinate<CHART>, plotAreaSizeX: number, plotAreaSizeY: number): void;
36
38
  protected updateRegion(): void;
37
39
  destroy(): this;
38
40
  hitTest(x: number, y: number): boolean;
@@ -34,6 +34,7 @@ export interface DChartSeries<CHART extends DBase = DBase> {
34
34
  hide(): this;
35
35
  isHidden(): boolean;
36
36
  update(): this;
37
+ onRender(): this;
37
38
  destroy(): this;
38
39
  hitTest(x: number, y: number): boolean;
39
40
  calcHitPoint(x: number, y: number, result: DChartSeriesHitResult): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"d-chart-axis-bar.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBase } from \"./d-base\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { EShape } from \"./shape/e-shape\";\n\nexport interface DChartAxisBar<CHART extends DBase> {\n\treadonly shape: EShape;\n\n\tbind(container: DChartAxisContainer<CHART>, index: number): void;\n\tunbind(): void;\n\tupdate(): boolean;\n\tdestroy(): void;\n}\n"]}
1
+ {"version":3,"file":"d-chart-axis-bar.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBase } from \"./d-base\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { EShape } from \"./shape/e-shape\";\n\nexport interface DChartAxisBar<CHART extends DBase = DBase> {\n\treadonly shape: EShape;\n\n\tbind(container: DChartAxisContainer<CHART>, index: number): void;\n\tunbind(): void;\n\tupdate(): boolean;\n\tdestroy(): void;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"d-chart-axis-base-bar.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-chart-axis-base-bar.ts"],"names":[],"mappings":"AAAA;;;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Identifier: Apache-2.0\n */\n\nimport { DBase } from \"./d-base\";\nimport { DChartAxisBar } from \"./d-chart-axis-bar\";\nimport { DChartAxisBaseOptionParser } from \"./d-chart-axis-base-options-parser\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { EShape } from \"./shape/e-shape\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapeBar } from \"./shape/variant/e-shape-bar\";\nimport { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\n\nexport class DChartAxisBaseBar<CHART extends DBase> implements DChartAxisBar<CHART> {\n\tprotected _parser: DChartAxisBaseOptionParser;\n\tprotected _container?: DChartAxisContainer<CHART>;\n\tprotected _index: number;\n\tprotected _shape?: EShape;\n\n\tconstructor(parser: DChartAxisBaseOptionParser) {\n\t\tthis._parser = parser;\n\t\tthis._index = 0;\n\t}\n\n\tget shape(): EShape {\n\t\tlet result = this._shape;\n\t\tif (result == null) {\n\t\t\tresult = this.newShape();\n\t\t\tthis._shape = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newShape(): EShape {\n\t\tconst parser = this._parser;\n\t\tconst bar = parser.bar;\n\t\tconst result = new EShapeBar();\n\t\tresult.points.position = this.newShapePosition();\n\t\tresult.points.style = bar.style ?? EShapePointsStyle.NONE;\n\t\tresult.stroke.copy(bar.stroke);\n\t\tresult.text.copy(parser.label);\n\t\treturn result;\n\t}\n\n\tprotected newShapePosition(): EShapeBarPosition {\n\t\tswitch (this._parser.position) {\n\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\tdefault:\n\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t}\n\t}\n\n\tbind(container: DChartAxisContainer<CHART>, index: number): void {\n\t\tthis._container = container;\n\t\tthis._index = index;\n\t\tthis.shape.attach(container.container);\n\t}\n\n\tunbind(): void {\n\t\tconst shape = this._shape;\n\t\tif (shape != null) {\n\t\t\tshape.detach();\n\t\t}\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n\n\tupdate(): boolean {\n\t\tconst container = this._container;\n\t\tconst index = this._index;\n\t\tconst shape = this._shape;\n\t\tif (shape != null && container != null) {\n\t\t\tconst plotArea = container.plotArea;\n\t\t\tconst plotAreaWidth = plotArea.width;\n\t\t\tconst plotAreaHeight = plotArea.height;\n\t\t\tconst offset = this._parser.padding * index;\n\t\t\tshape.disallowUploadedUpdate();\n\t\t\tconst position = shape.transform.position;\n\t\t\tconst size = shape.size;\n\t\t\tswitch (this._parser.position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\tposition.set(plotAreaWidth * 0.5, 0 - offset);\n\t\t\t\t\tsize.set(plotAreaWidth, 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\tposition.set(plotAreaWidth * 0.5, plotAreaHeight + offset);\n\t\t\t\t\tsize.set(plotAreaWidth, 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\tposition.set(0 - offset, plotAreaHeight * 0.5);\n\t\t\t\t\tsize.set(0, plotAreaHeight);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\tposition.set(plotAreaWidth + offset, plotAreaHeight * 0.5);\n\t\t\t\t\tsize.set(0, plotAreaHeight);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshape.allowUploadedUpdate();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tdestroy(): void {\n\t\tconst shape = this._shape;\n\t\tif (shape != null) {\n\t\t\tshape.destroy();\n\t\t}\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-chart-axis-base-bar.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-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\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBase } from \"./d-base\";\nimport { DChartAxisBar } from \"./d-chart-axis-bar\";\nimport { DChartAxisBaseOptionParser } from \"./d-chart-axis-base-options-parser\";\nimport { DChartAxisContainer } from \"./d-chart-axis-container\";\nimport { DChartAxisPosition } from \"./d-chart-axis-position\";\nimport { EShape } from \"./shape/e-shape\";\nimport { EShapePointsStyle } from \"./shape/e-shape-points-style\";\nimport { EShapeBar } from \"./shape/variant/e-shape-bar\";\nimport { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\n\nexport class DChartAxisBaseBar<CHART extends DBase = DBase> implements DChartAxisBar<CHART> {\n\tprotected _parser: DChartAxisBaseOptionParser;\n\tprotected _container?: DChartAxisContainer<CHART>;\n\tprotected _index: number;\n\tprotected _shape?: EShape;\n\n\tconstructor(parser: DChartAxisBaseOptionParser) {\n\t\tthis._parser = parser;\n\t\tthis._index = 0;\n\t}\n\n\tget shape(): EShape {\n\t\tlet result = this._shape;\n\t\tif (result == null) {\n\t\t\tresult = this.newShape();\n\t\t\tthis._shape = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newShape(): EShape {\n\t\tconst parser = this._parser;\n\t\tconst bar = parser.bar;\n\t\tconst result = new EShapeBar();\n\t\tresult.points.position = this.newShapePosition();\n\t\tresult.points.style = bar.style ?? EShapePointsStyle.NONE;\n\t\tresult.stroke.copy(bar.stroke);\n\t\tresult.text.copy(parser.label);\n\t\treturn result;\n\t}\n\n\tprotected newShapePosition(): EShapeBarPosition {\n\t\tswitch (this._parser.position) {\n\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\treturn EShapeBarPosition.TOP;\n\t\t\tdefault:\n\t\t\t\treturn EShapeBarPosition.LEFT;\n\t\t}\n\t}\n\n\tbind(container: DChartAxisContainer<CHART>, index: number): void {\n\t\tthis._container = container;\n\t\tthis._index = index;\n\t\tthis.shape.attach(container.container);\n\t}\n\n\tunbind(): void {\n\t\tconst shape = this._shape;\n\t\tif (shape != null) {\n\t\t\tshape.detach();\n\t\t}\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n\n\tupdate(): boolean {\n\t\tconst container = this._container;\n\t\tconst index = this._index;\n\t\tconst shape = this._shape;\n\t\tif (shape != null && container != null) {\n\t\t\tconst plotArea = container.plotArea;\n\t\t\tconst plotAreaWidth = plotArea.width;\n\t\t\tconst plotAreaHeight = plotArea.height;\n\t\t\tconst offset = this._parser.padding * index;\n\t\t\tshape.disallowUploadedUpdate();\n\t\t\tconst position = shape.transform.position;\n\t\t\tconst size = shape.size;\n\t\t\tswitch (this._parser.position) {\n\t\t\t\tcase DChartAxisPosition.TOP:\n\t\t\t\t\tposition.set(plotAreaWidth * 0.5, 0 - offset);\n\t\t\t\t\tsize.set(plotAreaWidth, 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.BOTTOM:\n\t\t\t\t\tposition.set(plotAreaWidth * 0.5, plotAreaHeight + offset);\n\t\t\t\t\tsize.set(plotAreaWidth, 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.LEFT:\n\t\t\t\t\tposition.set(0 - offset, plotAreaHeight * 0.5);\n\t\t\t\t\tsize.set(0, plotAreaHeight);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DChartAxisPosition.RIGHT:\n\t\t\t\t\tposition.set(plotAreaWidth + offset, plotAreaHeight * 0.5);\n\t\t\t\t\tsize.set(0, plotAreaHeight);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshape.allowUploadedUpdate();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tdestroy(): void {\n\t\tconst shape = this._shape;\n\t\tif (shape != null) {\n\t\t\tshape.destroy();\n\t\t}\n\t\tthis._index = 0;\n\t\tthis._container = undefined;\n\t}\n}\n"]}
@@ -16,55 +16,13 @@ import { toEnum } from "./util/to-enum";
16
16
  var DChartAxisBaseOptionParser = /** @class */ (function () {
17
17
  function DChartAxisBaseOptionParser(theme, options) {
18
18
  var _a, _b;
19
- this._coordinateIndex = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
20
- this._position = this.toPosition(theme, options);
21
- this._tick = this.toTick(theme, options);
22
- this._label = this.toLabel(theme, options);
23
- this._padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
24
- this._bar = this.toBar(theme, options);
19
+ this.coordinate = (_a = options === null || options === void 0 ? void 0 : options.coordinate) !== null && _a !== void 0 ? _a : 0;
20
+ this.position = this.toPosition(theme, options);
21
+ this.tick = this.toTick(theme, options);
22
+ this.label = this.toLabel(theme, options);
23
+ this.padding = (_b = options === null || options === void 0 ? void 0 : options.padding) !== null && _b !== void 0 ? _b : theme.getPadding();
24
+ this.bar = this.toBar(theme, options);
25
25
  }
26
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "coordinateIndex", {
27
- get: function () {
28
- return this._coordinateIndex;
29
- },
30
- enumerable: false,
31
- configurable: true
32
- });
33
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "padding", {
34
- get: function () {
35
- return this._padding;
36
- },
37
- enumerable: false,
38
- configurable: true
39
- });
40
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "position", {
41
- get: function () {
42
- return this._position;
43
- },
44
- enumerable: false,
45
- configurable: true
46
- });
47
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "bar", {
48
- get: function () {
49
- return this._bar;
50
- },
51
- enumerable: false,
52
- configurable: true
53
- });
54
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "tick", {
55
- get: function () {
56
- return this._tick;
57
- },
58
- enumerable: false,
59
- configurable: true
60
- });
61
- Object.defineProperty(DChartAxisBaseOptionParser.prototype, "label", {
62
- get: function () {
63
- return this._label;
64
- },
65
- enumerable: false,
66
- configurable: true
67
- });
68
26
  DChartAxisBaseOptionParser.prototype.toPosition = function (theme, options) {
69
27
  var position = options === null || options === void 0 ? void 0 : options.position;
70
28
  if (isString(position)) {
@@ -124,7 +82,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
124
82
  };
125
83
  };
126
84
  DChartAxisBaseOptionParser.prototype.toTickPosition = function (tickPosition) {
127
- var position = this._position;
85
+ var position = this.position;
128
86
  if (tickPosition === DChartAxisTickPosition.OUTSIDE || tickPosition === "OUTSIDE") {
129
87
  switch (position) {
130
88
  case DChartAxisPosition.TOP:
@@ -300,7 +258,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
300
258
  };
301
259
  DChartAxisBaseOptionParser.prototype.toTickMajorTextAlign = function (theme, options) {
302
260
  var _a, _b;
303
- var position = this._position;
261
+ var position = this.position;
304
262
  return {
305
263
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMajorTickTextAlignHorizontal(position),
306
264
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMajorTickTextAlignVertical(position)
@@ -391,7 +349,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
391
349
  };
392
350
  DChartAxisBaseOptionParser.prototype.toTickMinorTextAlign = function (theme, options) {
393
351
  var _a, _b;
394
- var position = this._position;
352
+ var position = this.position;
395
353
  return {
396
354
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getMinorTickTextAlignHorizontal(position),
397
355
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getMinorTickTextAlignVertical(position)
@@ -459,7 +417,7 @@ var DChartAxisBaseOptionParser = /** @class */ (function () {
459
417
  };
460
418
  DChartAxisBaseOptionParser.prototype.toLabelAlign = function (theme, options) {
461
419
  var _a, _b;
462
- var position = this._position;
420
+ var position = this.position;
463
421
  return {
464
422
  horizontal: (_a = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _a !== void 0 ? _a : theme.getLabelAlignHorizontal(position),
465
423
  vertical: (_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getLabelAlignVertical(position)
@@ -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;AAaH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAG5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAkB,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAkExC;IAWC,oCAAY,KAAY,EAAE,OAAiB;;QAC1C,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,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,CAA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AC1B,CAAC;SACF;IACF,CAAC;IAES,mDAAc,GAAxB,UACC,KAAY,EACZ,OAAuC;QAEvC,IAAI,OAAO,EAAE;YACZ,OAAO;gBACN,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC1B,CAAC;SACF;IACF,CAAC;IAES,mDAAc,GAAxB,UACC,KAAY,EACZ,OAAuC;;QAEvC,OAAO;YACN,UAAU,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,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,KAAY,EACZ,OAA2C;QAE3C,OAAO,MAAM,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,iBAAiB,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC1E,CAAC;IAES,iDAAY,GAAtB,UAAuB,KAAY,EAAE,OAAgB;QACpD,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IACF,iCAAC;AAAD,CAAC,AApoBD,IAooBC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n\tDChartAxisBaseOptions,\n\tDChartAxisBaseTickOptions,\n\tDChartAxisBaseTickMajorGridlineOptions,\n\tDChartAxisBaseTickMajorOptions,\n\tDChartAxisBaseTickMinorOptions,\n\tDChartAxisBaseTextDirectionOption,\n\tDChartAxisBaseTickTextOptions,\n\tDThemeChartAxisBase,\n\tDChartAxisBaseStrokeOptions\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, EShapeTextStyle, EShapeTextWeight } 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 { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { isArray } from \"./util/is-array\";\nimport { isString } from \"./util/is-string\";\nimport { NumberFormatter } from \"./util/number-formatter\";\nimport { NumberFormatterFunction } from \"./util/number-formatter-function\";\nimport { NumberFormatters } from \"./util/number-formatters\";\nimport { toEnum } from \"./util/to-enum\";\n\nexport interface DChartAxisBaseOptionParserText {\n\t/** A format. Please refer to {@link NumberFormatter} for format details. */\n\tformat?: string | null;\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 DChartAxisBaseOptionParserGridline {\n\tenable: boolean;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseOptionParserTickMajor {\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?: DChartAxisBaseOptionParserText;\n\tformatter?: NumberFormatter;\n\n\tgridline: DChartAxisBaseOptionParserGridline;\n}\n\nexport interface DChartAxisBaseOptionParserTickMinor {\n\tcount: number;\n\tstep: number | DChartCoordinateTickMinorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseOptionParserText;\n\tformatter?: NumberFormatter;\n}\n\nexport interface DChartAxisBaseOptionParserTick {\n\tenable: boolean;\n\tmajor: DChartAxisBaseOptionParserTickMajor;\n\tminor: DChartAxisBaseOptionParserTickMinor;\n}\n\nexport interface DChartAxisBaseOptionParserBar {\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport class DChartAxisBaseOptionParser<\n\tTHEME extends DThemeChartAxisBase = DThemeChartAxisBase,\n\tOPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>\n> {\n\tprotected _coordinateIndex: number;\n\tprotected _position: DChartAxisPosition;\n\tprotected _tick: DChartAxisBaseOptionParserTick;\n\tprotected _label: DeepPartial<EShapeTextLike> | undefined;\n\tprotected _padding: number;\n\tprotected _bar: DChartAxisBaseOptionParserBar;\n\n\tconstructor(theme: THEME, options?: OPTIONS) {\n\t\tthis._coordinateIndex = options?.coordinate ?? 0;\n\t\tthis._position = this.toPosition(theme, options);\n\t\tthis._tick = this.toTick(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(): DChartAxisBaseOptionParserBar {\n\t\treturn this._bar;\n\t}\n\n\tget tick(): DChartAxisBaseOptionParserTick {\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(theme: THEME, options?: OPTIONS): 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(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserBar {\n\t\treturn {\n\t\t\tstyle: options?.style ?? theme.getStyle(),\n\t\t\tstroke: this.toBarStroke(theme, options?.stroke)\n\t\t};\n\t}\n\n\tprotected toTick(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserTick {\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.toTickMinor(theme, tick)\n\t\t};\n\t}\n\n\tprotected toTickMajor(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickOptions\n\t): DChartAxisBaseOptionParserTickMajor {\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.toTickMajorText(theme, major?.text),\n\t\t\tformatter: this.toTickMajorFormatter(theme, major),\n\t\t\tgridline: this.toTickMajorGridline(theme, major?.gridline, optionsStyle, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickMajorGridline(\n\t\ttheme: THEME,\n\t\toptions: DChartAxisBaseTickMajorGridlineOptions | undefined,\n\t\toptionsStyle: EShapePointsStyleOption | undefined,\n\t\toptionsStroke: DChartAxisBaseStrokeOptions | undefined\n\t): DChartAxisBaseOptionParserGridline {\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};\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 toTickMinor(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickOptions\n\t): DChartAxisBaseOptionParserTickMinor {\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\ttext: this.toTickMinorText(theme, minor?.text),\n\t\t\tformatter: this.toTickMinorFormatter(theme, minor)\n\t\t};\n\t}\n\n\tprotected toBarStroke(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseStrokeOptions\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: THEME,\n\t\toptionsA?: DChartAxisBaseStrokeOptions,\n\t\toptionsB?: DChartAxisBaseStrokeOptions\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: THEME,\n\t\toptionsA?: DChartAxisBaseStrokeOptions,\n\t\toptionsB?: DChartAxisBaseStrokeOptions\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: THEME,\n\t\toptionsA?: DChartAxisBaseStrokeOptions,\n\t\toptionsB?: DChartAxisBaseStrokeOptions\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: DChartAxisBaseStrokeOptions | undefined,\n\t\toptionsB: DChartAxisBaseStrokeOptions | 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: this.toStrokeStyle(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: this.toStrokeStyle(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: this.toStrokeStyle(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 toStrokeStyle(\n\t\ttarget?:\n\t\t\t| EShapeStrokeStyle\n\t\t\t| keyof typeof EShapeStrokeStyle\n\t\t\t| Array<keyof typeof EShapeStrokeStyle>\n\t): EShapeStrokeStyle | undefined {\n\t\tif (isString(target)) {\n\t\t\treturn EShapeStrokeStyle[target];\n\t\t} else if (isArray(target)) {\n\t\t\tlet result = EShapeStrokeStyle.NONE;\n\t\t\tfor (let i = 0, imax = target.length; i < imax; ++i) {\n\t\t\t\tresult |= EShapeStrokeStyle[target[i]];\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\treturn target;\n\t}\n\n\tprotected toTickMajorFormatter(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickMajorOptions\n\t): NumberFormatter | undefined {\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 undefined;\n\t\t\t} else if (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\tconst format = theme.getMajorTickTextFormat();\n\t\tif (format != null) {\n\t\t\treturn NumberFormatters.create(format);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprotected toTickMajorText(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickTextOptions\n\t): DChartAxisBaseOptionParserText | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toTickMajorTextColor(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: toEnum(options.weight, EShapeTextWeight),\n\t\t\talign: this.toTickMajorTextAlign(theme, options.align),\n\t\t\toffset: this.toTickMajorTextOffset(theme, options.offset),\n\t\t\tstyle: toEnum(options.style, EShapeTextStyle),\n\t\t\toutline: this.toTickMajorTextOutline(theme, options.outline),\n\t\t\tspacing: this.toTickMajorTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMajorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toTickMajorTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toTickMajorTextOutline(\n\t\ttheme: THEME,\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 toTickMajorTextAlign(\n\t\ttheme: THEME,\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 toTickMajorTextOffset(\n\t\ttheme: THEME,\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 toTickMajorTextSpacing(\n\t\ttheme: THEME,\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 toTickMajorTextPadding(\n\t\ttheme: THEME,\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: THEME,\n\t\toptions?: DChartAxisBaseTextDirectionOption\n\t): EShapeTextDirection {\n\t\treturn toEnum(options ?? theme.getMajorTickTextDirection(), EShapeTextDirection);\n\t}\n\n\tprotected toTickMajorTextColor(theme: THEME, options?: number): number | undefined {\n\t\treturn options ?? theme.getMajorTickTextColor();\n\t}\n\n\tprotected toTickMinorFormatter(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickMinorOptions\n\t): NumberFormatter | undefined {\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 undefined;\n\t\t\t} else if (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\tconst format = theme.getMinorTickTextFormat();\n\t\tif (format != null) {\n\t\t\treturn NumberFormatters.create(format);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprotected toTickMinorText(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickTextOptions\n\t): DChartAxisBaseOptionParserText | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toTickMinorTextColor(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: toEnum(options.weight, EShapeTextWeight),\n\t\t\talign: this.toTickMinorTextAlign(theme, options.align),\n\t\t\toffset: this.toTickMinorTextOffset(theme, options.offset),\n\t\t\tstyle: toEnum(options.style, EShapeTextStyle),\n\t\t\toutline: this.toTickMinorTextOutline(theme, options.outline),\n\t\t\tspacing: this.toTickMinorTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMinorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toTickMinorTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toTickMinorTextOutline(\n\t\ttheme: THEME,\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 toTickMinorTextAlign(\n\t\ttheme: THEME,\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.getMinorTickTextAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getMinorTickTextAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toTickMinorTextOffset(\n\t\ttheme: THEME,\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 toTickMinorTextSpacing(\n\t\ttheme: THEME,\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 toTickMinorTextPadding(\n\t\ttheme: THEME,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMinorTickTextPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getMinorTickTextPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toTickMinorTextDirection(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTextDirectionOption\n\t): EShapeTextDirection {\n\t\treturn toEnum(options ?? theme.getMinorTickTextDirection(), EShapeTextDirection);\n\t}\n\n\tprotected toTickMinorTextColor(theme: THEME, options?: number): number | undefined {\n\t\treturn options ?? theme.getMinorTickTextColor();\n\t}\n\n\tprotected toLabel(theme: THEME, options?: OPTIONS): 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: toEnum(label.weight, EShapeTextWeight),\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: toEnum(label.style, EShapeTextStyle),\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: THEME,\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: THEME,\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: THEME,\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: THEME,\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: THEME,\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: THEME,\n\t\toptions?: DChartAxisBaseTextDirectionOption\n\t): EShapeTextDirection {\n\t\treturn toEnum(options ?? theme.getLabelDirection(), EShapeTextDirection);\n\t}\n\n\tprotected toLabelColor(theme: THEME, 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;AAaH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAItE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAG5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAkB,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAkExC;IAWC,oCAAY,KAAY,EAAE,OAAiB;;QAC1C,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO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H,CAAC;IAES,qDAAgB,GAA1B,UACC,KAAY,EACZ,OAA2C;QAE3C,OAAO,MAAM,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,iBAAiB,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC1E,CAAC;IAES,iDAAY,GAAtB,UAAuB,KAAY,EAAE,OAAgB;QACpD,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IACF,iCAAC;AAAD,CAAC,AA5mBD,IA4mBC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n\tDChartAxisBaseOptions,\n\tDChartAxisBaseTickOptions,\n\tDChartAxisBaseTickMajorGridlineOptions,\n\tDChartAxisBaseTickMajorOptions,\n\tDChartAxisBaseTickMinorOptions,\n\tDChartAxisBaseTextDirectionOption,\n\tDChartAxisBaseTickTextOptions,\n\tDThemeChartAxisBase,\n\tDChartAxisBaseStrokeOptions\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, EShapeTextStyle, EShapeTextWeight } 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 { EShapeBarPosition } from \"./shape/variant/e-shape-bar-position\";\nimport { DeepPartial } from \"./util/deep-partial\";\nimport { isArray } from \"./util/is-array\";\nimport { isString } from \"./util/is-string\";\nimport { NumberFormatter } from \"./util/number-formatter\";\nimport { NumberFormatterFunction } from \"./util/number-formatter-function\";\nimport { NumberFormatters } from \"./util/number-formatters\";\nimport { toEnum } from \"./util/to-enum\";\n\nexport interface DChartAxisBaseOptionParserText {\n\t/** A format. Please refer to {@link NumberFormatter} for format details. */\n\tformat?: string | null;\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 DChartAxisBaseOptionParserGridline {\n\tenable: boolean;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport interface DChartAxisBaseOptionParserTickMajor {\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?: DChartAxisBaseOptionParserText;\n\tformatter?: NumberFormatter;\n\n\tgridline: DChartAxisBaseOptionParserGridline;\n}\n\nexport interface DChartAxisBaseOptionParserTickMinor {\n\tcount: number;\n\tstep: number | DChartCoordinateTickMinorStepFunction | undefined;\n\tsize: number;\n\tposition: EShapeBarPosition;\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n\ttext?: DChartAxisBaseOptionParserText;\n\tformatter?: NumberFormatter;\n}\n\nexport interface DChartAxisBaseOptionParserTick {\n\tenable: boolean;\n\tmajor: DChartAxisBaseOptionParserTickMajor;\n\tminor: DChartAxisBaseOptionParserTickMinor;\n}\n\nexport interface DChartAxisBaseOptionParserBar {\n\tstyle?: EShapePointsStyle;\n\tstroke?: Partial<EShapeStrokeLike>;\n}\n\nexport class DChartAxisBaseOptionParser<\n\tTHEME extends DThemeChartAxisBase = DThemeChartAxisBase,\n\tOPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>\n> {\n\tcoordinate: number;\n\tposition: DChartAxisPosition;\n\ttick: DChartAxisBaseOptionParserTick;\n\tlabel: DeepPartial<EShapeTextLike> | undefined;\n\tpadding: number;\n\tbar: DChartAxisBaseOptionParserBar;\n\n\tconstructor(theme: THEME, options?: OPTIONS) {\n\t\tthis.coordinate = options?.coordinate ?? 0;\n\t\tthis.position = this.toPosition(theme, options);\n\t\tthis.tick = this.toTick(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\tprotected toPosition(theme: THEME, options?: OPTIONS): 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(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserBar {\n\t\treturn {\n\t\t\tstyle: options?.style ?? theme.getStyle(),\n\t\t\tstroke: this.toBarStroke(theme, options?.stroke)\n\t\t};\n\t}\n\n\tprotected toTick(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserTick {\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.toTickMinor(theme, tick)\n\t\t};\n\t}\n\n\tprotected toTickMajor(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickOptions\n\t): DChartAxisBaseOptionParserTickMajor {\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.toTickMajorText(theme, major?.text),\n\t\t\tformatter: this.toTickMajorFormatter(theme, major),\n\t\t\tgridline: this.toTickMajorGridline(theme, major?.gridline, optionsStyle, optionsStroke)\n\t\t};\n\t}\n\n\tprotected toTickMajorGridline(\n\t\ttheme: THEME,\n\t\toptions: DChartAxisBaseTickMajorGridlineOptions | undefined,\n\t\toptionsStyle: EShapePointsStyleOption | undefined,\n\t\toptionsStroke: DChartAxisBaseStrokeOptions | undefined\n\t): DChartAxisBaseOptionParserGridline {\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};\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 toTickMinor(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickOptions\n\t): DChartAxisBaseOptionParserTickMinor {\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\ttext: this.toTickMinorText(theme, minor?.text),\n\t\t\tformatter: this.toTickMinorFormatter(theme, minor)\n\t\t};\n\t}\n\n\tprotected toBarStroke(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseStrokeOptions\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: THEME,\n\t\toptionsA?: DChartAxisBaseStrokeOptions,\n\t\toptionsB?: DChartAxisBaseStrokeOptions\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: THEME,\n\t\toptionsA?: DChartAxisBaseStrokeOptions,\n\t\toptionsB?: DChartAxisBaseStrokeOptions\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: THEME,\n\t\toptionsA?: DChartAxisBaseStrokeOptions,\n\t\toptionsB?: DChartAxisBaseStrokeOptions\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: DChartAxisBaseStrokeOptions | undefined,\n\t\toptionsB: DChartAxisBaseStrokeOptions | 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: this.toStrokeStyle(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: this.toStrokeStyle(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: this.toStrokeStyle(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 toStrokeStyle(\n\t\ttarget?:\n\t\t\t| EShapeStrokeStyle\n\t\t\t| keyof typeof EShapeStrokeStyle\n\t\t\t| Array<keyof typeof EShapeStrokeStyle>\n\t): EShapeStrokeStyle | undefined {\n\t\tif (isString(target)) {\n\t\t\treturn EShapeStrokeStyle[target];\n\t\t} else if (isArray(target)) {\n\t\t\tlet result = EShapeStrokeStyle.NONE;\n\t\t\tfor (let i = 0, imax = target.length; i < imax; ++i) {\n\t\t\t\tresult |= EShapeStrokeStyle[target[i]];\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\treturn target;\n\t}\n\n\tprotected toTickMajorFormatter(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickMajorOptions\n\t): NumberFormatter | undefined {\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 undefined;\n\t\t\t} else if (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\tconst format = theme.getMajorTickTextFormat();\n\t\tif (format != null) {\n\t\t\treturn NumberFormatters.create(format);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprotected toTickMajorText(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickTextOptions\n\t): DChartAxisBaseOptionParserText | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toTickMajorTextColor(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: toEnum(options.weight, EShapeTextWeight),\n\t\t\talign: this.toTickMajorTextAlign(theme, options.align),\n\t\t\toffset: this.toTickMajorTextOffset(theme, options.offset),\n\t\t\tstyle: toEnum(options.style, EShapeTextStyle),\n\t\t\toutline: this.toTickMajorTextOutline(theme, options.outline),\n\t\t\tspacing: this.toTickMajorTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMajorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toTickMajorTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toTickMajorTextOutline(\n\t\ttheme: THEME,\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 toTickMajorTextAlign(\n\t\ttheme: THEME,\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 toTickMajorTextOffset(\n\t\ttheme: THEME,\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 toTickMajorTextSpacing(\n\t\ttheme: THEME,\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 toTickMajorTextPadding(\n\t\ttheme: THEME,\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: THEME,\n\t\toptions?: DChartAxisBaseTextDirectionOption\n\t): EShapeTextDirection {\n\t\treturn toEnum(options ?? theme.getMajorTickTextDirection(), EShapeTextDirection);\n\t}\n\n\tprotected toTickMajorTextColor(theme: THEME, options?: number): number | undefined {\n\t\treturn options ?? theme.getMajorTickTextColor();\n\t}\n\n\tprotected toTickMinorFormatter(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickMinorOptions\n\t): NumberFormatter | undefined {\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 undefined;\n\t\t\t} else if (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\tconst format = theme.getMinorTickTextFormat();\n\t\tif (format != null) {\n\t\t\treturn NumberFormatters.create(format);\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprotected toTickMinorText(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTickTextOptions\n\t): DChartAxisBaseOptionParserText | undefined {\n\t\toptions = options || {};\n\t\treturn {\n\t\t\tformat: options.format,\n\t\t\tcolor: this.toTickMinorTextColor(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: toEnum(options.weight, EShapeTextWeight),\n\t\t\talign: this.toTickMinorTextAlign(theme, options.align),\n\t\t\toffset: this.toTickMinorTextOffset(theme, options.offset),\n\t\t\tstyle: toEnum(options.style, EShapeTextStyle),\n\t\t\toutline: this.toTickMinorTextOutline(theme, options.outline),\n\t\t\tspacing: this.toTickMinorTextSpacing(theme, options.spacing),\n\t\t\tdirection: this.toTickMinorTextDirection(theme, options.direction),\n\t\t\tpadding: this.toTickMinorTextPadding(theme, options.padding),\n\t\t\tclipping: options.clipping\n\t\t};\n\t}\n\n\tprotected toTickMinorTextOutline(\n\t\ttheme: THEME,\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 toTickMinorTextAlign(\n\t\ttheme: THEME,\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.getMinorTickTextAlignHorizontal(position),\n\t\t\tvertical: options?.vertical ?? theme.getMinorTickTextAlignVertical(position)\n\t\t};\n\t}\n\n\tprotected toTickMinorTextOffset(\n\t\ttheme: THEME,\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 toTickMinorTextSpacing(\n\t\ttheme: THEME,\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 toTickMinorTextPadding(\n\t\ttheme: THEME,\n\t\toptions?: Partial<EShapeTextOffsetLike>\n\t): Partial<EShapeTextOffsetLike> {\n\t\treturn {\n\t\t\thorizontal: options?.horizontal ?? theme.getMinorTickTextPaddingHorizontal(),\n\t\t\tvertical: options?.vertical ?? theme.getMinorTickTextPaddingVertical()\n\t\t};\n\t}\n\n\tprotected toTickMinorTextDirection(\n\t\ttheme: THEME,\n\t\toptions?: DChartAxisBaseTextDirectionOption\n\t): EShapeTextDirection {\n\t\treturn toEnum(options ?? theme.getMinorTickTextDirection(), EShapeTextDirection);\n\t}\n\n\tprotected toTickMinorTextColor(theme: THEME, options?: number): number | undefined {\n\t\treturn options ?? theme.getMinorTickTextColor();\n\t}\n\n\tprotected toLabel(theme: THEME, options?: OPTIONS): 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: toEnum(label.weight, EShapeTextWeight),\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: toEnum(label.style, EShapeTextStyle),\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: THEME,\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: THEME,\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: THEME,\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: THEME,\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: THEME,\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: THEME,\n\t\toptions?: DChartAxisBaseTextDirectionOption\n\t): EShapeTextDirection {\n\t\treturn toEnum(options ?? theme.getLabelDirection(), EShapeTextDirection);\n\t}\n\n\tprotected toLabelColor(theme: THEME, options?: number): number | undefined {\n\t\treturn options ?? theme.getLabelColor();\n\t}\n}\n"]}