shop-components 0.1.9 → 0.1.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.
- package/dist/device-viewer/index.d.ts +1 -0
- package/dist/device-viewer/scene.d.ts +21 -1
- package/dist/shop-components.mjs +2825 -2797
- package/dist/shop-components.umd.js +279 -279
- package/package.json +1 -1
|
@@ -46,6 +46,7 @@ export declare class DeviceViewer extends LitElement {
|
|
|
46
46
|
changeGoodsSize: (e: any) => void;
|
|
47
47
|
changeColor: (s: Skin, value: string) => void;
|
|
48
48
|
selectLogo: (l: Logo) => void;
|
|
49
|
+
resetLogo: (l: Logo) => void;
|
|
49
50
|
dragstart: (e: DragEvent) => void;
|
|
50
51
|
dragend: (e: DragEvent) => void;
|
|
51
52
|
getShapeKeyValue: (key: string) => any;
|
|
@@ -14,7 +14,7 @@ import { DeviceLines, Line } from './lines';
|
|
|
14
14
|
import { Amr } from './amr';
|
|
15
15
|
export declare const font: Font;
|
|
16
16
|
export { Slot, DeviceLines, Line, SLOT_EVENTS };
|
|
17
|
-
export interface
|
|
17
|
+
export interface LogoProps {
|
|
18
18
|
name: string;
|
|
19
19
|
target: Mesh;
|
|
20
20
|
size: {
|
|
@@ -31,6 +31,26 @@ export interface SkinProps {
|
|
|
31
31
|
name: string;
|
|
32
32
|
target: MeshStandardMaterial;
|
|
33
33
|
}
|
|
34
|
+
export declare class Logo {
|
|
35
|
+
private _props;
|
|
36
|
+
name: string;
|
|
37
|
+
imageUrl?: string;
|
|
38
|
+
get imageSize(): {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
};
|
|
42
|
+
get size(): {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
};
|
|
46
|
+
private _defaults;
|
|
47
|
+
constructor(_props: LogoProps);
|
|
48
|
+
change(url: string, imageSize: {
|
|
49
|
+
width: number;
|
|
50
|
+
height: number;
|
|
51
|
+
}): void;
|
|
52
|
+
reset(): void;
|
|
53
|
+
}
|
|
34
54
|
export declare class Skin {
|
|
35
55
|
private _props;
|
|
36
56
|
name: string;
|