Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the code #59

Open
katjaq opened this issue Oct 13, 2017 · 2 comments
Open

Split the code #59

katjaq opened this issue Oct 13, 2017 · 2 comments

Comments

@katjaq
Copy link
Collaborator

katjaq commented Oct 13, 2017

currently, all the main code is in one enormous file called

microdraw.js

basic idea for the structure:

into main parts:

  • 1: view

    • DZI
    • scalebar
    • plugin for screenshots
  • 2: paint

    • in paint : ontology
      and the paint tools
      and the paint tools all separately
  • 3: database

  • 4: project handling

  • 5: maybe a user page

  • 6 backend

save tool will interact with database but also with the others --> using jquery extend to create one big object

@katjaq
Copy link
Collaborator Author

katjaq commented Oct 13, 2017

great suggestion coming up in our little hackathon to make the tool buttons into plugins so that you can configure the tool bar :D <3
!!! Thanks!!

@r03ert0
Copy link
Owner

r03ert0 commented Oct 14, 2017

Pull request #74 shows how to encapsulate 2 tools. The same pattern should work for all tools that only require a click handler: bezier2polygon, delete, etc.

ntraut pushed a commit to ntraut/microdraw that referenced this issue Aug 26, 2022
Rely on nwl-components for user, settings and new project pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants