mx3d 2025.3.21 → 2025.4.8
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/3be0351ddaf1f95d2095.wasm +0 -0
- package/README.md +1 -1
- package/index.d.ts +32 -8
- package/mx3d.min.js +1 -1
- package/package.json +1 -1
- package/mx3d.seat.min.js +0 -1
|
Binary file
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
mx3djs 可以快速将我搭世界场景嵌入自定义 web 程序中。并提供操作场景、模型的 js 方法,为用户提供简单、高效的二次开发环境。mx3djs 支持以 html 页面直接引用、nodejs + js、nodejs + typescript 等进行开发。
|
|
8
8
|
|
|
9
|
-
查看[快速开始](/started/quickstart.
|
|
9
|
+
查看[快速开始](https://www.wodashijie.com/docs/sdk/started/quickstart.html)了解详情。
|
|
10
10
|
|
|
11
11
|
## 特性
|
|
12
12
|
|
package/index.d.ts
CHANGED
|
@@ -31,8 +31,9 @@ declare module 'mx3d' {
|
|
|
31
31
|
toolTips: ToolTips;
|
|
32
32
|
gl: Runtime.GlowLayer;
|
|
33
33
|
positionGizmo: Runtime.PositionGizmo;
|
|
34
|
+
private SM2;
|
|
34
35
|
constructor(_config: { container: HTMLElement; sl?: string; rl?: string });
|
|
35
|
-
load(_config: { pk?: string; isDefaultLevel?: boolean; isDefaultMutual?: boolean; progress?: Function; complete?: Function; onError?: Function }): Promise<void>;
|
|
36
|
+
load(_config: { pk?: string; fileUrl?: string; isDefaultLevel?: boolean; isDefaultMutual?: boolean; progress?: Function; complete?: Function; onError?: Function }): Promise<void>;
|
|
36
37
|
isDefaultMutual: boolean;
|
|
37
38
|
set defaultMutual(value: boolean);
|
|
38
39
|
dispose(): void;
|
|
@@ -125,17 +126,18 @@ declare module 'mx3d' {
|
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
export class Environment {
|
|
128
|
-
app
|
|
129
|
-
lights
|
|
130
|
-
_color
|
|
131
|
-
background
|
|
132
|
-
reflexEnabled
|
|
133
|
-
reflexIntensity
|
|
129
|
+
private app;
|
|
130
|
+
private lights;
|
|
131
|
+
private _color;
|
|
132
|
+
private background;
|
|
133
|
+
private reflexEnabled;
|
|
134
|
+
private reflexIntensity;
|
|
134
135
|
constructor(_app: App);
|
|
135
136
|
setTransparent(_visibility?: number): void;
|
|
136
137
|
default(): void;
|
|
137
138
|
set fogDistance(_value: number);
|
|
138
|
-
|
|
139
|
+
setfogColor(_value: string): void;
|
|
140
|
+
set color(_value: string);
|
|
139
141
|
reflex(url: string, intensity: number): void;
|
|
140
142
|
setBackground(url: string): void;
|
|
141
143
|
setReflexEnabled(_reflexEnabled: boolean): void;
|
|
@@ -447,6 +449,24 @@ declare module 'mx3d' {
|
|
|
447
449
|
registerAfterRender(): void;
|
|
448
450
|
}
|
|
449
451
|
|
|
452
|
+
export class ElectricMap {
|
|
453
|
+
private container;
|
|
454
|
+
private engine;
|
|
455
|
+
private scene;
|
|
456
|
+
private camera;
|
|
457
|
+
private modelUrl;
|
|
458
|
+
private dataUrl;
|
|
459
|
+
private maxPotential;
|
|
460
|
+
private minPotential;
|
|
461
|
+
private colors;
|
|
462
|
+
private sphere;
|
|
463
|
+
constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
|
|
464
|
+
load(): Promise<void>;
|
|
465
|
+
setBuffer(index?: number): void;
|
|
466
|
+
private laodData;
|
|
467
|
+
private valueToColor;
|
|
468
|
+
}
|
|
469
|
+
|
|
450
470
|
export class BABYLONLayer implements CustomLayerInterface {
|
|
451
471
|
id: string;
|
|
452
472
|
type: 'custom';
|
|
@@ -634,6 +654,10 @@ declare module 'mx3d' {
|
|
|
634
654
|
setTransparent(alpha?: number): void;
|
|
635
655
|
}
|
|
636
656
|
|
|
657
|
+
export class Config {
|
|
658
|
+
static project: string;
|
|
659
|
+
}
|
|
660
|
+
|
|
637
661
|
export class CornerObject implements IObject {
|
|
638
662
|
app: App;
|
|
639
663
|
id: string;
|