From 1762d6e629426b5887074d794ae8df88fe484898 Mon Sep 17 00:00:00 2001 From: walker Date: Fri, 1 Sep 2023 17:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlgraphic/plugins/CommonMousePlugin.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/jlgraphic/plugins/CommonMousePlugin.ts b/src/jlgraphic/plugins/CommonMousePlugin.ts index 3aec9e8..8ca6ce7 100644 --- a/src/jlgraphic/plugins/CommonMousePlugin.ts +++ b/src/jlgraphic/plugins/CommonMousePlugin.ts @@ -104,21 +104,11 @@ export class CommonMouseTool extends AppInteractionPlugin { private updateBoxLineColor(cp: ICanvasProperties) { // 根据画布背景调整线色 const color = new Color(cp.backgroundColor); + // 对比色 const r = 1 - color.red; const g = 1 - color.green; const b = 1 - color.blue; - // const cn = 0xffffff - color.toNumber(); this._boxLineColor.setValue([r, g, b]); - console.log( - '框选线色', - color.red, - color.green, - color.blue, - this._boxLineColor.red, - this._boxLineColor.green, - this._boxLineColor.blue, - this._boxLineColor - ); } bind(): void {