Commit Graph

10 Commits

Author SHA1 Message Date
Misode
6e4850d5a9 Memoize list entries and wrap model data 2021-09-24 03:47:15 +02:00
Misode
f55a911079 Fix #157 and fix #167 2021-09-23 16:44:27 +02:00
Misode
3b80334e2e Support 1.18 (experimental) snapshots (#158)
* Half support 1.18-experimental-snapshot-1

* Fetch 1.18 presets and improve rendering of lists

* Noise preview with deepslate

* Biome preview with deepslate

* Generalize canvas logic in one hook

* Simplify useCanvas

* Use mcschema for 1.18

* Improve noise settings preview controls

* Fix build

* Update deepslate and improve preview caching

* Cleanup, remove old preview code

* Couple seed between model and preview

* Limit output to improve performance + copy feedback
For the vanilla overworld dimension (200K lines),
it took 2+ seconds to write the output to the textarea

Now capped at 10K chars

* Add surface_relative_threshold to decorator preview

* Improve fixed list errors
2021-09-23 03:04:52 +02:00
Misode
e3fb5923c0 Handle catching unknowns 2021-09-09 22:34:22 +02:00
Misode
386eb675d6 Use preact to render the tree (#155)
* Use preact to render the tree

* More changes to renderHtml
2021-09-09 21:36:19 +02:00
Misode
40fe1c5336 Show error when importing invalid json 2021-08-05 00:12:30 +02:00
Misode
2fb4848425 Add configurable indentation 2021-06-26 19:19:51 +02:00
Misode
373698ebbc Improve rendering and validating block states 2021-06-26 17:18:02 +02:00
Misode
ac10c3f541 Fix some errors and make others visible 2021-06-26 17:18:02 +02:00
Misode
09c851914f Switch to vite and preact 2021-06-26 17:18:02 +02:00