diff --git a/app/globals.css b/app/globals.css index 43461e2..c67aef3 100644 --- a/app/globals.css +++ b/app/globals.css @@ -16,6 +16,7 @@ body { rgb(var(--background-end-rgb)) ) rgb(var(--background-start-rgb)); + } .grid-cols-4 { diff --git a/app/graphView.tsx b/app/graphView.tsx index 61ce345..a922542 100644 --- a/app/graphView.tsx +++ b/app/graphView.tsx @@ -65,7 +65,6 @@ const GraphView: React.FC = ({ upload, updateAdjacencyMatrix, in }, []); if(upload && !uploadMode) { - console.log(adjacencyMatrix); setUploadMode(true); } @@ -73,7 +72,6 @@ const GraphView: React.FC = ({ upload, updateAdjacencyMatrix, in const textareaValue = textareaRef.current?.value; const adj = stringToAdjacencyMatrix(textareaValue ?? ""); if(adj !== undefined) { - console.log(adj); setAdjacencyMatrix(adj); updateAdjacencyMatrix(adj); } diff --git a/app/page.tsx b/app/page.tsx index 9457a60..8fe185a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -45,16 +45,17 @@ export default function Home() { const [vertices, setVertices] = useState(Array.from(Array(adjacencyMatrix.length).keys()).map(i => (i + 1).toFixed(0))); return ( -
+
-
-
+
+
-
+
@@ -65,7 +66,7 @@ export default function Home() { ]} mutualExclusions={[ [0, 1, 2] ]} onChange={(states) => setSettings(settings.setEncoding(states))}> -
+
{ const newNum = parseInt(n); if(!isNaN(newNum) && newNum > 0) @@ -78,7 +79,7 @@ export default function Home() { }}>
-
+
setSettings(settings.setShareNoVertices(states))} all={true} title='The following paths may not share vertices' items={Array(settings.nPaths).fill(0).map((_, i) => (i + 1) + "")}> setSettings(settings.setShareNoVertices(states))} all={true} title='The following paths may not share edges' items={Array(settings.nPaths).fill(0).map((_, i) => (i + 1) + "")}>
-
+
setSettings(settings.setExactlyOnceEdges(edges))} title="The following edges must appear exactly once in each path" allVertices={vertices}> setSettings(settings.setAtLeastOnceEdges(edges))} title="The following edges must appear at least once in each path" allVertices={vertices}> setSettings(settings.setAtMostOnceEdges(edges))} title="The following edges must appear at most once in each path" allVertices={vertices}> diff --git a/app/style.module.css b/app/style.module.css index c03ee9e..0d6e7d2 100644 --- a/app/style.module.css +++ b/app/style.module.css @@ -3,4 +3,14 @@ border-radius: 5px; height: 60vh; width: 60vh; + position: relative; + left: 50%; + transform: translate(-50%, 0); } + +@media (max-width: 1024px) { + .canvas { + width: calc(100vw - 2.5rem); + height: calc(100vw - 2.5rem); + } +} \ No newline at end of file diff --git a/next.config.js b/next.config.js index 0ba7b42..8df1320 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: 'export' + output: 'export', + images: { unoptimized: true } }; module.exports = nextConfig; diff --git a/package-lock.json b/package-lock.json index d65b0ec..37bcbf9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4016,9 +4016,9 @@ } }, "node_modules/tailwindcss": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.6.tgz", - "integrity": "sha512-AKjF7qbbLvLaPieoKeTjG1+FyNZT6KaJMJPFeQyLfIp7l82ggH1fbHJSsYIvnbTFQOlkh+gBYpyby5GT1LIdLw==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.1.tgz", + "integrity": "sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==", "dev": true, "dependencies": { "@alloc/quick-lru": "^5.2.0", diff --git a/public/info.png b/public/info.png new file mode 100644 index 0000000..2c4648b Binary files /dev/null and b/public/info.png differ