You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer, I want to refactor the tool system. The code is all over the place and adding new tools is tedious and error-prone. Refactoring should improve code quality, thus making the addition of new tools easier.
Implementation idea
a base class M2Tool with methods activate, userAction{ClickAt:,MoveDrawing:,StopDrawing}, deactivate
subclass M2BrushTool (pencil, eraser, circle, triangle) with a Pen
subclass M2MorphTool with an M2TemporaryGeometricMorph
As a developer, I want to refactor the tool system. The code is all over the place and adding new tools is tedious and error-prone. Refactoring should improve code quality, thus making the addition of new tools easier.
Implementation idea
M2Tool
with methodsactivate
,userAction{ClickAt:,MoveDrawing:,StopDrawing}
,deactivate
M2BrushTool
(pencil, eraser, circle, triangle) with aPen
M2MorphTool
with anM2TemporaryGeometricMorph
M2GeometricTool
(rectangle, ellipse, triangle, n-gon (Add Tool to create polygons with a customizable number of vertices #117)) for commiting the drawn shape teaching/SketchMorph2M2SelectionTool
(rectangle, lasso) for copying the drawn shapeThe text was updated successfully, but these errors were encountered: