From e1135d13fd1d21f9cf86bc06ab475ebc294d7f20 Mon Sep 17 00:00:00 2001 From: zahuifan Date: Tue, 18 Jan 2022 10:26:58 +0800 Subject: [PATCH] fix #370 Add "line" to the Darken & Lighten script --- ea-scripts/Darken background color.md | 2 +- ea-scripts/Lighten background color.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ea-scripts/Darken background color.md b/ea-scripts/Darken background color.md index 90615eb..e943355 100644 --- a/ea-scripts/Darken background color.md +++ b/ea-scripts/Darken background color.md @@ -19,7 +19,7 @@ The color conversion method was copied from [color-convert](https://github.com/Q const elements = ea .getViewSelectedElements() .filter((el) => - ["rectangle", "ellipse", "diamond", "image"].includes(el.type) + ["rectangle", "ellipse", "diamond", "image", "line"].includes(el.type) ); ea.copyViewElementsToEAforEditing(elements); for (const el of ea.getElements()) { diff --git a/ea-scripts/Lighten background color.md b/ea-scripts/Lighten background color.md index 5d37c15..47cf0e3 100644 --- a/ea-scripts/Lighten background color.md +++ b/ea-scripts/Lighten background color.md @@ -19,7 +19,7 @@ The color conversion method was copied from [color-convert](https://github.com/Q const elements = ea .getViewSelectedElements() .filter((el) => - ["rectangle", "ellipse", "diamond", "image"].includes(el.type) + ["rectangle", "ellipse", "diamond", "image", "line"].includes(el.type) ); ea.copyViewElementsToEAforEditing(elements); for (const el of ea.getElements()) {