rendx-shape 0.1.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/LICENSE +21 -0
- package/dist/main.cjs +574 -0
- package/dist/main.d.cts +229 -0
- package/dist/main.d.ts +229 -0
- package/dist/main.js +511 -0
- package/package.json +48 -0
package/dist/main.d.cts
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { Path } from 'rendx-path';
|
|
2
|
+
|
|
3
|
+
/** 圆形配置 */
|
|
4
|
+
interface CircleOptions {
|
|
5
|
+
/** 圆心 X */
|
|
6
|
+
cx: number;
|
|
7
|
+
/** 圆心 Y */
|
|
8
|
+
cy: number;
|
|
9
|
+
/** 半径 */
|
|
10
|
+
r: number;
|
|
11
|
+
}
|
|
12
|
+
/** 生成圆形 SVG 路径(两段弧组成完整圆) */
|
|
13
|
+
declare const createCircle: (path: Path, { cx, cy, r }: CircleOptions) => void;
|
|
14
|
+
|
|
15
|
+
/** 矩形配置 */
|
|
16
|
+
interface RectOptions {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
/** 圆角 X 半径(数字为统一圆角,4元素数组为独立圆角 [tl, tr, br, bl]) */
|
|
22
|
+
rx?: number | number[];
|
|
23
|
+
/** 圆角 Y 半径 */
|
|
24
|
+
ry?: number | number[];
|
|
25
|
+
}
|
|
26
|
+
declare const createRectNormal: (path: Path, { x, y, width, height }: RectOptions) => void;
|
|
27
|
+
declare const createRectRounded: (path: Path, { x, y, width, height, rx, ry }: RectOptions) => void;
|
|
28
|
+
/** 生成矩形路径(自动根据 rx/ry 选择普通或圆角矩形) */
|
|
29
|
+
declare const createRect: (path: Path, options: RectOptions) => void;
|
|
30
|
+
|
|
31
|
+
/** 弧线配置 */
|
|
32
|
+
interface ArcOptions {
|
|
33
|
+
/** 圆心 X */
|
|
34
|
+
cx: number;
|
|
35
|
+
/** 圆心 Y */
|
|
36
|
+
cy: number;
|
|
37
|
+
/** 基准半径 */
|
|
38
|
+
r: number;
|
|
39
|
+
/** 起始角度(弧度) */
|
|
40
|
+
startAngle: number;
|
|
41
|
+
/** 结束角度(弧度) */
|
|
42
|
+
endAngle: number;
|
|
43
|
+
/** 弧线半径比例 (0~1) */
|
|
44
|
+
radius: number;
|
|
45
|
+
}
|
|
46
|
+
/** 生成弧线路径(超过 2π 自动降级为完整圆) */
|
|
47
|
+
declare const createArc: (path: Path, options: ArcOptions) => void;
|
|
48
|
+
|
|
49
|
+
interface RingOptions {
|
|
50
|
+
cx: number;
|
|
51
|
+
cy: number;
|
|
52
|
+
r: number;
|
|
53
|
+
innerRadius: number;
|
|
54
|
+
outerRadius: number;
|
|
55
|
+
}
|
|
56
|
+
declare const createRing: (path: Path, options: RingOptions) => void;
|
|
57
|
+
|
|
58
|
+
/** 扇形配置 */
|
|
59
|
+
interface SectorOptions {
|
|
60
|
+
/** 圆心 X */
|
|
61
|
+
cx: number;
|
|
62
|
+
/** 圆心 Y */
|
|
63
|
+
cy: number;
|
|
64
|
+
/** 基准半径 */
|
|
65
|
+
r: number;
|
|
66
|
+
/** 起始角度(弧度) */
|
|
67
|
+
startAngle: number;
|
|
68
|
+
/** 结束角度(弧度) */
|
|
69
|
+
endAngle: number;
|
|
70
|
+
/** 扇形间 pad 角度 */
|
|
71
|
+
padAngle?: number;
|
|
72
|
+
/** 内半径比例 (0~1) */
|
|
73
|
+
innerRadius: number;
|
|
74
|
+
/** 外半径比例 (0~1) */
|
|
75
|
+
outerRadius: number;
|
|
76
|
+
/** 圆角半径(数字为统一,4元素数组为 [outerLeft, innerLeft, outerRight, innerRight]) */
|
|
77
|
+
rc?: number | number[];
|
|
78
|
+
}
|
|
79
|
+
declare const createSectorNormal: (path: Path, options: SectorOptions) => void;
|
|
80
|
+
declare const createSectorRounded: (path: Path, options: SectorOptions) => void;
|
|
81
|
+
declare const createSector: (path: Path, options: SectorOptions) => void;
|
|
82
|
+
|
|
83
|
+
/** 折线配置 */
|
|
84
|
+
interface LineOptions {
|
|
85
|
+
/** 曲线插值类型('linear' | 'natural' | 'monotone' 等,默认 'linear') */
|
|
86
|
+
curve?: string;
|
|
87
|
+
/** 是否闭合 */
|
|
88
|
+
closed?: boolean;
|
|
89
|
+
/** 端点坐标序列 */
|
|
90
|
+
points: [number, number][];
|
|
91
|
+
}
|
|
92
|
+
interface SegmentLineOptions {
|
|
93
|
+
curve?: string;
|
|
94
|
+
closed?: boolean;
|
|
95
|
+
segments: [number, number][][];
|
|
96
|
+
}
|
|
97
|
+
/** 生成折线路径(支持曲线插值) */
|
|
98
|
+
declare const createLine: (path: Path, options: LineOptions) => void;
|
|
99
|
+
/** 生成分段折线路径(多段独立折线) */
|
|
100
|
+
declare const createSegmentLine: (path: Path, options: SegmentLineOptions) => void;
|
|
101
|
+
|
|
102
|
+
/** 面积图配置 */
|
|
103
|
+
interface AreaOptions {
|
|
104
|
+
/** 上边界点序列 */
|
|
105
|
+
upperPoints: [number, number][];
|
|
106
|
+
/** 下边界点序列 */
|
|
107
|
+
lowerPoints: [number, number][];
|
|
108
|
+
/** 统一曲线插值类型(默认 'linear') */
|
|
109
|
+
curve?: string;
|
|
110
|
+
closed?: boolean;
|
|
111
|
+
/** 上边界曲线类型(覆盖 curve) */
|
|
112
|
+
upperCurve?: string;
|
|
113
|
+
/** 下边界曲线类型(覆盖 curve) */
|
|
114
|
+
lowerCurve?: string;
|
|
115
|
+
}
|
|
116
|
+
interface SegmentAreaOptions {
|
|
117
|
+
upperSegments: [number, number][][];
|
|
118
|
+
lowerSegments: [number, number][][];
|
|
119
|
+
curve?: string;
|
|
120
|
+
upperCurve?: string;
|
|
121
|
+
lowerCurve?: string;
|
|
122
|
+
}
|
|
123
|
+
/** 生成面积图路径(上下边界 + 曲线插值) */
|
|
124
|
+
declare const createArea: (path: Path, options: AreaOptions) => void;
|
|
125
|
+
declare const createSegmentArea: (path: Path, options: SegmentAreaOptions) => void;
|
|
126
|
+
|
|
127
|
+
interface BoxXOptions {
|
|
128
|
+
cx: number;
|
|
129
|
+
minY: number;
|
|
130
|
+
maxY: number;
|
|
131
|
+
q1Y: number;
|
|
132
|
+
q2Y: number;
|
|
133
|
+
q3Y: number;
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
width: number;
|
|
137
|
+
height: number;
|
|
138
|
+
}
|
|
139
|
+
interface BoxYOptions {
|
|
140
|
+
cy: number;
|
|
141
|
+
minX: number;
|
|
142
|
+
maxX: number;
|
|
143
|
+
q1X: number;
|
|
144
|
+
q2X: number;
|
|
145
|
+
q3X: number;
|
|
146
|
+
x: number;
|
|
147
|
+
y: number;
|
|
148
|
+
width: number;
|
|
149
|
+
height: number;
|
|
150
|
+
}
|
|
151
|
+
declare const createBoxX: (path: Path, options: BoxXOptions) => void;
|
|
152
|
+
declare const createBoxY: (path: Path, options: BoxYOptions) => void;
|
|
153
|
+
|
|
154
|
+
interface ShapeOptionsMap {
|
|
155
|
+
circle: CircleOptions;
|
|
156
|
+
rect: RectOptions;
|
|
157
|
+
arc: ArcOptions;
|
|
158
|
+
sector: SectorOptions;
|
|
159
|
+
line: LineOptions;
|
|
160
|
+
segmentLine: SegmentLineOptions;
|
|
161
|
+
area: AreaOptions;
|
|
162
|
+
segmentArea: SegmentAreaOptions;
|
|
163
|
+
boxX: BoxXOptions;
|
|
164
|
+
boxY: BoxYOptions;
|
|
165
|
+
}
|
|
166
|
+
type ShapeType = keyof ShapeOptionsMap;
|
|
167
|
+
/**
|
|
168
|
+
* 统一形状工厂:按类型名分发到对应的形状生成器
|
|
169
|
+
* @param path - Path 实例(用于写入路径命令)
|
|
170
|
+
* @param type - 形状类型(circle/rect/arc/sector/line/area 等)
|
|
171
|
+
* @param options - 对应形状的配置参数
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```ts
|
|
175
|
+
* const path = new Path();
|
|
176
|
+
* createShape(path, 'circle', { cx: 100, cy: 100, r: 50 });
|
|
177
|
+
* console.log(path.toString()); // SVG path string
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
declare const createShape: <T extends ShapeType>(path: Path, type: T, options: ShapeOptionsMap[T]) => void;
|
|
181
|
+
|
|
182
|
+
interface SymbolOptions {
|
|
183
|
+
cx: number;
|
|
184
|
+
cy: number;
|
|
185
|
+
r: number;
|
|
186
|
+
}
|
|
187
|
+
type SymbolCreator = (path: Path, options: SymbolOptions) => void;
|
|
188
|
+
|
|
189
|
+
declare const createCircleSymbol: SymbolCreator;
|
|
190
|
+
|
|
191
|
+
declare const createCrossSymbol: SymbolCreator;
|
|
192
|
+
|
|
193
|
+
declare const createDiamondSymbol: SymbolCreator;
|
|
194
|
+
|
|
195
|
+
declare const createSquareSymbol: SymbolCreator;
|
|
196
|
+
|
|
197
|
+
declare const createStarSymbol: SymbolCreator;
|
|
198
|
+
|
|
199
|
+
declare const createUpTriangleSymbol: SymbolCreator;
|
|
200
|
+
declare const createDownTriangleSymbol: SymbolCreator;
|
|
201
|
+
declare const createLeftTriangleSymbol: SymbolCreator;
|
|
202
|
+
declare const createRightTriangleSymbol: SymbolCreator;
|
|
203
|
+
declare const createTriangleSymbol: SymbolCreator;
|
|
204
|
+
declare const createInvertedTriangleSymbol: SymbolCreator;
|
|
205
|
+
|
|
206
|
+
declare const createWyeSymbol: SymbolCreator;
|
|
207
|
+
|
|
208
|
+
declare const createHLineSymbol: SymbolCreator;
|
|
209
|
+
declare const createVLineSymbol: SymbolCreator;
|
|
210
|
+
|
|
211
|
+
declare const createEyeSymbol: SymbolCreator;
|
|
212
|
+
declare const createClosedEyeSymbol: SymbolCreator;
|
|
213
|
+
|
|
214
|
+
declare const createResetSymbol: SymbolCreator;
|
|
215
|
+
|
|
216
|
+
declare const createSelectSymbol: SymbolCreator;
|
|
217
|
+
|
|
218
|
+
declare const fillSymbols: string[];
|
|
219
|
+
declare const createSymbol: (path: Path, symbol: string, options: SymbolOptions) => void;
|
|
220
|
+
|
|
221
|
+
interface IndicatorBoxOptions {
|
|
222
|
+
anchor: 'top' | 'bottom' | 'left' | 'right';
|
|
223
|
+
anchorSize: number;
|
|
224
|
+
width: number;
|
|
225
|
+
height: number;
|
|
226
|
+
}
|
|
227
|
+
declare const createIndicatorBox: (path: Path, options: IndicatorBoxOptions) => void;
|
|
228
|
+
|
|
229
|
+
export { type ArcOptions, type AreaOptions, type BoxXOptions, type BoxYOptions, type CircleOptions, type IndicatorBoxOptions, type LineOptions, type RectOptions, type RingOptions, type SectorOptions, type SegmentAreaOptions, type SegmentLineOptions, type SymbolCreator, type SymbolOptions, createArc, createArea, createBoxX, createBoxY, createCircle, createCircleSymbol, createClosedEyeSymbol, createCrossSymbol, createDiamondSymbol, createDownTriangleSymbol, createEyeSymbol, createHLineSymbol, createIndicatorBox, createInvertedTriangleSymbol, createLeftTriangleSymbol, createLine, createRect, createRectNormal, createRectRounded, createResetSymbol, createRightTriangleSymbol, createRing, createSector, createSectorNormal, createSectorRounded, createSegmentArea, createSegmentLine, createSelectSymbol, createShape, createSquareSymbol, createStarSymbol, createSymbol, createTriangleSymbol, createUpTriangleSymbol, createVLineSymbol, createWyeSymbol, fillSymbols };
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { Path } from 'rendx-path';
|
|
2
|
+
|
|
3
|
+
/** 圆形配置 */
|
|
4
|
+
interface CircleOptions {
|
|
5
|
+
/** 圆心 X */
|
|
6
|
+
cx: number;
|
|
7
|
+
/** 圆心 Y */
|
|
8
|
+
cy: number;
|
|
9
|
+
/** 半径 */
|
|
10
|
+
r: number;
|
|
11
|
+
}
|
|
12
|
+
/** 生成圆形 SVG 路径(两段弧组成完整圆) */
|
|
13
|
+
declare const createCircle: (path: Path, { cx, cy, r }: CircleOptions) => void;
|
|
14
|
+
|
|
15
|
+
/** 矩形配置 */
|
|
16
|
+
interface RectOptions {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
/** 圆角 X 半径(数字为统一圆角,4元素数组为独立圆角 [tl, tr, br, bl]) */
|
|
22
|
+
rx?: number | number[];
|
|
23
|
+
/** 圆角 Y 半径 */
|
|
24
|
+
ry?: number | number[];
|
|
25
|
+
}
|
|
26
|
+
declare const createRectNormal: (path: Path, { x, y, width, height }: RectOptions) => void;
|
|
27
|
+
declare const createRectRounded: (path: Path, { x, y, width, height, rx, ry }: RectOptions) => void;
|
|
28
|
+
/** 生成矩形路径(自动根据 rx/ry 选择普通或圆角矩形) */
|
|
29
|
+
declare const createRect: (path: Path, options: RectOptions) => void;
|
|
30
|
+
|
|
31
|
+
/** 弧线配置 */
|
|
32
|
+
interface ArcOptions {
|
|
33
|
+
/** 圆心 X */
|
|
34
|
+
cx: number;
|
|
35
|
+
/** 圆心 Y */
|
|
36
|
+
cy: number;
|
|
37
|
+
/** 基准半径 */
|
|
38
|
+
r: number;
|
|
39
|
+
/** 起始角度(弧度) */
|
|
40
|
+
startAngle: number;
|
|
41
|
+
/** 结束角度(弧度) */
|
|
42
|
+
endAngle: number;
|
|
43
|
+
/** 弧线半径比例 (0~1) */
|
|
44
|
+
radius: number;
|
|
45
|
+
}
|
|
46
|
+
/** 生成弧线路径(超过 2π 自动降级为完整圆) */
|
|
47
|
+
declare const createArc: (path: Path, options: ArcOptions) => void;
|
|
48
|
+
|
|
49
|
+
interface RingOptions {
|
|
50
|
+
cx: number;
|
|
51
|
+
cy: number;
|
|
52
|
+
r: number;
|
|
53
|
+
innerRadius: number;
|
|
54
|
+
outerRadius: number;
|
|
55
|
+
}
|
|
56
|
+
declare const createRing: (path: Path, options: RingOptions) => void;
|
|
57
|
+
|
|
58
|
+
/** 扇形配置 */
|
|
59
|
+
interface SectorOptions {
|
|
60
|
+
/** 圆心 X */
|
|
61
|
+
cx: number;
|
|
62
|
+
/** 圆心 Y */
|
|
63
|
+
cy: number;
|
|
64
|
+
/** 基准半径 */
|
|
65
|
+
r: number;
|
|
66
|
+
/** 起始角度(弧度) */
|
|
67
|
+
startAngle: number;
|
|
68
|
+
/** 结束角度(弧度) */
|
|
69
|
+
endAngle: number;
|
|
70
|
+
/** 扇形间 pad 角度 */
|
|
71
|
+
padAngle?: number;
|
|
72
|
+
/** 内半径比例 (0~1) */
|
|
73
|
+
innerRadius: number;
|
|
74
|
+
/** 外半径比例 (0~1) */
|
|
75
|
+
outerRadius: number;
|
|
76
|
+
/** 圆角半径(数字为统一,4元素数组为 [outerLeft, innerLeft, outerRight, innerRight]) */
|
|
77
|
+
rc?: number | number[];
|
|
78
|
+
}
|
|
79
|
+
declare const createSectorNormal: (path: Path, options: SectorOptions) => void;
|
|
80
|
+
declare const createSectorRounded: (path: Path, options: SectorOptions) => void;
|
|
81
|
+
declare const createSector: (path: Path, options: SectorOptions) => void;
|
|
82
|
+
|
|
83
|
+
/** 折线配置 */
|
|
84
|
+
interface LineOptions {
|
|
85
|
+
/** 曲线插值类型('linear' | 'natural' | 'monotone' 等,默认 'linear') */
|
|
86
|
+
curve?: string;
|
|
87
|
+
/** 是否闭合 */
|
|
88
|
+
closed?: boolean;
|
|
89
|
+
/** 端点坐标序列 */
|
|
90
|
+
points: [number, number][];
|
|
91
|
+
}
|
|
92
|
+
interface SegmentLineOptions {
|
|
93
|
+
curve?: string;
|
|
94
|
+
closed?: boolean;
|
|
95
|
+
segments: [number, number][][];
|
|
96
|
+
}
|
|
97
|
+
/** 生成折线路径(支持曲线插值) */
|
|
98
|
+
declare const createLine: (path: Path, options: LineOptions) => void;
|
|
99
|
+
/** 生成分段折线路径(多段独立折线) */
|
|
100
|
+
declare const createSegmentLine: (path: Path, options: SegmentLineOptions) => void;
|
|
101
|
+
|
|
102
|
+
/** 面积图配置 */
|
|
103
|
+
interface AreaOptions {
|
|
104
|
+
/** 上边界点序列 */
|
|
105
|
+
upperPoints: [number, number][];
|
|
106
|
+
/** 下边界点序列 */
|
|
107
|
+
lowerPoints: [number, number][];
|
|
108
|
+
/** 统一曲线插值类型(默认 'linear') */
|
|
109
|
+
curve?: string;
|
|
110
|
+
closed?: boolean;
|
|
111
|
+
/** 上边界曲线类型(覆盖 curve) */
|
|
112
|
+
upperCurve?: string;
|
|
113
|
+
/** 下边界曲线类型(覆盖 curve) */
|
|
114
|
+
lowerCurve?: string;
|
|
115
|
+
}
|
|
116
|
+
interface SegmentAreaOptions {
|
|
117
|
+
upperSegments: [number, number][][];
|
|
118
|
+
lowerSegments: [number, number][][];
|
|
119
|
+
curve?: string;
|
|
120
|
+
upperCurve?: string;
|
|
121
|
+
lowerCurve?: string;
|
|
122
|
+
}
|
|
123
|
+
/** 生成面积图路径(上下边界 + 曲线插值) */
|
|
124
|
+
declare const createArea: (path: Path, options: AreaOptions) => void;
|
|
125
|
+
declare const createSegmentArea: (path: Path, options: SegmentAreaOptions) => void;
|
|
126
|
+
|
|
127
|
+
interface BoxXOptions {
|
|
128
|
+
cx: number;
|
|
129
|
+
minY: number;
|
|
130
|
+
maxY: number;
|
|
131
|
+
q1Y: number;
|
|
132
|
+
q2Y: number;
|
|
133
|
+
q3Y: number;
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
width: number;
|
|
137
|
+
height: number;
|
|
138
|
+
}
|
|
139
|
+
interface BoxYOptions {
|
|
140
|
+
cy: number;
|
|
141
|
+
minX: number;
|
|
142
|
+
maxX: number;
|
|
143
|
+
q1X: number;
|
|
144
|
+
q2X: number;
|
|
145
|
+
q3X: number;
|
|
146
|
+
x: number;
|
|
147
|
+
y: number;
|
|
148
|
+
width: number;
|
|
149
|
+
height: number;
|
|
150
|
+
}
|
|
151
|
+
declare const createBoxX: (path: Path, options: BoxXOptions) => void;
|
|
152
|
+
declare const createBoxY: (path: Path, options: BoxYOptions) => void;
|
|
153
|
+
|
|
154
|
+
interface ShapeOptionsMap {
|
|
155
|
+
circle: CircleOptions;
|
|
156
|
+
rect: RectOptions;
|
|
157
|
+
arc: ArcOptions;
|
|
158
|
+
sector: SectorOptions;
|
|
159
|
+
line: LineOptions;
|
|
160
|
+
segmentLine: SegmentLineOptions;
|
|
161
|
+
area: AreaOptions;
|
|
162
|
+
segmentArea: SegmentAreaOptions;
|
|
163
|
+
boxX: BoxXOptions;
|
|
164
|
+
boxY: BoxYOptions;
|
|
165
|
+
}
|
|
166
|
+
type ShapeType = keyof ShapeOptionsMap;
|
|
167
|
+
/**
|
|
168
|
+
* 统一形状工厂:按类型名分发到对应的形状生成器
|
|
169
|
+
* @param path - Path 实例(用于写入路径命令)
|
|
170
|
+
* @param type - 形状类型(circle/rect/arc/sector/line/area 等)
|
|
171
|
+
* @param options - 对应形状的配置参数
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```ts
|
|
175
|
+
* const path = new Path();
|
|
176
|
+
* createShape(path, 'circle', { cx: 100, cy: 100, r: 50 });
|
|
177
|
+
* console.log(path.toString()); // SVG path string
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
declare const createShape: <T extends ShapeType>(path: Path, type: T, options: ShapeOptionsMap[T]) => void;
|
|
181
|
+
|
|
182
|
+
interface SymbolOptions {
|
|
183
|
+
cx: number;
|
|
184
|
+
cy: number;
|
|
185
|
+
r: number;
|
|
186
|
+
}
|
|
187
|
+
type SymbolCreator = (path: Path, options: SymbolOptions) => void;
|
|
188
|
+
|
|
189
|
+
declare const createCircleSymbol: SymbolCreator;
|
|
190
|
+
|
|
191
|
+
declare const createCrossSymbol: SymbolCreator;
|
|
192
|
+
|
|
193
|
+
declare const createDiamondSymbol: SymbolCreator;
|
|
194
|
+
|
|
195
|
+
declare const createSquareSymbol: SymbolCreator;
|
|
196
|
+
|
|
197
|
+
declare const createStarSymbol: SymbolCreator;
|
|
198
|
+
|
|
199
|
+
declare const createUpTriangleSymbol: SymbolCreator;
|
|
200
|
+
declare const createDownTriangleSymbol: SymbolCreator;
|
|
201
|
+
declare const createLeftTriangleSymbol: SymbolCreator;
|
|
202
|
+
declare const createRightTriangleSymbol: SymbolCreator;
|
|
203
|
+
declare const createTriangleSymbol: SymbolCreator;
|
|
204
|
+
declare const createInvertedTriangleSymbol: SymbolCreator;
|
|
205
|
+
|
|
206
|
+
declare const createWyeSymbol: SymbolCreator;
|
|
207
|
+
|
|
208
|
+
declare const createHLineSymbol: SymbolCreator;
|
|
209
|
+
declare const createVLineSymbol: SymbolCreator;
|
|
210
|
+
|
|
211
|
+
declare const createEyeSymbol: SymbolCreator;
|
|
212
|
+
declare const createClosedEyeSymbol: SymbolCreator;
|
|
213
|
+
|
|
214
|
+
declare const createResetSymbol: SymbolCreator;
|
|
215
|
+
|
|
216
|
+
declare const createSelectSymbol: SymbolCreator;
|
|
217
|
+
|
|
218
|
+
declare const fillSymbols: string[];
|
|
219
|
+
declare const createSymbol: (path: Path, symbol: string, options: SymbolOptions) => void;
|
|
220
|
+
|
|
221
|
+
interface IndicatorBoxOptions {
|
|
222
|
+
anchor: 'top' | 'bottom' | 'left' | 'right';
|
|
223
|
+
anchorSize: number;
|
|
224
|
+
width: number;
|
|
225
|
+
height: number;
|
|
226
|
+
}
|
|
227
|
+
declare const createIndicatorBox: (path: Path, options: IndicatorBoxOptions) => void;
|
|
228
|
+
|
|
229
|
+
export { type ArcOptions, type AreaOptions, type BoxXOptions, type BoxYOptions, type CircleOptions, type IndicatorBoxOptions, type LineOptions, type RectOptions, type RingOptions, type SectorOptions, type SegmentAreaOptions, type SegmentLineOptions, type SymbolCreator, type SymbolOptions, createArc, createArea, createBoxX, createBoxY, createCircle, createCircleSymbol, createClosedEyeSymbol, createCrossSymbol, createDiamondSymbol, createDownTriangleSymbol, createEyeSymbol, createHLineSymbol, createIndicatorBox, createInvertedTriangleSymbol, createLeftTriangleSymbol, createLine, createRect, createRectNormal, createRectRounded, createResetSymbol, createRightTriangleSymbol, createRing, createSector, createSectorNormal, createSectorRounded, createSegmentArea, createSegmentLine, createSelectSymbol, createShape, createSquareSymbol, createStarSymbol, createSymbol, createTriangleSymbol, createUpTriangleSymbol, createVLineSymbol, createWyeSymbol, fillSymbols };
|