MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / reorderTab

Function reorderTab

src/handlers/editorFileTab.js:310–320  ·  view source on GitHub ↗
($insertBefore)

Source from the content-addressed store, hash-verified

308}
309
310function reorderTab($insertBefore) {
311 const previousRects = captureVisualPositions($parent);
312
313 if ($insertBefore) {
314 $parent.insertBefore($tab, $insertBefore);
315 } else {
316 $parent.appendChild($tab);
317 }
318
319 animateTabReorder($parent, previousRects);
320}
321
322/**
323 * Captures where each tab visually is right now (including mid-animation

Callers 2

updateDragPreviewFunction · 0.85

Calls 2

captureVisualPositionsFunction · 0.85
animateTabReorderFunction · 0.85

Tested by

no test coverage detected