@wcardinal/wcardinal-ui 0.290.0 → 0.292.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 +5 -0
- package/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +69 -37
- package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +54 -20
- package/dist/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +17 -6
- package/dist/types/wcardinal/ui/d-chart-axis-base.d.ts +10 -8
- package/dist/types/wcardinal/ui/d-chart-axis-tick-container.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-chart-axis-tick-major.d.ts +4 -0
- package/dist/types/wcardinal/ui/d-chart-axis-tick-minor.d.ts +4 -0
- 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-coordinate-base.d.ts +52 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear.d.ts +4 -46
- package/dist/types/wcardinal/ui/d-chart-coordinate-log.d.ts +4 -42
- package/dist/types/wcardinal/ui/d-table-body.d.ts +7 -0
- package/dist/types/wcardinal/ui/index.d.ts +11 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.d.ts +7 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.d.ts +7 -0
- package/dist/wcardinal/ui/d-chart-axis-bar.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +152 -34
- 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 +64 -43
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-tick-minor.js +1 -0
- package/dist/wcardinal/ui/d-chart-axis-base-tick-minor.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js +21 -4
- 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.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-coordinate-base.js +186 -0
- package/dist/wcardinal/ui/d-chart-coordinate-base.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js +2 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js +9 -165
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js +2 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log.js +9 -153
- package/dist/wcardinal/ui/d-chart-coordinate-log.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-line-of-any.js +4 -2
- package/dist/wcardinal/ui/d-chart-series-line-of-any.js.map +1 -1
- package/dist/wcardinal/ui/d-scroll-bar-vertical.js +1 -0
- package/dist/wcardinal/ui/d-scroll-bar-vertical.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body.js +39 -0
- package/dist/wcardinal/ui/d-table-body.js.map +1 -1
- package/dist/wcardinal/ui/d-table.js +3 -3
- package/dist/wcardinal/ui/d-table.js.map +1 -1
- package/dist/wcardinal/ui/index.js +11 -0
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js +21 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js +21 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +22 -1
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +22 -1
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +781 -652
- package/dist/wcardinal-ui.js +739 -652
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
|
+
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
2
3
|
import { EShape } from "./shape/e-shape";
|
|
3
4
|
export interface DChartAxisBar<CHART extends DBase> {
|
|
4
5
|
readonly shape: EShape;
|
|
6
|
+
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
7
|
+
unbind(): void;
|
|
8
|
+
update(): boolean;
|
|
9
|
+
destroy(): void;
|
|
5
10
|
}
|
|
@@ -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,8 +49,8 @@ export interface DChartAxisBaseOptionParserTickMajor {
|
|
|
29
49
|
position: EShapeBarPosition;
|
|
30
50
|
style?: EShapePointsStyle;
|
|
31
51
|
stroke?: Partial<EShapeStrokeLike>;
|
|
32
|
-
text?:
|
|
33
|
-
formatter
|
|
52
|
+
text?: DChartAxisBaseOptionParserText;
|
|
53
|
+
formatter?: NumberFormatter;
|
|
34
54
|
gridline: DChartAxisBaseOptionParserGridline;
|
|
35
55
|
}
|
|
36
56
|
export interface DChartAxisBaseOptionParserTickMinor {
|
|
@@ -40,8 +60,10 @@ export interface DChartAxisBaseOptionParserTickMinor {
|
|
|
40
60
|
position: EShapeBarPosition;
|
|
41
61
|
style?: EShapePointsStyle;
|
|
42
62
|
stroke?: Partial<EShapeStrokeLike>;
|
|
63
|
+
text?: DChartAxisBaseOptionParserText;
|
|
64
|
+
formatter?: NumberFormatter;
|
|
43
65
|
}
|
|
44
|
-
export interface
|
|
66
|
+
export interface DChartAxisBaseOptionParserTick {
|
|
45
67
|
enable: boolean;
|
|
46
68
|
major: DChartAxisBaseOptionParserTickMajor;
|
|
47
69
|
minor: DChartAxisBaseOptionParserTickMinor;
|
|
@@ -50,47 +72,57 @@ export interface DChartAxisBaseOptionParserBar {
|
|
|
50
72
|
style?: EShapePointsStyle;
|
|
51
73
|
stroke?: Partial<EShapeStrokeLike>;
|
|
52
74
|
}
|
|
53
|
-
export declare class DChartAxisBaseOptionParser {
|
|
75
|
+
export declare class DChartAxisBaseOptionParser<THEME extends DThemeChartAxisBase = DThemeChartAxisBase, OPTIONS extends DChartAxisBaseOptions<THEME> = DChartAxisBaseOptions<THEME>> {
|
|
54
76
|
protected _coordinateIndex: number;
|
|
55
77
|
protected _position: DChartAxisPosition;
|
|
56
|
-
protected _tick:
|
|
78
|
+
protected _tick: DChartAxisBaseOptionParserTick;
|
|
57
79
|
protected _label: DeepPartial<EShapeTextLike> | undefined;
|
|
58
80
|
protected _padding: number;
|
|
59
81
|
protected _bar: DChartAxisBaseOptionParserBar;
|
|
60
|
-
constructor(theme:
|
|
82
|
+
constructor(theme: THEME, options?: OPTIONS);
|
|
61
83
|
get coordinateIndex(): number;
|
|
62
84
|
get padding(): number;
|
|
63
85
|
get position(): DChartAxisPosition;
|
|
64
86
|
get bar(): DChartAxisBaseOptionParserBar;
|
|
65
|
-
get tick():
|
|
87
|
+
get tick(): DChartAxisBaseOptionParserTick;
|
|
66
88
|
get label(): DeepPartial<EShapeTextLike> | undefined;
|
|
67
|
-
protected toPosition(theme:
|
|
68
|
-
protected toBar(theme:
|
|
69
|
-
protected
|
|
70
|
-
protected toTickMajor(theme:
|
|
71
|
-
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;
|
|
72
94
|
protected toTickPosition(tickPosition: DChartAxisTickPosition | keyof typeof DChartAxisTickPosition): EShapeBarPosition;
|
|
73
|
-
protected
|
|
74
|
-
protected toBarStroke(theme:
|
|
75
|
-
protected toTickMajorStroke(theme:
|
|
76
|
-
protected toTickMajorGridlineStroke(theme:
|
|
77
|
-
protected toTickMinorStroke(theme:
|
|
78
|
-
protected toStroke(optionsA:
|
|
79
|
-
protected
|
|
80
|
-
protected
|
|
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
|
|
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;
|
|
96
128
|
}
|
|
@@ -5,41 +5,51 @@ 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";
|
|
20
|
-
export
|
|
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;
|
|
21
|
+
export interface DChartAxisBaseTickTextOptions {
|
|
21
22
|
/** A format. Please refer to {@link NumberFormatter} for format details. */
|
|
22
|
-
format?: string;
|
|
23
|
+
format?: string | null;
|
|
23
24
|
/** A formatter function. */
|
|
24
25
|
formatter?: NumberFormatterFunction;
|
|
25
26
|
color?: number;
|
|
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,8 +59,8 @@ export interface DChartAxisBaseTickMajorOptions {
|
|
|
49
59
|
size?: number;
|
|
50
60
|
position?: DChartAxisTickPositionOption;
|
|
51
61
|
style?: EShapePointsStyleOption;
|
|
52
|
-
stroke?:
|
|
53
|
-
text?:
|
|
62
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
63
|
+
text?: DChartAxisBaseTickTextOptions;
|
|
54
64
|
gridline?: DChartAxisBaseTickMajorGridlineOptions;
|
|
55
65
|
}
|
|
56
66
|
export interface DChartAxisBaseTickMinorOptions {
|
|
@@ -59,24 +69,41 @@ export interface DChartAxisBaseTickMinorOptions {
|
|
|
59
69
|
size?: number;
|
|
60
70
|
position?: DChartAxisTickPositionOption;
|
|
61
71
|
style?: EShapePointsStyleOption;
|
|
62
|
-
stroke?:
|
|
72
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
73
|
+
text?: DChartAxisBaseTickTextOptions;
|
|
63
74
|
}
|
|
64
|
-
export interface
|
|
75
|
+
export interface DChartAxisBaseTickOptions {
|
|
65
76
|
enable?: boolean;
|
|
66
77
|
position?: DChartAxisTickPositionOption;
|
|
67
78
|
style?: EShapePointsStyleOption;
|
|
68
|
-
stroke?:
|
|
79
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
69
80
|
major?: DChartAxisBaseTickMajorOptions;
|
|
70
81
|
minor?: DChartAxisBaseTickMinorOptions;
|
|
71
82
|
}
|
|
72
|
-
export interface
|
|
73
|
-
|
|
74
|
-
|
|
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> extends DChartAxisOptions {
|
|
100
|
+
tick?: DChartAxisBaseTickOptions;
|
|
101
|
+
label?: DChartAxisBaseLabelOptions;
|
|
75
102
|
style?: EShapePointsStyle;
|
|
76
|
-
stroke?:
|
|
103
|
+
stroke?: DChartAxisBaseStrokeOptions;
|
|
77
104
|
coordinate?: number;
|
|
78
105
|
padding?: number;
|
|
79
|
-
theme?:
|
|
106
|
+
theme?: THEME;
|
|
80
107
|
}
|
|
81
108
|
export interface DThemeChartAxisBase {
|
|
82
109
|
getPosition(): DChartAxisPosition;
|
|
@@ -105,7 +132,7 @@ export interface DThemeChartAxisBase {
|
|
|
105
132
|
getMajorTickTextAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;
|
|
106
133
|
getMajorTickTextAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;
|
|
107
134
|
getMajorTickTextDirection(): EShapeTextDirection;
|
|
108
|
-
getMajorTickTextFormat(): string;
|
|
135
|
+
getMajorTickTextFormat(): string | undefined;
|
|
109
136
|
getMajorTickTextColor(): number | undefined;
|
|
110
137
|
getMajorTickTextPaddingHorizontal(): number;
|
|
111
138
|
getMajorTickTextPaddingVertical(): number;
|
|
@@ -130,6 +157,13 @@ export interface DThemeChartAxisBase {
|
|
|
130
157
|
getMinorTickSize(): number;
|
|
131
158
|
getMinorTickPosition(): DChartAxisTickPosition;
|
|
132
159
|
getMinorTickStyle(): EShapePointsStyle | undefined;
|
|
160
|
+
getMinorTickTextAlignHorizontal(position: DChartAxisPosition): EShapeTextAlignHorizontal;
|
|
161
|
+
getMinorTickTextAlignVertical(position: DChartAxisPosition): EShapeTextAlignVertical;
|
|
162
|
+
getMinorTickTextDirection(): EShapeTextDirection;
|
|
163
|
+
getMinorTickTextFormat(): string | undefined;
|
|
164
|
+
getMinorTickTextColor(): number | undefined;
|
|
165
|
+
getMinorTickTextPaddingHorizontal(): number;
|
|
166
|
+
getMinorTickTextPaddingVertical(): number;
|
|
133
167
|
getMinorTickStrokeEnable(): boolean | undefined;
|
|
134
168
|
getMinorTickStrokeColor(): number | undefined;
|
|
135
169
|
getMinorTickStrokeAlpha(): number | undefined;
|
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
import { Matrix } from "pixi.js";
|
|
2
2
|
import { DBase } from "./d-base";
|
|
3
3
|
import { DChartAxisBaseOptionParser } from "./d-chart-axis-base-options-parser";
|
|
4
|
-
import { DChartAxisBaseTickMajor } from "./d-chart-axis-base-tick-major";
|
|
5
|
-
import { DChartAxisBaseTickMinor } from "./d-chart-axis-base-tick-minor";
|
|
6
4
|
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
7
5
|
import { DChartAxisTickContainer } from "./d-chart-axis-tick-container";
|
|
8
6
|
import { DChartAxisTickMajor } from "./d-chart-axis-tick-major";
|
|
9
7
|
import { DChartAxisTickMinor } from "./d-chart-axis-tick-minor";
|
|
10
8
|
import { DChartCoordinate } from "./d-chart-coordinate";
|
|
9
|
+
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
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, OPTIONS extends DChartAxisBaseTickContainerOptions> implements DChartAxisTickContainer<CHART> {
|
|
13
15
|
protected _parser: DChartAxisBaseOptionParser;
|
|
14
16
|
protected _container?: DChartAxisContainer<CHART>;
|
|
15
17
|
protected _index: number;
|
|
16
|
-
protected _major:
|
|
17
|
-
protected _minor:
|
|
18
|
+
protected _major: DChartAxisTickMajor<CHART>;
|
|
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>;
|
|
24
|
+
protected newMajor(parser: DChartAxisBaseOptionParser, options?: OPTIONS): DChartAxisTickMajor<CHART>;
|
|
22
25
|
get minor(): DChartAxisTickMinor<CHART>;
|
|
26
|
+
protected newMinor(parser: DChartAxisBaseOptionParser, options?: OPTIONS): DChartAxisTickMinor<CHART>;
|
|
23
27
|
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
24
28
|
unbind(): void;
|
|
25
29
|
update(): boolean;
|
|
26
30
|
protected updateX(domainMin: number, domainMax: number, coordinate: DChartCoordinate<CHART>, majorShapes: EShape[], minorShapes: EShape[], gridlineShapes: EShape[], shapePositionY: number, transform: Matrix, plotAreaHeight: number): boolean;
|
|
27
31
|
protected updateY(domainMin: number, domainMax: number, coordinate: DChartCoordinate<CHART>, majorShapes: EShape[], minorShapes: EShape[], gridlineShapes: EShape[], shapePositionX: number, transform: Matrix, plotAreaWidth: number): boolean;
|
|
32
|
+
protected showMajor(shape: EShape, x: number, y: number, text?: string): void;
|
|
33
|
+
protected showMajorGridline(shape: EShape, value: number, x: number, y: number, sx: number, sy: number): void;
|
|
34
|
+
protected hideMajor(shape: EShape): void;
|
|
35
|
+
protected hideMajorGridline(shape: EShape): void;
|
|
36
|
+
protected showMinor(shape: EShape, x: number, y: number, text?: string): void;
|
|
37
|
+
protected hideMinor(shape: EShape): void;
|
|
38
|
+
protected newTicks(coordinate: DChartCoordinate<CHART>, domainMin: number, domainMax: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
28
39
|
destroy(): void;
|
|
29
40
|
}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
2
|
import { DChartAxis } from "./d-chart-axis";
|
|
3
3
|
import { DChartAxisBar } from "./d-chart-axis-bar";
|
|
4
|
-
import { DChartAxisBaseBar } from "./d-chart-axis-base-bar";
|
|
5
4
|
import { DChartAxisBaseOptions, DThemeChartAxisBase } from "./d-chart-axis-base-options";
|
|
6
5
|
import { DChartAxisBaseOptionParser } from "./d-chart-axis-base-options-parser";
|
|
7
|
-
import { DChartAxisBaseTickContainer } from "./d-chart-axis-base-tick-container";
|
|
8
6
|
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
9
7
|
import { DChartAxisPosition } from "./d-chart-axis-position";
|
|
10
8
|
import { DChartAxisTickContainer } from "./d-chart-axis-tick-container";
|
|
11
|
-
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> {
|
|
12
10
|
protected _theme: DThemeChartAxisBase;
|
|
13
|
-
protected _parser: DChartAxisBaseOptionParser
|
|
11
|
+
protected _parser: DChartAxisBaseOptionParser<THEME>;
|
|
14
12
|
protected _container?: DChartAxisContainer<CHART>;
|
|
15
13
|
protected _index: number;
|
|
16
|
-
protected _bar:
|
|
17
|
-
protected _tick:
|
|
14
|
+
protected _bar: DChartAxisBar<CHART>;
|
|
15
|
+
protected _tick: DChartAxisTickContainer<CHART>;
|
|
18
16
|
constructor(options?: OPTIONS);
|
|
17
|
+
get parser(): DChartAxisBaseOptionParser<THEME>;
|
|
18
|
+
protected newParser(theme: THEME, options?: OPTIONS): DChartAxisBaseOptionParser<THEME>;
|
|
19
19
|
get position(): DChartAxisPosition;
|
|
20
20
|
get bar(): DChartAxisBar<CHART>;
|
|
21
|
+
protected newBar(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisBar<CHART>;
|
|
21
22
|
get tick(): DChartAxisTickContainer<CHART>;
|
|
23
|
+
protected newTick(parser: DChartAxisBaseOptionParser<THEME>, theme: THEME, options?: OPTIONS): DChartAxisTickContainer<CHART>;
|
|
22
24
|
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
23
25
|
unbind(): void;
|
|
24
26
|
update(): void;
|
|
25
27
|
onRender(): void;
|
|
26
28
|
destroy(): void;
|
|
27
|
-
protected toTheme(options?: DChartAxisBaseOptions):
|
|
28
|
-
protected getThemeDefault():
|
|
29
|
+
protected toTheme(options?: DChartAxisBaseOptions<THEME>): THEME;
|
|
30
|
+
protected getThemeDefault(): THEME;
|
|
29
31
|
protected getType(): string;
|
|
30
32
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
|
+
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
2
3
|
import { DChartAxisTickMajor } from "./d-chart-axis-tick-major";
|
|
3
4
|
import { DChartAxisTickMinor } from "./d-chart-axis-tick-minor";
|
|
4
5
|
export interface DChartAxisTickContainer<CHART extends DBase> {
|
|
5
6
|
readonly major: DChartAxisTickMajor<CHART>;
|
|
6
7
|
readonly minor: DChartAxisTickMinor<CHART>;
|
|
8
|
+
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
9
|
+
unbind(): void;
|
|
10
|
+
update(): boolean;
|
|
11
|
+
destroy(): void;
|
|
7
12
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
|
+
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
2
3
|
import { DChartAxisTickMajorGridline } from "./d-chart-axis-tick-major-gridline";
|
|
3
4
|
import { EShape } from "./shape/e-shape";
|
|
4
5
|
export interface DChartAxisTickMajor<CHART extends DBase> {
|
|
5
6
|
readonly shapes: EShape[];
|
|
6
7
|
readonly gridline: DChartAxisTickMajorGridline<CHART>;
|
|
8
|
+
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
9
|
+
unbind(): void;
|
|
10
|
+
destroy(): void;
|
|
7
11
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
|
+
import { DChartAxisContainer } from "./d-chart-axis-container";
|
|
2
3
|
import { EShape } from "./shape/e-shape";
|
|
3
4
|
export interface DChartAxisTickMinor<CHART extends DBase> {
|
|
4
5
|
readonly shapes: EShape[];
|
|
6
|
+
bind(container: DChartAxisContainer<CHART>, index: number): void;
|
|
7
|
+
unbind(): void;
|
|
8
|
+
destroy(): void;
|
|
5
9
|
}
|
|
@@ -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> 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> 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> 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
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DBase } from "./d-base";
|
|
2
|
+
import { DChartCoordinate, DChartCoordinateOptions, DThemeChartCoordinate } from "./d-chart-coordinate";
|
|
3
|
+
import { DChartCoordinateContainerSub } from "./d-chart-coordinate-container-sub";
|
|
4
|
+
import { DChartCoordinateDirection } from "./d-chart-coordinate-direction";
|
|
5
|
+
import { DChartCoordinateTick, DChartCoordinateTickOptions } from "./d-chart-coordinate-tick";
|
|
6
|
+
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
7
|
+
import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick-minor-step-function";
|
|
8
|
+
import { DChartCoordinateTransform, DChartCoordinateTransformOptions } from "./d-chart-coordinate-transform";
|
|
9
|
+
import { DChartCoordinateTransformMark } from "./d-chart-coordinate-transform-mark";
|
|
10
|
+
import { DChartPlotArea } from "./d-chart-plot-area";
|
|
11
|
+
import { DChartRegion } from "./d-chart-region";
|
|
12
|
+
import { DChartRegionImpl } from "./d-chart-region-impl";
|
|
13
|
+
export declare abstract class DChartCoordinateBase<CHART extends DBase = DBase> implements DChartCoordinate<CHART> {
|
|
14
|
+
protected _id: number;
|
|
15
|
+
protected _transform: DChartCoordinateTransform<CHART>;
|
|
16
|
+
protected _container?: DChartCoordinateContainerSub<CHART>;
|
|
17
|
+
protected _direction: DChartCoordinateDirection;
|
|
18
|
+
protected _theme: DThemeChartCoordinate;
|
|
19
|
+
protected _work: DChartRegionImpl;
|
|
20
|
+
protected _tick: DChartCoordinateTick<CHART>;
|
|
21
|
+
protected _mark: DChartCoordinateTransformMark;
|
|
22
|
+
protected _from?: number;
|
|
23
|
+
protected _to?: number;
|
|
24
|
+
constructor(options?: DChartCoordinateOptions);
|
|
25
|
+
protected newTransform(options?: DChartCoordinateTransformOptions): DChartCoordinateTransform<CHART>;
|
|
26
|
+
protected abstract newTick(options?: DChartCoordinateTickOptions): DChartCoordinateTick<CHART>;
|
|
27
|
+
protected newRegion(): DChartRegion;
|
|
28
|
+
protected newMark(): DChartCoordinateTransformMark;
|
|
29
|
+
get from(): number | undefined;
|
|
30
|
+
set from(from: number | undefined);
|
|
31
|
+
get to(): number | undefined;
|
|
32
|
+
set to(to: number | undefined);
|
|
33
|
+
bind(container: DChartCoordinateContainerSub<CHART>, direction: DChartCoordinateDirection): void;
|
|
34
|
+
unbind(): void;
|
|
35
|
+
fit(from?: number, to?: number): void;
|
|
36
|
+
mark(from?: number, to?: number): void;
|
|
37
|
+
blend(ratio: number): void;
|
|
38
|
+
protected doFit(from: number | undefined, to: number | undefined, result: DChartCoordinateTransformMark | DChartCoordinateTransform<CHART>): void;
|
|
39
|
+
protected toFitDomain(from: number | undefined, to: number | undefined, plotArea: DChartPlotArea<CHART>, result: DChartRegion): DChartRegion;
|
|
40
|
+
protected toFitRange(from: number | undefined, to: number | undefined, plotArea: DChartPlotArea<CHART>, result: DChartRegion): DChartRegion;
|
|
41
|
+
protected doFit_(pixelFrom: number, pixelTo: number, region: DChartRegion, result: DChartCoordinateTransformMark | DChartCoordinateTransform<CHART>): void;
|
|
42
|
+
get id(): number;
|
|
43
|
+
get transform(): DChartCoordinateTransform<CHART>;
|
|
44
|
+
map(value: number): number;
|
|
45
|
+
mapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
46
|
+
unmap(value: number): number;
|
|
47
|
+
unmapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
48
|
+
ticks(domainFrom: number, domainTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
49
|
+
protected toTheme(options?: DChartCoordinateOptions): DThemeChartCoordinate;
|
|
50
|
+
protected getThemeDefault(): DThemeChartCoordinate;
|
|
51
|
+
protected getType(): string;
|
|
52
|
+
}
|
|
@@ -1,48 +1,6 @@
|
|
|
1
1
|
import { DBase } from "./d-base";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { DChartCoordinateTickMajorStepFunction } from "./d-chart-coordinate-tick-major-step-function";
|
|
7
|
-
import { DChartCoordinateTickMinorStepFunction } from "./d-chart-coordinate-tick-minor-step-function";
|
|
8
|
-
import { DChartCoordinateTransform } from "./d-chart-coordinate-transform";
|
|
9
|
-
import { DChartCoordinateTransformMark, DChartCoordinateTransformMarkImpl } from "./d-chart-coordinate-transform-mark";
|
|
10
|
-
import { DChartPlotArea } from "./d-chart-plot-area";
|
|
11
|
-
import { DChartRegion } from "./d-chart-region";
|
|
12
|
-
import { DChartRegionImpl } from "./d-chart-region-impl";
|
|
13
|
-
export declare class DChartCoordinateLinear<CHART extends DBase = DBase> implements DChartCoordinate<CHART> {
|
|
14
|
-
protected _id: number;
|
|
15
|
-
protected _transform: DChartCoordinateTransform<CHART>;
|
|
16
|
-
protected _container?: DChartCoordinateContainerSub<CHART>;
|
|
17
|
-
protected _direction: DChartCoordinateDirection;
|
|
18
|
-
protected _theme: DThemeChartCoordinate;
|
|
19
|
-
protected _work: DChartRegionImpl;
|
|
20
|
-
protected _tick: DChartCoordinateTick<CHART>;
|
|
21
|
-
protected _mark: DChartCoordinateTransformMarkImpl;
|
|
22
|
-
protected _from?: number;
|
|
23
|
-
protected _to?: number;
|
|
24
|
-
constructor(options?: DChartCoordinateOptions);
|
|
25
|
-
get from(): number | undefined;
|
|
26
|
-
set from(from: number | undefined);
|
|
27
|
-
get to(): number | undefined;
|
|
28
|
-
set to(to: number | undefined);
|
|
29
|
-
bind(container: DChartCoordinateContainerSub<CHART>, direction: DChartCoordinateDirection): void;
|
|
30
|
-
unbind(): void;
|
|
31
|
-
fit(from?: number, to?: number): void;
|
|
32
|
-
mark(from?: number, to?: number): void;
|
|
33
|
-
blend(ratio: number): void;
|
|
34
|
-
protected doFit(from: number | undefined, to: number | undefined, result: DChartCoordinateTransformMark | DChartCoordinateTransform<CHART>): void;
|
|
35
|
-
protected toFitDomain(from: number | undefined, to: number | undefined, plotArea: DChartPlotArea<CHART>, result: DChartRegion): DChartRegion;
|
|
36
|
-
protected toFitRange(from: number | undefined, to: number | undefined, plotArea: DChartPlotArea<CHART>, result: DChartRegion): DChartRegion;
|
|
37
|
-
protected doFit_(pixelFrom: number, pixelTo: number, region: DChartRegion, result: DChartCoordinateTransformMark | DChartCoordinateTransform<CHART>): void;
|
|
38
|
-
get id(): number;
|
|
39
|
-
get transform(): DChartCoordinateTransform<CHART>;
|
|
40
|
-
map(value: number): number;
|
|
41
|
-
mapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
42
|
-
unmap(value: number): number;
|
|
43
|
-
unmapAll(values: number[], ifrom: number, iend: number, stride: number, offset: number): void;
|
|
44
|
-
ticks(domainFrom: number, domainTo: number, majorCount: number, majorCapacity: number, majorStep: number | DChartCoordinateTickMajorStepFunction | undefined, minorCountPerMajor: number, minorCount: number, minorStep: number | DChartCoordinateTickMinorStepFunction | undefined, majorResult: number[], minorResult: number[]): void;
|
|
45
|
-
protected toTheme(options?: DChartCoordinateOptions): DThemeChartCoordinate;
|
|
46
|
-
protected getThemeDefault(): DThemeChartCoordinate;
|
|
47
|
-
protected getType(): string;
|
|
2
|
+
import { DChartCoordinateBase } from "./d-chart-coordinate-base";
|
|
3
|
+
import { DChartCoordinateTick, DChartCoordinateTickOptions } from "./d-chart-coordinate-tick";
|
|
4
|
+
export declare class DChartCoordinateLinear<CHART extends DBase = DBase> extends DChartCoordinateBase<CHART> {
|
|
5
|
+
protected newTick(options?: DChartCoordinateTickOptions): DChartCoordinateTick<CHART>;
|
|
48
6
|
}
|