shop-components 0.0.18 → 0.0.20

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.
@@ -23,8 +23,9 @@ export declare class DeviceViewer extends LitElement {
23
23
  lineWrapper: HTMLDivElement | undefined;
24
24
  fit: () => void;
25
25
  generateBVH: () => void;
26
- download: () => void;
26
+ download: () => string;
27
27
  clearAMR: () => void;
28
+ exportAMR: () => Promise<void>;
28
29
  addAMR: () => void;
29
30
  cancel: () => void;
30
31
  dragstart: (e: DragEvent) => void;
@@ -94,8 +94,11 @@ export declare class Scene3D {
94
94
  private _initEvents;
95
95
  changeLogo(logo: Logo, url: string): void;
96
96
  generateBVH(): Promise<void>;
97
- download(): void;
97
+ download(): string;
98
98
  clearAMR(): void;
99
+ exportAMR(): Promise<ArrayBuffer | {
100
+ [key: string]: any;
101
+ }>;
99
102
  addAMR(url: string): Promise<void>;
100
103
  fit: () => void;
101
104
  select(obj: string | Object3D | Object3D[]): void;
@@ -36,6 +36,7 @@ export declare class Slot extends CSS2DObject {
36
36
  install(info: DeviceInfo): Promise<void>;
37
37
  getWP: (target: import("three").Vector3) => import("three").Vector3;
38
38
  get device(): Object3D<import("three").Object3DEventMap> | null;
39
+ changeName(name: string): void;
39
40
  clearSlot(): void;
40
41
  enable(): void;
41
42
  disable(): void;
@@ -49,4 +50,5 @@ export declare class Slot extends CSS2DObject {
49
50
  set error(hasError: boolean);
50
51
  canInstall(c: boolean): void;
51
52
  dispose(): void;
53
+ clone(recursive?: boolean): this;
52
54
  }
@@ -1,6 +1,10 @@
1
1
  import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
2
2
  import { Object3D } from 'three';
3
+ import { DRACOExporter } from 'three/examples/jsm/exporters/DRACOExporter';
4
+ import { GLTFExporter } from 'three/examples/jsm/exporters/GLTFExporter';
5
+ export declare const gltfExporter: GLTFExporter;
3
6
  export declare const gltfLoader: GLTFLoader;
7
+ export declare const dracoExporter: DRACOExporter;
4
8
  interface SGLBContent {
5
9
  version: number;
6
10
  jsonDescription: any;