lecodes-cli 0.19.2 → 0.20.1
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/README.md +1 -0
- package/dist/index.js +1324 -658
- package/package.json +9 -9
- package/runtime/materials/decal-relief.mat +178 -0
- package/runtime/materials/decal.mat +172 -0
- package/runtime/materials/lightmap-baked-lite.mat +175 -0
- package/runtime/materials/lightmap-baked.mat +176 -0
- package/runtime/materials/lightmap.mat +181 -0
- package/runtime/materials/lit.mat +43 -0
- package/runtime/materials/particles-quad.mat +171 -0
- package/runtime/materials/particles.mat +121 -0
- package/runtime/materials/shadow.mat +21 -0
- package/runtime/materials/terrain.mat +134 -0
- package/runtime/materials/unlit-transparent.mat +42 -0
- package/runtime/materials/unlit.mat +44 -0
- package/runtime/materials/video.mat +31 -0
- package/runtime/sdk-types.json +1 -1
- package/runtime/web/assets/Roboto-Variable-DHm9jpd-.woff2 +0 -0
- package/runtime/web/assets/__vite-browser-external-BIHI7g3E.js +1 -0
- package/runtime/web/assets/basis-C64VHDVD.js +1 -0
- package/runtime/web/assets/basis_transcoder-VXdx5NbI.wasm +0 -0
- package/runtime/web/assets/createViewerLite-C_bkKXLg.js +852 -0
- package/runtime/web/assets/draco-BiISTFcR.js +118 -0
- package/runtime/web/assets/draco_decoder-DsQ12WqX.wasm +0 -0
- package/runtime/web/assets/index-BTB5KV9x.js +2 -0
- package/runtime/web/assets/mapViewImpl-B2JcES8l.js +810 -0
- package/runtime/web/assets/maplibre-gl-worker-CJfwIrte.js +8 -0
- package/runtime/web/assets/neutral_ibl128-D-lzdkLN.ktx +0 -0
- package/runtime/web/assets/worker-Caf-yYEI.js +2 -0
- package/runtime/web/embed.html +32 -0
- package/runtime/web/embed.js +171 -0
- package/src/cmgenTool.ts +17 -9
- package/src/commands/app.ts +6 -1
- package/src/commands/appDesktop.ts +27 -4
- package/src/commands/appShared.ts +145 -3
- package/src/commands/appTemplates.ts +28 -4
- package/src/commands/assets.ts +3 -7
- package/src/commands/design.ts +9 -26
- package/src/commands/desktop.ts +9 -1
- package/src/commands/dev.ts +64 -0
- package/src/commands/projectTemplates.ts +17 -4
- package/src/commands/render.ts +9 -11
- package/src/commands/scene.ts +2 -6
- package/src/commands/shaders.ts +17 -1
- package/src/commands/shadersNew.ts +133 -0
- package/src/commands/test.ts +2 -1
- package/src/commands/thumbs.ts +3 -6
- package/src/commands/update.ts +42 -21
- package/src/desktopRenderer.ts +32 -2
- package/src/desktopScript.ts +1 -1
- package/src/dev/androidDev.ts +154 -0
- package/src/dev/devServer.ts +53 -6
- package/src/dev/webRunner.ts +22 -0
- package/src/index.ts +24 -4
- package/src/matcTool.ts +31 -19
- package/src/peerInstall.ts +160 -0
- package/src/peers.ts +48 -14
- package/src/projectEnv.ts +4 -0
- package/src/releases.ts +16 -0
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const d=async(a,s,w)=>{const c=await fetch(s).then(e=>{if(!e.ok)throw new Error(`decoder wasm fetch failed (${e.status}) — ${s}`);return e.arrayBuffer()}),p=new Blob([a,`
|
|
2
|
+
;(`,w.toString(),")();"],{type:"application/javascript"}),n=new Worker(URL.createObjectURL(p));n.postMessage({type:"init",wasmBinary:c},[c]);let f=1;const o=new Map;return n.onmessage=({data:e})=>{const r=o.get(e.id);r&&(o.delete(e.id),e.error?r.reject(new Error(e.error)):r.resolve(e))},n.onerror=e=>{const r=new Error(`decoder worker error: ${e.message??"unknown"}`);for(const t of o.values())t.reject(r);o.clear()},(e,r=[])=>new Promise((t,l)=>{const i=f++;o.set(i,{resolve:t,reject:l}),n.postMessage({id:i,...e},r)})};export{d as s};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, user-scalable=no" />
|
|
6
|
+
<title>LeCodes Web Lite</title>
|
|
7
|
+
<style>
|
|
8
|
+
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #111; }
|
|
9
|
+
/* Fullscreen by default (the page IS the app's viewport); `?frame=WxH` centers a device-sized
|
|
10
|
+
frame instead — see src/embed.ts. */
|
|
11
|
+
#app { position: fixed; inset: 0; }
|
|
12
|
+
#app.framed { position: fixed; inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.6); background: #000; }
|
|
13
|
+
.lite-loader {
|
|
14
|
+
position: fixed; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center;
|
|
15
|
+
background: #111; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
|
|
16
|
+
}
|
|
17
|
+
.lite-loader--on { opacity: 1; visibility: visible; transition: opacity .2s ease; }
|
|
18
|
+
.lite-loader__spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.16); border-top-color: rgba(255,255,255,.85); animation: lite-spin .8s linear infinite; }
|
|
19
|
+
@keyframes lite-spin { to { transform: rotate(360deg); } }
|
|
20
|
+
.lite-error {
|
|
21
|
+
position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
|
|
22
|
+
padding: 18px; background: rgba(0,0,0,.88); color: #ff7a6e;
|
|
23
|
+
font: 12.5px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow: auto;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
<script type="module" crossorigin src="./embed.js"></script>
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<div id="app"></div>
|
|
30
|
+
<div id="loader" class="lite-loader lite-loader--on"><div class="lite-loader__spin"></div></div>
|
|
31
|
+
</body>
|
|
32
|
+
</html>
|