@bendyline/molen-tooling 0.0.4 → 0.0.6

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.
@@ -682,6 +682,108 @@ Installable tiled-world package: coordinate space, elevation, optional semantic
682
682
  "type": "string",
683
683
  "const": "protomaps-basemap@1",
684
684
  "description": "Attribute profile of the tiles; always 'protomaps-basemap@1' when set."
685
+ },
686
+ "buildingDetail": {
687
+ "type": "object",
688
+ "properties": {
689
+ "source": {
690
+ "anyOf": [
691
+ {
692
+ "type": "object",
693
+ "properties": {
694
+ "kind": {
695
+ "type": "string",
696
+ "const": "pmtiles",
697
+ "description": "Archive kind; always 'pmtiles'."
698
+ },
699
+ "path": {
700
+ "type": "string",
701
+ "minLength": 1,
702
+ "description": "Package-relative path of the PMTiles archive."
703
+ }
704
+ },
705
+ "required": [
706
+ "kind",
707
+ "path"
708
+ ],
709
+ "additionalProperties": false
710
+ },
711
+ {
712
+ "type": "object",
713
+ "properties": {
714
+ "kind": {
715
+ "type": "string",
716
+ "const": "pmtiles",
717
+ "description": "Archive kind; always 'pmtiles'."
718
+ },
719
+ "url": {
720
+ "type": "string",
721
+ "format": "uri",
722
+ "description": "Absolute URL of the PMTiles archive."
723
+ }
724
+ },
725
+ "required": [
726
+ "kind",
727
+ "url"
728
+ ],
729
+ "additionalProperties": false
730
+ },
731
+ {
732
+ "type": "object",
733
+ "properties": {
734
+ "kind": {
735
+ "type": "string",
736
+ "const": "pmtiles-set",
737
+ "description": "Archive kind 'pmtiles-set': a molen/archive-set@1 document naming many archives."
738
+ },
739
+ "path": {
740
+ "type": "string",
741
+ "minLength": 1,
742
+ "description": "Package-relative path of the archive-set document."
743
+ }
744
+ },
745
+ "required": [
746
+ "kind",
747
+ "path"
748
+ ],
749
+ "additionalProperties": false
750
+ },
751
+ {
752
+ "type": "object",
753
+ "properties": {
754
+ "kind": {
755
+ "type": "string",
756
+ "const": "pmtiles-set",
757
+ "description": "Archive kind 'pmtiles-set': a molen/archive-set@1 document naming many archives."
758
+ },
759
+ "url": {
760
+ "type": "string",
761
+ "format": "uri",
762
+ "description": "Absolute URL of the archive-set document."
763
+ }
764
+ },
765
+ "required": [
766
+ "kind",
767
+ "url"
768
+ ],
769
+ "additionalProperties": false
770
+ }
771
+ ],
772
+ "description": "Archive holding finer feature tiles read only for building footprints and places."
773
+ },
774
+ "level": {
775
+ "type": "integer",
776
+ "minimum": 0,
777
+ "maximum": 30,
778
+ "description": "The one level the archive is read at (e.g. 15, where Protomaps keeps every building)."
779
+ }
780
+ },
781
+ "required": [
782
+ "source",
783
+ "level"
784
+ ],
785
+ "additionalProperties": false,
786
+ "description": "Optional finer tiles for buildings: basemaps generalize footprints below their last zoom, so coarser feature tiles take their buildings from this level where it has tiles."
685
787
  }
686
788
  },
