@speridlabs/visus 0.1.0 → 0.2.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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@speridlabs/visus",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A web package for threejs that enables real time rendering of optimized 3DGS (Gaussian Splatting)",
5
- "types": "dist/visus.d.ts",
6
- "main": "dist/visus.umd.js",
7
- "module": "dist/visus.es.js",
5
+ "types": "dist/main.d.ts",
6
+ "main": "dist/main.umd.js",
7
+ "module": "dist/main.es.js",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/main.d.ts",
@@ -13,8 +13,7 @@
13
13
  },
14
14
  "./react": {
15
15
  "types": "./dist/react.d.ts",
16
- "import": "./dist/react.es.js",
17
- "require": "./dist/react.umd.js"
16
+ "import": "./dist/react.es.js"
18
17
  },
19
18
  "./package.json": "./package.json"
20
19
  },
@@ -23,7 +22,12 @@
23
22
  ],
24
23
  "scripts": {
25
24
  "dev": "vite",
26
- "build": "pnpm lint && vite build",
25
+ "clean": "rimraf dist",
26
+ "build": "pnpm clean && pnpm lint && pnpm build:main && pnpm build:umd && pnpm build:react",
27
+ "build:react": "vite build --config vite.config.react.ts && pnpm copy:react-types",
28
+ "copy:react-types": "cp src/r3f/react.d.ts dist/react.d.ts",
29
+ "build:main": "vite build --config vite.config.ts",
30
+ "build:umd": "vite build --config vite.config.umd.ts",
27
31
  "lint": "tsc --noEmit && eslint --max-warnings 0",
28
32
  "lint:fix": "tsc --noEmit && eslint --fix",
29
33
  "format": "prettier --check './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
@@ -67,6 +71,7 @@
67
71
  "husky": "^9.1.7",
68
72
  "lint-staged": "^15.5.1",
69
73
  "prettier": "^3.5.3",
74
+ "rimraf": "^6.0.1",
70
75
  "semantic-release": "^24.2.3",
71
76
  "typescript": "^5.8.2",
72
77
  "vite": "^6.2.3",
@@ -75,7 +80,7 @@
75
80
  "peerDependencies": {
76
81
  "@react-three/fiber": ">=8.0.0",
77
82
  "react": ">=17.0.0",
78
- "three": ">=0.160.0 <0.176.0"
83
+ "three": ">=0.160.0 <=0.176.0"
79
84
  },
80
85
  "peerDependenciesMeta": {
81
86
  "react": {
package/dist/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * visus - Gaussian Splat Rendering for Three.js
3
- */
4
- export { SplatData } from './core/data';
5
- export { SplatSorter } from './core/sorter';
6
- export { SplatMesh, type SplatMeshOptions } from './core/mesh';
7
- export { PlyLoader } from './loaders/ply';
8
- export { SplatMaterial, type SplatMaterialOptions } from './materials';
9
- export { BoundingBox } from './utils/bounding';
10
- export { TextureManager } from './materials/texture';
11
- export declare const VERSION = "0.1.0";
12
- //# sourceMappingURL=index.d.ts.map