@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,488 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.analyzeEntityMaterials = exports.DEFAULT_SATURATION_FACTOR = void 0;
|
|
4
|
-
exports.collectMaterialUsage = collectMaterialUsage;
|
|
5
|
-
exports.rebalanceLuminance = rebalanceLuminance;
|
|
6
|
-
exports.applySaturation = applySaturation;
|
|
7
|
-
exports.mapLuminance = mapLuminance;
|
|
8
|
-
exports.mapSaturation = mapSaturation;
|
|
9
|
-
exports.rewriteEntityPalette = rewriteEntityPalette;
|
|
10
|
-
exports.clusterMaterials = clusterMaterials;
|
|
11
|
-
exports.analyzePalette = analyzePalette;
|
|
12
|
-
const textures_1 = require("./textures");
|
|
13
|
-
const FACE_KEYS = ["top", "bottom", "north", "south", "east", "west"];
|
|
14
|
-
const EPSILON = 1e-8;
|
|
15
|
-
exports.DEFAULT_SATURATION_FACTOR = 2;
|
|
16
|
-
const DEFAULT_LUMINANCE_OPTIONS = {
|
|
17
|
-
min: 0.04,
|
|
18
|
-
max: 0.8,
|
|
19
|
-
kneeLow: 0.02,
|
|
20
|
-
kneeHigh: 0.08,
|
|
21
|
-
};
|
|
22
|
-
function collectMaterialUsage(entity) {
|
|
23
|
-
const context = {
|
|
24
|
-
primitives: new Map(entity.primitives.map((primitive) => [primitive.id, primitive])),
|
|
25
|
-
textures: new Map(entity.textures.map((texture) => [texture.id, texture])),
|
|
26
|
-
patterns: new Map(entity.patterns.map((pattern) => [pattern.id, pattern])),
|
|
27
|
-
materials: new Map(entity.materials.map((material) => [material.id, material])),
|
|
28
|
-
counts: new Map(),
|
|
29
|
-
textureHistograms: new Map(),
|
|
30
|
-
};
|
|
31
|
-
if (entity.geometry?.root) {
|
|
32
|
-
traverseNodes(context, entity.geometry.root, new Set());
|
|
33
|
-
}
|
|
34
|
-
const results = [];
|
|
35
|
-
context.counts.forEach((count, materialId) => {
|
|
36
|
-
const material = context.materials.get(materialId);
|
|
37
|
-
if (!material) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const baseColor = Array.isArray(material.baseColor) && material.baseColor.length === 3
|
|
41
|
-
? [...material.baseColor]
|
|
42
|
-
: [0, 0, 0];
|
|
43
|
-
results.push({
|
|
44
|
-
materialId,
|
|
45
|
-
baseColor,
|
|
46
|
-
opacity: typeof material.opacity === "number" ? material.opacity : undefined,
|
|
47
|
-
usageCount: count,
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
results.sort((a, b) => {
|
|
51
|
-
if (b.usageCount !== a.usageCount) {
|
|
52
|
-
return b.usageCount - a.usageCount;
|
|
53
|
-
}
|
|
54
|
-
return a.materialId.localeCompare(b.materialId);
|
|
55
|
-
});
|
|
56
|
-
return results;
|
|
57
|
-
}
|
|
58
|
-
function rebalanceLuminance(color, options) {
|
|
59
|
-
const opts = { ...DEFAULT_LUMINANCE_OPTIONS, ...options };
|
|
60
|
-
const [rLin, gLin, bLin] = color.map((component) => srgbChannelToLinear(component));
|
|
61
|
-
const currentLuminance = computeLuminance(rLin, gLin, bLin);
|
|
62
|
-
const target = compressLuminance(currentLuminance, opts);
|
|
63
|
-
let nextR = rLin;
|
|
64
|
-
let nextG = gLin;
|
|
65
|
-
let nextB = bLin;
|
|
66
|
-
if (currentLuminance > EPSILON) {
|
|
67
|
-
const scale = target / (currentLuminance + EPSILON);
|
|
68
|
-
nextR = clamp01(rLin * scale);
|
|
69
|
-
nextG = clamp01(gLin * scale);
|
|
70
|
-
nextB = clamp01(bLin * scale);
|
|
71
|
-
}
|
|
72
|
-
else if (target > 0) {
|
|
73
|
-
nextR = nextG = nextB = clamp01(target);
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
luminance: target,
|
|
77
|
-
color: [linearToSrgbByte(nextR), linearToSrgbByte(nextG), linearToSrgbByte(nextB)],
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function applySaturation(color, options) {
|
|
81
|
-
const scale = Number.isFinite(options.scale) && options.scale > 0 ? options.scale : 1;
|
|
82
|
-
const targetLuminance = options.luminance ?? computeLuminanceVec(color);
|
|
83
|
-
const lab = rgbToLab(color);
|
|
84
|
-
const [, chroma, hue] = labToLch(lab);
|
|
85
|
-
if (chroma <= EPSILON) {
|
|
86
|
-
return { color, luminance: targetLuminance, clipped: false };
|
|
87
|
-
}
|
|
88
|
-
const evaluate = (s) => {
|
|
89
|
-
const scaledLab = lchToLab([lab[0], chroma * s, hue]);
|
|
90
|
-
const [rLinRaw, gLinRaw, bLinRaw] = labToLinearRgb(scaledLab);
|
|
91
|
-
const clipped = rLinRaw < -1e-5 ||
|
|
92
|
-
rLinRaw > 1 + 1e-5 ||
|
|
93
|
-
gLinRaw < -1e-5 ||
|
|
94
|
-
gLinRaw > 1 + 1e-5 ||
|
|
95
|
-
bLinRaw < -1e-5 ||
|
|
96
|
-
bLinRaw > 1 + 1e-5;
|
|
97
|
-
const rLin = clamp01(rLinRaw);
|
|
98
|
-
const gLin = clamp01(gLinRaw);
|
|
99
|
-
const bLin = clamp01(bLinRaw);
|
|
100
|
-
const luminance = computeLuminance(rLin, gLin, bLin);
|
|
101
|
-
return { rLin, gLin, bLin, luminance, clipped };
|
|
102
|
-
};
|
|
103
|
-
let result = evaluate(1);
|
|
104
|
-
if (scale > 1) {
|
|
105
|
-
let lo = 1;
|
|
106
|
-
let hi = scale;
|
|
107
|
-
for (let i = 0; i < 12 && hi - lo > 1e-3; i += 1) {
|
|
108
|
-
const mid = (lo + hi) / 2;
|
|
109
|
-
const candidate = evaluate(mid);
|
|
110
|
-
if (!candidate.clipped) {
|
|
111
|
-
result = candidate;
|
|
112
|
-
lo = mid;
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
hi = mid;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
else if (scale < 1) {
|
|
120
|
-
result = evaluate(scale);
|
|
121
|
-
}
|
|
122
|
-
// Rescale to target luminance while keeping hue/chroma.
|
|
123
|
-
let { rLin, gLin, bLin } = result;
|
|
124
|
-
if (targetLuminance > EPSILON) {
|
|
125
|
-
const scaleFactor = targetLuminance / (result.luminance + EPSILON);
|
|
126
|
-
rLin = clamp01(rLin * scaleFactor);
|
|
127
|
-
gLin = clamp01(gLin * scaleFactor);
|
|
128
|
-
bLin = clamp01(bLin * scaleFactor);
|
|
129
|
-
}
|
|
130
|
-
const finalLuminance = computeLuminance(rLin, gLin, bLin);
|
|
131
|
-
return {
|
|
132
|
-
color: [linearToSrgbByte(rLin), linearToSrgbByte(gLin), linearToSrgbByte(bLin)],
|
|
133
|
-
luminance: finalLuminance,
|
|
134
|
-
clipped: result.clipped,
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
function mapLuminance(samples, options) {
|
|
138
|
-
return samples.map((sample) => {
|
|
139
|
-
const result = rebalanceLuminance(sample.baseColor, options);
|
|
140
|
-
return {
|
|
141
|
-
...sample,
|
|
142
|
-
color: result.color,
|
|
143
|
-
luminance: result.luminance,
|
|
144
|
-
};
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
function mapSaturation(entries, options) {
|
|
148
|
-
return entries.map((entry) => applySaturation(entry.color, { scale: options.scale, luminance: entry.luminance }));
|
|
149
|
-
}
|
|
150
|
-
function rewriteEntityPalette(entity, colors) {
|
|
151
|
-
const clone = structuredClone(entity);
|
|
152
|
-
clone.materials =
|
|
153
|
-
clone.materials?.map((material) => {
|
|
154
|
-
const next = colors.get(material.id);
|
|
155
|
-
if (!next)
|
|
156
|
-
return material;
|
|
157
|
-
return {
|
|
158
|
-
...material,
|
|
159
|
-
baseColor: [...next],
|
|
160
|
-
};
|
|
161
|
-
}) ?? null;
|
|
162
|
-
return clone;
|
|
163
|
-
}
|
|
164
|
-
function clusterMaterials(samples, options) {
|
|
165
|
-
if (!Array.isArray(samples) || samples.length === 0) {
|
|
166
|
-
return [];
|
|
167
|
-
}
|
|
168
|
-
const threshold = options?.deltaE && options.deltaE > 0 ? options.deltaE : 0;
|
|
169
|
-
const entriesWithLab = samples.map((sample) => ({
|
|
170
|
-
sample,
|
|
171
|
-
lab: rgbToLab(sample.baseColor),
|
|
172
|
-
}));
|
|
173
|
-
if (threshold === 0) {
|
|
174
|
-
return entriesWithLab
|
|
175
|
-
.sort((a, b) => b.sample.usageCount - a.sample.usageCount)
|
|
176
|
-
.map((entry) => ({
|
|
177
|
-
id: entry.sample.materialId,
|
|
178
|
-
centerRgb: entry.sample.baseColor,
|
|
179
|
-
centerLab: entry.lab,
|
|
180
|
-
totalCount: entry.sample.usageCount,
|
|
181
|
-
samples: [entry.sample],
|
|
182
|
-
}));
|
|
183
|
-
}
|
|
184
|
-
const sorted = entriesWithLab.sort((a, b) => b.sample.usageCount - a.sample.usageCount);
|
|
185
|
-
const clusters = [];
|
|
186
|
-
sorted.forEach((entry) => {
|
|
187
|
-
let best = null;
|
|
188
|
-
let bestDistance = Infinity;
|
|
189
|
-
for (const cluster of clusters) {
|
|
190
|
-
const distance = deltaE(cluster.center, entry.lab);
|
|
191
|
-
if (distance <= threshold && distance < bestDistance) {
|
|
192
|
-
best = cluster;
|
|
193
|
-
bestDistance = distance;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
if (best) {
|
|
197
|
-
best.members.push(entry.sample);
|
|
198
|
-
best.sumWeight += entry.sample.usageCount;
|
|
199
|
-
best.sumL += entry.lab[0] * entry.sample.usageCount;
|
|
200
|
-
best.sumA += entry.lab[1] * entry.sample.usageCount;
|
|
201
|
-
best.sumB += entry.lab[2] * entry.sample.usageCount;
|
|
202
|
-
best.center = [best.sumL / best.sumWeight, best.sumA / best.sumWeight, best.sumB / best.sumWeight];
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
clusters.push({
|
|
206
|
-
members: [entry.sample],
|
|
207
|
-
sumWeight: entry.sample.usageCount,
|
|
208
|
-
sumL: entry.lab[0] * entry.sample.usageCount,
|
|
209
|
-
sumA: entry.lab[1] * entry.sample.usageCount,
|
|
210
|
-
sumB: entry.lab[2] * entry.sample.usageCount,
|
|
211
|
-
center: entry.lab,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
return clusters
|
|
216
|
-
.map((cluster, index) => ({
|
|
217
|
-
id: `cluster_${index + 1}`,
|
|
218
|
-
centerLab: cluster.center,
|
|
219
|
-
centerRgb: labToRgb(cluster.center),
|
|
220
|
-
totalCount: cluster.sumWeight,
|
|
221
|
-
samples: cluster.members.sort((a, b) => b.usageCount - a.usageCount),
|
|
222
|
-
}))
|
|
223
|
-
.sort((a, b) => b.totalCount - a.totalCount);
|
|
224
|
-
}
|
|
225
|
-
function analyzePalette(entity, options = {}) {
|
|
226
|
-
const samples = collectMaterialUsage(entity);
|
|
227
|
-
const luminanceOptions = {
|
|
228
|
-
...DEFAULT_LUMINANCE_OPTIONS,
|
|
229
|
-
...options.luminance,
|
|
230
|
-
};
|
|
231
|
-
const balanced = mapLuminance(samples, luminanceOptions);
|
|
232
|
-
const saturated = mapSaturation(balanced.map((entry) => ({ color: entry.color, luminance: entry.luminance })), {
|
|
233
|
-
scale: options.saturationScale ?? exports.DEFAULT_SATURATION_FACTOR,
|
|
234
|
-
});
|
|
235
|
-
return balanced.map((entry, index) => ({
|
|
236
|
-
materialId: entry.materialId,
|
|
237
|
-
baseColor: entry.baseColor,
|
|
238
|
-
opacity: entry.opacity,
|
|
239
|
-
count: entry.usageCount,
|
|
240
|
-
luminance: computeLuminanceVec(entry.baseColor),
|
|
241
|
-
balancedColor: entry.color,
|
|
242
|
-
balancedLuminance: entry.luminance,
|
|
243
|
-
saturatedColor: saturated[index].color,
|
|
244
|
-
saturatedLuminance: saturated[index].luminance,
|
|
245
|
-
saturationClipped: saturated[index].clipped,
|
|
246
|
-
}));
|
|
247
|
-
}
|
|
248
|
-
// Backwards compatibility wrapper
|
|
249
|
-
exports.analyzeEntityMaterials = analyzePalette;
|
|
250
|
-
function traverseNodes(context, node, stack) {
|
|
251
|
-
if (node.mesh) {
|
|
252
|
-
analyzePrimitiveInstance(context, node.mesh, 1, stack);
|
|
253
|
-
}
|
|
254
|
-
node.children?.forEach((child) => traverseNodes(context, child, stack));
|
|
255
|
-
}
|
|
256
|
-
function analyzePrimitiveInstance(context, primitiveId, multiplier, stack) {
|
|
257
|
-
const primitive = context.primitives.get(primitiveId);
|
|
258
|
-
if (!primitive) {
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
switch (primitive.kind) {
|
|
262
|
-
case "plain_box":
|
|
263
|
-
incrementUsage(context, primitive.material, multiplier);
|
|
264
|
-
break;
|
|
265
|
-
case "textured_box":
|
|
266
|
-
analyzeTexturedBox(context, primitive, multiplier);
|
|
267
|
-
break;
|
|
268
|
-
case "voxel_box":
|
|
269
|
-
analyzeVoxelBox(context, primitive, multiplier);
|
|
270
|
-
break;
|
|
271
|
-
case "combo_box": {
|
|
272
|
-
if (stack.has(primitiveId)) {
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
stack.add(primitiveId);
|
|
276
|
-
analyzeComboBox(context, primitive, multiplier, stack);
|
|
277
|
-
stack.delete(primitiveId);
|
|
278
|
-
break;
|
|
279
|
-
}
|
|
280
|
-
default:
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
function incrementUsage(context, materialId, amount) {
|
|
285
|
-
if (!context.materials.has(materialId)) {
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
const existing = context.counts.get(materialId) ?? 0;
|
|
289
|
-
context.counts.set(materialId, existing + amount);
|
|
290
|
-
}
|
|
291
|
-
function analyzeTexturedBox(context, primitive, multiplier) {
|
|
292
|
-
FACE_KEYS.forEach((face) => {
|
|
293
|
-
const baseTextureId = (0, textures_1.resolveFaceTextureId)(primitive, face);
|
|
294
|
-
if (baseTextureId) {
|
|
295
|
-
countTextureMaterials(context, baseTextureId, multiplier);
|
|
296
|
-
}
|
|
297
|
-
const overlayTextureId = (0, textures_1.resolveOverlayFaceTextureId)(primitive, face);
|
|
298
|
-
if (overlayTextureId) {
|
|
299
|
-
countTextureMaterials(context, overlayTextureId, multiplier);
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
function analyzeVoxelBox(context, primitive, multiplier) {
|
|
304
|
-
const palette = primitive.palette ?? [];
|
|
305
|
-
if (palette.length === 0) {
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
primitive.voxels?.forEach((value) => {
|
|
309
|
-
if (typeof value !== "number" || value <= 0) {
|
|
310
|
-
return;
|
|
311
|
-
}
|
|
312
|
-
const paletteIndex = value - 1;
|
|
313
|
-
const materialId = palette[paletteIndex];
|
|
314
|
-
if (!materialId) {
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
incrementUsage(context, materialId, multiplier);
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
function analyzeComboBox(context, primitive, multiplier, stack) {
|
|
321
|
-
primitive.slots?.forEach((slot) => {
|
|
322
|
-
if (!slot?.primitive) {
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
analyzePrimitiveInstance(context, slot.primitive, multiplier, stack);
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
function countTextureMaterials(context, textureId, multiplier) {
|
|
329
|
-
const histogram = buildTextureHistogram(context, textureId);
|
|
330
|
-
histogram.forEach((value, materialId) => {
|
|
331
|
-
incrementUsage(context, materialId, value * multiplier);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
const buildTextureHistogram = (context, textureId) => {
|
|
335
|
-
const cached = context.textureHistograms.get(textureId);
|
|
336
|
-
if (cached) {
|
|
337
|
-
return cached;
|
|
338
|
-
}
|
|
339
|
-
const histogram = new Map();
|
|
340
|
-
const texture = context.textures.get(textureId);
|
|
341
|
-
if (!texture) {
|
|
342
|
-
context.textureHistograms.set(textureId, histogram);
|
|
343
|
-
return histogram;
|
|
344
|
-
}
|
|
345
|
-
const pattern = context.patterns.get(texture.pattern);
|
|
346
|
-
if (!pattern || !Array.isArray(pattern.data)) {
|
|
347
|
-
context.textureHistograms.set(textureId, histogram);
|
|
348
|
-
return histogram;
|
|
349
|
-
}
|
|
350
|
-
const materials = texture.materials ?? [];
|
|
351
|
-
pattern.data.forEach((cell) => {
|
|
352
|
-
const materialIndex = Number(cell);
|
|
353
|
-
if (!Number.isInteger(materialIndex) || materialIndex < 0 || materialIndex >= materials.length) {
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
const materialId = materials[materialIndex];
|
|
357
|
-
if (!materialId) {
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
histogram.set(materialId, (histogram.get(materialId) ?? 0) + 1);
|
|
361
|
-
});
|
|
362
|
-
context.textureHistograms.set(textureId, histogram);
|
|
363
|
-
return histogram;
|
|
364
|
-
};
|
|
365
|
-
function compressLuminance(value, options) {
|
|
366
|
-
if (value < options.min) {
|
|
367
|
-
const diff = options.min - value;
|
|
368
|
-
const weight = smoothstep(0, options.kneeLow ?? DEFAULT_LUMINANCE_OPTIONS.kneeLow, diff);
|
|
369
|
-
const lifted = value + diff * weight;
|
|
370
|
-
return Math.min(options.min, lifted);
|
|
371
|
-
}
|
|
372
|
-
if (value > options.max) {
|
|
373
|
-
const diff = value - options.max;
|
|
374
|
-
const weight = smoothstep(0, options.kneeHigh ?? DEFAULT_LUMINANCE_OPTIONS.kneeHigh, diff);
|
|
375
|
-
const lowered = value - diff * weight;
|
|
376
|
-
return Math.max(options.max, lowered);
|
|
377
|
-
}
|
|
378
|
-
return value;
|
|
379
|
-
}
|
|
380
|
-
function smoothstep(edge0, edge1, x) {
|
|
381
|
-
const t = clamp01((x - edge0) / (edge1 - edge0));
|
|
382
|
-
return t * t * (3 - 2 * t);
|
|
383
|
-
}
|
|
384
|
-
function clamp01(value) {
|
|
385
|
-
return Math.min(1, Math.max(0, value));
|
|
386
|
-
}
|
|
387
|
-
function srgbChannelToLinear(value) {
|
|
388
|
-
const normalized = value / 255;
|
|
389
|
-
if (normalized <= 0.04045) {
|
|
390
|
-
return normalized / 12.92;
|
|
391
|
-
}
|
|
392
|
-
return Math.pow((normalized + 0.055) / 1.055, 2.4);
|
|
393
|
-
}
|
|
394
|
-
function linearChannelToSrgb(value) {
|
|
395
|
-
const normalized = clamp01(value);
|
|
396
|
-
if (normalized <= 0.0031308) {
|
|
397
|
-
return normalized * 12.92;
|
|
398
|
-
}
|
|
399
|
-
return 1.055 * Math.pow(normalized, 1 / 2.4) - 0.055;
|
|
400
|
-
}
|
|
401
|
-
function linearToSrgbByte(value) {
|
|
402
|
-
return Math.round(clamp01(linearChannelToSrgb(value)) * 255);
|
|
403
|
-
}
|
|
404
|
-
function computeLuminance(r, g, b) {
|
|
405
|
-
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
406
|
-
}
|
|
407
|
-
function computeLuminanceVec(color) {
|
|
408
|
-
const [r, g, b] = color.map((component) => srgbChannelToLinear(component));
|
|
409
|
-
return computeLuminance(r, g, b);
|
|
410
|
-
}
|
|
411
|
-
const RGB_TO_XYZ = {
|
|
412
|
-
x: [0.4124, 0.3576, 0.1805],
|
|
413
|
-
y: [0.2126, 0.7152, 0.0722],
|
|
414
|
-
z: [0.0193, 0.1192, 0.9505],
|
|
415
|
-
};
|
|
416
|
-
const REF_X = 95.047;
|
|
417
|
-
const REF_Y = 100;
|
|
418
|
-
const REF_Z = 108.883;
|
|
419
|
-
function xyzToLabHelper(value) {
|
|
420
|
-
if (value > 0.008856) {
|
|
421
|
-
return Math.cbrt(value);
|
|
422
|
-
}
|
|
423
|
-
return 7.787 * value + 16 / 116;
|
|
424
|
-
}
|
|
425
|
-
function labToXyzHelper(value) {
|
|
426
|
-
const cubed = value * value * value;
|
|
427
|
-
if (cubed > 0.008856) {
|
|
428
|
-
return cubed;
|
|
429
|
-
}
|
|
430
|
-
return (value - 16 / 116) / 7.787;
|
|
431
|
-
}
|
|
432
|
-
function rgbToLab(rgb) {
|
|
433
|
-
const rLin = srgbChannelToLinear(rgb[0]);
|
|
434
|
-
const gLin = srgbChannelToLinear(rgb[1]);
|
|
435
|
-
const bLin = srgbChannelToLinear(rgb[2]);
|
|
436
|
-
const x = (rLin * RGB_TO_XYZ.x[0] + gLin * RGB_TO_XYZ.x[1] + bLin * RGB_TO_XYZ.x[2]) * 100;
|
|
437
|
-
const y = (rLin * RGB_TO_XYZ.y[0] + gLin * RGB_TO_XYZ.y[1] + bLin * RGB_TO_XYZ.y[2]) * 100;
|
|
438
|
-
const z = (rLin * RGB_TO_XYZ.z[0] + gLin * RGB_TO_XYZ.z[1] + bLin * RGB_TO_XYZ.z[2]) * 100;
|
|
439
|
-
const xr = xyzToLabHelper(x / REF_X);
|
|
440
|
-
const yr = xyzToLabHelper(y / REF_Y);
|
|
441
|
-
const zr = xyzToLabHelper(z / REF_Z);
|
|
442
|
-
const L = 116 * yr - 16;
|
|
443
|
-
const a = 500 * (xr - yr);
|
|
444
|
-
const b = 200 * (yr - zr);
|
|
445
|
-
return [L, a, b];
|
|
446
|
-
}
|
|
447
|
-
function labToLinearRgb(lab) {
|
|
448
|
-
const [L, a, b] = lab;
|
|
449
|
-
const fy = (L + 16) / 116;
|
|
450
|
-
const fx = fy + a / 500;
|
|
451
|
-
const fz = fy - b / 200;
|
|
452
|
-
const xr = labToXyzHelper(fx);
|
|
453
|
-
const yr = labToXyzHelper(fy);
|
|
454
|
-
const zr = labToXyzHelper(fz);
|
|
455
|
-
const x = (xr * REF_X) / 100;
|
|
456
|
-
const y = (yr * REF_Y) / 100;
|
|
457
|
-
const z = (zr * REF_Z) / 100;
|
|
458
|
-
const rLin = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
459
|
-
const gLin = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
460
|
-
const bLin = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
461
|
-
return [rLin, gLin, bLin];
|
|
462
|
-
}
|
|
463
|
-
function labToRgb(lab) {
|
|
464
|
-
const [rLin, gLin, bLin] = labToLinearRgb(lab);
|
|
465
|
-
const r = Math.round(clamp01(linearChannelToSrgb(rLin)) * 255);
|
|
466
|
-
const g = Math.round(clamp01(linearChannelToSrgb(gLin)) * 255);
|
|
467
|
-
const b = Math.round(clamp01(linearChannelToSrgb(bLin)) * 255);
|
|
468
|
-
return [r, g, b];
|
|
469
|
-
}
|
|
470
|
-
function labToLch(lab) {
|
|
471
|
-
const [L, a, b] = lab;
|
|
472
|
-
const C = Math.sqrt(a * a + b * b);
|
|
473
|
-
const h = Math.atan2(b, a);
|
|
474
|
-
return [L, C, h];
|
|
475
|
-
}
|
|
476
|
-
function lchToLab(lch) {
|
|
477
|
-
const [L, C, h] = lch;
|
|
478
|
-
const a = C * Math.cos(h);
|
|
479
|
-
const b = C * Math.sin(h);
|
|
480
|
-
return [L, a, b];
|
|
481
|
-
}
|
|
482
|
-
function deltaE(a, b) {
|
|
483
|
-
const dL = a[0] - b[0];
|
|
484
|
-
const dA = a[1] - b[1];
|
|
485
|
-
const dB = a[2] - b[2];
|
|
486
|
-
return Math.sqrt(dL * dL + dA * dA + dB * dB);
|
|
487
|
-
}
|
|
488
|
-
//# sourceMappingURL=palette_tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"palette_tools.js","sourceRoot":"","sources":["../../src/palette_tools.ts"],"names":[],"mappings":";;;AAoEA,oDAwCC;AAED,gDAuBC;AAED,0CA6DC;AAED,oCAYC;AAED,sCAKC;AAED,oDAYC;AAED,4CA0EC;AAoBD,wCA0BC;AAjWD,yCAA+E;AAe/E,MAAM,SAAS,GAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEjF,MAAM,OAAO,GAAG,IAAI,CAAC;AACR,QAAA,yBAAyB,GAAG,CAAC,CAAC;AAC3C,MAAM,yBAAyB,GAA+B;IAC5D,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,GAAG;IACR,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;CACf,CAAC;AA4CF,SAAgB,oBAAoB,CAAC,MAAuB;IAC1D,MAAM,OAAO,GAAoB;QAC/B,UAAU,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAU,CAAC,CAAC;QAC7F,QAAQ,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAU,CAAC,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