shop-components 0.1.25 → 0.1.26

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.
@@ -1,5 +1,6 @@
1
1
  import { Object3D, TextureLoader } from 'three';
2
2
  import { Logo, Scene3D, Skin, Slot } from './scene';
3
+ import { Mechanism } from './mechanism/mechanism';
3
4
  import { ObjectSize } from './utils';
4
5
  import { SizeBox } from './dimension/size-box';
5
6
  import { AMRAssembly } from './assembly';
@@ -26,10 +27,11 @@ export declare class Amr extends Object3D {
26
27
  private _fork;
27
28
  private _jack;
28
29
  private _bodyOpacity;
30
+ private _masts;
29
31
  private _liftMaxHeight;
30
32
  private _jackMaxHeight;
31
33
  private _forkMaxHeight;
32
- private _controllers;
34
+ controllers: Mechanism[];
33
35
  private _breathLights;
34
36
  private _outline;
35
37
  private _shelf;
@@ -1,5 +1,6 @@
1
1
  import { Object3D } from 'three';
2
2
  import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer';
3
+ import EventEmitter from 'eventemitter3';
3
4
  export interface UserData {
4
5
  [key: string]: any;
5
6
  }
@@ -22,8 +23,13 @@ export declare class Mechanism extends CSS2DObject {
22
23
  private _initial;
23
24
  private _canRotate;
24
25
  private _timer;
26
+ private _emitter;
27
+ addListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
28
+ removeListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean | undefined) => EventEmitter<string | symbol, any>;
25
29
  mechanism: Object3D | undefined;
26
30
  constructor(props: MechanismProps, amr: Object3D);
27
31
  private _update;
32
+ hide(): void;
33
+ show(): void;
28
34
  dispose(): void;
29
35
  }