shop-components 0.0.9 → 0.0.12
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/lines.d.ts +4 -1
- package/dist/device-viewer/scene.d.ts +4 -4
- package/dist/device-viewer/slot.d.ts +13 -2
- package/dist/shop-components.mjs +4521 -4504
- package/dist/shop-components.umd.js +167 -167
- package/package.json +1 -1
|
@@ -15,9 +15,12 @@ export declare class Line {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class DeviceLines extends LitElement {
|
|
17
17
|
offset: Vector2;
|
|
18
|
+
heightOffset: number;
|
|
18
19
|
lines: Map<string, Line>;
|
|
19
20
|
container: HTMLDivElement | undefined;
|
|
20
|
-
constructor(offset: Vector2);
|
|
21
|
+
constructor(offset: Vector2, heightOffset?: number);
|
|
22
|
+
setOffset(x: number, y: number): void;
|
|
23
|
+
setHeightOffset(height: number): void;
|
|
21
24
|
hide(): void;
|
|
22
25
|
show(): void;
|
|
23
26
|
addLine(line: Line): void;
|
|
@@ -5,17 +5,18 @@ import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
|
5
5
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
6
6
|
import { InstancedFlow } from 'three/examples/jsm/modifiers/CurveModifier';
|
|
7
7
|
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
8
|
-
import { Pane } from 'tweakpane';
|
|
9
8
|
import EventEmitter from 'eventemitter3';
|
|
10
9
|
import Stats from 'stats-fps.js';
|
|
10
|
+
import { Pane } from 'tweakpane';
|
|
11
11
|
import { Slot } from './slot';
|
|
12
12
|
import { DeviceLines } from './lines';
|
|
13
13
|
import './style.styl';
|
|
14
|
-
|
|
14
|
+
export { Slot, DeviceLines };
|
|
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,16 +5,27 @@ 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
|
+
}
|
|
14
|
+
export declare const SLOT_EVENTS: {
|
|
15
|
+
ON_DROP: string;
|
|
16
|
+
ON_DROP_ERROR: string;
|
|
17
|
+
};
|
|
8
18
|
export declare class Slot extends CSS2DObject {
|
|
9
19
|
private props;
|
|
10
20
|
private _emitter;
|
|
11
21
|
private _slotContainer;
|
|
12
22
|
addEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
13
|
-
removeEventListener: <T extends string | symbol>(event: T, fn
|
|
23
|
+
removeEventListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean | undefined) => EventEmitter<string | symbol, any>;
|
|
14
24
|
private _canInstall;
|
|
15
25
|
get hasDevice(): boolean;
|
|
16
|
-
deviceInfo:
|
|
26
|
+
deviceInfo: DeviceInfo | undefined;
|
|
17
27
|
constructor(props: SlotProps);
|
|
28
|
+
install(info: DeviceInfo): Promise<void>;
|
|
18
29
|
getWP: (target: import("three").Vector3) => import("three").Vector3;
|
|
19
30
|
clearSlot(): void;
|
|
20
31
|
enable(): void;
|