This project was bootstrapped with Create React App.
- 羅寶瑩
- Po Ying, Law
你所實作的網站如何被測試
Please enter the following URL to test. https://gleeful-malabi-04596c.netlify.app/
你所實作的加分作業項目,以及如何觸發它
-
The following actions can be undone and redone.
- Draw a line.
- Delete a line.
- Move a line.
- Changing the border color
- Changing the border width
-
The following actions cannot be undone and redone.
- Changing the fill color of the selected line will not be added to the command list stack.
- Press Ctrl+Z to undo.
- Press Ctrl+Y to redo.
認為此作業最難實作的部分與原因
-
Understanding the sample code: One of the difficulties in this assignment is understanding the provided sample code. It is important to comprehend how the program works and how the command object and list are manipulated in order to write code without encountering errors.
-
Handling repeated trigger actions: When dealing with actions such as changing the border width (slider) and moving shapes, it's important to address the issue of continuous triggering in the
changeCurrBorderColor()andmoveShape()functions. To prevent the creation of a large number of command objects and to ensure proper functionality for redoing actions, it is necessary to create a separate function. This function should be called after the moving or changing action has been completed.
其他與軟體設計相關之感興趣內容



