shop-components 0.0.8 → 0.0.10
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.
|
@@ -11,11 +11,12 @@ import Stats from 'stats-fps.js';
|
|
|
11
11
|
import { Slot } from './slot';
|
|
12
12
|
import { DeviceLines } from './lines';
|
|
13
13
|
import './style.styl';
|
|
14
|
-
|
|
14
|
+
export { Slot };
|
|
15
|
+
export interface Logo {
|
|
15
16
|
name: string;
|
|
16
17
|
target: Mesh;
|
|
17
18
|
}
|
|
18
|
-
interface Skin {
|
|
19
|
+
export interface Skin {
|
|
19
20
|
name: string;
|
|
20
21
|
target: MeshStandardMaterial;
|
|
21
22
|
}
|
|
@@ -103,4 +104,3 @@ export declare class Scene3D {
|
|
|
103
104
|
ticker: () => void;
|
|
104
105
|
destroy(): void;
|
|
105
106
|
}
|
|
106
|
-
export {};
|
|
@@ -5,6 +5,12 @@ export interface SlotProps {
|
|
|
5
5
|
name: string;
|
|
6
6
|
slot: Object3D;
|
|
7
7
|
}
|
|
8
|
+
export interface DeviceInfo {
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
url: string;
|
|
12
|
+
logo?: string;
|
|
13
|
+
}
|
|
8
14
|
export declare class Slot extends CSS2DObject {
|
|
9
15
|
private props;
|
|
10
16
|
private _emitter;
|
|
@@ -13,8 +19,9 @@ export declare class Slot extends CSS2DObject {
|
|
|
13
19
|
removeEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
14
20
|
private _canInstall;
|
|
15
21
|
get hasDevice(): boolean;
|
|
16
|
-
deviceInfo:
|
|
22
|
+
deviceInfo: DeviceInfo | undefined;
|
|
17
23
|
constructor(props: SlotProps);
|
|
24
|
+
install(info: DeviceInfo): Promise<void>;
|
|
18
25
|
getWP: (target: import("three").Vector3) => import("three").Vector3;
|
|
19
26
|
clearSlot(): void;
|
|
20
27
|
enable(): void;
|
|
@@ -5,10 +5,6 @@ export declare function getElementLeftPosition(element: any): {
|
|
|
5
5
|
x: number;
|
|
6
6
|
y: number;
|
|
7
7
|
};
|
|
8
|
-
export declare function getElementRightPosition(element: any): {
|
|
9
|
-
x: any;
|
|
10
|
-
y: number;
|
|
11
|
-
};
|
|
12
8
|
export declare function getRelativePosition(child: Element, target: Element): {
|
|
13
9
|
y: number;
|
|
14
10
|
x: number;
|
package/dist/main.d.ts
CHANGED