@plasius/gpu-shared 0.1.19 → 1.0.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasius/gpu-shared",
3
- "version": "0.1.19",
3
+ "version": "1.0.0",
4
4
  "description": "Shared browser-safe demo runtime and asset helpers for the Plasius gpu-* package family.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -26,6 +26,7 @@
26
26
  "./assets/cutter.gltf": "./assets/cutter.gltf",
27
27
  "./assets/lighthouse.gltf": "./assets/lighthouse.gltf",
28
28
  "./assets/harbor-dock.gltf": "./assets/harbor-dock.gltf",
29
+ "./assets/shoreline.gltf": "./assets/shoreline.gltf",
29
30
  "./package.json": "./package.json"
30
31
  },
31
32
  "scripts": {
package/src/asset-url.js CHANGED
@@ -5,6 +5,7 @@ const SHOWCASE_ASSET_FILES = Object.freeze({
5
5
  cutter: "cutter.gltf",
6
6
  lighthouse: "lighthouse.gltf",
7
7
  "harbor-dock": "harbor-dock.gltf",
8
+ shoreline: "shoreline.gltf",
8
9
  });
9
10
 
10
11
  function createInlineShowcaseAssetUrl(assetName) {
package/src/index.d.ts CHANGED
@@ -93,7 +93,8 @@ export type ShowcaseAssetName =
93
93
  | "brigantine"
94
94
  | "cutter"
95
95
  | "lighthouse"
96
- | "harbor-dock";
96
+ | "harbor-dock"
97
+ | "shoreline";
97
98
 
98
99
  export type ShowcaseFocusMode =
99
100
  | "integrated"
@@ -318,6 +319,14 @@ export function createProductStudioMeshes(
318
319
  }
319
320
  ): readonly ProductStudioMesh[];
320
321
 
322
+ export function buildProductStudioSceneObjects(
323
+ model: GltfModel,
324
+ options?: {
325
+ targetCenter?: readonly number[];
326
+ targetSize?: number;
327
+ }
328
+ ): readonly ProductStudioMesh[];
329
+
321
330
  export function mountGpuProductStudio(
322
331
  options?: MountGpuShowcaseOptions
323
332
  ): Promise<MountGpuProductStudioResult>;
package/src/index.js CHANGED
@@ -16,6 +16,7 @@ export {
16
16
  GPU_SHOWCASE_REALISTIC_MODELS_FEATURE,
17
17
  };
18
18
  export {
19
+ buildProductStudioSceneObjects,
19
20
  createProductStudioMeshes,
20
21
  mountGpuProductStudio,
21
22
  } from "./product-studio-runtime.js";
@@ -315,6 +315,10 @@ export function createProductStudioMeshes(model, options = {}) {
315
315
  return Object.freeze([...createProductStudioEnvironmentMeshes(), ...modelMeshes]);
316
316
  }
317
317
 
318
+ export function buildProductStudioSceneObjects(model, options = {}) {
319
+ return createProductStudioMeshes(model, options);
320
+ }
321
+
318
322
  function ensureStyles(documentRef) {
319
323
  if (documentRef.getElementById?.(STYLE_ID)) {
320
324
  return;