vjcad 1.0.0 → 1.0.2
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/README.md +15 -2
- package/dist/types.d.ts +2488 -500
- package/dist/vjcad-lib.umd.js +527 -37
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,480 +1,480 @@
|
|
|
1
1
|
// ============================================
|
|
2
|
+
// Global type declarations for script tag usage
|
|
2
3
|
// ============================================
|
|
3
4
|
|
|
4
|
-
declare
|
|
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
|
-
declare class ImageSource$1 extends TextureSource {
|
|
32
|
-
constructor(options?: any);
|
|
33
|
-
|
|
34
|
-
uploadMethodId: string;
|
|
35
|
-
|
|
36
|
-
static test(resource: any): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class Container {
|
|
40
|
-
// 子元素管理方法
|
|
41
|
-
addChild<T extends any[]>(...children: T): T[0];
|
|
42
|
-
addChildAt(child: any, index: number): any;
|
|
43
|
-
removeChild<T extends any[]>(...children: T): T[0];
|
|
44
|
-
removeChildAt(index: number): any;
|
|
45
|
-
removeChildren(beginIndex?: number, endIndex?: number): any[];
|
|
46
|
-
getChildAt(index: number): any;
|
|
47
|
-
getChildIndex(child: any): number;
|
|
48
|
-
setChildIndex(child: any, index: number): void;
|
|
49
|
-
swapChildren(child: any, child2: any): void;
|
|
50
|
-
sortChildren(): void;
|
|
51
|
-
getChildByLabel(label: string, deep?: boolean): any;
|
|
52
|
-
getChildrenByLabel(label: string, deep?: boolean, out?: any[]): any[];
|
|
53
|
-
|
|
54
|
-
// 属性
|
|
55
|
-
children: any[];
|
|
56
|
-
sortableChildren: boolean;
|
|
57
|
-
sortDirty: boolean;
|
|
58
|
-
parent: any;
|
|
59
|
-
label: string;
|
|
60
|
-
|
|
61
|
-
// 变换属性
|
|
62
|
-
x: number;
|
|
63
|
-
y: number;
|
|
64
|
-
rotation: number;
|
|
65
|
-
angle: number;
|
|
66
|
-
scale: any;
|
|
67
|
-
pivot: any;
|
|
68
|
-
position: any;
|
|
69
|
-
skew: any;
|
|
70
|
-
|
|
71
|
-
// 显示属性
|
|
72
|
-
alpha: number;
|
|
73
|
-
visible: boolean;
|
|
74
|
-
renderable: boolean;
|
|
75
|
-
width: number;
|
|
76
|
-
height: number;
|
|
77
|
-
worldAlpha: number;
|
|
78
|
-
worldTransform: any;
|
|
79
|
-
localTransform: any;
|
|
80
|
-
zIndex: number;
|
|
81
|
-
|
|
82
|
-
// 其他属性
|
|
83
|
-
mask: any;
|
|
84
|
-
filters: any[] | null;
|
|
85
|
-
cullable: boolean;
|
|
86
|
-
cullArea: any;
|
|
87
|
-
filterArea: any;
|
|
88
|
-
tint: any;
|
|
89
|
-
blendMode: any;
|
|
90
|
-
|
|
91
|
-
// 方法
|
|
92
|
-
destroy(options?: any): void;
|
|
93
|
-
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
94
|
-
getLocalBounds(rect?: any): any;
|
|
95
|
-
toGlobal(position: any, point?: any, skipUpdate?: boolean): any;
|
|
96
|
-
toLocal(position: any, from?: any, point?: any, skipUpdate?: boolean): any;
|
|
97
|
-
setParent(container: any): any;
|
|
98
|
-
removeFromParent(): void;
|
|
99
|
-
|
|
100
|
-
// 事件方法
|
|
101
|
-
on(event: string, fn: Function, context?: any): this;
|
|
102
|
-
once(event: string, fn: Function, context?: any): this;
|
|
103
|
-
off(event: string, fn?: Function, context?: any): this;
|
|
104
|
-
emit(event: string, ...args: any[]): boolean;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
type ContainerChild = Container;
|
|
108
|
-
|
|
109
|
-
declare class GraphicsContext {
|
|
110
|
-
// 路径方法
|
|
111
|
-
moveTo(x: number, y: number): this;
|
|
112
|
-
lineTo(x: number, y: number): this;
|
|
113
|
-
quadraticCurveTo(cpX: number, cpY: number, toX: number, toY: number): this;
|
|
114
|
-
bezierCurveTo(cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): this;
|
|
115
|
-
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): this;
|
|
116
|
-
arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): this;
|
|
117
|
-
closePath(): this;
|
|
118
|
-
|
|
119
|
-
// 形状方法
|
|
120
|
-
rect(x: number, y: number, width: number, height: number): this;
|
|
121
|
-
roundRect(x: number, y: number, width: number, height: number, radius?: number): this;
|
|
122
|
-
circle(x: number, y: number, radius: number): this;
|
|
123
|
-
ellipse(x: number, y: number, radiusX: number, radiusY: number): this;
|
|
124
|
-
poly(points: number[] | any[], close?: boolean): this;
|
|
125
|
-
regularPoly(x: number, y: number, radius: number, sides: number, rotation?: number): this;
|
|
126
|
-
star(x: number, y: number, points: number, radius: number, innerRadius?: number, rotation?: number): this;
|
|
127
|
-
|
|
128
|
-
// 填充和描边
|
|
129
|
-
fill(style?: any): this;
|
|
130
|
-
stroke(style?: any): this;
|
|
131
|
-
cut(): this;
|
|
132
|
-
|
|
133
|
-
// 纹理方法
|
|
134
|
-
texture(texture: any, tint?: any, dx?: number, dy?: number, dw?: number, dh?: number): this;
|
|
135
|
-
|
|
136
|
-
// 变换方法
|
|
137
|
-
setTransform(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number): this;
|
|
138
|
-
resetTransform(): this;
|
|
139
|
-
rotateTransform(angle: number): this;
|
|
140
|
-
scaleTransform(x: number, y?: number): this;
|
|
141
|
-
translateTransform(x: number, y: number): this;
|
|
142
|
-
|
|
143
|
-
// 状态管理
|
|
144
|
-
save(): this;
|
|
145
|
-
restore(): this;
|
|
146
|
-
|
|
147
|
-
// 实用方法
|
|
148
|
-
clear(): this;
|
|
149
|
-
clone(): GraphicsContext;
|
|
150
|
-
destroy(options?: any): void;
|
|
151
|
-
|
|
152
|
-
// 属性
|
|
153
|
-
fillStyle: any;
|
|
154
|
-
strokeStyle: any;
|
|
155
|
-
batchMode: 'auto' | 'batch' | 'no-batch';
|
|
156
|
-
readonly bounds: any;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
declare class Graphics {
|
|
160
|
-
// GraphicsContext 代理方法
|
|
161
|
-
readonly context: GraphicsContext;
|
|
162
|
-
|
|
163
|
-
// 路径方法
|
|
164
|
-
moveTo(x: number, y: number): this;
|
|
165
|
-
lineTo(x: number, y: number): this;
|
|
166
|
-
quadraticCurveTo(cpX: number, cpY: number, toX: number, toY: number): this;
|
|
167
|
-
bezierCurveTo(cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): this;
|
|
168
|
-
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): this;
|
|
169
|
-
arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): this;
|
|
170
|
-
closePath(): this;
|
|
171
|
-
|
|
172
|
-
// 形状方法 (v8 新API)
|
|
173
|
-
rect(x: number, y: number, width: number, height: number): this;
|
|
174
|
-
roundRect(x: number, y: number, width: number, height: number, radius?: number): this;
|
|
175
|
-
circle(x: number, y: number, radius: number): this;
|
|
176
|
-
ellipse(x: number, y: number, radiusX: number, radiusY: number): this;
|
|
177
|
-
poly(points: number[] | any[], close?: boolean): this;
|
|
178
|
-
regularPoly(x: number, y: number, radius: number, sides: number, rotation?: number): this;
|
|
179
|
-
roundPoly(x: number, y: number, radius: number, sides: number, corner: number, rotation?: number): this;
|
|
180
|
-
roundShape(points: any[], radius: number, useQuadratic?: boolean, smoothness?: number): this;
|
|
181
|
-
filletRect(x: number, y: number, width: number, height: number, fillet: number): this;
|
|
182
|
-
chamferRect(x: number, y: number, width: number, height: number, chamfer: number): this;
|
|
183
|
-
star(x: number, y: number, points: number, radius: number, innerRadius?: number, rotation?: number): this;
|
|
184
|
-
|
|
185
|
-
// 填充和描边 (v8 新API)
|
|
186
|
-
fill(style?: any): this;
|
|
187
|
-
stroke(style?: any): this;
|
|
188
|
-
cut(): this;
|
|
189
|
-
|
|
190
|
-
// 纹理方法
|
|
191
|
-
texture(texture: any, tint?: any, dx?: number, dy?: number, dw?: number, dh?: number): this;
|
|
192
|
-
|
|
193
|
-
// 变换方法
|
|
194
|
-
setTransform(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number): this;
|
|
195
|
-
resetTransform(): this;
|
|
196
|
-
rotateTransform(angle: number): this;
|
|
197
|
-
scaleTransform(x: number, y?: number): this;
|
|
198
|
-
translateTransform(x: number, y: number): this;
|
|
199
|
-
|
|
200
|
-
// 状态管理
|
|
201
|
-
save(): this;
|
|
202
|
-
restore(): this;
|
|
203
|
-
|
|
204
|
-
// 实用方法
|
|
205
|
-
clear(): this;
|
|
206
|
-
clone(): Graphics;
|
|
207
|
-
destroy(options?: any): void;
|
|
208
|
-
|
|
209
|
-
// Container/ViewContainer 属性
|
|
210
|
-
x: number;
|
|
211
|
-
y: number;
|
|
212
|
-
rotation: number;
|
|
213
|
-
angle: number;
|
|
214
|
-
scale: any;
|
|
215
|
-
pivot: any;
|
|
216
|
-
position: any;
|
|
217
|
-
alpha: number;
|
|
218
|
-
visible: boolean;
|
|
219
|
-
renderable: boolean;
|
|
220
|
-
width: number;
|
|
221
|
-
height: number;
|
|
222
|
-
parent: any;
|
|
223
|
-
zIndex: number;
|
|
224
|
-
tint: any;
|
|
225
|
-
blendMode: any;
|
|
226
|
-
|
|
227
|
-
// 边界方法
|
|
228
|
-
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
229
|
-
getLocalBounds(rect?: any): any;
|
|
230
|
-
containsPoint(point: any): boolean;
|
|
231
|
-
|
|
232
|
-
// 坐标变换
|
|
233
|
-
toGlobal(position: any, point?: any, skipUpdate?: boolean): any;
|
|
234
|
-
toLocal(position: any, from?: any, point?: any, skipUpdate?: boolean): any;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
declare class Sprite {
|
|
238
|
-
// 构造器
|
|
239
|
-
constructor(options?: { texture?: any; anchor?: any; roundPixels?: boolean } | any);
|
|
240
|
-
|
|
241
|
-
// 属性
|
|
242
|
-
texture: any;
|
|
243
|
-
anchor: any;
|
|
244
|
-
roundPixels: boolean;
|
|
245
|
-
|
|
246
|
-
// 变换属性
|
|
247
|
-
x: number;
|
|
248
|
-
y: number;
|
|
249
|
-
rotation: number;
|
|
250
|
-
angle: number;
|
|
251
|
-
scale: any;
|
|
252
|
-
pivot: any;
|
|
253
|
-
position: any;
|
|
254
|
-
skew: any;
|
|
255
|
-
|
|
256
|
-
// 显示属性
|
|
257
|
-
alpha: number;
|
|
258
|
-
visible: boolean;
|
|
259
|
-
renderable: boolean;
|
|
260
|
-
width: number;
|
|
261
|
-
height: number;
|
|
262
|
-
tint: any;
|
|
263
|
-
blendMode: any;
|
|
264
|
-
|
|
265
|
-
// 层级
|
|
266
|
-
parent: any;
|
|
267
|
-
zIndex: number;
|
|
268
|
-
|
|
269
|
-
// 方法
|
|
270
|
-
destroy(options?: any): void;
|
|
271
|
-
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
272
|
-
getLocalBounds(rect?: any): any;
|
|
273
|
-
toGlobal(position: any, point?: any, skipUpdate?: boolean): any;
|
|
274
|
-
toLocal(position: any, from?: any, point?: any, skipUpdate?: boolean): any;
|
|
275
|
-
containsPoint(point: any): boolean;
|
|
276
|
-
|
|
277
|
-
// 静态方法
|
|
278
|
-
static from(source: any, skipCache?: boolean): Sprite;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
declare class Text {
|
|
282
|
-
// 构造器 (v8 使用 options 对象)
|
|
283
|
-
constructor(options?: { text?: string; style?: any; resolution?: number });
|
|
284
|
-
|
|
285
|
-
// 核心属性
|
|
286
|
-
text: string;
|
|
287
|
-
style: any;
|
|
288
|
-
resolution: number;
|
|
289
|
-
|
|
290
|
-
// 变换属性 (从 Sprite/Container)
|
|
291
|
-
x: number;
|
|
292
|
-
y: number;
|
|
293
|
-
rotation: number;
|
|
294
|
-
angle: number;
|
|
295
|
-
scale: any;
|
|
296
|
-
pivot: any;
|
|
297
|
-
position: any;
|
|
298
|
-
anchor: any;
|
|
299
|
-
skew: any;
|
|
300
|
-
|
|
301
|
-
// 显示属性
|
|
302
|
-
alpha: number;
|
|
303
|
-
visible: boolean;
|
|
304
|
-
renderable: boolean;
|
|
305
|
-
width: number;
|
|
306
|
-
height: number;
|
|
307
|
-
worldAlpha: number;
|
|
308
|
-
worldTransform: any;
|
|
309
|
-
localTransform: any;
|
|
310
|
-
|
|
311
|
-
// Sprite 属性
|
|
312
|
-
texture: any;
|
|
313
|
-
tint: any;
|
|
314
|
-
blendMode: any;
|
|
315
|
-
|
|
316
|
-
// 层级
|
|
317
|
-
parent: any;
|
|
318
|
-
zIndex: number;
|
|
319
|
-
|
|
320
|
-
// 方法
|
|
321
|
-
destroy(options?: any): void;
|
|
322
|
-
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
323
|
-
getLocalBounds(rect?: any): any;
|
|
324
|
-
toGlobal(position: any, point?: any, skipUpdate?: boolean): any;
|
|
325
|
-
toLocal(position: any, from?: any, point?: any, skipUpdate?: boolean): any;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
declare class Texture {
|
|
329
|
-
// 构造器
|
|
330
|
-
constructor(options?: any);
|
|
331
|
-
|
|
332
|
-
// 属性
|
|
333
|
-
source: any;
|
|
334
|
-
frame: any;
|
|
335
|
-
orig: any;
|
|
336
|
-
trim: any;
|
|
337
|
-
readonly width: number;
|
|
338
|
-
readonly height: number;
|
|
339
|
-
label: string;
|
|
340
|
-
|
|
341
|
-
// UV 相关
|
|
342
|
-
uvs: any;
|
|
343
|
-
|
|
344
|
-
// 锚点
|
|
345
|
-
defaultAnchor: { x: number; y: number };
|
|
346
|
-
defaultBorders: any;
|
|
347
|
-
|
|
348
|
-
// 状态
|
|
349
|
-
readonly destroyed: boolean;
|
|
350
|
-
|
|
351
|
-
// 方法
|
|
352
|
-
update(): void;
|
|
353
|
-
destroy(destroySource?: boolean): void;
|
|
354
|
-
|
|
355
|
-
// 静态方法
|
|
356
|
-
static from(source: any, options?: any): Texture;
|
|
357
|
-
|
|
358
|
-
// 静态属性
|
|
359
|
-
static readonly EMPTY: Texture;
|
|
360
|
-
static readonly WHITE: Texture;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
declare class Matrix {
|
|
364
|
-
// 矩阵分量
|
|
365
|
-
a: number;
|
|
366
|
-
b: number;
|
|
367
|
-
c: number;
|
|
368
|
-
d: number;
|
|
369
|
-
tx: number;
|
|
370
|
-
ty: number;
|
|
371
|
-
array: Float32Array | null;
|
|
372
|
-
|
|
373
|
-
// 构造器
|
|
374
|
-
constructor(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number);
|
|
5
|
+
declare global {
|
|
6
|
+
declare class TextureSource {
|
|
7
|
+
constructor(options?: any);
|
|
8
|
+
|
|
9
|
+
// 属性
|
|
10
|
+
readonly uid: number;
|
|
11
|
+
label: string;
|
|
12
|
+
resource: any;
|
|
13
|
+
|
|
14
|
+
// 尺寸属性
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
pixelWidth: number;
|
|
18
|
+
pixelHeight: number;
|
|
19
|
+
resolution: number;
|
|
20
|
+
|
|
21
|
+
// 状态
|
|
22
|
+
destroyed: boolean;
|
|
23
|
+
|
|
24
|
+
// 样式
|
|
25
|
+
scaleMode: 'nearest' | 'linear';
|
|
26
|
+
|
|
27
|
+
// 方法
|
|
28
|
+
update(): void;
|
|
29
|
+
destroy(): void;
|
|
30
|
+
resize(width: number, height: number, resolution?: number): void;
|
|
31
|
+
}
|
|
375
32
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
prepend(matrix: Matrix): this;
|
|
384
|
-
invert(): this;
|
|
385
|
-
setTransform(x: number, y: number, pivotX: number, pivotY: number, scaleX: number, scaleY: number, rotation: number, skewX: number, skewY: number): this;
|
|
33
|
+
declare class ImageSource$1 extends TextureSource {
|
|
34
|
+
constructor(options?: any);
|
|
35
|
+
|
|
36
|
+
uploadMethodId: string;
|
|
37
|
+
|
|
38
|
+
static test(resource: any): boolean;
|
|
39
|
+
}
|
|
386
40
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
41
|
+
declare class Container {
|
|
42
|
+
// 子元素管理方法
|
|
43
|
+
addChild<T extends any[]>(...children: T): T[0];
|
|
44
|
+
addChildAt(child: any, index: number): any;
|
|
45
|
+
removeChild<T extends any[]>(...children: T): T[0];
|
|
46
|
+
removeChildAt(index: number): any;
|
|
47
|
+
removeChildren(beginIndex?: number, endIndex?: number): any[];
|
|
48
|
+
getChildAt(index: number): any;
|
|
49
|
+
getChildIndex(child: any): number;
|
|
50
|
+
setChildIndex(child: any, index: number): void;
|
|
51
|
+
swapChildren(child: any, child2: any): void;
|
|
52
|
+
sortChildren(): void;
|
|
53
|
+
getChildByLabel(label: string, deep?: boolean): any;
|
|
54
|
+
getChildrenByLabel(label: string, deep?: boolean, out?: any[]): any[];
|
|
55
|
+
|
|
56
|
+
// 属性
|
|
57
|
+
children: any[];
|
|
58
|
+
sortableChildren: boolean;
|
|
59
|
+
sortDirty: boolean;
|
|
60
|
+
parent: any;
|
|
61
|
+
label: string;
|
|
62
|
+
|
|
63
|
+
// 变换属性
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
rotation: number;
|
|
67
|
+
angle: number;
|
|
68
|
+
scale: any;
|
|
69
|
+
pivot: any;
|
|
70
|
+
position: any;
|
|
71
|
+
skew: any;
|
|
72
|
+
|
|
73
|
+
// 显示属性
|
|
74
|
+
alpha: number;
|
|
75
|
+
visible: boolean;
|
|
76
|
+
renderable: boolean;
|
|
77
|
+
width: number;
|
|
78
|
+
height: number;
|
|
79
|
+
worldAlpha: number;
|
|
80
|
+
worldTransform: any;
|
|
81
|
+
localTransform: any;
|
|
82
|
+
zIndex: number;
|
|
83
|
+
|
|
84
|
+
// 其他属性
|
|
85
|
+
mask: any;
|
|
86
|
+
filters: any[] | null;
|
|
87
|
+
cullable: boolean;
|
|
88
|
+
cullArea: any;
|
|
89
|
+
filterArea: any;
|
|
90
|
+
tint: any;
|
|
91
|
+
blendMode: any;
|
|
92
|
+
|
|
93
|
+
// 方法
|
|
94
|
+
destroy(options?: any): void;
|
|
95
|
+
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
96
|
+
getLocalBounds(rect?: any): any;
|
|
97
|
+
toGlobal(position: any, point?: any, skipUpdate?: boolean): any;
|
|
98
|
+
toLocal(position: any, from?: any, point?: any, skipUpdate?: boolean): any;
|
|
99
|
+
setParent(container: any): any;
|
|
100
|
+
removeFromParent(): void;
|
|
101
|
+
|
|
102
|
+
// 事件方法
|
|
103
|
+
on(event: string, fn: Function, context?: any): this;
|
|
104
|
+
once(event: string, fn: Function, context?: any): this;
|
|
105
|
+
off(event: string, fn?: Function, context?: any): this;
|
|
106
|
+
emit(event: string, ...args: any[]): boolean;
|
|
107
|
+
}
|
|
390
108
|
|
|
391
|
-
|
|
392
|
-
clone(): Matrix;
|
|
393
|
-
copyTo(matrix: Matrix): Matrix;
|
|
394
|
-
copyFrom(matrix: Matrix): this;
|
|
109
|
+
type ContainerChild = Container;
|
|
395
110
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
111
|
+
declare class GraphicsContext {
|
|
112
|
+
// 路径方法
|
|
113
|
+
moveTo(x: number, y: number): this;
|
|
114
|
+
lineTo(x: number, y: number): this;
|
|
115
|
+
quadraticCurveTo(cpX: number, cpY: number, toX: number, toY: number): this;
|
|
116
|
+
bezierCurveTo(cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): this;
|
|
117
|
+
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): this;
|
|
118
|
+
arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): this;
|
|
119
|
+
closePath(): this;
|
|
120
|
+
|
|
121
|
+
// 形状方法
|
|
122
|
+
rect(x: number, y: number, width: number, height: number): this;
|
|
123
|
+
roundRect(x: number, y: number, width: number, height: number, radius?: number): this;
|
|
124
|
+
circle(x: number, y: number, radius: number): this;
|
|
125
|
+
ellipse(x: number, y: number, radiusX: number, radiusY: number): this;
|
|
126
|
+
poly(points: number[] | any[], close?: boolean): this;
|
|
127
|
+
regularPoly(x: number, y: number, radius: number, sides: number, rotation?: number): this;
|
|
128
|
+
star(x: number, y: number, points: number, radius: number, innerRadius?: number, rotation?: number): this;
|
|
129
|
+
|
|
130
|
+
// 填充和描边
|
|
131
|
+
fill(style?: any): this;
|
|
132
|
+
stroke(style?: any): this;
|
|
133
|
+
cut(): this;
|
|
134
|
+
|
|
135
|
+
// 纹理方法
|
|
136
|
+
texture(texture: any, tint?: any, dx?: number, dy?: number, dw?: number, dh?: number): this;
|
|
137
|
+
|
|
138
|
+
// 变换方法
|
|
139
|
+
setTransform(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number): this;
|
|
140
|
+
resetTransform(): this;
|
|
141
|
+
rotateTransform(angle: number): this;
|
|
142
|
+
scaleTransform(x: number, y?: number): this;
|
|
143
|
+
translateTransform(x: number, y: number): this;
|
|
144
|
+
|
|
145
|
+
// 状态管理
|
|
146
|
+
save(): this;
|
|
147
|
+
restore(): this;
|
|
148
|
+
|
|
149
|
+
// 实用方法
|
|
150
|
+
clear(): this;
|
|
151
|
+
clone(): GraphicsContext;
|
|
152
|
+
destroy(options?: any): void;
|
|
153
|
+
|
|
154
|
+
// 属性
|
|
155
|
+
fillStyle: any;
|
|
156
|
+
strokeStyle: any;
|
|
157
|
+
batchMode: 'auto' | 'batch' | 'no-batch';
|
|
158
|
+
readonly bounds: any;
|
|
159
|
+
}
|
|
399
160
|
|
|
400
|
-
|
|
401
|
-
|
|
161
|
+
declare class Graphics {
|
|
162
|
+
// GraphicsContext 代理方法
|
|
163
|
+
readonly context: GraphicsContext;
|
|
164
|
+
|
|
165
|
+
// 路径方法
|
|
166
|
+
moveTo(x: number, y: number): this;
|
|
167
|
+
lineTo(x: number, y: number): this;
|
|
168
|
+
quadraticCurveTo(cpX: number, cpY: number, toX: number, toY: number): this;
|
|
169
|
+
bezierCurveTo(cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): this;
|
|
170
|
+
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): this;
|
|
171
|
+
arc(cx: number, cy: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): this;
|
|
172
|
+
closePath(): this;
|
|
173
|
+
|
|
174
|
+
// 形状方法 (v8 新API)
|
|
175
|
+
rect(x: number, y: number, width: number, height: number): this;
|
|
176
|
+
roundRect(x: number, y: number, width: number, height: number, radius?: number): this;
|
|
177
|
+
circle(x: number, y: number, radius: number): this;
|
|
178
|
+
ellipse(x: number, y: number, radiusX: number, radiusY: number): this;
|
|
179
|
+
poly(points: number[] | any[], close?: boolean): this;
|
|
180
|
+
regularPoly(x: number, y: number, radius: number, sides: number, rotation?: number): this;
|
|
181
|
+
roundPoly(x: number, y: number, radius: number, sides: number, corner: number, rotation?: number): this;
|
|
182
|
+
roundShape(points: any[], radius: number, useQuadratic?: boolean, smoothness?: number): this;
|
|
183
|
+
filletRect(x: number, y: number, width: number, height: number, fillet: number): this;
|
|
184
|
+
chamferRect(x: number, y: number, width: number, height: number, chamfer: number): this;
|
|
185
|
+
star(x: number, y: number, points: number, radius: number, innerRadius?: number, rotation?: number): this;
|
|
186
|
+
|
|
187
|
+
// 填充和描边 (v8 新API)
|
|
188
|
+
fill(style?: any): this;
|
|
189
|
+
stroke(style?: any): this;
|
|
190
|
+
cut(): this;
|
|
191
|
+
|
|
192
|
+
// 纹理方法
|
|
193
|
+
texture(texture: any, tint?: any, dx?: number, dy?: number, dw?: number, dh?: number): this;
|
|
194
|
+
|
|
195
|
+
// 变换方法
|
|
196
|
+
setTransform(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number): this;
|
|
197
|
+
resetTransform(): this;
|
|
198
|
+
rotateTransform(angle: number): this;
|
|
199
|
+
scaleTransform(x: number, y?: number): this;
|
|
200
|
+
translateTransform(x: number, y: number): this;
|
|
201
|
+
|
|
202
|
+
// 状态管理
|
|
203
|
+
save(): this;
|
|
204
|
+
restore(): this;
|
|
205
|
+
|
|
206
|
+
// 实用方法
|
|
207
|
+
clear(): this;
|
|
208
|
+
clone(): Graphics;
|
|
209
|
+
destroy(options?: any): void;
|
|
210
|
+
|
|
211
|
+
// Container/ViewContainer 属性
|
|
212
|
+
x: number;
|
|
213
|
+
y: number;
|
|
214
|
+
rotation: number;
|
|
215
|
+
angle: number;
|
|
216
|
+
scale: any;
|
|
217
|
+
pivot: any;
|
|
218
|
+
position: any;
|
|
219
|
+
alpha: number;
|
|
220
|
+
visible: boolean;
|
|
221
|
+
renderable: boolean;
|
|
222
|
+
width: number;
|
|
223
|
+
height: number;
|
|
224
|
+
parent: any;
|
|
225
|
+
zIndex: number;
|
|
226
|
+
tint: any;
|
|
227
|
+
blendMode: any;
|
|
228
|
+
|
|
229
|
+
// 边界方法
|
|
230
|
+
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
231
|
+
getLocalBounds(rect?: any): any;
|
|
232
|
+
containsPoint(point: any): boolean;
|
|
233
|
+
|
|
234
|
+
// 坐标变换
|
|
235
|
+
toGlobal(position: any, point?: any, skipUpdate?: boolean): any;
|
|
236
|
+
toLocal(position: any, from?: any, point?: any, skipUpdate?: boolean): any;
|
|
237
|
+
}
|
|
402
238
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
239
|
+
declare class Sprite {
|
|
240
|
+
// 构造器
|
|
241
|
+
constructor(options?: { texture?: any; anchor?: any; roundPixels?: boolean } | any);
|
|
242
|
+
|
|
243
|
+
// 属性
|
|
244
|
+
texture: any;
|
|
245
|
+
anchor: any;
|
|
246
|
+
roundPixels: boolean;
|
|
247
|
+
|
|
248
|
+
// 变换属性
|
|
249
|
+
x: number;
|
|
250
|
+
y: number;
|
|
251
|
+
rotation: number;
|
|
252
|
+
angle: number;
|
|
253
|
+
scale: any;
|
|
254
|
+
pivot: any;
|
|
255
|
+
position: any;
|
|
256
|
+
skew: any;
|
|
257
|
+
|
|
258
|
+
// 显示属性
|
|
259
|
+
alpha: number;
|
|
260
|
+
visible: boolean;
|
|
261
|
+
renderable: boolean;
|
|
262
|
+
width: number;
|
|
263
|
+
height: number;
|
|
264
|
+
tint: any;
|
|
265
|
+
blendMode: any;
|
|
266
|
+
|
|
267
|
+
// 层级
|
|
268
|
+
parent: any;
|
|
269
|
+
zIndex: number;
|
|
270
|
+
|
|
271
|
+
// 方法
|
|
272
|
+
destroy(options?: any): void;
|
|
273
|
+
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
274
|
+
getLocalBounds(rect?: any): any;
|
|
275
|
+
toGlobal(position: any, point?: any, skipUpdate?: boolean): any;
|
|
276
|
+
toLocal(position: any, from?: any, point?: any, skipUpdate?: boolean): any;
|
|
277
|
+
containsPoint(point: any): boolean;
|
|
278
|
+
|
|
279
|
+
// 静态方法
|
|
280
|
+
static from(source: any, skipCache?: boolean): Sprite;
|
|
281
|
+
}
|
|
411
282
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
283
|
+
declare class Texture {
|
|
284
|
+
// 构造器
|
|
285
|
+
constructor(options?: any);
|
|
286
|
+
|
|
287
|
+
// 属性
|
|
288
|
+
source: any;
|
|
289
|
+
frame: any;
|
|
290
|
+
orig: any;
|
|
291
|
+
trim: any;
|
|
292
|
+
readonly width: number;
|
|
293
|
+
readonly height: number;
|
|
294
|
+
label: string;
|
|
295
|
+
|
|
296
|
+
// UV 相关
|
|
297
|
+
uvs: any;
|
|
298
|
+
|
|
299
|
+
// 锚点
|
|
300
|
+
defaultAnchor: { x: number; y: number };
|
|
301
|
+
defaultBorders: any;
|
|
302
|
+
|
|
303
|
+
// 状态
|
|
304
|
+
readonly destroyed: boolean;
|
|
305
|
+
|
|
306
|
+
// 方法
|
|
307
|
+
update(): void;
|
|
308
|
+
destroy(destroySource?: boolean): void;
|
|
309
|
+
|
|
310
|
+
// 静态方法
|
|
311
|
+
static from(source: any, options?: any): Texture;
|
|
312
|
+
|
|
313
|
+
// 静态属性
|
|
314
|
+
static readonly EMPTY: Texture;
|
|
315
|
+
static readonly WHITE: Texture;
|
|
316
|
+
}
|
|
418
317
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
318
|
+
declare class Matrix {
|
|
319
|
+
// 矩阵分量
|
|
320
|
+
a: number;
|
|
321
|
+
b: number;
|
|
322
|
+
c: number;
|
|
323
|
+
d: number;
|
|
324
|
+
tx: number;
|
|
325
|
+
ty: number;
|
|
326
|
+
array: Float32Array | null;
|
|
327
|
+
|
|
328
|
+
// 构造器
|
|
329
|
+
constructor(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number);
|
|
330
|
+
|
|
331
|
+
// 变换方法
|
|
332
|
+
set(a: number, b: number, c: number, d: number, tx: number, ty: number): this;
|
|
333
|
+
identity(): this;
|
|
334
|
+
translate(x: number, y: number): this;
|
|
335
|
+
scale(x: number, y?: number): this;
|
|
336
|
+
rotate(angle: number): this;
|
|
337
|
+
append(matrix: Matrix): this;
|
|
338
|
+
prepend(matrix: Matrix): this;
|
|
339
|
+
invert(): this;
|
|
340
|
+
setTransform(x: number, y: number, pivotX: number, pivotY: number, scaleX: number, scaleY: number, rotation: number, skewX: number, skewY: number): this;
|
|
341
|
+
|
|
342
|
+
// 点变换
|
|
343
|
+
apply<T extends { x: number; y: number }>(pos: { x: number; y: number }, newPos?: T): T;
|
|
344
|
+
applyInverse<T extends { x: number; y: number }>(pos: { x: number; y: number }, newPos?: T): T;
|
|
345
|
+
|
|
346
|
+
// 复制方法
|
|
347
|
+
clone(): Matrix;
|
|
348
|
+
copyTo(matrix: Matrix): Matrix;
|
|
349
|
+
copyFrom(matrix: Matrix): this;
|
|
350
|
+
|
|
351
|
+
// 数组转换
|
|
352
|
+
fromArray(array: number[]): void;
|
|
353
|
+
toArray(transpose?: boolean, out?: Float32Array): Float32Array;
|
|
354
|
+
|
|
355
|
+
// 分解
|
|
356
|
+
decompose(transform: any): any;
|
|
357
|
+
|
|
358
|
+
// 静态属性
|
|
359
|
+
static readonly IDENTITY: Matrix;
|
|
360
|
+
static readonly shared: Matrix;
|
|
361
|
+
}
|
|
431
362
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
363
|
+
declare class Application {
|
|
364
|
+
// 构造器
|
|
365
|
+
constructor();
|
|
366
|
+
|
|
367
|
+
// 核心属性
|
|
368
|
+
stage: Container;
|
|
369
|
+
renderer: any;
|
|
370
|
+
canvas: HTMLCanvasElement;
|
|
371
|
+
screen: { x: number; y: number; width: number; height: number };
|
|
372
|
+
ticker: any;
|
|
373
|
+
|
|
374
|
+
// 方法
|
|
375
|
+
init(options?: any): Promise<void>;
|
|
376
|
+
render(): void;
|
|
377
|
+
resize(): void;
|
|
378
|
+
destroy(removeView?: boolean, stageOptions?: any): void;
|
|
379
|
+
stop(): void;
|
|
380
|
+
start(): void;
|
|
381
|
+
}
|
|
435
382
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
383
|
+
declare class ParticleContainer {
|
|
384
|
+
// 构造器
|
|
385
|
+
constructor(options?: any);
|
|
386
|
+
|
|
387
|
+
// 属性
|
|
388
|
+
particles: any[];
|
|
389
|
+
texture: any;
|
|
390
|
+
|
|
391
|
+
// 变换属性
|
|
392
|
+
x: number;
|
|
393
|
+
y: number;
|
|
394
|
+
rotation: number;
|
|
395
|
+
scale: any;
|
|
396
|
+
pivot: any;
|
|
397
|
+
position: any;
|
|
398
|
+
|
|
399
|
+
// 显示属性
|
|
400
|
+
alpha: number;
|
|
401
|
+
visible: boolean;
|
|
402
|
+
renderable: boolean;
|
|
403
|
+
|
|
404
|
+
// 层级
|
|
405
|
+
parent: any;
|
|
406
|
+
zIndex: number;
|
|
407
|
+
|
|
408
|
+
// 粒子管理方法
|
|
409
|
+
addParticle(...particles: any[]): any;
|
|
410
|
+
addParticleAt(particle: any, index: number): any;
|
|
411
|
+
removeParticle(...particles: any[]): any;
|
|
412
|
+
removeParticleAt(index: number): any;
|
|
413
|
+
removeParticles(beginIndex?: number, endIndex?: number): any[];
|
|
414
|
+
|
|
415
|
+
// 方法
|
|
416
|
+
update(): void;
|
|
417
|
+
destroy(options?: any): void;
|
|
418
|
+
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
419
|
+
}
|
|
443
420
|
|
|
444
|
-
|
|
445
|
-
alpha: number;
|
|
446
|
-
visible: boolean;
|
|
447
|
-
renderable: boolean;
|
|
421
|
+
type LineCap = 'butt' | 'round' | 'square';
|
|
448
422
|
|
|
449
|
-
|
|
450
|
-
parent: any;
|
|
451
|
-
zIndex: number;
|
|
423
|
+
declare class DestroyOptions { [key: string]: any; }
|
|
452
424
|
|
|
453
|
-
|
|
454
|
-
addParticle(...particles: any[]): any;
|
|
455
|
-
addParticleAt(particle: any, index: number): any;
|
|
456
|
-
removeParticle(...particles: any[]): any;
|
|
457
|
-
removeParticleAt(index: number): any;
|
|
458
|
-
removeParticles(beginIndex?: number, endIndex?: number): any[];
|
|
425
|
+
declare class FillInput { [key: string]: any; }
|
|
459
426
|
|
|
460
|
-
|
|
461
|
-
update(): void;
|
|
462
|
-
destroy(options?: any): void;
|
|
463
|
-
getBounds(skipUpdate?: boolean, rect?: any): any;
|
|
427
|
+
declare class StrokeInput { [key: string]: any; }
|
|
464
428
|
}
|
|
465
429
|
|
|
466
|
-
type LineCap = 'butt' | 'round' | 'square';
|
|
467
|
-
|
|
468
|
-
declare class DestroyOptions { [key: string]: any; }
|
|
469
|
-
|
|
470
|
-
declare class FillInput { [key: string]: any; }
|
|
471
|
-
|
|
472
|
-
declare class StrokeInput { [key: string]: any; }
|
|
473
|
-
|
|
474
430
|
// ============================================
|
|
475
|
-
//
|
|
431
|
+
// vcad type declarations
|
|
476
432
|
// ============================================
|
|
477
433
|
|
|
434
|
+
/**
|
|
435
|
+
* i18n type definitions
|
|
436
|
+
*/
|
|
437
|
+
type Locale = 'zh-CN' | 'en-US';
|
|
438
|
+
type TranslationMessages = Record<string, string>;
|
|
439
|
+
|
|
440
|
+
declare const SUPPORTED_LOCALES: readonly Locale[];
|
|
441
|
+
type LocaleChangeCallback = (locale: Locale) => void;
|
|
442
|
+
declare function isSupportedLocale(v: string): v is Locale;
|
|
443
|
+
/**
|
|
444
|
+
* Match a language string to a supported locale.
|
|
445
|
+
* Handles exact match, prefix match (en→en-US, zh→zh-CN), and case-insensitive.
|
|
446
|
+
*/
|
|
447
|
+
declare function matchLocale(lang: string): Locale | null;
|
|
448
|
+
/**
|
|
449
|
+
* Initialize the locale. Call before using any UI / command.
|
|
450
|
+
* @param locale - Force a specific locale, or omit to auto-detect.
|
|
451
|
+
* @returns The resolved locale.
|
|
452
|
+
*/
|
|
453
|
+
declare function initLocale(locale?: Locale): Locale;
|
|
454
|
+
/**
|
|
455
|
+
* Switch locale at runtime and reload the page to apply.
|
|
456
|
+
* Saves to localStorage, updates URL ?lang= param, then reloads.
|
|
457
|
+
*/
|
|
458
|
+
declare function setLocale(locale: Locale): void;
|
|
459
|
+
declare function getLocale(): Locale;
|
|
460
|
+
/**
|
|
461
|
+
* Register a callback that fires when locale changes via setLocale().
|
|
462
|
+
*/
|
|
463
|
+
declare function onLocaleChange(cb: LocaleChangeCallback): () => void;
|
|
464
|
+
/**
|
|
465
|
+
* Translate a key, with optional parameter interpolation.
|
|
466
|
+
*
|
|
467
|
+
* @example
|
|
468
|
+
* t('common.confirm') // "确定" | "OK"
|
|
469
|
+
* t('msg.count', { n: 5 }) // "选择了 5 个对象"
|
|
470
|
+
*/
|
|
471
|
+
/**
|
|
472
|
+
* Register additional translation messages (e.g. from plugins).
|
|
473
|
+
* Merges into existing locale maps; refreshes current messages if already initialized.
|
|
474
|
+
*/
|
|
475
|
+
declare function registerMessages(msgs: Partial<Record<Locale, TranslationMessages>>): void;
|
|
476
|
+
declare function t(key: string, params?: Record<string, string | number>): string;
|
|
477
|
+
|
|
478
478
|
/**
|
|
479
479
|
* CAD事件类型枚举
|
|
480
480
|
*
|
|
@@ -617,6 +617,20 @@ declare enum CadEvents {
|
|
|
617
617
|
ConflictResolved = "ConflictResolved",
|
|
618
618
|
/** 冲突解决被跳过 */
|
|
619
619
|
ConflictSkipped = "ConflictSkipped",
|
|
620
|
+
/** 指针按下(可取消) */
|
|
621
|
+
PointerDown = "PointerDown",
|
|
622
|
+
/** 指针移动 */
|
|
623
|
+
PointerMove = "PointerMove",
|
|
624
|
+
/** 指针抬起 */
|
|
625
|
+
PointerUp = "PointerUp",
|
|
626
|
+
/** 指针取消 */
|
|
627
|
+
PointerCancel = "PointerCancel",
|
|
628
|
+
/** 键盘按下(可取消) */
|
|
629
|
+
KeyDown = "KeyDown",
|
|
630
|
+
/** 键盘抬起 */
|
|
631
|
+
KeyUp = "KeyUp",
|
|
632
|
+
/** 滚轮滚动(可取消) */
|
|
633
|
+
Wheel = "Wheel",
|
|
620
634
|
/** 右键菜单打开前(可取消、可自定义菜单项) */
|
|
621
635
|
ContextMenuOpening = "ContextMenuOpening",
|
|
622
636
|
/** 右键菜单打开后 */
|
|
@@ -1075,6 +1089,7 @@ declare class EntityBase {
|
|
|
1075
1089
|
private _lineTypeScale;
|
|
1076
1090
|
private _transpMgr;
|
|
1077
1091
|
private _lineWeight;
|
|
1092
|
+
private _visible;
|
|
1078
1093
|
/**
|
|
1079
1094
|
* 实体类型标识符(如"LINE"、"CIRCLE"等)
|
|
1080
1095
|
* @public
|
|
@@ -1128,6 +1143,16 @@ declare class EntityBase {
|
|
|
1128
1143
|
* @public
|
|
1129
1144
|
*/
|
|
1130
1145
|
constructor();
|
|
1146
|
+
/**
|
|
1147
|
+
* DWG句柄别名(兼容性)
|
|
1148
|
+
* @alias objectId
|
|
1149
|
+
*/
|
|
1150
|
+
get handle(): string;
|
|
1151
|
+
/**
|
|
1152
|
+
* 实体类型别名(兼容性)
|
|
1153
|
+
* @alias type
|
|
1154
|
+
*/
|
|
1155
|
+
get entityType(): string;
|
|
1131
1156
|
/**
|
|
1132
1157
|
* 获取颜色索引
|
|
1133
1158
|
* @returns 颜色索引值(256表示"随图层"颜色)
|
|
@@ -1200,6 +1225,13 @@ declare class EntityBase {
|
|
|
1200
1225
|
* @public
|
|
1201
1226
|
*/
|
|
1202
1227
|
set isAlive(value: boolean);
|
|
1228
|
+
/**
|
|
1229
|
+
* DXF Group Code 60 entity visibility.
|
|
1230
|
+
* true = visible (default), false = invisible.
|
|
1231
|
+
* @public
|
|
1232
|
+
*/
|
|
1233
|
+
get visible(): boolean;
|
|
1234
|
+
set visible(value: boolean);
|
|
1203
1235
|
/**
|
|
1204
1236
|
* 获取原始扩展数据(用于序列化)
|
|
1205
1237
|
* 格式: { "1001": "AppName", "1000": "JSON字符串" }
|
|
@@ -1341,6 +1373,23 @@ declare class EntityBase {
|
|
|
1341
1373
|
* @internal
|
|
1342
1374
|
*/
|
|
1343
1375
|
generateCloneObjectId(sourceObjectId: string): string;
|
|
1376
|
+
/**
|
|
1377
|
+
* Clone this entity. Subclasses override to produce a typed deep copy.
|
|
1378
|
+
* The base implementation creates a shallow copy with common properties.
|
|
1379
|
+
*
|
|
1380
|
+
* @returns A new EntityBase (or subclass) instance
|
|
1381
|
+
* @public
|
|
1382
|
+
*/
|
|
1383
|
+
clone(): EntityBase;
|
|
1384
|
+
/**
|
|
1385
|
+
* Move this entity by the vector from `fromPoint` to `toPoint`.
|
|
1386
|
+
* Subclasses override with geometry-specific translation logic.
|
|
1387
|
+
*
|
|
1388
|
+
* @param fromPoint - Origin of the move vector
|
|
1389
|
+
* @param toPoint - Destination of the move vector
|
|
1390
|
+
* @public
|
|
1391
|
+
*/
|
|
1392
|
+
move(fromPoint: PointInput, toPoint: PointInput): void;
|
|
1344
1393
|
/**
|
|
1345
1394
|
* 设置为系统默认值
|
|
1346
1395
|
*
|
|
@@ -1805,8 +1854,14 @@ declare class SystemConstants {
|
|
|
1805
1854
|
static ELLIPSE_DIV: number;
|
|
1806
1855
|
static SPLINESEGS: number;
|
|
1807
1856
|
static ANTIALIAS: boolean;
|
|
1857
|
+
static SHOW_LINEWEIGHT: boolean;
|
|
1858
|
+
static SHOW_SHAPE_PLACEHOLDER: boolean;
|
|
1808
1859
|
static MAX_GRIP_ENTS: number;
|
|
1809
1860
|
static SHOW_GRIPS: boolean;
|
|
1861
|
+
static AUTO_ACTIVATE_PROPERTY_PANEL: boolean;
|
|
1862
|
+
static EXCLUDED_PANELS_FROM_AUTO_ACTIVATE: string[];
|
|
1863
|
+
static LEFT_PANELS: string[];
|
|
1864
|
+
static RIGHT_PANELS: string[];
|
|
1810
1865
|
static LT_FIRST_LEN: number;
|
|
1811
1866
|
static LT_UD: number;
|
|
1812
1867
|
static VERSION: string;
|
|
@@ -1818,6 +1873,12 @@ declare class SystemConstants {
|
|
|
1818
1873
|
static ACCESS_TOKEN: string;
|
|
1819
1874
|
static WORKSPACE: string | null;
|
|
1820
1875
|
static ACCESS_KEY: string;
|
|
1876
|
+
/** 业务系统用户ID(唯一标识,由二次开发者通过 MainView userInfo 配置传入) */
|
|
1877
|
+
static USER_ID: string;
|
|
1878
|
+
/** 业务系统用户显示名称(选填,为空时使用 USER_ID 显示) */
|
|
1879
|
+
static USER_NAME: string;
|
|
1880
|
+
/** 业务系统会话ID(选填,用于业务系统会话验证) */
|
|
1881
|
+
static SESSION_ID: string;
|
|
1821
1882
|
/**
|
|
1822
1883
|
* 打开图纸时关闭当前文档(单文档打开模式)
|
|
1823
1884
|
* - true(默认): 打开新图纸时先关闭当前文档,节省内存
|
|
@@ -1861,6 +1922,7 @@ declare class DbEntity {
|
|
|
1861
1922
|
lineWeight: number | undefined;
|
|
1862
1923
|
alpha: number;
|
|
1863
1924
|
transparency: number | undefined;
|
|
1925
|
+
visibility?: boolean;
|
|
1864
1926
|
Type: unknown;
|
|
1865
1927
|
/**
|
|
1866
1928
|
* 扩展数据(XData)- 用于存储自定义数据
|
|
@@ -2175,6 +2237,8 @@ declare class DbDText extends DbEntity {
|
|
|
2175
2237
|
styleName: string | undefined;
|
|
2176
2238
|
widthFactor: number | undefined;
|
|
2177
2239
|
obliqueAngle: number | undefined;
|
|
2240
|
+
isBackward?: boolean;
|
|
2241
|
+
isUpsideDown?: boolean;
|
|
2178
2242
|
padding: DbPadding | undefined;
|
|
2179
2243
|
showBorder?: boolean;
|
|
2180
2244
|
tag?: string;
|
|
@@ -2437,6 +2501,20 @@ declare class DbPixelPoint extends DbEntity {
|
|
|
2437
2501
|
base: [number, number] | [number, number, number] | DbPoint2d;
|
|
2438
2502
|
constructor();
|
|
2439
2503
|
}
|
|
2504
|
+
/**
|
|
2505
|
+
* 3D mesh entity for database storage.
|
|
2506
|
+
* Unified representation for AcDb3dSolid, AcDbRegion, AcDbSurface,
|
|
2507
|
+
* AcDbPolyFaceMesh, AcDbPolygonMesh, AcDbFace.
|
|
2508
|
+
*/
|
|
2509
|
+
declare class DbMesh extends DbEntity {
|
|
2510
|
+
sourceType: string;
|
|
2511
|
+
vertices: number[];
|
|
2512
|
+
indices: number[];
|
|
2513
|
+
edgeVisible?: number[];
|
|
2514
|
+
material?: string;
|
|
2515
|
+
meshSize?: [number, number];
|
|
2516
|
+
constructor();
|
|
2517
|
+
}
|
|
2440
2518
|
|
|
2441
2519
|
/**
|
|
2442
2520
|
* 凸度点类
|
|
@@ -4990,6 +5068,35 @@ declare class WebCadCoreService {
|
|
|
4990
5068
|
* @returns 表格提取结果
|
|
4991
5069
|
*/
|
|
4992
5070
|
extractTableSync(input: TableExtractInput): TableExtractResult;
|
|
5071
|
+
/**
|
|
5072
|
+
* 同步提取中心线(主线程调用)
|
|
5073
|
+
* @param input - 中心线提取输入数据(含 lines 和 config)
|
|
5074
|
+
* @returns 中心线数组 number[][][] 或 null
|
|
5075
|
+
*/
|
|
5076
|
+
/**
|
|
5077
|
+
* Synchronous pattern matching (main thread).
|
|
5078
|
+
* @param inputJson - Full JSON string with pattern, entities, and options.
|
|
5079
|
+
* @returns Parsed match output or error.
|
|
5080
|
+
*/
|
|
5081
|
+
matchPatternSync(inputJson: string): {
|
|
5082
|
+
result: any;
|
|
5083
|
+
error?: string;
|
|
5084
|
+
};
|
|
5085
|
+
/**
|
|
5086
|
+
* Pattern matching with gzip-compressed input.
|
|
5087
|
+
* WASM decompresses internally, reducing memory transfer overhead.
|
|
5088
|
+
*/
|
|
5089
|
+
matchPatternGzipSync(compressedData: Uint8Array): {
|
|
5090
|
+
result: any;
|
|
5091
|
+
error?: string;
|
|
5092
|
+
};
|
|
5093
|
+
extractCenterlineSync(input: {
|
|
5094
|
+
lines: number[][][];
|
|
5095
|
+
config?: Record<string, any>;
|
|
5096
|
+
}): {
|
|
5097
|
+
centerlines: number[][][];
|
|
5098
|
+
error?: string;
|
|
5099
|
+
};
|
|
4993
5100
|
}
|
|
4994
5101
|
/**
|
|
4995
5102
|
* 获取DXF WASM服务实例(单例)
|
|
@@ -6220,6 +6327,43 @@ declare class PixelPointDrawer extends ParticleContainer {
|
|
|
6220
6327
|
destroy(options?: DestroyOptions): void;
|
|
6221
6328
|
}
|
|
6222
6329
|
|
|
6330
|
+
/**
|
|
6331
|
+
* @internal
|
|
6332
|
+
*/
|
|
6333
|
+
interface WideLineUpdateOptions {
|
|
6334
|
+
renderOrigin?: Point2D$1 | null;
|
|
6335
|
+
zoom?: number;
|
|
6336
|
+
}
|
|
6337
|
+
/**
|
|
6338
|
+
* Wide-line drawer using CPU-computed quads rendered via MeshSimple.
|
|
6339
|
+
*
|
|
6340
|
+
* Each line segment is expanded into a quad (2 triangles) on the CPU side.
|
|
6341
|
+
* The vertices and indices are submitted directly as a Mesh, completely
|
|
6342
|
+
* bypassing PixiJS Graphics triangulation (which was the performance bottleneck).
|
|
6343
|
+
*
|
|
6344
|
+
* One MeshSimple per color+alpha group, using Texture.WHITE + tint for colour.
|
|
6345
|
+
*
|
|
6346
|
+
* @internal
|
|
6347
|
+
*/
|
|
6348
|
+
declare class WideLineDrawer extends Container {
|
|
6349
|
+
private linesData;
|
|
6350
|
+
private arcsData;
|
|
6351
|
+
private totalSegments;
|
|
6352
|
+
private lastZoom;
|
|
6353
|
+
private _dirty;
|
|
6354
|
+
private _meshes;
|
|
6355
|
+
constructor();
|
|
6356
|
+
addLine(p0: Point2D$1, p1: Point2D$1, lwValue: number, color: number, alpha: number): void;
|
|
6357
|
+
addArcSegments(points: Point2D$1[], lwValue: number, color: number, alpha: number): void;
|
|
6358
|
+
update(options?: WideLineUpdateOptions): void;
|
|
6359
|
+
isDirty(): boolean;
|
|
6360
|
+
clear(): this;
|
|
6361
|
+
getLineCount(): number;
|
|
6362
|
+
getLastZoom(): number;
|
|
6363
|
+
destroy(options?: DestroyOptions): void;
|
|
6364
|
+
private _destroyMeshes;
|
|
6365
|
+
}
|
|
6366
|
+
|
|
6223
6367
|
/**
|
|
6224
6368
|
* 图元统计数据接口
|
|
6225
6369
|
*
|
|
@@ -6296,6 +6440,7 @@ declare class CadGraphics extends Graphics {
|
|
|
6296
6440
|
ellipseDrawer: EllipseDrawer;
|
|
6297
6441
|
lineDrawer: LineDrawer;
|
|
6298
6442
|
pixelPointDrawer: PixelPointDrawer | null;
|
|
6443
|
+
wideLineDrawer: WideLineDrawer | null;
|
|
6299
6444
|
_originalMoveTo: Function;
|
|
6300
6445
|
_originalLineTo: Function;
|
|
6301
6446
|
_originalArc: Function;
|
|
@@ -6449,6 +6594,28 @@ declare class CadGraphics extends Graphics {
|
|
|
6449
6594
|
* @param zoom - 可选的缩放级别,如果不提供则从 activeDocument 获取
|
|
6450
6595
|
*/
|
|
6451
6596
|
flushPixelPoints(renderOrigin?: Point2D$1 | null, zoom?: number): void;
|
|
6597
|
+
/**
|
|
6598
|
+
* Add a wide line segment to the WideLineDrawer (Mesh path).
|
|
6599
|
+
* Only called when SHOW_LINEWEIGHT is true and lineType is Continuous.
|
|
6600
|
+
* @param p0 - Start point (world coordinates)
|
|
6601
|
+
* @param p1 - End point (world coordinates)
|
|
6602
|
+
* @param lwValue - LineWeight in 0.01mm units
|
|
6603
|
+
* @param color - 0xRRGGBB colour
|
|
6604
|
+
* @param alpha - Opacity (0-1)
|
|
6605
|
+
*/
|
|
6606
|
+
drawWideLine(p0: Point2D$1, p1: Point2D$1, lwValue: number, color: number, alpha: number): void;
|
|
6607
|
+
/**
|
|
6608
|
+
* Add a sequence of connected wide-line segments (arcs, circles, ellipses).
|
|
6609
|
+
* @param points - Discretised points in world coordinates
|
|
6610
|
+
* @param lwValue - LineWeight in 0.01mm units
|
|
6611
|
+
* @param color - 0xRRGGBB colour
|
|
6612
|
+
* @param alpha - Opacity (0-1)
|
|
6613
|
+
*/
|
|
6614
|
+
drawWideArcSegments(points: Point2D$1[], lwValue: number, color: number, alpha: number): void;
|
|
6615
|
+
/**
|
|
6616
|
+
* Flush wide-line data to GPU. Call after all drawWideLine / drawWideArcSegments.
|
|
6617
|
+
*/
|
|
6618
|
+
flushWideLines(renderOrigin?: Point2D$1 | null, zoom?: number): void;
|
|
6452
6619
|
/**
|
|
6453
6620
|
* 重写 clear 方法,同时清除像素点
|
|
6454
6621
|
*/
|
|
@@ -6540,13 +6707,14 @@ declare class EntityRenderer {
|
|
|
6540
6707
|
x: number;
|
|
6541
6708
|
y: number;
|
|
6542
6709
|
} | null, tolerance?: number): boolean;
|
|
6543
|
-
drawArcToGraphics(arcEntity: ArcEnt, graphics: CadGraphics, color: number, alpha: number): void;
|
|
6710
|
+
drawArcToGraphics(arcEntity: ArcEnt, graphics: CadGraphics, color: number, alpha: number, useWideLine?: boolean, lwValue?: number): void;
|
|
6544
6711
|
angTrans(angle: number): number;
|
|
6545
|
-
drawCircleToGraphics(circleEntity: CircleEnt, graphics: CadGraphics, color: number, alpha: number): void;
|
|
6546
|
-
drawEllipseToGraphics(ellipseEntity: EllipseEnt, graphics: CadGraphics, color: number, alpha: number): void;
|
|
6547
|
-
drawRayToGraphics(rayEntity: RayEnt, graphics: CadGraphics, color: number, alpha: number): void;
|
|
6548
|
-
drawXlineToGraphics(xlineEntity: XLineEnt, graphics: CadGraphics, color: number, alpha: number): void;
|
|
6549
|
-
|
|
6712
|
+
drawCircleToGraphics(circleEntity: CircleEnt, graphics: CadGraphics, color: number, alpha: number, useWideLine?: boolean, lwValue?: number): void;
|
|
6713
|
+
drawEllipseToGraphics(ellipseEntity: EllipseEnt, graphics: CadGraphics, color: number, alpha: number, useWideLine?: boolean, lwValue?: number): void;
|
|
6714
|
+
drawRayToGraphics(rayEntity: RayEnt, graphics: CadGraphics, color: number, alpha: number, useWideLine?: boolean, lwValue?: number): void;
|
|
6715
|
+
drawXlineToGraphics(xlineEntity: XLineEnt, graphics: CadGraphics, color: number, alpha: number, useWideLine?: boolean, lwValue?: number): void;
|
|
6716
|
+
drawMeshToGraphics(meshEntity: MeshEnt, graphics: CadGraphics, color: number, alpha: number): void;
|
|
6717
|
+
drawLineToGraphics(lineEntity: LineEnt, graphics: CadGraphics, color: number, alpha: number, useWideLine?: boolean, lwValue?: number): void;
|
|
6550
6718
|
getDrawLineType(entity: EntityBase, parentLayerId?: string | null): string;
|
|
6551
6719
|
getDrawAlpha(entity: EntityBase, drawMode?: number): number;
|
|
6552
6720
|
/**
|
|
@@ -6557,7 +6725,7 @@ declare class EntityRenderer {
|
|
|
6557
6725
|
* @param color - 默认颜色
|
|
6558
6726
|
* @param alpha - 默认透明度
|
|
6559
6727
|
*/
|
|
6560
|
-
drawVectorText(textEntity: TextEnt | MTextEnt, graphics: CadGraphics, color: number, alpha: number): void;
|
|
6728
|
+
drawVectorText(textEntity: TextEnt | MTextEnt, graphics: CadGraphics, color: number, alpha: number, parentLayerId?: string | null): void;
|
|
6561
6729
|
/**
|
|
6562
6730
|
* 通过 WASM 渲染 TEXT / MTEXT,并返回与现有 drawVectorText 兼容的数据结构。
|
|
6563
6731
|
* - TEXT:返回简单多边形数组([{points:[...]}])
|
|
@@ -6947,6 +7115,13 @@ declare class BucketEntityRenderer extends EntityRenderer {
|
|
|
6947
7115
|
totalCapacity: number;
|
|
6948
7116
|
averageFragmentation: number;
|
|
6949
7117
|
} | null;
|
|
7118
|
+
/**
|
|
7119
|
+
* Mark all existing buckets as dirty so the next regenPartial redraws them.
|
|
7120
|
+
* Useful when a global parameter (e.g. renderOrigin) changes and every
|
|
7121
|
+
* bucket's vertex data must be regenerated, without tearing down the
|
|
7122
|
+
* bucket structure itself.
|
|
7123
|
+
*/
|
|
7124
|
+
markAllBucketsDirty(): void;
|
|
6950
7125
|
/**
|
|
6951
7126
|
* 清理桶管理器
|
|
6952
7127
|
*/
|
|
@@ -6962,6 +7137,15 @@ declare class BucketEntityRenderer extends EntityRenderer {
|
|
|
6962
7137
|
* @returns 是否需要更新
|
|
6963
7138
|
*/
|
|
6964
7139
|
needsPixelPointUpdate(currentZoom: number): boolean;
|
|
7140
|
+
/**
|
|
7141
|
+
* Update all bucket wide-line drawers when zoom changes.
|
|
7142
|
+
* Only rebuilds the lineWidth attribute buffer, not the full geometry.
|
|
7143
|
+
*/
|
|
7144
|
+
updateAllBucketWideLines(zoom?: number): void;
|
|
7145
|
+
/**
|
|
7146
|
+
* Check whether any bucket's wide-line drawer needs a zoom update.
|
|
7147
|
+
*/
|
|
7148
|
+
needsWideLineUpdate(currentZoom: number): boolean;
|
|
6965
7149
|
/**
|
|
6966
7150
|
* 销毁渲染器
|
|
6967
7151
|
*/
|
|
@@ -7562,6 +7746,33 @@ declare class ThemeButton extends LitElement {
|
|
|
7562
7746
|
toString(): any;
|
|
7563
7747
|
};
|
|
7564
7748
|
}
|
|
7749
|
+
/**
|
|
7750
|
+
* Language dropdown button – i18n globe icon with a dropdown menu listing all supported locales.
|
|
7751
|
+
*/
|
|
7752
|
+
declare class LanguageButton extends LitElement {
|
|
7753
|
+
static properties: {
|
|
7754
|
+
_open: {
|
|
7755
|
+
type: BooleanConstructor;
|
|
7756
|
+
state: boolean;
|
|
7757
|
+
};
|
|
7758
|
+
};
|
|
7759
|
+
_open: boolean;
|
|
7760
|
+
constructor();
|
|
7761
|
+
connectedCallback(): void;
|
|
7762
|
+
disconnectedCallback(): void;
|
|
7763
|
+
private _onDocClick;
|
|
7764
|
+
private _toggle;
|
|
7765
|
+
private _select;
|
|
7766
|
+
render(): {
|
|
7767
|
+
_$litType$: any;
|
|
7768
|
+
strings: any;
|
|
7769
|
+
values: any[];
|
|
7770
|
+
};
|
|
7771
|
+
static styles: {
|
|
7772
|
+
readonly styleSheet: any;
|
|
7773
|
+
toString(): any;
|
|
7774
|
+
};
|
|
7775
|
+
}
|
|
7565
7776
|
/**
|
|
7566
7777
|
* 功能按钮组类
|
|
7567
7778
|
*/
|
|
@@ -7817,6 +8028,10 @@ declare class MenuPanel extends LitElement {
|
|
|
7817
8028
|
* @returns 渲染结果
|
|
7818
8029
|
*/
|
|
7819
8030
|
private renderMenuItem;
|
|
8031
|
+
/**
|
|
8032
|
+
* 渲染带子菜单的菜单项
|
|
8033
|
+
*/
|
|
8034
|
+
private renderSubmenuItem;
|
|
7820
8035
|
/**
|
|
7821
8036
|
* 渲染方法
|
|
7822
8037
|
* @returns {*} 渲染结果
|
|
@@ -7856,6 +8071,18 @@ interface MainViewConfig {
|
|
|
7856
8071
|
appname?: string;
|
|
7857
8072
|
version?: string;
|
|
7858
8073
|
wasmServiceUrl?: string;
|
|
8074
|
+
/**
|
|
8075
|
+
* UI locale.
|
|
8076
|
+
*
|
|
8077
|
+
* Priority: this field > URL ?lang= > localStorage > navigator.language > zh-CN.
|
|
8078
|
+
* Supported: 'zh-CN', 'en-US'.
|
|
8079
|
+
*
|
|
8080
|
+
* @example
|
|
8081
|
+
* ```typescript
|
|
8082
|
+
* locale: 'en-US'
|
|
8083
|
+
* ```
|
|
8084
|
+
*/
|
|
8085
|
+
locale?: Locale;
|
|
7859
8086
|
serviceUrl?: string;
|
|
7860
8087
|
workspace?: string;
|
|
7861
8088
|
accessToken?: string;
|
|
@@ -8010,6 +8237,124 @@ interface MainViewConfig {
|
|
|
8010
8237
|
* 0=深色(默认),1=浅色。影响实体默认颜色等。
|
|
8011
8238
|
*/
|
|
8012
8239
|
themeMode?: number;
|
|
8240
|
+
/**
|
|
8241
|
+
* 选择实体时是否自动激活特性面板
|
|
8242
|
+
*
|
|
8243
|
+
* 默认 true。设为 false 时,选择实体后不会自动切换到特性面板,
|
|
8244
|
+
* 保持当前激活的面板不变。
|
|
8245
|
+
*
|
|
8246
|
+
* @example
|
|
8247
|
+
* ```typescript
|
|
8248
|
+
* // 禁用自动激活特性面板
|
|
8249
|
+
* const cadView = new MainView({
|
|
8250
|
+
* autoActivatePropertyPanel: false
|
|
8251
|
+
* });
|
|
8252
|
+
* ```
|
|
8253
|
+
*/
|
|
8254
|
+
autoActivatePropertyPanel?: boolean;
|
|
8255
|
+
/**
|
|
8256
|
+
* 排除自动激活特性面板的面板名称列表
|
|
8257
|
+
*
|
|
8258
|
+
* 当 autoActivatePropertyPanel 为 true 时,如果当前激活的面板在此列表中,
|
|
8259
|
+
* 则选择实体时不会自动切换到特性面板。
|
|
8260
|
+
*
|
|
8261
|
+
* 这允许在启用自动激活的同时,为特定面板(如 AI 面板)排除此行为。
|
|
8262
|
+
*
|
|
8263
|
+
* @example
|
|
8264
|
+
* ```typescript
|
|
8265
|
+
* // AI 面板激活时不切换,其他面板激活时自动切换到特性面板
|
|
8266
|
+
* const cadView = new MainView({
|
|
8267
|
+
* autoActivatePropertyPanel: true, // 默认启用自动切换
|
|
8268
|
+
* excludedPanelsFromAutoActivate: ["ai-assistant"] // AI 面板除外
|
|
8269
|
+
* });
|
|
8270
|
+
* ```
|
|
8271
|
+
*/
|
|
8272
|
+
excludedPanelsFromAutoActivate?: string[];
|
|
8273
|
+
/**
|
|
8274
|
+
* 左侧侧边栏面板列表
|
|
8275
|
+
*
|
|
8276
|
+
* 指定哪些内置面板显示在左侧侧边栏。
|
|
8277
|
+
* 可用的面板名称:
|
|
8278
|
+
* - "props" - 特性面板
|
|
8279
|
+
* - "blocks" - 块面板
|
|
8280
|
+
* - "images" - 图像面板
|
|
8281
|
+
* - "dsettings" - 捕捉设置面板
|
|
8282
|
+
* - "commands" - 命令列表面板
|
|
8283
|
+
* - "alias" - 命令别名面板
|
|
8284
|
+
*
|
|
8285
|
+
* 默认:["props", "blocks", "images"]
|
|
8286
|
+
*
|
|
8287
|
+
* @example
|
|
8288
|
+
* ```typescript
|
|
8289
|
+
* const cadView = new MainView({
|
|
8290
|
+
* leftPanels: ["props", "dsettings"],
|
|
8291
|
+
* rightPanels: ["blocks", "images", "commands", "alias"]
|
|
8292
|
+
* });
|
|
8293
|
+
* ```
|
|
8294
|
+
*/
|
|
8295
|
+
leftPanels?: string[];
|
|
8296
|
+
/**
|
|
8297
|
+
* 右侧侧边栏面板列表
|
|
8298
|
+
*
|
|
8299
|
+
* 指定哪些内置面板显示在右侧侧边栏。
|
|
8300
|
+
* 可用的面板名称同 leftPanels。
|
|
8301
|
+
*
|
|
8302
|
+
* 默认:["dsettings", "commands", "alias"]
|
|
8303
|
+
*/
|
|
8304
|
+
rightPanels?: string[];
|
|
8305
|
+
/**
|
|
8306
|
+
* 业务系统用户信息(用于协同编辑中区分用户和后台权限回调)
|
|
8307
|
+
*
|
|
8308
|
+
* 二次开发者通过此配置传入业务系统中的用户信息。
|
|
8309
|
+
* 如果设置了 userId,则协同编辑中将使用此用户身份替代默认的机器指纹ID。
|
|
8310
|
+
* 后端会将 userId 和 sessionId 传递给配置的权限回调接口进行鉴权。
|
|
8311
|
+
*
|
|
8312
|
+
* @example
|
|
8313
|
+
* ```typescript
|
|
8314
|
+
* const cadView = new MainView({
|
|
8315
|
+
* serviceUrl: "http://127.0.0.1:27660/api/v1",
|
|
8316
|
+
* userInfo: {
|
|
8317
|
+
* userId: "user_12345",
|
|
8318
|
+
* userName: "张三",
|
|
8319
|
+
* sessionId: "sess_abc123"
|
|
8320
|
+
* }
|
|
8321
|
+
* });
|
|
8322
|
+
* ```
|
|
8323
|
+
*/
|
|
8324
|
+
userInfo?: {
|
|
8325
|
+
/** 用户唯一标识(必填,用于协同编辑的用户区分和权限回调) */
|
|
8326
|
+
userId: string;
|
|
8327
|
+
/** 用户显示名称(选填,为空时显示 userId,用于协同编辑中的作者显示) */
|
|
8328
|
+
userName?: string;
|
|
8329
|
+
/** 会话ID(选填,用于业务系统会话验证,传递给权限回调接口) */
|
|
8330
|
+
sessionId?: string;
|
|
8331
|
+
};
|
|
8332
|
+
/**
|
|
8333
|
+
* 权限错误回调(当后台配置的业务系统权限校验失败时触发)
|
|
8334
|
+
*
|
|
8335
|
+
* 二次开发者可以在此回调中处理不同的错误场景:
|
|
8336
|
+
* - errorCode 为 "session_expired" 时,可跳转到登录页
|
|
8337
|
+
* - errorCode 为 "no_permission" 时,可提示用户无权限
|
|
8338
|
+
* - 其他业务自定义错误码
|
|
8339
|
+
*
|
|
8340
|
+
* @example
|
|
8341
|
+
* ```typescript
|
|
8342
|
+
* const cadView = new MainView({
|
|
8343
|
+
* onAuthError: (error) => {
|
|
8344
|
+
* if (error.errorCode === 'session_expired') {
|
|
8345
|
+
* window.location.href = '/login';
|
|
8346
|
+
* } else {
|
|
8347
|
+
* alert(error.message);
|
|
8348
|
+
* }
|
|
8349
|
+
* }
|
|
8350
|
+
* });
|
|
8351
|
+
* ```
|
|
8352
|
+
*/
|
|
8353
|
+
onAuthError?: (error: {
|
|
8354
|
+
errorCode: string;
|
|
8355
|
+
message: string;
|
|
8356
|
+
operation: string;
|
|
8357
|
+
}) => void;
|
|
8013
8358
|
}
|
|
8014
8359
|
/**
|
|
8015
8360
|
* 主视图类 - 使用 Lit 官方推荐的静态属性写法
|
|
@@ -8071,6 +8416,10 @@ declare class MainView extends LitElement {
|
|
|
8071
8416
|
showBottomBarConfig?: boolean;
|
|
8072
8417
|
enableContextMenuConfig?: boolean;
|
|
8073
8418
|
showGripsConfig?: boolean;
|
|
8419
|
+
autoActivatePropertyPanelConfig?: boolean;
|
|
8420
|
+
excludedPanelsFromAutoActivateConfig?: string[];
|
|
8421
|
+
leftPanelsConfig?: string[];
|
|
8422
|
+
rightPanelsConfig?: string[];
|
|
8074
8423
|
showUcsIconConfig?: boolean;
|
|
8075
8424
|
showAxisConfig?: boolean;
|
|
8076
8425
|
backgroundAlphaConfig?: number;
|
|
@@ -8090,6 +8439,37 @@ declare class MainView extends LitElement {
|
|
|
8090
8439
|
* @param {boolean} config.closeDocOnOpen - 打开图纸时是否关闭当前文档(默认true)
|
|
8091
8440
|
*/
|
|
8092
8441
|
constructor(config?: MainViewConfig);
|
|
8442
|
+
/** 权限错误回调(内部存储) */
|
|
8443
|
+
private _onAuthError?;
|
|
8444
|
+
/**
|
|
8445
|
+
* 更新业务系统用户信息(运行时)
|
|
8446
|
+
*
|
|
8447
|
+
* 用于会话续期、用户切换等场景,无需重新创建 MainView 实例。
|
|
8448
|
+
*
|
|
8449
|
+
* @param userInfo - 新的用户信息
|
|
8450
|
+
* @example
|
|
8451
|
+
* ```typescript
|
|
8452
|
+
* // 会话续期后更新 sessionId
|
|
8453
|
+
* cadView.updateUserInfo({
|
|
8454
|
+
* userId: "user_12345",
|
|
8455
|
+
* userName: "张三",
|
|
8456
|
+
* sessionId: "new_sess_def456"
|
|
8457
|
+
* });
|
|
8458
|
+
* ```
|
|
8459
|
+
*/
|
|
8460
|
+
updateUserInfo(userInfo: {
|
|
8461
|
+
userId: string;
|
|
8462
|
+
userName?: string;
|
|
8463
|
+
sessionId?: string;
|
|
8464
|
+
}): void;
|
|
8465
|
+
/**
|
|
8466
|
+
* 获取权限错误回调函数(供内部模块调用)
|
|
8467
|
+
*/
|
|
8468
|
+
getOnAuthError(): ((error: {
|
|
8469
|
+
errorCode: string;
|
|
8470
|
+
message: string;
|
|
8471
|
+
operation: string;
|
|
8472
|
+
}) => void) | undefined;
|
|
8093
8473
|
/**
|
|
8094
8474
|
* 从 serviceUrl 提取服务根目录地址
|
|
8095
8475
|
* 例如:http://127.0.0.1:27660/api/v1 -> http://127.0.0.1:27660/
|
|
@@ -8213,7 +8593,13 @@ declare class MainView extends LitElement {
|
|
|
8213
8593
|
READONLY: string;
|
|
8214
8594
|
/** 是否以瓦片方式打开,可选,默认 false */
|
|
8215
8595
|
TILE: string;
|
|
8596
|
+
/** 初始化后要激活的侧边栏面板名称,可选 */
|
|
8597
|
+
PANEL: string;
|
|
8216
8598
|
};
|
|
8599
|
+
/**
|
|
8600
|
+
* 根据 URL 参数激活指定的侧边栏面板
|
|
8601
|
+
*/
|
|
8602
|
+
private activatePanelFromUrlParams;
|
|
8217
8603
|
/**
|
|
8218
8604
|
* 从 URL 解析图纸打开参数
|
|
8219
8605
|
* @returns 解析后的参数对象,如果没有 mapid 则返回 null
|
|
@@ -11302,6 +11688,157 @@ declare class PointPrompt {
|
|
|
11302
11688
|
getPoint(t: PointInputOptions): Promise<InputResult>;
|
|
11303
11689
|
}
|
|
11304
11690
|
|
|
11691
|
+
/**
|
|
11692
|
+
* 指针类型
|
|
11693
|
+
*/
|
|
11694
|
+
type PointerType = 'mouse' | 'touch' | 'pen';
|
|
11695
|
+
/**
|
|
11696
|
+
* 手势类型
|
|
11697
|
+
*/
|
|
11698
|
+
type GestureType = 'none' | 'tap' | 'pan' | 'pinch';
|
|
11699
|
+
/**
|
|
11700
|
+
* 指针信息
|
|
11701
|
+
*/
|
|
11702
|
+
interface PointerInfo {
|
|
11703
|
+
/** 指针 ID */
|
|
11704
|
+
id: number;
|
|
11705
|
+
/** 指针类型 */
|
|
11706
|
+
type: PointerType;
|
|
11707
|
+
/** 当前位置(画布坐标) */
|
|
11708
|
+
position: Point2D$1;
|
|
11709
|
+
/** 起始位置(画布坐标) */
|
|
11710
|
+
startPosition: Point2D$1;
|
|
11711
|
+
/** 按钮状态 (0=左, 1=中, 2=右) */
|
|
11712
|
+
button: number;
|
|
11713
|
+
/** 是否为主指针 */
|
|
11714
|
+
isPrimary: boolean;
|
|
11715
|
+
/** 按下时间戳 */
|
|
11716
|
+
startTime: number;
|
|
11717
|
+
}
|
|
11718
|
+
/**
|
|
11719
|
+
* 手势状态
|
|
11720
|
+
*/
|
|
11721
|
+
interface GestureState {
|
|
11722
|
+
/** 手势类型 */
|
|
11723
|
+
type: GestureType;
|
|
11724
|
+
/** 活跃指针数量 */
|
|
11725
|
+
pointerCount: number;
|
|
11726
|
+
/** 双指起始距离 */
|
|
11727
|
+
startDistance?: number;
|
|
11728
|
+
/** 双指当前距离 */
|
|
11729
|
+
currentDistance?: number;
|
|
11730
|
+
/** 双指起始中心点 */
|
|
11731
|
+
startCenter?: Point2D$1;
|
|
11732
|
+
/** 双指当前中心点 */
|
|
11733
|
+
currentCenter?: Point2D$1;
|
|
11734
|
+
/** 缩放比例 (currentDistance / startDistance) */
|
|
11735
|
+
scale?: number;
|
|
11736
|
+
}
|
|
11737
|
+
/**
|
|
11738
|
+
* 点击判定配置
|
|
11739
|
+
*/
|
|
11740
|
+
interface TapConfig {
|
|
11741
|
+
/** 最大移动距离(像素) */
|
|
11742
|
+
maxDistance: number;
|
|
11743
|
+
/** 最大持续时间(毫秒) */
|
|
11744
|
+
maxDuration: number;
|
|
11745
|
+
}
|
|
11746
|
+
/**
|
|
11747
|
+
* 指针事件管理器
|
|
11748
|
+
*
|
|
11749
|
+
* 功能:
|
|
11750
|
+
* - 统一处理鼠标、触摸、触控笔
|
|
11751
|
+
* - 多点追踪
|
|
11752
|
+
* - 手势识别(点击、平移、捏合缩放)
|
|
11753
|
+
*/
|
|
11754
|
+
declare class PointerEventManager {
|
|
11755
|
+
/** 活跃指针映射 */
|
|
11756
|
+
private _pointers;
|
|
11757
|
+
/** 点击判定配置 */
|
|
11758
|
+
private _tapConfig;
|
|
11759
|
+
/** 双指起始距离(用于捏合缩放) */
|
|
11760
|
+
private _pinchStartDistance;
|
|
11761
|
+
/** 双指起始中心点 */
|
|
11762
|
+
private _pinchStartCenter;
|
|
11763
|
+
/**
|
|
11764
|
+
* 获取所有活跃指针
|
|
11765
|
+
*/
|
|
11766
|
+
get pointers(): Map<number, PointerInfo>;
|
|
11767
|
+
/**
|
|
11768
|
+
* 获取活跃指针数量
|
|
11769
|
+
*/
|
|
11770
|
+
get pointerCount(): number;
|
|
11771
|
+
/**
|
|
11772
|
+
* 获取主指针
|
|
11773
|
+
*/
|
|
11774
|
+
get primaryPointer(): PointerInfo | undefined;
|
|
11775
|
+
/**
|
|
11776
|
+
* 设置点击判定配置
|
|
11777
|
+
*/
|
|
11778
|
+
setTapConfig(config: Partial<TapConfig>): void;
|
|
11779
|
+
/**
|
|
11780
|
+
* 添加指针(pointerdown 时调用)
|
|
11781
|
+
*/
|
|
11782
|
+
addPointer(event: PointerEvent): PointerInfo;
|
|
11783
|
+
/**
|
|
11784
|
+
* 更新指针位置(pointermove 时调用)
|
|
11785
|
+
*/
|
|
11786
|
+
updatePointer(event: PointerEvent): PointerInfo | undefined;
|
|
11787
|
+
/**
|
|
11788
|
+
* 移除指针(pointerup/pointercancel 时调用)
|
|
11789
|
+
*/
|
|
11790
|
+
removePointer(event: PointerEvent): PointerInfo | undefined;
|
|
11791
|
+
/**
|
|
11792
|
+
* 清除所有指针
|
|
11793
|
+
*/
|
|
11794
|
+
clear(): void;
|
|
11795
|
+
/**
|
|
11796
|
+
* 检测当前手势
|
|
11797
|
+
*/
|
|
11798
|
+
detectGesture(): GestureState;
|
|
11799
|
+
/**
|
|
11800
|
+
* 判断是否为点击(在 pointerup 时调用)
|
|
11801
|
+
*/
|
|
11802
|
+
isTap(event: PointerEvent): boolean;
|
|
11803
|
+
/**
|
|
11804
|
+
* 获取指定 ID 的指针
|
|
11805
|
+
*/
|
|
11806
|
+
getPointer(pointerId: number): PointerInfo | undefined;
|
|
11807
|
+
/**
|
|
11808
|
+
* 检查是否有触摸指针
|
|
11809
|
+
*/
|
|
11810
|
+
hasTouchPointer(): boolean;
|
|
11811
|
+
/**
|
|
11812
|
+
* 获取所有触摸指针
|
|
11813
|
+
*/
|
|
11814
|
+
getTouchPointers(): PointerInfo[];
|
|
11815
|
+
/**
|
|
11816
|
+
* 将 PointerEvent 转换为类似 MouseEvent 的对象
|
|
11817
|
+
* 用于兼容现有代码
|
|
11818
|
+
*/
|
|
11819
|
+
static toMouseEventLike(event: PointerEvent): {
|
|
11820
|
+
button: number;
|
|
11821
|
+
offsetX: number;
|
|
11822
|
+
offsetY: number;
|
|
11823
|
+
clientX: number;
|
|
11824
|
+
clientY: number;
|
|
11825
|
+
shiftKey: boolean;
|
|
11826
|
+
ctrlKey: boolean;
|
|
11827
|
+
altKey: boolean;
|
|
11828
|
+
metaKey: boolean;
|
|
11829
|
+
preventDefault: () => void;
|
|
11830
|
+
stopPropagation: () => void;
|
|
11831
|
+
};
|
|
11832
|
+
/**
|
|
11833
|
+
* 更新双指起始状态
|
|
11834
|
+
*/
|
|
11835
|
+
private _updatePinchStart;
|
|
11836
|
+
}
|
|
11837
|
+
/**
|
|
11838
|
+
* 检查浏览器是否支持 Pointer Events API
|
|
11839
|
+
*/
|
|
11840
|
+
declare function supportsPointerEvents(): boolean;
|
|
11841
|
+
|
|
11305
11842
|
/**
|
|
11306
11843
|
* 实数输入处理类
|
|
11307
11844
|
*/
|
|
@@ -11598,6 +12135,12 @@ declare class Editor {
|
|
|
11598
12135
|
keyup_callback: (keyEvent: KeyboardEvent) => void;
|
|
11599
12136
|
dblclick_callback: (mouseEvent: MouseEvent) => Promise<void>;
|
|
11600
12137
|
mousedown_callback: (mouseEvent: MouseEvent) => Promise<void>;
|
|
12138
|
+
pointerdown_callback: (event: PointerEvent) => Promise<void>;
|
|
12139
|
+
private lastTouchTime;
|
|
12140
|
+
private lastTouchX;
|
|
12141
|
+
private lastTouchY;
|
|
12142
|
+
private readonly DOUBLE_TAP_THRESHOLD;
|
|
12143
|
+
private readonly DOUBLE_TAP_DISTANCE;
|
|
11601
12144
|
/**
|
|
11602
12145
|
* 构造函数
|
|
11603
12146
|
* @param view - 视图对象
|
|
@@ -11684,6 +12227,12 @@ declare class Editor {
|
|
|
11684
12227
|
dsettingsPaletteActive(): void;
|
|
11685
12228
|
/**
|
|
11686
12229
|
* 激活属性调色板
|
|
12230
|
+
*
|
|
12231
|
+
* 根据 SystemConstants.AUTO_ACTIVATE_PROPERTY_PANEL 配置决定是否激活。
|
|
12232
|
+
* 如果配置为 false,则不自动激活属性面板。
|
|
12233
|
+
*
|
|
12234
|
+
* 另外,如果当前激活的面板在 EXCLUDED_PANELS_FROM_AUTO_ACTIVATE 列表中,
|
|
12235
|
+
* 也不会自动激活属性面板(即使 AUTO_ACTIVATE_PROPERTY_PANEL 为 true)。
|
|
11687
12236
|
*/
|
|
11688
12237
|
propertyPaletteActive(): Promise<void>;
|
|
11689
12238
|
/**
|
|
@@ -11955,6 +12504,12 @@ declare class Layer {
|
|
|
11955
12504
|
* @public
|
|
11956
12505
|
*/
|
|
11957
12506
|
set isFrozen(value: boolean);
|
|
12507
|
+
/**
|
|
12508
|
+
* 冻结状态别名(兼容性)
|
|
12509
|
+
* @alias isFrozen
|
|
12510
|
+
*/
|
|
12511
|
+
get frozen(): boolean;
|
|
12512
|
+
set frozen(value: boolean);
|
|
11958
12513
|
/**
|
|
11959
12514
|
* 构造函数
|
|
11960
12515
|
* @param layerName - 图层名称,默认为"0"
|
|
@@ -12270,6 +12825,19 @@ declare class EntityLayerUndoCommand extends UndoCommandBase {
|
|
|
12270
12825
|
pushRedo(): number;
|
|
12271
12826
|
}
|
|
12272
12827
|
|
|
12828
|
+
/**
|
|
12829
|
+
* DXF 60 entity visibility undo command.
|
|
12830
|
+
* Saves and restores the visible state of a set of entities.
|
|
12831
|
+
*/
|
|
12832
|
+
declare class EntityVisibilityUndoCommand extends UndoCommandBase {
|
|
12833
|
+
ents: any[];
|
|
12834
|
+
oldValues: boolean[];
|
|
12835
|
+
newValues: boolean[] | null;
|
|
12836
|
+
constructor(entities: any[]);
|
|
12837
|
+
popUndo(): number;
|
|
12838
|
+
pushRedo(): number;
|
|
12839
|
+
}
|
|
12840
|
+
|
|
12273
12841
|
/**
|
|
12274
12842
|
* 实体线型比例修改撤销命令类
|
|
12275
12843
|
* 用于撤销实体线型比例的修改操作
|
|
@@ -13285,6 +13853,11 @@ declare class UndoManager {
|
|
|
13285
13853
|
* @param {EntityBase[]} entities - 实体数组
|
|
13286
13854
|
*/
|
|
13287
13855
|
entLayer_undoMark(entities: EntityBase[]): void;
|
|
13856
|
+
/**
|
|
13857
|
+
* 实体可见性撤销标记 (DXF 60)
|
|
13858
|
+
* @param {EntityBase[]} entities - 实体数组
|
|
13859
|
+
*/
|
|
13860
|
+
entVisibility_undoMark(entities: EntityBase[]): void;
|
|
13288
13861
|
/**
|
|
13289
13862
|
* 实体颜色索引撤销标记
|
|
13290
13863
|
* @param {EntityBase[]} entities - 实体数组
|
|
@@ -14940,6 +15513,10 @@ interface IListWebcadDrawsResponse {
|
|
|
14940
15513
|
imports: IWebcadDrawInfo[];
|
|
14941
15514
|
/** 用户自绘的图纸列表 */
|
|
14942
15515
|
designs: IWebcadDrawInfo[];
|
|
15516
|
+
/** 错误信息 */
|
|
15517
|
+
error?: string;
|
|
15518
|
+
/** 业务权限回调返回的错误码(如 "session_expired"、"no_permission" 等) */
|
|
15519
|
+
errorCode?: string;
|
|
14943
15520
|
}
|
|
14944
15521
|
/**
|
|
14945
15522
|
* 获取 WebCAD 数据参数
|
|
@@ -14983,6 +15560,8 @@ interface IGetWebcadDataResponse {
|
|
|
14983
15560
|
status: boolean;
|
|
14984
15561
|
/** 错误信息 */
|
|
14985
15562
|
error?: string;
|
|
15563
|
+
/** 业务权限回调返回的错误码(如 "session_expired"、"no_permission" 等) */
|
|
15564
|
+
errorCode?: string;
|
|
14986
15565
|
/** vcad 二进制数据 (ArrayBuffer,压缩格式) */
|
|
14987
15566
|
vcadData?: ArrayBuffer;
|
|
14988
15567
|
/** 当前请求的 Patch ID */
|
|
@@ -15118,6 +15697,8 @@ interface ISaveWebcadPatchResponse {
|
|
|
15118
15697
|
isNew?: boolean;
|
|
15119
15698
|
/** 错误信息 */
|
|
15120
15699
|
error?: string;
|
|
15700
|
+
/** 业务权限回调返回的错误码(如 "session_expired"、"no_permission" 等) */
|
|
15701
|
+
errorCode?: string;
|
|
15121
15702
|
/**
|
|
15122
15703
|
* ID 重映射信息
|
|
15123
15704
|
* 格式: { oldId: newId }
|
|
@@ -15170,6 +15751,8 @@ interface IDeleteWebcadDrawResponse {
|
|
|
15170
15751
|
status: boolean;
|
|
15171
15752
|
/** 错误信息 */
|
|
15172
15753
|
error?: string;
|
|
15754
|
+
/** 业务权限回调返回的错误码(如 "session_expired"、"no_permission" 等) */
|
|
15755
|
+
errorCode?: string;
|
|
15173
15756
|
/** 被删除的 Patch ID(仅当指定 patchId 时返回) */
|
|
15174
15757
|
deletedPatchId?: string;
|
|
15175
15758
|
/** 分支名称 */
|
|
@@ -15206,6 +15789,8 @@ interface ICreateBranchResponse {
|
|
|
15206
15789
|
status: boolean;
|
|
15207
15790
|
/** 错误信息 */
|
|
15208
15791
|
error?: string;
|
|
15792
|
+
/** 业务权限回调返回的错误码(如 "session_expired"、"no_permission" 等) */
|
|
15793
|
+
errorCode?: string;
|
|
15209
15794
|
/** 新创建的分支名称 */
|
|
15210
15795
|
branchName?: string;
|
|
15211
15796
|
}
|
|
@@ -15232,6 +15817,8 @@ interface IDeleteBranchResponse {
|
|
|
15232
15817
|
status: boolean;
|
|
15233
15818
|
/** 错误信息 */
|
|
15234
15819
|
error?: string;
|
|
15820
|
+
/** 业务权限回调返回的错误码(如 "session_expired"、"no_permission" 等) */
|
|
15821
|
+
errorCode?: string;
|
|
15235
15822
|
/** 被删除的分支名称 */
|
|
15236
15823
|
deletedBranch?: string;
|
|
15237
15824
|
}
|
|
@@ -15272,6 +15859,8 @@ interface IMergeBranchResponse {
|
|
|
15272
15859
|
status: boolean;
|
|
15273
15860
|
/** 错误信息 */
|
|
15274
15861
|
error?: string;
|
|
15862
|
+
/** 业务权限回调返回的错误码(如 "session_expired"、"no_permission" 等) */
|
|
15863
|
+
errorCode?: string;
|
|
15275
15864
|
/** 新创建的 Patch ID */
|
|
15276
15865
|
patchId?: string;
|
|
15277
15866
|
/** 目标分支名称 */
|
|
@@ -15284,6 +15873,10 @@ interface IMergeBranchResponse {
|
|
|
15284
15873
|
hasConflict: boolean;
|
|
15285
15874
|
/** 冲突的实体详细信息列表 */
|
|
15286
15875
|
conflictingEntities: IConflictEntityInfo[];
|
|
15876
|
+
/** 冲突的图层详细信息列表 */
|
|
15877
|
+
conflictingLayers?: IConflictLayerInfo[];
|
|
15878
|
+
/** 最新的 Patch ID */
|
|
15879
|
+
latestPatchId?: string;
|
|
15287
15880
|
/** 源分支名称 */
|
|
15288
15881
|
sourceBranch: string;
|
|
15289
15882
|
/** 目标分支名称 */
|
|
@@ -16188,6 +16781,26 @@ declare class Service {
|
|
|
16188
16781
|
fourParameterAfter?: string;
|
|
16189
16782
|
srs?: string;
|
|
16190
16783
|
}): string;
|
|
16784
|
+
/**
|
|
16785
|
+
* Generate a WMS-style URL for internet map tiles given a CAD bbox.
|
|
16786
|
+
* The server converts CAD coordinates to WGS84 and fetches internet map tiles.
|
|
16787
|
+
* @param param tile request parameters
|
|
16788
|
+
* @return {string} full request URL (bbox will be filled per-tile)
|
|
16789
|
+
*/
|
|
16790
|
+
webMapWmsUrl(param: {
|
|
16791
|
+
bbox: string;
|
|
16792
|
+
width?: number;
|
|
16793
|
+
height?: number;
|
|
16794
|
+
srs?: string;
|
|
16795
|
+
fourParameterBefore?: string;
|
|
16796
|
+
tileCrs: "gcj02" | "wgs84";
|
|
16797
|
+
tileUrl: string | string[];
|
|
16798
|
+
tileSize?: number;
|
|
16799
|
+
tileMaxZoom?: number;
|
|
16800
|
+
tileShards?: string;
|
|
16801
|
+
tileToken?: string | string[];
|
|
16802
|
+
tileFlipY?: boolean;
|
|
16803
|
+
}): string;
|
|
16191
16804
|
/**
|
|
16192
16805
|
* 组合成新地图
|
|
16193
16806
|
* @param param 组合参数
|
|
@@ -16574,6 +17187,8 @@ interface IEntityReactor {
|
|
|
16574
17187
|
* @returns 是否成功注册
|
|
16575
17188
|
*/
|
|
16576
17189
|
tryRegisterReactor(docId: number): boolean;
|
|
17190
|
+
/** 允许反应器子类添加自定义属性 */
|
|
17191
|
+
[key: string]: any;
|
|
16577
17192
|
}
|
|
16578
17193
|
/**
|
|
16579
17194
|
* 反应器关系数据(用于序列化)
|
|
@@ -17247,6 +17862,113 @@ declare function createCancellableEventArgs(): Pick<CancellableEventArgs, 'times
|
|
|
17247
17862
|
*/
|
|
17248
17863
|
declare function createEventArgs(): Pick<CadEventArgs, 'timestamp'>;
|
|
17249
17864
|
|
|
17865
|
+
/**
|
|
17866
|
+
* Internet map tile layer configuration
|
|
17867
|
+
*/
|
|
17868
|
+
interface WebMapTileConfig {
|
|
17869
|
+
/** Internet map coordinate type: gcj02 (Gaode) or wgs84 (Tianditu) */
|
|
17870
|
+
tileCrs: "gcj02" | "wgs84";
|
|
17871
|
+
/** Tile URL template(s) for the internet map provider */
|
|
17872
|
+
tileUrl: string | string[];
|
|
17873
|
+
/** Tile pixel size, default 256 */
|
|
17874
|
+
tileSize?: number;
|
|
17875
|
+
/** Max zoom level of the internet map, default 18 */
|
|
17876
|
+
tileMaxZoom?: number;
|
|
17877
|
+
/** Tile retina factor */
|
|
17878
|
+
tileRetina?: number;
|
|
17879
|
+
/** Shard placeholder values (comma-separated) */
|
|
17880
|
+
tileShards?: string;
|
|
17881
|
+
/** Token(s) for tile providers like Tianditu */
|
|
17882
|
+
tileToken?: string | string[];
|
|
17883
|
+
/** Whether to flip Y axis */
|
|
17884
|
+
tileFlipY?: boolean;
|
|
17885
|
+
/** CAD map bounds string "minx,miny,maxx,maxy" */
|
|
17886
|
+
mapbounds: string;
|
|
17887
|
+
/** CAD EPSG code for auto-overlay mode (e.g. "EPSG:4509") */
|
|
17888
|
+
srs?: string;
|
|
17889
|
+
/** Four parameter transform before coordinate conversion */
|
|
17890
|
+
fourParameterBefore?: string;
|
|
17891
|
+
/** Four parameter transform after coordinate conversion */
|
|
17892
|
+
fourParameterAfter?: string;
|
|
17893
|
+
/** Preload buffer in tiles, default 1 */
|
|
17894
|
+
preloadBuffer?: number;
|
|
17895
|
+
/** Max concurrent tile requests, default 6 */
|
|
17896
|
+
maxConcurrent?: number;
|
|
17897
|
+
/** LRU cache size (number of textures), default 200 */
|
|
17898
|
+
cacheSize?: number;
|
|
17899
|
+
}
|
|
17900
|
+
declare class WebMapTileLayer {
|
|
17901
|
+
private _container;
|
|
17902
|
+
private _currentContainer;
|
|
17903
|
+
private _transitionContainer;
|
|
17904
|
+
private _tiles;
|
|
17905
|
+
private _transitionTiles;
|
|
17906
|
+
private _calculator;
|
|
17907
|
+
private _scheduler;
|
|
17908
|
+
private _cache;
|
|
17909
|
+
private _service;
|
|
17910
|
+
private _config;
|
|
17911
|
+
private _currentZoomLevel;
|
|
17912
|
+
private _lastViewBounds;
|
|
17913
|
+
private _initialized;
|
|
17914
|
+
private _enabled;
|
|
17915
|
+
private _transitionTimer;
|
|
17916
|
+
private _pendingKeys;
|
|
17917
|
+
private _neededKeys;
|
|
17918
|
+
private _onTileLoaded;
|
|
17919
|
+
constructor(service: Service, container: Container, config: WebMapTileConfig, onTileLoaded?: () => void);
|
|
17920
|
+
get container(): Container;
|
|
17921
|
+
get alpha(): number;
|
|
17922
|
+
set alpha(value: number);
|
|
17923
|
+
get visible(): boolean;
|
|
17924
|
+
set visible(value: boolean);
|
|
17925
|
+
get enabled(): boolean;
|
|
17926
|
+
set enabled(value: boolean);
|
|
17927
|
+
get config(): Readonly<WebMapTileConfig>;
|
|
17928
|
+
get currentZoomLevel(): number;
|
|
17929
|
+
get tileCount(): number;
|
|
17930
|
+
update(lookPt: Point2D$1, zoom: number, viewBounds: BoundingBox): void;
|
|
17931
|
+
clear(): void;
|
|
17932
|
+
destroy(): void;
|
|
17933
|
+
refresh(): void;
|
|
17934
|
+
getStatus(): {
|
|
17935
|
+
enabled: boolean;
|
|
17936
|
+
tileCount: number;
|
|
17937
|
+
zoomLevel: number;
|
|
17938
|
+
cacheSize: number;
|
|
17939
|
+
queueLength: number;
|
|
17940
|
+
loadingCount: number;
|
|
17941
|
+
};
|
|
17942
|
+
/**
|
|
17943
|
+
* Build tile URL using the /map/tile/webmap WMS bbox endpoint.
|
|
17944
|
+
* Sends CAD WCS bbox to the server which converts to WGS84 via
|
|
17945
|
+
* proj4 (srs) or four-parameter transform and returns internet map tiles.
|
|
17946
|
+
*/
|
|
17947
|
+
private buildTileUrl;
|
|
17948
|
+
private addTileSprite;
|
|
17949
|
+
private positionTileSprite;
|
|
17950
|
+
private removeOutOfViewTiles;
|
|
17951
|
+
private removeTileSprite;
|
|
17952
|
+
private clearSprites;
|
|
17953
|
+
/**
|
|
17954
|
+
* Move current tiles to transition layer as zoom placeholders.
|
|
17955
|
+
* Old transition tiles are replaced by current tiles; if current
|
|
17956
|
+
* layer is empty, keep existing transition tiles as-is.
|
|
17957
|
+
*/
|
|
17958
|
+
private moveCurrentToTransition;
|
|
17959
|
+
private clearTransitionTiles;
|
|
17960
|
+
private startTransitionSafetyTimer;
|
|
17961
|
+
private cancelTransitionSafetyTimer;
|
|
17962
|
+
/**
|
|
17963
|
+
* Transition tiles are kept as placeholders until ALL new tiles finish
|
|
17964
|
+
* loading. This prevents any intermediate gaps / flicker during zoom.
|
|
17965
|
+
*/
|
|
17966
|
+
private checkTransitionComplete;
|
|
17967
|
+
private cleanInvalidSprites;
|
|
17968
|
+
private cleanInvalidInMap;
|
|
17969
|
+
private boundsIntersect;
|
|
17970
|
+
}
|
|
17971
|
+
|
|
17250
17972
|
/**
|
|
17251
17973
|
* 实体操作选项
|
|
17252
17974
|
* 用于控制实体增删操作的行为
|
|
@@ -18303,6 +19025,29 @@ declare class Engine {
|
|
|
18303
19025
|
* @internal
|
|
18304
19026
|
*/
|
|
18305
19027
|
private static pointToLineSegmentDistanceWithT;
|
|
19028
|
+
/**
|
|
19029
|
+
* Enable internet web map overlay (e.g. Gaode satellite, Tianditu).
|
|
19030
|
+
* @param config - Web map tile layer configuration
|
|
19031
|
+
* @public
|
|
19032
|
+
*/
|
|
19033
|
+
static enableWebMap(config: WebMapTileConfig): void;
|
|
19034
|
+
/**
|
|
19035
|
+
* Disable and remove internet web map overlay.
|
|
19036
|
+
* @public
|
|
19037
|
+
*/
|
|
19038
|
+
static disableWebMap(): void;
|
|
19039
|
+
/**
|
|
19040
|
+
* Set the opacity of internet web map overlay.
|
|
19041
|
+
* @param alpha - Opacity value (0 = fully transparent, 1 = fully opaque)
|
|
19042
|
+
* @public
|
|
19043
|
+
*/
|
|
19044
|
+
static setWebMapAlpha(alpha: number): void;
|
|
19045
|
+
/**
|
|
19046
|
+
* Check whether internet web map overlay is enabled.
|
|
19047
|
+
* @returns true if an internet web map layer is active
|
|
19048
|
+
* @public
|
|
19049
|
+
*/
|
|
19050
|
+
static isWebMapEnabled(): boolean;
|
|
18306
19051
|
}
|
|
18307
19052
|
/**
|
|
18308
19053
|
* 刷新剩余模型实体
|
|
@@ -18771,9 +19516,6 @@ declare function createDynamicMenuPanel(menuId: string): DynamicMenuPanel;
|
|
|
18771
19516
|
* 创建菜单面板类(合并基础绘图和高级绘图,双列显示)
|
|
18772
19517
|
*/
|
|
18773
19518
|
declare class CreateMenu extends MenuPanel {
|
|
18774
|
-
/**
|
|
18775
|
-
* 构造函数
|
|
18776
|
-
*/
|
|
18777
19519
|
constructor();
|
|
18778
19520
|
}
|
|
18779
19521
|
/**
|
|
@@ -18980,7 +19722,7 @@ declare class MenuBar extends LitElement {
|
|
|
18980
19722
|
* 设置主题
|
|
18981
19723
|
* @param {string} t - 主题名称
|
|
18982
19724
|
*/
|
|
18983
|
-
setTheme(
|
|
19725
|
+
setTheme(theme: string): void;
|
|
18984
19726
|
/**
|
|
18985
19727
|
* 渲染方法
|
|
18986
19728
|
* @returns {*} 渲染结果
|
|
@@ -19528,27 +20270,44 @@ declare class SidePalettes {
|
|
|
19528
20270
|
*/
|
|
19529
20271
|
init(): Promise<void>;
|
|
19530
20272
|
/**
|
|
19531
|
-
*
|
|
20273
|
+
* 面板名称到实例的映射
|
|
20274
|
+
* @private
|
|
20275
|
+
*/
|
|
20276
|
+
private getPanelByName;
|
|
20277
|
+
/**
|
|
20278
|
+
* 获取左侧面板(内置面板)
|
|
20279
|
+
* 根据 SystemConstants.LEFT_PANELS 配置返回面板
|
|
19532
20280
|
* @returns {Array} 左侧面板数组
|
|
19533
20281
|
*/
|
|
19534
20282
|
get leftPalettes(): any[];
|
|
19535
20283
|
/**
|
|
19536
|
-
*
|
|
20284
|
+
* 获取右侧面板(内置面板)
|
|
20285
|
+
* 根据 SystemConstants.RIGHT_PANELS 配置返回面板
|
|
19537
20286
|
* @returns {Array} 右侧面板数组
|
|
19538
20287
|
*/
|
|
19539
20288
|
get rightPalettes(): any[];
|
|
19540
20289
|
/**
|
|
19541
|
-
*
|
|
20290
|
+
* 获取自定义左侧面板(通过 SidebarPanelManager 注册的)
|
|
20291
|
+
* @returns {Array} 自定义左侧面板数组
|
|
20292
|
+
*/
|
|
20293
|
+
getCustomLeftPanels(): any[];
|
|
20294
|
+
/**
|
|
20295
|
+
* 获取自定义右侧面板(通过 SidebarPanelManager 注册的)
|
|
20296
|
+
* @returns {Array} 自定义右侧面板数组
|
|
20297
|
+
*/
|
|
20298
|
+
getCustomRightPanels(): any[];
|
|
20299
|
+
/**
|
|
20300
|
+
* 获取所有面板(包括内置和自定义)
|
|
19542
20301
|
* @returns {Array} 所有面板数组
|
|
19543
20302
|
*/
|
|
19544
20303
|
getAllPanels(): any[];
|
|
19545
20304
|
/**
|
|
19546
|
-
*
|
|
20305
|
+
* 获取左侧面板(包括内置和自定义)
|
|
19547
20306
|
* @returns {Array} 左侧面板数组
|
|
19548
20307
|
*/
|
|
19549
20308
|
getLeftPanels(): any[];
|
|
19550
20309
|
/**
|
|
19551
|
-
*
|
|
20310
|
+
* 获取右侧面板(包括内置和自定义)
|
|
19552
20311
|
* @returns {Array} 右侧面板数组
|
|
19553
20312
|
*/
|
|
19554
20313
|
getRightPanels(): any[];
|
|
@@ -21206,7 +21965,7 @@ declare class LayerPlottableCell extends LitElement {
|
|
|
21206
21965
|
* @class BasePanel
|
|
21207
21966
|
* @extends {LitElement}
|
|
21208
21967
|
*/
|
|
21209
|
-
declare class BasePanelComponent extends LitElement {
|
|
21968
|
+
declare class BasePanelComponent$1 extends LitElement {
|
|
21210
21969
|
panelId: number;
|
|
21211
21970
|
name: string;
|
|
21212
21971
|
mark: string;
|
|
@@ -21243,7 +22002,7 @@ declare class BasePanelComponent extends LitElement {
|
|
|
21243
22002
|
* @class FilePanel
|
|
21244
22003
|
* @extends {BasePanel}
|
|
21245
22004
|
*/
|
|
21246
|
-
declare class FilesPalette extends BasePanelComponent {
|
|
22005
|
+
declare class FilesPalette extends BasePanelComponent$1 {
|
|
21247
22006
|
files: any[];
|
|
21248
22007
|
selected: string;
|
|
21249
22008
|
filesTable: any;
|
|
@@ -21314,7 +22073,7 @@ declare class FilesPalette extends BasePanelComponent {
|
|
|
21314
22073
|
/**
|
|
21315
22074
|
* 块面板组件 - 块管理面板
|
|
21316
22075
|
*/
|
|
21317
|
-
declare class BlocksPalette extends BasePanelComponent {
|
|
22076
|
+
declare class BlocksPalette extends BasePanelComponent$1 {
|
|
21318
22077
|
blocks: any;
|
|
21319
22078
|
/**
|
|
21320
22079
|
* 获取块表格元素
|
|
@@ -21358,7 +22117,7 @@ declare class BlocksPalette extends BasePanelComponent {
|
|
|
21358
22117
|
/**
|
|
21359
22118
|
* 图像面板组件 - 图像管理面板
|
|
21360
22119
|
*/
|
|
21361
|
-
declare class ImagesPalette extends BasePanelComponent {
|
|
22120
|
+
declare class ImagesPalette extends BasePanelComponent$1 {
|
|
21362
22121
|
images: ImageCollection;
|
|
21363
22122
|
currentImgSrc: any;
|
|
21364
22123
|
/**
|
|
@@ -21446,7 +22205,7 @@ declare class ImagesPalette extends BasePanelComponent {
|
|
|
21446
22205
|
/**
|
|
21447
22206
|
* 属性面板主组件 - 管理所有实体属性的主面板
|
|
21448
22207
|
*/
|
|
21449
|
-
declare class PropertyPalette extends BasePanelComponent {
|
|
22208
|
+
declare class PropertyPalette extends BasePanelComponent$1 {
|
|
21450
22209
|
/**
|
|
21451
22210
|
* 定义响应式属性 - 使用 Lit 官方推荐的静态属性
|
|
21452
22211
|
*/
|
|
@@ -21468,6 +22227,7 @@ declare class PropertyPalette extends BasePanelComponent {
|
|
|
21468
22227
|
pointProps: {};
|
|
21469
22228
|
rayProps: {};
|
|
21470
22229
|
solidProps: {};
|
|
22230
|
+
meshProps: {};
|
|
21471
22231
|
splineProps: {};
|
|
21472
22232
|
xlineProps: {};
|
|
21473
22233
|
customProps: {};
|
|
@@ -21494,6 +22254,7 @@ declare class PropertyPalette extends BasePanelComponent {
|
|
|
21494
22254
|
plineEnts: any[];
|
|
21495
22255
|
pointEnts: any[];
|
|
21496
22256
|
solidEnts: any[];
|
|
22257
|
+
meshEnts: any[];
|
|
21497
22258
|
splineEnts: any[];
|
|
21498
22259
|
rayEnts: any[];
|
|
21499
22260
|
xlineEnts: any[];
|
|
@@ -21515,6 +22276,7 @@ declare class PropertyPalette extends BasePanelComponent {
|
|
|
21515
22276
|
pointProps: any;
|
|
21516
22277
|
rayProps: any;
|
|
21517
22278
|
solidProps: any;
|
|
22279
|
+
meshProps: any;
|
|
21518
22280
|
splineProps: any;
|
|
21519
22281
|
xlineProps: any;
|
|
21520
22282
|
customProps: any;
|
|
@@ -21563,7 +22325,7 @@ declare class PropertyPalette extends BasePanelComponent {
|
|
|
21563
22325
|
* CTB调色板组件类 (CtbPalette)
|
|
21564
22326
|
* 用于管理和显示打印样式设置
|
|
21565
22327
|
*/
|
|
21566
|
-
declare class CtbPalette extends BasePanelComponent {
|
|
22328
|
+
declare class CtbPalette extends BasePanelComponent$1 {
|
|
21567
22329
|
caption: string;
|
|
21568
22330
|
/**
|
|
21569
22331
|
* 构造函数
|
|
@@ -21599,7 +22361,7 @@ declare class CtbPalette extends BasePanelComponent {
|
|
|
21599
22361
|
* 绘图设置组件类 (DrawSettingsPalette)
|
|
21600
22362
|
* 用于管理绘图辅助功能设置
|
|
21601
22363
|
*/
|
|
21602
|
-
declare class DrawSettingsPalette extends BasePanelComponent {
|
|
22364
|
+
declare class DrawSettingsPalette extends BasePanelComponent$1 {
|
|
21603
22365
|
caption: string;
|
|
21604
22366
|
osmode: number;
|
|
21605
22367
|
orthomode: number;
|
|
@@ -21668,7 +22430,7 @@ declare class DrawSettingsPalette extends BasePanelComponent {
|
|
|
21668
22430
|
* 坐标系监视组件类 (CoordinateWatch)
|
|
21669
22431
|
* 用于显示各种坐标系的坐标值
|
|
21670
22432
|
*/
|
|
21671
|
-
declare class CoordsPalette extends BasePanelComponent {
|
|
22433
|
+
declare class CoordsPalette extends BasePanelComponent$1 {
|
|
21672
22434
|
/**
|
|
21673
22435
|
* 定义响应式属性 - 使用 Lit 官方推荐的静态属性
|
|
21674
22436
|
*/
|
|
@@ -21741,7 +22503,7 @@ declare class CoordsPalette extends BasePanelComponent {
|
|
|
21741
22503
|
* 命令列表面板组件类 (CommandListPalette)
|
|
21742
22504
|
* 用于显示和管理系统中所有可用命令的面板
|
|
21743
22505
|
*/
|
|
21744
|
-
declare class CommandListPalette extends BasePanelComponent {
|
|
22506
|
+
declare class CommandListPalette extends BasePanelComponent$1 {
|
|
21745
22507
|
caption: string;
|
|
21746
22508
|
commandListTable: any;
|
|
21747
22509
|
/**
|
|
@@ -21770,7 +22532,7 @@ declare class CommandListPalette extends BasePanelComponent {
|
|
|
21770
22532
|
* 别名列表面板组件类 (AliasListPalette)
|
|
21771
22533
|
* 用于显示和管理命令别名的面板
|
|
21772
22534
|
*/
|
|
21773
|
-
declare class AliasListPalette extends BasePanelComponent {
|
|
22535
|
+
declare class AliasListPalette extends BasePanelComponent$1 {
|
|
21774
22536
|
caption: string;
|
|
21775
22537
|
aliasListTable: any;
|
|
21776
22538
|
/**
|
|
@@ -25616,6 +26378,8 @@ interface Plugin {
|
|
|
25616
26378
|
* @param context - 插件上下文
|
|
25617
26379
|
*/
|
|
25618
26380
|
onUnload?(context: PluginContext): Promise<void> | void;
|
|
26381
|
+
/** 允许插件子类添加自定义属性 */
|
|
26382
|
+
[key: string]: any;
|
|
25619
26383
|
}
|
|
25620
26384
|
/**
|
|
25621
26385
|
* 插件加载来源类型
|
|
@@ -25930,6 +26694,7 @@ declare class PluginManagerDialog extends BaseDialogComponent {
|
|
|
25930
26694
|
/**
|
|
25931
26695
|
* 加载插件市场列表
|
|
25932
26696
|
*/
|
|
26697
|
+
private preloadMarketplaceCount;
|
|
25933
26698
|
private loadMarketplacePlugins;
|
|
25934
26699
|
/**
|
|
25935
26700
|
* 选择插件
|
|
@@ -28289,10 +29054,14 @@ declare class DocumentTabs extends LitElement {
|
|
|
28289
29054
|
interface PreviewViewConfig {
|
|
28290
29055
|
/** 背景色,默认 0x1a242e */
|
|
28291
29056
|
backgroundColor?: number;
|
|
29057
|
+
/** 背景透明度 0–1,默认 1(不透明)。设为 0 可导出透明背景 PNG。 */
|
|
29058
|
+
backgroundAlpha?: number;
|
|
28292
29059
|
/** 是否启用交互(缩放/平移),默认 true */
|
|
28293
29060
|
interactive?: boolean;
|
|
28294
29061
|
/** 默认绘制颜色,默认白色 0xffffff */
|
|
28295
29062
|
defaultColor?: number;
|
|
29063
|
+
/** Canvas pixel ratio override. Defaults to window.devicePixelRatio. Set to 1 for off-screen export. */
|
|
29064
|
+
resolution?: number;
|
|
28296
29065
|
}
|
|
28297
29066
|
/**
|
|
28298
29067
|
* 轻量级预览视图组件
|
|
@@ -28326,6 +29095,11 @@ declare class PreviewView extends LitElement {
|
|
|
28326
29095
|
private panStartPoint;
|
|
28327
29096
|
private panStartLook;
|
|
28328
29097
|
private lastMiddleClickTime;
|
|
29098
|
+
private pointerManager;
|
|
29099
|
+
private touchStartZoom;
|
|
29100
|
+
private touchStartLookPt;
|
|
29101
|
+
private pinchStartDistance;
|
|
29102
|
+
private pinchStartCenter;
|
|
28329
29103
|
private entityBounds;
|
|
28330
29104
|
private manualEntities;
|
|
28331
29105
|
private config;
|
|
@@ -28413,6 +29187,15 @@ declare class PreviewView extends LitElement {
|
|
|
28413
29187
|
* 使用临时文档上下文渲染指定块
|
|
28414
29188
|
*/
|
|
28415
29189
|
private renderBlock;
|
|
29190
|
+
/**
|
|
29191
|
+
* 直接渲染内存中已有的实体(不做 toDb/fromDb)。
|
|
29192
|
+
* 使用当前活动文档的图层、线型等上下文,因此 InsertEnt 的
|
|
29193
|
+
* 嵌套实体已经构建好,渲染速度与主视图一致。
|
|
29194
|
+
*
|
|
29195
|
+
* @param entities - 要渲染的实体数组(来自当前文档)
|
|
29196
|
+
* @param backgroundGray - 背景灰度值(0=黑色, 255=白色),用于 colorIndex 7 的反色处理
|
|
29197
|
+
*/
|
|
29198
|
+
renderEntitiesDirect(entities: EntityBase[], backgroundGray?: number): void;
|
|
28416
29199
|
/**
|
|
28417
29200
|
* 从文档更新边界并计算渲染原点
|
|
28418
29201
|
*/
|
|
@@ -29049,6 +29832,418 @@ interface PanelManager {
|
|
|
29049
29832
|
*/
|
|
29050
29833
|
declare function createPanel<T extends ModelessPanelBase>(PanelClass: new () => T, tagName: string): PanelManager;
|
|
29051
29834
|
|
|
29835
|
+
interface FloatingToolbarItem {
|
|
29836
|
+
/** Unique identifier */
|
|
29837
|
+
id: string;
|
|
29838
|
+
/** Icon source: URL path (svg/png) or inline SVG string (starting with '<svg') */
|
|
29839
|
+
icon: string;
|
|
29840
|
+
/** Tooltip text shown on hover */
|
|
29841
|
+
tooltip: string;
|
|
29842
|
+
/** CAD command name – executed via Engine.editor.executerWithOp */
|
|
29843
|
+
command?: string;
|
|
29844
|
+
/** Custom click callback (runs *after* command if both provided) */
|
|
29845
|
+
onClick?: () => void;
|
|
29846
|
+
/** Whether the item is disabled */
|
|
29847
|
+
disabled?: boolean;
|
|
29848
|
+
}
|
|
29849
|
+
interface FloatingToolbarOptions {
|
|
29850
|
+
/** Title text – when provided the header bar is shown by default */
|
|
29851
|
+
title?: string;
|
|
29852
|
+
/** Explicitly control header visibility (defaults to `!!title`) */
|
|
29853
|
+
showHeader?: boolean;
|
|
29854
|
+
/** Initial position */
|
|
29855
|
+
position?: PanelPosition;
|
|
29856
|
+
/** Fixed number of columns (horizontal-first layout) */
|
|
29857
|
+
columns?: number;
|
|
29858
|
+
/** Fixed number of rows (vertical-first layout, grid-auto-flow: column) */
|
|
29859
|
+
rows?: number;
|
|
29860
|
+
/** Icon button size in px (default 32) */
|
|
29861
|
+
iconSize?: number;
|
|
29862
|
+
/** Initial toolbar items */
|
|
29863
|
+
items?: FloatingToolbarItem[];
|
|
29864
|
+
}
|
|
29865
|
+
interface FloatingToolbarManager {
|
|
29866
|
+
addItem(item: FloatingToolbarItem): void;
|
|
29867
|
+
addItems(items: FloatingToolbarItem[]): void;
|
|
29868
|
+
removeItem(id: string): void;
|
|
29869
|
+
updateItem(id: string, updates: Partial<FloatingToolbarItem>): void;
|
|
29870
|
+
show(): void;
|
|
29871
|
+
hide(): void;
|
|
29872
|
+
close(): void;
|
|
29873
|
+
destroy(): void;
|
|
29874
|
+
/** Clear cached position and revert to the initial position from options */
|
|
29875
|
+
resetPosition(): void;
|
|
29876
|
+
readonly isVisible: boolean;
|
|
29877
|
+
}
|
|
29878
|
+
/**
|
|
29879
|
+
* Create (or retrieve) a floating toolbar.
|
|
29880
|
+
*
|
|
29881
|
+
* If a toolbar with the given `id` already exists and is still in the DOM,
|
|
29882
|
+
* the existing instance is returned and shown — no duplicate is created.
|
|
29883
|
+
*
|
|
29884
|
+
* @param id Unique identifier for this toolbar instance
|
|
29885
|
+
* @param options Configuration options
|
|
29886
|
+
* @returns A manager object for controlling the toolbar
|
|
29887
|
+
*/
|
|
29888
|
+
declare function createFloatingToolbar(id: string, options?: FloatingToolbarOptions): FloatingToolbarManager;
|
|
29889
|
+
|
|
29890
|
+
/**
|
|
29891
|
+
* 侧边栏面板配置接口
|
|
29892
|
+
*
|
|
29893
|
+
* 定义注册侧边栏面板时需要提供的配置选项。
|
|
29894
|
+
*
|
|
29895
|
+
* @interface SidebarPanelConfig
|
|
29896
|
+
* @public
|
|
29897
|
+
*
|
|
29898
|
+
* @example
|
|
29899
|
+
* ```typescript
|
|
29900
|
+
* const config: SidebarPanelConfig = {
|
|
29901
|
+
* name: "my-panel",
|
|
29902
|
+
* label: "我的面板",
|
|
29903
|
+
* icon: "images/actbar/my-icon.svg",
|
|
29904
|
+
* position: "left",
|
|
29905
|
+
* panelClass: MyCustomPanel
|
|
29906
|
+
* };
|
|
29907
|
+
* ```
|
|
29908
|
+
*/
|
|
29909
|
+
interface SidebarPanelConfig {
|
|
29910
|
+
/**
|
|
29911
|
+
* 面板唯一标识符(用于内部识别和 API 调用)
|
|
29912
|
+
* 建议使用小写字母和连字符,如 "my-panel"
|
|
29913
|
+
*/
|
|
29914
|
+
name: string;
|
|
29915
|
+
/**
|
|
29916
|
+
* 面板显示标签(显示在面板标题栏)
|
|
29917
|
+
*/
|
|
29918
|
+
label: string;
|
|
29919
|
+
/**
|
|
29920
|
+
* 面板图标路径(显示在活动栏)
|
|
29921
|
+
* 支持相对路径或绝对URL
|
|
29922
|
+
*/
|
|
29923
|
+
icon: string;
|
|
29924
|
+
/**
|
|
29925
|
+
* 面板位置
|
|
29926
|
+
* - "left": 左侧侧边栏
|
|
29927
|
+
* - "right": 右侧侧边栏
|
|
29928
|
+
* @default "left"
|
|
29929
|
+
*/
|
|
29930
|
+
position?: "left" | "right";
|
|
29931
|
+
/**
|
|
29932
|
+
* 面板组件类(必须继承自 BasePanelComponent 或 LitElement)
|
|
29933
|
+
*/
|
|
29934
|
+
panelClass: typeof LitElement;
|
|
29935
|
+
/**
|
|
29936
|
+
* 自定义元素标签名(可选,如不提供则自动生成)
|
|
29937
|
+
* 格式要求:必须包含连字符,如 "my-custom-panel"
|
|
29938
|
+
*/
|
|
29939
|
+
tagName?: string;
|
|
29940
|
+
/**
|
|
29941
|
+
* 面板显示顺序(数字越小越靠前)
|
|
29942
|
+
* @default 100
|
|
29943
|
+
*/
|
|
29944
|
+
order?: number;
|
|
29945
|
+
}
|
|
29946
|
+
/**
|
|
29947
|
+
* 基础侧边栏面板组件类
|
|
29948
|
+
*
|
|
29949
|
+
* 所有自定义侧边栏面板都应该继承此类。
|
|
29950
|
+
* 提供了面板的基本属性和生命周期管理。
|
|
29951
|
+
*
|
|
29952
|
+
* @class BasePanelComponent
|
|
29953
|
+
* @extends {LitElement}
|
|
29954
|
+
* @public
|
|
29955
|
+
*
|
|
29956
|
+
* @example
|
|
29957
|
+
* ```typescript
|
|
29958
|
+
* class MyCustomPanel extends BasePanelComponent {
|
|
29959
|
+
* static styles = [
|
|
29960
|
+
* BasePanelComponent.baseStyles,
|
|
29961
|
+
* css`
|
|
29962
|
+
* .my-content {
|
|
29963
|
+
* padding: 16px;
|
|
29964
|
+
* }
|
|
29965
|
+
* `
|
|
29966
|
+
* ];
|
|
29967
|
+
*
|
|
29968
|
+
* render() {
|
|
29969
|
+
* return html`
|
|
29970
|
+
* <div class="panel-content">
|
|
29971
|
+
* <h3>自定义面板内容</h3>
|
|
29972
|
+
* <p>这是我的自定义面板</p>
|
|
29973
|
+
* </div>
|
|
29974
|
+
* `;
|
|
29975
|
+
* }
|
|
29976
|
+
* }
|
|
29977
|
+
* ```
|
|
29978
|
+
*/
|
|
29979
|
+
declare class BasePanelComponent extends LitElement {
|
|
29980
|
+
/**
|
|
29981
|
+
* 面板唯一标识符
|
|
29982
|
+
*/
|
|
29983
|
+
panelId: number;
|
|
29984
|
+
/**
|
|
29985
|
+
* 面板名称(内部标识)
|
|
29986
|
+
*/
|
|
29987
|
+
name: string;
|
|
29988
|
+
/**
|
|
29989
|
+
* 面板标记
|
|
29990
|
+
*/
|
|
29991
|
+
mark: string;
|
|
29992
|
+
/**
|
|
29993
|
+
* 面板标题(显示用)
|
|
29994
|
+
*/
|
|
29995
|
+
caption: string;
|
|
29996
|
+
/**
|
|
29997
|
+
* 面板显示标签
|
|
29998
|
+
*/
|
|
29999
|
+
label: string;
|
|
30000
|
+
/**
|
|
30001
|
+
* 面板图标路径
|
|
30002
|
+
*/
|
|
30003
|
+
src: string;
|
|
30004
|
+
/**
|
|
30005
|
+
* 面板是否激活
|
|
30006
|
+
*/
|
|
30007
|
+
isActive: boolean;
|
|
30008
|
+
/**
|
|
30009
|
+
* 基础样式 - 子类可以通过 static styles 合并
|
|
30010
|
+
*/
|
|
30011
|
+
static baseStyles: {
|
|
30012
|
+
readonly styleSheet: any;
|
|
30013
|
+
toString(): any;
|
|
30014
|
+
};
|
|
30015
|
+
/**
|
|
30016
|
+
* 默认样式
|
|
30017
|
+
*/
|
|
30018
|
+
static styles: {
|
|
30019
|
+
readonly styleSheet: any;
|
|
30020
|
+
toString(): any;
|
|
30021
|
+
}[];
|
|
30022
|
+
/**
|
|
30023
|
+
* 构造函数 - 初始化基础面板属性
|
|
30024
|
+
*/
|
|
30025
|
+
constructor();
|
|
30026
|
+
/**
|
|
30027
|
+
* 面板激活时调用(子类可覆盖)
|
|
30028
|
+
*/
|
|
30029
|
+
onActivate(): void;
|
|
30030
|
+
/**
|
|
30031
|
+
* 面板停用时调用(子类可覆盖)
|
|
30032
|
+
*/
|
|
30033
|
+
onDeactivate(): void;
|
|
30034
|
+
/**
|
|
30035
|
+
* 刷新面板内容(子类可覆盖)
|
|
30036
|
+
*/
|
|
30037
|
+
refresh(): void;
|
|
30038
|
+
}
|
|
30039
|
+
/**
|
|
30040
|
+
* 侧边栏面板管理器
|
|
30041
|
+
*
|
|
30042
|
+
* 用于注册、注销和管理自定义侧边栏面板。
|
|
30043
|
+
* 通过 Engine.sidebarPanelManager 或 SidebarPanelManager.getInstance() 访问。
|
|
30044
|
+
*
|
|
30045
|
+
* @class SidebarPanelManager
|
|
30046
|
+
* @public
|
|
30047
|
+
*
|
|
30048
|
+
* @example
|
|
30049
|
+
* ```typescript
|
|
30050
|
+
* // 定义自定义面板类
|
|
30051
|
+
* class MyToolPanel extends BasePanelComponent {
|
|
30052
|
+
* render() {
|
|
30053
|
+
* return html`
|
|
30054
|
+
* <div class="panel-content">
|
|
30055
|
+
* <div class="panel-section">
|
|
30056
|
+
* <div class="panel-section-title">工具</div>
|
|
30057
|
+
* <button class="panel-btn" @click=${this.doSomething}>
|
|
30058
|
+
* 执行操作
|
|
30059
|
+
* </button>
|
|
30060
|
+
* </div>
|
|
30061
|
+
* </div>
|
|
30062
|
+
* `;
|
|
30063
|
+
* }
|
|
30064
|
+
*
|
|
30065
|
+
* doSomething() {
|
|
30066
|
+
* console.log("Button clicked!");
|
|
30067
|
+
* }
|
|
30068
|
+
* }
|
|
30069
|
+
*
|
|
30070
|
+
* // 注册面板
|
|
30071
|
+
* SidebarPanelManager.getInstance().registerPanel({
|
|
30072
|
+
* name: "my-tools",
|
|
30073
|
+
* label: "我的工具",
|
|
30074
|
+
* icon: "./images/actbar/tools.svg",
|
|
30075
|
+
* position: "left",
|
|
30076
|
+
* panelClass: MyToolPanel
|
|
30077
|
+
* });
|
|
30078
|
+
*
|
|
30079
|
+
* // 激活面板
|
|
30080
|
+
* SidebarPanelManager.getInstance().activatePanel("my-tools");
|
|
30081
|
+
*
|
|
30082
|
+
* // 注销面板
|
|
30083
|
+
* SidebarPanelManager.getInstance().unregisterPanel("my-tools");
|
|
30084
|
+
* ```
|
|
30085
|
+
*/
|
|
30086
|
+
declare class SidebarPanelManager {
|
|
30087
|
+
private static _instance;
|
|
30088
|
+
private _registeredPanels;
|
|
30089
|
+
/**
|
|
30090
|
+
* 私有构造函数(单例模式)
|
|
30091
|
+
*/
|
|
30092
|
+
private constructor();
|
|
30093
|
+
/**
|
|
30094
|
+
* 获取 SidebarPanelManager 单例实例
|
|
30095
|
+
*
|
|
30096
|
+
* @returns {SidebarPanelManager} 管理器实例
|
|
30097
|
+
*
|
|
30098
|
+
* @example
|
|
30099
|
+
* ```typescript
|
|
30100
|
+
* const manager = SidebarPanelManager.getInstance();
|
|
30101
|
+
* manager.registerPanel({ ... });
|
|
30102
|
+
* ```
|
|
30103
|
+
*/
|
|
30104
|
+
static getInstance(): SidebarPanelManager;
|
|
30105
|
+
/**
|
|
30106
|
+
* 注册自定义侧边栏面板
|
|
30107
|
+
*
|
|
30108
|
+
* 将自定义面板注册到 CAD 系统的侧边栏中。
|
|
30109
|
+
* 注册后面板会出现在指定位置的活动栏中。
|
|
30110
|
+
*
|
|
30111
|
+
* @param {SidebarPanelConfig} config - 面板配置
|
|
30112
|
+
* @returns {boolean} 是否注册成功
|
|
30113
|
+
*
|
|
30114
|
+
* @throws {Error} 如果面板名称已存在
|
|
30115
|
+
*
|
|
30116
|
+
* @example
|
|
30117
|
+
* ```typescript
|
|
30118
|
+
* const success = SidebarPanelManager.getInstance().registerPanel({
|
|
30119
|
+
* name: "analysis",
|
|
30120
|
+
* label: "分析工具",
|
|
30121
|
+
* icon: "./images/actbar/analysis.svg",
|
|
30122
|
+
* position: "right",
|
|
30123
|
+
* panelClass: AnalysisPanel,
|
|
30124
|
+
* order: 50
|
|
30125
|
+
* });
|
|
30126
|
+
* ```
|
|
30127
|
+
*/
|
|
30128
|
+
registerPanel(config: SidebarPanelConfig): boolean;
|
|
30129
|
+
/**
|
|
30130
|
+
* 注销侧边栏面板
|
|
30131
|
+
*
|
|
30132
|
+
* 从侧边栏中移除已注册的面板。
|
|
30133
|
+
*
|
|
30134
|
+
* @param {string} name - 面板名称
|
|
30135
|
+
* @returns {boolean} 是否注销成功
|
|
30136
|
+
*
|
|
30137
|
+
* @example
|
|
30138
|
+
* ```typescript
|
|
30139
|
+
* SidebarPanelManager.getInstance().unregisterPanel("my-panel");
|
|
30140
|
+
* ```
|
|
30141
|
+
*/
|
|
30142
|
+
unregisterPanel(name: string): boolean;
|
|
30143
|
+
/**
|
|
30144
|
+
* 激活指定面板
|
|
30145
|
+
*
|
|
30146
|
+
* 使指定的面板成为当前显示的面板。
|
|
30147
|
+
*
|
|
30148
|
+
* @param {string} name - 面板名称
|
|
30149
|
+
* @returns {boolean} 是否激活成功
|
|
30150
|
+
*
|
|
30151
|
+
* @example
|
|
30152
|
+
* ```typescript
|
|
30153
|
+
* SidebarPanelManager.getInstance().activatePanel("my-panel");
|
|
30154
|
+
* ```
|
|
30155
|
+
*/
|
|
30156
|
+
activatePanel(name: string): boolean;
|
|
30157
|
+
/**
|
|
30158
|
+
* 获取已注册面板列表
|
|
30159
|
+
*
|
|
30160
|
+
* @returns {string[]} 已注册面板名称数组
|
|
30161
|
+
*
|
|
30162
|
+
* @example
|
|
30163
|
+
* ```typescript
|
|
30164
|
+
* const panels = SidebarPanelManager.getInstance().getRegisteredPanels();
|
|
30165
|
+
* console.log("已注册面板:", panels);
|
|
30166
|
+
* ```
|
|
30167
|
+
*/
|
|
30168
|
+
getRegisteredPanels(): string[];
|
|
30169
|
+
/**
|
|
30170
|
+
* 检查面板是否已注册
|
|
30171
|
+
*
|
|
30172
|
+
* @param {string} name - 面板名称
|
|
30173
|
+
* @returns {boolean} 是否已注册
|
|
30174
|
+
*/
|
|
30175
|
+
isPanelRegistered(name: string): boolean;
|
|
30176
|
+
/**
|
|
30177
|
+
* 获取面板实例
|
|
30178
|
+
*
|
|
30179
|
+
* @param {string} name - 面板名称
|
|
30180
|
+
* @returns {any} 面板实例,如果未注册则返回 undefined
|
|
30181
|
+
*/
|
|
30182
|
+
getPanelInstance(name: string): any;
|
|
30183
|
+
/**
|
|
30184
|
+
* 生成唯一面板 ID
|
|
30185
|
+
* @private
|
|
30186
|
+
*/
|
|
30187
|
+
private _generatePanelId;
|
|
30188
|
+
/**
|
|
30189
|
+
* 获取左侧自定义面板
|
|
30190
|
+
* @internal
|
|
30191
|
+
*/
|
|
30192
|
+
getLeftPanels(): any[];
|
|
30193
|
+
/**
|
|
30194
|
+
* 获取右侧自定义面板
|
|
30195
|
+
* @internal
|
|
30196
|
+
*/
|
|
30197
|
+
getRightPanels(): any[];
|
|
30198
|
+
/**
|
|
30199
|
+
* 更新侧边栏以包含自定义面板
|
|
30200
|
+
* @private
|
|
30201
|
+
*/
|
|
30202
|
+
private _updateSidebar;
|
|
30203
|
+
}
|
|
30204
|
+
/**
|
|
30205
|
+
* 注册侧边栏面板的便捷函数
|
|
30206
|
+
*
|
|
30207
|
+
* @param {SidebarPanelConfig} config - 面板配置
|
|
30208
|
+
* @returns {boolean} 是否注册成功
|
|
30209
|
+
*
|
|
30210
|
+
* @example
|
|
30211
|
+
* ```typescript
|
|
30212
|
+
* registerSidebarPanel({
|
|
30213
|
+
* name: "my-panel",
|
|
30214
|
+
* label: "我的面板",
|
|
30215
|
+
* icon: "./images/actbar/my-icon.svg",
|
|
30216
|
+
* position: "left",
|
|
30217
|
+
* panelClass: MyPanel
|
|
30218
|
+
* });
|
|
30219
|
+
* ```
|
|
30220
|
+
*/
|
|
30221
|
+
declare function registerSidebarPanel(config: SidebarPanelConfig): boolean;
|
|
30222
|
+
/**
|
|
30223
|
+
* 注销侧边栏面板的便捷函数
|
|
30224
|
+
*
|
|
30225
|
+
* @param {string} name - 面板名称
|
|
30226
|
+
* @returns {boolean} 是否注销成功
|
|
30227
|
+
*
|
|
30228
|
+
* @example
|
|
30229
|
+
* ```typescript
|
|
30230
|
+
* unregisterSidebarPanel("my-panel");
|
|
30231
|
+
* ```
|
|
30232
|
+
*/
|
|
30233
|
+
declare function unregisterSidebarPanel(name: string): boolean;
|
|
30234
|
+
/**
|
|
30235
|
+
* 激活侧边栏面板的便捷函数
|
|
30236
|
+
*
|
|
30237
|
+
* @param {string} name - 面板名称
|
|
30238
|
+
* @returns {boolean} 是否激活成功
|
|
30239
|
+
*
|
|
30240
|
+
* @example
|
|
30241
|
+
* ```typescript
|
|
30242
|
+
* activateSidebarPanel("my-panel");
|
|
30243
|
+
* ```
|
|
30244
|
+
*/
|
|
30245
|
+
declare function activateSidebarPanel(name: string): boolean;
|
|
30246
|
+
|
|
29052
30247
|
/**
|
|
29053
30248
|
* 夹点管理器类
|
|
29054
30249
|
*
|
|
@@ -29881,6 +31076,8 @@ declare class CanvasController {
|
|
|
29881
31076
|
gripContainer: Container;
|
|
29882
31077
|
maskContainer: Container;
|
|
29883
31078
|
plotAreaContainer: Container;
|
|
31079
|
+
webMapTileContainer: Container;
|
|
31080
|
+
webMapTileLayer: WebMapTileLayer | null;
|
|
29884
31081
|
wmsTileContainer: Container;
|
|
29885
31082
|
wmsTileLayer: WmsTileLayer | null;
|
|
29886
31083
|
tileMaskContainer: Container;
|
|
@@ -29955,6 +31152,13 @@ declare class CanvasController {
|
|
|
29955
31152
|
private boundTouchStart;
|
|
29956
31153
|
private boundTouchMove;
|
|
29957
31154
|
private boundTouchEnd;
|
|
31155
|
+
/** 指针事件管理器 */
|
|
31156
|
+
pointerManager: PointerEventManager;
|
|
31157
|
+
private boundPointerDown;
|
|
31158
|
+
private boundPointerMove;
|
|
31159
|
+
private boundPointerUp;
|
|
31160
|
+
private boundPointerCancel;
|
|
31161
|
+
private boundPointerLeave;
|
|
29958
31162
|
private lastMiddleClickTime;
|
|
29959
31163
|
private readonly DOUBLE_CLICK_THRESHOLD;
|
|
29960
31164
|
/**
|
|
@@ -30060,6 +31264,11 @@ declare class CanvasController {
|
|
|
30060
31264
|
* @param {*} t - 父容器
|
|
30061
31265
|
*/
|
|
30062
31266
|
addDrawAreaGraphics(t: Container): void;
|
|
31267
|
+
/**
|
|
31268
|
+
* 添加互联网地图瓦片容器(最底层,在WMS瓦片之前)
|
|
31269
|
+
* @param {*} t - 父容器
|
|
31270
|
+
*/
|
|
31271
|
+
addWebMapTileContainer(t: Container): void;
|
|
30063
31272
|
/**
|
|
30064
31273
|
* 添加WMS瓦片容器(在只读底图容器之前,最底层)
|
|
30065
31274
|
* @param {*} t - 父容器
|
|
@@ -30158,6 +31367,30 @@ declare class CanvasController {
|
|
|
30158
31367
|
* @returns 瓦片图层状态信息
|
|
30159
31368
|
*/
|
|
30160
31369
|
getWmsTileStatus(): any;
|
|
31370
|
+
/**
|
|
31371
|
+
* 启用互联网地图瓦片图层
|
|
31372
|
+
* @param service - Service实例
|
|
31373
|
+
* @param config - 互联网地图瓦片配置
|
|
31374
|
+
*/
|
|
31375
|
+
enableWebMapTileLayer(service: Service, config: WebMapTileConfig): void;
|
|
31376
|
+
/**
|
|
31377
|
+
* 禁用互联网地图瓦片图层
|
|
31378
|
+
*/
|
|
31379
|
+
disableWebMapTileLayer(): void;
|
|
31380
|
+
/**
|
|
31381
|
+
* 设置互联网地图瓦片图层透明度
|
|
31382
|
+
* @param alpha - 透明度值 (0-1)
|
|
31383
|
+
*/
|
|
31384
|
+
setWebMapTileAlpha(alpha: number): void;
|
|
31385
|
+
/**
|
|
31386
|
+
* 获取互联网地图瓦片图层透明度
|
|
31387
|
+
* @returns 当前透明度值 (0-1)
|
|
31388
|
+
*/
|
|
31389
|
+
getWebMapTileAlpha(): number;
|
|
31390
|
+
/**
|
|
31391
|
+
* 互联网地图瓦片图层是否已启用
|
|
31392
|
+
*/
|
|
31393
|
+
isWebMapTileLayerEnabled(): boolean;
|
|
30161
31394
|
/**
|
|
30162
31395
|
* 添加模型容器
|
|
30163
31396
|
* @param {*} t - 父容器
|
|
@@ -30380,6 +31613,37 @@ declare class CanvasController {
|
|
|
30380
31613
|
* 窗口大小改变回调函数
|
|
30381
31614
|
*/
|
|
30382
31615
|
windowResize_callback(): void;
|
|
31616
|
+
/**
|
|
31617
|
+
* 创建指针事件参数
|
|
31618
|
+
* @param event - 原始 PointerEvent
|
|
31619
|
+
* @returns PointerEventArgs
|
|
31620
|
+
*/
|
|
31621
|
+
private createPointerEventArgs;
|
|
31622
|
+
/**
|
|
31623
|
+
* 指针按下事件处理
|
|
31624
|
+
* @param event - PointerEvent
|
|
31625
|
+
*/
|
|
31626
|
+
onPointerDown(event: PointerEvent): void;
|
|
31627
|
+
/**
|
|
31628
|
+
* 指针移动事件处理
|
|
31629
|
+
* @param event - PointerEvent
|
|
31630
|
+
*/
|
|
31631
|
+
onPointerMove(event: PointerEvent): void;
|
|
31632
|
+
/**
|
|
31633
|
+
* 指针抬起事件处理
|
|
31634
|
+
* @param event - PointerEvent
|
|
31635
|
+
*/
|
|
31636
|
+
onPointerUp(event: PointerEvent): void;
|
|
31637
|
+
/**
|
|
31638
|
+
* 指针取消事件处理
|
|
31639
|
+
* @param event - PointerEvent
|
|
31640
|
+
*/
|
|
31641
|
+
onPointerCancel(event: PointerEvent): void;
|
|
31642
|
+
/**
|
|
31643
|
+
* 指针离开事件处理
|
|
31644
|
+
* @param event - PointerEvent
|
|
31645
|
+
*/
|
|
31646
|
+
onPointerLeave(event: PointerEvent): void;
|
|
30383
31647
|
/**
|
|
30384
31648
|
* 触摸开始回调函数
|
|
30385
31649
|
* @param {TouchEvent} touchEvent - 触摸事件
|
|
@@ -30616,6 +31880,7 @@ declare class CoordinateTransform {
|
|
|
30616
31880
|
pcanvas: CanvasController;
|
|
30617
31881
|
pixiApp: Application;
|
|
30618
31882
|
constructor(canvasController: CanvasController);
|
|
31883
|
+
private getActiveBlock;
|
|
30619
31884
|
/**
|
|
30620
31885
|
* 画布坐标转换为渲染坐标系
|
|
30621
31886
|
* @param {Point2D} canvasPoint - 画布坐标点
|
|
@@ -30837,6 +32102,28 @@ declare class ArcEnt extends EntityBase {
|
|
|
30837
32102
|
* @param angle - 结束角度(弧度)
|
|
30838
32103
|
*/
|
|
30839
32104
|
set endAng(angle: number);
|
|
32105
|
+
/**
|
|
32106
|
+
* 起始角度别名(兼容性)
|
|
32107
|
+
* @alias startAng
|
|
32108
|
+
*/
|
|
32109
|
+
get startAngle(): number;
|
|
32110
|
+
set startAngle(angle: number);
|
|
32111
|
+
/**
|
|
32112
|
+
* 结束角度别名(兼容性)
|
|
32113
|
+
* @alias endAng
|
|
32114
|
+
*/
|
|
32115
|
+
get endAngle(): number;
|
|
32116
|
+
set endAngle(angle: number);
|
|
32117
|
+
/**
|
|
32118
|
+
* 总角度别名(兼容性)
|
|
32119
|
+
* @alias totalAng()
|
|
32120
|
+
*/
|
|
32121
|
+
get totalAngle(): number;
|
|
32122
|
+
/**
|
|
32123
|
+
* 是否顺时针方向
|
|
32124
|
+
* @returns true 表示顺时针,false 表示逆时针
|
|
32125
|
+
*/
|
|
32126
|
+
get isClockwise(): boolean;
|
|
30840
32127
|
/**
|
|
30841
32128
|
* 根据给定点获取圆弧上最近的点
|
|
30842
32129
|
*
|
|
@@ -31438,6 +32725,11 @@ declare class LineEnt extends EntityBase {
|
|
|
31438
32725
|
* @public
|
|
31439
32726
|
*/
|
|
31440
32727
|
get Length(): number;
|
|
32728
|
+
/**
|
|
32729
|
+
* 长度别名(兼容性,小写)
|
|
32730
|
+
* @alias Length
|
|
32731
|
+
*/
|
|
32732
|
+
get length(): number;
|
|
31441
32733
|
/**
|
|
31442
32734
|
* 克隆直线
|
|
31443
32735
|
*
|
|
@@ -32139,6 +33431,10 @@ declare class InsertEnt extends EntityBase {
|
|
|
32139
33431
|
height?: number;
|
|
32140
33432
|
rotation?: number;
|
|
32141
33433
|
invisible?: boolean;
|
|
33434
|
+
constant?: boolean;
|
|
33435
|
+
verifiable?: boolean;
|
|
33436
|
+
preset?: boolean;
|
|
33437
|
+
prompt?: string;
|
|
32142
33438
|
color?: number;
|
|
32143
33439
|
lineType?: string;
|
|
32144
33440
|
lineTypeScale?: number;
|
|
@@ -32380,6 +33676,10 @@ declare class TextEnt extends EntityBase {
|
|
|
32380
33676
|
private _preset;
|
|
32381
33677
|
_styleName: string | undefined;
|
|
32382
33678
|
textStyle: TextStyle | undefined;
|
|
33679
|
+
private _widthFactor;
|
|
33680
|
+
private _obliqueAngle;
|
|
33681
|
+
private _isBackward;
|
|
33682
|
+
private _isUpsideDown;
|
|
32383
33683
|
_insertionPoint: Point2D$1;
|
|
32384
33684
|
/**
|
|
32385
33685
|
* 构造函数
|
|
@@ -32440,6 +33740,36 @@ declare class TextEnt extends EntityBase {
|
|
|
32440
33740
|
* @param value - 新的插入点坐标,支持 Point2D 或数组 [x, y]
|
|
32441
33741
|
*/
|
|
32442
33742
|
set insertionPoint(value: PointInput);
|
|
33743
|
+
/**
|
|
33744
|
+
* 位置别名(兼容性)
|
|
33745
|
+
* @alias insertionPoint
|
|
33746
|
+
*/
|
|
33747
|
+
get position(): Point2D$1;
|
|
33748
|
+
set position(value: PointInput);
|
|
33749
|
+
/**
|
|
33750
|
+
* 宽度因子
|
|
33751
|
+
* @returns 实体级值优先,回退到文本样式值,默认为1
|
|
33752
|
+
*/
|
|
33753
|
+
get widthFactor(): number;
|
|
33754
|
+
set widthFactor(value: number | undefined);
|
|
33755
|
+
/**
|
|
33756
|
+
* 倾斜角度
|
|
33757
|
+
* @returns 实体级值优先,回退到文本样式值,默认为0
|
|
33758
|
+
*/
|
|
33759
|
+
get obliqueAngle(): number;
|
|
33760
|
+
set obliqueAngle(value: number | undefined);
|
|
33761
|
+
/**
|
|
33762
|
+
* 颠倒 (mirrored in Y / upside down)
|
|
33763
|
+
* @returns 实体级值优先,回退到文本样式值,默认为false
|
|
33764
|
+
*/
|
|
33765
|
+
get isUpsideDown(): boolean;
|
|
33766
|
+
set isUpsideDown(value: boolean | undefined);
|
|
33767
|
+
/**
|
|
33768
|
+
* 反向 (mirrored in X / backward)
|
|
33769
|
+
* @returns 实体级值优先,回退到文本样式值,默认为false
|
|
33770
|
+
*/
|
|
33771
|
+
get isBackward(): boolean;
|
|
33772
|
+
set isBackward(value: boolean | undefined);
|
|
32443
33773
|
/**
|
|
32444
33774
|
* 获取边框显示状态
|
|
32445
33775
|
* @returns 是否显示边框
|
|
@@ -33496,6 +34826,12 @@ declare class PolylineEnt extends EntityBase {
|
|
|
33496
34826
|
* 设置是否闭合并标记修改
|
|
33497
34827
|
*/
|
|
33498
34828
|
set isClosed(val: boolean);
|
|
34829
|
+
/**
|
|
34830
|
+
* 闭合状态别名(兼容性)
|
|
34831
|
+
* @alias isClosed
|
|
34832
|
+
*/
|
|
34833
|
+
get closed(): boolean;
|
|
34834
|
+
set closed(val: boolean);
|
|
33499
34835
|
/**
|
|
33500
34836
|
* 获取整体高程(2D多段线使用)
|
|
33501
34837
|
* @returns 整体高程值
|
|
@@ -34578,6 +35914,12 @@ declare class EllipseEnt extends EntityBase {
|
|
|
34578
35914
|
* @param newEndAngle - 新的结束角度(弧度)
|
|
34579
35915
|
*/
|
|
34580
35916
|
set endAngle(newEndAngle: number);
|
|
35917
|
+
/**
|
|
35918
|
+
* 旋转角度别名(兼容性)
|
|
35919
|
+
* @alias majorAxis
|
|
35920
|
+
*/
|
|
35921
|
+
get rotation(): number;
|
|
35922
|
+
set rotation(value: number);
|
|
34581
35923
|
/**
|
|
34582
35924
|
* 获取椭圆弧的内角
|
|
34583
35925
|
*
|
|
@@ -35951,7 +37293,22 @@ declare class Layers {
|
|
|
35951
37293
|
constructor(doc: any);
|
|
35952
37294
|
get count(): number;
|
|
35953
37295
|
remove(layer: Layer): LayerReference | undefined;
|
|
37296
|
+
/**
|
|
37297
|
+
* 添加图层(Layer 对象)
|
|
37298
|
+
*/
|
|
35954
37299
|
add(layer: Layer): Layer | null;
|
|
37300
|
+
/**
|
|
37301
|
+
* 添加图层(名称和选项)
|
|
37302
|
+
* @param layerName - 图层名称
|
|
37303
|
+
* @param options - 图层选项
|
|
37304
|
+
*/
|
|
37305
|
+
add(layerName: string, options?: {
|
|
37306
|
+
color?: number;
|
|
37307
|
+
lineType?: string;
|
|
37308
|
+
layerOn?: boolean;
|
|
37309
|
+
frozen?: boolean;
|
|
37310
|
+
isLocked?: boolean;
|
|
37311
|
+
}): Layer | null;
|
|
35955
37312
|
/**
|
|
35956
37313
|
* 根据 layerId 添加或合并图层
|
|
35957
37314
|
* - 如果 layerId 已存在,返回已存在的图层
|
|
@@ -35973,6 +37330,13 @@ declare class Layers {
|
|
|
35973
37330
|
addFromName(layerName: string): void;
|
|
35974
37331
|
itemByName(layerName: string): Layer | undefined;
|
|
35975
37332
|
itemById(layerId: string): Layer | undefined;
|
|
37333
|
+
/**
|
|
37334
|
+
* 检查图层是否存在
|
|
37335
|
+
* @param layerName - 图层名称
|
|
37336
|
+
* @returns 如果图层存在返回 true
|
|
37337
|
+
* @public
|
|
37338
|
+
*/
|
|
37339
|
+
has(layerName: string): boolean;
|
|
35976
37340
|
/**
|
|
35977
37341
|
* 使图层状态缓存失效
|
|
35978
37342
|
* 当图层的 layerOn/isLocked/isFrozen 状态发生变化时调用
|
|
@@ -37095,6 +38459,50 @@ declare class SolidEnt extends EntityBase {
|
|
|
37095
38459
|
fromDb(dbData: DbSolid): void;
|
|
37096
38460
|
}
|
|
37097
38461
|
|
|
38462
|
+
/**
|
|
38463
|
+
* Unified 3D mesh entity.
|
|
38464
|
+
* Represents triangulated mesh data from AcDb3dSolid, AcDbRegion, AcDbSurface,
|
|
38465
|
+
* AcDbPolyFaceMesh, AcDbPolygonMesh, AcDbFace.
|
|
38466
|
+
* Stores full 3D vertex data for future 3D plugin support.
|
|
38467
|
+
*
|
|
38468
|
+
* @public
|
|
38469
|
+
*/
|
|
38470
|
+
declare class MeshEnt extends EntityBase {
|
|
38471
|
+
private _sourceType;
|
|
38472
|
+
private _vertices;
|
|
38473
|
+
private _indices;
|
|
38474
|
+
private _edgeVisible?;
|
|
38475
|
+
private _material?;
|
|
38476
|
+
private _meshSize?;
|
|
38477
|
+
private _projectedEdgesCache;
|
|
38478
|
+
constructor();
|
|
38479
|
+
get sourceType(): string;
|
|
38480
|
+
get vertexCount(): number;
|
|
38481
|
+
get triangleCount(): number;
|
|
38482
|
+
get vertices(): Float64Array;
|
|
38483
|
+
get indices(): Uint32Array;
|
|
38484
|
+
/**
|
|
38485
|
+
* Projected visible edges for 2D rendering and hit-testing.
|
|
38486
|
+
* Lazily computed and cached; cleared on setModified().
|
|
38487
|
+
*/
|
|
38488
|
+
getProjectedEdges(): GLine[];
|
|
38489
|
+
get subGeometries(): GLine[];
|
|
38490
|
+
setModified(): void;
|
|
38491
|
+
fromDb(dbData: DbMesh): void;
|
|
38492
|
+
toDb(): DbMesh;
|
|
38493
|
+
boundingBox(coordinateSystemType?: CoordinateSystemType): BoundingBox;
|
|
38494
|
+
allPointsWithInBox(boundingBox: BoundingBox): boolean;
|
|
38495
|
+
getPoints(): Point2D$1[];
|
|
38496
|
+
move(fromPoint: PointInput, toPoint: PointInput): void;
|
|
38497
|
+
rotate(centerPoint: PointInput, angle: number): void;
|
|
38498
|
+
scale(centerPoint: PointInput, scaleFactor: number): void;
|
|
38499
|
+
mirror(mirrorAxisStart: PointInput, mirrorAxisEnd: PointInput): void;
|
|
38500
|
+
stretch(fromPoint: PointInput, toPoint: PointInput, stretchBox: BoundingBox): void;
|
|
38501
|
+
gripEdit(newPosition: Point2D$1, gripName: string): void;
|
|
38502
|
+
clone(): MeshEnt;
|
|
38503
|
+
private _buildProjectedEdges;
|
|
38504
|
+
}
|
|
38505
|
+
|
|
37098
38506
|
/**
|
|
37099
38507
|
* 捕捉点类型
|
|
37100
38508
|
*/
|
|
@@ -38332,6 +39740,8 @@ interface SelectionChangedEventArgs extends CadEventArgs {
|
|
|
38332
39740
|
previousSelection: EntityBase[];
|
|
38333
39741
|
/** 当前的选择集 */
|
|
38334
39742
|
currentSelection: EntityBase[];
|
|
39743
|
+
/** 当前的选择集别名(兼容性) */
|
|
39744
|
+
selections: EntityBase[];
|
|
38335
39745
|
/** 新增的实体 */
|
|
38336
39746
|
added: EntityBase[];
|
|
38337
39747
|
/** 移除的实体 */
|
|
@@ -39049,8 +40459,8 @@ interface PluginErrorEventArgs extends CadEventArgs {
|
|
|
39049
40459
|
* @public
|
|
39050
40460
|
*/
|
|
39051
40461
|
interface ContextMenuItemInfo {
|
|
39052
|
-
/**
|
|
39053
|
-
label
|
|
40462
|
+
/** 菜单项标签(分隔线时可选) */
|
|
40463
|
+
label?: string;
|
|
39054
40464
|
/** 图标名称 */
|
|
39055
40465
|
icon?: string;
|
|
39056
40466
|
/** 快捷键文本 */
|
|
@@ -39065,7 +40475,7 @@ interface ContextMenuItemInfo {
|
|
|
39065
40475
|
disabled?: boolean;
|
|
39066
40476
|
/** 是否选中 */
|
|
39067
40477
|
checked?: boolean;
|
|
39068
|
-
/**
|
|
40478
|
+
/** 是否为分隔线(设为 true 时其他属性可省略) */
|
|
39069
40479
|
isSeparator?: boolean;
|
|
39070
40480
|
}
|
|
39071
40481
|
/**
|
|
@@ -39124,6 +40534,87 @@ interface ContextMenuItemClickedEventArgs extends CadEventArgs {
|
|
|
39124
40534
|
/** 命令名称(如果是系统命令) */
|
|
39125
40535
|
command?: string;
|
|
39126
40536
|
}
|
|
40537
|
+
/**
|
|
40538
|
+
* 指针类型
|
|
40539
|
+
* @public
|
|
40540
|
+
*/
|
|
40541
|
+
type PointerInputType = 'mouse' | 'touch' | 'pen';
|
|
40542
|
+
/**
|
|
40543
|
+
* 指针事件参数(可取消)
|
|
40544
|
+
* @public
|
|
40545
|
+
*/
|
|
40546
|
+
interface PointerEventArgs extends CancellableEventArgs {
|
|
40547
|
+
/** 指针类型 */
|
|
40548
|
+
pointerType: PointerInputType;
|
|
40549
|
+
/** 指针 ID */
|
|
40550
|
+
pointerId: number;
|
|
40551
|
+
/** 画布坐标 X */
|
|
40552
|
+
canvasX: number;
|
|
40553
|
+
/** 画布坐标 Y */
|
|
40554
|
+
canvasY: number;
|
|
40555
|
+
/** 世界坐标 X */
|
|
40556
|
+
worldX: number;
|
|
40557
|
+
/** 世界坐标 Y */
|
|
40558
|
+
worldY: number;
|
|
40559
|
+
/** 鼠标按钮 (0=左, 1=中, 2=右) */
|
|
40560
|
+
button: number;
|
|
40561
|
+
/** 是否按住 Shift */
|
|
40562
|
+
shiftKey: boolean;
|
|
40563
|
+
/** 是否按住 Ctrl */
|
|
40564
|
+
ctrlKey: boolean;
|
|
40565
|
+
/** 是否按住 Alt */
|
|
40566
|
+
altKey: boolean;
|
|
40567
|
+
/** 是否为主指针 */
|
|
40568
|
+
isPrimary: boolean;
|
|
40569
|
+
/** 原始事件(供高级用途) */
|
|
40570
|
+
originalEvent: globalThis.PointerEvent;
|
|
40571
|
+
}
|
|
40572
|
+
/**
|
|
40573
|
+
* 键盘事件参数(可取消)
|
|
40574
|
+
* @public
|
|
40575
|
+
*/
|
|
40576
|
+
interface KeyboardEventArgs extends CancellableEventArgs {
|
|
40577
|
+
/** 按键代码 */
|
|
40578
|
+
code: string;
|
|
40579
|
+
/** 按键值 */
|
|
40580
|
+
key: string;
|
|
40581
|
+
/** 是否按住 Shift */
|
|
40582
|
+
shiftKey: boolean;
|
|
40583
|
+
/** 是否按住 Ctrl */
|
|
40584
|
+
ctrlKey: boolean;
|
|
40585
|
+
/** 是否按住 Alt */
|
|
40586
|
+
altKey: boolean;
|
|
40587
|
+
/** 是否按住 Meta (Windows/Command) */
|
|
40588
|
+
metaKey: boolean;
|
|
40589
|
+
/** 是否正在输入法组合中 */
|
|
40590
|
+
isComposing: boolean;
|
|
40591
|
+
/** 原始事件 */
|
|
40592
|
+
originalEvent: globalThis.KeyboardEvent;
|
|
40593
|
+
}
|
|
40594
|
+
/**
|
|
40595
|
+
* 滚轮事件参数(可取消)
|
|
40596
|
+
* @public
|
|
40597
|
+
*/
|
|
40598
|
+
interface WheelEventArgs extends CancellableEventArgs {
|
|
40599
|
+
/** 滚动量 X */
|
|
40600
|
+
deltaX: number;
|
|
40601
|
+
/** 滚动量 Y */
|
|
40602
|
+
deltaY: number;
|
|
40603
|
+
/** 滚动量 Z */
|
|
40604
|
+
deltaZ: number;
|
|
40605
|
+
/** 画布坐标 X */
|
|
40606
|
+
canvasX: number;
|
|
40607
|
+
/** 画布坐标 Y */
|
|
40608
|
+
canvasY: number;
|
|
40609
|
+
/** 是否按住 Shift */
|
|
40610
|
+
shiftKey: boolean;
|
|
40611
|
+
/** 是否按住 Ctrl */
|
|
40612
|
+
ctrlKey: boolean;
|
|
40613
|
+
/** 是否按住 Alt */
|
|
40614
|
+
altKey: boolean;
|
|
40615
|
+
/** 原始事件 */
|
|
40616
|
+
originalEvent: globalThis.WheelEvent;
|
|
40617
|
+
}
|
|
39127
40618
|
/**
|
|
39128
40619
|
* 事件参数类型映射
|
|
39129
40620
|
* 用于类型安全的事件处理
|
|
@@ -39197,6 +40688,13 @@ type EventArgsMap = {
|
|
|
39197
40688
|
ConflictResolving: ConflictResolvingEventArgs;
|
|
39198
40689
|
ConflictResolved: ConflictResolvedEventArgs;
|
|
39199
40690
|
ConflictSkipped: ConflictSkippedEventArgs;
|
|
40691
|
+
PointerDown: PointerEventArgs;
|
|
40692
|
+
PointerMove: PointerEventArgs;
|
|
40693
|
+
PointerUp: PointerEventArgs;
|
|
40694
|
+
PointerCancel: PointerEventArgs;
|
|
40695
|
+
KeyDown: KeyboardEventArgs;
|
|
40696
|
+
KeyUp: KeyboardEventArgs;
|
|
40697
|
+
Wheel: WheelEventArgs;
|
|
39200
40698
|
PluginLoading: PluginLoadingEventArgs;
|
|
39201
40699
|
PluginLoaded: PluginLoadedEventArgs;
|
|
39202
40700
|
PluginActivating: PluginActivatingEventArgs;
|
|
@@ -39338,6 +40836,58 @@ declare class CircleCommand {
|
|
|
39338
40836
|
private getdistBetween;
|
|
39339
40837
|
}
|
|
39340
40838
|
|
|
40839
|
+
/**
|
|
40840
|
+
* Circle: Center + Diameter
|
|
40841
|
+
*
|
|
40842
|
+
* The distance from center to the clicked point is treated as diameter (not radius).
|
|
40843
|
+
*/
|
|
40844
|
+
declare class CircleDiameterCommand {
|
|
40845
|
+
main(): Promise<void>;
|
|
40846
|
+
}
|
|
40847
|
+
/**
|
|
40848
|
+
* Circle: 2 Points (diameter endpoints)
|
|
40849
|
+
*/
|
|
40850
|
+
declare class Circle2PCommand {
|
|
40851
|
+
main(): Promise<void>;
|
|
40852
|
+
}
|
|
40853
|
+
/**
|
|
40854
|
+
* Circle: 3 Points
|
|
40855
|
+
*/
|
|
40856
|
+
declare class Circle3PCommand {
|
|
40857
|
+
main(): Promise<void>;
|
|
40858
|
+
}
|
|
40859
|
+
/**
|
|
40860
|
+
* Circle: Tan, Tan, Radius
|
|
40861
|
+
*
|
|
40862
|
+
* User picks two entities to be tangent to, then enters a radius.
|
|
40863
|
+
* Radius input accepts: typed number, or two points defining the distance.
|
|
40864
|
+
* Supports LINE, CIRCLE, and ARC entities.
|
|
40865
|
+
*/
|
|
40866
|
+
declare class CircleTTRCommand {
|
|
40867
|
+
private static lastRadius;
|
|
40868
|
+
main(): Promise<void>;
|
|
40869
|
+
/**
|
|
40870
|
+
* Radius input: accepts a typed number or two points defining the distance.
|
|
40871
|
+
* Uses allowNumberResult so typed numbers return IsNumber status,
|
|
40872
|
+
* while point clicks return OK status for two-point distance mode.
|
|
40873
|
+
*/
|
|
40874
|
+
private getRadiusInput;
|
|
40875
|
+
private solveTTR;
|
|
40876
|
+
private getOffsetLoci;
|
|
40877
|
+
private intersectLoci;
|
|
40878
|
+
}
|
|
40879
|
+
/**
|
|
40880
|
+
* Circle: Tan, Tan, Tan
|
|
40881
|
+
*
|
|
40882
|
+
* User picks three entities; the resulting circle is tangent to all three.
|
|
40883
|
+
*/
|
|
40884
|
+
declare class CircleTTTCommand {
|
|
40885
|
+
main(): Promise<void>;
|
|
40886
|
+
private solveTTT;
|
|
40887
|
+
private tryTTR;
|
|
40888
|
+
private distToEntity;
|
|
40889
|
+
}
|
|
40890
|
+
|
|
39341
40891
|
declare class AboutCommand {
|
|
39342
40892
|
main(): Promise<void>;
|
|
39343
40893
|
}
|
|
@@ -39446,6 +40996,64 @@ declare class ArcCommand {
|
|
|
39446
40996
|
getArc_Center_StartAng_EndAng(centerPoint: Point2D$1, startPoint: Point2D$1, endPoint: Point2D$1, isCounterClockwise: boolean): ArcEnt | undefined;
|
|
39447
40997
|
}
|
|
39448
40998
|
|
|
40999
|
+
/**
|
|
41000
|
+
* Arc: Start, Center, End
|
|
41001
|
+
*/
|
|
41002
|
+
declare class ArcSCECommand {
|
|
41003
|
+
main(): Promise<void>;
|
|
41004
|
+
}
|
|
41005
|
+
/**
|
|
41006
|
+
* Arc: Start, Center, Angle
|
|
41007
|
+
*/
|
|
41008
|
+
declare class ArcSCACommand {
|
|
41009
|
+
main(): Promise<void>;
|
|
41010
|
+
}
|
|
41011
|
+
/**
|
|
41012
|
+
* Arc: Start, Center, chord Length
|
|
41013
|
+
*/
|
|
41014
|
+
declare class ArcSCLCommand {
|
|
41015
|
+
main(): Promise<void>;
|
|
41016
|
+
}
|
|
41017
|
+
/**
|
|
41018
|
+
* Arc: Start, End, Angle
|
|
41019
|
+
*/
|
|
41020
|
+
declare class ArcSEACommand {
|
|
41021
|
+
main(): Promise<void>;
|
|
41022
|
+
}
|
|
41023
|
+
/**
|
|
41024
|
+
* Arc: Start, End, Direction (tangent at start)
|
|
41025
|
+
*/
|
|
41026
|
+
declare class ArcSEDCommand {
|
|
41027
|
+
main(): Promise<void>;
|
|
41028
|
+
}
|
|
41029
|
+
/**
|
|
41030
|
+
* Arc: Start, End, Radius
|
|
41031
|
+
*
|
|
41032
|
+
* Radius input accepts: typed number, or two points defining the distance.
|
|
41033
|
+
*/
|
|
41034
|
+
declare class ArcSERCommand {
|
|
41035
|
+
private static lastRadius;
|
|
41036
|
+
main(): Promise<void>;
|
|
41037
|
+
}
|
|
41038
|
+
/**
|
|
41039
|
+
* Arc: Center, Start, End (direct entry without keyword)
|
|
41040
|
+
*/
|
|
41041
|
+
declare class ArcCSECommand {
|
|
41042
|
+
main(): Promise<void>;
|
|
41043
|
+
}
|
|
41044
|
+
/**
|
|
41045
|
+
* Arc: Center, Start, Angle
|
|
41046
|
+
*/
|
|
41047
|
+
declare class ArcCSACommand {
|
|
41048
|
+
main(): Promise<void>;
|
|
41049
|
+
}
|
|
41050
|
+
/**
|
|
41051
|
+
* Arc: Center, Start, chord Length
|
|
41052
|
+
*/
|
|
41053
|
+
declare class ArcCSLCommand {
|
|
41054
|
+
main(): Promise<void>;
|
|
41055
|
+
}
|
|
41056
|
+
|
|
39449
41057
|
/**
|
|
39450
41058
|
* 块命令类
|
|
39451
41059
|
*
|
|
@@ -39822,6 +41430,38 @@ declare class ChangeTranspCommand {
|
|
|
39822
41430
|
private DB1;
|
|
39823
41431
|
}
|
|
39824
41432
|
|
|
41433
|
+
declare class ClipRegionCommand {
|
|
41434
|
+
private polygonPoints;
|
|
41435
|
+
private keepInside;
|
|
41436
|
+
private explodeBlocks;
|
|
41437
|
+
main(): Promise<void>;
|
|
41438
|
+
private clearPreview;
|
|
41439
|
+
private drawBoundaryPreview;
|
|
41440
|
+
private getBoundary;
|
|
41441
|
+
private getRectangleBoundary;
|
|
41442
|
+
private getRectangleBoundaryFrom;
|
|
41443
|
+
private getPolygonBoundary;
|
|
41444
|
+
private getClipMode;
|
|
41445
|
+
/**
|
|
41446
|
+
* Show a real-time preview: highlight the boundary and shade the side that will be kept.
|
|
41447
|
+
*/
|
|
41448
|
+
private drawClipModePreview;
|
|
41449
|
+
private getBlockMode;
|
|
41450
|
+
private executeClip;
|
|
41451
|
+
private processEntity;
|
|
41452
|
+
private processGeometric;
|
|
41453
|
+
private processPointBased;
|
|
41454
|
+
private processSolid;
|
|
41455
|
+
private processHatch;
|
|
41456
|
+
private processDimension;
|
|
41457
|
+
private processBezier;
|
|
41458
|
+
private processInsert;
|
|
41459
|
+
private processEntityForExplode;
|
|
41460
|
+
private processGroup;
|
|
41461
|
+
private processCustom;
|
|
41462
|
+
private processByBoundingBox;
|
|
41463
|
+
}
|
|
41464
|
+
|
|
39825
41465
|
/**
|
|
39826
41466
|
* 新建命令类
|
|
39827
41467
|
* 用于创建新的图纸文档
|
|
@@ -40331,15 +41971,15 @@ declare class EllipseCommand {
|
|
|
40331
41971
|
*/
|
|
40332
41972
|
private start;
|
|
40333
41973
|
/**
|
|
40334
|
-
*
|
|
41974
|
+
* 第一步:指定轴的第一个端点
|
|
40335
41975
|
*/
|
|
40336
41976
|
private P1;
|
|
40337
41977
|
/**
|
|
40338
|
-
*
|
|
41978
|
+
* 第二步:指定轴的第二个端点
|
|
40339
41979
|
*/
|
|
40340
41980
|
private P2;
|
|
40341
41981
|
/**
|
|
40342
|
-
*
|
|
41982
|
+
* 第三步:指定另一条半轴长度
|
|
40343
41983
|
*/
|
|
40344
41984
|
private P3;
|
|
40345
41985
|
/**
|
|
@@ -40355,6 +41995,17 @@ declare class EllipseCommand {
|
|
|
40355
41995
|
private getdistBetween;
|
|
40356
41996
|
}
|
|
40357
41997
|
|
|
41998
|
+
/**
|
|
41999
|
+
* Ellipse drawn from center point.
|
|
42000
|
+
* Flow: Center -> Axis endpoint -> Other axis distance
|
|
42001
|
+
*/
|
|
42002
|
+
declare class EllipseCenterCommand {
|
|
42003
|
+
private centerPoint;
|
|
42004
|
+
private majorAxisAngle;
|
|
42005
|
+
private majorRadius;
|
|
42006
|
+
main(): Promise<void>;
|
|
42007
|
+
}
|
|
42008
|
+
|
|
40358
42009
|
/**
|
|
40359
42010
|
* 图层变更记录类
|
|
40360
42011
|
* 用于记录图层的变更信息
|
|
@@ -40437,6 +42088,16 @@ declare class EraseCommand {
|
|
|
40437
42088
|
main(): Promise<void>;
|
|
40438
42089
|
}
|
|
40439
42090
|
|
|
42091
|
+
/**
|
|
42092
|
+
* Data-to-draw command.
|
|
42093
|
+
* Opens a dialog for the user to paste GeoJSON or array data,
|
|
42094
|
+
* then draws polylines, hatches, or pixel points.
|
|
42095
|
+
*/
|
|
42096
|
+
declare class DataToDrawCommand {
|
|
42097
|
+
main(): Promise<void>;
|
|
42098
|
+
private drawItems;
|
|
42099
|
+
}
|
|
42100
|
+
|
|
40440
42101
|
/**
|
|
40441
42102
|
* 执行字符串命令类
|
|
40442
42103
|
*
|
|
@@ -42409,6 +44070,16 @@ declare class RectangCommand {
|
|
|
42409
44070
|
P2(): Promise<void>;
|
|
42410
44071
|
}
|
|
42411
44072
|
|
|
44073
|
+
/**
|
|
44074
|
+
* Toggle lineweight display on/off.
|
|
44075
|
+
*
|
|
44076
|
+
* Sets both LWDISPLAY (DWG-level) and SHOW_LINEWEIGHT (frontend)
|
|
44077
|
+
* then performs a full regen so the change is immediately visible.
|
|
44078
|
+
*/
|
|
44079
|
+
declare class LwDisplayCommand {
|
|
44080
|
+
main(): Promise<void>;
|
|
44081
|
+
}
|
|
44082
|
+
|
|
42412
44083
|
declare class RegenCommand {
|
|
42413
44084
|
main(): Promise<void>;
|
|
42414
44085
|
}
|
|
@@ -43346,6 +45017,18 @@ declare class ExportToDwgCommand {
|
|
|
43346
45017
|
performExport(params: IExportToDwgParams, updateImportedDrawing?: boolean, originalMapid?: string, isDownload?: boolean, downloadDir?: string): Promise<void>;
|
|
43347
45018
|
}
|
|
43348
45019
|
|
|
45020
|
+
/**
|
|
45021
|
+
* ExportToPngCommand - Export the current document as a PNG image.
|
|
45022
|
+
*
|
|
45023
|
+
* Opens a dialog where the user picks scope (all / selected), theme,
|
|
45024
|
+
* dimensions and aspect-ratio lock. On confirm the image is rendered
|
|
45025
|
+
* off-screen and downloaded directly.
|
|
45026
|
+
*/
|
|
45027
|
+
declare class ExportToPngCommand {
|
|
45028
|
+
main(): Promise<void>;
|
|
45029
|
+
private start;
|
|
45030
|
+
}
|
|
45031
|
+
|
|
43349
45032
|
/**
|
|
43350
45033
|
* ImportFromDwgCommand - 从本地DWG/DXF导入命令
|
|
43351
45034
|
*
|
|
@@ -44221,6 +45904,57 @@ declare class QuickSelectCommand {
|
|
|
44221
45904
|
*/
|
|
44222
45905
|
declare function destroyQuickSelectPanel(): void;
|
|
44223
45906
|
|
|
45907
|
+
/**
|
|
45908
|
+
* EXTRACTCENTERLINE command - opens the centerline extraction panel
|
|
45909
|
+
*/
|
|
45910
|
+
declare class ExtractCenterlineCommand {
|
|
45911
|
+
main(): Promise<void>;
|
|
45912
|
+
}
|
|
45913
|
+
declare function destroyExtractCenterlinePanel(): void;
|
|
45914
|
+
|
|
45915
|
+
/**
|
|
45916
|
+
* SMARTBLOCK command - opens the smart block recognition panel.
|
|
45917
|
+
*/
|
|
45918
|
+
declare class SmartBlockCommand {
|
|
45919
|
+
main(): Promise<void>;
|
|
45920
|
+
}
|
|
45921
|
+
declare function destroySmartBlockPanel(): void;
|
|
45922
|
+
|
|
45923
|
+
/**
|
|
45924
|
+
* Revision cloud command
|
|
45925
|
+
*
|
|
45926
|
+
* Draws a revision cloud polyline with semicircular arc segments,
|
|
45927
|
+
* similar to AutoCAD's REVCLOUD command.
|
|
45928
|
+
* Delegates arc generation to {@link generateRevcloudBulgePoints}.
|
|
45929
|
+
*
|
|
45930
|
+
* @public
|
|
45931
|
+
*/
|
|
45932
|
+
declare class RevcloudCommand {
|
|
45933
|
+
static arcLength: number;
|
|
45934
|
+
private pathPoints;
|
|
45935
|
+
private polylineEntity;
|
|
45936
|
+
private isClosed;
|
|
45937
|
+
private stepNumber;
|
|
45938
|
+
constructor();
|
|
45939
|
+
main(): Promise<void>;
|
|
45940
|
+
start(): Promise<void>;
|
|
45941
|
+
P1(): Promise<void>;
|
|
45942
|
+
P2(): Promise<void>;
|
|
45943
|
+
P3(): Promise<void>;
|
|
45944
|
+
P4(): Promise<void>;
|
|
45945
|
+
private createArcPreviewCallback;
|
|
45946
|
+
private buildCloudBulgePoints;
|
|
45947
|
+
private rebuildCloudPolyline;
|
|
45948
|
+
}
|
|
45949
|
+
|
|
45950
|
+
/**
|
|
45951
|
+
* WEBMAPOVERLAY command - Open the internet map overlay panel
|
|
45952
|
+
*/
|
|
45953
|
+
declare class WebMapOverlayCommand {
|
|
45954
|
+
main(): Promise<void>;
|
|
45955
|
+
}
|
|
45956
|
+
declare function destroyWebMapOverlayPanel(): void;
|
|
45957
|
+
|
|
44224
45958
|
/**
|
|
44225
45959
|
* 箭头渲染配置
|
|
44226
45960
|
*/
|
|
@@ -44443,7 +46177,7 @@ declare class DimensionFormatter {
|
|
|
44443
46177
|
*/
|
|
44444
46178
|
static formatRadius(value: number, style: DimensionStyle): string;
|
|
44445
46179
|
/**
|
|
44446
|
-
* 格式化直径值(带
|
|
46180
|
+
* 格式化直径值(带 Ø 前缀)
|
|
44447
46181
|
*/
|
|
44448
46182
|
static formatDiameter(value: number, style: DimensionStyle): string;
|
|
44449
46183
|
/**
|
|
@@ -47651,7 +49385,7 @@ declare class MLeaderEnt extends CustomEntityBase implements IEntityReactor {
|
|
|
47651
49385
|
gripEdit(newPosition: Point2D$1, gripId: string): void;
|
|
47652
49386
|
}
|
|
47653
49387
|
|
|
47654
|
-
declare const CadPatternDef = "\n*SOLID, \u5B9E\u4F53\u586B\u5145\n45, 0,0, 0,.125\n*ANGLE,\u89D2\u94A2\n0, 0, 0, 0, 6.985, 5.08, -1.905\n90, 0, 0, 0, 6.985, 5.08, -1.905\n*ANSI31,ANSI \u94C1\u3001\u7816\u548C\u77F3\n45, 0, 0, 0, 3.175\n*ANSI32,ANSI \u94A2\n45, 0, 0, 0, 9.525\n45, 4.49013, 0, 0, 9.525\n*ANSI33,ANSI \u9752\u94DC\u3001\u9EC4\u94DC\u548C\u7D2B\u94DC\n45, 0, 0, 0, 6.35\n45, 4.49013, 0, 0, 6.35, 3.175, -1.5875\n*ANSI34,ANSI \u5851\u6599\u548C\u6A61\u80F6\n45, 0, 0, 0, 19.05\n45, 4.49013, 0, 0, 19.05\n45, 8.98026, 0, 0, 19.05\n45, 13.4704, 0, 0, 19.05\n*ANSI35,ANSI \u8010\u706B\u7816\u548C\u8010\u706B\u6750\u8D28\n45, 0, 0, 0, 6.35\n45, 4.49013, 0, 0, 6.35, 7.9375, -1.5875, 0, -1.5875\n*ANSI36,ANSI \u5927\u7406\u77F3\u3001\u677F\u5CA9\u548C\u73BB\u7483\n45, 0, 0, 5.55625, 3.175, 7.9375, -1.5875, 0, -1.5875\n*ANSI37,ANSI \u94C5\u3001\u950C\u3001\u9541\u548C\u58F0/\u70ED/\u7535\u7EDD\u7F18\u4F53\n45, 0, 0, 0, 3.175\n135, 0, 0, 0, 3.175\n*ANSI38,ANSI \u94DD\n45, 0, 0, 0, 3.175\n135, 0, 0, 6.35, 3.175, 7.9375, -4.7625\n*AR-B816, 8x16 \u5757\u7816\u987A\u780C\n0, 0, 0, 0, 203.2\n90, 0, 0, 203.2, 203.2, 203.2, -203.2\n*AR-B816C, 8x16 \u5757\u7816\u987A\u780C\uFF0C\u7528\u7070\u6CE5\u63A5\u7F1D\n0, 0, 0, 203.2, 203.2, 396.875, -9.525\n0, -203.2, 9.525, 203.2, 203.2, 396.875, -9.525\n90, 0, 0, 203.2, 203.2, -212.725, 193.675\n90, -9.525, 0, 203.2, 203.2, -212.725, 193.675\n*AR-B88, 8x8 \u5757\u7816\u987A\u780C\n0, 0, 0, 0, 203.2\n90, 0, 0, 203.2, 101.6, 203.2, -203.2\n*AR-BRELM, \u6807\u51C6\u7816\u5757\u82F1\u5F0F\u5806\u780C\uFF0C\u7528\u7070\u6CE5\u63A5\u7F1D\n0, 0, 0, 0, 135.484, 193.675, -9.525\n0, 0, 57.15, 0, 135.484, 193.675, -9.525\n0, 50.8, 67.7418, 0, 135.484, 92.075, -9.525\n0, 50.8, 124.892, 0, 135.484, 92.075, -9.525\n90, 0, 0, 0, 203.2, 57.15, -78.334\n90, -9.525, 0, 0, 203.2, 57.15, -78.334\n90, 50.8, 67.7418, 0, 101.6, 57.15, -78.334\n90, 41.275, 67.7418, 0, 101.6, 57.15, -78.334\n*AR-BRSTD, \u6807\u51C6\u7816\u5757\u987A\u780C\n0, 0, 0, 0, 67.7418\n90, 0, 0, 67.7418, 101.6, 67.7418, -67.7418\n*AR-CONC, \u968F\u673A\u7684\u70B9\u548C\u77F3\u5934\u56FE\u6848\n50, 0, 0, 104.896, -149.807, 19.05, -209.55\n355, 0, 0, -51.76101082,187.25814969, 15.24, -167.64058417\n100.4514447,15.182007,-1.3282535,145.5569059,-176.270089,16.1900088,-178.0902446\n46.1842, 0, 50.8, 157.343, -224.71, 28.575, -314.325\n96.63555761,22.5899,47.2965,218.33577212,-264.40480444,24.28502314,-267.13560816\n351.18415117,0,50.8,196.67912063,280.88740361,22.85996707,-251.45973192\n21, 25.4, 38.1, 104.89565868, -149.80652586, 19.05, -209.55\n326, 25.4, 38.1, -51.7604, 187.258, 15.24, -167.64\n71.451445,38.0345326,29.5779001,145.5567546,-176.2700748,16.1900088,-178.0899376\n37.5, 0, 0, 53.9242, 65.2018, 0, -165.608, 0, -170.18, 0, -168.275\n7.5, 0, 0, 79.3242, 90.6018, 0, -97.028, 0, -161.798, 0, -64.135\n-32.5, -56.642, 0, 117.434, 68.0212, 0, -63.5, 0, -198.12, 0, -262.89\n-42.5, -82.042, 0, 92.0344, 118.821, 0, -82.55, 0, -131.572, 0, -186.69\n*AR-HBONE, \u6807\u51C6\u7684\u7816\u5757\u6210\u4EBA\u5B57\u5F62\u56FE\u6848 @ 45 \u5EA6\u89D2\n45, 0, 0, 101.6, 101.6, 304.8, -101.6\n135, 71.842, 71.842, 101.6, -101.6, 304.8, -101.6\n*AR-PARQ1, 2x12 \u9576\u6728\u5730\u677F: 12x12 \u7684\u56FE\u6848\n90, 0, 0, 304.8, 304.8, 304.8, -304.8\n90, 50.8, 0, 304.8, 304.8, 304.8, -304.8\n90, 101.6, 0, 304.8, 304.8, 304.8, -304.8\n90, 152.4, 0, 304.8, 304.8, 304.8, -304.8\n90, 203.2, 0, 304.8, 304.8, 304.8, -304.8\n90, 254, 0, 304.8, 304.8, 304.8, -304.8\n90, 304.8, 0, 304.8, 304.8, 304.8, -304.8\n0, 0, 304.8, 304.8, -304.8, 304.8, -304.8\n0, 0, 355.6, 304.8, -304.8, 304.8, -304.8\n0, 0, 406.4, 304.8, -304.8, 304.8, -304.8\n0, 0, 457.2, 304.8, -304.8, 304.8, -304.8\n0, 0, 508, 304.8, -304.8, 304.8, -304.8\n0, 0, 558.8, 304.8, -304.8, 304.8, -304.8\n0, 0, 609.6, 304.8, -304.8, 304.8, -304.8\n*AR-RROOF, \u5C4B\u9876\u6728\u74E6\u56FE\u6848\n0, 0, 0, 55.88, 25.4, 381, -50.8, 127, -25.4\n0, 33.782, 12.7, -25.4, 33.782, 76.2, -8.382, 152.4, -19.05\n0, 12.7, 21.59, 132.08, 17.018, 203.2, -35.56, 101.6, -25.4\n*AR-RSHKE, \u5C4B\u9876\u5B9E\u6728\u74E6\u56FE\u6848\n0, 0, 0, 647.7, 304.8, 152.4, -127, 177.8, -76.2, 228.6, -101.6\n0, 152.4, 12.7, 647.7, 304.8, 127, -482.6, 101.6, -152.4\n0, 457.2, -19.05, 647.7, 304.8, 76.2, -787.4\n90, 0, 0, 304.8, 215.9, 292.1, -927.1\n90, 152.4, 0, 304.8, 215.9, 285.75, -933.45\n90, 279.4, 0, 304.8, 215.9, 266.7, -952.5\n90, 457.2, -19.05, 304.8, 215.9, 292.1, -927.1\n90, 533.4, -19.05, 304.8, 215.9, 292.1, -927.1\n90, 762, 0, 304.8, 215.9, 279.4, -939.8\n*AR-SAND, \u968F\u673A\u7684\u70B9\u56FE\u6848\n37.5, 0, 0, 28.5242, 39.8018, 0, -38.608, 0, -43.18, 0, -41.275\n7.5, 0, 0, 53.9242, 65.2018, 0, -20.828, 0, -34.798, 0, -13.335\n-32.5, -31.242, 0, 66.6344, 42.6212, 0, -12.7, 0, -45.72, 0, -59.69\n-42.5, -31.242, 0, 41.2344, 68.0212, 0, -6.35, 0, -29.972, 0, -34.29\n*BOX,\u65B9\u94A2\n90, 0, 0, 0, 25.4\n90, 6.35, 0, 0, 25.4\n0, 0, 0, 0, 25.4, -6.35, 6.35\n0, 0, 6.35, 0, 25.4, -6.35, 6.35\n0, 0, 12.7, 0, 25.4, 6.35, -6.35\n0, 0, 19.05, 0, 25.4, 6.35, -6.35\n90, 12.7, 0, 0, 25.4, 6.35, -6.35\n90, 19.05, 0, 0, 25.4, 6.35, -6.35\n*BRASS,\u9EC4\u94DC\u6750\u8D28\n0, 0, 0, 0, 6.35\n0, 0, 3.175, 0, 6.35, 3.175, -1.5875\n*BRICK,\u7816\u77F3\u7C7B\u578B\u7684\u8868\u9762\n0, 0, 0, 0, 6.35\n90, 0, 0, 0, 12.7, 6.35, -6.35\n90, 6.35, 0, 0, 12.7, -6.35, 6.35\n*BRSTONE,\u7816\u548C\u77F3\n0, 0, 0, 0, 8.382\n90, 22.86, 0, 8.382, 12.7, 8.382, -8.382\n90, 20.32, 0, 8.382, 12.7, 8.382, -8.382\n0, 22.86, 1.397, 12.7, 8.382, -22.86, 2.54\n0, 22.86, 2.794, 12.7, 8.382, -22.86, 2.54\n0, 22.86, 4.191, 12.7, 8.382, -22.86, 2.54\n0, 22.86, 5.588, 12.7, 8.382, -22.86, 2.54\n0, 22.86, 6.985, 12.7, 8.382, -22.86, 2.54\n*CLAY,\u7C98\u571F\u6750\u8D28\n0, 0, 0, 0, 4.7625\n0, 0, 0.79375, 0, 4.7625\n0, 0, 1.5875, 0, 4.7625\n0, 0, 3.175, 0, 4.7625, 4.7625, -3.175\n*CORK,\u8F6F\u6728\u6750\u8D28\n0, 0, 0, 0, 3.175\n135, 1.5875, -1.5875, 0, 8.98026, 4.49013, -4.49013\n135, 2.38125, -1.5875, 0, 8.98026, 4.49013, -4.49013\n135, 3.175, -1.5875, 0, 8.98026, 4.49013, -4.49013\n*CROSS,\u4E00\u7CFB\u5217\u5341\u5B57\u5F62\n0, 0, 0, 6.35, 6.35, 3.175, -9.525\n90, 1.5875, -1.5875, 6.35, 6.35, 3.175, -9.525\n*DASH,\u5212\u7EBF\n0, 0, 0, 3.175, 3.175, 3.175, -3.175\n*DOLMIT,\u5730\u58F3\u5CA9\u5C42\n0, 0, 0, 0, 6.35\n45, 0, 0, 0, 17.9605,8.98025612106915355989072339,-17.9605122421383071197814467\n*DOTS,\u4E00\u7CFB\u5217\u70B9\n0, 0, 0, 0.79375, 1.5875, 0, -1.5875\n*EARTH,\u5730\u9762\n0, 0, 0, 6.35, 6.35, 6.35, -6.35\n0, 0, 2.38125, 6.35, 6.35, 6.35, -6.35\n0, 0, 4.7625, 6.35, 6.35, 6.35, -6.35\n90, 0.79375, 5.55625, 6.35, 6.35, 6.35, -6.35\n90, 3.175, 5.55625, 6.35, 6.35, 6.35, -6.35\n90, 5.55625, 5.55625, 6.35, 6.35, 6.35, -6.35\n*ESCHER,Escher \u56FE\u6848\n60, 0, 0, -15.24, 26.3964542936, 27.94, -2.54\n180, 0, 0, -15.24, 26.3964542936, 27.94, -2.54\n300, 0, 0, 15.24, 26.3964542936, 27.94, -2.54\n60, 2.54, 0, -15.24, 26.3964542936, 5.08, -25.4\n300, 2.54, 0, 15.24, 26.3964542936, 5.08, -25.4\n60, -1.27, 2.199704516, -15.24, 26.3964542936, 5.08, -25.4\n180, -1.27, 2.199704516, -15.24, 26.3964542936, 5.08, -25.4\n300, -1.27, -2.199704516, 15.24, 26.3964542936, 5.08, -25.4\n180, -1.27, -2.199704516, -15.24, 26.3964542936, 5.08, -25.4\n60, -10.16, 0, -15.24, 26.3964542936, 5.08, -25.4\n300, -10.16, 0, 15.24, 26.3964542936, 5.08, -25.4\n60, 5.08, -8.7988180894, -15.24, 26.3964542936, 5.08, -25.4\n180, 5.08, -8.7988180894, -15.24, 26.3964542936, 5.08, -25.4\n300, 5.08, 8.7988180894, 15.24, 26.3964542936, 5.08, -25.4\n180, 5.08, 8.7988180894, -15.24, 26.3964542936, 5.08, -25.4\n0, 5.08, 4.3994090574, -15.24, 26.3964542936, 17.78, -12.7\n0, 5.08, -4.3994090574, -15.24, 26.3964542936, 17.78, -12.7\n120, 1.27, 6.5991135734, 15.24, 26.3964542936, 17.78, -12.7\n120, -6.35, 2.199704516, 15.24, 26.3964542936, 17.78, -12.7\n240, -6.35, -2.199704516, 15.24, 26.3964542936, 17.78, -12.7\n240, 1.27, -6.5991135734, 15.24, 26.3964542936, 17.78, -12.7\n*FLEX,\u8F6F\u6027\u6750\u8D28\n0, 0, 0, 0, 6.35, 6.35, -6.35\n45,6.35,0,4.490128053,4.490128053,1.5875,-5.8052561314,1.5875,-8.9802561314\n*GOST_GLASS,\u73BB\u7483\u6750\u8D28\n45, 0, 0, 6, -6, 5, -7\n45, 2.121320, 0, 6, -6, 2, -10\n45, 0, 2.121320, 6, -6, 2, -10\n*GOST_WOOD,\u6728\u6750\u6750\u8D28\n90, 0, 0, 0, -6, 10, -2\n90, 2, -2, 0, -6, 6, -1.5, 3, -1.5\n90, 4, -5, 0, -6, 10, -2\n*GOST_GROUND,\u5730\u9762\n45, 0, 0, 10, -10, 20\n45, 3, 0, 10, -10, 20\n45, 6, 0, 10, -10, 20\n*GRASS,\u8349\u5730\n90, 0, 0, 17.96051224, 17.96051224, 4.7625, -31.15852448\n45, 0, 0, 0, 25.4, 4.7625, -20.6375\n135, 0, 0, 0, 25.4, 4.7625, -20.6375\n*GRATE,\u683C\u6805\u533A\u57DF\n0, 0, 0, 0, 0.79375\n90, 0, 0, 0, 3.175\n*GRAVEL,\u6C99\u783E\u56FE\u6848\n228.0127875,18.288,25.4,305.85067529778,1.88796713245,3.4172144,-338.30483639565\n184.969741,16.002,22.86,-305.8545235377,1.10019612724,5.8640472,-580.54048893524\n132.5104471,10.16,22.352,-377.59492241548,1.56030959675,4.1348152,-409.347227941\n267.273689,.254,16.002,-508.63316875916,1.20815479432,5.3400452,-528.66437425738\n292.83365418,0.0,10.668,-330.19770134945,1.23208097566,5.236337,-518.39807745344\n357.273689,2.032,5.842,-508.63316875916,1.20815479432,5.3400452,-528.66437425738\n37.69424047,7.366,5.588,-416.58997273292,.91357450169,7.0619366,-699.13115314247\n72.25532837,12.954,9.906,586.40373773403,.96766293399,6.6671952,-660.05256601905\n121.42956562,14.986,16.256,387.71230339293,1.2040754753,5.35813,-530.45545698712\n175.2363583,12.192,20.828,-280.5442400419,2.10935518695,6.1171328,-299.7393695\n222.3974378,6.096,21.336,413.48123885686,.81554484621,7.9107792,-783.16772512177\n138.81407483,25.4,15.748,234.164238558,2.38943100688,2.7000454,-267.30565824344\n171.4692344,23.368,17.526,-334.082478726,1.25594916784,5.1368198,-508.5463899704\n225.00000,18.288,18.288,17.96051224214,17.96051224214,3.5920934,-32.32893108428\n203.19859051,16.51,21.336,-136.74251918,3.33518339548,1.9344132,-191.50622368894\n291.80140949,14.732,20.574,-80.18324702488,4.71666158921,2.7356562,-134.0475299\n30.96375653,15.748,18.034,91.47734531502,4.35606406258,4.4431966,-143.6629815291\n161.56505118,19.558,20.32,-56.2252967978,8.03218525675,3.2128714,-77.10898116828\n16.389540334,0.0,20.574,265.17991128726,1.43340492604,4.50088,-445.58826672539\n70.34617594,4.318,21.844,-297.29446803469,1.70858889651,3.7759894,-373.822156782\n293.19859051,19.558,25.4,-136.7425191801,3.33518339548,3.868801,-189.57183588894\n343.61045967,21.082,21.844,-265.17991128725,1.433404926,4.50088,-445.5882667254\n339.44395478,0.0,4.826,-136.75087638398,2.97284513779,4.340352,-212.67734313106\n294.7751406,4.064,3.302,-306.90424056705,1.77401295215,3.6367212,-360.0359338072\n66.80140949,19.812,0.0,136.74251918012,3.33518339452,3.868801,-189.57183588894\n17.35402464,21.336,3.556,-345.47402804977,1.51523696536,4.2578274,-421.523759802\n69.44395478,7.366,0.0,-136.75087638396,2.97284513874,2.170176,-214.84751913106\n101.309932474,18.288,0.0,104.60834648271,4.98134983255,1.295146,-128.21994964526\n165.963756532,18.034,1.27,-80.085263387,6.16040487582,5.236337,-99.49054589069\n186.00900596,12.954,2.54,-255.26337856879,1.32949676118,4.85267,-480.41364863337\n303.69006753,15.748,15.748,-56.35753993648,7.0446924921,3.6632388,-87.9177635968\n353.15722659,17.78,12.7,434.77679606606,1.0087628707,6.3955676,-633.16009065031\n60.9453959,24.13,11.938,-204.76648550216,2.46706609031,2.6150824,-258.8939231811\n90.0000000,25.4,14.224,25.4,25.4,1.524,-23.876\n120.25643716,12.446,3.302,-204.77318477297,1.8283320086,3.5286696,-349.339407732\n48.01278750,10.668,6.35,305.85067529778,1.88796713138,6.8344288,-334.88762199565\n0.000000000,15.24,11.43,25.4,25.4,6.604,-18.796\n325.3048465,21.844,11.43,310.04235091354,-1.6064370526,4.0160956,-397.5931672414\n254.0546041,25.146,9.144,104.6687497289,3.48895832444,3.6982908,-181.21650038772\n207.64597536,24.13,5.588,545.36007557253,1.07143433066,6.021451,-596.12464422938\n175.42607874,18.796,2.794,331.1739336186,1.01276432357,6.3702946,-630.6584645624\n*HEX,\u516D\u8FB9\u5F62\n0, 0, 0, 0, 5.4992613154, 3.175, -6.35\n120, 0, 0, 0, 5.4992613154, 3.175, -6.35\n60, 3.175, 0, 0, 5.4992613154, 3.175, -6.35\n*HONEY,\u8702\u5DE2\u56FE\u6848\n0, 0, 0, 4.7625, 2.749630645, 3.175, -6.35\n120, 0, 0, 4.7625, 2.749630645, 3.175, -6.35\n60, 0, 0, 4.7625, 2.749630645, -6.35, 3.175\n*HOUND,\u72AC\u7259\u4EA4\u9519\u56FE\u6848\n0, 0, 0, 6.35, 1.5875, 25.4, -12.7\n90, 0, 0, -6.35, 1.5875, 25.4, -12.7\n*INSUL,\u7EDD\u7F18\u6750\u8D28\n0, 0, 0, 0, 9.525\n0, 0, 3.175, 0, 9.525, 3.175, -3.175\n0, 0, 6.35, 0, 9.525, 3.175, -3.175\n;;\n;; Hatch Pattern Definition related to ISO/DIS 12011 line types\n;;\n;; (Width * 5 = Distance between lines)\n;;\n;; The size of the line segments related to the ISO/DIS 12011 linetypes\n;; define the following hatch pattern.\n;; The pen width of 1 mm is the base of the definition. To use them with\n;; the other ISO/DIS 12011 predefined pen widths, the line has to be scaled\n;; with the appropriate value (e.g. pen width 0,5 mm -> ltscale 0.5).\n;;\n*ACAD_ISO02W100, \u5212\u7EBF\n0, 0,0, 0,5, 12,-3\n*ACAD_ISO03W100, \u5212\u3001\u7A7A\u683C\u7EBF\n0, 0,0, 0,5, 12,-18\n*ACAD_ISO04W100, \u957F\u5212\u3001\u70B9\u7EBF\n0, 0,0, 0,5, 24,-3,.5,-3\n*ACAD_ISO05W100, \u957F\u5212\u3001\u53CC\u70B9\u7EBF\n0, 0,0, 0,5, 24,-3,.5,-3,.5,-3\n*ACAD_ISO06W100, \u957F\u5212\u3001\u4E09\u70B9\u7EBF\n0, 0,0, 0,5, 24,-3,.5,-3,.5,-6.5\n0, 0,0, 0,5, -34,.5,-3\n*ACAD_ISO07W100, \u70B9\u7EBF\n0, 0,0, 0,5, .5,-3\n*ACAD_ISO08W100, \u957F\u5212\u3001\u77ED\u5212\u7EBF\n0, 0,0, 0,5, 24,-3,6,-3\n*ACAD_ISO09W100, \u957F\u5212\u3001\u53CC\u77ED\u5212\u7EBF\n0, 0,0, 0,5, 24,-3,6,-3,6,-3\n*ACAD_ISO10W100, \u5212\u3001\u70B9\u7EBF\n0, 0,0, 0,5, 12,-3,.5,-3\n*ACAD_ISO11W100, \u53CC\u5212\u3001\u70B9\u7EBF\n0, 0,0, 0,5, 12,-3,12,-3,.5,-3\n*ACAD_ISO12W100, \u5212\u3001\u53CC\u70B9\u7EBF\n0, 0,0, 0,5, 12,-3,.5,-3,.5,-3\n*ACAD_ISO13W100, \u53CC\u5212\u3001\u53CC\u70B9\u7EBF\n0, 0,0, 0,5, 12,-3,12,-3,.5,-6.5\n0, 0,0, 0,5, -33.5,.5,-3\n*ACAD_ISO14W100, \u5212\u3001\u4E09\u70B9\u7EBF\n0, 0,0, 0,5, 12,-3,.5,-3,.5,-6.5\n0, 0,0, 0,5, -22,.5,-3\n*ACAD_ISO15W100, \u53CC\u5212\u3001\u4E09\u70B9\u7EBF\n0, 0,0, 0,5, 12,-3,12,-3,.5,-10\n0, 0,0, 0,5, -33.5,.5,-3,.5,-3\n;;\n;; end of ACAD_ISO hatch pattern definition\n;;\n;; Hatch Pattern Definition related to JIS A 0150\n;;\n*JIS_LC_20, LC JIS A 0150(@20)\n45,0,0,0,20\n45,.4,0,0,20\n*JIS_LC_20A, LC JIS A 0150(@20'?)\n45,0,0,0,20\n45,1,0,0,20\n*JIS_LC_8, LC JIS A 0150(@8)\n45,0,0,0,7.8\n45,.4,0,0,7.8\n*JIS_LC_8A, LC JIS A 0150(@8'?)\n45,0,0,0,7.8\n45,1,0,0,7.8\n*JIS_RC_10, RC JIS A 0150(@10)\n45,0,0,0,10\n45,.725,0,0,10\n45,1.45,0,0,10\n*JIS_RC_15, RC JIS A 0150(@15)\n45,0,0,0,15\n45,.725,0,0,15\n45,1.45,0,0,15\n*JIS_RC_18, RC JIS A 0150(@18)\n45,0,0,0,18\n45,1,0,0,18\n45,2,0,0,18\n*JIS_RC_30, RC JIS A 0150(@30)\n45,0,0,0,30\n45,1,0,0,30\n45,2,0,0,30\n*JIS_STN_1E, STONE JIS A 0150(@1)\n45, 0, 0, 0, 1\n45, .705, 0, 0,1, 1, -.5\n*JIS_STN_2.5, STONE JIS A 0150(@2.5)\n45, 0, 0, 0, 2.5\n45, 1.765, 0, 0,2.5, 1.2, -.5\n*JIS_WOOD, WOOD JIS A 0150\n45,0,0,0,.70710678\n;;\n*LINE,\u5E73\u884C\u6C34\u5E73\u7EBF\n0, 0, 0, 0, 3.175\n*MUDST,\u6CE5\u6C99\n0, 0, 0, 12.7, 6.35, 6.35, -6.35, 0, -6.35, 0, -6.35\n*NET,\u6C34\u5E73/\u5782\u76F4\u6805\u683C\n0, 0, 0, 0, 3.175\n90, 0, 0, 0, 3.175\n*NET3,\u7F51\u72B6\u56FE\u6848 0-60-120\n0, 0, 0, 0, 3.175\n60, 0, 0, 0, 3.175\n120, 0, 0, 0, 3.175\n*PLAST,\u5851\u6599\u6750\u8D28\n0, 0, 0, 0, 6.35\n0, 0, 0.79375, 0, 6.35\n0, 0, 1.5875, 0, 6.35\n*PLASTI,\u5851\u6599\u6750\u8D28\n0, 0, 0, 0, 6.35\n0, 0, 0.79375, 0, 6.35\n0, 0, 1.5875, 0, 6.35\n0, 0, 3.96875, 0, 6.35\n*SACNCR,\u6DF7\u51DD\u571F\n45, 0, 0, 0, 2.38125\n45, 1.6838, 0, 0, 2.38125, 0, -2.38125\n*SQUARE,\u5BF9\u9F50\u7684\u5C0F\u65B9\u5757\n0, 0, 0, 0, 3.175, 3.175, -3.175\n90, 0, 0, 0, 3.175, 3.175, -3.175\n*STARS,\u516D\u8292\u661F\n0, 0, 0, 0, 5.4992613154, 3.175, -3.175\n60, 0, 0, 0, 5.4992613154, 3.175, -3.175\n120, 1.5875, 2.7496306704, 0, 5.4992613154, 3.175, -3.175\n*STEEL,\u94A2\u6750\u8D28\n45, 0, 0, 0, 3.175\n45, 0, 1.5875, 0, 3.175\n*SWAMP,\u6CBC\u6CFD\u5730\u5E26\n0, 0, 0, 12.7, 21.9970452362, 3.175, -22.225\n90, 1.5875, 0, 21.9970452362, 12.7, 1.5875, -42.4065904724\n90, 1.984375, 0, 21.9970452362, 12.7, 1.27, -42.7240904724\n90, 1.190625, 0, 21.9970452362, 12.7, 1.27, -42.7240904724\n60, 2.38125, 0, 12.7, 21.9970452362, 1.016, -24.384\n120, 0.79375, 0, 12.7, 21.9970452362, 1.016, -24.384\n*TRANS,\u70ED\u4F20\u9012\u6750\u8D28\n0, 0, 0, 0, 6.35\n0, 0, 3.175, 0, 6.35, 3.175, -3.175\n*TRIANG,\u7B49\u8FB9\u4E09\u89D2\u5F62\n60, 0, 0, 4.7625, 8.2488919604, 4.7625, -4.7625\n120, 0, 0, 4.7625, 8.2488919604, 4.7625, -4.7625\n0, -2.38125, 4.1244459802, 4.7625, 8.2488919604, 4.7625, -4.7625\n*ZIGZAG,\u697C\u68AF\u6548\u679C\n0, 0, 0, 3.175, 3.175, 3.175, -3.175\n90, 3.175, 0, 3.175, 3.175, 3.175, -3.175\n\n";
|
|
49388
|
+
declare const CadPatternDef: string;
|
|
47655
49389
|
|
|
47656
49390
|
/**
|
|
47657
49391
|
* Token types used in MText parsing
|
|
@@ -49563,6 +51297,52 @@ declare function getPatternUnitSize(patternDef: any): number;
|
|
|
49563
51297
|
* @public
|
|
49564
51298
|
*/
|
|
49565
51299
|
declare function calculateHatchPatternScale(boundsSize: number, patternName: string, patternDef?: any): number;
|
|
51300
|
+
/**
|
|
51301
|
+
* Options for revision cloud generation.
|
|
51302
|
+
*
|
|
51303
|
+
* @public
|
|
51304
|
+
*/
|
|
51305
|
+
interface RevcloudOptions {
|
|
51306
|
+
/** Chord length of each arc segment. Default 50. */
|
|
51307
|
+
arcLength?: number;
|
|
51308
|
+
/**
|
|
51309
|
+
* Bulge value for each arc.
|
|
51310
|
+
* 1 = semicircle (default), 0.5 ≈ 90° arc, etc.
|
|
51311
|
+
* Negative values flip arc direction.
|
|
51312
|
+
*/
|
|
51313
|
+
bulge?: number;
|
|
51314
|
+
/** Whether the path forms a closed loop. Default false. */
|
|
51315
|
+
isClosed?: boolean;
|
|
51316
|
+
}
|
|
51317
|
+
/**
|
|
51318
|
+
* Generate revision-cloud style BulgePoints from a polyline path.
|
|
51319
|
+
*
|
|
51320
|
+
* Each straight segment between consecutive path points is subdivided
|
|
51321
|
+
* into equal chord-length intervals. Every sub-vertex receives the
|
|
51322
|
+
* specified bulge value (default 1 = semicircle), producing the
|
|
51323
|
+
* characteristic cloud silhouette used by AutoCAD's REVCLOUD command.
|
|
51324
|
+
*
|
|
51325
|
+
* @param pathPoints - Ordered path vertices (at least 2).
|
|
51326
|
+
* Accepts `Point2D`, `[x, y]`, or any `PointInput`.
|
|
51327
|
+
* @param options - Optional generation parameters.
|
|
51328
|
+
* @returns A `BulgePoints` collection ready for `new PolylineEnt(bulgePoints)`.
|
|
51329
|
+
*
|
|
51330
|
+
* @example
|
|
51331
|
+
* ```typescript
|
|
51332
|
+
* import { PolylineEnt, Point2D } from 'vjcad';
|
|
51333
|
+
* import { generateRevcloudBulgePoints } from 'vjcad';
|
|
51334
|
+
*
|
|
51335
|
+
* const bp = generateRevcloudBulgePoints(
|
|
51336
|
+
* [[0, 0], [200, 0], [200, 100], [0, 100]],
|
|
51337
|
+
* { arcLength: 30, isClosed: true }
|
|
51338
|
+
* );
|
|
51339
|
+
* const cloud = new PolylineEnt(bp);
|
|
51340
|
+
* cloud.isClosed = true;
|
|
51341
|
+
* ```
|
|
51342
|
+
*
|
|
51343
|
+
* @public
|
|
51344
|
+
*/
|
|
51345
|
+
declare function generateRevcloudBulgePoints(pathPoints: PointInput[], options?: RevcloudOptions): BulgePoints;
|
|
49566
51346
|
|
|
49567
51347
|
/**
|
|
49568
51348
|
* 生成一个区间的随机整数
|
|
@@ -50577,6 +52357,8 @@ interface FindOptions {
|
|
|
50577
52357
|
wholeWord?: boolean;
|
|
50578
52358
|
/** 使用正则表达式 */
|
|
50579
52359
|
useRegex?: boolean;
|
|
52360
|
+
/** 搜索块参照中的文字 */
|
|
52361
|
+
searchInBlocks?: boolean;
|
|
50580
52362
|
}
|
|
50581
52363
|
/**
|
|
50582
52364
|
* 查找结果项
|
|
@@ -50590,8 +52372,16 @@ interface FindResult {
|
|
|
50590
52372
|
matchedText: string;
|
|
50591
52373
|
/** 匹配的起始位置 */
|
|
50592
52374
|
matchIndex: number;
|
|
50593
|
-
/**
|
|
50594
|
-
entityType:
|
|
52375
|
+
/** 实体类型: TEXT, MTEXT, ATTRIB, BLOCK_TEXT, BLOCK_MTEXT */
|
|
52376
|
+
entityType: string;
|
|
52377
|
+
/** INSERT 实体引用 (ATTRIB 类型时) */
|
|
52378
|
+
blockRef?: EntityBase;
|
|
52379
|
+
/** 属性 tag (ATTRIB 类型时) */
|
|
52380
|
+
attributeTag?: string;
|
|
52381
|
+
/** 块名称 (块参照相关类型时,用于显示) */
|
|
52382
|
+
blockName?: string;
|
|
52383
|
+
/** 块 ID (BLOCK_TEXT/BLOCK_MTEXT 类型时) */
|
|
52384
|
+
blockId?: string;
|
|
50595
52385
|
}
|
|
50596
52386
|
/**
|
|
50597
52387
|
* 文字查找服务类
|
|
@@ -50616,6 +52406,11 @@ declare class FindTextService {
|
|
|
50616
52406
|
* 创建搜索模式
|
|
50617
52407
|
*/
|
|
50618
52408
|
private createPattern;
|
|
52409
|
+
/**
|
|
52410
|
+
* 在块参照中查找文字
|
|
52411
|
+
* 包括 INSERT 实例的属性文字和块定义中的普通 TEXT/MTEXT
|
|
52412
|
+
*/
|
|
52413
|
+
private findInBlocks;
|
|
50619
52414
|
/**
|
|
50620
52415
|
* 查找文字
|
|
50621
52416
|
*
|
|
@@ -50661,6 +52456,14 @@ declare class FindTextService {
|
|
|
50661
52456
|
* @returns 替换的数量
|
|
50662
52457
|
*/
|
|
50663
52458
|
replaceAll(searchText: string, replaceText: string, options?: FindOptions): number;
|
|
52459
|
+
/**
|
|
52460
|
+
* 替换所有块参照中的匹配文字
|
|
52461
|
+
*/
|
|
52462
|
+
private replaceAllInBlocks;
|
|
52463
|
+
/**
|
|
52464
|
+
* 刷新引用指定块的所有 INSERT 实体
|
|
52465
|
+
*/
|
|
52466
|
+
private refreshBlockInserts;
|
|
50664
52467
|
/**
|
|
50665
52468
|
* 高亮当前结果
|
|
50666
52469
|
* 缩放视图到当前匹配的实体位置
|
|
@@ -50682,7 +52485,7 @@ declare class FindTextService {
|
|
|
50682
52485
|
/**
|
|
50683
52486
|
* 支持的实体类型过滤
|
|
50684
52487
|
*/
|
|
50685
|
-
type EntityTypeFilter = 'ALL' | 'LINE' | 'CIRCLE' | 'ARC' | 'POLYLINE' | 'LWPOLYLINE' | 'TEXT' | 'MTEXT' | 'HATCH' | 'INSERT' | 'ELLIPSE' | 'SPLINE' | 'DOT' | 'SOLID' | 'RAY' | 'XLINE';
|
|
52488
|
+
type EntityTypeFilter = 'ALL' | 'LINE' | 'CIRCLE' | 'ARC' | 'POLYLINE' | 'LWPOLYLINE' | 'TEXT' | 'MTEXT' | 'HATCH' | 'INSERT' | 'ELLIPSE' | 'SPLINE' | 'DOT' | 'SOLID' | 'MESH' | 'RAY' | 'XLINE';
|
|
50686
52489
|
/**
|
|
50687
52490
|
* 实体类型选项
|
|
50688
52491
|
*/
|
|
@@ -50869,6 +52672,105 @@ declare class QuickSelectService {
|
|
|
50869
52672
|
getLayerList(): string[];
|
|
50870
52673
|
}
|
|
50871
52674
|
|
|
52675
|
+
interface PatternMatchTolerance {
|
|
52676
|
+
positionAbs: number;
|
|
52677
|
+
positionRel: number;
|
|
52678
|
+
angleDeg: number;
|
|
52679
|
+
lengthRel: number;
|
|
52680
|
+
translateRatio: number;
|
|
52681
|
+
}
|
|
52682
|
+
/** @deprecated Use PatternMatchTolerance instead */
|
|
52683
|
+
type PatternToleranceConfig = PatternMatchTolerance;
|
|
52684
|
+
interface PatternMatchOptions {
|
|
52685
|
+
tolerance: PatternMatchTolerance;
|
|
52686
|
+
enableScale: boolean;
|
|
52687
|
+
scaleRange: [number, number];
|
|
52688
|
+
enableRotation: boolean;
|
|
52689
|
+
rotationRange: [number, number];
|
|
52690
|
+
allowMirror: boolean;
|
|
52691
|
+
matchColor: boolean;
|
|
52692
|
+
matchLayer: boolean;
|
|
52693
|
+
matchTextContent: boolean;
|
|
52694
|
+
maxBeamWidth: number;
|
|
52695
|
+
minInlierRatio: number;
|
|
52696
|
+
maxResults: number;
|
|
52697
|
+
maxAnchorCandidates: number;
|
|
52698
|
+
debug: boolean;
|
|
52699
|
+
}
|
|
52700
|
+
interface MatchTransform {
|
|
52701
|
+
dx: number;
|
|
52702
|
+
dy: number;
|
|
52703
|
+
scale: number;
|
|
52704
|
+
rotation: number;
|
|
52705
|
+
cx: number;
|
|
52706
|
+
cy: number;
|
|
52707
|
+
mirrored: boolean;
|
|
52708
|
+
}
|
|
52709
|
+
interface PatternMatchResult {
|
|
52710
|
+
entityIds: string[];
|
|
52711
|
+
transform: MatchTransform;
|
|
52712
|
+
bounds: [number, number, number, number];
|
|
52713
|
+
score: number;
|
|
52714
|
+
inlierRatio: number;
|
|
52715
|
+
}
|
|
52716
|
+
interface PatternMatchOutput {
|
|
52717
|
+
matches: PatternMatchResult[];
|
|
52718
|
+
patternCenter: [number, number];
|
|
52719
|
+
totalScanned: number;
|
|
52720
|
+
elapsedMs: number;
|
|
52721
|
+
rejectStats: {
|
|
52722
|
+
noTypeMatch: number;
|
|
52723
|
+
signatureFail: number;
|
|
52724
|
+
transformFail: number;
|
|
52725
|
+
inlierFail: number;
|
|
52726
|
+
};
|
|
52727
|
+
debugLog?: string;
|
|
52728
|
+
}
|
|
52729
|
+
declare const defaultPatternMatchOptions: PatternMatchOptions;
|
|
52730
|
+
interface EntityInputData {
|
|
52731
|
+
id: string;
|
|
52732
|
+
type: string;
|
|
52733
|
+
keyPoints: number[][];
|
|
52734
|
+
signature: Record<string, any>;
|
|
52735
|
+
properties: {
|
|
52736
|
+
color: number;
|
|
52737
|
+
layerIndex: number;
|
|
52738
|
+
lineType: number;
|
|
52739
|
+
};
|
|
52740
|
+
bounds: number[];
|
|
52741
|
+
}
|
|
52742
|
+
/**
|
|
52743
|
+
* Convert a single EntityBase to the WASM input format.
|
|
52744
|
+
*/
|
|
52745
|
+
declare function collectEntityData(entity: EntityBase): EntityInputData | null;
|
|
52746
|
+
/**
|
|
52747
|
+
* Collect all entities from the current model space.
|
|
52748
|
+
*/
|
|
52749
|
+
declare function collectAllEntities(): EntityInputData[];
|
|
52750
|
+
interface PreFilterOptions {
|
|
52751
|
+
filterLayers?: string[];
|
|
52752
|
+
filterBounds?: {
|
|
52753
|
+
minX: number;
|
|
52754
|
+
minY: number;
|
|
52755
|
+
maxX: number;
|
|
52756
|
+
maxY: number;
|
|
52757
|
+
} | null;
|
|
52758
|
+
}
|
|
52759
|
+
/**
|
|
52760
|
+
* Run pattern matching via WASM with aggressive pre-filtering.
|
|
52761
|
+
*/
|
|
52762
|
+
declare function findPatternMatches(patternEntities: EntityBase[], allEntities: EntityBase[], options: PatternMatchOptions, preFilter?: PreFilterOptions): PatternMatchOutput;
|
|
52763
|
+
|
|
52764
|
+
interface ConvertToBlockOptions {
|
|
52765
|
+
blockName?: string;
|
|
52766
|
+
useFirstAsDefinition?: boolean;
|
|
52767
|
+
textToAttribute?: boolean;
|
|
52768
|
+
}
|
|
52769
|
+
/**
|
|
52770
|
+
* Convert matched pattern groups into blocks.
|
|
52771
|
+
*/
|
|
52772
|
+
declare function convertMatchesToBlocks(patternEntities: EntityBase[], matches: PatternMatchResult[], options?: ConvertToBlockOptions): string | null;
|
|
52773
|
+
|
|
50872
52774
|
/**
|
|
50873
52775
|
* @packageDocumentation
|
|
50874
52776
|
* 空间索引模块
|
|
@@ -51072,6 +52974,8 @@ declare class PluginManager {
|
|
|
51072
52974
|
private static instance;
|
|
51073
52975
|
/** 已加载的插件 Map<插件ID, 插件实例> */
|
|
51074
52976
|
private plugins;
|
|
52977
|
+
/** 正在加载中的插件 Map<packageName, Promise> — 用于防止重复加载 */
|
|
52978
|
+
private loadingPromises;
|
|
51075
52979
|
private constructor();
|
|
51076
52980
|
/**
|
|
51077
52981
|
* 获取插件管理器单例实例
|
|
@@ -51082,6 +52986,31 @@ declare class PluginManager {
|
|
|
51082
52986
|
* @internal
|
|
51083
52987
|
*/
|
|
51084
52988
|
static resetInstance(): void;
|
|
52989
|
+
/**
|
|
52990
|
+
* 按插件包名加载插件
|
|
52991
|
+
*
|
|
52992
|
+
* 自动推断 URL 并加载插件,具备以下特性:
|
|
52993
|
+
* - 如果插件已加载且处于 Active 状态,直接返回插件 ID(不重复加载)
|
|
52994
|
+
* - 如果插件正在加载中,等待加载完成后返回(不重复发起请求)
|
|
52995
|
+
* - 如果未加载,从推断的 URL 加载
|
|
52996
|
+
*
|
|
52997
|
+
* @param packageName - 插件包名,如 'vcad-plugin-architecture'
|
|
52998
|
+
* @param options - 加载选项,额外支持 baseUrl 自定义插件路径
|
|
52999
|
+
* @returns 插件ID
|
|
53000
|
+
*
|
|
53001
|
+
* @example
|
|
53002
|
+
* ```typescript
|
|
53003
|
+
* const pm = PluginManager.getInstance();
|
|
53004
|
+
* // 从 ./plugins/vcad-plugin-architecture.js 加载
|
|
53005
|
+
* await pm.loadByName('vcad-plugin-architecture');
|
|
53006
|
+
*
|
|
53007
|
+
* // 自定义路径
|
|
53008
|
+
* await pm.loadByName('vcad-plugin-architecture', { baseUrl: '/static/plugins/' });
|
|
53009
|
+
* ```
|
|
53010
|
+
*/
|
|
53011
|
+
loadByName(packageName: string, options?: PluginLoadOptions & {
|
|
53012
|
+
baseUrl?: string;
|
|
53013
|
+
}): Promise<string>;
|
|
51085
53014
|
/**
|
|
51086
53015
|
* 从 URL 加载插件
|
|
51087
53016
|
*
|
|
@@ -51746,7 +53675,7 @@ declare const drawPatternFill: (fillEntity: HatchEnt, graphics: CadGraphics, col
|
|
|
51746
53675
|
* @param {number} color - 颜色
|
|
51747
53676
|
* @param {number} alpha - 透明度
|
|
51748
53677
|
*/
|
|
51749
|
-
declare const drawPolyline: (polylineEntity: any, graphics: CadGraphics, color: number, alpha: number) => void;
|
|
53678
|
+
declare const drawPolyline: (polylineEntity: any, graphics: CadGraphics, color: number, alpha: number, useWideLine?: boolean, lwValue?: number) => void;
|
|
51750
53679
|
/**
|
|
51751
53680
|
* 绘制实体填充的函数
|
|
51752
53681
|
* @param {Object} dotEntity - 实体填充对象
|
|
@@ -52312,21 +54241,21 @@ declare const palettePlotIcons: Record<string, string>;
|
|
|
52312
54241
|
|
|
52313
54242
|
//# sourceMappingURL=index.d.ts.map
|
|
52314
54243
|
|
|
52315
|
-
export { ANGLE_0, ANGLE_135, ANGLE_180, ANGLE_225, ANGLE_270, ANGLE_315, ANGLE_360, ANGLE_45, ANGLE_90, ANSI31_PATTERN, ANSI37_PATTERN, AboutCommand, ActiveButton, ActivityBar, ActivityBarElement, AddEntitiesUndoCommand, AdvancedEditMenu, AliasListPalette, AlignedDimensionEnt, AlignmentTextCommand, AngleBlockCommand, AngleDimensionEnt, AngleHatchCommand, AngleTextCommand, AntiAliasSetvar, AppDisableIconSvg, AppIconSvg, AppearanceMenu, ArcCircleProperties, ArcCommand, ArcDimensionEnt, ArcDrawer, ArcEnt, ArcModifyUndoCommand, ArcSymbolType, AreaCalculationCollection, AreaCalculationElement, ArrowRenderer, ArrowTypeEnum, AttributeTextProcessor, AutoComplete, AutoCompleteElement, AutoComplteRow, AutoComplteRowElement, BOOLEAN_OPERATORS, BSplineConstructor, BaseDialogComponent, BaseGraphicsProperties, BaseMessage, BasicEditMenu, BezierEnt, BlockAddUndoCommand, BlockCommand, BlockDefinition, BlockModifyUndoCommand, BlockNameDialog, BlockRedefineUndoCommand, BlockReference, BlockRemoveUndoCommand, BlockSortUndoCommand, Blocks, BlocksPalette, BottomBar, BoundingBox, BoundingBoxCommand, BoxCommand, BoxModifyUndoCommand, BranchCreateDialog, BranchMergeDialog, BucketEntityRenderer, BulgePoint, BulgePoints, BurstTextCommand, ButtonEle, CLayerSetvar, CadDocument, CadEventEmitter, CadEventManager, CadEvents, CadGraphics, CadMapOverlay, CadPatternDef, CanvasController, CeColorSetvar, CenterMarker, ChangeColorCommand, ChangeLTypeCommand, ChangeLTypeScaleCommand, ChangeLayerCommand, ChangeLineWeightCommand, ChangeLineWeightDialog, ChangeTranspCommand, CircleCommand, CircleDrawer, CircleEnt, CircleMarker, CircleModifyUndoCommand, ClipMode, ClipboardObj, CloseCommand, CloseXCommand, ColorConverter, ColorDialogOptions, ColorPanelDialog, CommandAlias, CommandAliasManager, CommandDefinition, CommandLine, CommandListPalette, CommandOptions, CommandRegistry, CommandResult, ConflictResolutionDialog, ContextMenu, ContextMenuAction, ContextMenuItem, ContinueDimensionCommand, ControlPoint, ControlPoints, CoordinateAxesDraw, CoordinateSystemIndicatorDraw, CoordinateSystemType, CoordinateTransform, CoordsBar, CoordsPalette, CopyBaseCommand, CopyClipCommand, CopyCommand, CornerInputHandler, CornerInputOptions, CornerSelectionHandler, CountBlockCommand, CountTextCommand, CreateAlignedDimensionCommand, CreateAngleDimensionCommand, CreateArcLengthDimensionCommand, CreateDiametricDimensionCommand, CreateLinearDimensionCommand, CreateMLeaderCommand, CreateMenu, CreateOrdinateDimensionCommand, CreateRadialDimensionCommand, CreateSymbolCommand, CrosshairCursorDraw, CtbPalette, CurrentLayerUndoCommand, CustomEntityBase, CustomEntityRegistry, CutBaseCommand, CutClipCommand, CutRecCommand, DLineCommand, DbArc, DbBackgroundConfig, DbBlock, DbBlockRef, DbBlocks, DbBox, DbBulgePoint, DbBulgePoints, DbCircle, DbControlPoints, DbDText, DbDimLinear, DbDimStyle, DbDimStyles, DbDoc, DbDocEnv, DbDotEntity, DbEdge, DbEllipse, DbEntity, DbHatch, DbImage, DbImageRef, DbImages, DbLayer, DbLayers, DbLayout, DbLayouts, DbLine, DbMText, DbPadding, DbPixelPoint, DbPline, DbPlotConfig, DbPoint, DbPoint2d, DbRay, DbSolid, DbSpline, DbSplineControlPoint, DbTextStyle, DbTextStyles, DbXline, DefaultDimensionStyle, DialogColors, DiametricDimensionEnt, DiamondMarker, DimMenu, DimScaleUndoCommand, DimStyleCommand, DimStyleDialog, DimStyleEditDialog, DimensionAngularFormat, DimensionArrowType, DimensionBase, DimensionFitMode, DimensionFormatter, DimensionStyle, DimensionStyles, DimensionTextAlignment, DimensionTextLayout, DimensionTextMovementMode, DimensionTextVerticalPosition, DimensionType, DimensionUnitFormat, DistCommand, DocDropDown, DocDropDownElement, DocEnv, DocumentTabItem, DocumentTabs, Documents, DonutCommand, DotCommand, DotEnt, DrawAdvancedMenu, DrawBezierCurve, DrawMenu, DrawOrderBackCommand, DrawOrderBackUndoCommand, DrawOrderFrontCommand, DrawOrderFrontUndoCommand, DrawSettingsPalette, DrawingBrowserDialog, DrawingBrowserDialogElement, DrawingManagerService, DropEffectComponent, DynamicMenuPanel, EHatchCommand, ENTITY_TYPE_OPTIONS, Edge, EdgeType, Edges, EditMenu, Editor, EllipseCommand, EllipseDrawer, EllipseEnt, EmptyCommandAlias, EndPointMarker, EndUndoCommand, Engine, EntityBase, EntityBoundsCalculator, EntityColorUndoCommand, EntityLayerUndoCommand, EntityLineTypeScaleUndoCommand, EntityLineTypeUndoCommand, EntityLineWeightUndoCommand, EntityModifyUndoCommand, EntityPickResult, EntityPicker, EntityReactorManager, EntityRenderer, EntitySelectionSplitter, EntitySelector, EntityStatsCommand, EntityTransparencyUndoCommand, EntityUndoCommand, EraseCommand, EraseEntitiesUndoCommand, ExecuteJsCommand, ExecuteStrCommand, ExplodeCommand, ExportDwgOptionsDialog, ExportToDwgCommand, ExtendCommand, ExtendedGraphicsProperties, FileMenuPanel, FilesPalette, FilletCommand, FindReplaceCommand, FindTextService, FitMapViewCommand, FontLoader, FuncButtons, GArc, GBulgePolyline, GCircle, GEllipse, GLine, GPolyline, GeoBounds, GeoPoint, GeoProjection, GeometryCalculator, GeometryUtils, GetInfoCommand, GraphicsBucket, GraphicsBucketManager, GraphicsInfoCommand, GridDisplayDraw, GridModeButton, GripCommand, GripEditor, GripManager, GripMarker, GripUtils, GroupCommand, GroupEnt, HATCH_PATTERN_NAMES, HandleFileDrop, HatchCommand, HatchEnt, HatchLoops, HatchMoveCommand, HatchPatternConfig, HelpMenu, HiddenLineDrawer, HistoryEle, IconCategory, IconRegistry, IdCommand, IdMapping, ImageAdjustCommand, ImageClipCommand, ImageCollection, ImageCommand, ImagePaletteAddCommand, ImagePaletteInsertCommand, ImageRef, ImageRefEnt, ImageRefModifyUndoCommand, ImageSource, ImageSourceAddUndoCommand, ImageSourceRemoveUndoCommand, ImagesPalette, ImportDwgOptionsDialog, ImportFromDwgCommand, Initializer, InputDialog, InputDialogElement, InputNumberDialog, InputResult, InputStatusEnum, InsertCommand, InsertEnt, InsertMenu, InsertSvgCommand, InsertSymbolCommand, InsertionMarker, IntegerInputHandler, IntegerInputOptions, IntegerResult, ItemCollection, JIS_LC_20_PATTERN, JIS_LC_8_PATTERN, JIS_RC_10_PATTERN, JIS_RC_15_PATTERN, JIS_RC_18_PATTERN, JIS_RC_30_PATTERN, JIS_WOOD_PATTERN, JustifyTextCommand, KeywordInputHandler, KeywordInputOptions, KeywordResult, LINE_WEIGHT_VALUES, LTScaleSetvar, LayAllOffCommand, LayAllOnCommand, LayCurCommand, LayDrawBackCommand, LayDrawFrontCommand, LayMCurCommand, LayPickOffCommand, LayPickOnCommand, LayRevCommand, LaySSOffCommand, LaySSOnCommand, LayTblColorCommand, Layer, LayerAddUndoCommand, LayerAlphaCell, LayerColorCell, LayerCommand, LayerCurrentCell, LayerFrozenCell, LayerLTScaleCell, LayerLinetypeCell, LayerLineweightCell, LayerLockedCell, LayerModifyUndoCommand, LayerNameCell, LayerNameDialog, LayerNameDialogElement, LayerOnCell, LayerPaletteCommand, LayerPlottableCell, LayerReference, LayerRemoveUndoCommand, LayerReverseUndoCommand, LayerSelectionDialog, LayerSortUndoCommand, LayerTransparencyDialog, LayerTransparencyDialogElement, Layers, Layout, Layouts, LeaderDirectionType, LeaderType, LineCommand, LineDrawer, LineEnt, LineModifyUndoCommand, LineTypeDialog, LineTypeDialogElement, LineTypeDialogOptions, LineTypeEnum, LineTypeScaleUndoCommand, LinearCopyCommand, LinearDimensionEnt, LinetypeDefinition, LinetypeEditorDialog, LinetypeElement, LinetypeElementType, LinetypeLoadCommand, LinetypeManager, LinetypeParser, LinetypeViewerDialog, LitElement, LocalDrawingBrowserDialog, LocalDrawingBrowserDialogElement, LocalStorageService, MLeaderContentType, MLeaderEnt, MTextAttachmentEnum, MTextColor, MTextCommand, MTextContext, MTextEditCommand, MTextEnt, MTextLineAlignment, MTextParagraphAlignment, MTextParser, MTextStroke, MTextToken, MagTextCommand, MainView, MainViewElement, MakeLayerCommand, ManageSymbolCommand, MapOpenWay, MatChPropCommand, MeasureAngleCommand, MeasureMenu, MenuBar, MenuConfig, MenuItem, MenuRegistry, Menus, MessageBoxComponent, MessageBoxConfig, MidGripMarker, MidPointMarker, MirrorCommand, MirrorEntitiesUndoCommand, ModalDialogBase, ModelessPanelBase, MoveCommand, MoveEntitiesUndoCommand, NUMBER_OPERATORS, NearestMarker, NewCommand, NumberInputComponent, ObservablePoint2D, OffsetCommand, OffsetCurrentCommand, OffsetDefaultCommand, OffsetDeleteCommand, OpenCommand, OpenFromLocalCommand, OpenFromServerCommand, OperationTypeEnum, OrdinateDimensionEnt, OrthoModeButton, OrthoModeSetvar, OsModeSetvar, OsnapButton, OsnapCursor, OsnapMarkerContainer, OtherGraphicsProperties, Padding, PanUndoCommand, PanViewUndoCommand, PanelController, ParallelogramCommand, PasteClipCommand, PathCommandType, PatternEditorDialog, PatternLoadCommand, PatternManager, PatternPickerDialog, PatternViewerDialog, PerformanceMonitor, PerpendicularMarker, PickUtils, PixelPointCommand, PixelPointEnt, PlanCommand, PlanViewUndoCommand, PlineCommand, PlineJoinCommand, PlineWidSetvar, PlotAreaDraw, PlotColorStyle, PlotConfig, PlotStyle, PlotStyles, PluginCacheService, PluginContext, PluginError, PluginLoader, PluginManager, PluginManagerDialog, PluginMarketService, PluginOrigin, PluginSourceType, PluginState, PluginsCommand, Point2D$1 as Point2D, PointAndOsnapResult, PointInputOptions, PointInputResult, PointPrompt, PolarCopyCommand, PolarModeButton, PolarTracking, PolygonCommand, PolylineEnt, PolylineModifyUndoCommand, PreviewView, PromptEle, PropertiesCommand, PropertyMenu, PropertyPalette, PurgeBlocksCommand, PurgeCommand, PurgeImageCommand, PurgeLayerCommand, QBlockCommand, QSaveCommand, QuadrantMarker, QuickSelectCommand, QuickSelectService, RadialDimensionEnt, RayCommmand, RayDCommand, RayEnt, RayLCommand, RayModifyUndoCommand, RayRCommand, RayUCommand, ReactorEvent, ReactorEventBridge, ReactorNotifier, RealInputHandler, RealInputOptions, RealResult, RecentCommandsManager, RectangCommand, RedoCommand, RegenAllCommand, RegenCommand, RenameBlockCommand, RenderConfig, RenderOriginCommand, ReplaceBlockCommand, ResetImageClipCommand, RibbonBar, RibbonButton, RibbonConfigManager, RibbonGroup, RotateCommand, RotateEntitiesUndoCommand, RotationGripMarker, RubberBandLineDraw, SCOPE_OPTIONS, SELECTION_MODE_OPTIONS, SETTINGS_DEFINITIONS, STRING_OPERATORS, SaveAsCommand, SaveAsDialogComp, SaveDrawingDialog, SaveDrawingDialogElement, SaveToLocalCommand, SaveToServerCommand, ScaleBarDraw, ScaleCommand, ScaleEntitiesUndoCommand, ScriptExecutor, ScriptParser, SelectAllCommand, SelectionCycler, SelectionInputOptions, SelectionModeEnum, SelectionRectangleDraw, SelectionSetInputOptions, SelectionSetInputResult, ServerMapSelectorDialog, Service, SettingsCacheService, SettingsCommand, SettingsDialog, ShapeDefinition, ShapeLinetypeElement, ShapeManager, ShapeParser, ShapePath, ShapeRenderer, SideBarFrame, SideBarFrameElement, SidePalettes, SidebarStyBoth, SidebarStyLeft, SidebarStyNone, SidebarStyRight, SidebarStySetvar, SimpleLinetypeElement, SingleEntitySelector, SnapPoint, SolidCommand, SolidEnt, SpatialIndex, SpatialIndexManager, SplineCommand, SplineControlPoint, SplineControlPoints, SplineEnt, SplineFitPoint, SplineFitPoints, SplineKnots, SplitterController, SquareCursorDraw, SsAlignCommand, SsExtendCommand, SsSliceCommand, SsTrimCommand, StartUndoCommand, StatsCommand, StretchCommand, StretchEntitiesUndoCommand, StretchUndoCommand, StringInputHandler, StringInputOptions, StringResult, SwitchWorkspaceCommand, SystemConstants, SystemMessage, TOLERANCE, TangentMarker, TextAlignmentEnum$1 as TextAlignmentEnum, TextAttachmentType, TextCommand, TextCopyCommand, TextEditCommand, TextEnt, TextGripMarker, TextLinetypeElement, TextModifyUndoCommand, TextProperties, TextRotationMode, TextScanner, TextStyle, TextStyles, ThemeButton, ThreePointAngularDimensionEnt, TileAlphaSetvar, TileCache, TileCalculator, TileEditAreaCommand, TileEditLayerCommand, TileEditLayerDialog, TileMaskAlphaSetvar, TileScheduler, TokenType, ToolBar, ToolMenu, TransparencyManager$1 as TransparencyManager, TrimCommand, TwoLineAngularDimensionEnt, Txt2MTxtCommand, UCSAxesDraw, UcsCommand, UcsUndoCommand, UndoCommand, UndoCommandBase, UndoManager, UngroupCommand, ViewMenu, WblockCommand, WebCadCoreService, WheelZoomUndoCommand, WmsTileLayer, XLineEnt, XTextCommand, XlineCommand, XlineModifyUndoCommand, XxCommand, YesNoDialog, YesNoDialogConfig, YesNoDialogElement, YyCommand, ZeroSuppressionFlags, ZoomExtentsCommand, ZoomFactorSetvar, ZoomViewUndoCommand, actbarIcons, addTextReplacementRule, applyDecorators, applyTextReplacements, boundsIntersect, buildIndexedString, buttonBarStyles, buttonStyles, calcForceAngle, calculateBoundingBoxFromPoints, calculateDoubleLinePoints, calculateHatchPatternScale, calculateLineIntersections, calculatePerpendicularPoint, calculatePolygonArea, calculateStringWidth, calculateTextOffset, check3DBoundingBoxIntersection, checkGroupIntersection, checkHatchIntersection, checkPatternHatchIntersection, checkPolylineIntersection, checkTextBoundsIntersection, checkboxStyles, clearEntityDirtyFlags, clearTextReplacementRules, closeDoubleLineSegment, colorIndexToName, colorNameToIndex, commandsIcons, commoncss, compareArrays, containerStyles, convertArcToDeviceCoordinates, convertGArcToDeviceCoordinates, convertLineToDeviceCoordinates, convertToFloat64, convertToHexArray, createBSplineWithDomain, createBulgePointsFromEntities, createCancellableEventArgs, createDataTypeAccessor, createDimensionArrow, createDoubleButtCap, createDoubleLineSegment, createDoubleRoundCap, createDoubleSquareCap, createDynamicMenuPanel, createEventArgs, createIndexAccessor, createNoShadowStyles, createPanel, css, customElementDecorator, darkThemeStyles, darkThemeVarsStr, decodeUnicodeString, decryptFromBase64, defaultContextMenuItems, defaultDocumentTabsConfig, defaultPropertyOptions, defaultRibbonConfig, degreesToRadians, delay, destroyFindReplacePanel, destroyQuickSelectPanel, detectDataType, dialogBaseStyles, distance, drawFilledRegion, drawPatternFill, drawPolyline, drawSolidFill, encryptToBase64, endUndoMark, entitiesToPolylineVertices, escapeDxfLineEndings, expandArc, extractDefaultExport, extractTables, filterHatchSegments, findIntersections, findLineArcIntersections, findLineCircleIntersections, findSubArray, formRowStyles, formatAngleValue, formatDate, formatDimensionValue, formatNumber, formatNumberEx, funcButtonsIcons, generateHatchPatternLines, geoBounds, geoPoint, getAllArrowTypes, getAngleBetweenPoints, getArcBoundingBox, getArcCircleIntersections, getArcEntityIntersections, getArcExtExtendedEntityIntersections, getArcExtLineExtIntersections, getArcExtendedEntityIntersections, getArcLineExtIntersections, getArcLineIntersections, getArcLineIntersectionsAlt, getArcLineIntersectionsEx, getArcLineIntersectionsSimple, getArrowTypeName, getCadDialogContainer, getCadViewContainer, getCircleArcIntersectionsFiltered, getCircleCircleIntersections, getCircleEntityIntersections, getCircleEntityIntersectionsSimple, getCircleLineExtIntersections, getCircleLineExtIntersectionsEx, getCircleLineIntersections, getCircleLineIntersectionsAdvanced, getCircleLineIntersectionsSimple, getCirclePolylineIntersections, getComplexLineIntersection, getCorner, getDirPath, getDocumentStatusIndicator, getEntity, getEntityAlpha, getEntityBounds, getExtendedEntityPolylineIntersections, getFileExtension, getFileName, getFileNameBase, getFilePath, getFileTypeByExtension, getFonts, getInteger, getKeyword, getLineBoundingBox, getLineCircleIntersections, getLineEntityCollectionIntersections, getLineEntityIntersections, getLineExtArcExtIntersections, getLineExtArcIntersections, getLineExtEntityIntersections, getLineExtEntityIntersectionsEx, getLineExtExtendedEntityIntersections, getLineExtLineExt1Intersections, getLineExtLineExtIntersections, getLineExtLineIntersections, getLineExtendedEntityIntersections, getLineIntersection, getLineIntersections, getLineLineExt1Intersections, getLineLineExtIntersections, getLineLineIntersections, getLineSegmentIntersection, getLocalStorageService, getMidPoint, getObjectLineExtLineExt2Intersections, getObjectLineExtLineIntersections, getObjectLineLineExt2Intersections, getOsnapValueFromString, getParameterDomain, getPatternUnitSize, getPoint, getRawObject, getReal, getRecentCommandsManager, getSelections, getServiceHash, getSettingsCacheService, getString, getTableExtractLayers, getTextReplacementRules, getWebCadCoreService, globalShapeManager, hasAnyChildDirty, hasInlineFormattingCodes, hasInvalidChars, headerStyles, hitTestCircle, hitTestEllipse, hitTestGroup, hitTestPattern, hitTestPolyline, hitTestRect, hitTestSpline, html, httpHelper, initCadContainer, inputStyles, int2rgb, isAllElementsEqual, isArcType, isArrayOrArrayBufferView, isCircleType, isEllipseType, isEntityInArray, isEntityReactor, isEqual, isGArc, isGCircle, isGEllipse, isGLine, isGreater, isGreaterOrEqual, isHalfWidthChar, isLess, isLessOrEqual, isLineExists, isLineType, isNdArray, isNullOrUndefined, isPointEqual, isPointOnRay, isTextIntersectWithBox, isTypedArrayView, layerDialogIcons, lineWeightToString, loadingStyles, menubarIcons, mergeBoundingBoxes, message, miscIcons, monitorExports, noChange, normalizeAngle, normalizeAngleAlt, normalizeAngleEx, normalizeDegrees, nothing, numberToString, offsetLine, openMapDarkStyle, openMapLightStyle, osnapIcons, paletteIcons, paletteLayerIcons, palettePlotIcons, panelTitleStyles, parseConfigValue, parseMText, parseMTextToTextObjects, parseNumberToStr, parseTileKey, performanceMonitorInstance, pointInPolygon, polarToCartesian, propertyDecorator, propertyDecoratorFactory, querySelectorDecorator, radiansToDegrees, radioStyles, randInt, readUint16LittleEndian, refreshRemainModelEntities, regen, removeDuplicatePoints, removeTextReplacementRule, removeTimeStamp, resetToDefaultRules, resultsStyles, rgb2int, rotatePointAroundCenter, rotatePointInPlace, roundToDecimalPlace, safeCustomElementRegistration, scalePointAlongVector, scalePointInPlace, sectionStyles, selectStyles, showConfirm, showError, showExportDwgOptionsDialog, showImportDwgOptionsDialog, showInfo, showInputDialog, showPluginManagerDialog, showPrompt, showSelectDialog, showTileEditLayerDialog, showWarningConfirm, sliderStyles, sortEdgeByArea, ssGetFirst, ssSetFirst, startUndoMark, statusStyles, tea, textAlignStringToEnum, tileKey, toPoint2D, transparencyToString, trimWhitespace, unsafeSVGHtml, updateTimeStamp, wrapTextToLines, writeMessage };
|
|
52316
|
-
export type { AlignedDimensionData, AngleDimensionData, AngularFormatConfig, ArcDimensionData, ArrowRenderConfig, ArrowRenderResult, ArrowType, BlockAddedEventArgs, BlockAddingEventArgs, BlockDeletedEventArgs, BlockDeletingEventArgs, BlockModifiedEventArgs, BooleanOperator, BranchCreatedEventArgs, BranchCreatingEventArgs, BranchDeletedEventArgs, BranchDeletingEventArgs, BranchInfo, BranchMergedEventArgs, BranchMergingEventArgs, BranchSwitchedEventArgs, BranchSwitchingEventArgs, CadBoundsLike, CadEventArgs, CadMapOverlayOptions, CancellableEventArgs, CommandCancelledEventArgs, CommandClass, CommandEndedEventArgs, CommandStartedEventArgs, CommandStartingEventArgs, Config, ConflictDetectedEventArgs, ConflictItem, ConflictResolution, ConflictResolvedEventArgs, ConflictResolvingEventArgs, ConflictSkippedEventArgs, ConflictType, ContextMenuItemClickedEventArgs, ContextMenuItemInfo, ContextMenuOpenedEventArgs, ContextMenuOpeningEventArgs, CurrentLayerChangedEventArgs, CustomEntityDbData, DiametricDimensionData, DimStyleDialogResult, DimStyleEditResult, DimensionBaseData, DimensionStyleData, DocumentCacheClearedEventArgs, DocumentCachedEventArgs, DocumentCachingEventArgs, DocumentClosedEventArgs, DocumentClosingEventArgs, DocumentCreatedEventArgs, DocumentCreatingEventArgs, DocumentDownloadedEventArgs, DocumentDownloadingEventArgs, DocumentModifiedEventArgs, DocumentOpenedEventArgs, DocumentOpeningEventArgs, DocumentRestoredEventArgs, DocumentRestoringEventArgs, DocumentSavedEventArgs, DocumentSavingEventArgs, DocumentStorageSource, DocumentSwitchedEventArgs, DocumentSyncStatusChangedEventArgs, DocumentTabsConfig, DocumentUploadedEventArgs, DocumentUploadingEventArgs, DoubleLinePoints, DoubleLineSegment, EntitiesAddedEventArgs, EntitiesAddingEventArgs, EntitiesErasedEventArgs, EntitiesErasingEventArgs, EntityAddedEventArgs, EntityAddingEventArgs, EntityErasedEventArgs, EntityErasingEventArgs, EntityModifiedEventArgs, EntityOperationOptions, EntityTypeFilter, EntityTypeOption, EventArgsMap, EventHandler, FillLoopBounds, FillLoopData, FilterCondition, FindOptions, FindResult, FitDecision, FontInfo, FormatConfig, GBulgePoint, GeoPointLike, GraphicsBucketManagerConfig, GraphicsPrimitiveStats, GripPointResult, GripPointType, IAdminEditPolicy, IAllDrawingsResponse, IBranchCreateDialogConfig, IBranchCreateDialogResult, IBranchInfo, IBranchMergeDialogConfig, IBranchMergeDialogResult, IBranchSourceInfo, IComposeNewMap, IConditionQueryFeatures, IConflictEntityInfo, IConflictItem, IConflictLayerInfo, IConflictResolutionConfig, IConflictResolutionResult, ICreateBranchParams, ICreateBranchResponse, ICreateEntitiesGeomData, ICreateSymbolParams, IDeleteBranchParams, IDeleteBranchResponse, IDeleteCache, IDeleteStyle, IDeleteWebcadDrawParams, IDeleteWebcadDrawResponse, IDrawingBrowserResult, IEditArea, IEditAreaBounds, IEditAreaRecord, IEntityReactor, IEntityResolution, IExportDwgOptions, IExportDwgOptionsResult, IExportLayout, IExportToDwgDialogConfig, IExportToDwgParams, IExportWebcadParams, IExportWebcadResponse, IExprQueryFeatures, IExtractTable, IGetWebcadDataParams, IGetWebcadDataResponse, IImportDwgOptions, IImportDwgOptionsResult, ILayerInfo, IListWebcadDrawsParams, IListWebcadDrawsResponse, ILoadEditAreaResult, ILoadEditAreasResult, ILoadEditLayersResult, ILocalDrawingBrowserResult, ILocalDrawingListItem, ILocalDrawingRecord, ILocalSymbolCategory, ILocalSymbolRecord, IMapDiff, IMapLayer, IMapStyleParam, IMatchObject, IMergeBranchParams, IMergeBranchResponse, IOpenDrawingParams, IOpenDrawingResult, IOpenMapBaseParam, IOpenMapParam, IOpenMapResponse, IPatchInfo, IPluginContext, IPointQueryFeatures, IQueryBaseFeatures, IRectQueryFeatures, IRequest, ISaveDrawingDialogConfig, ISaveDrawingDialogResult, ISaveDrawingParams, ISaveWebcadPatchParams, ISaveWebcadPatchResponse, IServerMapInfo, IServerMapSelectResult, IServerMapVersion, ISliceCacheZoom, ISliceLayer, ISplitChildMaps, ISymbol, ISymbolCategory, ISymbolConfig, ISymbolListQuery, ISymbolListResult, ISymbolMeta, ITileEditLayerDialogConfig, ITileEditLayerDialogResult, ITileUrlParam, IUpdateMapParam, IUpdateStyle, IUpdateSymbolParams, IUploadMapResult, IVcadEditArea, IVcadMeta, IWebcadDrawInfo, IWmsTileUrl, IWorkspace, IconInfo, IconRegistryOptions, InitializerOptions, InputDialogConfig, InputDialogResult$1 as InputDialogResult, LayerAddedEventArgs, LayerAddingEventArgs, LayerCreateOptions, LayerDeletedEventArgs, LayerDeletingEventArgs, LayerModifiedEventArgs, LeaderData, LeaderLineData, LineSegmentInfo, LineType, LinearDimensionData, MLeaderData, MainViewConfig, MarketplacePluginInfo, MenuConfig2, MenuItemConfig, MenuItemOptions, ModalDialogOptions, NumberOperator, OpenModeType, OpenWayType, OperationType, Operator, OperatorOption, OrdinateDimensionData, OrdinateDisplayMode, OsnapInfo, OwnerReference, PanelManager, PanelPosition, ParsedLine, PatchAppliedEventArgs, PatchApplyingEventArgs, PatchCreatedEventArgs, PatchCreatingEventArgs, PatchInfo, PatchRevertedEventArgs, PatchRevertingEventArgs, PathCommand, Plugin, PluginActivatedEventArgs, PluginActivatingEventArgs, PluginCacheEntry, PluginConfig, PluginDeactivatedEventArgs, PluginDeactivatingEventArgs, PluginErrorEventArgs, PluginInfo, PluginInstance, PluginLoadOptions, PluginLoadResult, PluginLoadedEventArgs, PluginLoadingEventArgs, PluginManifest, PluginMarketResponse, PluginSource, PluginUnloadedEventArgs, PluginUnloadingEventArgs, PointInput, PreviewViewConfig, PropertyDefinition, PropertyInfo, PropertyType, QuickSelectResult, RadialDimensionData, ReactorEventArgs, ReactorRelationData, RecentCommand, Response, RibbonButtonConfig, RibbonButtonType, RibbonConfig, RibbonGroupConfig, RibbonGroupDisplayMode, RibbonTabConfig, ScopeOption, ScriptContext, SearchScope, SelectDialogConfig, SelectionChangedEventArgs, SelectionClearedEventArgs, SelectionMode, SelectionModeOption, SettingDefinition, SettingOption, SettingValueType, SettingsDialogResult, Point2D as ShapePoint2D, ShapeRenderOptions, SnapPointResult, SnapPointType, StringOperator, SubGeometry, SyncStatus, TabContextMenuItem, TableAttr, TableData, TableExtractInput, TableExtractOptions, TableExtractParams, TableExtractResult, TableItemData, TemplateResult, TextAlignment, TextLayoutResult, TextPositionConfig, ThreePointAngularDimensionData, TileCoord, TileDebugInfo, TileRequest, TileSchedulerEvents, TileSprite, TileState, TileUpdateParams, ToleranceConfig, TwoLineAngularDimensionData, View3DMode, ViewPannedEventArgs, ViewRegeneratedEventArgs, ViewZoomedEventArgs, WmsTileConfig, YesNoDialogResult, YesNoDialogType };
|
|
54244
|
+
export { ANGLE_0, ANGLE_135, ANGLE_180, ANGLE_225, ANGLE_270, ANGLE_315, ANGLE_360, ANGLE_45, ANGLE_90, ANSI31_PATTERN, ANSI37_PATTERN, AboutCommand, ActiveButton, ActivityBar, ActivityBarElement, AddEntitiesUndoCommand, AdvancedEditMenu, AliasListPalette, AlignedDimensionEnt, AlignmentTextCommand, AngleBlockCommand, AngleDimensionEnt, AngleHatchCommand, AngleTextCommand, AntiAliasSetvar, AppDisableIconSvg, AppIconSvg, AppearanceMenu, ArcCSACommand, ArcCSECommand, ArcCSLCommand, ArcCircleProperties, ArcCommand, ArcDimensionEnt, ArcDrawer, ArcEnt, ArcModifyUndoCommand, ArcSCACommand, ArcSCECommand, ArcSCLCommand, ArcSEACommand, ArcSEDCommand, ArcSERCommand, ArcSymbolType, AreaCalculationCollection, AreaCalculationElement, ArrowRenderer, ArrowTypeEnum, AttributeTextProcessor, AutoComplete, AutoCompleteElement, AutoComplteRow, AutoComplteRowElement, BOOLEAN_OPERATORS, BSplineConstructor, BaseDialogComponent, BaseGraphicsProperties, BaseMessage, BasePanelComponent, BasicEditMenu, BezierEnt, BlockAddUndoCommand, BlockCommand, BlockDefinition, BlockModifyUndoCommand, BlockNameDialog, BlockRedefineUndoCommand, BlockReference, BlockRemoveUndoCommand, BlockSortUndoCommand, Blocks, BlocksPalette, BottomBar, BoundingBox, BoundingBoxCommand, BoxCommand, BoxModifyUndoCommand, BranchCreateDialog, BranchMergeDialog, BucketEntityRenderer, BulgePoint, BulgePoints, BurstTextCommand, ButtonEle, CLayerSetvar, CadDocument, CadEventEmitter, CadEventManager, CadEvents, CadGraphics, CadMapOverlay, CadPatternDef, CanvasController, CeColorSetvar, CenterMarker, ChangeColorCommand, ChangeLTypeCommand, ChangeLTypeScaleCommand, ChangeLayerCommand, ChangeLineWeightCommand, ChangeLineWeightDialog, ChangeTranspCommand, Circle2PCommand, Circle3PCommand, CircleCommand, CircleDiameterCommand, CircleDrawer, CircleEnt, CircleMarker, CircleModifyUndoCommand, CircleTTRCommand, CircleTTTCommand, ClipMode, ClipRegionCommand, ClipboardObj, CloseCommand, CloseXCommand, ColorConverter, ColorDialogOptions, ColorPanelDialog, CommandAlias, CommandAliasManager, CommandDefinition, CommandLine, CommandListPalette, CommandOptions, CommandRegistry, CommandResult, ConflictResolutionDialog, ContextMenu, ContextMenuAction, ContextMenuItem, ContinueDimensionCommand, ControlPoint, ControlPoints, CoordinateAxesDraw, CoordinateSystemIndicatorDraw, CoordinateSystemType, CoordinateTransform, CoordsBar, CoordsPalette, CopyBaseCommand, CopyClipCommand, CopyCommand, CornerInputHandler, CornerInputOptions, CornerSelectionHandler, CountBlockCommand, CountTextCommand, CreateAlignedDimensionCommand, CreateAngleDimensionCommand, CreateArcLengthDimensionCommand, CreateDiametricDimensionCommand, CreateLinearDimensionCommand, CreateMLeaderCommand, CreateMenu, CreateOrdinateDimensionCommand, CreateRadialDimensionCommand, CreateSymbolCommand, CrosshairCursorDraw, CtbPalette, CurrentLayerUndoCommand, CustomEntityBase, CustomEntityRegistry, CutBaseCommand, CutClipCommand, CutRecCommand, DLineCommand, DataToDrawCommand, DbArc, DbBackgroundConfig, DbBlock, DbBlockRef, DbBlocks, DbBox, DbBulgePoint, DbBulgePoints, DbCircle, DbControlPoints, DbDText, DbDimLinear, DbDimStyle, DbDimStyles, DbDoc, DbDocEnv, DbDotEntity, DbEdge, DbEllipse, DbEntity, DbHatch, DbImage, DbImageRef, DbImages, DbLayer, DbLayers, DbLayout, DbLayouts, DbLine, DbMText, DbMesh, DbPadding, DbPixelPoint, DbPline, DbPlotConfig, DbPoint, DbPoint2d, DbRay, DbSolid, DbSpline, DbSplineControlPoint, DbTextStyle, DbTextStyles, DbXline, DefaultDimensionStyle, DialogColors, DiametricDimensionEnt, DiamondMarker, DimMenu, DimScaleUndoCommand, DimStyleCommand, DimStyleDialog, DimStyleEditDialog, DimensionAngularFormat, DimensionArrowType, DimensionBase, DimensionFitMode, DimensionFormatter, DimensionStyle, DimensionStyles, DimensionTextAlignment, DimensionTextLayout, DimensionTextMovementMode, DimensionTextVerticalPosition, DimensionType, DimensionUnitFormat, DistCommand, DocDropDown, DocDropDownElement, DocEnv, DocumentTabItem, DocumentTabs, Documents, DonutCommand, DotCommand, DotEnt, DrawAdvancedMenu, DrawBezierCurve, DrawMenu, DrawOrderBackCommand, DrawOrderBackUndoCommand, DrawOrderFrontCommand, DrawOrderFrontUndoCommand, DrawSettingsPalette, DrawingBrowserDialog, DrawingBrowserDialogElement, DrawingManagerService, DropEffectComponent, DynamicMenuPanel, EHatchCommand, ENTITY_TYPE_OPTIONS, Edge, EdgeType, Edges, EditMenu, Editor, EllipseCenterCommand, EllipseCommand, EllipseDrawer, EllipseEnt, EmptyCommandAlias, EndPointMarker, EndUndoCommand, Engine, EntityBase, EntityBoundsCalculator, EntityColorUndoCommand, EntityLayerUndoCommand, EntityLineTypeScaleUndoCommand, EntityLineTypeUndoCommand, EntityLineWeightUndoCommand, EntityModifyUndoCommand, EntityPickResult, EntityPicker, EntityReactorManager, EntityRenderer, EntitySelectionSplitter, EntitySelector, EntityStatsCommand, EntityTransparencyUndoCommand, EntityUndoCommand, EntityVisibilityUndoCommand, EraseCommand, EraseEntitiesUndoCommand, ExecuteJsCommand, ExecuteStrCommand, ExplodeCommand, ExportDwgOptionsDialog, ExportToDwgCommand, ExportToPngCommand, ExtendCommand, ExtendedGraphicsProperties, ExtractCenterlineCommand, FileMenuPanel, FilesPalette, FilletCommand, FindReplaceCommand, FindTextService, FitMapViewCommand, FontLoader, FuncButtons, GArc, GBulgePolyline, GCircle, GEllipse, GLine, GPolyline, GeoBounds, GeoPoint, GeoProjection, GeometryCalculator, GeometryUtils, GetInfoCommand, GraphicsBucket, GraphicsBucketManager, GraphicsInfoCommand, GridDisplayDraw, GridModeButton, GripCommand, GripEditor, GripManager, GripMarker, GripUtils, GroupCommand, GroupEnt, HATCH_PATTERN_NAMES, HandleFileDrop, HatchCommand, HatchEnt, HatchLoops, HatchMoveCommand, HatchPatternConfig, HelpMenu, HiddenLineDrawer, HistoryEle, IconCategory, IconRegistry, IdCommand, IdMapping, ImageAdjustCommand, ImageClipCommand, ImageCollection, ImageCommand, ImagePaletteAddCommand, ImagePaletteInsertCommand, ImageRef, ImageRefEnt, ImageRefModifyUndoCommand, ImageSource, ImageSourceAddUndoCommand, ImageSourceRemoveUndoCommand, ImagesPalette, ImportDwgOptionsDialog, ImportFromDwgCommand, Initializer, InputDialog, InputDialogElement, InputNumberDialog, InputResult, InputStatusEnum, InsertCommand, InsertEnt, InsertMenu, InsertSvgCommand, InsertSymbolCommand, InsertionMarker, IntegerInputHandler, IntegerInputOptions, IntegerResult, ItemCollection, JIS_LC_20_PATTERN, JIS_LC_8_PATTERN, JIS_RC_10_PATTERN, JIS_RC_15_PATTERN, JIS_RC_18_PATTERN, JIS_RC_30_PATTERN, JIS_WOOD_PATTERN, JustifyTextCommand, KeywordInputHandler, KeywordInputOptions, KeywordResult, LINE_WEIGHT_VALUES, LTScaleSetvar, LanguageButton, LayAllOffCommand, LayAllOnCommand, LayCurCommand, LayDrawBackCommand, LayDrawFrontCommand, LayMCurCommand, LayPickOffCommand, LayPickOnCommand, LayRevCommand, LaySSOffCommand, LaySSOnCommand, LayTblColorCommand, Layer, LayerAddUndoCommand, LayerAlphaCell, LayerColorCell, LayerCommand, LayerCurrentCell, LayerFrozenCell, LayerLTScaleCell, LayerLinetypeCell, LayerLineweightCell, LayerLockedCell, LayerModifyUndoCommand, LayerNameCell, LayerNameDialog, LayerNameDialogElement, LayerOnCell, LayerPaletteCommand, LayerPlottableCell, LayerReference, LayerRemoveUndoCommand, LayerReverseUndoCommand, LayerSelectionDialog, LayerSortUndoCommand, LayerTransparencyDialog, LayerTransparencyDialogElement, Layers, Layout, Layouts, LeaderDirectionType, LeaderType, LineCommand, LineDrawer, LineEnt, LineModifyUndoCommand, LineTypeDialog, LineTypeDialogElement, LineTypeDialogOptions, LineTypeEnum, LineTypeScaleUndoCommand, LinearCopyCommand, LinearDimensionEnt, LinetypeDefinition, LinetypeEditorDialog, LinetypeElement, LinetypeElementType, LinetypeLoadCommand, LinetypeManager, LinetypeParser, LinetypeViewerDialog, LitElement, LocalDrawingBrowserDialog, LocalDrawingBrowserDialogElement, LocalStorageService, LwDisplayCommand, MLeaderContentType, MLeaderEnt, MTextAttachmentEnum, MTextColor, MTextCommand, MTextContext, MTextEditCommand, MTextEnt, MTextLineAlignment, MTextParagraphAlignment, MTextParser, MTextStroke, MTextToken, MagTextCommand, MainView, MainViewElement, MakeLayerCommand, ManageSymbolCommand, MapOpenWay, MatChPropCommand, MeasureAngleCommand, MeasureMenu, MenuBar, MenuConfig, MenuItem, MenuRegistry, Menus, MeshEnt, MessageBoxComponent, MessageBoxConfig, MidGripMarker, MidPointMarker, MirrorCommand, MirrorEntitiesUndoCommand, ModalDialogBase, ModelessPanelBase, MoveCommand, MoveEntitiesUndoCommand, NUMBER_OPERATORS, NearestMarker, NewCommand, NumberInputComponent, ObservablePoint2D, OffsetCommand, OffsetCurrentCommand, OffsetDefaultCommand, OffsetDeleteCommand, OpenCommand, OpenFromLocalCommand, OpenFromServerCommand, OperationTypeEnum, OrdinateDimensionEnt, OrthoModeButton, OrthoModeSetvar, OsModeSetvar, OsnapButton, OsnapCursor, OsnapMarkerContainer, OtherGraphicsProperties, Padding, PanUndoCommand, PanViewUndoCommand, PanelController, ParallelogramCommand, PasteClipCommand, PathCommandType, PatternEditorDialog, PatternLoadCommand, PatternManager, PatternPickerDialog, PatternViewerDialog, PerformanceMonitor, PerpendicularMarker, PickUtils, PixelPointCommand, PixelPointEnt, PlanCommand, PlanViewUndoCommand, PlineCommand, PlineJoinCommand, PlineWidSetvar, PlotAreaDraw, PlotColorStyle, PlotConfig, PlotStyle, PlotStyles, PluginCacheService, PluginContext, PluginError, PluginLoader, PluginManager, PluginManagerDialog, PluginMarketService, PluginOrigin, PluginSourceType, PluginState, PluginsCommand, Point2D$1 as Point2D, PointAndOsnapResult, PointInputOptions, PointInputResult, PointPrompt, PointerEventManager, PolarCopyCommand, PolarModeButton, PolarTracking, PolygonCommand, PolylineEnt, PolylineModifyUndoCommand, PreviewView, PromptEle, PropertiesCommand, PropertyMenu, PropertyPalette, PurgeBlocksCommand, PurgeCommand, PurgeImageCommand, PurgeLayerCommand, QBlockCommand, QSaveCommand, QuadrantMarker, QuickSelectCommand, QuickSelectService, RadialDimensionEnt, RayCommmand, RayDCommand, RayEnt, RayLCommand, RayModifyUndoCommand, RayRCommand, RayUCommand, ReactorEvent, ReactorEventBridge, ReactorNotifier, RealInputHandler, RealInputOptions, RealResult, RecentCommandsManager, RectangCommand, RedoCommand, RegenAllCommand, RegenCommand, RenameBlockCommand, RenderConfig, RenderOriginCommand, ReplaceBlockCommand, ResetImageClipCommand, RevcloudCommand, RibbonBar, RibbonButton, RibbonConfigManager, RibbonGroup, RotateCommand, RotateEntitiesUndoCommand, RotationGripMarker, RubberBandLineDraw, SCOPE_OPTIONS, SELECTION_MODE_OPTIONS, SETTINGS_DEFINITIONS, STRING_OPERATORS, SUPPORTED_LOCALES, SaveAsCommand, SaveAsDialogComp, SaveDrawingDialog, SaveDrawingDialogElement, SaveToLocalCommand, SaveToServerCommand, ScaleBarDraw, ScaleCommand, ScaleEntitiesUndoCommand, ScriptExecutor, ScriptParser, SelectAllCommand, SelectionCycler, SelectionInputOptions, SelectionModeEnum, SelectionRectangleDraw, SelectionSetInputOptions, SelectionSetInputResult, ServerMapSelectorDialog, Service, SettingsCacheService, SettingsCommand, SettingsDialog, ShapeDefinition, ShapeLinetypeElement, ShapeManager, ShapeParser, ShapePath, ShapeRenderer, SideBarFrame, SideBarFrameElement, SidePalettes, SidebarPanelManager, SidebarStyBoth, SidebarStyLeft, SidebarStyNone, SidebarStyRight, SidebarStySetvar, SimpleLinetypeElement, SingleEntitySelector, SmartBlockCommand, SnapPoint, SolidCommand, SolidEnt, SpatialIndex, SpatialIndexManager, SplineCommand, SplineControlPoint, SplineControlPoints, SplineEnt, SplineFitPoint, SplineFitPoints, SplineKnots, SplitterController, SquareCursorDraw, SsAlignCommand, SsExtendCommand, SsSliceCommand, SsTrimCommand, StartUndoCommand, StatsCommand, StretchCommand, StretchEntitiesUndoCommand, StretchUndoCommand, StringInputHandler, StringInputOptions, StringResult, SwitchWorkspaceCommand, SystemConstants, SystemMessage, TOLERANCE, TangentMarker, TextAlignmentEnum$1 as TextAlignmentEnum, TextAttachmentType, TextCommand, TextCopyCommand, TextEditCommand, TextEnt, TextGripMarker, TextLinetypeElement, TextModifyUndoCommand, TextProperties, TextRotationMode, TextScanner, TextStyle, TextStyles, ThemeButton, ThreePointAngularDimensionEnt, TileAlphaSetvar, TileCache, TileCalculator, TileEditAreaCommand, TileEditLayerCommand, TileEditLayerDialog, TileMaskAlphaSetvar, TileScheduler, TokenType, ToolBar, ToolMenu, TransparencyManager$1 as TransparencyManager, TrimCommand, TwoLineAngularDimensionEnt, Txt2MTxtCommand, UCSAxesDraw, UcsCommand, UcsUndoCommand, UndoCommand, UndoCommandBase, UndoManager, UngroupCommand, ViewMenu, WblockCommand, WebCadCoreService, WebMapOverlayCommand, WebMapTileLayer, WheelZoomUndoCommand, WmsTileLayer, XLineEnt, XTextCommand, XlineCommand, XlineModifyUndoCommand, XxCommand, YesNoDialog, YesNoDialogConfig, YesNoDialogElement, YyCommand, ZeroSuppressionFlags, ZoomExtentsCommand, ZoomFactorSetvar, ZoomViewUndoCommand, actbarIcons, activateSidebarPanel, addTextReplacementRule, applyDecorators, applyTextReplacements, boundsIntersect, buildIndexedString, buttonBarStyles, buttonStyles, calcForceAngle, calculateBoundingBoxFromPoints, calculateDoubleLinePoints, calculateHatchPatternScale, calculateLineIntersections, calculatePerpendicularPoint, calculatePolygonArea, calculateStringWidth, calculateTextOffset, check3DBoundingBoxIntersection, checkGroupIntersection, checkHatchIntersection, checkPatternHatchIntersection, checkPolylineIntersection, checkTextBoundsIntersection, checkboxStyles, clearEntityDirtyFlags, clearTextReplacementRules, closeDoubleLineSegment, collectAllEntities, collectEntityData, colorIndexToName, colorNameToIndex, commandsIcons, commoncss, compareArrays, containerStyles, convertArcToDeviceCoordinates, convertGArcToDeviceCoordinates, convertLineToDeviceCoordinates, convertMatchesToBlocks, convertToFloat64, convertToHexArray, createBSplineWithDomain, createBulgePointsFromEntities, createCancellableEventArgs, createDataTypeAccessor, createDimensionArrow, createDoubleButtCap, createDoubleLineSegment, createDoubleRoundCap, createDoubleSquareCap, createDynamicMenuPanel, createEventArgs, createFloatingToolbar, createIndexAccessor, createNoShadowStyles, createPanel, css, customElementDecorator, darkThemeStyles, darkThemeVarsStr, decodeUnicodeString, decryptFromBase64, defaultContextMenuItems, defaultDocumentTabsConfig, defaultPatternMatchOptions, defaultPropertyOptions, defaultRibbonConfig, degreesToRadians, delay, destroyExtractCenterlinePanel, destroyFindReplacePanel, destroyQuickSelectPanel, destroySmartBlockPanel, destroyWebMapOverlayPanel, detectDataType, dialogBaseStyles, distance, drawFilledRegion, drawPatternFill, drawPolyline, drawSolidFill, encryptToBase64, endUndoMark, entitiesToPolylineVertices, escapeDxfLineEndings, expandArc, extractDefaultExport, extractTables, filterHatchSegments, findIntersections, findLineArcIntersections, findLineCircleIntersections, findPatternMatches, findSubArray, formRowStyles, formatAngleValue, formatDate, formatDimensionValue, formatNumber, formatNumberEx, funcButtonsIcons, generateHatchPatternLines, generateRevcloudBulgePoints, geoBounds, geoPoint, getAllArrowTypes, getAngleBetweenPoints, getArcBoundingBox, getArcCircleIntersections, getArcEntityIntersections, getArcExtExtendedEntityIntersections, getArcExtLineExtIntersections, getArcExtendedEntityIntersections, getArcLineExtIntersections, getArcLineIntersections, getArcLineIntersectionsAlt, getArcLineIntersectionsEx, getArcLineIntersectionsSimple, getArrowTypeName, getCadDialogContainer, getCadViewContainer, getCircleArcIntersectionsFiltered, getCircleCircleIntersections, getCircleEntityIntersections, getCircleEntityIntersectionsSimple, getCircleLineExtIntersections, getCircleLineExtIntersectionsEx, getCircleLineIntersections, getCircleLineIntersectionsAdvanced, getCircleLineIntersectionsSimple, getCirclePolylineIntersections, getComplexLineIntersection, getCorner, getDirPath, getDocumentStatusIndicator, getEntity, getEntityAlpha, getEntityBounds, getExtendedEntityPolylineIntersections, getFileExtension, getFileName, getFileNameBase, getFilePath, getFileTypeByExtension, getFonts, getInteger, getKeyword, getLineBoundingBox, getLineCircleIntersections, getLineEntityCollectionIntersections, getLineEntityIntersections, getLineExtArcExtIntersections, getLineExtArcIntersections, getLineExtEntityIntersections, getLineExtEntityIntersectionsEx, getLineExtExtendedEntityIntersections, getLineExtLineExt1Intersections, getLineExtLineExtIntersections, getLineExtLineIntersections, getLineExtendedEntityIntersections, getLineIntersection, getLineIntersections, getLineLineExt1Intersections, getLineLineExtIntersections, getLineLineIntersections, getLineSegmentIntersection, getLocalStorageService, getLocale, getMidPoint, getObjectLineExtLineExt2Intersections, getObjectLineExtLineIntersections, getObjectLineLineExt2Intersections, getOsnapValueFromString, getParameterDomain, getPatternUnitSize, getPoint, getRawObject, getReal, getRecentCommandsManager, getSelections, getServiceHash, getSettingsCacheService, getString, getTableExtractLayers, getTextReplacementRules, getWebCadCoreService, globalShapeManager, hasAnyChildDirty, hasInlineFormattingCodes, hasInvalidChars, headerStyles, hitTestCircle, hitTestEllipse, hitTestGroup, hitTestPattern, hitTestPolyline, hitTestRect, hitTestSpline, html, httpHelper, initCadContainer, initLocale, inputStyles, int2rgb, isAllElementsEqual, isArcType, isArrayOrArrayBufferView, isCircleType, isEllipseType, isEntityInArray, isEntityReactor, isEqual, isGArc, isGCircle, isGEllipse, isGLine, isGreater, isGreaterOrEqual, isHalfWidthChar, isLess, isLessOrEqual, isLineExists, isLineType, isNdArray, isNullOrUndefined, isPointEqual, isPointOnRay, isSupportedLocale, isTextIntersectWithBox, isTypedArrayView, layerDialogIcons, lineWeightToString, loadingStyles, matchLocale, menubarIcons, mergeBoundingBoxes, message, miscIcons, monitorExports, noChange, normalizeAngle, normalizeAngleAlt, normalizeAngleEx, normalizeDegrees, nothing, numberToString, offsetLine, onLocaleChange, openMapDarkStyle, openMapLightStyle, osnapIcons, paletteIcons, paletteLayerIcons, palettePlotIcons, panelTitleStyles, parseConfigValue, parseMText, parseMTextToTextObjects, parseNumberToStr, parseTileKey, performanceMonitorInstance, pointInPolygon, polarToCartesian, propertyDecorator, propertyDecoratorFactory, querySelectorDecorator, radiansToDegrees, radioStyles, randInt, readUint16LittleEndian, refreshRemainModelEntities, regen, registerMessages, registerSidebarPanel, removeDuplicatePoints, removeTextReplacementRule, removeTimeStamp, resetToDefaultRules, resultsStyles, rgb2int, rotatePointAroundCenter, rotatePointInPlace, roundToDecimalPlace, safeCustomElementRegistration, scalePointAlongVector, scalePointInPlace, sectionStyles, selectStyles, setLocale, showConfirm, showError, showExportDwgOptionsDialog, showImportDwgOptionsDialog, showInfo, showInputDialog, showPluginManagerDialog, showPrompt, showSelectDialog, showTileEditLayerDialog, showWarningConfirm, sliderStyles, sortEdgeByArea, ssGetFirst, ssSetFirst, startUndoMark, statusStyles, supportsPointerEvents, t, tea, textAlignStringToEnum, tileKey, toPoint2D, transparencyToString, trimWhitespace, unregisterSidebarPanel, unsafeSVGHtml, updateTimeStamp, wrapTextToLines, writeMessage };
|
|
54245
|
+
export type { AlignedDimensionData, AngleDimensionData, AngularFormatConfig, ArcDimensionData, ArrowRenderConfig, ArrowRenderResult, ArrowType, BlockAddedEventArgs, BlockAddingEventArgs, BlockDeletedEventArgs, BlockDeletingEventArgs, BlockModifiedEventArgs, BooleanOperator, BranchCreatedEventArgs, BranchCreatingEventArgs, BranchDeletedEventArgs, BranchDeletingEventArgs, BranchInfo, BranchMergedEventArgs, BranchMergingEventArgs, BranchSwitchedEventArgs, BranchSwitchingEventArgs, CadBoundsLike, CadEventArgs, CadMapOverlayOptions, CancellableEventArgs, CommandCancelledEventArgs, CommandClass, CommandEndedEventArgs, CommandStartedEventArgs, CommandStartingEventArgs, Config, ConflictDetectedEventArgs, ConflictItem, ConflictResolution, ConflictResolvedEventArgs, ConflictResolvingEventArgs, ConflictSkippedEventArgs, ConflictType, ContextMenuItemClickedEventArgs, ContextMenuItemInfo, ContextMenuOpenedEventArgs, ContextMenuOpeningEventArgs, ConvertToBlockOptions, CurrentLayerChangedEventArgs, CustomEntityDbData, DiametricDimensionData, DimStyleDialogResult, DimStyleEditResult, DimensionBaseData, DimensionStyleData, DocumentCacheClearedEventArgs, DocumentCachedEventArgs, DocumentCachingEventArgs, DocumentClosedEventArgs, DocumentClosingEventArgs, DocumentCreatedEventArgs, DocumentCreatingEventArgs, DocumentDownloadedEventArgs, DocumentDownloadingEventArgs, DocumentModifiedEventArgs, DocumentOpenedEventArgs, DocumentOpeningEventArgs, DocumentRestoredEventArgs, DocumentRestoringEventArgs, DocumentSavedEventArgs, DocumentSavingEventArgs, DocumentStorageSource, DocumentSwitchedEventArgs, DocumentSyncStatusChangedEventArgs, DocumentTabsConfig, DocumentUploadedEventArgs, DocumentUploadingEventArgs, DoubleLinePoints, DoubleLineSegment, EntitiesAddedEventArgs, EntitiesAddingEventArgs, EntitiesErasedEventArgs, EntitiesErasingEventArgs, EntityAddedEventArgs, EntityAddingEventArgs, EntityErasedEventArgs, EntityErasingEventArgs, EntityModifiedEventArgs, EntityOperationOptions, EntityTypeFilter, EntityTypeOption, EventArgsMap, EventHandler, FillLoopBounds, FillLoopData, FilterCondition, FindOptions, FindResult, FitDecision, FloatingToolbarItem, FloatingToolbarManager, FloatingToolbarOptions, FontInfo, FormatConfig, GBulgePoint, GeoPointLike, GestureState, GestureType, GraphicsBucketManagerConfig, GraphicsPrimitiveStats, GripPointResult, GripPointType, IAdminEditPolicy, IAllDrawingsResponse, IBranchCreateDialogConfig, IBranchCreateDialogResult, IBranchInfo, IBranchMergeDialogConfig, IBranchMergeDialogResult, IBranchSourceInfo, IComposeNewMap, IConditionQueryFeatures, IConflictEntityInfo, IConflictItem, IConflictLayerInfo, IConflictResolutionConfig, IConflictResolutionResult, ICreateBranchParams, ICreateBranchResponse, ICreateEntitiesGeomData, ICreateSymbolParams, IDeleteBranchParams, IDeleteBranchResponse, IDeleteCache, IDeleteStyle, IDeleteWebcadDrawParams, IDeleteWebcadDrawResponse, IDrawingBrowserResult, IEditArea, IEditAreaBounds, IEditAreaRecord, IEntityReactor, IEntityResolution, IExportDwgOptions, IExportDwgOptionsResult, IExportLayout, IExportToDwgDialogConfig, IExportToDwgParams, IExportWebcadParams, IExportWebcadResponse, IExprQueryFeatures, IExtractTable, IGetWebcadDataParams, IGetWebcadDataResponse, IImportDwgOptions, IImportDwgOptionsResult, ILayerInfo, IListWebcadDrawsParams, IListWebcadDrawsResponse, ILoadEditAreaResult, ILoadEditAreasResult, ILoadEditLayersResult, ILocalDrawingBrowserResult, ILocalDrawingListItem, ILocalDrawingRecord, ILocalSymbolCategory, ILocalSymbolRecord, IMapDiff, IMapLayer, IMapStyleParam, IMatchObject, IMergeBranchParams, IMergeBranchResponse, IOpenDrawingParams, IOpenDrawingResult, IOpenMapBaseParam, IOpenMapParam, IOpenMapResponse, IPatchInfo, IPluginContext, IPointQueryFeatures, IQueryBaseFeatures, IRectQueryFeatures, IRequest, ISaveDrawingDialogConfig, ISaveDrawingDialogResult, ISaveDrawingParams, ISaveWebcadPatchParams, ISaveWebcadPatchResponse, IServerMapInfo, IServerMapSelectResult, IServerMapVersion, ISliceCacheZoom, ISliceLayer, ISplitChildMaps, ISymbol, ISymbolCategory, ISymbolConfig, ISymbolListQuery, ISymbolListResult, ISymbolMeta, ITileEditLayerDialogConfig, ITileEditLayerDialogResult, ITileUrlParam, IUpdateMapParam, IUpdateStyle, IUpdateSymbolParams, IUploadMapResult, IVcadEditArea, IVcadMeta, IWebcadDrawInfo, IWmsTileUrl, IWorkspace, IconInfo, IconRegistryOptions, InitializerOptions, InputDialogConfig, InputDialogResult$1 as InputDialogResult, LayerAddedEventArgs, LayerAddingEventArgs, LayerCreateOptions, LayerDeletedEventArgs, LayerDeletingEventArgs, LayerModifiedEventArgs, LeaderData, LeaderLineData, LineSegmentInfo, LineType, LinearDimensionData, Locale, MLeaderData, MainViewConfig, MarketplacePluginInfo, MatchTransform, MenuConfig2, MenuItemConfig, MenuItemOptions, ModalDialogOptions, NumberOperator, OpenModeType, OpenWayType, OperationType, Operator, OperatorOption, OrdinateDimensionData, OrdinateDisplayMode, OsnapInfo, OwnerReference, PanelManager, PanelPosition, ParsedLine, PatchAppliedEventArgs, PatchApplyingEventArgs, PatchCreatedEventArgs, PatchCreatingEventArgs, PatchInfo, PatchRevertedEventArgs, PatchRevertingEventArgs, PathCommand, PatternMatchOptions, PatternMatchOutput, PatternMatchResult, PatternMatchTolerance, PatternToleranceConfig, Plugin, PluginActivatedEventArgs, PluginActivatingEventArgs, PluginCacheEntry, PluginConfig, PluginDeactivatedEventArgs, PluginDeactivatingEventArgs, PluginErrorEventArgs, PluginInfo, PluginInstance, PluginLoadOptions, PluginLoadResult, PluginLoadedEventArgs, PluginLoadingEventArgs, PluginManifest, PluginMarketResponse, PluginSource, PluginUnloadedEventArgs, PluginUnloadingEventArgs, PointInput, PointerInfo, PointerType, PreFilterOptions, PreviewViewConfig, PropertyDefinition, PropertyInfo, PropertyType, QuickSelectResult, RadialDimensionData, ReactorEventArgs, ReactorRelationData, RecentCommand, Response, RevcloudOptions, RibbonButtonConfig, RibbonButtonType, RibbonConfig, RibbonGroupConfig, RibbonGroupDisplayMode, RibbonTabConfig, ScopeOption, ScriptContext, SearchScope, SelectDialogConfig, SelectionChangedEventArgs, SelectionClearedEventArgs, SelectionMode, SelectionModeOption, SettingDefinition, SettingOption, SettingValueType, SettingsDialogResult, Point2D as ShapePoint2D, ShapeRenderOptions, SidebarPanelConfig, SnapPointResult, SnapPointType, StringOperator, SubGeometry, SyncStatus, TabContextMenuItem, TableAttr, TableData, TableExtractInput, TableExtractOptions, TableExtractParams, TableExtractResult, TableItemData, TapConfig, TemplateResult, TextAlignment, TextLayoutResult, TextPositionConfig, ThreePointAngularDimensionData, TileCoord, TileDebugInfo, TileRequest, TileSchedulerEvents, TileSprite, TileState, TileUpdateParams, ToleranceConfig, TranslationMessages, TwoLineAngularDimensionData, View3DMode, ViewPannedEventArgs, ViewRegeneratedEventArgs, ViewZoomedEventArgs, WebMapTileConfig, WmsTileConfig, YesNoDialogResult, YesNoDialogType };
|
|
52317
54246
|
|
|
52318
54247
|
// ============================================
|
|
52319
|
-
// UMD
|
|
52320
|
-
//
|
|
54248
|
+
// UMD global namespace declaration
|
|
54249
|
+
// Supports three usage patterns:
|
|
52321
54250
|
// 1. import vjcad from "vjcad"; vjcad.LineEnt
|
|
52322
54251
|
// 2. import { LineEnt } from "vjcad";
|
|
52323
|
-
// 3.
|
|
54252
|
+
// 3. Global vjcad.LineEnt (UMD script tag)
|
|
52324
54253
|
// ============================================
|
|
52325
54254
|
|
|
52326
54255
|
export as namespace vjcad;
|
|
52327
54256
|
|
|
52328
|
-
//
|
|
52329
|
-
//
|
|
54257
|
+
// Default export object containing all exported members
|
|
54258
|
+
// Supports: import vjcad from "vjcad"
|
|
52330
54259
|
interface VjcadModule {
|
|
52331
54260
|
ANGLE_0: typeof ANGLE_0;
|
|
52332
54261
|
ANGLE_135: typeof ANGLE_135;
|
|
@@ -52356,12 +54285,21 @@ interface VjcadModule {
|
|
|
52356
54285
|
AppDisableIconSvg: typeof AppDisableIconSvg;
|
|
52357
54286
|
AppIconSvg: typeof AppIconSvg;
|
|
52358
54287
|
AppearanceMenu: typeof AppearanceMenu;
|
|
54288
|
+
ArcCSACommand: typeof ArcCSACommand;
|
|
54289
|
+
ArcCSECommand: typeof ArcCSECommand;
|
|
54290
|
+
ArcCSLCommand: typeof ArcCSLCommand;
|
|
52359
54291
|
ArcCircleProperties: typeof ArcCircleProperties;
|
|
52360
54292
|
ArcCommand: typeof ArcCommand;
|
|
52361
54293
|
ArcDimensionEnt: typeof ArcDimensionEnt;
|
|
52362
54294
|
ArcDrawer: typeof ArcDrawer;
|
|
52363
54295
|
ArcEnt: typeof ArcEnt;
|
|
52364
54296
|
ArcModifyUndoCommand: typeof ArcModifyUndoCommand;
|
|
54297
|
+
ArcSCACommand: typeof ArcSCACommand;
|
|
54298
|
+
ArcSCECommand: typeof ArcSCECommand;
|
|
54299
|
+
ArcSCLCommand: typeof ArcSCLCommand;
|
|
54300
|
+
ArcSEACommand: typeof ArcSEACommand;
|
|
54301
|
+
ArcSEDCommand: typeof ArcSEDCommand;
|
|
54302
|
+
ArcSERCommand: typeof ArcSERCommand;
|
|
52365
54303
|
ArcSymbolType: typeof ArcSymbolType;
|
|
52366
54304
|
AreaCalculationCollection: typeof AreaCalculationCollection;
|
|
52367
54305
|
AreaCalculationElement: typeof AreaCalculationElement;
|
|
@@ -52377,6 +54315,7 @@ interface VjcadModule {
|
|
|
52377
54315
|
BaseDialogComponent: typeof BaseDialogComponent;
|
|
52378
54316
|
BaseGraphicsProperties: typeof BaseGraphicsProperties;
|
|
52379
54317
|
BaseMessage: typeof BaseMessage;
|
|
54318
|
+
BasePanelComponent: typeof BasePanelComponent;
|
|
52380
54319
|
BasicEditMenu: typeof BasicEditMenu;
|
|
52381
54320
|
BezierEnt: typeof BezierEnt;
|
|
52382
54321
|
BlockAddUndoCommand: typeof BlockAddUndoCommand;
|
|
@@ -52420,12 +54359,18 @@ interface VjcadModule {
|
|
|
52420
54359
|
ChangeLineWeightCommand: typeof ChangeLineWeightCommand;
|
|
52421
54360
|
ChangeLineWeightDialog: typeof ChangeLineWeightDialog;
|
|
52422
54361
|
ChangeTranspCommand: typeof ChangeTranspCommand;
|
|
54362
|
+
Circle2PCommand: typeof Circle2PCommand;
|
|
54363
|
+
Circle3PCommand: typeof Circle3PCommand;
|
|
52423
54364
|
CircleCommand: typeof CircleCommand;
|
|
54365
|
+
CircleDiameterCommand: typeof CircleDiameterCommand;
|
|
52424
54366
|
CircleDrawer: typeof CircleDrawer;
|
|
52425
54367
|
CircleEnt: typeof CircleEnt;
|
|
52426
54368
|
CircleMarker: typeof CircleMarker;
|
|
52427
54369
|
CircleModifyUndoCommand: typeof CircleModifyUndoCommand;
|
|
54370
|
+
CircleTTRCommand: typeof CircleTTRCommand;
|
|
54371
|
+
CircleTTTCommand: typeof CircleTTTCommand;
|
|
52428
54372
|
ClipMode: typeof ClipMode;
|
|
54373
|
+
ClipRegionCommand: typeof ClipRegionCommand;
|
|
52429
54374
|
ClipboardObj: typeof ClipboardObj;
|
|
52430
54375
|
CloseCommand: typeof CloseCommand;
|
|
52431
54376
|
CloseXCommand: typeof CloseXCommand;
|
|
@@ -52480,6 +54425,7 @@ interface VjcadModule {
|
|
|
52480
54425
|
CutClipCommand: typeof CutClipCommand;
|
|
52481
54426
|
CutRecCommand: typeof CutRecCommand;
|
|
52482
54427
|
DLineCommand: typeof DLineCommand;
|
|
54428
|
+
DataToDrawCommand: typeof DataToDrawCommand;
|
|
52483
54429
|
DbArc: typeof DbArc;
|
|
52484
54430
|
DbBackgroundConfig: typeof DbBackgroundConfig;
|
|
52485
54431
|
DbBlock: typeof DbBlock;
|
|
@@ -52510,6 +54456,7 @@ interface VjcadModule {
|
|
|
52510
54456
|
DbLayouts: typeof DbLayouts;
|
|
52511
54457
|
DbLine: typeof DbLine;
|
|
52512
54458
|
DbMText: typeof DbMText;
|
|
54459
|
+
DbMesh: typeof DbMesh;
|
|
52513
54460
|
DbPadding: typeof DbPadding;
|
|
52514
54461
|
DbPixelPoint: typeof DbPixelPoint;
|
|
52515
54462
|
DbPline: typeof DbPline;
|
|
@@ -52575,6 +54522,7 @@ interface VjcadModule {
|
|
|
52575
54522
|
Edges: typeof Edges;
|
|
52576
54523
|
EditMenu: typeof EditMenu;
|
|
52577
54524
|
Editor: typeof Editor;
|
|
54525
|
+
EllipseCenterCommand: typeof EllipseCenterCommand;
|
|
52578
54526
|
EllipseCommand: typeof EllipseCommand;
|
|
52579
54527
|
EllipseDrawer: typeof EllipseDrawer;
|
|
52580
54528
|
EllipseEnt: typeof EllipseEnt;
|
|
@@ -52599,6 +54547,7 @@ interface VjcadModule {
|
|
|
52599
54547
|
EntityStatsCommand: typeof EntityStatsCommand;
|
|
52600
54548
|
EntityTransparencyUndoCommand: typeof EntityTransparencyUndoCommand;
|
|
52601
54549
|
EntityUndoCommand: typeof EntityUndoCommand;
|
|
54550
|
+
EntityVisibilityUndoCommand: typeof EntityVisibilityUndoCommand;
|
|
52602
54551
|
EraseCommand: typeof EraseCommand;
|
|
52603
54552
|
EraseEntitiesUndoCommand: typeof EraseEntitiesUndoCommand;
|
|
52604
54553
|
ExecuteJsCommand: typeof ExecuteJsCommand;
|
|
@@ -52606,8 +54555,10 @@ interface VjcadModule {
|
|
|
52606
54555
|
ExplodeCommand: typeof ExplodeCommand;
|
|
52607
54556
|
ExportDwgOptionsDialog: typeof ExportDwgOptionsDialog;
|
|
52608
54557
|
ExportToDwgCommand: typeof ExportToDwgCommand;
|
|
54558
|
+
ExportToPngCommand: typeof ExportToPngCommand;
|
|
52609
54559
|
ExtendCommand: typeof ExtendCommand;
|
|
52610
54560
|
ExtendedGraphicsProperties: typeof ExtendedGraphicsProperties;
|
|
54561
|
+
ExtractCenterlineCommand: typeof ExtractCenterlineCommand;
|
|
52611
54562
|
FileMenuPanel: typeof FileMenuPanel;
|
|
52612
54563
|
FilesPalette: typeof FilesPalette;
|
|
52613
54564
|
FilletCommand: typeof FilletCommand;
|
|
@@ -52698,6 +54649,7 @@ interface VjcadModule {
|
|
|
52698
54649
|
KeywordResult: typeof KeywordResult;
|
|
52699
54650
|
LINE_WEIGHT_VALUES: typeof LINE_WEIGHT_VALUES;
|
|
52700
54651
|
LTScaleSetvar: typeof LTScaleSetvar;
|
|
54652
|
+
LanguageButton: typeof LanguageButton;
|
|
52701
54653
|
LayAllOffCommand: typeof LayAllOffCommand;
|
|
52702
54654
|
LayAllOnCommand: typeof LayAllOnCommand;
|
|
52703
54655
|
LayCurCommand: typeof LayCurCommand;
|
|
@@ -52763,6 +54715,7 @@ interface VjcadModule {
|
|
|
52763
54715
|
LocalDrawingBrowserDialog: typeof LocalDrawingBrowserDialog;
|
|
52764
54716
|
LocalDrawingBrowserDialogElement: typeof LocalDrawingBrowserDialogElement;
|
|
52765
54717
|
LocalStorageService: typeof LocalStorageService;
|
|
54718
|
+
LwDisplayCommand: typeof LwDisplayCommand;
|
|
52766
54719
|
MLeaderContentType: typeof MLeaderContentType;
|
|
52767
54720
|
MLeaderEnt: typeof MLeaderEnt;
|
|
52768
54721
|
MTextAttachmentEnum: typeof MTextAttachmentEnum;
|
|
@@ -52790,6 +54743,7 @@ interface VjcadModule {
|
|
|
52790
54743
|
MenuItem: typeof MenuItem;
|
|
52791
54744
|
MenuRegistry: typeof MenuRegistry;
|
|
52792
54745
|
Menus: typeof Menus;
|
|
54746
|
+
MeshEnt: typeof MeshEnt;
|
|
52793
54747
|
MessageBoxComponent: typeof MessageBoxComponent;
|
|
52794
54748
|
MessageBoxConfig: typeof MessageBoxConfig;
|
|
52795
54749
|
MidGripMarker: typeof MidGripMarker;
|
|
@@ -52864,6 +54818,7 @@ interface VjcadModule {
|
|
|
52864
54818
|
PointInputOptions: typeof PointInputOptions;
|
|
52865
54819
|
PointInputResult: typeof PointInputResult;
|
|
52866
54820
|
PointPrompt: typeof PointPrompt;
|
|
54821
|
+
PointerEventManager: typeof PointerEventManager;
|
|
52867
54822
|
PolarCopyCommand: typeof PolarCopyCommand;
|
|
52868
54823
|
PolarModeButton: typeof PolarModeButton;
|
|
52869
54824
|
PolarTracking: typeof PolarTracking;
|
|
@@ -52908,6 +54863,7 @@ interface VjcadModule {
|
|
|
52908
54863
|
RenderOriginCommand: typeof RenderOriginCommand;
|
|
52909
54864
|
ReplaceBlockCommand: typeof ReplaceBlockCommand;
|
|
52910
54865
|
ResetImageClipCommand: typeof ResetImageClipCommand;
|
|
54866
|
+
RevcloudCommand: typeof RevcloudCommand;
|
|
52911
54867
|
RibbonBar: typeof RibbonBar;
|
|
52912
54868
|
RibbonButton: typeof RibbonButton;
|
|
52913
54869
|
RibbonConfigManager: typeof RibbonConfigManager;
|
|
@@ -52920,6 +54876,7 @@ interface VjcadModule {
|
|
|
52920
54876
|
SELECTION_MODE_OPTIONS: typeof SELECTION_MODE_OPTIONS;
|
|
52921
54877
|
SETTINGS_DEFINITIONS: typeof SETTINGS_DEFINITIONS;
|
|
52922
54878
|
STRING_OPERATORS: typeof STRING_OPERATORS;
|
|
54879
|
+
SUPPORTED_LOCALES: typeof SUPPORTED_LOCALES;
|
|
52923
54880
|
SaveAsCommand: typeof SaveAsCommand;
|
|
52924
54881
|
SaveAsDialogComp: typeof SaveAsDialogComp;
|
|
52925
54882
|
SaveDrawingDialog: typeof SaveDrawingDialog;
|
|
@@ -52952,6 +54909,7 @@ interface VjcadModule {
|
|
|
52952
54909
|
SideBarFrame: typeof SideBarFrame;
|
|
52953
54910
|
SideBarFrameElement: typeof SideBarFrameElement;
|
|
52954
54911
|
SidePalettes: typeof SidePalettes;
|
|
54912
|
+
SidebarPanelManager: typeof SidebarPanelManager;
|
|
52955
54913
|
SidebarStyBoth: typeof SidebarStyBoth;
|
|
52956
54914
|
SidebarStyLeft: typeof SidebarStyLeft;
|
|
52957
54915
|
SidebarStyNone: typeof SidebarStyNone;
|
|
@@ -52959,6 +54917,7 @@ interface VjcadModule {
|
|
|
52959
54917
|
SidebarStySetvar: typeof SidebarStySetvar;
|
|
52960
54918
|
SimpleLinetypeElement: typeof SimpleLinetypeElement;
|
|
52961
54919
|
SingleEntitySelector: typeof SingleEntitySelector;
|
|
54920
|
+
SmartBlockCommand: typeof SmartBlockCommand;
|
|
52962
54921
|
SnapPoint: typeof SnapPoint;
|
|
52963
54922
|
SolidCommand: typeof SolidCommand;
|
|
52964
54923
|
SolidEnt: typeof SolidEnt;
|
|
@@ -53031,6 +54990,8 @@ interface VjcadModule {
|
|
|
53031
54990
|
ViewMenu: typeof ViewMenu;
|
|
53032
54991
|
WblockCommand: typeof WblockCommand;
|
|
53033
54992
|
WebCadCoreService: typeof WebCadCoreService;
|
|
54993
|
+
WebMapOverlayCommand: typeof WebMapOverlayCommand;
|
|
54994
|
+
WebMapTileLayer: typeof WebMapTileLayer;
|
|
53034
54995
|
WheelZoomUndoCommand: typeof WheelZoomUndoCommand;
|
|
53035
54996
|
WmsTileLayer: typeof WmsTileLayer;
|
|
53036
54997
|
XLineEnt: typeof XLineEnt;
|
|
@@ -53047,6 +55008,7 @@ interface VjcadModule {
|
|
|
53047
55008
|
ZoomFactorSetvar: typeof ZoomFactorSetvar;
|
|
53048
55009
|
ZoomViewUndoCommand: typeof ZoomViewUndoCommand;
|
|
53049
55010
|
actbarIcons: typeof actbarIcons;
|
|
55011
|
+
activateSidebarPanel: typeof activateSidebarPanel;
|
|
53050
55012
|
addTextReplacementRule: typeof addTextReplacementRule;
|
|
53051
55013
|
applyDecorators: typeof applyDecorators;
|
|
53052
55014
|
applyTextReplacements: typeof applyTextReplacements;
|
|
@@ -53073,6 +55035,8 @@ interface VjcadModule {
|
|
|
53073
55035
|
clearEntityDirtyFlags: typeof clearEntityDirtyFlags;
|
|
53074
55036
|
clearTextReplacementRules: typeof clearTextReplacementRules;
|
|
53075
55037
|
closeDoubleLineSegment: typeof closeDoubleLineSegment;
|
|
55038
|
+
collectAllEntities: typeof collectAllEntities;
|
|
55039
|
+
collectEntityData: typeof collectEntityData;
|
|
53076
55040
|
colorIndexToName: typeof colorIndexToName;
|
|
53077
55041
|
colorNameToIndex: typeof colorNameToIndex;
|
|
53078
55042
|
commandsIcons: typeof commandsIcons;
|
|
@@ -53082,6 +55046,7 @@ interface VjcadModule {
|
|
|
53082
55046
|
convertArcToDeviceCoordinates: typeof convertArcToDeviceCoordinates;
|
|
53083
55047
|
convertGArcToDeviceCoordinates: typeof convertGArcToDeviceCoordinates;
|
|
53084
55048
|
convertLineToDeviceCoordinates: typeof convertLineToDeviceCoordinates;
|
|
55049
|
+
convertMatchesToBlocks: typeof convertMatchesToBlocks;
|
|
53085
55050
|
convertToFloat64: typeof convertToFloat64;
|
|
53086
55051
|
convertToHexArray: typeof convertToHexArray;
|
|
53087
55052
|
createBSplineWithDomain: typeof createBSplineWithDomain;
|
|
@@ -53095,6 +55060,7 @@ interface VjcadModule {
|
|
|
53095
55060
|
createDoubleSquareCap: typeof createDoubleSquareCap;
|
|
53096
55061
|
createDynamicMenuPanel: typeof createDynamicMenuPanel;
|
|
53097
55062
|
createEventArgs: typeof createEventArgs;
|
|
55063
|
+
createFloatingToolbar: typeof createFloatingToolbar;
|
|
53098
55064
|
createIndexAccessor: typeof createIndexAccessor;
|
|
53099
55065
|
createNoShadowStyles: typeof createNoShadowStyles;
|
|
53100
55066
|
createPanel: typeof createPanel;
|
|
@@ -53106,12 +55072,16 @@ interface VjcadModule {
|
|
|
53106
55072
|
decryptFromBase64: typeof decryptFromBase64;
|
|
53107
55073
|
defaultContextMenuItems: typeof defaultContextMenuItems;
|
|
53108
55074
|
defaultDocumentTabsConfig: typeof defaultDocumentTabsConfig;
|
|
55075
|
+
defaultPatternMatchOptions: typeof defaultPatternMatchOptions;
|
|
53109
55076
|
defaultPropertyOptions: typeof defaultPropertyOptions;
|
|
53110
55077
|
defaultRibbonConfig: typeof defaultRibbonConfig;
|
|
53111
55078
|
degreesToRadians: typeof degreesToRadians;
|
|
53112
55079
|
delay: typeof delay;
|
|
55080
|
+
destroyExtractCenterlinePanel: typeof destroyExtractCenterlinePanel;
|
|
53113
55081
|
destroyFindReplacePanel: typeof destroyFindReplacePanel;
|
|
53114
55082
|
destroyQuickSelectPanel: typeof destroyQuickSelectPanel;
|
|
55083
|
+
destroySmartBlockPanel: typeof destroySmartBlockPanel;
|
|
55084
|
+
destroyWebMapOverlayPanel: typeof destroyWebMapOverlayPanel;
|
|
53115
55085
|
detectDataType: typeof detectDataType;
|
|
53116
55086
|
dialogBaseStyles: typeof dialogBaseStyles;
|
|
53117
55087
|
distance: typeof distance;
|
|
@@ -53130,6 +55100,7 @@ interface VjcadModule {
|
|
|
53130
55100
|
findIntersections: typeof findIntersections;
|
|
53131
55101
|
findLineArcIntersections: typeof findLineArcIntersections;
|
|
53132
55102
|
findLineCircleIntersections: typeof findLineCircleIntersections;
|
|
55103
|
+
findPatternMatches: typeof findPatternMatches;
|
|
53133
55104
|
findSubArray: typeof findSubArray;
|
|
53134
55105
|
formRowStyles: typeof formRowStyles;
|
|
53135
55106
|
formatAngleValue: typeof formatAngleValue;
|
|
@@ -53139,6 +55110,7 @@ interface VjcadModule {
|
|
|
53139
55110
|
formatNumberEx: typeof formatNumberEx;
|
|
53140
55111
|
funcButtonsIcons: typeof funcButtonsIcons;
|
|
53141
55112
|
generateHatchPatternLines: typeof generateHatchPatternLines;
|
|
55113
|
+
generateRevcloudBulgePoints: typeof generateRevcloudBulgePoints;
|
|
53142
55114
|
geoBounds: typeof geoBounds;
|
|
53143
55115
|
geoPoint: typeof geoPoint;
|
|
53144
55116
|
getAllArrowTypes: typeof getAllArrowTypes;
|
|
@@ -53203,6 +55175,7 @@ interface VjcadModule {
|
|
|
53203
55175
|
getLineLineIntersections: typeof getLineLineIntersections;
|
|
53204
55176
|
getLineSegmentIntersection: typeof getLineSegmentIntersection;
|
|
53205
55177
|
getLocalStorageService: typeof getLocalStorageService;
|
|
55178
|
+
getLocale: typeof getLocale;
|
|
53206
55179
|
getMidPoint: typeof getMidPoint;
|
|
53207
55180
|
getObjectLineExtLineExt2Intersections: typeof getObjectLineExtLineExt2Intersections;
|
|
53208
55181
|
getObjectLineExtLineIntersections: typeof getObjectLineExtLineIntersections;
|
|
@@ -53236,6 +55209,7 @@ interface VjcadModule {
|
|
|
53236
55209
|
html: typeof html;
|
|
53237
55210
|
httpHelper: typeof httpHelper;
|
|
53238
55211
|
initCadContainer: typeof initCadContainer;
|
|
55212
|
+
initLocale: typeof initLocale;
|
|
53239
55213
|
inputStyles: typeof inputStyles;
|
|
53240
55214
|
int2rgb: typeof int2rgb;
|
|
53241
55215
|
isAllElementsEqual: typeof isAllElementsEqual;
|
|
@@ -53261,11 +55235,13 @@ interface VjcadModule {
|
|
|
53261
55235
|
isNullOrUndefined: typeof isNullOrUndefined;
|
|
53262
55236
|
isPointEqual: typeof isPointEqual;
|
|
53263
55237
|
isPointOnRay: typeof isPointOnRay;
|
|
55238
|
+
isSupportedLocale: typeof isSupportedLocale;
|
|
53264
55239
|
isTextIntersectWithBox: typeof isTextIntersectWithBox;
|
|
53265
55240
|
isTypedArrayView: typeof isTypedArrayView;
|
|
53266
55241
|
layerDialogIcons: typeof layerDialogIcons;
|
|
53267
55242
|
lineWeightToString: typeof lineWeightToString;
|
|
53268
55243
|
loadingStyles: typeof loadingStyles;
|
|
55244
|
+
matchLocale: typeof matchLocale;
|
|
53269
55245
|
menubarIcons: typeof menubarIcons;
|
|
53270
55246
|
mergeBoundingBoxes: typeof mergeBoundingBoxes;
|
|
53271
55247
|
message: typeof message;
|
|
@@ -53279,6 +55255,7 @@ interface VjcadModule {
|
|
|
53279
55255
|
nothing: typeof nothing;
|
|
53280
55256
|
numberToString: typeof numberToString;
|
|
53281
55257
|
offsetLine: typeof offsetLine;
|
|
55258
|
+
onLocaleChange: typeof onLocaleChange;
|
|
53282
55259
|
openMapDarkStyle: typeof openMapDarkStyle;
|
|
53283
55260
|
openMapLightStyle: typeof openMapLightStyle;
|
|
53284
55261
|
osnapIcons: typeof osnapIcons;
|
|
@@ -53303,6 +55280,8 @@ interface VjcadModule {
|
|
|
53303
55280
|
readUint16LittleEndian: typeof readUint16LittleEndian;
|
|
53304
55281
|
refreshRemainModelEntities: typeof refreshRemainModelEntities;
|
|
53305
55282
|
regen: typeof regen;
|
|
55283
|
+
registerMessages: typeof registerMessages;
|
|
55284
|
+
registerSidebarPanel: typeof registerSidebarPanel;
|
|
53306
55285
|
removeDuplicatePoints: typeof removeDuplicatePoints;
|
|
53307
55286
|
removeTextReplacementRule: typeof removeTextReplacementRule;
|
|
53308
55287
|
removeTimeStamp: typeof removeTimeStamp;
|
|
@@ -53317,6 +55296,7 @@ interface VjcadModule {
|
|
|
53317
55296
|
scalePointInPlace: typeof scalePointInPlace;
|
|
53318
55297
|
sectionStyles: typeof sectionStyles;
|
|
53319
55298
|
selectStyles: typeof selectStyles;
|
|
55299
|
+
setLocale: typeof setLocale;
|
|
53320
55300
|
showConfirm: typeof showConfirm;
|
|
53321
55301
|
showError: typeof showError;
|
|
53322
55302
|
showExportDwgOptionsDialog: typeof showExportDwgOptionsDialog;
|
|
@@ -53334,17 +55314,25 @@ interface VjcadModule {
|
|
|
53334
55314
|
ssSetFirst: typeof ssSetFirst;
|
|
53335
55315
|
startUndoMark: typeof startUndoMark;
|
|
53336
55316
|
statusStyles: typeof statusStyles;
|
|
55317
|
+
supportsPointerEvents: typeof supportsPointerEvents;
|
|
55318
|
+
t: typeof t;
|
|
53337
55319
|
tea: typeof tea;
|
|
53338
55320
|
textAlignStringToEnum: typeof textAlignStringToEnum;
|
|
53339
55321
|
tileKey: typeof tileKey;
|
|
53340
55322
|
toPoint2D: typeof toPoint2D;
|
|
53341
55323
|
transparencyToString: typeof transparencyToString;
|
|
53342
55324
|
trimWhitespace: typeof trimWhitespace;
|
|
55325
|
+
unregisterSidebarPanel: typeof unregisterSidebarPanel;
|
|
53343
55326
|
unsafeSVGHtml: typeof unsafeSVGHtml;
|
|
53344
55327
|
updateTimeStamp: typeof updateTimeStamp;
|
|
53345
55328
|
wrapTextToLines: typeof wrapTextToLines;
|
|
53346
55329
|
writeMessage: typeof writeMessage;
|
|
53347
55330
|
}
|
|
53348
55331
|
|
|
55332
|
+
// Global declaration for script tag usage (non-module context)
|
|
55333
|
+
declare global {
|
|
55334
|
+
const vjcad: VjcadModule;
|
|
55335
|
+
}
|
|
55336
|
+
|
|
53349
55337
|
declare const vjcad: VjcadModule;
|
|
53350
55338
|
export default vjcad;
|