From 7575146458434a1b54b183de4475538902cb9b15 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Thu, 1 Apr 2021 10:44:40 +0100 Subject: [PATCH] refactor(colors): minor updates --- packages/color/src/defcolor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/color/src/defcolor.ts b/packages/color/src/defcolor.ts index d4e053a0b5..f5cff7c1c3 100644 --- a/packages/color/src/defcolor.ts +++ b/packages/color/src/defcolor.ts @@ -1,4 +1,4 @@ -import type { IDeref, NumericArray } from "@thi.ng/api"; +import type { NumericArray } from "@thi.ng/api"; import { implementsFunction, isArrayLike, @@ -158,7 +158,7 @@ export const defColor = ( ? fromColor(src, (src).mode, xs) : new $Color(src, ...xs) : implementsFunction(src, "deref") - ? fromColor((>src).deref(), (src).mode, xs) + ? fromColor(src.deref(), (src).mode, xs) : isNumber(src) ? xs.length && xs.every(isNumber) ? new $Color(...ensureArgs([src, ...xs]))