Duplicate a line (deep copy) and append it to the chart.
The copy's Name is set to <original.Name>_copy. Its father and zOrder are inherited unchanged.
Name
<original.Name>_copy
father
zOrder
The RPE chart (modified in place).
Index of the line to duplicate.
Copy notes as well (default: true). Pass false to copy only the line's animation events.
true
false
The index of the new line.
const newIdx = duplicateLine(chart, 0, false); // copy events onlychart.judgeLineList[newIdx]!.Name = 'Mirror'; Copy
const newIdx = duplicateLine(chart, 0, false); // copy events onlychart.judgeLineList[newIdx]!.Name = 'Mirror';
Duplicate a line (deep copy) and append it to the chart.
The copy's
Nameis set to<original.Name>_copy. ItsfatherandzOrderare inherited unchanged.