topotopo 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +10 -10
- package/README.md +460 -117
- package/dist/cli.js +327 -147
- package/dist/config.d.ts +48 -0
- package/dist/config.js +170 -0
- package/dist/core/bake.d.ts +14 -3
- package/dist/core/bake.js +153 -4
- package/dist/core/bevel.d.ts +3 -1
- package/dist/core/bevel.js +76 -3
- package/dist/core/decimate.d.ts +65 -0
- package/dist/core/decimate.js +409 -3
- package/dist/core/erosion.d.ts +37 -0
- package/dist/core/erosion.js +41 -1
- package/dist/core/geometry.d.ts +5 -1
- package/dist/core/geometry.js +203 -3
- package/dist/core/heightfield.d.ts +27 -4
- package/dist/core/heightfield.js +54 -16
- package/dist/core/intrinsics.d.ts +7 -0
- package/dist/core/intrinsics.js +94 -0
- package/dist/core/manifold.d.ts +12 -1
- package/dist/core/manifold.js +78 -6
- package/dist/core/materials.d.ts +7 -0
- package/dist/core/materials.js +45 -0
- package/dist/core/noise.d.ts +9 -0
- package/dist/core/noise.js +10 -1
- package/dist/core/polymerge.d.ts +21 -0
- package/dist/core/polymerge.js +327 -0
- package/dist/core/repair.d.ts +2 -0
- package/dist/core/repair.js +2 -0
- package/dist/core/report.d.ts +70 -0
- package/dist/core/report.js +275 -0
- package/dist/core/scene.js +2 -1
- package/dist/core/sha256.d.ts +4 -0
- package/dist/core/sha256.js +69 -0
- package/dist/core/shapes.d.ts +3 -0
- package/dist/core/shapes.js +34 -0
- package/dist/core/snippet-lib.d.ts +14 -1
- package/dist/core/snippet-lib.js +39 -13
- package/dist/core/tangents.d.ts +2 -0
- package/dist/core/tangents.js +5 -1
- package/dist/core/texnoise.d.ts +6 -1
- package/dist/core/texnoise.js +6 -2
- package/dist/core/texsdf.d.ts +131 -0
- package/dist/core/texsdf.js +637 -0
- package/dist/core/texture.d.ts +163 -9
- package/dist/core/texture.js +844 -20
- package/dist/core/topology.d.ts +10 -0
- package/dist/core/topology.js +168 -0
- package/dist/core/unwrap.d.ts +72 -0
- package/dist/core/unwrap.js +800 -0
- package/dist/core/usercode.d.ts +27 -0
- package/dist/core/usercode.js +87 -0
- package/dist/core/uv.d.ts +4 -18
- package/dist/core/uv.js +35 -188
- package/dist/core/uvislands.d.ts +62 -0
- package/dist/core/uvislands.js +574 -0
- package/dist/core/uvoverlap.d.ts +58 -0
- package/dist/core/uvoverlap.js +220 -0
- package/dist/core/uvpack.d.ts +64 -0
- package/dist/core/uvpack.js +628 -0
- package/dist/core/uvreport.d.ts +61 -0
- package/dist/core/uvreport.js +207 -143
- package/dist/core/wrangle.d.ts +6 -1
- package/dist/core/wrangle.js +27 -16
- package/dist/core/xatlas.d.ts +16 -1
- package/dist/core/xatlas.js +66 -62
- package/dist/engines.d.ts +63 -0
- package/dist/engines.js +180 -0
- package/dist/explain.d.ts +4 -3
- package/dist/explain.js +129 -12
- package/dist/graph/engine.d.ts +92 -29
- package/dist/graph/engine.js +298 -148
- package/dist/graph/expr.d.ts +6 -3
- package/dist/graph/expr.js +18 -8
- package/dist/graph/outputs.d.ts +23 -0
- package/dist/graph/outputs.js +41 -0
- package/dist/graph/packages.d.ts +72 -0
- package/dist/graph/packages.js +261 -0
- package/dist/graph/parallel.d.ts +3 -1
- package/dist/graph/parallel.js +4 -1
- package/dist/graph/params.d.ts +6 -0
- package/dist/graph/params.js +34 -7
- package/dist/graph/scope.d.ts +55 -0
- package/dist/graph/scope.js +14 -0
- package/dist/graph/types.d.ts +75 -12
- package/dist/graph/types.js +4 -2
- package/dist/graph/vars.d.ts +16 -0
- package/dist/graph/vars.js +80 -0
- package/dist/host/artifacts.d.ts +10 -1
- package/dist/host/artifacts.js +37 -6
- package/dist/host/cook.d.ts +241 -0
- package/dist/host/cook.js +844 -0
- package/dist/host/export-targets.d.ts +42 -5
- package/dist/host/export-targets.js +72 -13
- package/dist/host/godot-commands.d.ts +4 -0
- package/dist/host/godot-commands.js +21 -0
- package/dist/host/godot.d.ts +183 -0
- package/dist/host/godot.js +916 -0
- package/dist/host/node.d.ts +12 -7
- package/dist/host/node.js +27 -9
- package/dist/host/pool.js +51 -2
- package/dist/host/sidecars.d.ts +8 -0
- package/dist/host/sidecars.js +50 -0
- package/dist/host/types.d.ts +19 -6
- package/dist/host/version.d.ts +1 -0
- package/dist/host/version.js +3 -0
- package/dist/host/worker.js +5 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/inspect.d.ts +80 -2
- package/dist/inspect.js +265 -30
- package/dist/io/common.d.ts +25 -5
- package/dist/io/export.js +2 -1
- package/dist/io/files.d.ts +23 -4
- package/dist/io/files.js +60 -8
- package/dist/io/gltf.js +134 -47
- package/dist/io/heightmap.d.ts +3 -0
- package/dist/io/heightmap.js +1 -0
- package/dist/io/import.js +10 -0
- package/dist/io/inspect-scene.d.ts +55 -0
- package/dist/io/inspect-scene.js +155 -0
- package/dist/io/kinds.d.ts +81 -0
- package/dist/io/kinds.js +163 -0
- package/dist/io/points.d.ts +2 -1
- package/dist/io/points.js +3 -1
- package/dist/io/sidecars.d.ts +24 -0
- package/dist/io/sidecars.js +57 -0
- package/dist/io/source.d.ts +65 -0
- package/dist/io/source.js +112 -0
- package/dist/io/targets.d.ts +47 -3
- package/dist/io/targets.js +148 -13
- package/dist/io/textures.js +21 -1
- package/dist/io/unreal.js +5 -1
- package/dist/mcp/docs.d.ts +10 -1
- package/dist/mcp/docs.js +786 -143
- package/dist/mcp/inputs.d.ts +12 -5
- package/dist/mcp/inputs.js +50 -13
- package/dist/mcp/server.js +56 -27
- package/dist/mcp/tools.d.ts +14 -7
- package/dist/mcp/tools.js +198 -103
- package/dist/mcp/verify.d.ts +2 -2
- package/dist/mcp/verify.js +1 -1
- package/dist/mcp/workspace.d.ts +15 -0
- package/dist/mcp/workspace.js +349 -0
- package/dist/nodes/attributes.js +198 -1
- package/dist/nodes/bake.js +151 -47
- package/dist/nodes/beam.d.ts +1 -0
- package/dist/nodes/beam.js +201 -0
- package/dist/nodes/bevel.js +51 -3
- package/dist/nodes/cloth.js +2 -0
- package/dist/nodes/code.js +21 -9
- package/dist/nodes/curves.js +433 -93
- package/dist/nodes/flow.js +53 -33
- package/dist/nodes/generate.js +12 -38
- package/dist/nodes/heightfield.js +248 -77
- package/dist/nodes/imageops.js +16 -19
- package/dist/nodes/index.d.ts +1 -0
- package/dist/nodes/index.js +1 -0
- package/dist/nodes/material.js +89 -24
- package/dist/nodes/measure.js +43 -17
- package/dist/nodes/particles.js +2 -0
- package/dist/nodes/pcg.js +6 -5
- package/dist/nodes/procedural.js +4 -3
- package/dist/nodes/remesh.js +71 -15
- package/dist/nodes/scene.js +4 -2
- package/dist/nodes/sdf.js +10 -5
- package/dist/nodes/solid.js +20 -5
- package/dist/nodes/splines.d.ts +15 -1
- package/dist/nodes/splines.js +112 -105
- package/dist/nodes/texture.d.ts +21 -6
- package/dist/nodes/texture.js +1318 -185
- package/dist/nodes/topology.d.ts +7 -0
- package/dist/nodes/topology.js +133 -6
- package/dist/nodes/transform.js +6 -2
- package/dist/nodes/uv.js +192 -174
- package/dist/nodes/wasmcall.js +5 -1
- package/dist/open.d.ts +19 -0
- package/dist/open.js +12 -0
- package/dist/package.d.ts +288 -0
- package/dist/package.js +772 -0
- package/dist/packages/check.d.ts +32 -0
- package/dist/packages/check.js +169 -0
- package/dist/packages/commands.d.ts +57 -0
- package/dist/packages/commands.js +537 -0
- package/dist/packages/registry.d.ts +796 -0
- package/dist/packages/registry.js +2998 -0
- package/dist/packages/update.d.ts +124 -0
- package/dist/packages/update.js +476 -0
- package/dist/render/options.d.ts +2 -0
- package/dist/render/options.js +57 -5
- package/dist/render/preview.d.ts +17 -4
- package/dist/render/preview.js +6 -4
- package/dist/render/raster.d.ts +74 -5
- package/dist/render/raster.js +527 -143
- package/dist/render/texview.d.ts +6 -0
- package/dist/render/texview.js +27 -0
- package/dist/scan.d.ts +61 -0
- package/dist/scan.js +228 -0
- package/dist/session.d.ts +311 -0
- package/dist/session.js +849 -0
- package/dist/viewer/app/api.js +48 -6
- package/dist/viewer/app/cooking.js +78 -0
- package/dist/viewer/app/embed.js +27 -7
- package/dist/viewer/app/export-popover.js +118 -16
- package/dist/viewer/app/grid.js +5 -1
- package/dist/viewer/app/guides.js +122 -0
- package/dist/viewer/app/keymap.js +6 -3
- package/dist/viewer/app/layers.js +4 -4
- package/dist/viewer/app/main.js +185 -52
- package/dist/viewer/app/markers.js +60 -0
- package/dist/viewer/app/outliner.js +72 -27
- package/dist/viewer/app/output-info.js +45 -0
- package/dist/viewer/app/outputs.css +147 -8
- package/dist/viewer/app/outputs.js +168 -54
- package/dist/viewer/app/packages.js +614 -0
- package/dist/viewer/app/props.js +176 -52
- package/dist/viewer/app/scene.js +30 -5
- package/dist/viewer/app/select.js +4 -3
- package/dist/viewer/app/status.js +12 -15
- package/dist/viewer/app/style.css +65 -7
- package/dist/viewer/app/vars.js +47 -0
- package/dist/viewer/app/welcome.js +72 -0
- package/dist/viewer/graph-file.d.ts +62 -0
- package/dist/viewer/graph-file.js +175 -0
- package/dist/viewer/index.html +23 -10
- package/dist/viewer/json-edit.d.ts +13 -0
- package/dist/viewer/json-edit.js +274 -0
- package/dist/viewer/outputs.d.ts +49 -5
- package/dist/viewer/outputs.js +264 -56
- package/dist/viewer/packages.d.ts +121 -0
- package/dist/viewer/packages.js +584 -0
- package/dist/viewer/server.d.ts +14 -9
- package/dist/viewer/server.js +266 -28
- package/dist/web/app/web.css +419 -0
- package/dist/web/app/web.js +188 -0
- package/dist/{gallery → web}/bake.d.ts +4 -4
- package/dist/{gallery → web}/bake.js +24 -15
- package/dist/web/folder-page.d.ts +101 -0
- package/dist/web/folder-page.js +146 -0
- package/dist/web/folders.d.ts +280 -0
- package/dist/web/folders.js +970 -0
- package/dist/web/library.d.ts +91 -0
- package/dist/web/library.js +228 -0
- package/dist/web/markdown.d.ts +45 -0
- package/dist/web/markdown.js +677 -0
- package/dist/web/pages.d.ts +258 -0
- package/dist/web/pages.js +301 -0
- package/dist/web/server.d.ts +24 -0
- package/dist/web/server.js +1068 -0
- package/dist/workspace.d.ts +88 -118
- package/dist/workspace.js +358 -460
- package/integrations/godot/addons/topotopo/LICENSE +202 -0
- package/integrations/godot/addons/topotopo/README.md +57 -0
- package/integrations/godot/addons/topotopo/context_menu.gd +43 -0
- package/integrations/godot/addons/topotopo/dock.gd +266 -0
- package/integrations/godot/addons/topotopo/dock.tscn +72 -0
- package/integrations/godot/addons/topotopo/export_filter.gd +72 -0
- package/integrations/godot/addons/topotopo/gltf_instancing.gd +131 -0
- package/integrations/godot/addons/topotopo/icons/topotopo.svg +1 -0
- package/integrations/godot/addons/topotopo/inspector.gd +38 -0
- package/integrations/godot/addons/topotopo/instances_post_import.gd +111 -0
- package/integrations/godot/addons/topotopo/package.gd +23 -0
- package/integrations/godot/addons/topotopo/package_importer.gd +187 -0
- package/integrations/godot/addons/topotopo/plugin.cfg +7 -0
- package/integrations/godot/addons/topotopo/plugin.gd +970 -0
- package/integrations/godot/addons/topotopo/record.gd +435 -0
- package/integrations/godot/addons/topotopo/runner.gd +458 -0
- package/integrations/godot/addons/topotopo/tools/check.gd +42 -0
- package/integrations/godot/addons/topotopo/watcher.gd +199 -0
- package/kernels/pkg/README.md +2 -1
- package/kernels/pkg-simd/README.md +2 -1
- package/library/architecture/versions/1.0/architecture.topo +12 -0
- package/{shelf → library/architecture/versions/1.0/graphs}/arch.json +3 -3
- package/{shelf → library/architecture/versions/1.0/graphs}/beam_truss.json +6 -6
- package/{shelf → library/architecture/versions/1.0/graphs}/brick_wall.json +8 -8
- package/{shelf → library/architecture/versions/1.0/graphs}/door_frame.json +3 -3
- package/{shelf → library/architecture/versions/1.0/graphs}/hex_grid_floor.json +3 -2
- package/{shelf → library/architecture/versions/1.0/graphs}/house.json +8 -8
- package/library/architecture/versions/1.0/graphs/lineup.json +42 -0
- package/{shelf → library/architecture/versions/1.0/graphs}/pillar.json +3 -2
- package/{shelf → library/architecture/versions/1.0/graphs}/railing.json +5 -5
- package/{shelf → library/architecture/versions/1.0/graphs}/roof_gable.json +2 -2
- package/{shelf → library/architecture/versions/1.0/graphs}/roof_hip.json +2 -2
- package/{shelf → library/architecture/versions/1.0/graphs}/roof_skeleton.json +2 -1
- package/{shelf → library/architecture/versions/1.0/graphs}/scaffold.json +4 -4
- package/{shelf → library/architecture/versions/1.0/graphs}/spiral_stairs.json +3 -2
- package/{shelf → library/architecture/versions/1.0/graphs}/stairs.json +6 -6
- package/{shelf → library/architecture/versions/1.0/graphs}/tile_floor.json +3 -2
- package/{shelf → library/architecture/versions/1.0/graphs}/wall_segment.json +10 -10
- package/{shelf → library/architecture/versions/1.0/graphs}/window_frame.json +2 -2
- package/library/architecture/versions/1.0/version.json +1119 -0
- package/{shelf → library/nature/versions/1.0/graphs}/bush.json +2 -2
- package/{shelf → library/nature/versions/1.0/graphs}/cliff_block.json +4 -3
- package/{shelf → library/nature/versions/1.0/graphs}/forest_patch.json +5 -5
- package/{shelf → library/nature/versions/1.0/graphs}/grass_clumps.json +2 -2
- package/library/nature/versions/1.0/graphs/lineup.json +24 -0
- package/{shelf → library/nature/versions/1.0/graphs}/log.json +6 -6
- package/{shelf → library/nature/versions/1.0/graphs}/rock.json +5 -4
- package/{shelf → library/nature/versions/1.0/graphs}/scatter_rocks.json +5 -5
- package/{shelf → library/nature/versions/1.0/graphs}/tree_lowpoly.json +3 -2
- package/library/nature/versions/1.0/nature.topo +12 -0
- package/library/nature/versions/1.0/version.json +534 -0
- package/{shelf → library/props/versions/1.0/graphs}/barrel.json +5 -4
- package/{shelf → library/props/versions/1.0/graphs}/crate.json +3 -3
- package/library/props/versions/1.0/graphs/lineup.json +18 -0
- package/{shelf → library/props/versions/1.0/graphs}/pallet.json +4 -3
- package/{shelf → library/props/versions/1.0/graphs}/pipe_run.json +3 -3
- package/{shelf → library/props/versions/1.0/graphs}/sandbag_wall.json +5 -5
- package/library/props/versions/1.0/props.topo +12 -0
- package/library/props/versions/1.0/version.json +336 -0
- package/{shelf → library/street/versions/1.0/graphs}/bench.json +5 -5
- package/{shelf → library/street/versions/1.0/graphs}/bollard.json +2 -1
- package/{shelf → library/street/versions/1.0/graphs}/cable.json +4 -4
- package/{shelf → library/street/versions/1.0/graphs}/fence.json +7 -7
- package/{shelf → library/street/versions/1.0/graphs}/lamp_post.json +2 -2
- package/library/street/versions/1.0/graphs/lineup.json +22 -0
- package/{shelf → library/street/versions/1.0/graphs}/road_strip.json +2 -2
- package/{shelf → library/street/versions/1.0/graphs}/sign_post.json +1 -1
- package/library/street/versions/1.0/street.topo +12 -0
- package/library/street/versions/1.0/version.json +421 -0
- package/package.json +13 -8
- package/dist/gallery/app/gallery.css +0 -100
- package/dist/gallery/app/gallery.js +0 -80
- package/dist/gallery/cli.d.ts +0 -4
- package/dist/gallery/cli.js +0 -157
- package/dist/gallery/library.d.ts +0 -124
- package/dist/gallery/library.js +0 -366
- package/dist/gallery/pages.d.ts +0 -94
- package/dist/gallery/pages.js +0 -148
- package/dist/gallery/server.d.ts +0 -21
- package/dist/gallery/server.js +0 -391
- package/dist/graph/migrate.d.ts +0 -23
- package/dist/graph/migrate.js +0 -58
- package/dist/mcp/library.d.ts +0 -12
- package/dist/mcp/library.js +0 -159
- package/shelf/index.json +0 -190
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"graph": "lineup",
|
|
3
|
+
"bake": {},
|
|
4
|
+
"title": "Street",
|
|
5
|
+
"description": "TopoTopo's street package: roads with kerbs and sidewalks, lamp posts, bollards, benches, street signs, fences and hanging cables.",
|
|
6
|
+
"tags": [
|
|
7
|
+
"built-in"
|
|
8
|
+
],
|
|
9
|
+
"links": [],
|
|
10
|
+
"created": "2026-10-28",
|
|
11
|
+
"name": "topotopo/street"
|
|
12
|
+
}
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
{
|
|
2
|
+
"package": "topotopo/street",
|
|
3
|
+
"version": "1.0",
|
|
4
|
+
"note": "first version",
|
|
5
|
+
"published": "2026-10-30T12:01:50.950Z",
|
|
6
|
+
"big": false,
|
|
7
|
+
"hash": "c691773d575eb1a5653ba4ec43cd35a761ed26685272700b9e5e1586ef309c3b",
|
|
8
|
+
"outputs": {
|
|
9
|
+
"bench": {
|
|
10
|
+
"graph": "bench",
|
|
11
|
+
"node": "out",
|
|
12
|
+
"label": "Bench",
|
|
13
|
+
"kind": "mesh",
|
|
14
|
+
"tags": [
|
|
15
|
+
"bench",
|
|
16
|
+
"seating",
|
|
17
|
+
"park",
|
|
18
|
+
"street-furniture"
|
|
19
|
+
],
|
|
20
|
+
"description": "Park bench along X: wooden seat slats and an optional reclined backrest on cast-iron side frames (two, or three on long benches). The seat faces +Z. Pivot at the centre of the base. Pieces: bench_slats (wood), bench_frames (metal_dark). Every piece is closed.",
|
|
21
|
+
"sliders": {
|
|
22
|
+
"bench_length": {
|
|
23
|
+
"type": "float",
|
|
24
|
+
"default": 1.8,
|
|
25
|
+
"min": 0.6,
|
|
26
|
+
"max": 5,
|
|
27
|
+
"desc": "length along X (m)"
|
|
28
|
+
},
|
|
29
|
+
"seat_height": {
|
|
30
|
+
"type": "float",
|
|
31
|
+
"default": 0.45,
|
|
32
|
+
"min": 0.25,
|
|
33
|
+
"max": 0.8,
|
|
34
|
+
"desc": "seat height (m)"
|
|
35
|
+
},
|
|
36
|
+
"depth": {
|
|
37
|
+
"type": "float",
|
|
38
|
+
"default": 0.45,
|
|
39
|
+
"min": 0.25,
|
|
40
|
+
"max": 0.8,
|
|
41
|
+
"desc": "seat depth along Z (m)"
|
|
42
|
+
},
|
|
43
|
+
"slats": {
|
|
44
|
+
"type": "int",
|
|
45
|
+
"default": 5,
|
|
46
|
+
"min": 2,
|
|
47
|
+
"max": 10,
|
|
48
|
+
"desc": "seat slats"
|
|
49
|
+
},
|
|
50
|
+
"backrest": {
|
|
51
|
+
"type": "bool",
|
|
52
|
+
"default": true,
|
|
53
|
+
"desc": "add the backrest"
|
|
54
|
+
},
|
|
55
|
+
"seed": {
|
|
56
|
+
"type": "int",
|
|
57
|
+
"default": 0,
|
|
58
|
+
"min": 0,
|
|
59
|
+
"max": 1000,
|
|
60
|
+
"desc": "random seed of the slat tint"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"inputs": []
|
|
64
|
+
},
|
|
65
|
+
"bollard": {
|
|
66
|
+
"graph": "bollard",
|
|
67
|
+
"node": "out",
|
|
68
|
+
"label": "Bollard",
|
|
69
|
+
"kind": "mesh",
|
|
70
|
+
"tags": [
|
|
71
|
+
"bollard",
|
|
72
|
+
"barrier",
|
|
73
|
+
"street-furniture"
|
|
74
|
+
],
|
|
75
|
+
"description": "Street bollard: a round post with a domed top or a square post with a pyramid cap, an optional reflective band and a base ring. Pivot at the centre of the base. Pieces: bollard_body (metal_dark), bollard_band (reflective). Every piece is closed.",
|
|
76
|
+
"sliders": {
|
|
77
|
+
"height": {
|
|
78
|
+
"type": "float",
|
|
79
|
+
"default": 0.9,
|
|
80
|
+
"min": 0.3,
|
|
81
|
+
"max": 2,
|
|
82
|
+
"desc": "height (m)"
|
|
83
|
+
},
|
|
84
|
+
"radius": {
|
|
85
|
+
"type": "float",
|
|
86
|
+
"default": 0.1,
|
|
87
|
+
"min": 0.03,
|
|
88
|
+
"max": 0.4,
|
|
89
|
+
"desc": "post radius (half width for square) (m)"
|
|
90
|
+
},
|
|
91
|
+
"style": {
|
|
92
|
+
"type": "enum",
|
|
93
|
+
"default": "round",
|
|
94
|
+
"options": [
|
|
95
|
+
"round",
|
|
96
|
+
"square"
|
|
97
|
+
],
|
|
98
|
+
"desc": "post section"
|
|
99
|
+
},
|
|
100
|
+
"band": {
|
|
101
|
+
"type": "bool",
|
|
102
|
+
"default": true,
|
|
103
|
+
"desc": "reflective band near the top"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"inputs": []
|
|
107
|
+
},
|
|
108
|
+
"cable": {
|
|
109
|
+
"graph": "cable",
|
|
110
|
+
"node": "out",
|
|
111
|
+
"label": "Cable",
|
|
112
|
+
"kind": "mesh",
|
|
113
|
+
"tags": [
|
|
114
|
+
"cable",
|
|
115
|
+
"power-line",
|
|
116
|
+
"utility-pole",
|
|
117
|
+
"street-furniture"
|
|
118
|
+
],
|
|
119
|
+
"description": "Hanging cable between two points: a catenary that sags by `sag` below the straight line at mid-span, swept as a tube, with optional wooden poles (with a cross arm and insulators) standing on y = 0 under the ends. With the default end points the pivot is the foot of the first pole. Pieces: cable (rubber), cable_poles (wood_dark), cable_insulators (ceramic). Every piece is closed.",
|
|
120
|
+
"sliders": {
|
|
121
|
+
"start": {
|
|
122
|
+
"type": "vec3",
|
|
123
|
+
"default": [
|
|
124
|
+
0,
|
|
125
|
+
5,
|
|
126
|
+
0
|
|
127
|
+
],
|
|
128
|
+
"desc": "first end point (m)"
|
|
129
|
+
},
|
|
130
|
+
"end": {
|
|
131
|
+
"type": "vec3",
|
|
132
|
+
"default": [
|
|
133
|
+
10,
|
|
134
|
+
4.6,
|
|
135
|
+
0
|
|
136
|
+
],
|
|
137
|
+
"desc": "second end point (m)"
|
|
138
|
+
},
|
|
139
|
+
"sag": {
|
|
140
|
+
"type": "float",
|
|
141
|
+
"default": 0.8,
|
|
142
|
+
"min": 0,
|
|
143
|
+
"max": 10,
|
|
144
|
+
"desc": "drop below the straight line at mid-span (m)"
|
|
145
|
+
},
|
|
146
|
+
"radius": {
|
|
147
|
+
"type": "float",
|
|
148
|
+
"default": 0.015,
|
|
149
|
+
"min": 0.003,
|
|
150
|
+
"max": 0.2,
|
|
151
|
+
"desc": "cable radius (m)"
|
|
152
|
+
},
|
|
153
|
+
"segments": {
|
|
154
|
+
"type": "int",
|
|
155
|
+
"default": 32,
|
|
156
|
+
"min": 2,
|
|
157
|
+
"max": 200,
|
|
158
|
+
"desc": "segments along the cable"
|
|
159
|
+
},
|
|
160
|
+
"poles": {
|
|
161
|
+
"type": "bool",
|
|
162
|
+
"default": true,
|
|
163
|
+
"desc": "poles under both ends"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"inputs": []
|
|
167
|
+
},
|
|
168
|
+
"fence": {
|
|
169
|
+
"graph": "fence",
|
|
170
|
+
"node": "out",
|
|
171
|
+
"label": "Fence",
|
|
172
|
+
"kind": "mesh",
|
|
173
|
+
"tags": [
|
|
174
|
+
"fence",
|
|
175
|
+
"barrier",
|
|
176
|
+
"garden",
|
|
177
|
+
"along-curve"
|
|
178
|
+
],
|
|
179
|
+
"description": "Fence along a curve (input 0; without one, a straight run of `run_length` along +X from the origin) in three styles: picket (white pointed pickets on two rails), plank (horizontal boards) and rail (three ranch rails). Posts at even spacing including both ends. Sits on the curve (pivot = the curve). Pieces: fence_posts, fence_infill (paint_white, wood or wood_dark by style).",
|
|
180
|
+
"sliders": {
|
|
181
|
+
"run_length": {
|
|
182
|
+
"type": "float",
|
|
183
|
+
"default": 6,
|
|
184
|
+
"min": 0.5,
|
|
185
|
+
"max": 40,
|
|
186
|
+
"desc": "run length along +X when no curve is connected (m)"
|
|
187
|
+
},
|
|
188
|
+
"height": {
|
|
189
|
+
"type": "float",
|
|
190
|
+
"default": 1.1,
|
|
191
|
+
"min": 0.4,
|
|
192
|
+
"max": 2.5,
|
|
193
|
+
"desc": "fence height (m)"
|
|
194
|
+
},
|
|
195
|
+
"style": {
|
|
196
|
+
"type": "enum",
|
|
197
|
+
"default": "picket",
|
|
198
|
+
"options": [
|
|
199
|
+
"picket",
|
|
200
|
+
"plank",
|
|
201
|
+
"rail"
|
|
202
|
+
],
|
|
203
|
+
"desc": "infill style"
|
|
204
|
+
},
|
|
205
|
+
"post_spacing": {
|
|
206
|
+
"type": "float",
|
|
207
|
+
"default": 2,
|
|
208
|
+
"min": 0.5,
|
|
209
|
+
"max": 5,
|
|
210
|
+
"desc": "maximum distance between posts (m)"
|
|
211
|
+
},
|
|
212
|
+
"picket_spacing": {
|
|
213
|
+
"type": "float",
|
|
214
|
+
"default": 0.15,
|
|
215
|
+
"min": 0.08,
|
|
216
|
+
"max": 0.5,
|
|
217
|
+
"desc": "picket style: distance between pickets (m)"
|
|
218
|
+
},
|
|
219
|
+
"seed": {
|
|
220
|
+
"type": "int",
|
|
221
|
+
"default": 0,
|
|
222
|
+
"min": 0,
|
|
223
|
+
"max": 1000,
|
|
224
|
+
"desc": "random seed of the board tint"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"inputs": [
|
|
228
|
+
{
|
|
229
|
+
"index": 0,
|
|
230
|
+
"label": "curve to follow (polyline); optional"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"lamp_post": {
|
|
235
|
+
"graph": "lamp_post",
|
|
236
|
+
"node": "out",
|
|
237
|
+
"label": "Lamp post",
|
|
238
|
+
"kind": "mesh",
|
|
239
|
+
"tags": [
|
|
240
|
+
"lamp",
|
|
241
|
+
"street-light",
|
|
242
|
+
"lighting",
|
|
243
|
+
"street-furniture"
|
|
244
|
+
],
|
|
245
|
+
"description": "Street lamp: a tapered pole on a flared base with 1–4 curved arms carrying shades and glowing glass (arms 0 = a lantern on top of the pole). The first arm points along +X. Pivot at the centre of the base. Pieces: lamp_pole, lamp_arms, lamp_heads (metal_dark), lamp_glass (lamp_glass, emissive). Every piece is closed.",
|
|
246
|
+
"sliders": {
|
|
247
|
+
"height": {
|
|
248
|
+
"type": "float",
|
|
249
|
+
"default": 4.5,
|
|
250
|
+
"min": 1.5,
|
|
251
|
+
"max": 12,
|
|
252
|
+
"desc": "height of the lamp heads (m)"
|
|
253
|
+
},
|
|
254
|
+
"arm_length": {
|
|
255
|
+
"type": "float",
|
|
256
|
+
"default": 1,
|
|
257
|
+
"min": 0.2,
|
|
258
|
+
"max": 4,
|
|
259
|
+
"desc": "horizontal reach of each arm (m)"
|
|
260
|
+
},
|
|
261
|
+
"arms": {
|
|
262
|
+
"type": "int",
|
|
263
|
+
"default": 1,
|
|
264
|
+
"min": 0,
|
|
265
|
+
"max": 4,
|
|
266
|
+
"desc": "number of arms (0 = lantern on top)"
|
|
267
|
+
},
|
|
268
|
+
"pole_radius": {
|
|
269
|
+
"type": "float",
|
|
270
|
+
"default": 0.07,
|
|
271
|
+
"min": 0.03,
|
|
272
|
+
"max": 0.3,
|
|
273
|
+
"desc": "pole radius at the base (m)"
|
|
274
|
+
},
|
|
275
|
+
"lamp_size": {
|
|
276
|
+
"type": "float",
|
|
277
|
+
"default": 0.4,
|
|
278
|
+
"min": 0.15,
|
|
279
|
+
"max": 1.2,
|
|
280
|
+
"desc": "shade diameter (m)"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"inputs": []
|
|
284
|
+
},
|
|
285
|
+
"lineup": {
|
|
286
|
+
"graph": "lineup",
|
|
287
|
+
"node": "lineup",
|
|
288
|
+
"label": "Street line-up",
|
|
289
|
+
"kind": "mesh",
|
|
290
|
+
"tags": [
|
|
291
|
+
"lineup",
|
|
292
|
+
"street"
|
|
293
|
+
],
|
|
294
|
+
"description": "TopoTopo's street package, its 7 outputs side by side at their defaults. The package's default output and its preview, from bench to sign_post along +X, 1 m apart.",
|
|
295
|
+
"sliders": {},
|
|
296
|
+
"inputs": []
|
|
297
|
+
},
|
|
298
|
+
"road_strip": {
|
|
299
|
+
"graph": "road_strip",
|
|
300
|
+
"node": "out",
|
|
301
|
+
"label": "Road",
|
|
302
|
+
"kind": "mesh",
|
|
303
|
+
"tags": [
|
|
304
|
+
"road",
|
|
305
|
+
"street",
|
|
306
|
+
"asphalt",
|
|
307
|
+
"sidewalk",
|
|
308
|
+
"along-curve"
|
|
309
|
+
],
|
|
310
|
+
"description": "Road along a curve (input 0; without one, a gentle 24 m S-curve along X): an asphalt ribbon of `width` centred on the curve with solid white edge lines, dashed lane lines between `lanes` lanes, and kerbs with sidewalks on both sides. Follows the curve's height (drape the curve on a terrain first). Pivot = the curve. Pieces: road_surface (asphalt), road_markings (road_paint), road_kerbs (concrete), road_sidewalks (paving).",
|
|
311
|
+
"sliders": {
|
|
312
|
+
"width": {
|
|
313
|
+
"type": "float",
|
|
314
|
+
"default": 7,
|
|
315
|
+
"min": 2,
|
|
316
|
+
"max": 30,
|
|
317
|
+
"desc": "asphalt width (m)"
|
|
318
|
+
},
|
|
319
|
+
"lanes": {
|
|
320
|
+
"type": "int",
|
|
321
|
+
"default": 2,
|
|
322
|
+
"min": 1,
|
|
323
|
+
"max": 8,
|
|
324
|
+
"desc": "number of lanes (dashed lines between them)"
|
|
325
|
+
},
|
|
326
|
+
"edge_lines": {
|
|
327
|
+
"type": "bool",
|
|
328
|
+
"default": true,
|
|
329
|
+
"desc": "solid lines 0.2 m inside both edges"
|
|
330
|
+
},
|
|
331
|
+
"dash_length": {
|
|
332
|
+
"type": "float",
|
|
333
|
+
"default": 3,
|
|
334
|
+
"min": 0.5,
|
|
335
|
+
"max": 10,
|
|
336
|
+
"desc": "length of the lane dashes (gaps are as long) (m)"
|
|
337
|
+
},
|
|
338
|
+
"kerb_height": {
|
|
339
|
+
"type": "float",
|
|
340
|
+
"default": 0.15,
|
|
341
|
+
"min": 0,
|
|
342
|
+
"max": 0.4,
|
|
343
|
+
"desc": "kerb height above the asphalt (m); 0 = no kerbs or sidewalks"
|
|
344
|
+
},
|
|
345
|
+
"sidewalk_width": {
|
|
346
|
+
"type": "float",
|
|
347
|
+
"default": 2,
|
|
348
|
+
"min": 0,
|
|
349
|
+
"max": 8,
|
|
350
|
+
"desc": "sidewalk width behind each kerb (m); 0 = none"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"inputs": [
|
|
354
|
+
{
|
|
355
|
+
"index": 0,
|
|
356
|
+
"label": "road centre line (polyline); optional"
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
"sign_post": {
|
|
361
|
+
"graph": "sign_post",
|
|
362
|
+
"node": "out",
|
|
363
|
+
"label": "Street sign",
|
|
364
|
+
"kind": "mesh",
|
|
365
|
+
"tags": [
|
|
366
|
+
"sign",
|
|
367
|
+
"street-sign",
|
|
368
|
+
"text",
|
|
369
|
+
"street-furniture"
|
|
370
|
+
],
|
|
371
|
+
"description": "Street name sign: a post with a ball cap and a green blade (two crossed blades for a corner) carrying raised white lettering on both faces, scaled to fit. The first blade faces ±Z. Pivot at the centre of the base. Pieces: sign_post (galvanized), sign_panel (sign_green), sign_text (sign_white). Every piece is closed.",
|
|
372
|
+
"sliders": {
|
|
373
|
+
"height": {
|
|
374
|
+
"type": "float",
|
|
375
|
+
"default": 2.8,
|
|
376
|
+
"min": 1,
|
|
377
|
+
"max": 6,
|
|
378
|
+
"desc": "post height (m)"
|
|
379
|
+
},
|
|
380
|
+
"panel_width": {
|
|
381
|
+
"type": "float",
|
|
382
|
+
"default": 0.9,
|
|
383
|
+
"min": 0.3,
|
|
384
|
+
"max": 3,
|
|
385
|
+
"desc": "blade width (m)"
|
|
386
|
+
},
|
|
387
|
+
"panel_height": {
|
|
388
|
+
"type": "float",
|
|
389
|
+
"default": 0.22,
|
|
390
|
+
"min": 0.08,
|
|
391
|
+
"max": 1,
|
|
392
|
+
"desc": "blade height (m)"
|
|
393
|
+
},
|
|
394
|
+
"text": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"default": "MAIN ST",
|
|
397
|
+
"desc": "lettering on the first blade"
|
|
398
|
+
},
|
|
399
|
+
"cross_text": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"default": "1ST AVE",
|
|
402
|
+
"desc": "lettering on the second blade (empty = one blade)"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"inputs": []
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"default": {
|
|
409
|
+
"graph": "lineup",
|
|
410
|
+
"node": "lineup",
|
|
411
|
+
"kind": "mesh",
|
|
412
|
+
"tags": [
|
|
413
|
+
"lineup",
|
|
414
|
+
"street"
|
|
415
|
+
],
|
|
416
|
+
"description": "TopoTopo's street package, its 7 outputs side by side at their defaults. The package's default output and its preview, from bench to sign_post along +X, 1 m apart.",
|
|
417
|
+
"sliders": {},
|
|
418
|
+
"inputs": []
|
|
419
|
+
},
|
|
420
|
+
"topotopo": "0.4.0"
|
|
421
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "topotopo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "An open-source procedural geometry engine: node graphs in JSON, cooked headless and deterministic, exported to Unreal, Blender and Houdini. Built for LLM agents through MCP, and for people through the CLI.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"
|
|
24
|
+
"library/*/versions/**",
|
|
25
25
|
"assets/fonts",
|
|
26
26
|
"kernels/pkg",
|
|
27
27
|
"kernels/pkg-simd",
|
|
28
|
+
"integrations/godot/addons/**",
|
|
28
29
|
"!kernels/README.md",
|
|
29
30
|
"!kernels/LICENSE",
|
|
30
31
|
"README.md",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"mcp": "node src/mcp/server.ts",
|
|
39
40
|
"preview": "node scripts/preview.ts --examples",
|
|
40
41
|
"cook": "node src/cli.ts",
|
|
41
|
-
"test": "node test/smoke.ts && node test/golden.ts && node test/property.ts && node test/fuzz.ts && node test/docs.ts && node test/portability.ts && node test/examples.ts && node scripts/gen-notice.ts --check && node test/io.ts && node test/import.ts && node test/interop.ts && node test/mcp.ts && node test/engine.ts && node test/viewer.ts && node test/viewer-logic.ts && node test/topology.ts && node test/deform.ts && node test/cloth.ts && node test/arrays.ts && node test/bugs.ts && node test/uv.ts && node test/polyedit.ts && node test/bevel.ts && node test/measure.ts && node test/render.ts && node test/packed.ts && node test/heightfield.ts && node test/remesh.ts && node test/pcg.ts && node test/scatterkernel.ts && node test/splines.ts && node test/
|
|
42
|
+
"test": "node test/smoke.ts && node test/golden.ts && node test/property.ts && node test/fuzz.ts && node test/docs.ts && node test/portability.ts && node test/examples.ts && node scripts/gen-notice.ts --check && node test/io.ts && node test/import.ts && node test/interop.ts && node test/mcp.ts && node test/engine.ts && node test/scopes.ts && node test/packages.ts && node test/cook.ts && node test/viewer.ts && node test/viewer-logic.ts && node test/topology.ts && node test/deform.ts && node test/cloth.ts && node test/arrays.ts && node test/bugs.ts && node test/uv.ts && node test/polyedit.ts && node test/bevel.ts && node test/meshops.ts && node test/measure.ts && node test/render.ts && node test/packed.ts && node test/heightfield.ts && node test/remesh.ts && node test/pcg.ts && node test/scatterkernel.ts && node test/splines.ts && node test/builtin.ts && node test/textures.ts && node test/texnodes.ts && node test/imageops.ts && node test/pool.ts && node test/kernelsloader.ts && node test/kernels.ts && node test/sdfgrid.ts && node test/remeshquad.ts && node test/erosionkernel.ts && node test/erosionsimd.ts && node test/particles.ts && node test/rbd.ts && node test/limits.ts && node test/viewer-outputs.ts && node test/viewer-packages.ts && node test/library.ts && node test/web.ts && node test/tangents.ts && node test/pbr.ts && node test/materials.ts && node test/sockets.ts && node test/uvreport.ts && node test/solidify.ts",
|
|
42
43
|
"test:limits": "node test/limits.ts",
|
|
43
44
|
"kernels:build": "node scripts/kernels-build.ts",
|
|
44
45
|
"test:kernels": "node test/scatterkernel.ts && node test/kernelsloader.ts && node test/kernels.ts && node test/sdfgrid.ts && node test/remeshquad.ts && node test/erosionkernel.ts && node test/erosionsimd.ts",
|
|
@@ -57,8 +58,12 @@
|
|
|
57
58
|
"test:remesh": "node test/remesh.ts",
|
|
58
59
|
"test:pcg": "node test/pcg.ts",
|
|
59
60
|
"test:cloth": "node test/cloth.ts",
|
|
60
|
-
"test:
|
|
61
|
-
"test:
|
|
61
|
+
"test:builtin": "node test/builtin.ts",
|
|
62
|
+
"test:packages": "node test/packages.ts",
|
|
63
|
+
"test:cook": "node test/cook.ts",
|
|
64
|
+
"test:godot": "node scripts/test-godot.mjs",
|
|
65
|
+
"test:textures": "node test/textures.ts && node test/texnodes.ts",
|
|
66
|
+
"test:texnodes": "node test/texnodes.ts",
|
|
62
67
|
"test:imageops": "node test/imageops.ts",
|
|
63
68
|
"test:smoke": "node test/smoke.ts",
|
|
64
69
|
"test:golden": "node test/golden.ts",
|
|
@@ -68,8 +73,8 @@
|
|
|
68
73
|
"test:portability": "node test/portability.ts",
|
|
69
74
|
"test:examples": "node test/examples.ts",
|
|
70
75
|
"test:interop": "node test/interop.ts",
|
|
71
|
-
"test:
|
|
72
|
-
"test:viewer": "node test/viewer.ts && node test/viewer-logic.ts && node test/viewer-outputs.ts",
|
|
76
|
+
"test:web": "node test/library.ts && node test/web.ts",
|
|
77
|
+
"test:viewer": "node test/viewer.ts && node test/viewer-logic.ts && node test/viewer-outputs.ts && node test/viewer-packages.ts",
|
|
73
78
|
"showcase": "node test/showcase.ts",
|
|
74
79
|
"export:demo": "node scripts/export-demo.ts",
|
|
75
80
|
"demo:footage": "node scripts/demo-footage.ts",
|
|
@@ -77,7 +82,7 @@
|
|
|
77
82
|
"docs": "node scripts/gen-docs.ts",
|
|
78
83
|
"site": "node scripts/gen-site.ts",
|
|
79
84
|
"site:check": "node scripts/check-site.ts",
|
|
80
|
-
"
|
|
85
|
+
"builtin": "node scripts/gen-builtin.ts",
|
|
81
86
|
"typecheck": "tsc --noEmit",
|
|
82
87
|
"notice": "node scripts/gen-notice.ts",
|
|
83
88
|
"notice:check": "node scripts/gen-notice.ts --check"
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/* The gallery's pages (src/gallery/pages.ts): the viewer's neutral dark editor colours, a card grid, a project page
|
|
2
|
-
with the 3D view beside its details. One column below 860 px. */
|
|
3
|
-
:root {
|
|
4
|
-
--bg: #1f2124; --panel: #26282c; --panel2: #2c2f33; --line: #3a3d42; --text: #d6d9dd; --dim: #8c939b; --faint: #5d636b;
|
|
5
|
-
--view: #2b2d31; --accent: #f0a030; --accent-bg: rgba(240, 160, 48, 0.14); --err: #e5675f; --ok: #8fbf7f;
|
|
6
|
-
--font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
7
|
-
--mono: 12px/1.4 ui-monospace, Consolas, "SF Mono", monospace;
|
|
8
|
-
color-scheme: dark;
|
|
9
|
-
}
|
|
10
|
-
* { box-sizing: border-box; }
|
|
11
|
-
[hidden] { display: none !important; }
|
|
12
|
-
html, body { margin: 0; background: var(--bg); color: var(--text); font: var(--font); }
|
|
13
|
-
a { color: inherit; }
|
|
14
|
-
code, pre { font: var(--mono); }
|
|
15
|
-
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
|
|
16
|
-
h1 { font-size: 24px; margin: 0 0 8px; }
|
|
17
|
-
h2 { font-size: 15px; margin: 28px 0 10px; color: var(--text); }
|
|
18
|
-
h3 { font-size: 13px; margin: 18px 0 8px; color: var(--dim); font-weight: 500; }
|
|
19
|
-
.count { color: var(--faint); font-weight: 400; font-size: 0.9em; margin-left: 4px; }
|
|
20
|
-
.dim { color: var(--dim); }
|
|
21
|
-
.small { font-size: 12px; }
|
|
22
|
-
.empty { color: var(--dim); }
|
|
23
|
-
|
|
24
|
-
.bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
|
|
25
|
-
.brand { text-decoration: none; color: var(--dim); white-space: nowrap; }
|
|
26
|
-
.brand b { color: var(--text); font-weight: 600; }
|
|
27
|
-
.crumbs { color: var(--dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
28
|
-
.crumbs a { color: var(--dim); }
|
|
29
|
-
#search { flex: 1; max-width: 420px; margin-left: auto; padding: 6px 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; }
|
|
30
|
-
#search:focus { outline: 1px solid var(--faint); }
|
|
31
|
-
|
|
32
|
-
.wrap { max-width: 1400px; margin: 0 auto; padding: 8px 16px 48px; }
|
|
33
|
-
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
|
|
34
|
-
.chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; }
|
|
35
|
-
.chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
|
|
36
|
-
.problems { margin: 14px 0 0; padding: 8px 12px; border: 1px solid var(--err); border-radius: 4px; color: var(--err); }
|
|
37
|
-
.problems ul { margin: 6px 0 0; padding-left: 18px; color: var(--text); font: var(--mono); }
|
|
38
|
-
|
|
39
|
-
.library h2 { font-size: 18px; margin-top: 28px; }
|
|
40
|
-
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
|
|
41
|
-
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
|
|
42
|
-
.card:hover { border-color: var(--faint); }
|
|
43
|
-
.card:focus-visible { outline: 2px solid var(--accent); }
|
|
44
|
-
.thumb { display: block; aspect-ratio: 1; background: var(--view); }
|
|
45
|
-
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
46
|
-
.meta { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; min-width: 0; }
|
|
47
|
-
.title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
48
|
-
.sub { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
49
|
-
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; }
|
|
50
|
-
.tag { padding: 0 6px; border-radius: 3px; background: var(--panel2); color: var(--dim); font-size: 11px; line-height: 18px; }
|
|
51
|
-
.status { font-size: 11px; color: var(--dim); }
|
|
52
|
-
.status:empty { display: none; }
|
|
53
|
-
.s-failed { color: var(--err); }
|
|
54
|
-
.s-baking { color: var(--accent); }
|
|
55
|
-
|
|
56
|
-
.project { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "stage info" "more info"; padding-top: 16px; }
|
|
57
|
-
.stage { grid-area: stage; }
|
|
58
|
-
.view { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; background: var(--view); object-fit: contain; }
|
|
59
|
-
.info { grid-area: info; min-width: 0; }
|
|
60
|
-
.more { grid-area: more; min-width: 0; }
|
|
61
|
-
.desc { white-space: pre-line; margin: 0 0 10px; }
|
|
62
|
-
.links { margin: 10px 0; padding-left: 18px; }
|
|
63
|
-
.links a { color: var(--accent); }
|
|
64
|
-
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
|
|
65
|
-
.btn { display: inline-block; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
|
|
66
|
-
.btn:hover { border-color: var(--faint); }
|
|
67
|
-
.btn.primary { border-color: var(--accent); color: var(--accent); }
|
|
68
|
-
.btn:disabled { opacity: 0.5; cursor: default; }
|
|
69
|
-
.bake { color: var(--dim); font-size: 12px; margin: 6px 0; }
|
|
70
|
-
.bake.err { color: var(--err); }
|
|
71
|
-
pre.error, .warn pre { margin: 6px 0; padding: 8px; max-height: 200px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; white-space: pre-wrap; }
|
|
72
|
-
pre.error { color: var(--err); }
|
|
73
|
-
.warn summary { color: var(--accent); font-size: 12px; cursor: pointer; }
|
|
74
|
-
.copy { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 0 0 6px; }
|
|
75
|
-
.copy span { color: var(--dim); font-size: 12px; }
|
|
76
|
-
.copy input { min-width: 0; padding: 4px 6px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: var(--mono); }
|
|
77
|
-
.copy button { padding: 4px 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
|
|
78
|
-
.copy button.done { color: var(--ok); border-color: var(--ok); }
|
|
79
|
-
|
|
80
|
-
.shots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
|
|
81
|
-
.shots a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--dim); font-size: 12px; min-width: 0; }
|
|
82
|
-
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--view); }
|
|
83
|
-
.shots span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
84
|
-
.files { list-style: none; margin: 0; padding: 0; }
|
|
85
|
-
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
|
|
86
|
-
.files li span { color: var(--dim); font-size: 12px; white-space: nowrap; }
|
|
87
|
-
.files a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
88
|
-
.graph h3 { color: var(--text); }
|
|
89
|
-
.vars { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
90
|
-
.vars th, .vars td { text-align: left; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
91
|
-
.vars th { font-weight: 500; white-space: nowrap; }
|
|
92
|
-
.vars td:nth-child(2) { font: var(--mono); white-space: nowrap; }
|
|
93
|
-
.range { color: var(--faint); }
|
|
94
|
-
|
|
95
|
-
@media (max-width: 860px) {
|
|
96
|
-
.project { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "info" "more"; }
|
|
97
|
-
.bar { flex-wrap: wrap; }
|
|
98
|
-
#search { max-width: none; flex-basis: 100%; }
|
|
99
|
-
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
|
|
100
|
-
}
|