add docs to canvas.update