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

Method setViewVisible

packages/dockview-core/src/gridview/gridview.ts:889–904  ·  view source on GitHub ↗
(location: number[], visible: boolean)

Source from the content-addressed store, hash-verified

887 }
888
889 setViewVisible(location: number[], visible: boolean): void {
890 if (this.hasMaximizedView()) {
891 this.exitMaximizedView();
892 }
893
894 const [rest, index] = tail(location);
895 const [, parent] = this.getNode(rest);
896
897 if (!(parent instanceof BranchNode)) {
898 throw new Error('Invalid from location');
899 }
900
901 this._onDidViewVisibilityChange.fire();
902
903 parent.setChildVisible(index, visible);
904 }
905
906 public moveView(parentLocation: number[], from: number, to: number): void {
907 if (this.hasMaximizedView()) {

Callers 3

setVisibleMethod · 0.45
setChildVisibleMethod · 0.45
setVisibleFunction · 0.45

Calls 6

hasMaximizedViewMethod · 0.95
exitMaximizedViewMethod · 0.95
getNodeMethod · 0.95
tailFunction · 0.90
setChildVisibleMethod · 0.80
fireMethod · 0.65

Tested by

no test coverage detected