fix #370 Add "line" to the Darken & Lighten script

This commit is contained in:
zahuifan
2022-01-18 10:26:58 +08:00
parent 1e8ef02944
commit e1135d13fd
2 changed files with 2 additions and 2 deletions

View File

@@ -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()) {

View File

@@ -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()) {