mx3d 2025.5.61 → 2025.5.62

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.
Files changed (3) hide show
  1. package/index.d.ts +20 -11
  2. package/mx3d.min.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,12 +1,25 @@
1
- declare module '*.jpg';
2
- declare module '*.png';
3
- declare module '*.env';
1
+ const GlobalConfig: {
2
+ accessToken: string;
3
+ pk: string;
4
+ sl: string;
5
+ rl: string;
6
+ };
4
7
 
5
8
  declare module 'mx3d' {
6
- let accessToken: string;
7
- let pk: string;
8
- let sl: string;
9
- let rl: string;
9
+ export default class MX3D {
10
+ static set accessToken(token: string);
11
+ static get accessToken(): string;
12
+ static App: typeof App;
13
+ static Request: import('axios').AxiosInstance;
14
+ static AlarmFlashing: typeof AlarmFlashing;
15
+ static UI: typeof UI;
16
+ static Builder: typeof Builder;
17
+ static ObjectType: typeof ObjectType;
18
+ static EffectType: typeof EffectType;
19
+ static EventType: typeof EventType;
20
+ static StatusType: typeof StatusType;
21
+ static Effect: typeof Effect;
22
+ }
10
23
 
11
24
  export class AlarmFlashing {
12
25
  static colors: {
@@ -680,10 +693,6 @@ declare module 'mx3d' {
680
693
  setTransparent(alpha?: number): void;
681
694
  }
682
695
 
683
- export class Config {
684
- static project: string;
685
- }
686
-
687
696
  export class CornerObject implements IObject {
688
697
  app: App;
689
698
  id: string;