ISH-Gruppe / screenario

Screenario - The screen for every scenario
https://screenar.io
GNU General Public License v3.0
2 stars 2 forks source link

Feat/ add whiteboard & minor modifications to BaseWIndow #45

Closed liam-k closed 2 years ago

liam-k commented 2 years ago

Closes #11

We have a working whiteboard! It’s not 100% styled, some things are still kinda ugly/unstyled and I’d like to find a better spot/styling for the tools in the sidebar. But more importantly, the resizing needs work. I’d like the canvas to resize automatically with the window but that’s really tricky since it’s essentially detached from everything.

(Literally all the react whiteboard libraries were outdated, overblown or just downright shitty, so I had to write my own in p5.js which doesn’t integrate well into the whole state stuff. It’s solvable though.)

Reviewer's task:

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
screenario-react ✅ Ready (Inspect) Visit Preview Aug 13, 2022 at 5:28PM (UTC)
liam-k commented 2 years ago

Ah, vercel build fails because I copied your WindowManager edits & RandomGenerator doesn’t exist in my branch yet. Shouldn’t be a problem.

s-gbz commented 2 years ago

Yeah, we need to talk about that whiteboard later :D

https://www.npmjs.com/package/react-fabricjs-whiteboard

liam-k commented 2 years ago

The one you linked is unusable. Doesn’t take any props or customizations. The aspect ratio you see in the example is literally the only prop it takes. Trust me, I’ve tried them all.