add canvas block api