shop-components 0.0.20 → 0.0.22
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 +1 -1
- package/dist/device-viewer/slot/slot-item.d.ts +18 -0
- package/dist/device-viewer/slot.d.ts +6 -0
- package/dist/shop-components.mjs +4849 -4761
- package/dist/shop-components.umd.js +307 -290
- package/package.json +9 -9
- package/dist/device-viewer/slot-item.d.ts +0 -8
- package/dist/style.css +0 -1
|
@@ -10,7 +10,6 @@ import Stats from 'stats-fps.js';
|
|
|
10
10
|
import { Pane } from 'tweakpane';
|
|
11
11
|
import { Slot, SLOT_EVENTS } from './slot';
|
|
12
12
|
import { DeviceLines, Line } from './lines';
|
|
13
|
-
import './style.styl';
|
|
14
13
|
export { Slot, DeviceLines, Line, SLOT_EVENTS };
|
|
15
14
|
export interface Logo {
|
|
16
15
|
name: string;
|
|
@@ -100,6 +99,7 @@ export declare class Scene3D {
|
|
|
100
99
|
[key: string]: any;
|
|
101
100
|
}>;
|
|
102
101
|
addAMR(url: string): Promise<void>;
|
|
102
|
+
generateSlot(m: Object3D): Slot | undefined;
|
|
103
103
|
fit: () => void;
|
|
104
104
|
select(obj: string | Object3D | Object3D[]): void;
|
|
105
105
|
appendTo(parent: HTMLElement): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export interface SlotItemProps {
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class SlotItem extends LitElement {
|
|
6
|
+
props: SlotItemProps;
|
|
7
|
+
static styles: import("lit").CSSResult;
|
|
8
|
+
constructor(props: SlotItemProps);
|
|
9
|
+
selected: boolean;
|
|
10
|
+
hasError: boolean;
|
|
11
|
+
canInstall: boolean;
|
|
12
|
+
hide: boolean;
|
|
13
|
+
disable: boolean;
|
|
14
|
+
filled: boolean;
|
|
15
|
+
slot: any;
|
|
16
|
+
onClick(e: MouseEvent): void;
|
|
17
|
+
protected render(): unknown;
|
|
18
|
+
}
|
|
@@ -10,6 +10,7 @@ export interface DeviceInfo {
|
|
|
10
10
|
id: string;
|
|
11
11
|
url: string;
|
|
12
12
|
logo?: string;
|
|
13
|
+
bracketUrl?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const SLOT_EVENTS: {
|
|
15
16
|
ON_DROP: string;
|
|
@@ -23,7 +24,10 @@ export declare class Slot extends CSS2DObject {
|
|
|
23
24
|
private props;
|
|
24
25
|
private _emitter;
|
|
25
26
|
private _slotContainer;
|
|
27
|
+
private _slotUI;
|
|
28
|
+
private _bracketSlots;
|
|
26
29
|
private _hasError;
|
|
30
|
+
useBracket: boolean;
|
|
27
31
|
addEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
28
32
|
removeEventListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean | undefined) => EventEmitter<string | symbol, any>;
|
|
29
33
|
private _canInstall;
|
|
@@ -33,6 +37,8 @@ export declare class Slot extends CSS2DObject {
|
|
|
33
37
|
get hasDevice(): boolean;
|
|
34
38
|
deviceInfo: DeviceInfo | undefined;
|
|
35
39
|
constructor(props: SlotProps);
|
|
40
|
+
loadGlb(sglb: string): Promise<Object3D<import("three").Object3DEventMap> | undefined>;
|
|
41
|
+
installBracket(url: string): Promise<void>;
|
|
36
42
|
install(info: DeviceInfo): Promise<void>;
|
|
37
43
|
getWP: (target: import("three").Vector3) => import("three").Vector3;
|
|
38
44
|
get device(): Object3D<import("three").Object3DEventMap> | null;
|