HTMLCanvasElement should be calculate