mx3d 2025.4.93 → 2025.5.6

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 CHANGED
@@ -1,3 +1,7 @@
1
+ declare module '*.jpg';
2
+ declare module '*.png';
3
+ declare module '*.env';
4
+
1
5
  declare module 'mx3d' {
2
6
  let accessToken: string;
3
7
  let pk: string;
@@ -460,9 +464,31 @@ declare module 'mx3d' {
460
464
  private minPotential;
461
465
  private colors;
462
466
  private sphere;
467
+ private boxs;
468
+ constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
469
+ load(): Promise<void>;
470
+ private laodData;
471
+ private generateGridCubesFromBoundingBox;
472
+ private valueToColor;
473
+ }
474
+
475
+ export class ElectricMap {
476
+ private container;
477
+ private engine;
478
+ private scene;
479
+ private camera;
480
+ private modelUrl;
481
+ private dataUrl;
482
+ private maxPotential;
483
+ private minPotential;
484
+ private colors;
485
+ private sphere;
486
+ private outModel;
487
+ private outModel1;
463
488
  constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
464
489
  load(): Promise<void>;
465
490
  setBuffer(index?: number): void;
491
+ screenshot(): Promise<void>;
466
492
  private laodData;
467
493
  private valueToColor;
468
494
  }
@@ -1121,6 +1147,7 @@ declare module 'mx3d' {
1121
1147
  transparentBox: Runtime.Mesh;
1122
1148
  BOX: Runtime.Mesh;
1123
1149
  FogTex: Runtime.Texture;
1150
+ wallTop: Runtime.StandardMaterial;
1124
1151
  constructor(_app: App);
1125
1152
  loadModelMesh(baseModel: any): Promise<Runtime.AssetContainer>;
1126
1153
  loadModelMeshAsync(baseModel: any, callback: Function): void;