@wcardinal/wcardinal-ui 0.291.0 → 0.293.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-bar.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-base-bar.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +67 -46
- package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +42 -16
- package/dist/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +6 -4
- package/dist/types/wcardinal/ui/d-chart-axis-base-tick-major-gridline.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-base-tick-major.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-base-tick-minor.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-base.d.ts +8 -7
- package/dist/types/wcardinal/ui/d-chart-axis-tick-container.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-tick-major-gridline.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-tick-major.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-tick-minor.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-chart-axis-x-datetime.d.ts +3 -2
- package/dist/types/wcardinal/ui/d-chart-axis-x.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-chart-axis-y.d.ts +3 -3
- package/dist/types/wcardinal/ui/d-chart-series-base.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-chart-series-container-impl.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-chart-series-line-of-any.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-chart-series-line.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-chart-series-linear.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-chart-series.d.ts +1 -0
- package/dist/wcardinal/ui/d-chart-axis-bar.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-bar.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +32 -14
- 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-tick-container.js +5 -5
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-tick-major-gridline.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-tick-major.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-tick-minor.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js +8 -5
- package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-tick-major-gridline.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-tick-major.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-tick-minor.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-x-datetime.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-x.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-y.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-plot-area-impl.js +2 -4
- package/dist/wcardinal/ui/d-chart-plot-area-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-container-impl.js +10 -0
- package/dist/wcardinal/ui/d-chart-series-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-line-of-any.js +15 -4
- package/dist/wcardinal/ui/d-chart-series-line-of-any.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-line.js +15 -4
- package/dist/wcardinal/ui/d-chart-series-line.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-linear.js +15 -4
- package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +98 -41
- package/dist/wcardinal-ui.js +98 -41
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DChartAxisBaseOptions,
|
|
1
|
+
import { DChartAxisBaseOptions, DChartAxisBaseTickOptions, DChartAxisBaseTickMajorGridlineOptions, DChartAxisBaseTickMajorOptions, DChartAxisBaseTickMinorOptions, DChartAxisBaseTextDirectionOption, DChartAxisBaseTickTextOptions, DThemeChartAxisBase, DChartAxisBaseStrokeOptions } from "./d-chart-axis-base-options";
|
|
2
2
|
import { DChartAxisPosition } from "./d-chart-axis-position";
|
|
3
3
|
import { DChartAxisTickPosition } from "./d-chart-axis-tick-position";
|
|
4
4
|
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
@@ -8,7 +8,7 @@ import { EShapePointsStyleOption } from "./shape/e-shape-points-styles";
|
|
|
8
8
|
import { EShapeStrokeLike } from "./shape/e-shape-stroke";
|
|
9
9
|
import { EShapeStrokeSide } from "./shape/e-shape-stroke-side";
|
|
10
10
|
import { EShapeStrokeStyle } from "./shape/e-shape-stroke-style";
|
|
11
|
-
import { EShapeTextLike } from "./shape/e-shape-text";
|
|
11
|
+
import { EShapeTextLike, EShapeTextStyle, EShapeTextWeight } from "./shape/e-shape-text";
|
|
12
12
|
import { EShapeTextAlignLike } from "./shape/e-shape-text-align";
|
|
13
13
|
import { EShapeTextDirection } from "./shape/e-shape-text-direction";
|
|
14
14
|
import { EShapeTextOffsetLike } from "./shape/e-shape-text-offset";
|
|
@@ -16,6 +16,26 @@ import { EShapeTextOutlineLike } from "./shape/e-shape-text-outline";
|
|
|
16
16
|
import { EShapeBarPosition } from "./shape/variant/e-shape-bar-position";
|
|
17
17
|
import { DeepPartial } from "./util/deep-partial";
|
|
18
18
|
import { NumberFormatter } from "./util/number-formatter";
|
|
19
|
+
import { NumberFormatterFunction } from "./util/number-formatter-function";
|
|
20
|
+
export interface DChartAxisBaseOptionParserText {
|
|
21
|
+
/** A format. Please refer to {@link NumberFormatter} for format details. */
|
|
22
|
+
format?: string | null;
|
|
23
|
+
/** A formatter function. */
|
|
24
|
+
formatter?: NumberFormatterFunction;
|
|
25
|
+
color?: number;
|
|
26
|
+
alpha?: number;
|
|
27
|
+
family?: string;
|
|
28
|
+
size?: number;
|
|
29
|
+
weight?: EShapeTextWeight;
|
|
30
|
+
align?: Partial<EShapeTextAlignLike>;
|
|
31
|
+
offset?: Partial<EShapeTextOffsetLike>;
|
|
32
|
+
style?: EShapeTextStyle;
|
|
33
|
+
outline?: Partial<EShapeTextOutlineLike>;
|
|
34
|
+
spacing?: Partial<EShapeTextOffsetLike>;
|
|
35
|
+
direction?: EShapeTextDirection;
|
|
36
|
+
padding?: Partial<EShapeTextOffsetLike>;
|
|
37
|
+
clipping?: boolean;
|
|
38
|
+
}
|
|
19
39
|
export interface DChartAxisBaseOptionParserGridline {
|
|
20
40
|
enable: boolean;
|
|
21
41
|
style?: EShapePointsStyle;
|
|
@@ -29,7 +49,7 @@ export interface DChartAxisBaseOptionParserTickMajor {
|
|
|
29
49
|
position: EShapeBarPosition;
|
|
30
50
|
style?: EShapePointsStyle;
|
|
31
51
|
stroke?: Partial<EShapeStrokeLike>;
|
|
32
|
-
text?:
|
|
52
|
+
text?: DChartAxisBaseOptionParserText;
|
|
33
53
|
formatter?: NumberFormatter;
|
|
34
54
|
gridline: DChartAxisBaseOptionParserGridline;
|
|
35
55
|
}
|
|
@@ -40,10 +60,10 @@ export interface DChartAxisBaseOptionParserTickMinor {
|
|
|
40
60
|
position: EShapeBarPosition;
|
|
41
61
|
style?: EShapePointsStyle;
|
|
42
62
|
stroke?: Partial<EShapeStrokeLike>;
|
|
43
|
-
text?:
|
|
63
|
+
text?: DChartAxisBaseOptionParserText;
|
|
44
64
|
formatter?: NumberFormatter;
|
|
45
65
|
}
|
|
46
|
-
export interface
|
|
66
|
+
export interface DChartAxisBaseOptionParserTick {
|
|
47
67
|
enable: boolean;
|
|
48
68
|
major: DChartAxisBaseOptionParserTickMajor;
|
|
49
69
|
minor: DChartAxisBaseOptionParserTickMinor;
|
|
@@ -52,56 +72,57 @@ export interface DChartAxisBaseOptionParserBar {
|
|
|
52
72
|
style?: EShapePointsStyle;
|
|
53
73
|
stroke?: Partial<EShapeStrokeLike>;
|
|
54
74
|
}
|
|
55
|
-
export declare class DChartAxisBaseOptionParser {
|
|
75
|
+
export declare class DChartAxisBaseOptionParser<THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>> {
|
|
56
76
|
protected _coordinateIndex: number;
|
|
57
77
|
protected _position: DChartAxisPosition;
|
|
58
|
-
protected _tick:
|
|
78
|
+
protected _tick: DChartAxisBaseOptionParserTick;
|
|
59
79
|
protected _label: DeepPartial<EShapeTextLike> | undefined;
|
|
60
80
|
protected _padding: number;
|
|
61
81
|
protected _bar: DChartAxisBaseOptionParserBar;
|
|
62
|
-
constructor(theme:
|
|
82
|
+
constructor(theme: THEME, options?: OPTIONS);
|
|
63
83
|
get coordinateIndex(): number;
|
|
64
84
|
get padding(): number;
|
|
65
85
|
get position(): DChartAxisPosition;
|
|
66
86
|
get bar(): DChartAxisBaseOptionParserBar;
|
|
67
|
-
get tick():
|
|
87
|
+
get tick(): DChartAxisBaseOptionParserTick;
|
|
68
88
|
get label(): DeepPartial<EShapeTextLike> | undefined;
|
|
69
|
-
protected toPosition(theme:
|
|
70
|
-
protected toBar(theme:
|
|
71
|
-
protected
|
|
72
|
-
protected toTickMajor(theme:
|
|
73
|
-
protected toTickMajorGridline(theme:
|
|
89
|
+
protected toPosition(theme: THEME, options?: OPTIONS): DChartAxisPosition;
|
|
90
|
+
protected toBar(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserBar;
|
|
91
|
+
protected toTick(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParserTick;
|
|
92
|
+
protected toTickMajor(theme: THEME, options?: DChartAxisBaseTickOptions): DChartAxisBaseOptionParserTickMajor;
|
|
93
|
+
protected toTickMajorGridline(theme: THEME, options: DChartAxisBaseTickMajorGridlineOptions | undefined, optionsStyle: EShapePointsStyleOption | undefined, optionsStroke: DChartAxisBaseStrokeOptions | undefined): DChartAxisBaseOptionParserGridline;
|
|
74
94
|
protected toTickPosition(tickPosition: DChartAxisTickPosition | keyof typeof DChartAxisTickPosition): EShapeBarPosition;
|
|
75
|
-
protected toTickMinor(theme:
|
|
76
|
-
protected toBarStroke(theme:
|
|
77
|
-
protected toTickMajorStroke(theme:
|
|
78
|
-
protected toTickMajorGridlineStroke(theme:
|
|
79
|
-
protected toTickMinorStroke(theme:
|
|
80
|
-
protected toStroke(optionsA:
|
|
81
|
-
protected
|
|
82
|
-
protected
|
|
83
|
-
protected
|
|
84
|
-
protected
|
|
85
|
-
protected
|
|
86
|
-
protected
|
|
87
|
-
protected
|
|
88
|
-
protected
|
|
89
|
-
protected
|
|
90
|
-
protected
|
|
91
|
-
protected
|
|
92
|
-
protected
|
|
93
|
-
protected
|
|
94
|
-
protected
|
|
95
|
-
protected
|
|
96
|
-
protected
|
|
97
|
-
protected
|
|
98
|
-
protected
|
|
99
|
-
protected
|
|
100
|
-
protected
|
|
101
|
-
protected
|
|
102
|
-
protected
|
|
103
|
-
protected
|
|
104
|
-
protected
|
|
105
|
-
protected
|
|
106
|
-
protected
|
|
95
|
+
protected toTickMinor(theme: THEME, options?: DChartAxisBaseTickOptions): DChartAxisBaseOptionParserTickMinor;
|
|
96
|
+
protected toBarStroke(theme: THEME, options?: DChartAxisBaseStrokeOptions): Partial<EShapeStrokeLike>;
|
|
97
|
+
protected toTickMajorStroke(theme: THEME, optionsA?: DChartAxisBaseStrokeOptions, optionsB?: DChartAxisBaseStrokeOptions): Partial<EShapeStrokeLike>;
|
|
98
|
+
protected toTickMajorGridlineStroke(theme: THEME, optionsA?: DChartAxisBaseStrokeOptions, optionsB?: DChartAxisBaseStrokeOptions): Partial<EShapeStrokeLike>;
|
|
99
|
+
protected toTickMinorStroke(theme: THEME, optionsA?: DChartAxisBaseStrokeOptions, optionsB?: DChartAxisBaseStrokeOptions): Partial<EShapeStrokeLike>;
|
|
100
|
+
protected toStroke(optionsA: DChartAxisBaseStrokeOptions | undefined, optionsB: DChartAxisBaseStrokeOptions | undefined, enable: boolean | undefined, color: number | undefined, alpha: number | undefined, width: number | undefined, align: number | undefined, side: EShapeStrokeSide | undefined, style: EShapeStrokeStyle | undefined): Partial<EShapeStrokeLike>;
|
|
101
|
+
protected toStrokeStyle(target?: EShapeStrokeStyle | keyof typeof EShapeStrokeStyle | Array<keyof typeof EShapeStrokeStyle>): EShapeStrokeStyle | undefined;
|
|
102
|
+
protected toTickMajorFormatter(theme: THEME, options?: DChartAxisBaseTickMajorOptions): NumberFormatter | undefined;
|
|
103
|
+
protected toTickMajorText(theme: THEME, options?: DChartAxisBaseTickTextOptions): DChartAxisBaseOptionParserText | undefined;
|
|
104
|
+
protected toTickMajorTextOutline(theme: THEME, options?: Partial<EShapeTextOutlineLike>): Partial<EShapeTextOutlineLike> | undefined;
|
|
105
|
+
protected toTickMajorTextAlign(theme: THEME, options?: Partial<EShapeTextAlignLike>): Partial<EShapeTextAlignLike> | undefined;
|
|
106
|
+
protected toTickMajorTextOffset(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike> | undefined;
|
|
107
|
+
protected toTickMajorTextSpacing(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike> | undefined;
|
|
108
|
+
protected toTickMajorTextPadding(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike>;
|
|
109
|
+
protected toTickMajorTextDirection(theme: THEME, options?: DChartAxisBaseTextDirectionOption): EShapeTextDirection;
|
|
110
|
+
protected toTickMajorTextColor(theme: THEME, options?: number): number | undefined;
|
|
111
|
+
protected toTickMinorFormatter(theme: THEME, options?: DChartAxisBaseTickMinorOptions): NumberFormatter | undefined;
|
|
112
|
+
protected toTickMinorText(theme: THEME, options?: DChartAxisBaseTickTextOptions): DChartAxisBaseOptionParserText | undefined;
|
|
113
|
+
protected toTickMinorTextOutline(theme: THEME, options?: Partial<EShapeTextOutlineLike>): Partial<EShapeTextOutlineLike> | undefined;
|
|
114
|
+
protected toTickMinorTextAlign(theme: THEME, options?: Partial<EShapeTextAlignLike>): Partial<EShapeTextAlignLike> | undefined;
|
|
115
|
+
protected toTickMinorTextOffset(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike> | undefined;
|
|
116
|
+
protected toTickMinorTextSpacing(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike> | undefined;
|
|
117
|
+
protected toTickMinorTextPadding(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike>;
|
|
118
|
+
protected toTickMinorTextDirection(theme: THEME, options?: DChartAxisBaseTextDirectionOption): EShapeTextDirection;
|
|
119
|
+
protected toTickMinorTextColor(theme: THEME, options?: number): number | undefined;
|
|
120
|
+
protected toLabel(theme: THEME, options?: OPTIONS): DeepPartial<EShapeTextLike> | undefined;
|
|
121
|
+
protected toLabelOutline(theme: THEME, options?: Partial<EShapeTextOutlineLike>): Partial<EShapeTextOutlineLike> | undefined;
|
|
122
|
+
protected toLabelAlign(theme: THEME, options?: Partial<EShapeTextAlignLike>): Partial<EShapeTextAlignLike> | undefined;
|
|
123
|
+
protected toLabelOffset(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike> | undefined;
|
|
124
|
+
protected toLabelSpacing(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike> | undefined;
|
|
125
|
+
protected toLabelPadding(theme: THEME, options?: Partial<EShapeTextOffsetLike>): Partial<EShapeTextOffsetLike>;
|
|
126
|
+
protected toLabelDirection(theme: THEME, options?: DChartAxisBaseTextDirectionOption): EShapeTextDirection;
|
|
127
|
+
protected toLabelColor(theme: THEME, options?: number): number | undefined;
|
|
107
128
|
}
|
|
@@ -5,18 +5,19 @@ import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick
|
|
|
5
5
|
import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick-minor-step-function";
|
|
6
6
|
import { EShapePointsStyle } from "./shape/e-shape-points-style";
|
|
7
7
|
import { EShapePointsStyleOption } from "./shape/e-shape-points-styles";
|
|
8
|
-
import { EShapeStrokeLike } from "./shape/e-shape-stroke";
|
|
9
8
|
import { EShapeStrokeSide } from "./shape/e-shape-stroke-side";
|
|
10
9
|
import { EShapeStrokeStyle } from "./shape/e-shape-stroke-style";
|
|
11
|
-
import {
|
|
10
|
+
import { EShapeTextStyle, EShapeTextWeight } from "./shape/e-shape-text";
|
|
12
11
|
import { EShapeTextAlignLike } from "./shape/e-shape-text-align";
|
|
13
12
|
import { EShapeTextAlignHorizontal } from "./shape/e-shape-text-align-horizontal";
|
|
14
13
|
import { EShapeTextAlignVertical } from "./shape/e-shape-text-align-vertical";
|
|
15
14
|
import { EShapeTextDirection } from "./shape/e-shape-text-direction";
|
|
16
15
|
import { EShapeTextOffsetLike } from "./shape/e-shape-text-offset";
|
|
17
16
|
import { EShapeTextOutlineLike } from "./shape/e-shape-text-outline";
|
|
18
|
-
import { DeepPartial } from "./util/deep-partial";
|
|
19
17
|
import { NumberFormatterFunction } from "./util/number-formatter-function";
|
|
18
|
+
export declare type DChartAxisBaseTextWeightOption = EShapeTextWeight | keyof typeof EShapeTextWeight;
|
|
19
|
+
export declare type DChartAxisBaseTextStyleOption = EShapeTextStyle | keyof typeof EShapeTextStyle;
|
|
20
|
+
export declare type DChartAxisBaseTextDirectionOption = EShapeTextDirection | keyof typeof EShapeTextDirection;
|
|
20
21
|
export interface DChartAxisBaseTickTextOptions {
|
|
21
22
|
/** A format. Please refer to {@link NumberFormatter} for format details. */
|
|
22
23
|
format?: string | null;
|
|
@@ -26,20 +27,29 @@ export interface DChartAxisBaseTickTextOptions {
|
|
|
26
27
|
alpha?: number;
|
|
27
28
|
family?: string;
|
|
28
29
|
size?: number;
|
|
29
|
-
weight?:
|
|
30
|
+
weight?: DChartAxisBaseTextWeightOption;
|
|
30
31
|
align?: Partial<EShapeTextAlignLike>;
|
|
31
32
|
offset?: Partial<EShapeTextOffsetLike>;
|
|
32
|
-
style?:
|
|
33
|
+
style?: DChartAxisBaseTextStyleOption;
|
|
33
34
|
outline?: Partial<EShapeTextOutlineLike>;
|
|
34
35
|
spacing?: Partial<EShapeTextOffsetLike>;
|
|
35
|
-
direction?:
|
|
36
|
+
direction?: DChartAxisBaseTextDirectionOption;
|
|
36
37
|
padding?: Partial<EShapeTextOffsetLike>;
|
|
37
38
|
clipping?: boolean;
|
|
38
39
|
}
|
|
40
|
+
export interface DChartAxisBaseStrokeOptions {
|
|
41
|
+
enable?: boolean;
|
|
42
|
+
color?: number;
|
|
43
|
+
alpha?: number;
|
|
44
|
+
width?: number;
|
|
45
|
+
align?: number;
|
|
46
|
+
side?: EShapeStrokeSide;
|
|
47
|
+
style?: EShapeStrokeStyle | keyof typeof EShapeStrokeStyle | Array<keyof typeof EShapeStrokeStyle>;
|
|
48
|
+
}
|
|
39
49
|
export interface DChartAxisBaseTickMajorGridlineOptions {
|
|
40
50
|
enable?: boolean;
|
|
41
51
|
style?: EShapePointsStyleOption;
|
|
42
|
-
stroke?:
|
|
52
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
43
53
|
}
|
|
44
54
|
export declare type DChartAxisTickPositionOption = DChartAxisTickPosition | keyof typeof DChartAxisTickPosition;
|
|
45
55
|
export interface DChartAxisBaseTickMajorOptions {
|
|
@@ -49,7 +59,7 @@ export interface DChartAxisBaseTickMajorOptions {
|
|
|
49
59
|
size?: number;
|
|
50
60
|
position?: DChartAxisTickPositionOption;
|
|
51
61
|
style?: EShapePointsStyleOption;
|
|
52
|
-
stroke?:
|
|
62
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
53
63
|
text?: DChartAxisBaseTickTextOptions;
|
|
54
64
|
gridline?: DChartAxisBaseTickMajorGridlineOptions;
|
|
55
65
|
}
|
|
@@ -59,25 +69,41 @@ export interface DChartAxisBaseTickMinorOptions {
|
|
|
59
69
|
size?: number;
|
|
60
70
|
position?: DChartAxisTickPositionOption;
|
|
61
71
|
style?: EShapePointsStyleOption;
|
|
62
|
-
stroke?:
|
|
72
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
63
73
|
text?: DChartAxisBaseTickTextOptions;
|
|
64
74
|
}
|
|
65
|
-
export interface
|
|
75
|
+
export interface DChartAxisBaseTickOptions {
|
|
66
76
|
enable?: boolean;
|
|
67
77
|
position?: DChartAxisTickPositionOption;
|
|
68
78
|
style?: EShapePointsStyleOption;
|
|
69
|
-
stroke?:
|
|
79
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
70
80
|
major?: DChartAxisBaseTickMajorOptions;
|
|
71
81
|
minor?: DChartAxisBaseTickMinorOptions;
|
|
72
82
|
}
|
|
73
|
-
export interface
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
export interface DChartAxisBaseLabelOptions {
|
|
84
|
+
value?: string;
|
|
85
|
+
color?: number;
|
|
86
|
+
alpha?: number;
|
|
87
|
+
family?: string;
|
|
88
|
+
size?: number;
|
|
89
|
+
weight?: DChartAxisBaseTextWeightOption;
|
|
90
|
+
align?: Partial<EShapeTextAlignLike>;
|
|
91
|
+
offset?: Partial<EShapeTextOffsetLike>;
|
|
92
|
+
style?: DChartAxisBaseTextStyleOption;
|
|
93
|
+
outline?: Partial<EShapeTextOutlineLike>;
|
|
94
|
+
spacing?: Partial<EShapeTextOffsetLike>;
|
|
95
|
+
direction?: DChartAxisBaseTextDirectionOption;
|
|
96
|
+
padding?: Partial<EShapeTextOffsetLike>;
|
|
97
|
+
clipping?: boolean;
|
|
98
|
+
}
|
|
99
|
+
export interface DChartAxisBaseOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisOptions {
|
|
100
|
+
tick?: DChartAxisBaseTickOptions;
|
|
101
|
+
label?: DChartAxisBaseLabelOptions;
|
|
76
102
|
style?: EShapePointsStyle;
|
|
77
|
-
stroke?:
|
|
103
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
78
104
|
coordinate?: number;
|
|
79
105
|
padding?: number;
|
|
80
|
-
theme?:
|
|
106
|
+
theme?: THEME;
|
|
81
107
|
}
|
|
82
108
|
export interface DThemeChartAxisBase {
|
|
83
109
|
getPosition(): DChartAxisPosition;
|
|
@@ -9,7 +9,9 @@ import { DChartCoordinate } from "./d-chart-coordinate";
|
|
|
9
9
|
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
10
10
|
import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick-minor-step-function";
|
|
11
11
|
import { EShape } from "./shape/e-shape";
|
|
12
|
-
export
|
|
12
|
+
export interface DChartAxisBaseTickContainerOptions {
|
|
13
|
+
}
|
|
14
|
+
export declare class DChartAxisBaseTickContainer<CHART extends DBase = DBase, OPTIONS extends DChartAxisBaseTickContainerOptions = DChartAxisBaseTickContainerOptions> implements DChartAxisTickContainer<CHART> {
|
|
13
15
|
protected _parser: DChartAxisBaseOptionParser;
|
|
14
16
|
protected _container?: DChartAxisContainer<CHART>;
|
|
15
17
|
protected _index: number;
|
|
@@ -17,11 +19,11 @@ export declare class DChartAxisBaseTickContainer<CHART extends DBase> implements
|
|
|
17
19
|
protected _minor: DChartAxisTickMinor<CHART>;
|
|
18
20
|
protected _majorTicks: number[];
|
|
19
21
|
protected _minorTicks: number[];
|
|
20
|
-
constructor(parser: DChartAxisBaseOptionParser);
|
|
22
|
+
constructor(parser: DChartAxisBaseOptionParser, options?: OPTIONS);
|
|
21
23
|
get major(): DChartAxisTickMajor<CHART>;
|
|
22
|
-
protected newMajor(parser: DChartAxisBaseOptionParser): DChartAxisTickMajor<CHART>;
|
|
24
|
+
protected newMajor(parser: DChartAxisBaseOptionParser, options?: OPTIONS): DChartAxisTickMajor<CHART>;
|
|
23
25
|
get minor(): DChartAxisTickMinor<CHART>;
|
|
24
|
-
protected newMinor(parser: DChartAxisBaseOptionParser): DChartAxisTickMinor<CHART>;
|
|
26
|
+
protected newMinor(parser: DChartAxisBaseOptionParser, options?: OPTIONS): DChartAxisTickMinor<CHART>;
|
|
25
27
|
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
26
28
|
unbind(): void;
|
|
27
29
|
update(): boolean;
|
|
@@ -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;
|
|
@@ -6,26 +6,27 @@ import { DChartAxisBaseOptionParser } from "./d-chart-axis-base-options-parser";
|
|
|
6
6
|
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
7
7
|
import { DChartAxisPosition } from "./d-chart-axis-position";
|
|
8
8
|
import { DChartAxisTickContainer } from "./d-chart-axis-tick-container";
|
|
9
|
-
export declare class DChartAxisBase<CHART extends DBase = DBase, OPTIONS extends DChartAxisBaseOptions = DChartAxisBaseOptions
|
|
9
|
+
export declare class DChartAxisBase<CHART extends DBase = DBase, THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>> implements DChartAxis<CHART> {
|
|
10
10
|
protected _theme: DThemeChartAxisBase;
|
|
11
|
-
protected _parser: DChartAxisBaseOptionParser
|
|
11
|
+
protected _parser: DChartAxisBaseOptionParser<THEME>;
|
|
12
12
|
protected _container?: DChartAxisContainer<CHART>;
|
|
13
13
|
protected _index: number;
|
|
14
14
|
protected _bar: DChartAxisBar<CHART>;
|
|
15
15
|
protected _tick: DChartAxisTickContainer<CHART>;
|
|
16
16
|
constructor(options?: OPTIONS);
|
|
17
|
-
get parser(): DChartAxisBaseOptionParser
|
|
17
|
+
get parser(): DChartAxisBaseOptionParser<THEME>;
|
|
18
|
+
protected newParser(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParser<THEME>;
|
|
18
19
|
get position(): DChartAxisPosition;
|
|
19
20
|
get bar(): DChartAxisBar<CHART>;
|
|
20
|
-
protected newBar(parser: DChartAxisBaseOptionParser): DChartAxisBar<CHART>;
|
|
21
|
+
protected newBar(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisBar<CHART>;
|
|
21
22
|
get tick(): DChartAxisTickContainer<CHART>;
|
|
22
|
-
protected newTick(parser: DChartAxisBaseOptionParser): DChartAxisTickContainer<CHART>;
|
|
23
|
+
protected newTick(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisTickContainer<CHART>;
|
|
23
24
|
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
24
25
|
unbind(): void;
|
|
25
26
|
update(): void;
|
|
26
27
|
onRender(): void;
|
|
27
28
|
destroy(): void;
|
|
28
|
-
protected toTheme(options?: DChartAxisBaseOptions):
|
|
29
|
-
protected getThemeDefault():
|
|
29
|
+
protected toTheme(options?: DChartAxisBaseOptions<THEME>): THEME;
|
|
30
|
+
protected getThemeDefault(): THEME;
|
|
30
31
|
protected getType(): string;
|
|
31
32
|
}
|
|
@@ -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;
|
|
@@ -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,10 +1,11 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
|
+
import { DThemeChartAxisBase } from "./d-chart-axis-base-options";
|
|
2
3
|
import { DChartAxisX, DChartAxisXOptions } from "./d-chart-axis-x";
|
|
3
|
-
export interface DChartAxisXDatetimeOptions extends DChartAxisXOptions {
|
|
4
|
+
export interface DChartAxisXDatetimeOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisXOptions<THEME> {
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* An X axis for datetimes.
|
|
7
8
|
*/
|
|
8
|
-
export declare class DChartAxisXDatetime<CHART extends DBase = DBase, OPTIONS extends DChartAxisXDatetimeOptions = DChartAxisXDatetimeOptions
|
|
9
|
+
export declare class DChartAxisXDatetime<CHART extends DBase = DBase, THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisXDatetimeOptions<THEME> = DChartAxisXDatetimeOptions<THEME>> extends DChartAxisX<CHART, THEME, OPTIONS> {
|
|
9
10
|
protected getType(): string;
|
|
10
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
2
|
import { DChartAxisBase } from "./d-chart-axis-base";
|
|
3
|
-
import { DChartAxisBaseOptions } from "./d-chart-axis-base-options";
|
|
4
|
-
export interface DChartAxisXOptions extends DChartAxisBaseOptions {
|
|
3
|
+
import { DChartAxisBaseOptions, DThemeChartAxisBase } from "./d-chart-axis-base-options";
|
|
4
|
+
export interface DChartAxisXOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisBaseOptions<THEME> {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* An X axis.
|
|
8
8
|
*/
|
|
9
|
-
export declare class DChartAxisX<CHART extends DBase = DBase, OPTIONS extends DChartAxisXOptions = DChartAxisXOptions
|
|
9
|
+
export declare class DChartAxisX<CHART extends DBase = DBase, THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisXOptions<THEME> = DChartAxisXOptions<THEME>> extends DChartAxisBase<CHART, THEME, OPTIONS> {
|
|
10
10
|
protected getType(): string;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
2
|
import { DChartAxisBase } from "./d-chart-axis-base";
|
|
3
|
-
import { DChartAxisBaseOptions } from "./d-chart-axis-base-options";
|
|
4
|
-
export interface DChartAxisYOptions extends DChartAxisBaseOptions {
|
|
3
|
+
import { DChartAxisBaseOptions, DThemeChartAxisBase } from "./d-chart-axis-base-options";
|
|
4
|
+
export interface DChartAxisYOptions<THEME extends DThemeChartAxisBase = DThemeChartAxisBase> extends DChartAxisBaseOptions<THEME> {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* An Y axis.
|
|
8
8
|
*/
|
|
9
|
-
export declare class DChartAxisY<CHART extends DBase = DBase, OPTIONS extends DChartAxisYOptions = DChartAxisYOptions
|
|
9
|
+
export declare class DChartAxisY<CHART extends DBase = DBase, THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisYOptions<THEME> = DChartAxisYOptions<THEME>> extends DChartAxisBase<CHART, THEME, OPTIONS> {
|
|
10
10
|
protected getType(): string;
|
|
11
11
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;;;GAGG;AAMH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE;IAMC,2BAAY,MAAkC;QAC7C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACjB,CAAC;IAED,sBAAI,oCAAK;aAAT;YACC,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YACzB,IAAI,MAAM,IAAI,IAAI,EAAE;gBACnB,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACzB,IAAI,CAAC,MAAM,GAAG,MAAM,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AC,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;oBAC5B,MAAM;gBACP,KAAK,kBAAkB,CAAC,KAAK;oBAC5B,QAAQ,CAAC,GAAG,CAAC,aAAa,GAAG,MAAM,EAAE,cAAc,GAAG,GAAG,CAAC,CAAC;oBAC3D,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;oBAC5B,MAAM;aACP;YACD,KAAK,CAAC,mBAAmB,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,mCAAO,GAAP;QACC,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,KAAK,CAAC,OAAO,EAAE,CAAC;SAChB;QACD,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC7B,CAAC;IACF,wBAAC;AAAD,CAAC,AApGD,IAoGC","sourcesContent":["/*\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> 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-chart-axis-base-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE;IAMC,2BAAY,MAAkC;QAC7C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACjB,CAAC;IAED,sBAAI,oCAAK;aAAT;YACC,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YACzB,IAAI,MAAM,IAAI,IAAI,EAAE;gBACnB,MAAM,GAAG,IAAI,CAAC,QAAQ,EA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cAAc,GAAG,GAAG,CAAC,CAAC;oBAC/C,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;oBAC5B,MAAM;gBACP,KAAK,kBAAkB,CAAC,KAAK;oBAC5B,QAAQ,CAAC,GAAG,CAAC,aAAa,GAAG,MAAM,EAAE,cAAc,GAAG,GAAG,CAAC,CAAC;oBAC3D,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;oBAC5B,MAAM;aACP;YACD,KAAK,CAAC,mBAAmB,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,mCAAO,GAAP;QACC,IAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,KAAK,CAAC,OAAO,EAAE,CAAC;SAChB;QACD,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC7B,CAAC;IACF,wBAAC;AAAD,CAAC,AApGD,IAoGC","sourcesContent":["/*\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"]}
|