mx3d 2025.5.25 → 2025.5.27

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
@@ -509,6 +509,41 @@ declare class Effect {
509
509
  static removeAll(): void;
510
510
  }
511
511
 
512
+ declare class SpecConfig {
513
+ width?: number;
514
+ height: number;
515
+ depth?: number;
516
+ color?: string;
517
+ fontImgUrl?: string;
518
+ backImgUrl?: string;
519
+ }
520
+ declare class RackModelEditor {
521
+ private container;
522
+ private engine;
523
+ private scene;
524
+ private _width;
525
+ private _height;
526
+ private _depth;
527
+ private color;
528
+ private fontImgUrl;
529
+ private backImgUrl;
530
+ private camera;
531
+ private instance;
532
+ private matBady;
533
+ private matFont;
534
+ private matBack;
535
+ constructor(_container: HTMLCanvasElement, _spec: SpecConfig);
536
+ perspective(): void;
537
+ orthogaphic(toward?: boolean): void;
538
+ set width(w: number);
539
+ set height(h: number);
540
+ set depth(d: number);
541
+ setFontMap(url?: string): void;
542
+ setBackMap(url?: string): void;
543
+ setColor(color?: string): void;
544
+ dispose(): void;
545
+ }
546
+
512
547
  declare class MX3D {
513
548
  static set accessToken(token: string);
514
549
  static get accessToken(): string;
@@ -522,6 +557,7 @@ declare class MX3D {
522
557
  static EventType: typeof EventType;
523
558
  static StatusType: typeof StatusType;
524
559
  static Effect: typeof Effect;
560
+ static RackModelEditor: typeof RackModelEditor;
525
561
  }
526
562
 
527
- export { AlarmFlashing, App, Builder, Effect, EffectType, EventType, ObjectType, StatusType, UI, MX3D as default };
563
+ export { AlarmFlashing, App, Builder, Effect, EffectType, EventType, ObjectType, RackModelEditor, StatusType, UI, MX3D as default };