From eb2810ba6815227c9cb614e8e303ed525d0b2f30 Mon Sep 17 00:00:00 2001 From: lynn Date: Sun, 15 Oct 2023 11:47:58 +0800 Subject: [PATCH] chore: remove log --- src/builder/gradient/linear.ts | 6 ------ src/utils.ts | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/builder/gradient/linear.ts b/src/builder/gradient/linear.ts index d767ee98..23373f43 100644 --- a/src/builder/gradient/linear.ts +++ b/src/builder/gradient/linear.ts @@ -98,12 +98,6 @@ export function buildLinearGradient( length = diagonal * cosA } - console.log( - calcDegree( - `${parsed.orientation.value.value}${parsed.orientation.value.unit}` - ), - parsed.orientation - ) calc( (calcDegree( `${parsed.orientation.value.value}${parsed.orientation.value.unit}` diff --git a/src/utils.ts b/src/utils.ts index d77f899c..55c410f6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -108,8 +108,6 @@ export function lengthToNumber( export function calcDegree(deg: string) { const parsed = new CssDimension(deg) - console.log(parsed) - switch (parsed.unit) { case 'deg': return parsed.value