diff --git a/.vscode/launch.json b/.vscode/launch.json
index a315c99..217e48b 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -55,9 +55,14 @@
"--resolution",
"256",
"--src",
- "./test/connected/lobby_ceiling.png",
+ "./tests/connected/lobby_ceiling.png",
"--dest",
- "./build/test.mcaddon",
+ "./build/lobby_ceiling.mcaddon",
+ "--pbr",
+ "--frames",
+ "1",
+ "--gridSize",
+ "16",
"--axis",
"y"
],
diff --git a/app/components/index.tsx b/app/components/index.tsx
index 75e236c..d9baa0a 100644
--- a/app/components/index.tsx
+++ b/app/components/index.tsx
@@ -33,7 +33,7 @@ export function DropImage({ onChange }: { onChange: (file: File) => void }) {
const className = cx(
"border-dashed border-2 border-gray-500 dark:border-gray-400 rounded-md flex flex-grow items-center justify-center cursor-pointer h-full min-h-40",
- dragging && "border-blue-500"
+ dragging && "border-blue-500",
);
return (
@@ -129,15 +129,17 @@ export function SelectPalette({
onChange={({ target }) => {
onChange(
Array.from((target as HTMLSelectElement).selectedOptions).map(
- (o) => o.value
- )
+ (o) => o.value,
+ ),
);
}}
>
{Object.keys(options).map((optGroup) => (
))}
@@ -170,7 +172,9 @@ export function SelectSize({
value={value}
>
{options.map((option) => (
-
+
))}
diff --git a/app/index.tsx b/app/index.tsx
index 4cfd7a3..20231ca 100644
--- a/app/index.tsx
+++ b/app/index.tsx
@@ -1,4 +1,4 @@
import { render } from "@hono/hono/jsx/dom";
import App from "./pages/app.tsx";
-render(, document.getElementById("app"));
\ No newline at end of file
+render(, document.getElementById("app"));
diff --git a/app/pages/app.tsx b/app/pages/app.tsx
index dcfc04a..b612054 100644
--- a/app/pages/app.tsx
+++ b/app/pages/app.tsx
@@ -54,7 +54,7 @@ export default function App() {
0,
0,
canvasRef.current.width,
- canvasRef.current.height
+ canvasRef.current.height,
);
ctx.drawImage(img, 0, 0, newWidth, newHeight);
}
@@ -82,7 +82,9 @@ export default function App() {
const url = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
- a.download = `${title.toLowerCase().replace(/\s+/g, "_")}.${isStructure ? "mcstructure" : "mcfunction"}`;
+ a.download = `${title.toLowerCase().replace(/\s+/g, "_")}.${
+ isStructure ? "mcstructure" : "mcfunction"
+ }`;
document.body.appendChild(a);
a.click();
a.remove();
@@ -98,7 +100,7 @@ export default function App() {
palettes.map(async (id) => {
const res = await fetch(`/db/${id}`);
return res.json() as Promise;
- })
+ }),
)
).flat();
@@ -160,9 +162,8 @@ export default function App() {
checked={axis === "y"}
onChange={(e) =>
setAxis(
- (e.target as HTMLInputElement).value === "y" ? "y" : "x"
- )
- }
+ (e.target as HTMLInputElement).value === "y" ? "y" : "x",
+ )}
/>{" "}
Ceiling / Floor
@@ -178,9 +179,8 @@ export default function App() {
checked={axis === "x"}
onChange={({ target }) =>
setAxis(
- (target as HTMLInputElement).value === "x" ? "x" : "y"
- )
- }
+ (target as HTMLInputElement).value === "x" ? "x" : "y",
+ )}
/>
Wall
@@ -188,7 +188,7 @@ export default function App() {