|
|
|
@ -456,13 +456,25 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
|
|
|
|
|
|
await CommandWrap(async () =>
|
|
|
|
|
{
|
|
|
|
|
let cuGourp = curveLinkGroup(finalCurve);
|
|
|
|
|
if (cuGourp)
|
|
|
|
|
const colorIndexMap = new Map<number, Curve[]>();
|
|
|
|
|
|
|
|
|
|
for (const curve of finalCurve)
|
|
|
|
|
{
|
|
|
|
|
const colorIndex = curve.ColorIndex;
|
|
|
|
|
if (!colorIndexMap.has(colorIndex))
|
|
|
|
|
colorIndexMap.set(colorIndex, [curve]);
|
|
|
|
|
else
|
|
|
|
|
colorIndexMap.get(colorIndex).push(curve);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const cuGroup = Array.from(colorIndexMap.values())
|
|
|
|
|
.flatMap(curveGroup => curveLinkGroup(curveGroup));
|
|
|
|
|
|
|
|
|
|
if (cuGroup)
|
|
|
|
|
{
|
|
|
|
|
let knifeSizeMap = new Map<string, number>();
|
|
|
|
|
const rightStore = RightPanelStore.GetInstance();
|
|
|
|
|
|
|
|
|
|
for (let g of cuGourp)
|
|
|
|
|
for (let g of cuGroup)
|
|
|
|
|
{
|
|
|
|
|
for (let c of g)
|
|
|
|
|
{
|
|
|
|
|