mx3d 2025.3.21 → 2025.4.7
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 +31 -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
|
@@ -32,7 +32,7 @@ declare module 'mx3d' {
|
|
|
32
32
|
gl: Runtime.GlowLayer;
|
|
33
33
|
positionGizmo: Runtime.PositionGizmo;
|
|
34
34
|
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>;
|
|
35
|
+
load(_config: { pk?: string; fileUrl?: string; isDefaultLevel?: boolean; isDefaultMutual?: boolean; progress?: Function; complete?: Function; onError?: Function }): Promise<void>;
|
|
36
36
|
isDefaultMutual: boolean;
|
|
37
37
|
set defaultMutual(value: boolean);
|
|
38
38
|
dispose(): void;
|
|
@@ -125,17 +125,18 @@ declare module 'mx3d' {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export class Environment {
|
|
128
|
-
app
|
|
129
|
-
lights
|
|
130
|
-
_color
|
|
131
|
-
background
|
|
132
|
-
reflexEnabled
|
|
133
|
-
reflexIntensity
|
|
128
|
+
private app;
|
|
129
|
+
private lights;
|
|
130
|
+
private _color;
|
|
131
|
+
private background;
|
|
132
|
+
private reflexEnabled;
|
|
133
|
+
private reflexIntensity;
|
|
134
134
|
constructor(_app: App);
|
|
135
135
|
setTransparent(_visibility?: number): void;
|
|
136
136
|
default(): void;
|
|
137
137
|
set fogDistance(_value: number);
|
|
138
|
-
|
|
138
|
+
setfogColor(_value: string): void;
|
|
139
|
+
set color(_value: string);
|
|
139
140
|
reflex(url: string, intensity: number): void;
|
|
140
141
|
setBackground(url: string): void;
|
|
141
142
|
setReflexEnabled(_reflexEnabled: boolean): void;
|
|
@@ -447,6 +448,24 @@ declare module 'mx3d' {
|
|
|
447
448
|
registerAfterRender(): void;
|
|
448
449
|
}
|
|
449
450
|
|
|
451
|
+
export class ElectricMap {
|
|
452
|
+
private container;
|
|
453
|
+
private engine;
|
|
454
|
+
private scene;
|
|
455
|
+
private camera;
|
|
456
|
+
private modelUrl;
|
|
457
|
+
private dataUrl;
|
|
458
|
+
private maxPotential;
|
|
459
|
+
private minPotential;
|
|
460
|
+
private colors;
|
|
461
|
+
private sphere;
|
|
462
|
+
constructor(_container: HTMLCanvasElement, _modelUrl: string, _dataUrl: string);
|
|
463
|
+
load(): Promise<void>;
|
|
464
|
+
setBuffer(index?: number): void;
|
|
465
|
+
private laodData;
|
|
466
|
+
private valueToColor;
|
|
467
|
+
}
|
|
468
|
+
|
|
450
469
|
export class BABYLONLayer implements CustomLayerInterface {
|
|
451
470
|
id: string;
|
|
452
471
|
type: 'custom';
|
|
@@ -634,6 +653,10 @@ declare module 'mx3d' {
|
|
|
634
653
|
setTransparent(alpha?: number): void;
|
|
635
654
|
}
|
|
636
655
|
|
|
656
|
+
export class Config {
|
|
657
|
+
static project: string;
|
|
658
|
+
}
|
|
659
|
+
|
|
637
660
|
export class CornerObject implements IObject {
|
|
638
661
|
app: App;
|
|
639
662
|
id: string;
|