gniziemazity / advanced_drawing_app

Making an advanced drawing app during my live streams:
MIT License
28 stars 24 forks source link

Shape Factory / Event Handling refactor #9

Closed michael-golden closed 3 months ago

michael-golden commented 3 months ago

Introduced a shape factory class that has the responsibility of loading shapes by type.

ShapeTool event listeners were moved to each tool class - where each tool can configure the event listeners needed when the tool is selected.