From ccf81efa7ba703f43a34cf58de54c14c3ae73ccc Mon Sep 17 00:00:00 2001 From: zahuifan Date: Tue, 15 Feb 2022 09:56:45 +0800 Subject: [PATCH] fix: only wraps the first element in 1.6.10 --- ea-scripts/Box Each Selected Groups.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ea-scripts/Box Each Selected Groups.md b/ea-scripts/Box Each Selected Groups.md index ca33cec..18fe384 100644 --- a/ea-scripts/Box Each Selected Groups.md +++ b/ea-scripts/Box Each Selected Groups.md @@ -130,10 +130,10 @@ for(const elements of groups) { ea.copyViewElementsToEAforEditing(elements); ea.addToGroup([id].concat(elements.map((el)=>el.id))); - ea.addElementsToView(false); - ea.reset(); } +ea.addElementsToView(false); + function recalculateStartPointOfLine(line, el) { const aX = el.x + el.width/2; const bX = line.x + line.points[1][0];