From 4c8f3ce5d6c8e9a104c45bed15b962d3f72abe60 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Thu, 12 Aug 2021 23:55:49 +0900 Subject: [PATCH] Skill Tree proof-of-concept --- src/App.js | 24 +++++++++++++++++ src/skilltree/skillTree.js | 53 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 src/skilltree/skillTree.js diff --git a/src/App.js b/src/App.js index 0342d8c..9ff2385 100644 --- a/src/App.js +++ b/src/App.js @@ -8,6 +8,8 @@ import { ExpandTooltip } from './components/ExpandTooltip'; import {XSquareFill, PlusCircle, LifePreserver, Server, CloudUploadFill, PatchCheck} from 'react-bootstrap-icons' +import { SkillTree } from './skilltree/skillTree'; + import { HashRouter, Switch, @@ -830,6 +832,28 @@ function App() { + + +
+
+
+ +
{APP_TITLE} diff --git a/src/skilltree/skillTree.js b/src/skilltree/skillTree.js new file mode 100644 index 0000000..78f7286 --- /dev/null +++ b/src/skilltree/skillTree.js @@ -0,0 +1,53 @@ +import { useRef,useEffect } from 'react'; +import { contextType } from 'react-modal'; + +function SkillTree(p) { + const canvasRef = useRef(null) + + useEffect(() => { + const canvas = canvasRef.current + const context = canvas.getContext('2d') + context.fillStyle = '#AA6666' + /*for (var x=0;x +} + +export {SkillTree} \ No newline at end of file