• Home
  • Raw
  • Download

Lines Matching refs:currentRow

222         let currentRow = event.detail.row;
223 if (currentRow.collect) {
224 collectHandlerYes(sp,currentRow,event);
226 collectHandlerNo(sp,currentRow,event);
232 if (itln[0].rowEL === currentRow) {
239 } else if (itln[1].rowEL === currentRow) {
250 currentRow.setAttribute('draggable', 'true');
251 currentRow.addEventListener('dragstart', () => {
252 sp.currentClickRow = currentRow;
254 currentRow.addEventListener('dragover', (ev: any) => {
258 currentRow.addEventListener('drop', collectHandlerDrop(sp,currentRow));
259 currentRow.addEventListener('dragend', collectHandlerDragEnd(sp));
262 function collectHandlerNo(sp: SpSystemTrace, currentRow: any, event: any) {
263 sp.favoriteChartListEL?.deleteRow(currentRow, event.detail.type !== 'auto-collect');
265 let rowIndex = sp.collectRows.indexOf(currentRow);
270 let row = currentRow;
288 `div[row-id='${currentRow.rowId}-${currentRow.rowType}']`
291 currentRow.name = currentRow.tampName;
293 sp.rowsEL!.replaceChild(currentRow, replaceRow);
294 currentRow.style.boxShadow = `0 10px 10px #00000000`;
297 function collectHandlerYes(sp: SpSystemTrace, currentRow: any, event: any){
300 return find === currentRow;
303 sp.collectRows.push(currentRow);
306 replaceRow.setAttribute('row-id', currentRow.rowId + '-' + currentRow.rowType);
308 replaceRow.setAttribute('row-parent-id', currentRow.rowParentId);
310 if (!currentRow.hasAttribute('scene')) {
311 currentRow.setAttribute('row-hidden', '');
313 currentRow.removeAttribute('row-hidden');
316 let rowParentId = currentRow.rowParentId;
317 currentRow.tampName = currentRow.name;
323 parentRow?.name != currentRow.name &&
327 !currentRow.name.includes(parentRow.name)
329 currentRow.name += '(' + parentRow.name + ')';
333 if (!currentRow.hasParentRowEl) {
334 sp.rowsEL!.replaceChild(replaceRow, currentRow);
336 …sp.favoriteChartListEL?.insertRow(currentRow, sp.currentCollectGroup, event.detail.type !== 'auto-…
338 function collectHandlerDrop(sp: SpSystemTrace, currentRow: HTMLDivElement|undefined|null) {
340 …favoriteChartListEL !== null && sp.currentClickRow !== null && sp.currentClickRow !== currentRow) {
341 let rect = currentRow!.getBoundingClientRect();
344 sp.favoriteChartListEL!.insertRowBefore(sp.currentClickRow!, currentRow!);
347 … sp.favoriteChartListEL!.insertRowBefore(sp.currentClickRow!, currentRow!.nextSibling!);