shop-components 0.0.25 → 0.1.0

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.
@@ -0,0 +1,25 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { Scene3D } from './scene';
3
+ export interface Props {
4
+ test: string;
5
+ count: number;
6
+ onChange: () => {};
7
+ }
8
+ export declare class TestViewer extends LitElement {
9
+ scene: Scene3D;
10
+ container: HTMLDivElement | undefined;
11
+ drag: HTMLButtonElement | undefined;
12
+ constructor();
13
+ protected firstUpdated(_changedProperties: PropertyValues): void;
14
+ protected updated(_changedProperties: PropertyValues): void;
15
+ disconnectedCallback(): void;
16
+ test: string;
17
+ count: number;
18
+ theme: undefined | string;
19
+ onChange: undefined | Function;
20
+ usePathTracing: boolean;
21
+ progressBar: HTMLDivElement | undefined;
22
+ cancel: () => void;
23
+ protected render(): unknown;
24
+ static styles: import("lit").CSSResult;
25
+ }
@@ -0,0 +1,14 @@
1
+ import { TestViewer, Props } from './index';
2
+ declare const _default: {
3
+ title: string;
4
+ tags: string[];
5
+ render: (args: Props) => TestViewer;
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: {
10
+ args: {
11
+ test: string;
12
+ count: number;
13
+ };
14
+ };
@@ -0,0 +1,20 @@
1
+ import { PerspectiveCamera, Scene, WebGLRenderer } from 'three';
2
+ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
3
+ import { WebGLPathTracer } from 'three-gpu-pathtracer';
4
+ export declare class Scene3D {
5
+ readonly maxSample = 1024;
6
+ sampleCount: number;
7
+ renderer: WebGLRenderer;
8
+ camera: PerspectiveCamera;
9
+ scene: Scene;
10
+ controls: OrbitControls;
11
+ _usePathTracing: boolean;
12
+ pathTracer: WebGLPathTracer;
13
+ usePathTracing: boolean;
14
+ constructor();
15
+ resize: () => void;
16
+ private _loadEnv;
17
+ generateBVH(): void;
18
+ appendTo(parent: any): void;
19
+ ticker: () => void;
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shop-components",
3
- "version": "0.0.25",
3
+ "version": "0.1.0",
4
4
  "description": "Shop components",
5
5
  "main": "dist/shop-components.umd.js",
6
6
  "module": "dist/shop-components.mjs",
@@ -31,25 +31,28 @@
31
31
  "react": "^18.2.0",
32
32
  "react-dom": "^18.2.0",
33
33
  "storybook": "^8.0.6",
34
- "three": "^0.159.0"
34
+ "three": "^0.164.0"
35
35
  },
36
36
  "resolutions": {
37
37
  "string-width": "4.2.3"
38
38
  },
39
39
  "dependencies": {
40
- "@types/three": "^0.160.0",
41
40
  "@storybook/addon-themes": "^8.0.6",
42
41
  "@tweakpane/core": "^2.0.3",
43
- "@tweenjs/tween.js": "^21.0.0",
42
+ "@tweenjs/tween.js": "^23.1.2",
43
+ "@types/bezier-js": "^4.1.1",
44
44
  "@types/howler": "^2.2.11",
45
+ "@types/three": "^0.164.0",
46
+ "bezier-js": "^6.1.4",
45
47
  "eventemitter3": "^5.0.1",
46
48
  "howler": "^2.2.4",
47
49
  "pixi-viewport": "^5.0.2",
48
50
  "pixi.js": "^7.4.0",
49
51
  "stats-fps.js": "0.0.6",
50
52
  "stylus": "^0.63.0",
51
- "three-gpu-pathtracer": "^0.0.17",
52
- "three-mesh-bvh": "^0.7.0",
53
+ "three-gpu-pathtracer": "0.0.23",
54
+ "three-mesh-bvh": "^0.7.5",
55
+ "troika-three-text": "^0.49.1",
53
56
  "tweakpane": "^4.0.3",
54
57
  "vite": "^5.1.6",
55
58
  "vite-plugin-dts": "^3.7.3"