shop-components 0.1.59 → 0.1.61
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/amr.d.ts +2 -1
- package/dist/device-viewer/index.d.ts +2 -1
- package/dist/device-viewer/logo.d.ts +36 -0
- package/dist/device-viewer/main.d.ts +1 -0
- package/dist/device-viewer/scene.d.ts +2 -24
- package/dist/shop-components.mjs +4677 -4671
- package/dist/shop-components.umd.js +291 -291
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Object3D, TextureLoader } from 'three';
|
|
2
|
-
import {
|
|
2
|
+
import { Scene3D, Skin, Slot } from './scene';
|
|
3
3
|
import { Mechanism } from './mechanism/mechanism';
|
|
4
4
|
import { ObjectSize } from './utils';
|
|
5
5
|
import { SizeBox } from './dimension/size-box';
|
|
@@ -7,6 +7,7 @@ import { AMRAssembly } from '../../../../../../../stories/device-viewer/assembly
|
|
|
7
7
|
import EventEmitter from 'eventemitter3';
|
|
8
8
|
import { CropperConfigs } from '../cropper';
|
|
9
9
|
import { GoodsBox } from './goods-box';
|
|
10
|
+
import { Logo } from '../../../../../../../stories/device-viewer/logo';
|
|
10
11
|
export declare const textureLoader: TextureLoader;
|
|
11
12
|
export interface AmrProps {
|
|
12
13
|
url?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { Scene3D, Skin } from './scene';
|
|
3
3
|
import { Cropper } from '../cropper';
|
|
4
|
+
import { Logo } from '../../../../../../../stories/device-viewer/logo';
|
|
4
5
|
export interface Props {
|
|
5
6
|
test: string;
|
|
6
7
|
count: number;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Mesh, Object3D, Texture, Vector2 } from 'three';
|
|
2
|
+
import { LogoProps } from '../../../../../../../stories/device-viewer/scene';
|
|
3
|
+
export declare class Logo {
|
|
4
|
+
private _props;
|
|
5
|
+
name: string;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
target: Mesh;
|
|
8
|
+
parent: Object3D | null;
|
|
9
|
+
transparentTexture: Texture;
|
|
10
|
+
private _offscreen;
|
|
11
|
+
get imageSize(): {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
get size(): {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
private readonly _defaults;
|
|
20
|
+
get defaultConfigs(): {
|
|
21
|
+
canvasWidth: number;
|
|
22
|
+
canvasHeight: number;
|
|
23
|
+
scaleX: number;
|
|
24
|
+
scaleY: number;
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
ox: number;
|
|
28
|
+
oy: number;
|
|
29
|
+
url: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
constructor(_props: LogoProps);
|
|
32
|
+
clear(): void;
|
|
33
|
+
change(url?: string, scale?: Vector2, offset?: Vector2): void;
|
|
34
|
+
reset(): void;
|
|
35
|
+
dispose(): void;
|
|
36
|
+
}
|
|
@@ -12,8 +12,9 @@ import { Sound } from './sound';
|
|
|
12
12
|
import { Slot, SLOT_EVENTS } from './slot';
|
|
13
13
|
import { DeviceLines, Line } from './lines';
|
|
14
14
|
import { Amr } from './amr';
|
|
15
|
+
import { Logo } from './logo';
|
|
15
16
|
export declare const font: Font;
|
|
16
|
-
export { Slot, DeviceLines, Line, SLOT_EVENTS };
|
|
17
|
+
export { Slot, DeviceLines, Line, SLOT_EVENTS, Logo };
|
|
17
18
|
export interface LogoProps {
|
|
18
19
|
name: string;
|
|
19
20
|
target: Mesh;
|
|
@@ -31,29 +32,6 @@ export interface SkinProps {
|
|
|
31
32
|
name: string;
|
|
32
33
|
target: MeshStandardMaterial;
|
|
33
34
|
}
|
|
34
|
-
export declare class Logo {
|
|
35
|
-
private _props;
|
|
36
|
-
name: string;
|
|
37
|
-
imageUrl?: string;
|
|
38
|
-
target: Mesh;
|
|
39
|
-
parent: Object3D | null;
|
|
40
|
-
private _timer;
|
|
41
|
-
private _offscreen;
|
|
42
|
-
get imageSize(): {
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
};
|
|
46
|
-
get size(): {
|
|
47
|
-
width: number;
|
|
48
|
-
height: number;
|
|
49
|
-
};
|
|
50
|
-
private readonly _defaults;
|
|
51
|
-
constructor(_props: LogoProps);
|
|
52
|
-
clear(): void;
|
|
53
|
-
change(url?: string, scale?: Vector2, offset?: Vector2): void;
|
|
54
|
-
reset(): void;
|
|
55
|
-
dispose(): void;
|
|
56
|
-
}
|
|
57
35
|
export declare class Skin {
|
|
58
36
|
private _props;
|
|
59
37
|
name: string;
|