This is a simple web project that is made with an aim to learn about canvas element of html. Now, this project is open to all of the amazing contributors.
Currently, the canvas only supports a single text element. To enhance the functionality and versatility of our text editor, we should implement support for multiple text elements on the canvas.
Proposed Changes
Modify the data structure to store multiple text elements
Update the rendering logic to display all text elements
Add a new "Add Text" button to create additional text elements
Modify the existing "Save" button to update the currently selected text element
Implement a selection mechanism for choosing which text element to edit
Implementation Details
Create a new array textElements to store multiple text objects
Update addToSnapSorts() to handle multiple elements
Create new functions addTextElement() and renderAllElements()
Modify updateCanvas() to work with multiple elements
Add a new event listener for the "Add Text" button
Update the HTML to include the new "Add Text" button
Description
Currently, the canvas only supports a single text element. To enhance the functionality and versatility of our text editor, we should implement support for multiple text elements on the canvas.
Proposed Changes
Implementation Details
textElements
to store multiple text objectsaddToSnapSorts()
to handle multiple elementsaddTextElement()
andrenderAllElements()
updateCanvas()
to work with multiple elementskindly assign this issue to me