shop-components 0.0.7 → 0.0.8
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 +0 -1
- package/dist/device-viewer/scene.d.ts +5 -4
- package/dist/shop-components.mjs +1951 -1955
- package/dist/shop-components.umd.js +265 -265
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mesh, Object3D, PerspectiveCamera, Scene, Vector2, WebGLRenderer } from 'three';
|
|
1
|
+
import { Mesh, MeshStandardMaterial, Object3D, PerspectiveCamera, Scene, Vector2, WebGLRenderer } from 'three';
|
|
2
2
|
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass';
|
|
3
3
|
import { OutlinePass } from 'three/examples/jsm/postprocessing/OutlinePass';
|
|
4
4
|
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass';
|
|
@@ -13,11 +13,11 @@ import { DeviceLines } from './lines';
|
|
|
13
13
|
import './style.styl';
|
|
14
14
|
interface Logo {
|
|
15
15
|
name: string;
|
|
16
|
-
target:
|
|
16
|
+
target: Mesh;
|
|
17
17
|
}
|
|
18
18
|
interface Skin {
|
|
19
19
|
name: string;
|
|
20
|
-
target:
|
|
20
|
+
target: MeshStandardMaterial;
|
|
21
21
|
}
|
|
22
22
|
export declare enum SlotState {
|
|
23
23
|
DEFAULT = 0,
|
|
@@ -82,6 +82,7 @@ export declare class Scene3D {
|
|
|
82
82
|
constructor(props: SceneProps);
|
|
83
83
|
addEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
84
84
|
removeEventListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => EventEmitter<string | symbol, any>;
|
|
85
|
+
changeSkin(skin: Skin, value: string): void;
|
|
85
86
|
private _initPane;
|
|
86
87
|
showState(): void;
|
|
87
88
|
hideState(): void;
|
|
@@ -89,7 +90,7 @@ export declare class Scene3D {
|
|
|
89
90
|
private _pointermove;
|
|
90
91
|
private _pointerdown;
|
|
91
92
|
private _initEvents;
|
|
92
|
-
|
|
93
|
+
changeLogo(logo: Logo, url: string): void;
|
|
93
94
|
generateBVH(): Promise<void>;
|
|
94
95
|
download(): void;
|
|
95
96
|
addAMR(url: string): Promise<void>;
|