MCPcopy
hub / github.com/mathuo/dockview / moveView

Method moveView

packages/dockview-core/src/splitview/splitview.ts:664–672  ·  view source on GitHub ↗
(from: number, to: number)

Source from the content-addressed store, hash-verified

662 }
663
664 public moveView(from: number, to: number): void {
665 const cachedVisibleSize = this.getViewCachedVisibleSize(from);
666 const sizing =
667 typeof cachedVisibleSize === 'undefined'
668 ? this.getViewSize(from)
669 : Sizing.Invisible(cachedVisibleSize);
670 const view = this.removeView(from, undefined, true);
671 this.addView(view, sizing, to);
672 }
673
674 public layout(size: number, orthogonalSize: number): void {
675 const previousSize = Math.max(this.size, this._contentSize);

Callers 1

movePanelMethod · 0.45

Calls 4

getViewSizeMethod · 0.95
removeViewMethod · 0.95
addViewMethod · 0.95

Tested by

no test coverage detected