Add a library-side view class for the canvas.