-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
302 lines (285 loc) · 18.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!DOCTYPE html>
<html lang="en">
<head>
<title>Snowcapped</title>
<meta property="og:title" content="Snowcapped" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://snowcapped.jacobsjo.eu" />
<meta property="og:image" content="https://snowcapped.jacobsjo.eu/icons/icon.png" />
<meta property="og:description"
content="A Minecraft: Java Edition 1.18+ dimension editor. Exports a multi-noise dimension file and a spline configuration." />
<meta name="description"
content="A Minecraft: Java Edition 1.18+ dimension editor. Exports a multi-noise dimension file and a spline configuration." />
<meta property="og:determiner" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#264653">
<link rel="icon" href="icons/icon.svg" sizes="any" types="image/svg+xml">
<link rel="stylesheet" href="style.css">
<link rel="preload" href="leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin="" as="style" onload="this.onload=null;this.rel='stylesheet'" />
<!--<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"-->
<link rel="preload" as="fetch" href="/minecraft_overworld_1_21_4.snowcapped.json" crossorigin="" />
<link rel="apple-touch-icon" href="/icons/icon_192.png">
<script
src="https://beamanalytics.b-cdn.net/beam.min.js"
data-token="93ad3a51-68ea-4039-8a8e-1cad878e5f8b"
async
>
</script>
<script type="module" src="src/main/app.ts"></script>
</head>
<body class="light">
<div id="main">
<div id="menu">
<div class="logo"><img alt="Snowcapped" src="images/header.svg" /></div>
<div class="button" id="newButton"><img alt="New" label="New" src="images/blank-file.svg" />
<div class="dropdown">
<div class="dropdown_entry" id="loadEmptyButton"><img alt="New" src="images/blank-file.svg" /><p>Empty</p></div>
<div class="dropdown_entry" id="loadVanilla119Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.19.x)</p></div>
<div class="dropdown_entry" id="loadVanilla120Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.20 - 1.21.3)</p></div>
<div class="dropdown_entry" id="loadVanilla1214Button"><img alt="New" src="images/blank-file.svg" /><p>Vanilla Overworld (1.21.4+)</p></div>
</div>
</div>
<div class="button" id="openButton" title="Open"><img alt="Open" src="images/open-file-folder.svg" /></div>
<div class="button" id="saveButton" title="Save"><img alt="Save" src="images/save.svg" /></div>
<div class="button" id="saveAsButton" title="Save As"><img alt="Save As" src="images/save-as.svg" /></div>
<div class="button" id="settingsButton" title="Settings" s><img alt="Settings" title="Settings"
src="images/settings-gear.svg" /></div>
<div class="help" id="help">
<div class="help-entry hidden" id="select"><span class="b">[Left Click]</span> Select</div>
<div class="help-entry hidden" id="paint"><span class="b">[Left Click]</span> Paint</div>
<div class="help-entry hidden" id="open-slice"><span class="b">[Left Click]</span> Open Slice</div>
<div class="help-entry hidden" id="reorder"><span class="b">[Drag]</span> Reorder</div>
<div class="help-entry hidden" id="paint-mode"><span class="b">[Ctrl]+[Left Click]</span> Paint only for
one Mode</div>
<div class="help-entry hidden" id="open-layout"><span class="b">[Ctrl]+[Left Click]</span> Open Layout
</div>
<div class="help-entry hidden" id="pick"><span class="b">[Middle Click]</span> Pick</div>
<div class="help-entry hidden" id="open"><span class="b">[Right Click]</span> Open</div>
<div class="help-entry hidden" id="remove"><span class="b">[Delete]</span> Remove</div>
<div class="help-entry hidden" id="copy"><span class="b">[Ctrl]+[C]</span> Copy Teleport Command</div>
</div>
<div class="button" id="extraMenu"><img alt="Menu" label="Menu" src="images/menu.svg" />
<div class="dropdown right">
<div class="dropdown_entry" id="toggleDarkmodeButton">
<img src="images/moon.svg" />
<p>Dark Mode</p>
</div>
<a href="https://github.com/jacobsjo/snowcapped/issues" target="_blank"><div class="dropdown_entry">
<img src="images/issue.svg" /><p>Report Issue</p>
</div></a>
<a href="https://github.com/jacobsjo/snowcapped/wiki" target="_blank"><div class="dropdown_entry"><img src="images/wiki.svg" />Wiki (Documentation)</div></a>
<a href="https://github.com/sponsors/jacobsjo/" target="_blank"><div class="dropdown_entry"><img src="images/sponsor.svg" />Sponsor</div></a>
<a href="https://jacobsjo.eu" target="_blank"><div class="dropdown_entry"><img src="images/menu.svg" />Other Tools</div></a>
<a href="https://jacobsjo.eu/about.html" target="_blank"><div class="dropdown_entry"><img src="images/about.svg" />About</div></a>
<a href="OTHER_LICENSES.txt" target="_blank"><div class="dropdown_entry"><img src="images/about.svg" />Licenses</div></a>
</div>
</div>
</div>
<div id="content">
<div class="main_content">
<div id="editor">
<div id="sidebar">
<div id="sidebar_menu">
<div class="sidebar_header">
<div class="name">Dimension:</div>
<img class="button" id="splines_grid_view_button" title="Grid View"
src="images/grid-view.svg">
</div>
<div class="sidebar_entry_list" id="splines">
<div class="sidebar_entry spline hidden" id="offset">
<img class="grid" src="images/offset-icon.svg" alt="">
<span class="name">Offset</span>
<img class="button edit edit_grid_button important" src="images/grid.svg"
title="Edit Grid" />
</div>
<div class="sidebar_entry spline hidden" id="factor">
<img class="grid" src="images/factor-icon.svg" alt="">
<span class="name">Factor</span>
<img class="button edit edit_grid_button important" src="images/grid.svg"
title="Edit Grid" />
</div>
<div class="sidebar_entry spline hidden" id="jaggedness">
<img class="grid" src="images/jaggedness-icon.svg" alt="">
<span class="name">Jaggedness</span>
<img class="button edit edit_grid_button important" src="images/grid.svg"
title="Edit Grid" />
</div>
<div class="sidebar_entry spline open" id="dimension">
<img class="grid" src="images/biomes-icon.svg" alt="">
<span class="name">Biomes</span>
<img class="button edit edit_grid_button important" src="images/grid.svg"
title="Edit Grid" />
</div>
</div>
<!--<div class="sidebar_entry assign_slices_button open" id="assign_slices_button">Assign Slices
</div>-->
<div class="sidebar_header">
<div class="name">Slices: </div>
<img class="button" id="slices_grid_view_button" title="Grid View"
src="images/grid-view.svg">
<img class="button" id="add_slices_button" title="Add Slice" src="images/add.svg">
<img class="button" id="edit_slices_grid_button" title="Edit Slices Grid"
src="images/grid.svg">
<!--<img class="button" id="edit_splines_button" title="Edit Splines" src="images/spline.svg">-->
<img class="button hide" id="hide_all_slices_button" title="Hide/Show all Slices"
src="images/eye.svg">
</div>
<div class="sidebar_entry_list" id="slices"></div>
<div class="sidebar_header">
<div class="name">Layouts: </div>
<img class="button" id="layouts_grid_view_button" title="Grid View"
src="images/grid-view.svg">
<img class="button" id="add_layout_button" title="Add Layout" src="images/add.svg">
<img class="button" id="edit_layout_grid_button" title="Edit Layout Grid"
src="images/grid.svg">
<img class="button hide" id="hide_all_layouts_button" title="Hide/Show all Slices"
src="images/eye.svg">
</div>
<div class="sidebar_entry_list" id="layouts"></div>
<div class="sidebar_header">
<div class="name">Biomes: </div>
<img class="button" id="biomes_grid_view_button" title="Grid View"
src="images/grid-view.svg">
<img class="button" id="add_biome_button" title="Add Biome" src="images/add.svg">
<img class="button hide" id="hide_all_biomes_button" title="Hide/Show all Biomes"
src="images/eye.svg">
</div>
<input type="text" placeholder="Seach..." class="search_bar" title="Seach for Biomes"
id="biome_search_bar">
<div class="sidebar_entry_list" id="biomes"></div>
<div class="label">Unused Vanilla Biomes</div>
<div class="sidebar_entry_list" id="vanilla_biomes"></div>
<div class="spacer" id="sidebar_bottom_spacer" style="height: 0px;"></div>
</div>
<div class="closable vertical hidden" id="splineDisplay">
<div class="button"></div>
<div class="content">
<svg id="splineDisplaySvg" width="500" height="280">
<rect class="water" />
<path class="terrain" />
<path class="factor" />
<path class="roughness" />
<g class="weirdnesses" />
<line class="weirdness" />
</svg>
</div>
</div>
</div>
<div id="layoutEditor">
<div class="titleBar">
<img class="button hidden" id="backButton" src="images/back-arrow.svg" />
<input type="text" id="layoutName" aria-label="Name" />
</div>
<div class="axis_label" id="horizontal_label">Humidity</div>
<div class="label_with_content">
<div class="axis_label">
<div id="vertical_label">Temperature</div>
</div>
<div class="main_editor_panel">
<div class="main_editor_panel_div" id="layoutEditorDiv">
<div style="display:none;">
<img id="aModeImg" src="images/mode_A.png">
<img id="bModeImg" src="images/mode_B.png">
</div>
<canvas tabindex='0' id="layoutEditorCanvas" width="1300" height="1300"></canvas>
</div>
<div class="main_editor_panel_div" id="gridEditorDiv">
<canvas tabindex='0' id="gridEditorCanvas" width="1300" height="1300"></canvas>
</div>
<div class="main_editor_panel_div" id="splineEditorDiv">
</div>
</div>
</div>
</div>
<div class="tooltip hidden" id="layoutEditorTooltip">
<div class="tooltip_line">
<div class="name">minecraft:extreme_hills</div>
</div>
<div class="tooltip_line noises">
<div class="noise_x">Continentalness: [-0.3, 0.3]</div>
<div class="noise_y">Erosion: [-0.3, 0.3]</div>
</div>
</div>
</div>
<div class="hidden" id="settings">
<div class="setting"> <label><span class="description">Target datapack version</span>
<input type="number" id="target_datapack_version">
</label></div>
<div class="setting"> <label><span class="description">Dimension Name:</span><input type="text"
id="dimension_name" /></label></div>
<div class="setting"> <label><span class="description">Noise Settings:</span>
<select id="noise_settings_name">
</select>
</label><span class="warning" id="missing_noise_setting" title="Select different noise_settings or load datapack containing these noise_settings">missing noise settings</span> </div>
<div class="setting"> <label><span class="description">Dimension Type:</span><input type="text"
id="dimension_type_name" /></label></div>
<div class="setting"> <label><span class="description">Enable Splines-Editor:</span>
<input type="checkbox" id="export_splines" />
</label></div>
<div class="setting"> <label><span class="description">Export biome Colors</span>
<input type="checkbox" id="export_biome_colors" />
</label></div>
<div class="setting"><span class="description">Datapacks:</span>
<div id="datapack_list">
<div id="add_datapack">
<div class="button" title="Add Zip Datapack" id="addZipDatapackButton"><img
src="images/add-zip.svg" /></div>
<div class="button" title="Add Folder Datapack" id="addDirectoryDatapackButton"><img
src="images/add-folder.svg" /></div>
</div>
</div>
</div>
</div>
</div>
<div class="closable horizontal" id="visualization_panel">
<div class="button"></div>
<div class="content">
<div id="visualization">
<div id="visualization_map"></div>
<div class="visualization_controls">
<img class="map_button enabled" id="toggleHillshadeButton" src="images/mountain.svg"
title="Toggle Hillshade" />
<div class="height_selection">
<div class="map_label" id="mapHeightLabel">Surface</div>
<input class="map_range" id="mapHeightSelection" type="range" value="200" min="-64"
max="200" orient="vertical" aria-label="Height Selection" />
</div>
</div>
<div class="horizontal_visualization_controls">
<div class="map_setting"> <label><span class="description">Seed:</span><input
id="mapSeedInput" type="number" step=1 /></label></div>
<div class="map_setting"> <label><span class="description"
title="Input density functions are 2d, depth is linear">2d Input:</span><input
id="map2dInput" type="checkbox" checked /></label></div>
<img class="map_button" id="refreshButton" src="images/refresh.svg"
title="Refresh" />
</div>
<img class="map_button" id="mapFullscreenButton" alt="Fullscreen" title="Fullscreen"
src="images/expand-arrows.svg" />
</div>
</div>
<div class="tooltip hidden" id="visualizationTooltip">
<div class="tooltip_line">
<div class="position">X: 0, Z: 0</div>
</div>
<div class="tooltip_line">
<div class="noise_values">C: 0, E: 0, W: 0, T: 0, H: 0</div>
</div>
<div class="tooltip_line">
<div class="name slice">Mid Slice</div>
<img class="icon mode" />
</div>
<div class="tooltip_line">
<div class="name layout">Middle</div>
</div>
<div class="tooltip_line">
<div class="name biome">minecraft:extreme_hills</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>