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

Method constructor

packages/dockview-core/src/gridview/leafNode.ts:94–119  ·  view source on GitHub ↗
(
        public readonly view: IGridView,
        readonly orientation: Orientation,
        orthogonalSize: number,
        size = 0
    )

Source from the content-addressed store, hash-verified

92 }
93
94 constructor(
95 public readonly view: IGridView,
96 readonly orientation: Orientation,
97 orthogonalSize: number,
98 size = 0
99 ) {
100 this._orthogonalSize = orthogonalSize;
101 this._size = size;
102
103 this._disposable = this.view.onDidChange((event) => {
104 if (event) {
105 this._onDidChange.fire({
106 size:
107 this.orientation === Orientation.VERTICAL
108 ? event.width
109 : event.height,
110 orthogonalSize:
111 this.orientation === Orientation.VERTICAL
112 ? event.height
113 : event.width,
114 });
115 } else {
116 this._onDidChange.fire({});
117 }
118 });
119 }
120
121 public setVisible(visible: boolean): void {
122 if (this.view.setVisible) {

Callers

nothing calls this directly

Calls 2

onDidChangeMethod · 0.80
fireMethod · 0.65

Tested by

no test coverage detected