687
789
  "required": [
package/dist/index.d.mts CHANGED
@@ -258,6 +258,8 @@ interface ScreenshotInput {
258
258
  terrain?: TerrainShot;
259
259
  /** Background clear color; defaults to sky-blue with terrain, else dark. */
260
260
  clearColor?: string;
261
+ /** Enable the viewer's shared procedural sky/ground reflections for PBR metals and glass. */
262
+ reflections?: boolean;
261
263
  }
262
264
  interface RenderStats {
263
265
  entitiesRendered: number;
@@ -294,6 +296,8 @@ interface AssetShotInput {
294
296
  clipTime?: number;
295
297
  size?: [number, number];
296
298
  clearColor?: string;
299
+ /** Enable the viewer's shared procedural sky/ground reflection environment. */
300
+ reflections?: boolean;
297
301
  outDir: string;
298
302
  }
299
303
  interface AssetShotOutput {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, G as schemaToTsType, H as describeOps, L as exportFrames, N as generateTypes, O as extractContentPack, P as renderTypesModule, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, V as OPS_CATALOG, W as checkScripts, X as stageAssets, Y as ASSET_INDEX_FILE, Z as screenshotAsset, a as lineupBatchDoc, at as findProjectFile, b as diffSnapshots, c as validateAsset, ct as loadSetupLike, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, ft as registerExperiencePlaySchema, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, lt as updateProjectFile, m as getSchemaOp, n as worldgenStats, nt as listAssets, o as loadStylePackFromDisk, ot as loadProject, p as getComponentOp, r as previewWorldgen, rt as assetFileIndex, s as simWatch, st as loadSceneDocument, tt as inspectAsset, u as testTypes, ut as parseExperiencePlayScenario, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates, z as locateDocsRoot } from "./ops-DMGcWoL2.mjs";
1
+ import { A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, G as schemaToTsType, H as describeOps, L as exportFrames, N as generateTypes, O as extractContentPack, P as renderTypesModule, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, V as OPS_CATALOG, W as checkScripts, X as stageAssets, Y as ASSET_INDEX_FILE, Z as screenshotAsset, a as lineupBatchDoc, at as findProjectFile, b as diffSnapshots, c as validateAsset, ct as loadSetupLike, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, ft as registerExperiencePlaySchema, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, lt as updateProjectFile, m as getSchemaOp, n as worldgenStats, nt as listAssets, o as loadStylePackFromDisk, ot as loadProject, p as getComponentOp, r as previewWorldgen, rt as assetFileIndex, s as simWatch, st as loadSceneDocument, tt as inspectAsset, u as testTypes, ut as parseExperiencePlayScenario, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates, z as locateDocsRoot } from "./ops-2qoHKV54.mjs";
2
2
  import { access, copyFile, mkdir, readFile, writeFile } from "node:fs/promises";
3
3
  import { PNG } from "pngjs";
4
4
  import { dirname } from "node:path";
@@ -1,4 +1,4 @@
1
- import { $ as formatPacked, A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, F as previewFigure, H as describeOps, I as listFigurePresets, J as checkSoundbank, K as planAudio, L as exportFrames, M as bakeNetwork, N as generateTypes, O as extractContentPack, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, W as checkScripts, X as stageAssets, Z as screenshotAsset, _ as loadComponentRegistry, b as diffSnapshots, c as validateAsset, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, m as getSchemaOp, n as worldgenStats, nt as listAssets, p as getComponentOp, q as importSound, r as previewWorldgen, tt as inspectAsset, u as testTypes, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates } from "./ops-DMGcWoL2.mjs";
1
+ import { $ as formatPacked, A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, F as previewFigure, H as describeOps, I as listFigurePresets, J as checkSoundbank, K as planAudio, L as exportFrames, M as bakeNetwork, N as generateTypes, O as extractContentPack, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, W as checkScripts, X as stageAssets, Z as screenshotAsset, _ as loadComponentRegistry, b as diffSnapshots, c as validateAsset, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, m as getSchemaOp, n as worldgenStats, nt as listAssets, p as getComponentOp, q as importSound, r as previewWorldgen, tt as inspectAsset, u as testTypes, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates } from "./ops-2qoHKV54.mjs";
2
2
  import { mkdtemp, readFile, rm } from "node:fs/promises";
3
3
  import { join } from "node:path";
4
4
  import { z } from "zod";
@@ -2029,6 +2029,25 @@ async function screenshotAssetImpl(input) {
2029
2029
  } },
2030
2030
  plugins: {}
2031
2031
  };
2032
+ if (input.reflections) keyframe.entities["capture-lighting"] = { environment: {
2033
+ ambient: {
2034
+ sky: "#e3e7eb",
2035
+ ground: "#73756b",
2036
+ intensity: 1.15
2037
+ },
2038
+ sun: {
2039
+ direction: [
2040
+ -8,
2041
+ 14,
2042
+ 9
2043
+ ],
2044
+ color: "#fff1d3",
2045
+ intensity: 2.2
2046
+ },
2047
+ background: input.clearColor ?? "#bfd1df",
2048
+ toneMapping: "agx",
2049
+ exposure: 1.08
2050
+ } };
2032
2051
  const { chromium } = await import("playwright");
