deepvent 1.0.1 → 1.1.1
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 +55 -87
- package/dist/index.js +12865 -12883
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ export declare class App implements IApp {
|
|
|
180
180
|
disaster: IDisaster;
|
|
181
181
|
detection: IDetection;
|
|
182
182
|
select: ISelect;
|
|
183
|
+
message: Message;
|
|
183
184
|
last: string;
|
|
184
185
|
state: string;
|
|
185
186
|
schemeId?: string;
|
|
@@ -265,7 +266,6 @@ export declare class App implements IApp {
|
|
|
265
266
|
label: string;
|
|
266
267
|
}>;
|
|
267
268
|
defaultNames?: Partial<typeof Config.DEFAULT_NAME>;
|
|
268
|
-
warnMessages?: Partial<typeof Config.WARN_MESSAGE>;
|
|
269
269
|
}): void;
|
|
270
270
|
setKeyConfig(data: KeyConfig): void;
|
|
271
271
|
}
|
|
@@ -311,9 +311,7 @@ declare interface AppEventMap {
|
|
|
311
311
|
batchmove: {
|
|
312
312
|
active: boolean;
|
|
313
313
|
};
|
|
314
|
-
message:
|
|
315
|
-
message: string;
|
|
316
|
-
};
|
|
314
|
+
message: any;
|
|
317
315
|
}
|
|
318
316
|
|
|
319
317
|
/**
|
|
@@ -383,90 +381,10 @@ export declare const Config: {
|
|
|
383
381
|
tempTunnel: string;
|
|
384
382
|
nodeName: string;
|
|
385
383
|
};
|
|
386
|
-
WARN_MESSAGE: {
|
|
387
|
-
resourceNotFound: string;
|
|
388
|
-
invalidEntityMissingPipeId: string;
|
|
389
|
-
entityMissingPosition: string;
|
|
390
|
-
pipeNotFoundForEntity: string;
|
|
391
|
-
dataNotInitialized: string;
|
|
392
|
-
noEntityData: string;
|
|
393
|
-
noFileSelected: string;
|
|
394
|
-
onlyDxfDwgSupported: string;
|
|
395
|
-
noLayerSpecified: string;
|
|
396
|
-
dxfNoEntities: string;
|
|
397
|
-
invalidSerializedData: string;
|
|
398
|
-
pipeAlreadyHasDuct: string;
|
|
399
|
-
addPipeFailed: string;
|
|
400
|
-
addFanFailedInvalidPipe: string;
|
|
401
|
-
addShapeFailedInvalidPipe: string;
|
|
402
|
-
addDuctFailedInvalidPipe: string;
|
|
403
|
-
fanCreateFailed: string;
|
|
404
|
-
shapeCreateFailed: string;
|
|
405
|
-
ductCreateFailed: string;
|
|
406
|
-
saveSceneFailed: string;
|
|
407
|
-
loadSceneFailed: string;
|
|
408
|
-
restoreSceneFailed: string;
|
|
409
|
-
parseDxfFailed: string;
|
|
410
|
-
parseDxfFileFailed: string;
|
|
411
|
-
parseDwgFailed: string;
|
|
412
|
-
noRampProperties: string;
|
|
413
|
-
invalidExitId: string;
|
|
414
|
-
noExitNodesFound: string;
|
|
415
|
-
mergeGeometryFailed: string;
|
|
416
|
-
cylinderTooShort: string;
|
|
417
|
-
addFanError: string;
|
|
418
|
-
addShapeError: string;
|
|
419
|
-
addSpriteFailedInvalidPipe: string;
|
|
420
|
-
addSpriteFailedCreate: string;
|
|
421
|
-
addSpriteError: string;
|
|
422
|
-
addDuctError: string;
|
|
423
|
-
unknownActionType: string;
|
|
424
|
-
executeActionError: string;
|
|
425
|
-
parsePropertiesError: string;
|
|
426
|
-
undoActionError: string;
|
|
427
|
-
spriteCreateFailed: string;
|
|
428
|
-
createFanError: string;
|
|
429
|
-
createSpriteError: string;
|
|
430
|
-
createShapeError: string;
|
|
431
|
-
curvePointsInsufficient: string;
|
|
432
|
-
processDxfEntitiesError: string;
|
|
433
|
-
batchProcessDxfError: string;
|
|
434
|
-
loadJsonError: string;
|
|
435
|
-
loadDxfError: string;
|
|
436
|
-
loadGlbError: string;
|
|
437
|
-
performanceWarning: string;
|
|
438
|
-
updateObjectError: string;
|
|
439
|
-
invalidLineEntity: string;
|
|
440
|
-
lineVertexMissingCoords: string;
|
|
441
|
-
rampVerticalRequired: string;
|
|
442
|
-
rampMissingPoints: string;
|
|
443
|
-
rampPointsInsufficient: string;
|
|
444
|
-
rampOptimizedPointsInsufficient: string;
|
|
445
|
-
rampCreateError: string;
|
|
446
|
-
rampPreviewError: string;
|
|
447
|
-
rampPreviewPointsInsufficient: string;
|
|
448
|
-
invalidDataOrEntities: string;
|
|
449
|
-
tunnelVertexIncomplete: string;
|
|
450
|
-
tunnelVertexCoordsIncomplete: string;
|
|
451
|
-
unknownSensorType: string;
|
|
452
|
-
cleanTempFanError: string;
|
|
453
|
-
cleanTempShapeError: string;
|
|
454
|
-
cleanTempSpriteError: string;
|
|
455
|
-
updateNotSupported: string;
|
|
456
|
-
deleteNotSupported: string;
|
|
457
|
-
dbOpenFailed: string;
|
|
458
|
-
sceneSaveFailed: string;
|
|
459
|
-
sceneGetFailed: string;
|
|
460
|
-
sceneGetAllFailed: string;
|
|
461
|
-
sceneDeleteFailed: string;
|
|
462
|
-
sceneClearFailed: string;
|
|
463
|
-
sceneImportFailed: string;
|
|
464
|
-
clickPipeHint: string;
|
|
465
|
-
minPointsRequired: string;
|
|
466
|
-
};
|
|
467
384
|
SET_CONFIG: SetConfig;
|
|
468
385
|
KEY_CONFIG: KeyConfig;
|
|
469
386
|
PARAM_CONFIG: ParamConfig;
|
|
387
|
+
MESSAGE_CODES: Record<number, "info" | "warn" | "error">;
|
|
470
388
|
DECIMAL_NUM: number;
|
|
471
389
|
PIPE_NAME: "LINE";
|
|
472
390
|
FAN_NAME: "FAN";
|
|
@@ -1530,6 +1448,7 @@ export declare interface IApp {
|
|
|
1530
1448
|
outline: OutlinePass;
|
|
1531
1449
|
controls: OrbitControls;
|
|
1532
1450
|
listener: EventListener_2;
|
|
1451
|
+
message: IMessage;
|
|
1533
1452
|
raycaster: THREE.Raycaster;
|
|
1534
1453
|
resizer: IResizer;
|
|
1535
1454
|
storage: IStorage;
|
|
@@ -1901,6 +1820,16 @@ export declare interface ILoop {
|
|
|
1901
1820
|
remove(object: any): boolean;
|
|
1902
1821
|
}
|
|
1903
1822
|
|
|
1823
|
+
/**
|
|
1824
|
+
* 消息处理接口
|
|
1825
|
+
*/
|
|
1826
|
+
declare interface IMessage {
|
|
1827
|
+
send(code: number): void;
|
|
1828
|
+
info(code: number): void;
|
|
1829
|
+
warn(code: number): void;
|
|
1830
|
+
error(code: number): void;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1904
1833
|
/**
|
|
1905
1834
|
* 批量移动工具接口
|
|
1906
1835
|
*/
|
|
@@ -2370,13 +2299,52 @@ export declare interface MeshWithGeometryAndMaterial extends THREE.Object3D {
|
|
|
2370
2299
|
dispose?(): void;
|
|
2371
2300
|
}
|
|
2372
2301
|
|
|
2302
|
+
/**
|
|
2303
|
+
* Message - 消息处理类
|
|
2304
|
+
* 用于统一处理异常和错误消息的触发
|
|
2305
|
+
*/
|
|
2306
|
+
export declare class Message {
|
|
2307
|
+
private app;
|
|
2308
|
+
constructor(app: IApp);
|
|
2309
|
+
/**
|
|
2310
|
+
* 发送消息
|
|
2311
|
+
* @param code - 消息编码
|
|
2312
|
+
*/
|
|
2313
|
+
send(code: number): void;
|
|
2314
|
+
/**
|
|
2315
|
+
* 发送信息消息
|
|
2316
|
+
* @param code - 消息编码
|
|
2317
|
+
*/
|
|
2318
|
+
info(code: number): void;
|
|
2319
|
+
/**
|
|
2320
|
+
* 发送警告消息
|
|
2321
|
+
* @param code - 消息编码
|
|
2322
|
+
*/
|
|
2323
|
+
warn(code: number): void;
|
|
2324
|
+
/**
|
|
2325
|
+
* 发送错误消息
|
|
2326
|
+
* @param code - 消息编码
|
|
2327
|
+
*/
|
|
2328
|
+
error(code: number): void;
|
|
2329
|
+
/**
|
|
2330
|
+
* 获取消息类型
|
|
2331
|
+
* @param code - 消息编码
|
|
2332
|
+
* @returns 消息类型
|
|
2333
|
+
*/
|
|
2334
|
+
static getMessageType(code: number): 'info' | 'warn' | 'error' | undefined;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2373
2337
|
/**
|
|
2374
2338
|
* 消息事件
|
|
2375
2339
|
*/
|
|
2376
2340
|
declare interface MessageEvent_2 extends AppEvent {
|
|
2377
2341
|
type: 'message';
|
|
2378
|
-
|
|
2342
|
+
data: {
|
|
2343
|
+
type: 'info' | 'warn' | 'error';
|
|
2344
|
+
code: number;
|
|
2345
|
+
};
|
|
2379
2346
|
}
|
|
2347
|
+
export { MessageEvent_2 as MessageEvent }
|
|
2380
2348
|
|
|
2381
2349
|
/**
|
|
2382
2350
|
* 批量移动工具类 - 使用 TransformControls 批量移动选中的三维对象
|
|
@@ -3572,7 +3540,7 @@ export declare interface Vector3JSON {
|
|
|
3572
3540
|
z: number;
|
|
3573
3541
|
}
|
|
3574
3542
|
|
|
3575
|
-
export declare const VERSION = "
|
|
3543
|
+
export declare const VERSION = "1.1.1";
|
|
3576
3544
|
|
|
3577
3545
|
export declare class View implements IView {
|
|
3578
3546
|
private app;
|