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

Class PaneviewApi

packages/dockview-core/src/api/component.api.ts:248–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248export class PaneviewApi implements CommonApi<SerializedPaneview> {
249 /**
250 * The minimum size the component can reach where size is measured in the direction of orientation provided.
251 */
252 get minimumSize(): number {
253 return this.component.minimumSize;
254 }
255
256 /**
257 * The maximum size the component can reach where size is measured in the direction of orientation provided.
258 */
259 get maximumSize(): number {
260 return this.component.maximumSize;
261 }
262
263 /**
264 * Width of the component.
265 */
266 get width(): number {
267 return this.component.width;
268 }
269
270 /**
271 * Height of the component.
272 */
273 get height(): number {
274 return this.component.height;
275 }
276
277 /**
278 * All panel objects.
279 */
280 get panels(): IPaneviewPanel[] {
281 return this.component.panels;
282 }
283
284 /**
285 * Invoked when any layout change occures, an aggregation of many events.
286 */
287 get onDidLayoutChange(): Event<void> {
288 return this.component.onDidLayoutChange;
289 }
290
291 /**
292 * Invoked after a layout is deserialzied using the `fromJSON` method.
293 */
294 get onDidLayoutFromJSON(): Event<void> {
295 return this.component.onDidLayoutFromJSON;
296 }
297
298 /**
299 * Invoked when a panel is added. May be called multiple times when moving panels.
300 */
301 get onDidAddView(): Event<IPaneviewPanel> {
302 return this.component.onDidAddView;
303 }
304
305 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…