From 7c9497d1019df0af24a5157ab9d3e4c64df09350 Mon Sep 17 00:00:00 2001 From: CPPAlien Date: Fri, 26 Jul 2019 14:37:20 +0800 Subject: [PATCH] remove log --- lib/gradient.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/gradient.js b/lib/gradient.js index 77daed2..9394004 100644 --- a/lib/gradient.js +++ b/lib/gradient.js @@ -48,11 +48,11 @@ const dir = direction && direction[1] ? parseFloat(direction[1]) : 0; let coordinate; switch (dir) { - case 0: console.log('case 0:'); coordinate = [0, -height / 2, 0, height / 2]; break; - case 90: console.log('case 90:'); coordinate = [width / 2, 0, -width / 2, 0]; break; - case -90: console.log('case -90:'); coordinate = [-width / 2, 0, width / 2, 0]; break; - case 180: console.log('case 180:'); coordinate = [0, height / 2, 0, -height / 2]; break; - case -180: console.log('case -180:'); coordinate = [0, -height / 2, 0, height / 2]; break; + case 0: coordinate = [0, -height / 2, 0, height / 2]; break; + case 90: coordinate = [width / 2, 0, -width / 2, 0]; break; + case -90: coordinate = [-width / 2, 0, width / 2, 0]; break; + case 180: coordinate = [0, height / 2, 0, -height / 2]; break; + case -180: coordinate = [0, -height / 2, 0, height / 2]; break; default: let x1 = 0; let y1 = 0;