-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathinterface.ts
174 lines (158 loc) · 4.5 KB
/
interface.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
import { Smithchart, SmithchartFontModel} from '../../index';
/**
* Specifies Smithchart Events
*
* @private
*/
export interface ISmithchartEventArgs {
/** Defines the name of the event. */
name: string;
/** Defines the event cancel status. */
cancel: boolean;
}
export interface ISmithchartPrintEventArgs extends ISmithchartEventArgs {
htmlContent: Element;
}
/**
* Specifies the Load Event arguments.
*/
export interface ISmithchartLoadEventArgs extends ISmithchartEventArgs {
/** Defines the current Smithchart instance. */
smithchart: Smithchart;
}
/**
* Specifies the Loaded Event arguments.
*/
export interface ISmithchartLoadedEventArgs extends ISmithchartEventArgs {
/** Defines the current Smithchart instance. */
smithchart: Smithchart;
}
export interface ISmithchartAnimationCompleteEventArgs extends ISmithchartEventArgs {
/**
* smithchart instance event argument.
*/
smithchart?: Smithchart;
}
/**
* Specifies the Title Render Event arguments.
*/
export interface ITitleRenderEventArgs extends ISmithchartEventArgs {
/** Defines the current title text. */
text: string;
/** Defines the current title text x location. */
x: number;
/** Defines the current title text y location. */
y: number;
}
/**
* Specifies the SubTitle Render Event arguments.
*/
export interface ISubTitleRenderEventArgs extends ISmithchartEventArgs {
/** Defines the current subtitle text. */
text: string;
/** Defines the current subtitle text x location. */
x: number;
/** Defines the current subtitle text y location. */
y: number;
}
/**
* Specifies the Text Render Event arguments.
*/
export interface ISmithchartTextRenderEventArgs extends ISmithchartEventArgs {
/** Defines the current datalabel text. */
text: string;
/** Defines the current datalabel text x location. */
x: number;
/** Defines the current datalabel text y location. */
y: number;
/** Defines the current datalabel seriesIndex. */
seriesIndex: number;
/** Defines the current datalabel pointIndex. */
pointIndex: number;
}
/**
* Specifies the Axis Label Render Event arguments.
*/
export interface ISmithchartAxisLabelRenderEventArgs extends ISmithchartEventArgs {
/** Defines the current axis label text. */
text: string;
/** Defines the current axis label x location. */
x: number;
/** Defines the current axis label y location. */
y: number;
}
/**
* Specifies the Series Render Event arguments.
*/
export interface ISmithchartSeriesRenderEventArgs extends ISmithchartEventArgs {
/** Defines name of the event. */
text: string;
/** Defines the current series fill. */
fill: string;
}
/**
* Specifies the Legend Render Event arguments.
*/
export interface ISmithchartLegendRenderEventArgs extends ISmithchartEventArgs {
/** Defines the current legend text. */
text: string;
/** Defines the current legend fill color. */
fill: string;
/** Defines the current legend shape. */
shape: string;
}
export interface ISmithChartTooltipEventArgs extends ISmithchartEventArgs {
/** Defines the tooltip text. */
text: string[];
/** Defines the headerText of tooltip. */
headerText: string;
/** Defines point of the tooltip. */
point: ISmithChartPoint;
/** template.
*
* @aspType string
*/
template: string | Function;
}
/** @private */
export interface ISmithchartFontMapping {
size?: string;
color?: string;
fontWeight?: string;
fontStyle?: string;
fontFamily?: string;
}
export interface ISmithChartPoint {
reactance: number;
resistance: number;
tooltip?: string;
}
export interface ISmithchartThemeStyle {
axisLabel: string;
axisLine: string;
majorGridLine: string;
minorGridLine: string;
chartTitle: string;
legendLabel: string;
background: string;
areaBorder: string;
tooltipFill: string;
dataLabel: string;
tooltipBoldLabel: string;
tooltipLightLabel: string;
tooltipHeaderLine: string;
fontFamily?: string;
fontSize?: string;
tooltipFontSize?: string;
tooltipFontFamily?: string;
smithchartTitleFont: SmithchartFontModel;
legendLabelFont: SmithchartFontModel;
legendTitleFont: SmithchartFontModel;
dataLabelFont: SmithchartFontModel;
axisLabelFont: SmithchartFontModel;
smithchartSubtitleFont: SmithchartFontModel;
labelFontFamily?: string;
tooltipFillOpacity?: number;
tooltipTextOpacity?: number;
tabColor: string;
}