lecodes-cli 1.0.0 → 2.0.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/dist/index.js +6211 -3649
- package/package.json +12 -8
- package/runtime/materials/lightmap.mat +115 -139
- package/runtime/materials/particles-quad.mat +6 -2
- package/runtime/materials/terrain-lightmap.mat +123 -0
- package/runtime/materials/terrain.mat +36 -55
- package/runtime/sdk-types.json +1 -1
- package/runtime/web/VERSION.json +5 -0
- package/runtime/web/assets/camera-5XOM8eHl.js +1 -0
- package/runtime/web/assets/creator-2d-D9WKYM6h.js +1 -0
- package/runtime/web/assets/creator-2d-ukvEmNEp.wasm +0 -0
- package/runtime/web/assets/creator-full-BBXzQlhq.js +1 -0
- package/runtime/web/assets/creator-full-D2dSDdDj.wasm +0 -0
- package/runtime/web/assets/creator-full.js-BYswGsqR.symbols +8124 -0
- package/runtime/web/assets/creator-ui-DIc92ion.wasm +0 -0
- package/runtime/web/assets/creator-ui-_1Z_AX2M.js +1 -0
- package/runtime/web/assets/geolocation-BjTKN9_P.js +1 -0
- package/runtime/web/assets/inspect-C7x78PNs.js +2 -0
- package/runtime/web/assets/map-CyBxOSV0.js +1 -0
- package/runtime/web/assets/map-XzoOFt0E.js +2 -0
- package/runtime/web/assets/mapImpl-bxvQ2h1Z.js +823 -0
- package/runtime/web/assets/maplibre-gl-worker-B7LXXUkR.js +8 -0
- package/runtime/web/assets/materials-uri4FvPE.bin +0 -0
- package/runtime/web/assets/materials-world-CQWt8TAm.bin +0 -0
- package/runtime/web/assets/qr-scanner-CK_cYoJR.js +1 -0
- package/runtime/web/assets/uberarchive-DLH-kBhM.bin +0 -0
- package/runtime/web/index.html +36 -0
- package/runtime/web/player.js +21 -0
- package/runtime/web-page/index.html +41 -0
- package/runtime/web-page/page.css +1 -0
- package/runtime/web-page/page.js +31 -0
- package/src/cli/help.ts +25 -0
- package/src/cli/index.ts +7 -7
- package/src/commands/app/android.ts +3 -1
- package/src/commands/app/desktop.ts +1 -1
- package/src/commands/app/desktopMac.ts +10 -9
- package/src/commands/app/icon.ts +9 -6
- package/src/commands/app/index.ts +3 -1
- package/src/commands/app/shared.ts +13 -5
- package/src/commands/app/templates/android.ts +10 -11
- package/src/commands/app/templates/ios.ts +1 -1
- package/src/commands/assets.ts +1 -1
- package/src/commands/compile.ts +15 -2
- package/src/commands/design/index.ts +4 -4
- package/src/commands/design/snapshot.ts +3 -3
- package/src/commands/desktop.ts +5 -1
- package/src/commands/dev.ts +82 -29
- package/src/commands/index.ts +64 -60
- package/src/commands/init/index.ts +11 -15
- package/src/commands/init/templates.ts +64 -21
- package/src/commands/lightmap.ts +459 -200
- package/src/commands/navmesh.ts +2 -2
- package/src/commands/plugin.ts +46 -0
- package/src/commands/render.ts +22 -16
- package/src/commands/scene.ts +6 -1
- package/src/commands/serve.ts +58 -0
- package/src/commands/shaders/new.ts +1 -1
- package/src/commands/test.ts +402 -398
- package/src/commands/update/index.ts +3 -3
- package/src/compile/designCompile.ts +1 -1
- package/src/compile/headlessBundle.ts +133 -133
- package/src/compile/nativeStack.ts +1 -1
- package/src/compile/projectCompile.ts +10 -2
- package/src/compile/sceneCompile.ts +8 -22
- package/src/declarations/lecodes-3d-editor.d.ts +4 -0
- package/src/declarations/lecodes-assets.d.ts +1 -1
- package/src/declarations/{lecodes-renderer.d.ts → lecodes-headless.d.ts} +3 -3
- package/src/dev/clientTemplates.ts +18 -14
- package/src/dev/devServer.ts +75 -38
- package/src/dev/iosDev.ts +180 -0
- package/src/dev/webRunner.ts +82 -14
- package/src/hosts/cmgenTool.ts +1 -1
- package/src/hosts/desktopRenderer.ts +98 -27
- package/src/hosts/desktopScript.ts +150 -35
- package/src/hosts/distRoot.ts +1 -1
- package/src/hosts/matcTool.ts +1 -1
- package/src/hosts/peerInstall.ts +5 -5
- package/src/hosts/peers.ts +2 -2
- package/src/index.ts +4 -1
- package/src/plugin/contract.ts +438 -0
- package/src/plugin/emitKotlin.ts +357 -0
- package/src/plugin/emitSdk.ts +259 -0
- package/src/plugin/emitSwift.ts +336 -0
- package/src/plugin/emitWeb.ts +383 -0
- package/src/plugin/generate.ts +157 -0
- package/src/plugin/lines.ts +28 -0
- package/src/plugin/lower.ts +231 -0
- package/src/plugin/manifest.ts +192 -0
- package/src/project/ignore.ts +164 -163
- package/runtime/materials/lightmap-baked-lite.mat +0 -180
- package/runtime/materials/lightmap-baked.mat +0 -181
- package/runtime/scene-harness.json +0 -1
- package/runtime/web/assets/__vite-browser-external-BIHI7g3E.js +0 -1
- package/runtime/web/assets/basis-C64VHDVD.js +0 -1
- package/runtime/web/assets/basis_transcoder-VXdx5NbI.wasm +0 -0
- package/runtime/web/assets/createViewerLite-DHqTFhWB.js +0 -866
- package/runtime/web/assets/draco-BiISTFcR.js +0 -118
- package/runtime/web/assets/draco_decoder-DsQ12WqX.wasm +0 -0
- package/runtime/web/assets/index-Q06c6oHx.js +0 -2
- package/runtime/web/assets/mapViewImpl-B2JcES8l.js +0 -810
- package/runtime/web/assets/maplibre-gl-worker-CJfwIrte.js +0 -8
- package/runtime/web/assets/worker-Caf-yYEI.js +0 -2
- package/runtime/web/embed.html +0 -32
- package/runtime/web/embed.js +0 -171
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/runtime/web/embed.html
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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>
|