deepvent 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +26 -30
- package/dist/index.js +13767 -12803
- package/package.json +28 -30
package/dist/index.d.ts
CHANGED
|
@@ -185,6 +185,7 @@ export declare class App implements IApp {
|
|
|
185
185
|
state: string;
|
|
186
186
|
schemeId?: string;
|
|
187
187
|
schemeState?: boolean;
|
|
188
|
+
wasmPath?: string;
|
|
188
189
|
innerWidth: number;
|
|
189
190
|
innerHeight: number;
|
|
190
191
|
grid: IGridHelper;
|
|
@@ -328,12 +329,14 @@ export declare interface AppOptions {
|
|
|
328
329
|
paramConfig?: Partial<ParamConfig>;
|
|
329
330
|
/** 方案 ID */
|
|
330
331
|
schemeId?: string;
|
|
331
|
-
/**
|
|
332
|
+
/** 方案状态 */
|
|
332
333
|
schemeState?: boolean;
|
|
333
334
|
/** 比例尺 */
|
|
334
335
|
scale?: number;
|
|
335
336
|
/** 配置 */
|
|
336
337
|
localeConfig?: LocaleConfig;
|
|
338
|
+
/** WASM 文件路径 */
|
|
339
|
+
wasmPath?: string;
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
/**
|
|
@@ -362,7 +365,7 @@ export declare const Config: {
|
|
|
362
365
|
value: string;
|
|
363
366
|
label: string;
|
|
364
367
|
}[];
|
|
365
|
-
|
|
368
|
+
VISIBLE_ENTITIES: string[];
|
|
366
369
|
DEFAULT_NAME: {
|
|
367
370
|
groupName: string;
|
|
368
371
|
sceneName: string;
|
|
@@ -400,6 +403,7 @@ export declare const Config: {
|
|
|
400
403
|
EXIT_NAME: "EXIT";
|
|
401
404
|
WINDSENSOR_NAME: "WINDSENSOR";
|
|
402
405
|
STATION_NAME: "STATION";
|
|
406
|
+
WASM_PATH: string;
|
|
403
407
|
IMGS: {
|
|
404
408
|
/** background 纹理 */
|
|
405
409
|
background: string;
|
|
@@ -622,7 +626,7 @@ export declare interface DwgEntity {
|
|
|
622
626
|
color: number;
|
|
623
627
|
colorIndex: number;
|
|
624
628
|
colorName: string;
|
|
625
|
-
endPoint
|
|
629
|
+
endPoint?: {
|
|
626
630
|
x: number;
|
|
627
631
|
y: number;
|
|
628
632
|
z: number;
|
|
@@ -639,7 +643,7 @@ export declare interface DwgEntity {
|
|
|
639
643
|
lineTypeScale: number;
|
|
640
644
|
lineweight: number;
|
|
641
645
|
ownerBlockRecordSoftId: number;
|
|
642
|
-
startPoint
|
|
646
|
+
startPoint?: {
|
|
643
647
|
x: number;
|
|
644
648
|
y: number;
|
|
645
649
|
z: number;
|
|
@@ -647,6 +651,16 @@ export declare interface DwgEntity {
|
|
|
647
651
|
thickness: number;
|
|
648
652
|
transparency: number;
|
|
649
653
|
type: string;
|
|
654
|
+
/** POLYLINE 顶点数组 */
|
|
655
|
+
vertices?: Array<{
|
|
656
|
+
x: number;
|
|
657
|
+
y: number;
|
|
658
|
+
z?: number;
|
|
659
|
+
}>;
|
|
660
|
+
/** LWPOLYLINE 高程值 */
|
|
661
|
+
elevation?: number;
|
|
662
|
+
/** 闭合标志 (1 = 闭合) */
|
|
663
|
+
flag?: number;
|
|
650
664
|
}
|
|
651
665
|
|
|
652
666
|
/**
|
|
@@ -1122,7 +1136,7 @@ export declare interface FanJSON {
|
|
|
1122
1136
|
pipeId: string;
|
|
1123
1137
|
nodeId: string;
|
|
1124
1138
|
groupId: string;
|
|
1125
|
-
position:
|
|
1139
|
+
position: Position;
|
|
1126
1140
|
relativePosition: number;
|
|
1127
1141
|
velocity: number;
|
|
1128
1142
|
pressure: number;
|
|
@@ -1608,10 +1622,10 @@ export declare interface IDuct {
|
|
|
1608
1622
|
* DWG管理器接口
|
|
1609
1623
|
*/
|
|
1610
1624
|
export declare interface IDwgManager {
|
|
1611
|
-
initialize(): Promise<void>;
|
|
1625
|
+
initialize(wasmPath?: string): Promise<void>;
|
|
1612
1626
|
parseDwg(fileContent: ArrayBuffer): Promise<any>;
|
|
1613
1627
|
loadFromFile(file: File): Promise<any>;
|
|
1614
|
-
parseDwgData(entities: DwgEntity[], properties:
|
|
1628
|
+
parseDwgData(entities: DwgEntity[], properties: PanelData): void;
|
|
1615
1629
|
}
|
|
1616
1630
|
|
|
1617
1631
|
/**
|
|
@@ -2251,8 +2265,6 @@ declare interface LocaleConfig {
|
|
|
2251
2265
|
entityOptions?: EntityOptionConfig[];
|
|
2252
2266
|
/** 默认名称 */
|
|
2253
2267
|
defaultNames?: DefaultNameConfig;
|
|
2254
|
-
/** 警告信息 */
|
|
2255
|
-
warnMessages?: WarnMessageConfig;
|
|
2256
2268
|
}
|
|
2257
2269
|
|
|
2258
2270
|
/**
|
|
@@ -2701,7 +2713,7 @@ export declare interface PipeJSON {
|
|
|
2701
2713
|
startLinkId?: string;
|
|
2702
2714
|
endLinkId?: string;
|
|
2703
2715
|
colorIndex: number;
|
|
2704
|
-
vertices:
|
|
2716
|
+
vertices: Position[];
|
|
2705
2717
|
size?: number;
|
|
2706
2718
|
width?: number;
|
|
2707
2719
|
height?: number;
|
|
@@ -2762,7 +2774,7 @@ export declare interface PointJSON {
|
|
|
2762
2774
|
id: string;
|
|
2763
2775
|
type: string;
|
|
2764
2776
|
name: string;
|
|
2765
|
-
position:
|
|
2777
|
+
position: Position;
|
|
2766
2778
|
}
|
|
2767
2779
|
|
|
2768
2780
|
export declare class Pollution implements Updatable {
|
|
@@ -3210,7 +3222,7 @@ export declare interface ShapeJSON {
|
|
|
3210
3222
|
pipeId: string;
|
|
3211
3223
|
nodeId: string;
|
|
3212
3224
|
groupId: string;
|
|
3213
|
-
position:
|
|
3225
|
+
position: Position;
|
|
3214
3226
|
relativePosition: number;
|
|
3215
3227
|
direction: string;
|
|
3216
3228
|
sensors: string[];
|
|
@@ -3316,7 +3328,7 @@ export declare interface SpriteJSON {
|
|
|
3316
3328
|
pipeId: string;
|
|
3317
3329
|
nodeId: string;
|
|
3318
3330
|
groupId: string;
|
|
3319
|
-
position:
|
|
3331
|
+
position: Position;
|
|
3320
3332
|
relativePosition: number;
|
|
3321
3333
|
direction: string;
|
|
3322
3334
|
}
|
|
@@ -3531,16 +3543,7 @@ export declare interface UpdateEvent extends AppEvent {
|
|
|
3531
3543
|
object: object | null;
|
|
3532
3544
|
}
|
|
3533
3545
|
|
|
3534
|
-
|
|
3535
|
-
* 3D向量JSON表示
|
|
3536
|
-
*/
|
|
3537
|
-
export declare interface Vector3JSON {
|
|
3538
|
-
x: number;
|
|
3539
|
-
y: number;
|
|
3540
|
-
z: number;
|
|
3541
|
-
}
|
|
3542
|
-
|
|
3543
|
-
export declare const VERSION = "1.1.1";
|
|
3546
|
+
export declare const VERSION = "1.1.2";
|
|
3544
3547
|
|
|
3545
3548
|
export declare class View implements IView {
|
|
3546
3549
|
private app;
|
|
@@ -3595,13 +3598,6 @@ export declare interface VisibilityEvent extends AppEvent {
|
|
|
3595
3598
|
visible: boolean;
|
|
3596
3599
|
}
|
|
3597
3600
|
|
|
3598
|
-
/**
|
|
3599
|
-
* 警告信息配置
|
|
3600
|
-
*/
|
|
3601
|
-
declare interface WarnMessageConfig {
|
|
3602
|
-
[key: string]: string;
|
|
3603
|
-
}
|
|
3604
|
-
|
|
3605
3601
|
export { }
|
|
3606
3602
|
|
|
3607
3603
|
|