Sets the drawing function for the canvas Canvases don't have a drawing function by default, so it's safe to draw directly on them as they'll never become invalidated. Once a drawing function is set, any bindings it may have will cause it to become invalidated if they change. Additionally, setting a drawing function will invalidate the canvas.
(&self, draw: DrawingFn)
source not stored for this graph (policy: none)