2033
2052
  const { browser, server } = await startCaptureResources(() => chromium.launch({ args: [
2034
2053
  "--use-gl=angle",
@@ -2060,6 +2079,7 @@ async function screenshotAssetImpl(input) {
2060
2079
  size,
2061
2080
  terrain: null,
2062
2081
  clearColor: input.clearColor ?? "#181d24",
2082
+ reflections: input.reflections ?? false,
2063
2083
  assetsBaseUrl: `${server.url}/files/`,
2064
2084
  assetsIndex: { [sidecar.id]: modelUrlRel }
2065
2085
  };
@@ -7039,6 +7059,7 @@ async function screenshotSceneImpl(input) {
7039
7059
  size,
7040
7060
  terrain: terrainPayload ?? null,
7041
7061
  clearColor,
7062
+ reflections: input.reflections ?? false,
7042
7063
  assetsBaseUrl: filesRoot !== void 0 ? `${server.url}/files/` : null,
7043
7064
  assetsIndex: assetsIndex ?? null
7044
7065
  };
@@ -8108,7 +8129,7 @@ function worldgenPreviewBounds(output, landmarks = {}) {
8108
8129
  if (positions !== void 0) for (let index = 0; index + 2 < positions.length; index += 3) include(positions[index], positions[index + 1], positions[index + 2]);
8109
8130
  for (const set of output.placements) {
8110
8131
  const model = set.modelRef.startsWith("builtin:") ? generateLandmarkModel(set.modelRef.slice(8), landmarks) : void 0;
8111
- const points = set.modelRef === "builtin:box" || set.modelRef.startsWith("builtin:tree.mapped.") ? [
8132
+ const points = set.modelRef === "builtin:box" || set.modelRef === "builtin:box.gable" || set.modelRef.startsWith("builtin:tree.mapped.") ? [
8112
8133
  -.5,
8113
8134
  0,
8114
8135
  -.5,
@@ -189,21 +189,21 @@
189
189
  }
190
190
  ],
191
191
  "versions": {
192
- "@bendyline/molen-ambient": "0.0.4",
193
- "@bendyline/molen-client": "0.0.4",
194
- "@bendyline/molen-earth": "0.0.4",
195
- "@bendyline/molen-entities": "0.0.4",
196
- "@bendyline/molen-figures": "0.0.4",
197
- "@bendyline/molen-input-react": "0.0.4",
192
+ "@bendyline/molen-ambient": "0.0.6",
193
+ "@bendyline/molen-client": "0.0.6",
194
+ "@bendyline/molen-earth": "0.0.6",
195
+ "@bendyline/molen-entities": "0.0.6",
196
+ "@bendyline/molen-figures": "0.0.6",
197
+ "@bendyline/molen-input-react": "0.0.6",
198
198
  "@bendyline/molen-kernel": "0.0.4",
199
- "@bendyline/molen-materials": "0.0.4",
200
- "@bendyline/molen-pack": "0.0.4",
199
+ "@bendyline/molen-materials": "0.0.5",
200
+ "@bendyline/molen-pack": "0.0.5",
201
201
  "@bendyline/molen-pathfinding": "0.0.4",
202
202
  "@bendyline/molen-physics-rapier": "0.0.4",
203
203
  "@bendyline/molen-schema": "0.0.4",
204
- "@bendyline/molen-terrain": "0.0.4",
205
- "@bendyline/molen-tooling": "0.0.4",
206
- "@bendyline/molen-worldgen": "0.0.4",
207
- "@bendyline/molen-worldgen-earth": "0.0.4"
204
+ "@bendyline/molen-terrain": "0.0.6",
205
+ "@bendyline/molen-tooling": "0.0.6",
206
+ "@bendyline/molen-worldgen": "0.0.6",
207
+ "@bendyline/molen-worldgen-earth": "0.0.6"
208
208
  }
209
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/molen-tooling",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -63,17 +63,17 @@
63
63
  "quickhull3d": "3.1.1",
64
64
  "sharp": "0.35.4",
65
65
  "zod": "^4.6.5",
66
- "@bendyline/molen-ambient": "0.0.4",
67
- "@bendyline/molen-client": "0.0.4",
66
+ "@bendyline/molen-ambient": "0.0.6",
67
+ "@bendyline/molen-figures": "0.0.6",
68
68
  "@bendyline/molen-kernel": "0.0.4",
69
- "@bendyline/molen-pack": "0.0.4",
69
+ "@bendyline/molen-client": "0.0.6",
70
+ "@bendyline/molen-pack": "0.0.5",
71
+ "@bendyline/molen-materials": "0.0.5",
70
72
  "@bendyline/molen-physics-rapier": "0.0.4",
71
- "@bendyline/molen-materials": "0.0.4",
72
73
  "@bendyline/molen-schema": "0.0.4",
73
- "@bendyline/molen-figures": "0.0.4",
74
- "@bendyline/molen-terrain": "0.0.4",
75
- "@bendyline/molen-worldgen": "0.0.4",
76
- "@bendyline/molen-worldgen-earth": "0.0.4"
74
+ "@bendyline/molen-worldgen-earth": "0.0.6",
75
+ "@bendyline/molen-worldgen": "0.0.6",
76
+ "@bendyline/molen-terrain": "0.0.6"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@biomejs/biome": "^2.5.0",