topotopo 0.3.0 → 0.5.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.
Files changed (354) hide show
  1. package/NOTICE +40 -10
  2. package/README.md +475 -111
  3. package/dist/cli.js +328 -133
  4. package/dist/config.d.ts +48 -0
  5. package/dist/config.js +170 -0
  6. package/dist/core/analysis.d.ts +5 -1
  7. package/dist/core/analysis.js +8 -3
  8. package/dist/core/bake.d.ts +16 -8
  9. package/dist/core/bake.js +165 -29
  10. package/dist/core/bevel.d.ts +3 -1
  11. package/dist/core/bevel.js +238 -97
  12. package/dist/core/decimate.d.ts +65 -0
  13. package/dist/core/decimate.js +409 -3
  14. package/dist/core/erosion.d.ts +37 -0
  15. package/dist/core/erosion.js +41 -1
  16. package/dist/core/geometry.d.ts +5 -1
  17. package/dist/core/geometry.js +204 -4
  18. package/dist/core/heightfield.d.ts +27 -4
  19. package/dist/core/heightfield.js +54 -16
  20. package/dist/core/imageops.d.ts +6 -0
  21. package/dist/core/imageops.js +51 -0
  22. package/dist/core/intrinsics.d.ts +7 -0
  23. package/dist/core/intrinsics.js +94 -0
  24. package/dist/core/manifold.d.ts +12 -1
  25. package/dist/core/manifold.js +78 -6
  26. package/dist/core/materials.d.ts +11 -0
  27. package/dist/core/materials.js +56 -0
  28. package/dist/core/noise.d.ts +9 -0
  29. package/dist/core/noise.js +10 -1
  30. package/dist/core/packed.js +11 -0
  31. package/dist/core/particles.d.ts +1 -1
  32. package/dist/core/particles.js +1 -1
  33. package/dist/core/polymerge.d.ts +21 -0
  34. package/dist/core/polymerge.js +327 -0
  35. package/dist/core/rbd.js +13 -1
  36. package/dist/core/repair.d.ts +2 -0
  37. package/dist/core/repair.js +2 -0
  38. package/dist/core/report.d.ts +70 -0
  39. package/dist/core/report.js +275 -0
  40. package/dist/core/scatter.d.ts +1 -1
  41. package/dist/core/scatter.js +1 -1
  42. package/dist/core/scene.d.ts +20 -0
  43. package/dist/core/scene.js +72 -0
  44. package/dist/core/sha256.d.ts +4 -0
  45. package/dist/core/sha256.js +69 -0
  46. package/dist/core/shapes.d.ts +3 -0
  47. package/dist/core/shapes.js +34 -0
  48. package/dist/core/snippet-lib.d.ts +15 -2
  49. package/dist/core/snippet-lib.js +40 -14
  50. package/dist/core/solidify.d.ts +38 -0
  51. package/dist/core/solidify.js +356 -0
  52. package/dist/core/tangents.d.ts +54 -0
  53. package/dist/core/tangents.js +218 -0
  54. package/dist/core/texcoord.d.ts +4 -0
  55. package/dist/core/texcoord.js +14 -0
  56. package/dist/core/texnoise.d.ts +6 -1
  57. package/dist/core/texnoise.js +6 -2
  58. package/dist/core/texsdf.d.ts +131 -0
  59. package/dist/core/texsdf.js +637 -0
  60. package/dist/core/texture.d.ts +163 -9
  61. package/dist/core/texture.js +844 -20
  62. package/dist/core/topology.d.ts +32 -0
  63. package/dist/core/topology.js +238 -7
  64. package/dist/core/traceimage.d.ts +7 -0
  65. package/dist/core/traceimage.js +221 -0
  66. package/dist/core/tritri.d.ts +5 -0
  67. package/dist/core/tritri.js +120 -0
  68. package/dist/core/unwrap.d.ts +72 -0
  69. package/dist/core/unwrap.js +800 -0
  70. package/dist/core/usercode.d.ts +27 -0
  71. package/dist/core/usercode.js +87 -0
  72. package/dist/core/uv.d.ts +15 -16
  73. package/dist/core/uv.js +36 -189
  74. package/dist/core/uvislands.d.ts +62 -0
  75. package/dist/core/uvislands.js +574 -0
  76. package/dist/core/uvoverlap.d.ts +58 -0
  77. package/dist/core/uvoverlap.js +220 -0
  78. package/dist/core/uvpack.d.ts +64 -0
  79. package/dist/core/uvpack.js +628 -0
  80. package/dist/core/uvreport.d.ts +127 -0
  81. package/dist/core/uvreport.js +372 -0
  82. package/dist/core/wrangle.d.ts +6 -1
  83. package/dist/core/wrangle.js +27 -16
  84. package/dist/core/xatlas.d.ts +16 -1
  85. package/dist/core/xatlas.js +95 -61
  86. package/dist/engines.d.ts +63 -0
  87. package/dist/engines.js +180 -0
  88. package/dist/explain.d.ts +4 -3
  89. package/dist/explain.js +129 -12
  90. package/dist/graph/engine.d.ts +92 -29
  91. package/dist/graph/engine.js +298 -148
  92. package/dist/graph/expr.d.ts +6 -3
  93. package/dist/graph/expr.js +18 -8
  94. package/dist/graph/outputs.d.ts +23 -0
  95. package/dist/graph/outputs.js +41 -0
  96. package/dist/graph/packages.d.ts +72 -0
  97. package/dist/graph/packages.js +261 -0
  98. package/dist/graph/parallel.d.ts +3 -1
  99. package/dist/graph/parallel.js +4 -1
  100. package/dist/graph/params.d.ts +6 -0
  101. package/dist/graph/params.js +34 -7
  102. package/dist/graph/scope.d.ts +55 -0
  103. package/dist/graph/scope.js +14 -0
  104. package/dist/graph/types.d.ts +75 -12
  105. package/dist/graph/types.js +4 -2
  106. package/dist/graph/vars.d.ts +16 -0
  107. package/dist/graph/vars.js +80 -0
  108. package/dist/host/artifacts.d.ts +10 -1
  109. package/dist/host/artifacts.js +37 -6
  110. package/dist/host/cook.d.ts +241 -0
  111. package/dist/host/cook.js +844 -0
  112. package/dist/host/export-targets.d.ts +42 -5
  113. package/dist/host/export-targets.js +72 -13
  114. package/dist/host/godot-commands.d.ts +4 -0
  115. package/dist/host/godot-commands.js +21 -0
  116. package/dist/host/godot.d.ts +183 -0
  117. package/dist/host/godot.js +916 -0
  118. package/dist/host/node.d.ts +12 -7
  119. package/dist/host/node.js +27 -9
  120. package/dist/host/pool.js +51 -2
  121. package/dist/host/sidecars.d.ts +8 -0
  122. package/dist/host/sidecars.js +50 -0
  123. package/dist/host/types.d.ts +19 -6
  124. package/dist/host/version.d.ts +1 -0
  125. package/dist/host/version.js +3 -0
  126. package/dist/host/worker.js +5 -2
  127. package/dist/index.d.ts +5 -3
  128. package/dist/index.js +3 -2
  129. package/dist/inspect.d.ts +84 -1
  130. package/dist/inspect.js +271 -24
  131. package/dist/io/common.d.ts +33 -5
  132. package/dist/io/export.js +2 -1
  133. package/dist/io/files.d.ts +23 -4
  134. package/dist/io/files.js +60 -8
  135. package/dist/io/gltf.js +355 -51
  136. package/dist/io/heightmap.d.ts +3 -0
  137. package/dist/io/heightmap.js +1 -0
  138. package/dist/io/import.js +10 -0
  139. package/dist/io/inspect-scene.d.ts +55 -0
  140. package/dist/io/inspect-scene.js +155 -0
  141. package/dist/io/kinds.d.ts +81 -0
  142. package/dist/io/kinds.js +163 -0
  143. package/dist/io/points.d.ts +2 -1
  144. package/dist/io/points.js +3 -1
  145. package/dist/io/sidecars.d.ts +24 -0
  146. package/dist/io/sidecars.js +57 -0
  147. package/dist/io/source.d.ts +65 -0
  148. package/dist/io/source.js +112 -0
  149. package/dist/io/targets.d.ts +47 -3
  150. package/dist/io/targets.js +149 -14
  151. package/dist/io/textures.js +21 -1
  152. package/dist/io/unreal.js +5 -1
  153. package/dist/mcp/docs.d.ts +10 -1
  154. package/dist/mcp/docs.js +816 -119
  155. package/dist/mcp/inputs.d.ts +12 -5
  156. package/dist/mcp/inputs.js +50 -13
  157. package/dist/mcp/server.js +70 -24
  158. package/dist/mcp/tools.d.ts +14 -7
  159. package/dist/mcp/tools.js +207 -108
  160. package/dist/mcp/verify.d.ts +2 -2
  161. package/dist/mcp/verify.js +1 -1
  162. package/dist/mcp/workspace.d.ts +15 -0
  163. package/dist/mcp/workspace.js +349 -0
  164. package/dist/nodes/attributes.js +198 -1
  165. package/dist/nodes/bake.js +207 -83
  166. package/dist/nodes/beam.d.ts +1 -0
  167. package/dist/nodes/beam.js +201 -0
  168. package/dist/nodes/bevel.js +54 -5
  169. package/dist/nodes/cloth.js +2 -0
  170. package/dist/nodes/code.js +22 -10
  171. package/dist/nodes/curves.js +440 -93
  172. package/dist/nodes/flow.js +53 -33
  173. package/dist/nodes/generate.js +13 -39
  174. package/dist/nodes/heightfield.js +248 -77
  175. package/dist/nodes/imageops.d.ts +1 -0
  176. package/dist/nodes/imageops.js +203 -0
  177. package/dist/nodes/index.d.ts +4 -0
  178. package/dist/nodes/index.js +4 -0
  179. package/dist/nodes/material.js +91 -23
  180. package/dist/nodes/measure.js +45 -18
  181. package/dist/nodes/particles.js +2 -0
  182. package/dist/nodes/pcg.js +6 -5
  183. package/dist/nodes/procedural.js +4 -3
  184. package/dist/nodes/rbd.js +1 -1
  185. package/dist/nodes/remesh.js +71 -15
  186. package/dist/nodes/scene.d.ts +1 -0
  187. package/dist/nodes/scene.js +55 -0
  188. package/dist/nodes/sdf.js +10 -5
  189. package/dist/nodes/solid.js +20 -5
  190. package/dist/nodes/solidify.d.ts +1 -0
  191. package/dist/nodes/solidify.js +52 -0
  192. package/dist/nodes/splines.d.ts +15 -1
  193. package/dist/nodes/splines.js +112 -105
  194. package/dist/nodes/texture.d.ts +21 -6
  195. package/dist/nodes/texture.js +1318 -185
  196. package/dist/nodes/topology.d.ts +7 -0
  197. package/dist/nodes/topology.js +133 -6
  198. package/dist/nodes/transform.js +11 -3
  199. package/dist/nodes/util.d.ts +1 -1
  200. package/dist/nodes/uv.js +192 -174
  201. package/dist/nodes/wasmcall.js +6 -2
  202. package/dist/open.d.ts +19 -0
  203. package/dist/open.js +12 -0
  204. package/dist/package.d.ts +288 -0
  205. package/dist/package.js +772 -0
  206. package/dist/packages/check.d.ts +32 -0
  207. package/dist/packages/check.js +169 -0
  208. package/dist/packages/commands.d.ts +57 -0
  209. package/dist/packages/commands.js +537 -0
  210. package/dist/packages/registry.d.ts +796 -0
  211. package/dist/packages/registry.js +2998 -0
  212. package/dist/packages/update.d.ts +124 -0
  213. package/dist/packages/update.js +476 -0
  214. package/dist/render/options.d.ts +2 -0
  215. package/dist/render/options.js +44 -5
  216. package/dist/render/pbr.d.ts +28 -0
  217. package/dist/render/pbr.js +378 -0
  218. package/dist/render/preview.d.ts +69 -0
  219. package/dist/render/preview.js +26 -0
  220. package/dist/render/raster.d.ts +78 -7
  221. package/dist/render/raster.js +600 -145
  222. package/dist/render/texview.d.ts +7 -1
  223. package/dist/render/texview.js +34 -2
  224. package/dist/scan.d.ts +61 -0
  225. package/dist/scan.js +228 -0
  226. package/dist/session.d.ts +311 -0
  227. package/dist/session.js +849 -0
  228. package/dist/viewer/app/api.js +48 -6
  229. package/dist/viewer/app/camera.js +1 -1
  230. package/dist/viewer/app/cooking.js +78 -0
  231. package/dist/viewer/app/embed.js +100 -0
  232. package/dist/viewer/app/export-popover.js +118 -16
  233. package/dist/viewer/app/grid.js +6 -2
  234. package/dist/viewer/app/guides.js +123 -1
  235. package/dist/viewer/app/keymap.js +7 -4
  236. package/dist/viewer/app/layers.js +5 -5
  237. package/dist/viewer/app/main.js +186 -53
  238. package/dist/viewer/app/markers.js +61 -1
  239. package/dist/viewer/app/outliner.js +72 -27
  240. package/dist/viewer/app/output-info.js +45 -0
  241. package/dist/viewer/app/outputs.css +147 -8
  242. package/dist/viewer/app/outputs.js +168 -54
  243. package/dist/viewer/app/packages.js +614 -0
  244. package/dist/viewer/app/props.js +177 -53
  245. package/dist/viewer/app/scene.js +35 -6
  246. package/dist/viewer/app/select.js +5 -4
  247. package/dist/viewer/app/selection.js +1 -1
  248. package/dist/viewer/app/status.js +12 -15
  249. package/dist/viewer/app/style.css +66 -8
  250. package/dist/viewer/app/units.js +1 -1
  251. package/dist/viewer/app/vars.js +48 -1
  252. package/dist/viewer/app/welcome.js +72 -0
  253. package/dist/viewer/graph-file.d.ts +62 -0
  254. package/dist/viewer/graph-file.js +175 -0
  255. package/dist/viewer/index.html +24 -11
  256. package/dist/viewer/json-edit.d.ts +13 -0
  257. package/dist/viewer/json-edit.js +274 -0
  258. package/dist/viewer/outputs.d.ts +49 -5
  259. package/dist/viewer/outputs.js +264 -56
  260. package/dist/viewer/packages.d.ts +121 -0
  261. package/dist/viewer/packages.js +584 -0
  262. package/dist/viewer/server.d.ts +24 -7
  263. package/dist/viewer/server.js +289 -31
  264. package/dist/web/app/web.css +419 -0
  265. package/dist/web/app/web.js +188 -0
  266. package/dist/web/bake.d.ts +34 -0
  267. package/dist/web/bake.js +153 -0
  268. package/dist/web/folder-page.d.ts +101 -0
  269. package/dist/web/folder-page.js +146 -0
  270. package/dist/web/folders.d.ts +280 -0
  271. package/dist/web/folders.js +970 -0
  272. package/dist/web/library.d.ts +91 -0
  273. package/dist/web/library.js +228 -0
  274. package/dist/web/markdown.d.ts +45 -0
  275. package/dist/web/markdown.js +677 -0
  276. package/dist/web/pages.d.ts +258 -0
  277. package/dist/web/pages.js +301 -0
  278. package/dist/web/server.d.ts +24 -0
  279. package/dist/web/server.js +1068 -0
  280. package/dist/workspace.d.ts +88 -105
  281. package/dist/workspace.js +359 -375
  282. package/integrations/godot/addons/topotopo/LICENSE +202 -0
  283. package/integrations/godot/addons/topotopo/README.md +57 -0
  284. package/integrations/godot/addons/topotopo/context_menu.gd +43 -0
  285. package/integrations/godot/addons/topotopo/dock.gd +266 -0
  286. package/integrations/godot/addons/topotopo/dock.tscn +72 -0
  287. package/integrations/godot/addons/topotopo/export_filter.gd +72 -0
  288. package/integrations/godot/addons/topotopo/gltf_instancing.gd +131 -0
  289. package/integrations/godot/addons/topotopo/icons/topotopo.svg +1 -0
  290. package/integrations/godot/addons/topotopo/inspector.gd +38 -0
  291. package/integrations/godot/addons/topotopo/instances_post_import.gd +111 -0
  292. package/integrations/godot/addons/topotopo/package.gd +23 -0
  293. package/integrations/godot/addons/topotopo/package_importer.gd +187 -0
  294. package/integrations/godot/addons/topotopo/plugin.cfg +7 -0
  295. package/integrations/godot/addons/topotopo/plugin.gd +970 -0
  296. package/integrations/godot/addons/topotopo/record.gd +435 -0
  297. package/integrations/godot/addons/topotopo/runner.gd +458 -0
  298. package/integrations/godot/addons/topotopo/tools/check.gd +42 -0
  299. package/integrations/godot/addons/topotopo/watcher.gd +199 -0
  300. package/kernels/pkg/README.md +23 -29
  301. package/kernels/pkg-simd/README.md +23 -29
  302. package/library/architecture/versions/1.0/architecture.topo +12 -0
  303. package/{shelf → library/architecture/versions/1.0/graphs}/arch.json +3 -3
  304. package/{shelf → library/architecture/versions/1.0/graphs}/beam_truss.json +6 -6
  305. package/{shelf → library/architecture/versions/1.0/graphs}/brick_wall.json +8 -8
  306. package/{shelf → library/architecture/versions/1.0/graphs}/door_frame.json +3 -3
  307. package/{shelf → library/architecture/versions/1.0/graphs}/hex_grid_floor.json +3 -2
  308. package/{shelf → library/architecture/versions/1.0/graphs}/house.json +8 -8
  309. package/library/architecture/versions/1.0/graphs/lineup.json +42 -0
  310. package/{shelf → library/architecture/versions/1.0/graphs}/pillar.json +3 -2
  311. package/{shelf → library/architecture/versions/1.0/graphs}/railing.json +5 -5
  312. package/{shelf → library/architecture/versions/1.0/graphs}/roof_gable.json +2 -2
  313. package/{shelf → library/architecture/versions/1.0/graphs}/roof_hip.json +2 -2
  314. package/{shelf → library/architecture/versions/1.0/graphs}/roof_skeleton.json +2 -1
  315. package/{shelf → library/architecture/versions/1.0/graphs}/scaffold.json +4 -4
  316. package/{shelf → library/architecture/versions/1.0/graphs}/spiral_stairs.json +3 -2
  317. package/{shelf → library/architecture/versions/1.0/graphs}/stairs.json +6 -6
  318. package/{shelf → library/architecture/versions/1.0/graphs}/tile_floor.json +3 -2
  319. package/{shelf → library/architecture/versions/1.0/graphs}/wall_segment.json +10 -10
  320. package/{shelf → library/architecture/versions/1.0/graphs}/window_frame.json +2 -2
  321. package/library/architecture/versions/1.0/version.json +1119 -0
  322. package/{shelf → library/nature/versions/1.0/graphs}/bush.json +2 -2
  323. package/{shelf → library/nature/versions/1.0/graphs}/cliff_block.json +4 -3
  324. package/{shelf → library/nature/versions/1.0/graphs}/forest_patch.json +5 -5
  325. package/{shelf → library/nature/versions/1.0/graphs}/grass_clumps.json +2 -2
  326. package/library/nature/versions/1.0/graphs/lineup.json +24 -0
  327. package/{shelf → library/nature/versions/1.0/graphs}/log.json +6 -6
  328. package/{shelf → library/nature/versions/1.0/graphs}/rock.json +5 -4
  329. package/{shelf → library/nature/versions/1.0/graphs}/scatter_rocks.json +5 -5
  330. package/{shelf → library/nature/versions/1.0/graphs}/tree_lowpoly.json +3 -2
  331. package/library/nature/versions/1.0/nature.topo +12 -0
  332. package/library/nature/versions/1.0/version.json +534 -0
  333. package/{shelf → library/props/versions/1.0/graphs}/barrel.json +5 -4
  334. package/{shelf → library/props/versions/1.0/graphs}/crate.json +3 -3
  335. package/library/props/versions/1.0/graphs/lineup.json +18 -0
  336. package/{shelf → library/props/versions/1.0/graphs}/pallet.json +4 -3
  337. package/{shelf → library/props/versions/1.0/graphs}/pipe_run.json +3 -3
  338. package/{shelf → library/props/versions/1.0/graphs}/sandbag_wall.json +5 -5
  339. package/library/props/versions/1.0/props.topo +12 -0
  340. package/library/props/versions/1.0/version.json +336 -0
  341. package/{shelf → library/street/versions/1.0/graphs}/bench.json +5 -5
  342. package/{shelf → library/street/versions/1.0/graphs}/bollard.json +2 -1
  343. package/{shelf → library/street/versions/1.0/graphs}/cable.json +4 -4
  344. package/{shelf → library/street/versions/1.0/graphs}/fence.json +7 -7
  345. package/{shelf → library/street/versions/1.0/graphs}/lamp_post.json +2 -2
  346. package/library/street/versions/1.0/graphs/lineup.json +22 -0
  347. package/{shelf → library/street/versions/1.0/graphs}/road_strip.json +2 -2
  348. package/{shelf → library/street/versions/1.0/graphs}/sign_post.json +1 -1
  349. package/library/street/versions/1.0/street.topo +12 -0
  350. package/library/street/versions/1.0/version.json +421 -0
  351. package/package.json +23 -8
  352. package/dist/graph/migrate.d.ts +0 -23
  353. package/dist/graph/migrate.js +0 -58
  354. package/shelf/index.json +0 -190
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 faxcorp
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,57 @@
1
+ # TopoTopo for Godot 4.7
2
+
3
+ This addon imports TopoTopo packages. A package inside the project (a folder holding `<id>.topo`) imports as a
4
+ status resource, and each of its published outputs is cooked into a plain GLB (textures outputs: PNGs) that Godot
5
+ imports itself. Levels and code use the GLBs, never the `.topo`; an output's own Advanced Import Settings survive every
6
+ recook. While the package's graphs change (in TopoTopo's viewer, by an agent over MCP, by hand), the outputs follow:
7
+ only outputs whose sources changed cook again, in the background, and only files whose bytes changed are written.
8
+
9
+ ## Install
10
+
11
+ ```text
12
+ topotopo godot setup <godot project folder>
13
+ ```
14
+
15
+ It copies this addon into `addons/topotopo/`, records where TopoTopo and node are, hides each package's TopoTopo
16
+ folders from Godot (`.gdignore`), enables the plugin, adds the cook's files to `.gitignore` and keeps the addon out of
17
+ every export preset. If Godot has the project open, enable **Project > Project Settings > Plugins > TopoTopo**.
18
+
19
+ ## In the editor
20
+
21
+ - **The TopoTopo panel** (bottom panel): which TopoTopo cooks, each package's state, its outputs (drag one into a
22
+ scene), errors per output with the node and a hint, skipped outputs, orphans, and Open in TopoTopo, Recook, Show
23
+ Outputs, Show Report, Remove Orphans. **Locate TopoTopo...** sets where it is; **Import When Unfocused** is Godot's
24
+ own setting, for working beside the viewer.
25
+ - **The FileSystem dock's context menu** on a `.topo` or any of its outputs: Open in TopoTopo, Recook, Show Cook Report.
26
+ - **Project > Tools > TopoTopo**: Cook Stale Packages, Recook All, Show TopoTopo Panel.
27
+ - **A failed output** keeps its last good GLB. The `.topo` gets Godot's ImportFail icon, Output has
28
+ `TopoTopo: <package> > <output>: [<node>] <message> (hint: …)`, and a toast and the panel say it too.
29
+
30
+ ## Settings
31
+
32
+ Editor Settings > FileSystem > Import > TopoTopo (per machine): `topotopo_path` (a TopoTopo `src/cli.ts`, `dist/cli.js`
33
+ or folder; empty: found by itself), `node_path`, `live_cook` (cook when package files change), `watch_interval`
34
+ (seconds; 0: only when the editor gets focus) and `cook_timeout`.
35
+
36
+ TopoTopo is found in this order: the environment variable `TOPOTOPO_CLI`, the editor setting, `node_modules/topotopo`
37
+ in the project folder or above it, the install record `topotopo godot setup` writes, `topotopo` on `PATH`.
38
+
39
+ ## What to commit
40
+
41
+ The addon, the packages with their `.gdignore` files, `<id>.topo.import`, each package's `.topotopo/godot.json`, and the
42
+ output folders with Godot's `.import` files. Not `.godot/`, `*.topotopo-part` or `.topotopo/cook.lock`. A teammate or
43
+ build machine without TopoTopo then imports the committed outputs as they are.
44
+
45
+ ## CI
46
+
47
+ Godot exits 0 even when imports fail, so check the packages after importing:
48
+
49
+ ```text
50
+ godot --headless --path <project> --import
51
+ topotopo godot status <project> --strict
52
+ ```
53
+
54
+ Without TopoTopo on the machine: `godot --headless --path <project> --script res://addons/topotopo/tools/check.gd`
55
+ exits 1 when a package is stale, failed or never cooked.
56
+
57
+ The contract between this addon and TopoTopo is `integrations/godot/PROTOCOL.md` in the TopoTopo repository.
@@ -0,0 +1,43 @@
1
+ @tool
2
+ extends EditorContextMenuPlugin
3
+ ## FileSystem dock context menu on a .topo, and on any file a package's record lists as an output: Open in TopoTopo,
4
+ ## Recook, Show Cook Report.
5
+
6
+ ## plugin.gd
7
+ var host: Object
8
+
9
+
10
+ func _popup_menu(paths: PackedStringArray) -> void:
11
+ if host == null:
12
+ return
13
+ for p in paths:
14
+ if host.package_of_file(p) != "":
15
+ add_context_menu_item("Open in TopoTopo", _open)
16
+ add_context_menu_item("Recook", _recook)
17
+ add_context_menu_item("Show Cook Report", _report)
18
+ return
19
+
20
+
21
+ func _packages(paths) -> Array:
22
+ var out := []
23
+ for p in paths:
24
+ var t: String = host.package_of_file(String(p)) if host else ""
25
+ if t != "" and not out.has(t):
26
+ out.append(t)
27
+ return out
28
+
29
+
30
+ func _open(paths) -> void:
31
+ for t in _packages(paths):
32
+ host.open_in_topotopo(t)
33
+
34
+
35
+ func _recook(paths) -> void:
36
+ var list := _packages(paths)
37
+ if list.size():
38
+ host.cook_now(list, true)
39
+
40
+
41
+ func _report(paths) -> void:
42
+ for t in _packages(paths):
43
+ host.show_report(t)
@@ -0,0 +1,266 @@
1
+ @tool
2
+ extends EditorDock
3
+ ## The "TopoTopo" panel (bottom panel by default; dock.tscn): which TopoTopo cooks and where it was found, one row per
4
+ ## package (its state, last cook, outputs with thumbnails, errors, skipped outputs, orphans) and the actions on a
5
+ ## package. Drag an output from here into a scene or the 3D view like a file from the FileSystem dock.
6
+
7
+ const Record := preload("record.gd")
8
+
9
+ ## plugin.gd
10
+ var host: Object
11
+
12
+ @onready var _status: Label = $Box/Top/Status
13
+ @onready var _locate: Button = $Box/Top/Locate
14
+ @onready var _unfocused: CheckButton = $Box/Top/Unfocused
15
+ @onready var _tree: Tree = $Box/Tree
16
+ @onready var _open: Button = $Box/Actions/Open
17
+ @onready var _recook: Button = $Box/Actions/Recook
18
+ @onready var _show: Button = $Box/Actions/ShowOutputs
19
+ @onready var _report: Button = $Box/Actions/ShowReport
20
+ @onready var _orphans: Button = $Box/Actions/RemoveOrphans
21
+ var _dialog: EditorFileDialog
22
+ var _dirty := true
23
+
24
+
25
+ func _init() -> void:
26
+ title = "TopoTopo"
27
+ default_slot = DOCK_SLOT_BOTTOM
28
+ available_layouts = DOCK_LAYOUT_HORIZONTAL | DOCK_LAYOUT_FLOATING
29
+
30
+
31
+ func _ready() -> void:
32
+ var svg := FileAccess.get_file_as_string(get_script().resource_path.get_base_dir().path_join("icons/topotopo.svg"))
33
+ if svg != "":
34
+ var img := Image.new()
35
+ if img.load_svg_from_string(svg, EditorInterface.get_editor_scale()) == OK:
36
+ dock_icon = ImageTexture.create_from_image(img)
37
+ _locate.pressed.connect(_on_locate)
38
+ _unfocused.toggled.connect(func(on: bool): if host: host.set_import_when_unfocused(on))
39
+ $Box/Top/CookStale.pressed.connect(_on_cook_stale)
40
+ _tree.set_column_title(0, "Package / output")
41
+ _tree.set_column_title(1, "State")
42
+ _tree.set_column_title(2, "")
43
+ _tree.set_column_expand(0, true)
44
+ _tree.set_column_expand_ratio(0, 2)
45
+ _tree.set_column_expand(1, false)
46
+ _tree.set_column_custom_minimum_width(1, 140)
47
+ _tree.set_column_expand(2, true)
48
+ _tree.set_column_expand_ratio(2, 3)
49
+ _tree.item_selected.connect(_update_buttons)
50
+ _tree.item_activated.connect(_on_activated)
51
+ _tree.set_drag_forwarding(_drag, Callable(), Callable())
52
+ _action(_open, func(t): host.open_in_topotopo(t))
53
+ _action(_recook, func(t): host.cook_now([t], true))
54
+ _action(_show, _show_outputs)
55
+ _action(_report, func(t): host.show_report(t))
56
+ _action(_orphans, func(t): host.remove_orphans(t))
57
+
58
+ _dialog = EditorFileDialog.new()
59
+ _dialog.access = EditorFileDialog.ACCESS_FILESYSTEM
60
+ _dialog.file_mode = EditorFileDialog.FILE_MODE_OPEN_ANY
61
+ _dialog.title = "Locate TopoTopo (src/cli.ts, dist/cli.js or its folder)"
62
+ _dialog.add_filter("*.ts, *.js", "TopoTopo CLI")
63
+ _dialog.file_selected.connect(func(p: String): if host: host.locate(p))
64
+ _dialog.dir_selected.connect(func(p: String): if host: host.locate(p))
65
+ add_child(_dialog)
66
+
67
+ if host:
68
+ host.packages_changed.connect(func(): _dirty = true)
69
+ _update_buttons()
70
+
71
+
72
+ func _action(b: Button, fn: Callable) -> void:
73
+ b.pressed.connect(func():
74
+ var t := _selected_topo()
75
+ if host and t != "":
76
+ fn.call(t))
77
+
78
+
79
+ func _process(_delta: float) -> void:
80
+ if _dirty and is_visible_in_tree() and host:
81
+ _dirty = false
82
+ refresh()
83
+
84
+
85
+ func _selected_topo() -> String:
86
+ var it := _tree.get_selected() if _tree else null
87
+ if it == null:
88
+ return ""
89
+ var m = it.get_metadata(0)
90
+ return String(m.topo) if typeof(m) == TYPE_DICTIONARY else ""
91
+
92
+
93
+ func _update_buttons() -> void:
94
+ var t := _selected_topo()
95
+ for b in [_open, _recook, _show, _report]:
96
+ if b:
97
+ b.disabled = t == ""
98
+ if _orphans:
99
+ var st = host.packages.get(t) if host and t != "" else null
100
+ _orphans.disabled = st == null or st.record == null or st.record.get("orphans", {}).is_empty()
101
+
102
+
103
+ func _on_cook_stale() -> void:
104
+ if host:
105
+ host.check_all()
106
+ host.cook_now(host.packages.keys(), false)
107
+
108
+
109
+ func _on_locate() -> void:
110
+ _dialog.popup_file_dialog()
111
+
112
+
113
+ func _on_activated() -> void:
114
+ var it := _tree.get_selected()
115
+ if it == null:
116
+ return
117
+ var m = it.get_metadata(0)
118
+ if typeof(m) == TYPE_DICTIONARY and String(m.get("file", "")) != "":
119
+ EditorInterface.get_file_system_dock().navigate_to_path(m.file)
120
+ elif typeof(m) == TYPE_DICTIONARY:
121
+ EditorInterface.get_file_system_dock().navigate_to_path(m.topo)
122
+
123
+
124
+ func _show_outputs(topo: String) -> void:
125
+ var st = host.packages.get(topo)
126
+ if st == null:
127
+ return
128
+ var files := Record.output_files(st.record)
129
+ EditorInterface.get_file_system_dock().navigate_to_path(files[0] if files.size() else topo)
130
+
131
+
132
+ func _drag(at: Vector2) -> Variant:
133
+ var it := _tree.get_item_at_position(at)
134
+ if it == null:
135
+ return null
136
+ var m = it.get_metadata(0)
137
+ if typeof(m) != TYPE_DICTIONARY or String(m.get("file", "")) == "" or not FileAccess.file_exists(m.file):
138
+ return null
139
+ var l := Label.new()
140
+ l.text = m.file.get_file()
141
+ set_drag_preview(l)
142
+ return {"type": "files", "files": PackedStringArray([m.file]), "from": self}
143
+
144
+
145
+ func _state_text(st: Dictionary) -> String:
146
+ if st.cooking:
147
+ return st.progress if st.progress != "" else "cooking"
148
+ if st.copy:
149
+ return "published copy"
150
+ if st.root:
151
+ return "unsupported"
152
+ match st.fresh.state:
153
+ "ok":
154
+ return "ok"
155
+ "failed":
156
+ return "failed"
157
+ "never_cooked":
158
+ return "never cooked" if host.runner.found() else "no TopoTopo"
159
+ return "stale" if host.runner.found() else "stale, no TopoTopo"
160
+
161
+
162
+ func _state_color(st: Dictionary) -> Color:
163
+ if st.cooking:
164
+ return get_theme_color("accent_color", "Editor")
165
+ match st.fresh.state:
166
+ "ok":
167
+ return get_theme_color("success_color", "Editor")
168
+ "failed":
169
+ return get_theme_color("error_color", "Editor")
170
+ return get_theme_color("warning_color", "Editor")
171
+
172
+
173
+ func refresh() -> void:
174
+ _status.text = host.runner.describe()
175
+ _status.tooltip_text = _status.text
176
+ _locate.visible = true
177
+ _unfocused.set_pressed_no_signal(host.import_when_unfocused())
178
+ var keep := _selected_topo()
179
+ _tree.clear()
180
+ var root := _tree.create_item()
181
+ var topos: Array = host.packages.keys()
182
+ topos.sort()
183
+ if topos.is_empty():
184
+ var it := _tree.create_item(root)
185
+ it.set_text(0, "No TopoTopo package in this project (a folder holding an <id>.topo).")
186
+ for topo in topos:
187
+ var st: Dictionary = host.packages[topo]
188
+ var it := _tree.create_item(root)
189
+ it.set_metadata(0, {"topo": topo, "file": ""})
190
+ it.set_text(0, "%s (%s)" % [st.id, topo])
191
+ it.set_text(1, _state_text(st))
192
+ it.set_custom_color(1, _state_color(st))
193
+ var info := PackedStringArray()
194
+ if st.error != "":
195
+ info.append(st.error.get_slice("\n", 0))
196
+ elif st.fresh.state != "ok":
197
+ info.append(st.fresh.text)
198
+ if st.fresh.note == "update_topotopo":
199
+ info.append("cooked by a newer TopoTopo: update TopoTopo")
200
+ if st.last_ms >= 0:
201
+ info.append("last cook %s, %.1f s" % [st.last_time, st.last_ms / 1000.0])
202
+ var exposed := Record.exposed(st.dir) if not st.root else PackedStringArray()
203
+ if exposed.size():
204
+ info.append("Godot imports %s (no .gdignore): run topotopo godot setup" % ", ".join(exposed))
205
+ it.set_text(2, " · ".join(info))
206
+ it.set_tooltip_text(2, "\n".join(info))
207
+ if topo == keep:
208
+ it.select(0)
209
+ var rec = st.record
210
+ if typeof(rec) != TYPE_DICTIONARY:
211
+ continue
212
+ var outputs = rec.get("outputs", {})
213
+ for id in Record._sorted_keys(outputs):
214
+ var o: Dictionary = outputs[id]
215
+ var files: Array = Record._sorted_keys(o.get("files", {}))
216
+ var oi := _tree.create_item(it)
217
+ var main := ""
218
+ for f in files:
219
+ if f.ends_with(".glb"):
220
+ main = f
221
+ if main == "" and files.size():
222
+ main = files[0]
223
+ oi.set_metadata(0, {"topo": topo, "file": main})
224
+ oi.set_text(0, "%s %s" % [o.get("label", id), ("(%s)" % main) if main != "" else ""])
225
+ oi.set_tooltip_text(0, "\n".join(files) if files.size() else "never cooked")
226
+ oi.set_text(1, "%s %s" % [o.get("state", ""), o.get("kind", "")])
227
+ oi.set_custom_color(1, get_theme_color("error_color", "Editor") if o.get("state") == "failed" else get_theme_color("font_color", "Editor"))
228
+ var inst = o.get("instances", {})
229
+ var notes := PackedStringArray()
230
+ for src in Record._sorted_keys(inst):
231
+ notes.append("%s × %d" % [src, int(inst[src])])
232
+ if files.size() > 1:
233
+ notes.append("%d files" % files.size())
234
+ oi.set_text(2, ", ".join(notes))
235
+ if main != "" and FileAccess.file_exists(main):
236
+ EditorInterface.get_resource_previewer().queue_resource_preview(main, self, "_on_preview", oi)
237
+ for e in o.get("errors", []):
238
+ var ei := _tree.create_item(oi)
239
+ ei.set_metadata(0, {"topo": topo, "file": ""})
240
+ ei.set_text(0, ("[%s] " % e.node) if String(e.get("node", "")) != "" else "error")
241
+ ei.set_text(2, "%s%s" % [e.get("message", ""), (" (hint: %s)" % e.hint) if String(e.get("hint", "")) != "" else ""])
242
+ ei.set_tooltip_text(2, ei.get_text(2))
243
+ ei.set_custom_color(2, get_theme_color("error_color", "Editor"))
244
+ var skipped = rec.get("skipped", {})
245
+ for id in Record._sorted_keys(skipped):
246
+ var si := _tree.create_item(it)
247
+ si.set_metadata(0, {"topo": topo, "file": ""})
248
+ si.set_text(0, String(skipped[id].get("label", id)) if typeof(skipped[id]) == TYPE_DICTIONARY else id)
249
+ si.set_text(1, "skipped")
250
+ si.set_custom_color(1, get_theme_color("font_disabled_color", "Editor"))
251
+ si.set_text(2, String(skipped[id].get("why", "")) if typeof(skipped[id]) == TYPE_DICTIONARY else "")
252
+ var orphans = rec.get("orphans", {})
253
+ for f in Record._sorted_keys(orphans):
254
+ var oi := _tree.create_item(it)
255
+ oi.set_metadata(0, {"topo": topo, "file": f})
256
+ oi.set_text(0, f)
257
+ oi.set_text(1, "orphan")
258
+ oi.set_custom_color(1, get_theme_color("warning_color", "Editor"))
259
+ oi.set_text(2, "was output %s, no longer cooked; kept until you remove it" % orphans[f])
260
+ _update_buttons()
261
+
262
+
263
+ func _on_preview(_path: String, _preview: Texture2D, thumbnail: Texture2D, item: Variant) -> void:
264
+ if thumbnail and is_instance_valid(item):
265
+ item.set_icon(0, thumbnail)
266
+ item.set_icon_max_width(0, 24)
@@ -0,0 +1,72 @@
1
+ [gd_scene load_steps=2 format=3]
2
+
3
+ [ext_resource type="Script" path="dock.gd" id="1_dock"]
4
+
5
+ [node name="TopoTopo" type="EditorDock"]
6
+ script = ExtResource("1_dock")
7
+
8
+ [node name="Box" type="VBoxContainer" parent="."]
9
+ layout_mode = 2
10
+ size_flags_vertical = 3
11
+
12
+ [node name="Top" type="HBoxContainer" parent="Box"]
13
+ layout_mode = 2
14
+
15
+ [node name="Status" type="Label" parent="Box/Top"]
16
+ layout_mode = 2
17
+ size_flags_horizontal = 3
18
+ mouse_filter = 1
19
+ text = "TopoTopo"
20
+ text_overrun_behavior = 3
21
+
22
+ [node name="Locate" type="Button" parent="Box/Top"]
23
+ layout_mode = 2
24
+ tooltip_text = "Set where TopoTopo is (Editor Settings > FileSystem > Import > TopoTopo > Topotopo Path): its src/cli.ts, dist/cli.js, or its folder."
25
+ text = "Locate TopoTopo..."
26
+
27
+ [node name="Unfocused" type="CheckButton" parent="Box/Top"]
28
+ layout_mode = 2
29
+ tooltip_text = "Godot's own Editor Settings > Interface > Editor > Import Resources When Unfocused: cooked outputs update while you work in TopoTopo beside Godot."
30
+ text = "Import When Unfocused"
31
+
32
+ [node name="CookStale" type="Button" parent="Box/Top"]
33
+ layout_mode = 2
34
+ tooltip_text = "Cook every package whose outputs are behind its files."
35
+ text = "Cook Stale"
36
+
37
+ [node name="Tree" type="Tree" parent="Box"]
38
+ custom_minimum_size = Vector2(0, 120)
39
+ layout_mode = 2
40
+ size_flags_vertical = 3
41
+ columns = 3
42
+ column_titles_visible = true
43
+ hide_root = true
44
+ select_mode = 1
45
+
46
+ [node name="Actions" type="HBoxContainer" parent="Box"]
47
+ layout_mode = 2
48
+
49
+ [node name="Open" type="Button" parent="Box/Actions"]
50
+ layout_mode = 2
51
+ tooltip_text = "Open TopoTopo's live viewer on the package in the browser."
52
+ text = "Open in TopoTopo"
53
+
54
+ [node name="Recook" type="Button" parent="Box/Actions"]
55
+ layout_mode = 2
56
+ tooltip_text = "Cook every output of the package again, ignoring the record and the cache."
57
+ text = "Recook"
58
+
59
+ [node name="ShowOutputs" type="Button" parent="Box/Actions"]
60
+ layout_mode = 2
61
+ tooltip_text = "Show the package's outputs in the FileSystem dock."
62
+ text = "Show Outputs"
63
+
64
+ [node name="ShowReport" type="Button" parent="Box/Actions"]
65
+ layout_mode = 2
66
+ tooltip_text = "Print the package's last cook report to Output."
67
+ text = "Show Report"
68
+
69
+ [node name="RemoveOrphans" type="Button" parent="Box/Actions"]
70
+ layout_mode = 2
71
+ tooltip_text = "Delete the files outputs had and have no more (a level may still use them)."
72
+ text = "Remove Orphans"