Add node type: drawing #27
Labels
No Label
Bug
Deployed to: Production
Deployed to: Staging
Feature Request
Obsolete
Out-there Idea
Ready to Deploy
Regression
Scope: Code Editor
Scope: Databases
Scope: Files
Scope: Forms
Scope: Menu & Navigation
Scope: Plugins
Scope: UI Cleanup
Scope: WYSIWYG
Under Development
Won't Fix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Noded/frontend#27
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a new node type which embeds an HTML5 canvas.
Should be pretty straightforward to get this up and running using the HTML5 canvas.
Create a new node type that adds a canvas of a pre-defined size. Allow the user to re-size. (Will need to horizontally scroll on smaller devices.)
This stack overflow thread has some examples of setting up basic drawing events for the canvas. Should be able to do something similar in Angular.
Allow multiple "pages" which are just separate canvases.
Will need to come up with a way to save and restore canvas data. (
ctx.getImageData()
from the canvas?)As an additional enhancement, allow users to upload PDFs which will be imported into the drawing node.
This should make a call to the server to use the
pdf-image
Node package to convert the PDF to a series of images which are then used as the background of the canvas. Each image is a "page" in the canvas.Not sure if we will be able to do this in-line with the request, or if it should log a job. Will need to test.
Allow opening the drawing node as a full-screen node. Like the database and file-box which should make it a full-screen modal with its own close button. This will make it easier to use on smaller screens.
Also, need to allow users to add text boxes and maybe KaTeX as images?
Might also want to enable the user to re-export the annotation as a PDF.