@preference-sl/pref-gltf-transform 1.0.1 → 1.0.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@preference-sl/pref-gltf-transform",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Web component to convert GLTF into GLB",
5
5
  "type": "module",
6
6
  "main": "./www/pref-gltf-transform.js",
@@ -18,7 +18,6 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "build": "esbuild src/pref-gltf-transform.ts --bundle --format=esm --target=es2022 --outfile=www/pref-gltf-transform.js",
21
- "prebuild": "tsc --emitDeclarationOnly",
22
21
  "build:watch": "esbuild src/pref-gltf-transform.ts --bundle --format=esm --target=es2022 --outfile=www/pref-gltf-transform.js --watch",
23
22
  "test": "cd playground && npm test",
24
23
  "release": "node scripts/publish.js"
@@ -1,37 +0,0 @@
1
- export type PrefGltfTransformConfig = {
2
- myserverHost: string;
3
- useHttps?: boolean;
4
- protocol?: "http" | "https";
5
- };
6
- type Options = {
7
- myserverHost: string;
8
- useHttps: boolean;
9
- };
10
- /**
11
- * Provide config directly (called by main.js on page load).
12
- */
13
- export declare function setPrefGltfTransformConfig(cfg: PrefGltfTransformConfig): void;
14
- /**
15
- * Load config from a JSON URL (called by main.js on page load).
16
- * Example config.json:
17
- * {
18
- * "protocol": "https",
19
- * "myserverHost": "example.com:8443"
20
- * }
21
- */
22
- export declare function initPrefGltfTransform(configJsonUrl: string): Promise<void>;
23
- /**
24
- * Same logic as your main.ts, but:
25
- * - no UI refs
26
- * - options optional if config was initialized via initPrefGltfTransform()/setPrefGltfTransformConfig()
27
- */
28
- export declare function downloadBinsReferencedByGltf(gltfUrl: string, options?: Options): Promise<{
29
- results: Array<Record<string, unknown>>;
30
- }>;
31
- /**
32
- * Same logic as your main.ts, but returns blobUrl:
33
- * const blob = new Blob([glbBytes], { type: "model/gltf-binary" });
34
- * return URL.createObjectURL(blob);
35
- */
36
- export declare function generateGlbFromGltfAndBins(gltfUrl: string, options?: Options): Promise<string>;
37
- export {};