shop-components 0.0.10 → 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 +2 -2
- package/dist/device-viewer/slot.d.ts +5 -1
- package/dist/shop-components.mjs +4512 -4499
- package/dist/shop-components.umd.js +159 -159
- 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,13 +5,13 @@ 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
|
-
export { Slot };
|
|
14
|
+
export { Slot, DeviceLines };
|
|
15
15
|
export interface Logo {
|
|
16
16
|
name: string;
|
|
17
17
|
target: Mesh;
|
|
@@ -11,12 +11,16 @@ export interface DeviceInfo {
|
|
|
11
11
|
url: string;
|
|
12
12
|
logo?: string;
|
|
13
13
|
}
|
|
14
|
+
export declare const SLOT_EVENTS: {
|
|
15
|
+
ON_DROP: string;
|
|
16
|
+
ON_DROP_ERROR: string;
|
|
17
|
+
};
|
|
14
18
|
export declare class Slot extends CSS2DObject {
|
|
15
19
|
private props;
|
|
16
20
|
private _emitter;
|
|
17
21
|
private _slotContainer;
|
|
18
22
|
addEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
19
|
-
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>;
|
|
20
24
|
private _canInstall;
|
|
21
25
|
get hasDevice(): boolean;
|
|
22
26
|
deviceInfo: DeviceInfo | undefined;
|