mx3d 2025.4.8 → 2025.4.21
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/index.d.ts +24 -1
- package/mx3d.min.js +1 -1
- package/package.json +1 -1
- package/3be0351ddaf1f95d2095.wasm +0 -0
package/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare module 'mx3d' {
|
|
|
33
33
|
positionGizmo: Runtime.PositionGizmo;
|
|
34
34
|
private SM2;
|
|
35
35
|
constructor(_config: { container: HTMLElement; sl?: string; rl?: string });
|
|
36
|
-
load(_config: { pk?: string; fileUrl?: string; isDefaultLevel?: boolean; isDefaultMutual?: boolean; progress?: Function; complete?: Function; onError?: Function }): Promise<
|
|
36
|
+
load(_config: { pk?: string; fileUrl?: string; isDefaultLevel?: boolean; isDefaultMutual?: boolean; progress?: Function; complete?: Function; onError?: Function }): Promise<Error>;
|
|
37
37
|
isDefaultMutual: boolean;
|
|
38
38
|
set defaultMutual(value: boolean);
|
|
39
39
|
dispose(): void;
|
|
@@ -460,9 +460,31 @@ declare module 'mx3d' {
|
|
|
460
460
|
private minPotential;
|
|
461
461
|
private colors;
|
|
462
462
|
private sphere;
|
|
463
|
+
private boxs;
|
|
464
|
+
constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
|
|
465
|
+
load(): Promise<void>;
|
|
466
|
+
private laodData;
|
|
467
|
+
private generateGridCubesFromBoundingBox;
|
|
468
|
+
private valueToColor;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export class ElectricMap {
|
|
472
|
+
private container;
|
|
473
|
+
private engine;
|
|
474
|
+
private scene;
|
|
475
|
+
private camera;
|
|
476
|
+
private modelUrl;
|
|
477
|
+
private dataUrl;
|
|
478
|
+
private maxPotential;
|
|
479
|
+
private minPotential;
|
|
480
|
+
private colors;
|
|
481
|
+
private sphere;
|
|
482
|
+
private outModel;
|
|
483
|
+
private outModel1;
|
|
463
484
|
constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
|
|
464
485
|
load(): Promise<void>;
|
|
465
486
|
setBuffer(index?: number): void;
|
|
487
|
+
screenshot(): Promise<void>;
|
|
466
488
|
private laodData;
|
|
467
489
|
private valueToColor;
|
|
468
490
|
}
|
|
@@ -1121,6 +1143,7 @@ declare module 'mx3d' {
|
|
|
1121
1143
|
transparentBox: Runtime.Mesh;
|
|
1122
1144
|
BOX: Runtime.Mesh;
|
|
1123
1145
|
FogTex: Runtime.Texture;
|
|
1146
|
+
wallTop: Runtime.StandardMaterial;
|
|
1124
1147
|
constructor(_app: App);
|
|
1125
1148
|
loadModelMesh(baseModel: any): Promise<Runtime.AssetContainer>;
|
|
1126
1149
|
loadModelMeshAsync(baseModel: any, callback: Function): void;
|