diff --git a/src/App.js b/src/App.js
index 8945619..6fa5dc4 100644
--- a/src/App.js
+++ b/src/App.js
@@ -6,7 +6,7 @@ import Helmet from 'react-helmet'
import {XSquareFill, PlusCircle, LifePreserver, Server, CloudUploadFill} from 'react-bootstrap-icons'
-import { SkillTree } from './skilltree/skillTree';
+import { SkillTreeEditor } from './skilltree/skillTreeEditor'
import {
HashRouter,
@@ -753,9 +753,6 @@ function App() {
const [LOGGEDINUSER,setLOGGEDINUSER] = useState("")
const [LOGGEDINHASH,setLOGGEDINHASH] = useState("")
- const [gridDimensionsX,setGridDimensionsX] = useState(5)
- const [gridDimensionsY,setGridDimensionsY] = useState(5)
-
function GetData(table,row,col,id){
var data = id?DATAID:DATA
@@ -835,29 +832,7 @@ function App() {
-
-
-
-
-
-
- Width: {setGridDimensionsX(Number(f.currentTarget.value))}} value={gridDimensionsX}/>
- Height: {setGridDimensionsY(Number(f.currentTarget.value))}} value={gridDimensionsY}/>
+
diff --git a/src/skilltree/skillTree.js b/src/skilltree/skillTree.js
index 6fa753a..30d544a 100644
--- a/src/skilltree/skillTree.js
+++ b/src/skilltree/skillTree.js
@@ -7,8 +7,8 @@ function SkillTree(p) {
const [height,setHeight] = useState(0)
useEffect(() => {
- setWidth(p.gridSize[0]*p.gridDimensionsX+p.gridPadding[0]*(p.gridDimensionsX-1))
- setHeight(p.gridSize[1]*p.gridDimensionsY+p.gridPadding[1]*(p.gridDimensionsY-1))
+ setWidth(p.gridSizeX*p.gridDimensionsX+p.gridPaddingX*(p.gridDimensionsX-1))
+ setHeight(p.gridSizeY*p.gridDimensionsY+p.gridPaddingY*(p.gridDimensionsY-1))
}, [p.skillLines,p.gridSize,p.gridPadding,p.gridDimensionsX,p.gridDimensionsY])
useEffect(()=>{
@@ -16,13 +16,6 @@ function SkillTree(p) {
const context = canvas.getContext('2d')
context.clearRect(0,0,width,height)
context.fillStyle = '#AA6666'
- /*for (var x=0;x
+}
+
+export {SkillTreeEditor}
\ No newline at end of file