Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make CanvasDrawer a normal class #744

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft

fix: make CanvasDrawer a normal class #744

wants to merge 22 commits into from

Conversation

aminya
Copy link
Collaborator

@aminya aminya commented Jan 2, 2021

Description

Make CanvasDrawer class independent, and store the class instance in CanvasDrawer property

Benefits

This decoupling allows doing further optimizations with the code. For example, not calling the state functions every time, and make them once during the constructor. It also allows removing all the mixin hackery and mixto.

It makes the who classes independent, so we know which properties are actually for CanvasDrawer.

@aminya aminya changed the title fix: make CanvasDrawer to a normal class fix: make CanvasDrawer a normal class Mar 23, 2021
@aminya aminya force-pushed the canvas-drawer branch 5 times, most recently from 6e3b9d2 to eb7a8c6 Compare April 1, 2021 20:50
@aminya
Copy link
Collaborator Author

aminya commented Apr 2, 2021

This is mostly working. One of the tests is failing which I need to debug.

Copy link
Collaborator

@UziTech UziTech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM whenever the tests are passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants