add canvas context2D's attrs