@needle-tools/usd 0.0.1-alpha.2 → 0.0.1-alpha.4

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/CHANGELOG.md CHANGED
@@ -4,5 +4,5 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [0.0.1-alpha.1] - 2025-05-14
7
+ ## [0.0.1-alpha] - 2025-05-14
8
8
  - initial release
package/README.md CHANGED
@@ -11,6 +11,24 @@ For commercial use please contact hi@needle.tools
11
11
 
12
12
  ## Usage
13
13
 
14
+ ### Needle Engine
15
+
16
+ ```ts
17
+ import { get } from "svelte/store";
18
+ import { activeFiles } from "..";
19
+ import { addPluginForNeedleEngine } from "@needle-tools/usd/plugins";
20
+
21
+ export function addUsdPlugin() {
22
+ return addPluginForNeedleEngine({
23
+ // USD files to load (first file must be the main file)
24
+ getFiles: () => { return get(activeFiles) as Array<File & { path: string }> }
25
+ })
26
+ }
27
+ ```
28
+
29
+
30
+ ### Other
31
+
14
32
 
15
33
  See full example in [examples](./examples/src/main.ts)
16
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/usd",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.4",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "type": "module",
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "./plugins": {
13
13
  "import": "./src/plugins/index.js",
14
- "require": "./src/plugins/index.cjs"
14
+ "require": "./src/plugins/index.cjs",
15
+ "types": "./src/types/plugins.d.ts"
15
16
  }
16
17
  },
17
18
  "keywords": [
@@ -46,4 +47,4 @@
46
47
  "access": "public",
47
48
  "registry": "https://registry.npmjs.org/"
48
49
  }
49
- }
50
+ }
package/src/index.d.ts CHANGED
@@ -1,5 +1 @@
1
- export * from "./types";
2
-
3
- declare module '@needle-tools/usd/plugins' {
4
- export * from './types/plugins';
5
- }
1
+ export * from "./types";
package/src/index.js CHANGED
@@ -2,5 +2,4 @@ export * from "./bindings/index.js";
2
2
  export * from "./hydra/index.js";
3
3
  export * from "./create.three.js";
4
4
  export * from "./vite/index.js";
5
- export * from "./plugins/index.js";
6
5
  export { tryDetermineFileFormat } from "./utils.js"