@playdrop/playdrop-cli 0.16.16 → 0.17.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/config/client-meta.json +4 -4
- package/dist/apiClient.d.ts +1 -2
- package/dist/apiClient.js +1 -16
- package/dist/appUrls.js +4 -0
- package/dist/apps/build.d.ts +12 -4
- package/dist/apps/build.js +55 -22
- package/dist/apps/index.d.ts +2 -1
- package/dist/apps/index.js +4 -1
- package/dist/apps/loadCheck.d.ts +5 -1
- package/dist/apps/loadCheck.js +52 -18
- package/dist/apps/serverBuild.d.ts +17 -0
- package/dist/apps/serverBuild.js +155 -0
- package/dist/apps/staticHtml.d.ts +1 -0
- package/dist/apps/staticHtml.js +19 -10
- package/dist/apps/upload.d.ts +12 -2
- package/dist/apps/upload.js +127 -46
- package/dist/catalogue.d.ts +23 -1
- package/dist/catalogue.js +126 -100
- package/dist/commandContext.d.ts +6 -3
- package/dist/commandContext.js +108 -18
- package/dist/commands/build.js +0 -7
- package/dist/commands/captureListing.d.ts +3 -0
- package/dist/commands/captureListing.js +48 -4
- package/dist/commands/chat.d.ts +4 -0
- package/dist/commands/chat.js +133 -8
- package/dist/commands/check.js +34 -1
- package/dist/commands/create.js +30 -263
- package/dist/commands/dev.js +37 -3
- package/dist/commands/devBrowser.js +2 -2
- package/dist/commands/devGameServer.d.ts +16 -0
- package/dist/commands/devGameServer.js +237 -0
- package/dist/commands/devRuntimeAssets.d.ts +1 -0
- package/dist/commands/devRuntimeAssets.js +2 -0
- package/dist/commands/devServer.d.ts +3 -0
- package/dist/commands/devServer.js +111 -5
- package/dist/commands/generation.d.ts +33 -4
- package/dist/commands/generation.js +304 -115
- package/dist/commands/login.js +23 -7
- package/dist/commands/review.d.ts +1 -1
- package/dist/commands/review.js +68 -95
- package/dist/commands/source.d.ts +19 -0
- package/dist/commands/source.js +142 -0
- package/dist/commands/tweaks.js +5 -11
- package/dist/commands/upload-content.d.ts +1 -1
- package/dist/commands/upload-content.js +16 -12
- package/dist/commands/upload.d.ts +17 -1
- package/dist/commands/upload.js +47 -10
- package/dist/commands/worker/archive-staging.d.ts +1 -0
- package/dist/commands/worker/archive-staging.js +13 -2
- package/dist/commands/worker/e2e-fixtures.d.ts +32 -0
- package/dist/commands/worker/e2e-fixtures.js +466 -0
- package/dist/commands/worker/game-server-infra.d.ts +80 -0
- package/dist/commands/worker/game-server-infra.js +595 -0
- package/dist/commands/worker/game-source-git.d.ts +126 -0
- package/dist/commands/worker/game-source-git.js +780 -0
- package/dist/commands/worker/generation.d.ts +94 -0
- package/dist/commands/worker/generation.js +1458 -0
- package/dist/commands/worker/runtime.d.ts +8 -10
- package/dist/commands/worker/runtime.js +51 -45
- package/dist/commands/worker.d.ts +79 -19
- package/dist/commands/worker.js +1796 -419
- package/dist/config.d.ts +2 -0
- package/dist/config.js +16 -3
- package/dist/environment.d.ts +0 -1
- package/dist/environment.js +0 -8
- package/dist/index.js +92 -13
- package/dist/workerAppProject.d.ts +1 -1
- package/dist/workerAppProject.js +15 -2
- package/node_modules/@playdrop/api-client/dist/client.d.ts +72 -25
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.js +33 -0
- package/node_modules/@playdrop/api-client/dist/core/request.d.ts +1 -0
- package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/core/request.js +17 -11
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts +51 -6
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.js +338 -41
- package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts +24 -1
- package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/ai.js +20 -0
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +13 -8
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/apps.js +158 -90
- package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts +4 -0
- package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/assets.js +27 -0
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts +35 -3
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.js +89 -7
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts +2 -1
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/player-meta.js +9 -0
- package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts +1 -2
- package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/playtrade.js +0 -11
- package/node_modules/@playdrop/api-client/dist/domains/social.d.ts +29 -0
- package/node_modules/@playdrop/api-client/dist/domains/social.d.ts.map +1 -0
- package/node_modules/@playdrop/api-client/dist/domains/social.js +79 -0
- package/node_modules/@playdrop/api-client/dist/index.d.ts +80 -29
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +217 -56
- package/node_modules/@playdrop/api-client/dist/runtime.d.ts +18 -0
- package/node_modules/@playdrop/api-client/dist/runtime.d.ts.map +1 -0
- package/node_modules/@playdrop/api-client/dist/runtime.js +54 -0
- package/node_modules/@playdrop/api-client/package.json +7 -0
- package/node_modules/@playdrop/config/client-meta.json +4 -4
- package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts +11 -0
- package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/creator-plans.js +13 -1
- package/node_modules/@playdrop/config/dist/src/deployment.d.ts +0 -1
- package/node_modules/@playdrop/config/dist/src/deployment.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/deployment.js +0 -8
- package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts +0 -1
- package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/public-deployment.js +0 -8
- package/node_modules/@playdrop/config/dist/src/runtime-service-origins.d.ts +1 -1
- package/node_modules/@playdrop/config/dist/src/runtime-service-origins.js +2 -2
- package/node_modules/@playdrop/config/dist/src/server/logging.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/server/logging.js +31 -2
- package/node_modules/@playdrop/config/dist/test/creator-plans.test.js +10 -0
- package/node_modules/@playdrop/config/dist/test/deployment.test.js +0 -4
- package/node_modules/@playdrop/config/dist/test/runtime-service-origins.test.js +2 -0
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/config/package.json +6 -0
- package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts +9 -0
- package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/archive.js +107 -0
- package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts +29 -0
- package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.js +64 -0
- package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts +8 -0
- package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/export.js +25 -0
- package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts +39 -0
- package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/git.js +195 -0
- package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts +6 -0
- package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/ignore.js +51 -0
- package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts +10 -0
- package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts.map +1 -0
- package/node_modules/@playdrop/{boxel-core/dist/src/humanoid/r15 → game-source-git/dist/src}/index.js +9 -4
- package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts +17 -0
- package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/lock.js +72 -0
- package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts +10 -0
- package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/materialize.js +99 -0
- package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts +24 -0
- package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/paths.js +207 -0
- package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts +66 -0
- package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/src/repository.js +213 -0
- package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts +2 -0
- package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts.map +1 -0
- package/node_modules/@playdrop/game-source-git/dist/test/core.test.js +441 -0
- package/node_modules/@playdrop/game-source-git/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/@playdrop/game-source-git/package.json +28 -0
- package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts +2 -2
- package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/agent-task-terminal.js +15 -9
- package/node_modules/@playdrop/types/dist/api.d.ts +728 -164
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +60 -11
- package/node_modules/@playdrop/types/dist/asset-pack.d.ts +2 -0
- package/node_modules/@playdrop/types/dist/asset-pack.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/asset.d.ts +22 -8
- package/node_modules/@playdrop/types/dist/asset.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/asset.js +26 -26
- package/node_modules/@playdrop/types/dist/chat.d.ts +107 -3
- package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/chat.js +33 -4
- package/node_modules/@playdrop/types/dist/index.d.ts +3 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.js +7 -1
- package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts +11 -0
- package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/public-cache-tags.js +78 -0
- package/node_modules/@playdrop/types/dist/realtime.d.ts +3 -15
- package/node_modules/@playdrop/types/dist/realtime.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/social.d.ts +64 -0
- package/node_modules/@playdrop/types/dist/social.d.ts.map +1 -0
- package/node_modules/@playdrop/{boxel-three/dist/src/types.js → types/dist/social.js} +14 -2
- package/node_modules/@playdrop/types/dist/spritesheet.d.ts +51 -0
- package/node_modules/@playdrop/types/dist/spritesheet.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/spritesheet.js +73 -0
- package/node_modules/@playdrop/types/dist/version.d.ts +86 -58
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/version.js +111 -0
- package/node_modules/@playdrop/types/package.json +14 -0
- package/node_modules/@playdrop/vox-three/dist/src/index.d.ts +1 -1
- package/node_modules/@playdrop/vox-three/dist/src/index.js +1 -1
- package/node_modules/@playdrop/vox-three/dist/src/index.js.map +1 -1
- package/node_modules/@playdrop/vox-three/dist/src/vox.d.ts +0 -3
- package/node_modules/@playdrop/vox-three/dist/src/vox.js +0 -110
- package/node_modules/@playdrop/vox-three/dist/src/vox.js.map +1 -1
- package/node_modules/@playdrop/vox-three/dist/test/vox.test.js +0 -18
- package/node_modules/@playdrop/vox-three/dist/test/vox.test.js.map +1 -1
- package/node_modules/@playdrop/vox-three/package.json +8 -4
- package/package.json +9 -11
- package/dist/assets/model-artifacts.d.ts +0 -8
- package/dist/assets/model-artifacts.js +0 -382
- package/dist/assets/model-worker.d.ts +0 -22
- package/dist/assets/model-worker.js +0 -123
- package/node_modules/@playdrop/ai-client/dist/index.d.ts +0 -441
- package/node_modules/@playdrop/ai-client/dist/index.d.ts.map +0 -1
- package/node_modules/@playdrop/ai-client/dist/index.js +0 -499
- package/node_modules/@playdrop/ai-client/package.json +0 -22
- package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.d.ts +0 -13
- package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js +0 -141
- package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.d.ts +0 -47
- package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js +0 -313
- package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/format-utils.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js +0 -36
- package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.d.ts +0 -23
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js +0 -11
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js +0 -21
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js +0 -24
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js +0 -387
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.d.ts +0 -6
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js +0 -373
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.d.ts +0 -12
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js +0 -215
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js +0 -18
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.d.ts +0 -42
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js +0 -145
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.d.ts +0 -26
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js +0 -65
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.d.ts +0 -33
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js +0 -175
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r15.json +0 -1517
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r6.json +0 -61
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.d.ts +0 -10
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js +0 -23
- package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/index.d.ts +0 -19
- package/node_modules/@playdrop/boxel-core/dist/src/index.js +0 -36
- package/node_modules/@playdrop/boxel-core/dist/src/index.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/materials.d.ts +0 -26
- package/node_modules/@playdrop/boxel-core/dist/src/materials.js +0 -184
- package/node_modules/@playdrop/boxel-core/dist/src/materials.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.d.ts +0 -68
- package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js +0 -488
- package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/serialization.d.ts +0 -4
- package/node_modules/@playdrop/boxel-core/dist/src/serialization.js +0 -380
- package/node_modules/@playdrop/boxel-core/dist/src/serialization.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/textures.d.ts +0 -29
- package/node_modules/@playdrop/boxel-core/dist/src/textures.js +0 -208
- package/node_modules/@playdrop/boxel-core/dist/src/textures.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.d.ts +0 -9
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js +0 -312
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.d.ts +0 -9
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js +0 -154
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.d.ts +0 -2
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js +0 -121
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.d.ts +0 -20
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js +0 -389
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.d.ts +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js +0 -206
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.d.ts +0 -12
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js +0 -81
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.d.ts +0 -12
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js +0 -318
- package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/types.d.ts +0 -168
- package/node_modules/@playdrop/boxel-core/dist/src/types.js +0 -3
- package/node_modules/@playdrop/boxel-core/dist/src/types.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/validation.d.ts +0 -24
- package/node_modules/@playdrop/boxel-core/dist/src/validation.js +0 -620
- package/node_modules/@playdrop/boxel-core/dist/src/validation.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.d.ts +0 -11
- package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js +0 -135
- package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/src/voxels.d.ts +0 -23
- package/node_modules/@playdrop/boxel-core/dist/src/voxels.js +0 -52
- package/node_modules/@playdrop/boxel-core/dist/src/voxels.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/package.json +0 -19
- package/node_modules/@playdrop/boxel-three/dist/src/animations.d.ts +0 -4
- package/node_modules/@playdrop/boxel-three/dist/src/animations.js +0 -92
- package/node_modules/@playdrop/boxel-three/dist/src/builders.d.ts +0 -8
- package/node_modules/@playdrop/boxel-three/dist/src/builders.js +0 -363
- package/node_modules/@playdrop/boxel-three/dist/src/context.d.ts +0 -24
- package/node_modules/@playdrop/boxel-three/dist/src/context.js +0 -58
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.d.ts +0 -100
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.js +0 -927
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.d.ts +0 -18
- package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.js +0 -294
- package/node_modules/@playdrop/boxel-three/dist/src/index.d.ts +0 -17
- package/node_modules/@playdrop/boxel-three/dist/src/index.js +0 -64
- package/node_modules/@playdrop/boxel-three/dist/src/instantiate.d.ts +0 -40
- package/node_modules/@playdrop/boxel-three/dist/src/instantiate.js +0 -96
- package/node_modules/@playdrop/boxel-three/dist/src/nodes.d.ts +0 -8
- package/node_modules/@playdrop/boxel-three/dist/src/nodes.js +0 -88
- package/node_modules/@playdrop/boxel-three/dist/src/overlays.d.ts +0 -7
- package/node_modules/@playdrop/boxel-three/dist/src/overlays.js +0 -123
- package/node_modules/@playdrop/boxel-three/dist/src/primitives.d.ts +0 -4
- package/node_modules/@playdrop/boxel-three/dist/src/primitives.js +0 -48
- package/node_modules/@playdrop/boxel-three/dist/src/scene.d.ts +0 -3
- package/node_modules/@playdrop/boxel-three/dist/src/scene.js +0 -168
- package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.d.ts +0 -29
- package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.js +0 -623
- package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.d.ts +0 -13
- package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.js +0 -133
- package/node_modules/@playdrop/boxel-three/dist/src/textures.d.ts +0 -17
- package/node_modules/@playdrop/boxel-three/dist/src/textures.js +0 -216
- package/node_modules/@playdrop/boxel-three/dist/src/types.d.ts +0 -112
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.d.ts +0 -28
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.js +0 -344
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.d.ts +0 -24
- package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.js +0 -113
- package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.js +0 -137
- package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.d.ts +0 -20
- package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.js +0 -85
- package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.js +0 -104
- package/node_modules/@playdrop/boxel-three/dist/test/index.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/index.test.js +0 -30
- package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.js +0 -88
- package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.js +0 -42
- package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.js +0 -73
- package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.js +0 -85
- package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.js +0 -73
- package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.js +0 -136
- package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.js +0 -42
- package/node_modules/@playdrop/boxel-three/package.json +0 -28
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { ComboBox, BoxelDefinition, Material, Node, Pattern, Primitive, Texture } from "./types";
|
|
2
|
-
export interface PrimitiveDependencySets {
|
|
3
|
-
primitives: Set<string>;
|
|
4
|
-
materials: Set<string>;
|
|
5
|
-
textures: Set<string>;
|
|
6
|
-
patterns: Set<string>;
|
|
7
|
-
}
|
|
8
|
-
export declare const buildPrimitiveLookup: (entity: BoxelDefinition) => Map<string, Primitive>;
|
|
9
|
-
export declare const buildMaterialLookup: (entity: BoxelDefinition) => Map<string, Material>;
|
|
10
|
-
export declare const buildTextureLookup: (entity: BoxelDefinition) => Map<string, Texture>;
|
|
11
|
-
export declare const buildPatternLookup: (entity: BoxelDefinition) => Map<string, Pattern>;
|
|
12
|
-
export declare function findNodeById(root: Node, targetId: string): Node | null;
|
|
13
|
-
export declare function findNode(root: Node, targetId: string): Node | undefined;
|
|
14
|
-
export declare function applyNodeDimensions(node: Node, primitive: {
|
|
15
|
-
size: [number, number, number];
|
|
16
|
-
}, originalSize: [number, number, number], originalCenter: [number, number, number]): void;
|
|
17
|
-
export declare function applyNodeDimensionsAxis(node: Node, primitive: {
|
|
18
|
-
size: [number, number, number];
|
|
19
|
-
}, originalSize: [number, number, number], originalCenter: [number, number, number], axis: "x" | "y"): void;
|
|
20
|
-
export declare function updateChildPosition(parent: Node, childId: string, offsetY: number): void;
|
|
21
|
-
export declare function updateChildPositionAxis(parent: Node, childId: string, axis: "x" | "y", value: number): void;
|
|
22
|
-
export declare function anchorCenter(originalCenter: number, originalSize: number, newSize: number, orientation: 1 | -1): number;
|
|
23
|
-
export declare function collectPrimitiveUsage(entity: BoxelDefinition, primitiveId: string): {
|
|
24
|
-
nodeIds: string[];
|
|
25
|
-
comboIds: string[];
|
|
26
|
-
};
|
|
27
|
-
export declare function computeComboBoundingSize(combo: ComboBox, primitiveLookup: Map<string, Primitive>): [number, number, number];
|
|
28
|
-
/**
|
|
29
|
-
* Estimate the pixel-per-meter scale of an entity using its root scale vector.
|
|
30
|
-
* Returns an integer value (e.g. 16 for classic avatars, 32 for HD avatars) or null when it cannot be derived.
|
|
31
|
-
*/
|
|
32
|
-
export declare function computeEntityPixelsPerMeter(entity: BoxelDefinition): number | null;
|
|
33
|
-
export declare function collectPrimitiveDependencies(entity: BoxelDefinition, rootPrimitiveId: string): PrimitiveDependencySets;
|
|
34
|
-
export declare function ensureNoIdCollisions<T extends {
|
|
35
|
-
id: string;
|
|
36
|
-
}>(existing: readonly T[], incomingIds: Set<string>, entitySection: string): void;
|
|
37
|
-
export declare function selectByIdOrder<T extends {
|
|
38
|
-
id: string;
|
|
39
|
-
}>(items: readonly T[], ids: Set<string>): T[];
|
|
40
|
-
export interface MaterialMergeOutcome {
|
|
41
|
-
additions: Material[];
|
|
42
|
-
rewrites: Map<string, string>;
|
|
43
|
-
}
|
|
44
|
-
export declare function mergeIncomingMaterials(existingMaterials: readonly Material[], incomingMaterials: readonly Material[]): MaterialMergeOutcome;
|
|
45
|
-
export declare function applyMaterialRewriteToPrimitive(primitive: Primitive, rewrite: (id: string) => string): Primitive;
|
|
46
|
-
export declare function applyMaterialRewriteToTexture(texture: Texture, rewrite: (id: string) => string): Texture;
|
|
47
|
-
export declare function cloneEntity<T>(value: T): T;
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildPatternLookup = exports.buildTextureLookup = exports.buildMaterialLookup = exports.buildPrimitiveLookup = void 0;
|
|
4
|
-
exports.findNodeById = findNodeById;
|
|
5
|
-
exports.findNode = findNode;
|
|
6
|
-
exports.applyNodeDimensions = applyNodeDimensions;
|
|
7
|
-
exports.applyNodeDimensionsAxis = applyNodeDimensionsAxis;
|
|
8
|
-
exports.updateChildPosition = updateChildPosition;
|
|
9
|
-
exports.updateChildPositionAxis = updateChildPositionAxis;
|
|
10
|
-
exports.anchorCenter = anchorCenter;
|
|
11
|
-
exports.collectPrimitiveUsage = collectPrimitiveUsage;
|
|
12
|
-
exports.computeComboBoundingSize = computeComboBoundingSize;
|
|
13
|
-
exports.computeEntityPixelsPerMeter = computeEntityPixelsPerMeter;
|
|
14
|
-
exports.collectPrimitiveDependencies = collectPrimitiveDependencies;
|
|
15
|
-
exports.ensureNoIdCollisions = ensureNoIdCollisions;
|
|
16
|
-
exports.selectByIdOrder = selectByIdOrder;
|
|
17
|
-
exports.mergeIncomingMaterials = mergeIncomingMaterials;
|
|
18
|
-
exports.applyMaterialRewriteToPrimitive = applyMaterialRewriteToPrimitive;
|
|
19
|
-
exports.applyMaterialRewriteToTexture = applyMaterialRewriteToTexture;
|
|
20
|
-
exports.cloneEntity = cloneEntity;
|
|
21
|
-
const textures_1 = require("./textures");
|
|
22
|
-
const materials_1 = require("./materials");
|
|
23
|
-
const buildPrimitiveLookup = (entity) => {
|
|
24
|
-
const lookup = new Map();
|
|
25
|
-
entity.primitives.forEach((primitive) => lookup.set(primitive.id, primitive));
|
|
26
|
-
return lookup;
|
|
27
|
-
};
|
|
28
|
-
exports.buildPrimitiveLookup = buildPrimitiveLookup;
|
|
29
|
-
const buildMaterialLookup = (entity) => {
|
|
30
|
-
const lookup = new Map();
|
|
31
|
-
entity.materials.forEach((material) => lookup.set(material.id, material));
|
|
32
|
-
return lookup;
|
|
33
|
-
};
|
|
34
|
-
exports.buildMaterialLookup = buildMaterialLookup;
|
|
35
|
-
const buildTextureLookup = (entity) => (0, textures_1.collectEntityTextureLookup)(entity);
|
|
36
|
-
exports.buildTextureLookup = buildTextureLookup;
|
|
37
|
-
const buildPatternLookup = (entity) => {
|
|
38
|
-
const lookup = new Map();
|
|
39
|
-
entity.patterns.forEach((pattern) => lookup.set(pattern.id, pattern));
|
|
40
|
-
return lookup;
|
|
41
|
-
};
|
|
42
|
-
exports.buildPatternLookup = buildPatternLookup;
|
|
43
|
-
function findNodeById(root, targetId) {
|
|
44
|
-
if (root.id === targetId) {
|
|
45
|
-
return root;
|
|
46
|
-
}
|
|
47
|
-
for (const child of root.children ?? []) {
|
|
48
|
-
const found = findNodeById(child, targetId);
|
|
49
|
-
if (found) {
|
|
50
|
-
return found;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
function findNode(root, targetId) {
|
|
56
|
-
const result = findNodeById(root, targetId);
|
|
57
|
-
return result === null ? undefined : result;
|
|
58
|
-
}
|
|
59
|
-
function applyNodeDimensions(node, primitive, originalSize, originalCenter) {
|
|
60
|
-
node.size = [primitive.size[0], primitive.size[1], primitive.size[2]];
|
|
61
|
-
const center = [
|
|
62
|
-
Number(originalCenter[0]),
|
|
63
|
-
Number(originalCenter[1]) - Number(originalSize[1]) / 2 + primitive.size[1] / 2,
|
|
64
|
-
Number(originalCenter[2]),
|
|
65
|
-
];
|
|
66
|
-
node.center = center;
|
|
67
|
-
}
|
|
68
|
-
function applyNodeDimensionsAxis(node, primitive, originalSize, originalCenter, axis) {
|
|
69
|
-
node.size = [primitive.size[0], primitive.size[1], primitive.size[2]];
|
|
70
|
-
const center = [
|
|
71
|
-
Number(originalCenter[0]),
|
|
72
|
-
Number(originalCenter[1]),
|
|
73
|
-
Number(originalCenter[2]),
|
|
74
|
-
];
|
|
75
|
-
const axisIdx = axis === "x" ? 0 : 1;
|
|
76
|
-
center[axisIdx] = Number(originalCenter[axisIdx]) - Number(originalSize[axisIdx]) / 2 + primitive.size[axisIdx] / 2;
|
|
77
|
-
node.center = center;
|
|
78
|
-
}
|
|
79
|
-
function updateChildPosition(parent, childId, offsetY) {
|
|
80
|
-
if (!Array.isArray(parent.children)) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
parent.children.forEach((child) => {
|
|
84
|
-
if (child.id !== childId || !Array.isArray(child.position)) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const updated = [...child.position];
|
|
88
|
-
updated[1] = offsetY;
|
|
89
|
-
child.position = updated;
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function updateChildPositionAxis(parent, childId, axis, value) {
|
|
93
|
-
if (!Array.isArray(parent.children)) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
const axisIdx = axis === "x" ? 0 : 1;
|
|
97
|
-
parent.children.forEach((child) => {
|
|
98
|
-
if (child.id !== childId) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const current = Array.isArray(child.position)
|
|
102
|
-
? [...child.position]
|
|
103
|
-
: [0, 0, 0];
|
|
104
|
-
current[axisIdx] = value;
|
|
105
|
-
child.position = current;
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function anchorCenter(originalCenter, originalSize, newSize, orientation) {
|
|
109
|
-
const innerBoundary = orientation > 0 ? originalCenter - originalSize / 2 : originalCenter + originalSize / 2;
|
|
110
|
-
return orientation > 0 ? innerBoundary + newSize / 2 : innerBoundary - newSize / 2;
|
|
111
|
-
}
|
|
112
|
-
function collectPrimitiveUsage(entity, primitiveId) {
|
|
113
|
-
const nodeIds = [];
|
|
114
|
-
const comboIds = [];
|
|
115
|
-
const visitNode = (node) => {
|
|
116
|
-
if (node.mesh === primitiveId) {
|
|
117
|
-
nodeIds.push(node.id);
|
|
118
|
-
}
|
|
119
|
-
node.children?.forEach(visitNode);
|
|
120
|
-
};
|
|
121
|
-
visitNode(entity.geometry.root);
|
|
122
|
-
entity.primitives.forEach((primitive) => {
|
|
123
|
-
if (primitive.kind !== "combo_box")
|
|
124
|
-
return;
|
|
125
|
-
const combo = primitive;
|
|
126
|
-
combo.slots.forEach((slot) => {
|
|
127
|
-
if (slot.primitive === primitiveId) {
|
|
128
|
-
comboIds.push(combo.id);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
return { nodeIds, comboIds };
|
|
133
|
-
}
|
|
134
|
-
function computeComboBoundingSize(combo, primitiveLookup) {
|
|
135
|
-
if (!combo.slots || combo.slots.length === 0) {
|
|
136
|
-
return [combo.size?.[0] ?? 1, combo.size?.[1] ?? 1, combo.size?.[2] ?? 1];
|
|
137
|
-
}
|
|
138
|
-
let minX = Infinity;
|
|
139
|
-
let minY = Infinity;
|
|
140
|
-
let minZ = Infinity;
|
|
141
|
-
let maxX = -Infinity;
|
|
142
|
-
let maxY = -Infinity;
|
|
143
|
-
let maxZ = -Infinity;
|
|
144
|
-
let tracked = 0;
|
|
145
|
-
combo.slots.forEach((slot) => {
|
|
146
|
-
const child = primitiveLookup.get(slot.primitive);
|
|
147
|
-
if (!child) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
const size = child.size ?? [0, 0, 0];
|
|
151
|
-
const halfSize = [size[0] / 2, size[1] / 2, size[2] / 2];
|
|
152
|
-
minX = Math.min(minX, slot.offset[0] - halfSize[0]);
|
|
153
|
-
minY = Math.min(minY, slot.offset[1] - halfSize[1]);
|
|
154
|
-
minZ = Math.min(minZ, slot.offset[2] - halfSize[2]);
|
|
155
|
-
maxX = Math.max(maxX, slot.offset[0] + halfSize[0]);
|
|
156
|
-
maxY = Math.max(maxY, slot.offset[1] + halfSize[1]);
|
|
157
|
-
maxZ = Math.max(maxZ, slot.offset[2] + halfSize[2]);
|
|
158
|
-
tracked += 1;
|
|
159
|
-
});
|
|
160
|
-
if (tracked === 0 || !Number.isFinite(minX)) {
|
|
161
|
-
return [combo.size?.[0] ?? 1, combo.size?.[1] ?? 1, combo.size?.[2] ?? 1];
|
|
162
|
-
}
|
|
163
|
-
const derived = [
|
|
164
|
-
Math.max(0, maxX - minX),
|
|
165
|
-
Math.max(0, maxY - minY),
|
|
166
|
-
Math.max(0, maxZ - minZ),
|
|
167
|
-
];
|
|
168
|
-
return [combo.size?.[0] ?? derived[0], combo.size?.[1] ?? derived[1], combo.size?.[2] ?? derived[2]];
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Estimate the pixel-per-meter scale of an entity using its root scale vector.
|
|
172
|
-
* Returns an integer value (e.g. 16 for classic avatars, 32 for HD avatars) or null when it cannot be derived.
|
|
173
|
-
*/
|
|
174
|
-
function computeEntityPixelsPerMeter(entity) {
|
|
175
|
-
const rootScale = entity.geometry?.root?.scale;
|
|
176
|
-
if (Array.isArray(rootScale) && rootScale.length > 0) {
|
|
177
|
-
const positive = rootScale.map((value) => Number(value)).filter((value) => Number.isFinite(value) && value > 0);
|
|
178
|
-
if (positive.length > 0) {
|
|
179
|
-
const averageScale = positive.reduce((sum, value) => sum + value, 0) / positive.length;
|
|
180
|
-
if (averageScale > 0) {
|
|
181
|
-
const pixelsPerMeter = Math.round(1 / averageScale);
|
|
182
|
-
if (pixelsPerMeter > 0) {
|
|
183
|
-
return pixelsPerMeter;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return null;
|
|
189
|
-
}
|
|
190
|
-
function collectPrimitiveDependencies(entity, rootPrimitiveId) {
|
|
191
|
-
const primitiveLookup = (0, exports.buildPrimitiveLookup)(entity);
|
|
192
|
-
if (!primitiveLookup.has(rootPrimitiveId)) {
|
|
193
|
-
throw new Error(`Primitive "${rootPrimitiveId}" not found in source entity`);
|
|
194
|
-
}
|
|
195
|
-
const pending = [rootPrimitiveId];
|
|
196
|
-
const visited = new Set();
|
|
197
|
-
const primitives = new Set();
|
|
198
|
-
const materials = new Set();
|
|
199
|
-
const textures = new Set();
|
|
200
|
-
const patterns = new Set();
|
|
201
|
-
const textureLookup = (0, exports.buildTextureLookup)(entity);
|
|
202
|
-
const patternLookup = (0, exports.buildPatternLookup)(entity);
|
|
203
|
-
const materialLookup = (0, exports.buildMaterialLookup)(entity);
|
|
204
|
-
while (pending.length > 0) {
|
|
205
|
-
const primitiveId = pending.pop();
|
|
206
|
-
if (visited.has(primitiveId)) {
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
visited.add(primitiveId);
|
|
210
|
-
const primitive = primitiveLookup.get(primitiveId);
|
|
211
|
-
if (!primitive) {
|
|
212
|
-
throw new Error(`Primitive "${primitiveId}" references missing definition in source entity`);
|
|
213
|
-
}
|
|
214
|
-
primitives.add(primitive.id);
|
|
215
|
-
switch (primitive.kind) {
|
|
216
|
-
case "plain_box": {
|
|
217
|
-
const box = primitive;
|
|
218
|
-
if (!materialLookup.has(box.material)) {
|
|
219
|
-
throw new Error(`Primitive "${primitive.id}" references unknown material "${box.material}"`);
|
|
220
|
-
}
|
|
221
|
-
materials.add(box.material);
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
case "textured_box": {
|
|
225
|
-
const textured = primitive;
|
|
226
|
-
const summary = (0, textures_1.collectTexturedBoxDependencies)(textured, textureLookup);
|
|
227
|
-
summary.textures.forEach((textureId) => {
|
|
228
|
-
const texture = textureLookup.get(textureId);
|
|
229
|
-
if (!texture) {
|
|
230
|
-
throw new Error(`Primitive "${textured.id}" references unknown texture "${textureId}"`);
|
|
231
|
-
}
|
|
232
|
-
textures.add(textureId);
|
|
233
|
-
if (!patternLookup.has(texture.pattern)) {
|
|
234
|
-
throw new Error(`Texture "${textureId}" references missing pattern "${texture.pattern}"`);
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
summary.patterns.forEach((patternId) => patterns.add(patternId));
|
|
238
|
-
summary.materials.forEach((materialId) => {
|
|
239
|
-
if (!materialLookup.has(materialId)) {
|
|
240
|
-
throw new Error(`Texture dependency references unknown material "${materialId}"`);
|
|
241
|
-
}
|
|
242
|
-
materials.add(materialId);
|
|
243
|
-
});
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
case "voxel_box": {
|
|
247
|
-
const voxel = primitive;
|
|
248
|
-
(voxel.palette ?? []).forEach((materialId) => {
|
|
249
|
-
if (!materialLookup.has(materialId)) {
|
|
250
|
-
throw new Error(`Voxel primitive "${voxel.id}" references unknown material "${materialId}"`);
|
|
251
|
-
}
|
|
252
|
-
materials.add(materialId);
|
|
253
|
-
});
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
case "combo_box": {
|
|
257
|
-
const combo = primitive;
|
|
258
|
-
combo.slots.forEach((slot) => {
|
|
259
|
-
pending.push(slot.primitive);
|
|
260
|
-
});
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
default:
|
|
264
|
-
throw new Error(`Unsupported primitive kind "${primitive.kind}"`);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
return { primitives, materials, textures, patterns };
|
|
268
|
-
}
|
|
269
|
-
function ensureNoIdCollisions(existing, incomingIds, entitySection) {
|
|
270
|
-
for (const item of existing) {
|
|
271
|
-
if (incomingIds.has(item.id)) {
|
|
272
|
-
throw new Error(`Target entity already contains ${entitySection} with id "${item.id}". Rename it before importing or choose a different primitive.`);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
function selectByIdOrder(items, ids) {
|
|
277
|
-
return items.filter((item) => ids.has(item.id)).map((item) => ({ ...item }));
|
|
278
|
-
}
|
|
279
|
-
function mergeIncomingMaterials(existingMaterials, incomingMaterials) {
|
|
280
|
-
const { additions, rewrites } = (0, materials_1.mergeMaterials)(existingMaterials, incomingMaterials);
|
|
281
|
-
return { additions, rewrites };
|
|
282
|
-
}
|
|
283
|
-
function applyMaterialRewriteToPrimitive(primitive, rewrite) {
|
|
284
|
-
switch (primitive.kind) {
|
|
285
|
-
case "plain_box":
|
|
286
|
-
return {
|
|
287
|
-
...primitive,
|
|
288
|
-
material: rewrite(primitive.material),
|
|
289
|
-
};
|
|
290
|
-
case "voxel_box":
|
|
291
|
-
return {
|
|
292
|
-
...primitive,
|
|
293
|
-
palette: Array.isArray(primitive.palette) ? primitive.palette.map(rewrite) : [],
|
|
294
|
-
};
|
|
295
|
-
case "textured_box":
|
|
296
|
-
case "combo_box":
|
|
297
|
-
default:
|
|
298
|
-
return { ...primitive };
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
function applyMaterialRewriteToTexture(texture, rewrite) {
|
|
302
|
-
return {
|
|
303
|
-
...texture,
|
|
304
|
-
materials: Array.isArray(texture.materials) ? texture.materials.map(rewrite) : [],
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
function cloneEntity(value) {
|
|
308
|
-
if (typeof structuredClone === "function") {
|
|
309
|
-
return structuredClone(value);
|
|
310
|
-
}
|
|
311
|
-
return JSON.parse(JSON.stringify(value));
|
|
312
|
-
}
|
|
313
|
-
//# sourceMappingURL=entity-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-utils.js","sourceRoot":"","sources":["../../src/entity-utils.ts"],"names":[],"mappings":";;;AAyCA,oCAWC;AAED,4BAGC;AAED,kDAaC;AAED,0DAgBC;AAED,kDA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K,UAAU,EAAE,CAAC;QAC1C,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatColor = exports.formatVec = exports.formatNumber = void 0;
|
|
4
|
-
const formatNumber = (value) => {
|
|
5
|
-
if (!Number.isFinite(value))
|
|
6
|
-
return "-";
|
|
7
|
-
const abs = Math.abs(value);
|
|
8
|
-
const fixed = abs >= 100 ? value.toFixed(0) : abs >= 10 ? value.toFixed(2) : abs >= 1 ? value.toFixed(3) : value.toFixed(4);
|
|
9
|
-
let normalized = fixed;
|
|
10
|
-
if (normalized.includes(".")) {
|
|
11
|
-
normalized = normalized.replace(/0+$/, "").replace(/\.$/, "");
|
|
12
|
-
}
|
|
13
|
-
if (normalized === "-0")
|
|
14
|
-
normalized = "0";
|
|
15
|
-
return normalized;
|
|
16
|
-
};
|
|
17
|
-
exports.formatNumber = formatNumber;
|
|
18
|
-
const formatVec = (vec) => {
|
|
19
|
-
if (!vec)
|
|
20
|
-
return "-";
|
|
21
|
-
return vec.map(exports.formatNumber).join(", ");
|
|
22
|
-
};
|
|
23
|
-
exports.formatVec = formatVec;
|
|
24
|
-
const formatColor = (vec) => {
|
|
25
|
-
if (!vec)
|
|
26
|
-
return "-";
|
|
27
|
-
const clamped = vec.map((value) => Math.max(0, Math.min(255, Math.round(value))));
|
|
28
|
-
const hex = "#" +
|
|
29
|
-
clamped
|
|
30
|
-
.map((value) => value.toString(16).padStart(2, "0"))
|
|
31
|
-
.join("")
|
|
32
|
-
.toUpperCase();
|
|
33
|
-
return `${hex} · rgb(${clamped.join(", ")})`;
|
|
34
|
-
};
|
|
35
|
-
exports.formatColor = formatColor;
|
|
36
|
-
//# source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AAEK,MAAM,WAAW,GAAG,CAAC,GAAc,EAAU,EAAE;IACpD,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAC;IACrB,MAAM,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAClF,MAAM,GAAG,GACP,GAAG;QACH,OAAO;aACJ,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;aACnD,IAAI,CAAC,EAAE,CAAC;aACR,WAAW,EAAE,CAAC;IACnB,OAAO,GAAG,GAAG,UAAU,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/C,CAAC,CAAC;AAVW,QAAA,WAAW,eAUtB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Vec3 } from "../types";
|
|
2
|
-
export type GeometryVec3 = [number, number, number];
|
|
3
|
-
export type GeometryFaceName = "north" | "south" | "east" | "west" | "up" | "down";
|
|
4
|
-
export interface GeometryCube {
|
|
5
|
-
origin: GeometryVec3;
|
|
6
|
-
size: GeometryVec3;
|
|
7
|
-
uv: [number, number] | Record<GeometryFaceName, [number, number, number?, number?]>;
|
|
8
|
-
inflate?: number;
|
|
9
|
-
mirror?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface GeometryBone {
|
|
12
|
-
name: string;
|
|
13
|
-
parent?: string;
|
|
14
|
-
pivot?: GeometryVec3;
|
|
15
|
-
mirror?: boolean;
|
|
16
|
-
cubes?: GeometryCube[];
|
|
17
|
-
}
|
|
18
|
-
export interface GeometryEntry {
|
|
19
|
-
texturewidth?: number;
|
|
20
|
-
textureheight?: number;
|
|
21
|
-
bones?: GeometryBone[];
|
|
22
|
-
}
|
|
23
|
-
export declare const toGeometryVec3: (input?: GeometryVec3 | Vec3) => GeometryVec3;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toGeometryVec3 = void 0;
|
|
4
|
-
const toGeometryVec3 = (input) => {
|
|
5
|
-
if (!input) {
|
|
6
|
-
return [0, 0, 0];
|
|
7
|
-
}
|
|
8
|
-
return [Number(input[0]) || 0, Number(input[1]) || 0, Number(input[2]) || 0];
|
|
9
|
-
};
|
|
10
|
-
exports.toGeometryVec3 = toGeometryVec3;
|
|
11
|
-
//# sourceMappingURL=geometry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geometry.js","sourceRoot":"","sources":["../../../src/humanoid/geometry.ts"],"names":[],"mappings":";;;AA2BO,MAAM,cAAc,GAAG,CAAC,KAA2B,EAAgB,EAAE;IAC1E,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC;AALW,QAAA,cAAc,kBAKzB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./geometry"), exports);
|
|
18
|
-
__exportStar(require("./r6"), exports);
|
|
19
|
-
__exportStar(require("./r15"), exports);
|
|
20
|
-
__exportStar(require("./templates"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/humanoid/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,uCAAqB;AACrB,wCAAsB;AACtB,8CAA4B"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { BoxelDefinition, Node } from "../../types";
|
|
2
|
-
export declare const roundSize: (value: number) => number;
|
|
3
|
-
export declare function collectNodes(root: Node, mutate?: (node: Node) => void): Map<string, Node>;
|
|
4
|
-
export declare function cloneTemplate(template: BoxelDefinition, outputId: string): BoxelDefinition;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.roundSize = void 0;
|
|
4
|
-
exports.collectNodes = collectNodes;
|
|
5
|
-
exports.cloneTemplate = cloneTemplate;
|
|
6
|
-
const entity_utils_1 = require("../../entity-utils");
|
|
7
|
-
const roundSize = (value) => Math.max(1, Math.round(value));
|
|
8
|
-
exports.roundSize = roundSize;
|
|
9
|
-
function collectNodes(root, mutate) {
|
|
10
|
-
const nodes = new Map();
|
|
11
|
-
(function traverse(node) {
|
|
12
|
-
mutate?.(node);
|
|
13
|
-
nodes.set(node.id, node);
|
|
14
|
-
node.children.forEach((child) => traverse(child));
|
|
15
|
-
})(root);
|
|
16
|
-
return nodes;
|
|
17
|
-
}
|
|
18
|
-
function cloneTemplate(template, outputId) {
|
|
19
|
-
const templateClone = (0, entity_utils_1.cloneEntity)(template);
|
|
20
|
-
templateClone.id = outputId;
|
|
21
|
-
templateClone.geometry.id = `${outputId}_geometry`;
|
|
22
|
-
return templateClone;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/humanoid/r15/common.ts"],"names":[],"mappings":";;;AAKA,oCAQC;AAED,sCAKC;AAnBD,qDAAiD;AAE1C,MAAM,SAAS,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAAtE,QAAA,SAAS,aAA6D;AAEnF,SAAgB,YAAY,CAAC,IAAU,EAAE,MAA6B;IACpE,MAAM,KAAK,GAAG,IAAI,GAAG,EAAgB,CAAC;IACtC,CAAC,SAAS,QAAQ,CAAC,IAAU;QAC3B,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;QACf,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACT,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,aAAa,CAAC,QAAyB,EAAE,QAAgB;IACvE,MAAM,aAAa,GAAG,IAAA,0BAAW,EAAC,QAAQ,CAAC,CAAC;IAC5C,aAAa,CAAC,EAAE,GAAG,QAAQ,CAAC;IAC5B,aAAa,CAAC,QAAQ,CAAC,EAAE,GAAG,GAAG,QAAQ,WAAW,CAAC;IACnD,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/humanoid/r15/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,qDAAmC;AACnC,kDAAgC"}
|