flatland.utils.editor_view module#
- class flatland.utils.editor_view.View(editor: AbstractModel, sGL='MPL', screen_width=800, screen_height=800)[source]#
Bases:
AbstractView
The Jupyter Editor View - creates and holds the widgets comprising the Editor.
- drag_path_element(x, y)[source]#
Add another x,y point to a drag gesture. Just draw a black square on the in-memory copy of the image. With ipyCanvas, we need to adjust the Event x,y coordinates to image x,y.
- redisplay_image()[source]#
Redisplay the writable image in the Canvas. Called during image editing, when minor changes are made directly to the image, between redraws.