mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 08:26:51 +00:00
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
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
--node-background-label: #1b1b1b;
|
||||
--node-background-input: #272727;
|
||||
--node-text: #dadada;
|
||||
--node-text-dimmed: #b4b4b4;
|
||||
--node-selected: #ad9715;
|
||||
--node-selected-border: #8d7a0d;
|
||||
--node-add: #487c13;
|
||||
@@ -29,6 +30,7 @@
|
||||
--node-background-label: #e4e4e4;
|
||||
--node-background-input: #ffffff;
|
||||
--node-text: #000000;
|
||||
--node-text-dimmed: #2c2c2c;
|
||||
--node-selected: #f0e65e;
|
||||
--node-selected-border: #b9a327;
|
||||
--node-add: #9bd464;
|
||||
@@ -56,6 +58,7 @@
|
||||
--node-background-label: #e4e4e4;
|
||||
--node-background-input: #ffffff;
|
||||
--node-text: #000000;
|
||||
--node-text-dimmed: #2c2c2c;
|
||||
--node-selected: #f0e65e;
|
||||
--node-selected-border: #b9a327;
|
||||
--node-add: #9bd464;
|
||||
@@ -144,7 +147,8 @@
|
||||
|
||||
.node-error ~ select:last-child,
|
||||
.node-error ~ input:last-child,
|
||||
.node-error ~ input[list]:nth-last-child(2) {
|
||||
.node-error ~ input[list]:nth-last-child(2),
|
||||
.node-error + .fixed-list ~ input {
|
||||
border-color: var(--node-remove) !important;
|
||||
}
|
||||
|
||||
@@ -339,6 +343,11 @@ span.menu-item {
|
||||
color: var(--node-popup-text-dimmed);
|
||||
}
|
||||
|
||||
.node-message {
|
||||
color: var(--node-text-dimmed);
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
/* Node body and list entry */
|
||||
|
||||
.node {
|
||||
@@ -421,8 +430,13 @@ span.menu-item {
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
.fixed-list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.number-node input,
|
||||
.range-node input {
|
||||
.range-node input,
|
||||
.fixed-list ~ input {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user