shop-components 0.0.12 → 0.0.14
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/dist/device-viewer/scene.d.ts +4 -4
- package/dist/device-viewer/slot.d.ts +15 -0
- package/dist/shop-components.mjs +12023 -17546
- package/dist/shop-components.umd.js +310 -312
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -8,10 +8,10 @@ import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer
|
|
|
8
8
|
import EventEmitter from 'eventemitter3';
|
|
9
9
|
import Stats from 'stats-fps.js';
|
|
10
10
|
import { Pane } from 'tweakpane';
|
|
11
|
-
import { Slot } from './slot';
|
|
12
|
-
import { DeviceLines } from './lines';
|
|
11
|
+
import { Slot, SLOT_EVENTS } from './slot';
|
|
12
|
+
import { DeviceLines, Line } from './lines';
|
|
13
13
|
import './style.styl';
|
|
14
|
-
export { Slot, DeviceLines };
|
|
14
|
+
export { Slot, DeviceLines, Line, SLOT_EVENTS };
|
|
15
15
|
export interface Logo {
|
|
16
16
|
name: string;
|
|
17
17
|
target: Mesh;
|
|
@@ -41,6 +41,7 @@ export declare class Scene3D {
|
|
|
41
41
|
private _prevSelectedObj;
|
|
42
42
|
_composer: EffectComposer;
|
|
43
43
|
_outlinePass: OutlinePass;
|
|
44
|
+
_outlinePassError: OutlinePass;
|
|
44
45
|
_fxaaPass: ShaderPass;
|
|
45
46
|
camera: PerspectiveCamera;
|
|
46
47
|
controls: OrbitControls;
|
|
@@ -84,7 +85,6 @@ export declare class Scene3D {
|
|
|
84
85
|
addEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
85
86
|
removeEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
86
87
|
changeSkin(skin: Skin, value: string): void;
|
|
87
|
-
private _initPane;
|
|
88
88
|
showState(): void;
|
|
89
89
|
hideState(): void;
|
|
90
90
|
private _loadEnv;
|
|
@@ -13,25 +13,40 @@ export interface DeviceInfo {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const SLOT_EVENTS: {
|
|
15
15
|
ON_DROP: string;
|
|
16
|
+
ON_BEFORE_SELECTED: string;
|
|
17
|
+
ON_SELECTED: string;
|
|
18
|
+
ON_DEVICE_SELECTED: string;
|
|
16
19
|
ON_DROP_ERROR: string;
|
|
20
|
+
ON_ERROR_STATE_CHANGE: string;
|
|
17
21
|
};
|
|
18
22
|
export declare class Slot extends CSS2DObject {
|
|
19
23
|
private props;
|
|
20
24
|
private _emitter;
|
|
21
25
|
private _slotContainer;
|
|
26
|
+
private _hasError;
|
|
22
27
|
addEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
23
28
|
removeEventListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean | undefined) => EventEmitter<string | symbol, any>;
|
|
24
29
|
private _canInstall;
|
|
30
|
+
private _loading;
|
|
31
|
+
private _selected;
|
|
32
|
+
private _deviceSelected;
|
|
25
33
|
get hasDevice(): boolean;
|
|
26
34
|
deviceInfo: DeviceInfo | undefined;
|
|
27
35
|
constructor(props: SlotProps);
|
|
28
36
|
install(info: DeviceInfo): Promise<void>;
|
|
29
37
|
getWP: (target: import("three").Vector3) => import("three").Vector3;
|
|
38
|
+
get device(): Object3D<import("three").Object3DEventMap> | null;
|
|
30
39
|
clearSlot(): void;
|
|
31
40
|
enable(): void;
|
|
32
41
|
disable(): void;
|
|
33
42
|
hide(): void;
|
|
34
43
|
show(): void;
|
|
44
|
+
get selected(): boolean;
|
|
45
|
+
set selected(s: boolean);
|
|
46
|
+
get deviceSelected(): boolean;
|
|
47
|
+
set deviceSelected(s: boolean);
|
|
48
|
+
get error(): boolean;
|
|
49
|
+
set error(hasError: boolean);
|
|
35
50
|
canInstall(c: boolean): void;
|
|
36
51
|
dispose(): void;
|
|
37
52
|
}
|