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

Should plugin have access to canvas? #24

Open
hsauro opened this issue Sep 20, 2020 · 1 comment
Open

Should plugin have access to canvas? #24

hsauro opened this issue Sep 20, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@hsauro
Copy link
Collaborator

hsauro commented Sep 20, 2020

Should a plugin have access to the canvas so that it can add additional visual aspects to the canvas? eg a plugin might draw a bar graph next to a node to indicate the concentration of the node.

@hsauro hsauro added the enhancement New feature or request label Sep 20, 2020
@evilnose
Copy link
Owner

Instead of drawing directly to canvas, I think the better approach is to use the CanvasElement base class, which I've used to represent nodes, reactions, etc. They have event handlers (for mouse clicking, painting, etc.) and have necessary functions to act as sort of canvas "widgets".

What is currently left to be done is to expose the CanvasElement class to the user and perhaps provide some examples in the documentation.

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

No branches or pull requests

2 participants