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

Class SplitviewPanelApiImpl

packages/dockview-core/src/api/splitviewPanelApi.ts:26–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26export class SplitviewPanelApiImpl
27 extends PanelApiImpl
28 implements SplitviewPanelApi, IDisposable
29{
30 readonly _onDidConstraintsChangeInternal =
31 new Emitter<PanelConstraintChangeEvent2>();
32 readonly onDidConstraintsChangeInternal: Event<PanelConstraintChangeEvent2> =
33 this._onDidConstraintsChangeInternal.event;
34 //
35
36 readonly _onDidConstraintsChange = new Emitter<PanelConstraintChangeEvent>({
37 replay: true,
38 });
39 readonly onDidConstraintsChange: Event<PanelConstraintChangeEvent> =
40 this._onDidConstraintsChange.event;
41 //
42
43 readonly _onDidSizeChange = new Emitter<PanelSizeEvent>();
44 readonly onDidSizeChange: Event<PanelSizeEvent> =
45 this._onDidSizeChange.event;
46 //
47
48 constructor(id: string, component: string) {
49 super(id, component);
50
51 this.addDisposables(
52 this._onDidConstraintsChangeInternal,
53 this._onDidConstraintsChange,
54 this._onDidSizeChange
55 );
56 }
57
58 setConstraints(value: PanelConstraintChangeEvent2) {
59 this._onDidConstraintsChangeInternal.fire(value);
60 }
61
62 setSize(event: PanelSizeEvent) {
63 this._onDidSizeChange.fire(event);
64 }
65}

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…