@plasius/gpu-shared 0.1.3 → 0.1.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/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ resolveShowcaseAssetUrl
3
+ } from "./chunk-S5NCFNKJ.js";
1
4
  import "./chunk-DGUM43GV.js";
2
5
 
3
6
  // src/index.js
@@ -10,15 +13,12 @@ var showcaseFocusModes = Object.freeze([
10
13
  "performance",
11
14
  "debug"
12
15
  ]);
13
- function resolveShowcaseAssetUrl(baseUrl = import.meta.url) {
14
- return new URL("../assets/brigantine.gltf", baseUrl);
15
- }
16
16
  async function loadGltfModel(url) {
17
17
  const module = await import("./gltf-loader-4FNTT63R.js");
18
18
  return module.loadGltfModel(url);
19
19
  }
20
20
  async function mountGpuShowcase(options = {}) {
21
- const runtimeLoader = typeof options.__runtimeLoader === "function" ? options.__runtimeLoader : () => import("./showcase-runtime-V72XV55N.js");
21
+ const runtimeLoader = typeof options.__runtimeLoader === "function" ? options.__runtimeLoader : () => import("./showcase-runtime-4BS7TWHS.js");
22
22
  const module = await runtimeLoader();
23
23
  if (typeof module.mountGpuShowcase !== "function") {
24
24
  throw new Error("showcase runtime loader must provide mountGpuShowcase.");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.js"],"sourcesContent":["export const showcaseFocusModes = Object.freeze([\n \"integrated\",\n \"lighting\",\n \"cloth\",\n \"fluid\",\n \"physics\",\n \"performance\",\n \"debug\",\n]);\n\nexport function resolveShowcaseAssetUrl(baseUrl = import.meta.url) {\n return new URL(\"../assets/brigantine.gltf\", baseUrl);\n}\n\nexport async function loadGltfModel(url) {\n const module = await import(\"./gltf-loader.js\");\n return module.loadGltfModel(url);\n}\n\nexport async function mountGpuShowcase(options = {}) {\n const runtimeLoader =\n typeof options.__runtimeLoader === \"function\"\n ? options.__runtimeLoader\n : () => import(\"./showcase-runtime.js\");\n const module = await runtimeLoader();\n if (typeof module.mountGpuShowcase !== \"function\") {\n throw new Error(\"showcase runtime loader must provide mountGpuShowcase.\");\n }\n\n const publicOptions = { ...options };\n delete publicOptions.__runtimeLoader;\n return module.mountGpuShowcase(publicOptions);\n}\n"],"mappings":";;;AAAO,IAAM,qBAAqB,OAAO,OAAO;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,SAAS,wBAAwB,UAAU,YAAY,KAAK;AACjE,SAAO,IAAI,IAAI,6BAA6B,OAAO;AACrD;AAEA,eAAsB,cAAc,KAAK;AACvC,QAAM,SAAS,MAAM,OAAO,2BAAkB;AAC9C,SAAO,OAAO,cAAc,GAAG;AACjC;AAEA,eAAsB,iBAAiB,UAAU,CAAC,GAAG;AACnD,QAAM,gBACJ,OAAO,QAAQ,oBAAoB,aAC/B,QAAQ,kBACR,MAAM,OAAO,gCAAuB;AAC1C,QAAM,SAAS,MAAM,cAAc;AACnC,MAAI,OAAO,OAAO,qBAAqB,YAAY;AACjD,UAAM,IAAI,MAAM,wDAAwD;AAAA,EAC1E;AAEA,QAAM,gBAAgB,EAAE,GAAG,QAAQ;AACnC,SAAO,cAAc;AACrB,SAAO,OAAO,iBAAiB,aAAa;AAC9C;","names":[]}
1
+ {"version":3,"sources":["../src/index.js"],"sourcesContent":["export { resolveShowcaseAssetUrl } from \"./asset-url.js\";\n\nexport const showcaseFocusModes = Object.freeze([\n \"integrated\",\n \"lighting\",\n \"cloth\",\n \"fluid\",\n \"physics\",\n \"performance\",\n \"debug\",\n]);\n\nexport async function loadGltfModel(url) {\n const module = await import(\"./gltf-loader.js\");\n return module.loadGltfModel(url);\n}\n\nexport async function mountGpuShowcase(options = {}) {\n const runtimeLoader =\n typeof options.__runtimeLoader === \"function\"\n ? options.__runtimeLoader\n : () => import(\"./showcase-runtime.js\");\n const module = await runtimeLoader();\n if (typeof module.mountGpuShowcase !== \"function\") {\n throw new Error(\"showcase runtime loader must provide mountGpuShowcase.\");\n }\n\n const publicOptions = { ...options };\n delete publicOptions.__runtimeLoader;\n return module.mountGpuShowcase(publicOptions);\n}\n"],"mappings":";;;;;;AAEO,IAAM,qBAAqB,OAAO,OAAO;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAED,eAAsB,cAAc,KAAK;AACvC,QAAM,SAAS,MAAM,OAAO,2BAAkB;AAC9C,SAAO,OAAO,cAAc,GAAG;AACjC;AAEA,eAAsB,iBAAiB,UAAU,CAAC,GAAG;AACnD,QAAM,gBACJ,OAAO,QAAQ,oBAAoB,aAC/B,QAAQ,kBACR,MAAM,OAAO,gCAAuB;AAC1C,QAAM,SAAS,MAAM,cAAc;AACnC,MAAI,OAAO,OAAO,qBAAqB,YAAY;AACjD,UAAM,IAAI,MAAM,wDAAwD;AAAA,EAC1E;AAEA,QAAM,gBAAgB,EAAE,GAAG,QAAQ;AACnC,SAAO,cAAc;AACrB,SAAO,OAAO,iBAAiB,aAAa;AAC9C;","names":[]}
@@ -1,3 +1,6 @@
1
+ import {
2
+ resolveShowcaseAssetUrl
3
+ } from "./chunk-S5NCFNKJ.js";
1
4
  import {
2
5
  loadGltfModel
3
6
  } from "./chunk-UUJLYYQS.js";
@@ -6187,9 +6190,6 @@ var UNIT_BOX_MESH = Object.freeze({
6187
6190
  0
6188
6191
  ])
6189
6192
  });
6190
- function resolveShowcaseAssetUrl(baseUrl2 = import.meta.url) {
6191
- return new URL("../assets/brigantine.gltf", baseUrl2);
6192
- }
6193
6193
  function injectStyles() {
6194
6194
  if (document.getElementById(STYLE_ID)) {
6195
6195
  return;
@@ -7822,7 +7822,6 @@ function updatePhysicsSnapshot(state, shipModel) {
7822
7822
  }
7823
7823
  export {
7824
7824
  mountGpuShowcase,
7825
- resolveShowcaseAssetUrl,
7826
7825
  showcaseFocusModes
7827
7826
  };
7828
- //# sourceMappingURL=showcase-runtime-V72XV55N.js.map
7827
+ //# sourceMappingURL=showcase-runtime-4BS7TWHS.js.map