dockview 0.0.28 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +60 -0
- package/dist/cjs/actionbar/actionsContainer.d.ts +7 -7
- package/dist/cjs/actionbar/actionsContainer.js +26 -26
- package/dist/cjs/api/component.api.d.ts +131 -131
- package/dist/cjs/api/component.api.js +444 -444
- package/dist/cjs/api/gridviewPanelApi.d.ts +36 -36
- package/dist/cjs/api/gridviewPanelApi.js +46 -46
- package/dist/cjs/api/groupPanelApi.d.ts +44 -44
- package/dist/cjs/api/groupPanelApi.js +94 -94
- package/dist/cjs/api/groupPanelApi.js.map +1 -1
- package/dist/cjs/api/panelApi.d.ts +107 -107
- package/dist/cjs/api/panelApi.js +140 -140
- package/dist/cjs/api/paneviewPanelApi.d.ts +26 -26
- package/dist/cjs/api/paneviewPanelApi.js +56 -56
- package/dist/cjs/api/splitviewPanelApi.d.ts +33 -33
- package/dist/cjs/api/splitviewPanelApi.js +51 -51
- package/dist/cjs/array.d.ts +13 -13
- package/dist/cjs/array.js +77 -77
- package/dist/cjs/dnd/abstractDragHandler.d.ts +11 -11
- package/dist/cjs/dnd/abstractDragHandler.js +115 -115
- package/dist/cjs/dnd/dataTransfer.d.ts +56 -56
- package/dist/cjs/dnd/dataTransfer.js +144 -144
- package/dist/cjs/dnd/dataTransfer.js.map +1 -1
- package/dist/cjs/dnd/dnd.d.ts +40 -40
- package/dist/cjs/dnd/dnd.js +142 -142
- package/dist/cjs/dnd/droptarget.d.ts +37 -37
- package/dist/cjs/dnd/droptarget.js +177 -177
- package/dist/cjs/dockview/components/tab/defaultTab.d.ts +44 -44
- package/dist/cjs/dockview/components/tab/defaultTab.js +186 -186
- package/dist/cjs/dockview/components/watermark/watermark.d.ts +20 -20
- package/dist/cjs/dockview/components/watermark/watermark.js +99 -99
- package/dist/cjs/dockview/defaultGroupPanelView.d.ts +34 -34
- package/dist/cjs/dockview/defaultGroupPanelView.js +83 -83
- package/dist/cjs/dockview/deserializer.d.ts +14 -14
- package/dist/cjs/dockview/deserializer.js +47 -47
- package/dist/cjs/dockview/dockviewComponent.d.ts +121 -121
- package/dist/cjs/dockview/dockviewComponent.js +692 -692
- package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +35 -35
- package/dist/cjs/dockview/dockviewGroupPanel.js +195 -195
- package/dist/cjs/dockview/options.d.ts +79 -79
- package/dist/cjs/dockview/options.js +2 -2
- package/dist/cjs/dom.d.ts +14 -14
- package/dist/cjs/dom.js +182 -182
- package/dist/cjs/events.d.ts +23 -23
- package/dist/cjs/events.js +87 -87
- package/dist/cjs/footnote.d.ts +1 -1
- package/dist/cjs/footnote.js +19 -19
- package/dist/cjs/footnote.js.map +1 -1
- package/dist/cjs/functions.d.ts +1 -1
- package/dist/cjs/functions.js +41 -41
- package/dist/cjs/gridview/baseComponentGridview.d.ts +98 -98
- package/dist/cjs/gridview/baseComponentGridview.js +292 -292
- package/dist/cjs/gridview/baseComponentGridview.js.map +1 -1
- package/dist/cjs/gridview/basePanelView.d.ts +46 -46
- package/dist/cjs/gridview/basePanelView.js +115 -115
- package/dist/cjs/gridview/branchNode.d.ts +46 -46
- package/dist/cjs/gridview/branchNode.js +342 -342
- package/dist/cjs/gridview/gridview.d.ts +123 -123
- package/dist/cjs/gridview/gridview.js +477 -477
- package/dist/cjs/gridview/gridviewComponent.d.ts +88 -88
- package/dist/cjs/gridview/gridviewComponent.js +303 -303
- package/dist/cjs/gridview/gridviewComponent.js.map +1 -1
- package/dist/cjs/gridview/gridviewPanel.d.ts +62 -62
- package/dist/cjs/gridview/gridviewPanel.js +205 -205
- package/dist/cjs/gridview/leafNode.d.ts +31 -31
- package/dist/cjs/gridview/leafNode.js +164 -164
- package/dist/cjs/gridview/options.d.ts +18 -18
- package/dist/cjs/gridview/options.js +2 -2
- package/dist/cjs/gridview/types.d.ts +3 -3
- package/dist/cjs/gridview/types.js +2 -2
- package/dist/cjs/groupview/dnd.d.ts +5 -5
- package/dist/cjs/groupview/dnd.js +9 -9
- package/dist/cjs/groupview/groupPanel.d.ts +41 -41
- package/dist/cjs/groupview/groupPanel.js +2 -2
- package/dist/cjs/groupview/groupview.d.ts +154 -154
- package/dist/cjs/groupview/groupview.js +633 -633
- package/dist/cjs/groupview/groupviewPanel.d.ts +18 -18
- package/dist/cjs/groupview/groupviewPanel.js +83 -83
- package/dist/cjs/groupview/panel/content.d.ts +30 -30
- package/dist/cjs/groupview/panel/content.js +99 -99
- package/dist/cjs/groupview/panel/hostedPanel.d.ts +22 -22
- package/dist/cjs/groupview/panel/hostedPanel.js +56 -56
- package/dist/cjs/groupview/panel/hostedPanel.js.map +1 -1
- package/dist/cjs/groupview/tab.d.ts +44 -44
- package/dist/cjs/groupview/tab.js +182 -182
- package/dist/cjs/groupview/titlebar/tabsContainer.d.ts +66 -66
- package/dist/cjs/groupview/titlebar/tabsContainer.js +260 -260
- package/dist/cjs/groupview/titlebar/tabsContainer.js.map +1 -1
- package/dist/cjs/groupview/types.d.ts +59 -59
- package/dist/cjs/groupview/types.js +2 -2
- package/dist/cjs/hostedContainer.d.ts +23 -23
- package/dist/cjs/hostedContainer.js +73 -73
- package/dist/cjs/hostedContainer.js.map +1 -1
- package/dist/cjs/index.d.ts +29 -26
- package/dist/cjs/index.js +38 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/json.d.ts +1 -1
- package/dist/cjs/json.js +13 -13
- package/dist/cjs/lifecycle.d.ts +22 -22
- package/dist/cjs/lifecycle.js +87 -87
- package/dist/cjs/math.d.ts +4 -4
- package/dist/cjs/math.js +15 -15
- package/dist/cjs/math.js.map +1 -1
- package/dist/cjs/panel/componentFactory.d.ts +8 -8
- package/dist/cjs/panel/componentFactory.js +30 -30
- package/dist/cjs/panel/componentFactory.js.map +1 -1
- package/dist/cjs/panel/types.d.ts +34 -34
- package/dist/cjs/panel/types.js +2 -2
- package/dist/cjs/paneview/defaultPaneviewHeader.d.ts +18 -18
- package/dist/cjs/paneview/defaultPaneviewHeader.js +64 -64
- package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +17 -17
- package/dist/cjs/paneview/draggablePaneviewPanel.js +111 -111
- package/dist/cjs/paneview/options.d.ts +25 -25
- package/dist/cjs/paneview/options.js +2 -2
- package/dist/cjs/paneview/paneview.d.ts +38 -38
- package/dist/cjs/paneview/paneview.js +198 -198
- package/dist/cjs/paneview/paneviewComponent.d.ts +113 -113
- package/dist/cjs/paneview/paneviewComponent.js +338 -338
- package/dist/cjs/paneview/paneviewPanel.d.ts +85 -85
- package/dist/cjs/paneview/paneviewPanel.js +262 -262
- package/dist/cjs/paneview/paneviewPanel.js.map +1 -1
- package/dist/cjs/react/deserializer.d.ts +8 -8
- package/dist/cjs/react/deserializer.js +39 -39
- package/dist/cjs/react/dockview/components.d.ts +11 -11
- package/dist/cjs/react/dockview/components.js +76 -76
- package/dist/cjs/react/dockview/dockview.d.ts +34 -34
- package/dist/cjs/react/dockview/dockview.js +135 -135
- package/dist/cjs/react/dockview/reactContentPart.d.ts +47 -47
- package/dist/cjs/react/dockview/reactContentPart.js +88 -88
- package/dist/cjs/react/dockview/reactHeaderPart.d.ts +24 -24
- package/dist/cjs/react/dockview/reactHeaderPart.js +50 -50
- package/dist/cjs/react/dockview/reactWatermarkPart.d.ts +30 -30
- package/dist/cjs/react/dockview/reactWatermarkPart.js +66 -66
- package/dist/cjs/react/dockview/v2/reactContentRenderer.d.ts +30 -30
- package/dist/cjs/react/dockview/v2/reactContentRenderer.js +90 -90
- package/dist/cjs/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
- package/dist/cjs/react/dockview/v2/reactGroupPanelView.js +34 -34
- package/dist/cjs/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
- package/dist/cjs/react/dockview/v2/webviewContentRenderer.js +45 -45
- package/dist/cjs/react/gridview/gridview.d.ts +24 -24
- package/dist/cjs/react/gridview/gridview.js +96 -96
- package/dist/cjs/react/gridview/view.d.ts +10 -10
- package/dist/cjs/react/gridview/view.js +40 -40
- package/dist/cjs/react/index.d.ts +9 -9
- package/dist/cjs/react/index.js +21 -21
- package/dist/cjs/react/paneview/paneview.d.ts +28 -28
- package/dist/cjs/react/paneview/paneview.js +138 -138
- package/dist/cjs/react/paneview/view.d.ts +20 -20
- package/dist/cjs/react/paneview/view.js +44 -44
- package/dist/cjs/react/react.d.ts +35 -35
- package/dist/cjs/react/react.js +181 -181
- package/dist/cjs/react/react.js.map +1 -1
- package/dist/cjs/react/splitview/splitview.d.ts +24 -24
- package/dist/cjs/react/splitview/splitview.js +93 -93
- package/dist/cjs/react/splitview/view.d.ts +10 -10
- package/dist/cjs/react/splitview/view.js +40 -40
- package/dist/cjs/react/types.d.ts +7 -7
- package/dist/cjs/react/types.js +2 -2
- package/dist/cjs/splitview/core/options.d.ts +26 -26
- package/dist/cjs/splitview/core/options.js +2 -2
- package/dist/cjs/splitview/core/splitview.d.ts +124 -124
- package/dist/cjs/splitview/core/splitview.js +908 -908
- package/dist/cjs/splitview/core/splitview.js.map +1 -1
- package/dist/cjs/splitview/core/viewItem.d.ts +25 -25
- package/dist/cjs/splitview/core/viewItem.js +124 -124
- package/dist/cjs/splitview/splitviewComponent.d.ts +100 -100
- package/dist/cjs/splitview/splitviewComponent.js +327 -327
- package/dist/cjs/splitview/splitviewComponent.js.map +1 -1
- package/dist/cjs/splitview/splitviewPanel.d.ts +47 -47
- package/dist/cjs/splitview/splitviewPanel.js +178 -178
- package/dist/cjs/types.d.ts +7 -7
- package/dist/cjs/types.js +2 -2
- package/dist/dockview.amd.js +6714 -6711
- package/dist/dockview.amd.min.js +3 -3
- package/dist/dockview.amd.min.noStyle.js +3 -3
- package/dist/dockview.amd.noStyle.js +6706 -6703
- package/dist/dockview.cjs.js +6708 -6705
- package/dist/dockview.esm.js +6706 -6706
- package/dist/dockview.esm.min.js +3 -3
- package/dist/dockview.js +6714 -6711
- package/dist/dockview.min.js +3 -3
- package/dist/dockview.min.noStyle.js +3 -3
- package/dist/dockview.noStyle.js +6706 -6703
- package/dist/esm/actionbar/actionsContainer.d.ts +7 -7
- package/dist/esm/actionbar/actionsContainer.js +17 -17
- package/dist/esm/api/component.api.d.ts +131 -131
- package/dist/esm/api/component.api.js +287 -287
- package/dist/esm/api/gridviewPanelApi.d.ts +36 -36
- package/dist/esm/api/gridviewPanelApi.js +24 -24
- package/dist/esm/api/groupPanelApi.d.ts +44 -44
- package/dist/esm/api/groupPanelApi.js +52 -52
- package/dist/esm/api/panelApi.d.ts +107 -107
- package/dist/esm/api/panelApi.js +98 -98
- package/dist/esm/api/paneviewPanelApi.d.ts +26 -26
- package/dist/esm/api/paneviewPanelApi.js +26 -26
- package/dist/esm/api/splitviewPanelApi.d.ts +33 -33
- package/dist/esm/api/splitviewPanelApi.js +29 -29
- package/dist/esm/array.d.ts +13 -13
- package/dist/esm/array.js +67 -67
- package/dist/esm/dnd/abstractDragHandler.d.ts +11 -11
- package/dist/esm/dnd/abstractDragHandler.js +37 -37
- package/dist/esm/dnd/dataTransfer.d.ts +56 -56
- package/dist/esm/dnd/dataTransfer.js +109 -109
- package/dist/esm/dnd/dnd.d.ts +40 -40
- package/dist/esm/dnd/dnd.js +109 -109
- package/dist/esm/dnd/droptarget.d.ts +37 -37
- package/dist/esm/dnd/droptarget.js +143 -143
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +44 -44
- package/dist/esm/dockview/components/tab/defaultTab.js +130 -130
- package/dist/esm/dockview/components/watermark/watermark.d.ts +20 -20
- package/dist/esm/dockview/components/watermark/watermark.js +68 -68
- package/dist/esm/dockview/defaultGroupPanelView.d.ts +34 -34
- package/dist/esm/dockview/defaultGroupPanelView.js +55 -55
- package/dist/esm/dockview/deserializer.d.ts +14 -14
- package/dist/esm/dockview/deserializer.js +20 -20
- package/dist/esm/dockview/dockviewComponent.d.ts +121 -121
- package/dist/esm/dockview/dockviewComponent.js +533 -533
- package/dist/esm/dockview/dockviewGroupPanel.d.ts +35 -35
- package/dist/esm/dockview/dockviewGroupPanel.js +145 -145
- package/dist/esm/dockview/options.d.ts +79 -79
- package/dist/esm/dockview/options.js +1 -1
- package/dist/esm/dom.d.ts +14 -14
- package/dist/esm/dom.js +113 -113
- package/dist/esm/events.d.ts +23 -23
- package/dist/esm/events.js +71 -71
- package/dist/esm/footnote.d.ts +1 -1
- package/dist/esm/footnote.js +19 -19
- package/dist/esm/functions.d.ts +1 -1
- package/dist/esm/functions.js +8 -8
- package/dist/esm/gridview/baseComponentGridview.d.ts +98 -98
- package/dist/esm/gridview/baseComponentGridview.js +224 -224
- package/dist/esm/gridview/basePanelView.d.ts +46 -46
- package/dist/esm/gridview/basePanelView.js +70 -70
- package/dist/esm/gridview/branchNode.d.ts +46 -46
- package/dist/esm/gridview/branchNode.js +218 -218
- package/dist/esm/gridview/gridview.d.ts +123 -123
- package/dist/esm/gridview/gridview.js +396 -396
- package/dist/esm/gridview/gridviewComponent.d.ts +88 -88
- package/dist/esm/gridview/gridviewComponent.js +238 -238
- package/dist/esm/gridview/gridviewPanel.d.ts +62 -62
- package/dist/esm/gridview/gridviewPanel.js +141 -141
- package/dist/esm/gridview/leafNode.d.ts +31 -31
- package/dist/esm/gridview/leafNode.js +97 -97
- package/dist/esm/gridview/options.d.ts +18 -18
- package/dist/esm/gridview/options.js +1 -1
- package/dist/esm/gridview/types.d.ts +3 -3
- package/dist/esm/gridview/types.js +1 -1
- package/dist/esm/groupview/dnd.d.ts +5 -5
- package/dist/esm/groupview/dnd.js +6 -6
- package/dist/esm/groupview/groupPanel.d.ts +41 -41
- package/dist/esm/groupview/groupPanel.js +1 -1
- package/dist/esm/groupview/groupview.d.ts +154 -154
- package/dist/esm/groupview/groupview.js +448 -448
- package/dist/esm/groupview/groupviewPanel.d.ts +18 -18
- package/dist/esm/groupview/groupviewPanel.js +41 -41
- package/dist/esm/groupview/panel/content.d.ts +30 -30
- package/dist/esm/groupview/panel/content.js +72 -72
- package/dist/esm/groupview/panel/hostedPanel.d.ts +22 -22
- package/dist/esm/groupview/panel/hostedPanel.js +43 -43
- package/dist/esm/groupview/tab.d.ts +44 -44
- package/dist/esm/groupview/tab.js +101 -101
- package/dist/esm/groupview/titlebar/tabsContainer.d.ts +66 -66
- package/dist/esm/groupview/titlebar/tabsContainer.js +185 -185
- package/dist/esm/groupview/types.d.ts +59 -59
- package/dist/esm/groupview/types.js +1 -1
- package/dist/esm/hostedContainer.d.ts +23 -23
- package/dist/esm/hostedContainer.js +63 -63
- package/dist/esm/index.d.ts +29 -26
- package/dist/esm/index.js +24 -21
- package/dist/esm/json.d.ts +1 -1
- package/dist/esm/json.js +9 -9
- package/dist/esm/lifecycle.d.ts +22 -22
- package/dist/esm/lifecycle.js +38 -38
- package/dist/esm/math.d.ts +4 -4
- package/dist/esm/math.js +10 -10
- package/dist/esm/panel/componentFactory.d.ts +8 -8
- package/dist/esm/panel/componentFactory.js +24 -24
- package/dist/esm/panel/types.d.ts +34 -34
- package/dist/esm/panel/types.js +1 -1
- package/dist/esm/paneview/defaultPaneviewHeader.d.ts +18 -18
- package/dist/esm/paneview/defaultPaneviewHeader.js +37 -37
- package/dist/esm/paneview/draggablePaneviewPanel.d.ts +17 -17
- package/dist/esm/paneview/draggablePaneviewPanel.js +72 -72
- package/dist/esm/paneview/options.d.ts +25 -25
- package/dist/esm/paneview/options.js +1 -1
- package/dist/esm/paneview/paneview.d.ts +38 -38
- package/dist/esm/paneview/paneview.js +144 -144
- package/dist/esm/paneview/paneviewComponent.d.ts +113 -113
- package/dist/esm/paneview/paneviewComponent.js +247 -247
- package/dist/esm/paneview/paneviewPanel.d.ts +85 -85
- package/dist/esm/paneview/paneviewPanel.js +183 -183
- package/dist/esm/react/deserializer.d.ts +8 -8
- package/dist/esm/react/deserializer.js +34 -34
- package/dist/esm/react/dockview/components.d.ts +11 -11
- package/dist/esm/react/dockview/components.js +54 -54
- package/dist/esm/react/dockview/dockview.d.ts +34 -34
- package/dist/esm/react/dockview/dockview.js +97 -97
- package/dist/esm/react/dockview/reactContentPart.d.ts +47 -47
- package/dist/esm/react/dockview/reactContentPart.js +75 -75
- package/dist/esm/react/dockview/reactHeaderPart.d.ts +24 -24
- package/dist/esm/react/dockview/reactHeaderPart.js +41 -41
- package/dist/esm/react/dockview/reactWatermarkPart.d.ts +30 -30
- package/dist/esm/react/dockview/reactWatermarkPart.js +56 -56
- package/dist/esm/react/dockview/v2/reactContentRenderer.d.ts +30 -30
- package/dist/esm/react/dockview/v2/reactContentRenderer.js +72 -72
- package/dist/esm/react/dockview/v2/reactGroupPanelView.d.ts +7 -7
- package/dist/esm/react/dockview/v2/reactGroupPanelView.js +12 -12
- package/dist/esm/react/dockview/v2/webviewContentRenderer.d.ts +18 -18
- package/dist/esm/react/dockview/v2/webviewContentRenderer.js +36 -36
- package/dist/esm/react/gridview/gridview.d.ts +24 -24
- package/dist/esm/react/gridview/gridview.js +58 -58
- package/dist/esm/react/gridview/view.d.ts +10 -10
- package/dist/esm/react/gridview/view.js +18 -18
- package/dist/esm/react/index.d.ts +9 -9
- package/dist/esm/react/index.js +9 -9
- package/dist/esm/react/paneview/paneview.d.ts +28 -28
- package/dist/esm/react/paneview/paneview.js +87 -87
- package/dist/esm/react/paneview/view.d.ts +20 -20
- package/dist/esm/react/paneview/view.js +35 -35
- package/dist/esm/react/react.d.ts +35 -35
- package/dist/esm/react/react.js +116 -116
- package/dist/esm/react/splitview/splitview.d.ts +24 -24
- package/dist/esm/react/splitview/splitview.js +55 -55
- package/dist/esm/react/splitview/view.d.ts +10 -10
- package/dist/esm/react/splitview/view.js +18 -18
- package/dist/esm/react/types.d.ts +7 -7
- package/dist/esm/react/types.js +1 -1
- package/dist/esm/splitview/core/options.d.ts +26 -26
- package/dist/esm/splitview/core/options.js +1 -1
- package/dist/esm/splitview/core/splitview.d.ts +124 -124
- package/dist/esm/splitview/core/splitview.js +689 -689
- package/dist/esm/splitview/core/viewItem.d.ts +25 -25
- package/dist/esm/splitview/core/viewItem.js +79 -79
- package/dist/esm/splitview/splitviewComponent.d.ts +100 -100
- package/dist/esm/splitview/splitviewComponent.js +241 -241
- package/dist/esm/splitview/splitviewPanel.d.ts +47 -47
- package/dist/esm/splitview/splitviewPanel.js +107 -107
- package/dist/esm/types.d.ts +7 -7
- package/dist/esm/types.js +1 -1
- package/package.json +75 -75
|
@@ -1,287 +1,287 @@
|
|
|
1
|
-
export class SplitviewApi {
|
|
2
|
-
constructor(component) {
|
|
3
|
-
this.component = component;
|
|
4
|
-
}
|
|
5
|
-
get minimumSize() {
|
|
6
|
-
return this.component.minimumSize;
|
|
7
|
-
}
|
|
8
|
-
get maximumSize() {
|
|
9
|
-
return this.component.maximumSize;
|
|
10
|
-
}
|
|
11
|
-
get height() {
|
|
12
|
-
return this.component.height;
|
|
13
|
-
}
|
|
14
|
-
get width() {
|
|
15
|
-
return this.component.width;
|
|
16
|
-
}
|
|
17
|
-
get length() {
|
|
18
|
-
return this.component.length;
|
|
19
|
-
}
|
|
20
|
-
get onDidLayoutChange() {
|
|
21
|
-
return this.component.onDidLayoutChange;
|
|
22
|
-
}
|
|
23
|
-
get orientation() {
|
|
24
|
-
return this.component.orientation;
|
|
25
|
-
}
|
|
26
|
-
updateOptions(options) {
|
|
27
|
-
this.component.updateOptions(options);
|
|
28
|
-
}
|
|
29
|
-
removePanel(panel, sizing) {
|
|
30
|
-
this.component.removePanel(panel, sizing);
|
|
31
|
-
}
|
|
32
|
-
setVisible(panel, isVisible) {
|
|
33
|
-
this.component.setVisible(panel, isVisible);
|
|
34
|
-
}
|
|
35
|
-
getPanels() {
|
|
36
|
-
return this.component.getPanels();
|
|
37
|
-
}
|
|
38
|
-
focus() {
|
|
39
|
-
this.component.focus();
|
|
40
|
-
}
|
|
41
|
-
getPanel(id) {
|
|
42
|
-
return this.component.getPanel(id);
|
|
43
|
-
}
|
|
44
|
-
setActive(panel) {
|
|
45
|
-
this.component.setActive(panel);
|
|
46
|
-
}
|
|
47
|
-
layout(width, height) {
|
|
48
|
-
return this.component.layout(width, height);
|
|
49
|
-
}
|
|
50
|
-
addPanel(options) {
|
|
51
|
-
this.component.addPanel(options);
|
|
52
|
-
}
|
|
53
|
-
resizeToFit() {
|
|
54
|
-
this.component.resizeToFit();
|
|
55
|
-
}
|
|
56
|
-
movePanel(from, to) {
|
|
57
|
-
this.component.movePanel(from, to);
|
|
58
|
-
}
|
|
59
|
-
fromJSON(data, deferComponentLayout) {
|
|
60
|
-
this.component.fromJSON(data, deferComponentLayout);
|
|
61
|
-
}
|
|
62
|
-
toJSON() {
|
|
63
|
-
return this.component.toJSON();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export class PaneviewApi {
|
|
67
|
-
constructor(component) {
|
|
68
|
-
this.component = component;
|
|
69
|
-
}
|
|
70
|
-
get width() {
|
|
71
|
-
return this.component.width;
|
|
72
|
-
}
|
|
73
|
-
get height() {
|
|
74
|
-
return this.component.height;
|
|
75
|
-
}
|
|
76
|
-
get minimumSize() {
|
|
77
|
-
return this.component.minimumSize;
|
|
78
|
-
}
|
|
79
|
-
get maximumSize() {
|
|
80
|
-
return this.component.maximumSize;
|
|
81
|
-
}
|
|
82
|
-
get onDidLayoutChange() {
|
|
83
|
-
return this.component.onDidLayoutChange;
|
|
84
|
-
}
|
|
85
|
-
getPanels() {
|
|
86
|
-
return this.component.getPanels();
|
|
87
|
-
}
|
|
88
|
-
removePanel(panel) {
|
|
89
|
-
this.component.removePanel(panel);
|
|
90
|
-
}
|
|
91
|
-
getPanel(id) {
|
|
92
|
-
return this.component.getPanel(id);
|
|
93
|
-
}
|
|
94
|
-
movePanel(from, to) {
|
|
95
|
-
this.component.movePanel(from, to);
|
|
96
|
-
}
|
|
97
|
-
focus() {
|
|
98
|
-
this.component.focus();
|
|
99
|
-
}
|
|
100
|
-
layout(width, height) {
|
|
101
|
-
this.component.layout(width, height);
|
|
102
|
-
}
|
|
103
|
-
addPanel(options) {
|
|
104
|
-
return this.component.addPanel(options);
|
|
105
|
-
}
|
|
106
|
-
resizeToFit() {
|
|
107
|
-
this.component.resizeToFit();
|
|
108
|
-
}
|
|
109
|
-
fromJSON(data, deferComponentLayout) {
|
|
110
|
-
this.component.fromJSON(data, deferComponentLayout);
|
|
111
|
-
}
|
|
112
|
-
toJSON() {
|
|
113
|
-
return this.component.toJSON();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
export class GridviewApi {
|
|
117
|
-
constructor(component) {
|
|
118
|
-
this.component = component;
|
|
119
|
-
}
|
|
120
|
-
get width() {
|
|
121
|
-
return this.component.width;
|
|
122
|
-
}
|
|
123
|
-
get height() {
|
|
124
|
-
return this.component.height;
|
|
125
|
-
}
|
|
126
|
-
get minimumHeight() {
|
|
127
|
-
return this.component.minimumHeight;
|
|
128
|
-
}
|
|
129
|
-
get maximumHeight() {
|
|
130
|
-
return this.component.maximumHeight;
|
|
131
|
-
}
|
|
132
|
-
get minimumWidth() {
|
|
133
|
-
return this.component.minimumWidth;
|
|
134
|
-
}
|
|
135
|
-
get maximumWidth() {
|
|
136
|
-
return this.component.maximumWidth;
|
|
137
|
-
}
|
|
138
|
-
get onGridEvent() {
|
|
139
|
-
return this.component.onGridEvent;
|
|
140
|
-
}
|
|
141
|
-
get onDidLayoutChange() {
|
|
142
|
-
return this.component.onDidLayoutChange;
|
|
143
|
-
}
|
|
144
|
-
get panels() {
|
|
145
|
-
return this.component.groups;
|
|
146
|
-
}
|
|
147
|
-
get orientation() {
|
|
148
|
-
return this.component.orientation;
|
|
149
|
-
}
|
|
150
|
-
set orientation(value) {
|
|
151
|
-
this.component.updateOptions({ orientation: value });
|
|
152
|
-
}
|
|
153
|
-
focus() {
|
|
154
|
-
this.component.focus();
|
|
155
|
-
}
|
|
156
|
-
layout(width, height, force = false) {
|
|
157
|
-
this.component.layout(width, height, force);
|
|
158
|
-
}
|
|
159
|
-
addPanel(options) {
|
|
160
|
-
this.component.addPanel(options);
|
|
161
|
-
}
|
|
162
|
-
removePanel(panel, sizing) {
|
|
163
|
-
this.component.removePanel(panel, sizing);
|
|
164
|
-
}
|
|
165
|
-
movePanel(panel, options) {
|
|
166
|
-
this.component.movePanel(panel, options);
|
|
167
|
-
}
|
|
168
|
-
resizeToFit() {
|
|
169
|
-
this.component.resizeToFit();
|
|
170
|
-
}
|
|
171
|
-
getPanel(id) {
|
|
172
|
-
return this.component.getPanel(id);
|
|
173
|
-
}
|
|
174
|
-
toggleVisibility(panel) {
|
|
175
|
-
this.component.toggleVisibility(panel);
|
|
176
|
-
}
|
|
177
|
-
setVisible(panel, visible) {
|
|
178
|
-
this.component.setVisible(panel, visible);
|
|
179
|
-
}
|
|
180
|
-
setActive(panel) {
|
|
181
|
-
this.component.setActive(panel);
|
|
182
|
-
}
|
|
183
|
-
fromJSON(data, deferComponentLayout) {
|
|
184
|
-
return this.component.fromJSON(data, deferComponentLayout);
|
|
185
|
-
}
|
|
186
|
-
toJSON() {
|
|
187
|
-
return this.component.toJSON();
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
export class DockviewApi {
|
|
191
|
-
constructor(component) {
|
|
192
|
-
this.component = component;
|
|
193
|
-
}
|
|
194
|
-
get width() {
|
|
195
|
-
return this.component.width;
|
|
196
|
-
}
|
|
197
|
-
get height() {
|
|
198
|
-
return this.component.height;
|
|
199
|
-
}
|
|
200
|
-
get minimumHeight() {
|
|
201
|
-
return this.component.minimumHeight;
|
|
202
|
-
}
|
|
203
|
-
get maximumHeight() {
|
|
204
|
-
return this.component.maximumHeight;
|
|
205
|
-
}
|
|
206
|
-
get minimumWidth() {
|
|
207
|
-
return this.component.minimumWidth;
|
|
208
|
-
}
|
|
209
|
-
get maximumWidth() {
|
|
210
|
-
return this.component.maximumWidth;
|
|
211
|
-
}
|
|
212
|
-
get size() {
|
|
213
|
-
return this.component.size;
|
|
214
|
-
}
|
|
215
|
-
get totalPanels() {
|
|
216
|
-
return this.component.totalPanels;
|
|
217
|
-
}
|
|
218
|
-
get onGridEvent() {
|
|
219
|
-
return this.component.onGridEvent;
|
|
220
|
-
}
|
|
221
|
-
get onDidLayoutChange() {
|
|
222
|
-
return this.component.onDidLayoutChange;
|
|
223
|
-
}
|
|
224
|
-
get panels() {
|
|
225
|
-
return this.component.panels;
|
|
226
|
-
}
|
|
227
|
-
get groups() {
|
|
228
|
-
return this.component.groups;
|
|
229
|
-
}
|
|
230
|
-
get activePanel() {
|
|
231
|
-
return this.component.activePanel;
|
|
232
|
-
}
|
|
233
|
-
get activeGroup() {
|
|
234
|
-
return this.component.activeGroup;
|
|
235
|
-
}
|
|
236
|
-
getTabHeight() {
|
|
237
|
-
return this.component.tabHeight;
|
|
238
|
-
}
|
|
239
|
-
setTabHeight(height) {
|
|
240
|
-
this.component.tabHeight = height;
|
|
241
|
-
}
|
|
242
|
-
focus() {
|
|
243
|
-
this.component.focus();
|
|
244
|
-
}
|
|
245
|
-
getPanel(id) {
|
|
246
|
-
return this.component.getGroupPanel(id);
|
|
247
|
-
}
|
|
248
|
-
setActivePanel(panel) {
|
|
249
|
-
this.component.setActivePanel(panel);
|
|
250
|
-
}
|
|
251
|
-
layout(width, height, force = false) {
|
|
252
|
-
this.component.layout(width, height, force);
|
|
253
|
-
}
|
|
254
|
-
addPanel(options) {
|
|
255
|
-
return this.component.addPanel(options);
|
|
256
|
-
}
|
|
257
|
-
removePanel(panel) {
|
|
258
|
-
this.component.removePanel(panel);
|
|
259
|
-
}
|
|
260
|
-
addEmptyGroup(options) {
|
|
261
|
-
this.component.addEmptyGroup(options);
|
|
262
|
-
}
|
|
263
|
-
moveToNext(options) {
|
|
264
|
-
this.component.moveToNext(options);
|
|
265
|
-
}
|
|
266
|
-
moveToPrevious(options) {
|
|
267
|
-
this.component.moveToPrevious(options);
|
|
268
|
-
}
|
|
269
|
-
closeAllGroups() {
|
|
270
|
-
return this.component.closeAllGroups();
|
|
271
|
-
}
|
|
272
|
-
removeGroup(group) {
|
|
273
|
-
this.component.removeGroup(group);
|
|
274
|
-
}
|
|
275
|
-
resizeToFit() {
|
|
276
|
-
return this.component.resizeToFit();
|
|
277
|
-
}
|
|
278
|
-
getGroup(id) {
|
|
279
|
-
return this.component.getPanel(id);
|
|
280
|
-
}
|
|
281
|
-
fromJSON(data) {
|
|
282
|
-
this.component.fromJSON(data);
|
|
283
|
-
}
|
|
284
|
-
toJSON() {
|
|
285
|
-
return this.component.toJSON();
|
|
286
|
-
}
|
|
287
|
-
}
|
|
1
|
+
export class SplitviewApi {
|
|
2
|
+
constructor(component) {
|
|
3
|
+
this.component = component;
|
|
4
|
+
}
|
|
5
|
+
get minimumSize() {
|
|
6
|
+
return this.component.minimumSize;
|
|
7
|
+
}
|
|
8
|
+
get maximumSize() {
|
|
9
|
+
return this.component.maximumSize;
|
|
10
|
+
}
|
|
11
|
+
get height() {
|
|
12
|
+
return this.component.height;
|
|
13
|
+
}
|
|
14
|
+
get width() {
|
|
15
|
+
return this.component.width;
|
|
16
|
+
}
|
|
17
|
+
get length() {
|
|
18
|
+
return this.component.length;
|
|
19
|
+
}
|
|
20
|
+
get onDidLayoutChange() {
|
|
21
|
+
return this.component.onDidLayoutChange;
|
|
22
|
+
}
|
|
23
|
+
get orientation() {
|
|
24
|
+
return this.component.orientation;
|
|
25
|
+
}
|
|
26
|
+
updateOptions(options) {
|
|
27
|
+
this.component.updateOptions(options);
|
|
28
|
+
}
|
|
29
|
+
removePanel(panel, sizing) {
|
|
30
|
+
this.component.removePanel(panel, sizing);
|
|
31
|
+
}
|
|
32
|
+
setVisible(panel, isVisible) {
|
|
33
|
+
this.component.setVisible(panel, isVisible);
|
|
34
|
+
}
|
|
35
|
+
getPanels() {
|
|
36
|
+
return this.component.getPanels();
|
|
37
|
+
}
|
|
38
|
+
focus() {
|
|
39
|
+
this.component.focus();
|
|
40
|
+
}
|
|
41
|
+
getPanel(id) {
|
|
42
|
+
return this.component.getPanel(id);
|
|
43
|
+
}
|
|
44
|
+
setActive(panel) {
|
|
45
|
+
this.component.setActive(panel);
|
|
46
|
+
}
|
|
47
|
+
layout(width, height) {
|
|
48
|
+
return this.component.layout(width, height);
|
|
49
|
+
}
|
|
50
|
+
addPanel(options) {
|
|
51
|
+
this.component.addPanel(options);
|
|
52
|
+
}
|
|
53
|
+
resizeToFit() {
|
|
54
|
+
this.component.resizeToFit();
|
|
55
|
+
}
|
|
56
|
+
movePanel(from, to) {
|
|
57
|
+
this.component.movePanel(from, to);
|
|
58
|
+
}
|
|
59
|
+
fromJSON(data, deferComponentLayout) {
|
|
60
|
+
this.component.fromJSON(data, deferComponentLayout);
|
|
61
|
+
}
|
|
62
|
+
toJSON() {
|
|
63
|
+
return this.component.toJSON();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export class PaneviewApi {
|
|
67
|
+
constructor(component) {
|
|
68
|
+
this.component = component;
|
|
69
|
+
}
|
|
70
|
+
get width() {
|
|
71
|
+
return this.component.width;
|
|
72
|
+
}
|
|
73
|
+
get height() {
|
|
74
|
+
return this.component.height;
|
|
75
|
+
}
|
|
76
|
+
get minimumSize() {
|
|
77
|
+
return this.component.minimumSize;
|
|
78
|
+
}
|
|
79
|
+
get maximumSize() {
|
|
80
|
+
return this.component.maximumSize;
|
|
81
|
+
}
|
|
82
|
+
get onDidLayoutChange() {
|
|
83
|
+
return this.component.onDidLayoutChange;
|
|
84
|
+
}
|
|
85
|
+
getPanels() {
|
|
86
|
+
return this.component.getPanels();
|
|
87
|
+
}
|
|
88
|
+
removePanel(panel) {
|
|
89
|
+
this.component.removePanel(panel);
|
|
90
|
+
}
|
|
91
|
+
getPanel(id) {
|
|
92
|
+
return this.component.getPanel(id);
|
|
93
|
+
}
|
|
94
|
+
movePanel(from, to) {
|
|
95
|
+
this.component.movePanel(from, to);
|
|
96
|
+
}
|
|
97
|
+
focus() {
|
|
98
|
+
this.component.focus();
|
|
99
|
+
}
|
|
100
|
+
layout(width, height) {
|
|
101
|
+
this.component.layout(width, height);
|
|
102
|
+
}
|
|
103
|
+
addPanel(options) {
|
|
104
|
+
return this.component.addPanel(options);
|
|
105
|
+
}
|
|
106
|
+
resizeToFit() {
|
|
107
|
+
this.component.resizeToFit();
|
|
108
|
+
}
|
|
109
|
+
fromJSON(data, deferComponentLayout) {
|
|
110
|
+
this.component.fromJSON(data, deferComponentLayout);
|
|
111
|
+
}
|
|
112
|
+
toJSON() {
|
|
113
|
+
return this.component.toJSON();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export class GridviewApi {
|
|
117
|
+
constructor(component) {
|
|
118
|
+
this.component = component;
|
|
119
|
+
}
|
|
120
|
+
get width() {
|
|
121
|
+
return this.component.width;
|
|
122
|
+
}
|
|
123
|
+
get height() {
|
|
124
|
+
return this.component.height;
|
|
125
|
+
}
|
|
126
|
+
get minimumHeight() {
|
|
127
|
+
return this.component.minimumHeight;
|
|
128
|
+
}
|
|
129
|
+
get maximumHeight() {
|
|
130
|
+
return this.component.maximumHeight;
|
|
131
|
+
}
|
|
132
|
+
get minimumWidth() {
|
|
133
|
+
return this.component.minimumWidth;
|
|
134
|
+
}
|
|
135
|
+
get maximumWidth() {
|
|
136
|
+
return this.component.maximumWidth;
|
|
137
|
+
}
|
|
138
|
+
get onGridEvent() {
|
|
139
|
+
return this.component.onGridEvent;
|
|
140
|
+
}
|
|
141
|
+
get onDidLayoutChange() {
|
|
142
|
+
return this.component.onDidLayoutChange;
|
|
143
|
+
}
|
|
144
|
+
get panels() {
|
|
145
|
+
return this.component.groups;
|
|
146
|
+
}
|
|
147
|
+
get orientation() {
|
|
148
|
+
return this.component.orientation;
|
|
149
|
+
}
|
|
150
|
+
set orientation(value) {
|
|
151
|
+
this.component.updateOptions({ orientation: value });
|
|
152
|
+
}
|
|
153
|
+
focus() {
|
|
154
|
+
this.component.focus();
|
|
155
|
+
}
|
|
156
|
+
layout(width, height, force = false) {
|
|
157
|
+
this.component.layout(width, height, force);
|
|
158
|
+
}
|
|
159
|
+
addPanel(options) {
|
|
160
|
+
this.component.addPanel(options);
|
|
161
|
+
}
|
|
162
|
+
removePanel(panel, sizing) {
|
|
163
|
+
this.component.removePanel(panel, sizing);
|
|
164
|
+
}
|
|
165
|
+
movePanel(panel, options) {
|
|
166
|
+
this.component.movePanel(panel, options);
|
|
167
|
+
}
|
|
168
|
+
resizeToFit() {
|
|
169
|
+
this.component.resizeToFit();
|
|
170
|
+
}
|
|
171
|
+
getPanel(id) {
|
|
172
|
+
return this.component.getPanel(id);
|
|
173
|
+
}
|
|
174
|
+
toggleVisibility(panel) {
|
|
175
|
+
this.component.toggleVisibility(panel);
|
|
176
|
+
}
|
|
177
|
+
setVisible(panel, visible) {
|
|
178
|
+
this.component.setVisible(panel, visible);
|
|
179
|
+
}
|
|
180
|
+
setActive(panel) {
|
|
181
|
+
this.component.setActive(panel);
|
|
182
|
+
}
|
|
183
|
+
fromJSON(data, deferComponentLayout) {
|
|
184
|
+
return this.component.fromJSON(data, deferComponentLayout);
|
|
185
|
+
}
|
|
186
|
+
toJSON() {
|
|
187
|
+
return this.component.toJSON();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export class DockviewApi {
|
|
191
|
+
constructor(component) {
|
|
192
|
+
this.component = component;
|
|
193
|
+
}
|
|
194
|
+
get width() {
|
|
195
|
+
return this.component.width;
|
|
196
|
+
}
|
|
197
|
+
get height() {
|
|
198
|
+
return this.component.height;
|
|
199
|
+
}
|
|
200
|
+
get minimumHeight() {
|
|
201
|
+
return this.component.minimumHeight;
|
|
202
|
+
}
|
|
203
|
+
get maximumHeight() {
|
|
204
|
+
return this.component.maximumHeight;
|
|
205
|
+
}
|
|
206
|
+
get minimumWidth() {
|
|
207
|
+
return this.component.minimumWidth;
|
|
208
|
+
}
|
|
209
|
+
get maximumWidth() {
|
|
210
|
+
return this.component.maximumWidth;
|
|
211
|
+
}
|
|
212
|
+
get size() {
|
|
213
|
+
return this.component.size;
|
|
214
|
+
}
|
|
215
|
+
get totalPanels() {
|
|
216
|
+
return this.component.totalPanels;
|
|
217
|
+
}
|
|
218
|
+
get onGridEvent() {
|
|
219
|
+
return this.component.onGridEvent;
|
|
220
|
+
}
|
|
221
|
+
get onDidLayoutChange() {
|
|
222
|
+
return this.component.onDidLayoutChange;
|
|
223
|
+
}
|
|
224
|
+
get panels() {
|
|
225
|
+
return this.component.panels;
|
|
226
|
+
}
|
|
227
|
+
get groups() {
|
|
228
|
+
return this.component.groups;
|
|
229
|
+
}
|
|
230
|
+
get activePanel() {
|
|
231
|
+
return this.component.activePanel;
|
|
232
|
+
}
|
|
233
|
+
get activeGroup() {
|
|
234
|
+
return this.component.activeGroup;
|
|
235
|
+
}
|
|
236
|
+
getTabHeight() {
|
|
237
|
+
return this.component.tabHeight;
|
|
238
|
+
}
|
|
239
|
+
setTabHeight(height) {
|
|
240
|
+
this.component.tabHeight = height;
|
|
241
|
+
}
|
|
242
|
+
focus() {
|
|
243
|
+
this.component.focus();
|
|
244
|
+
}
|
|
245
|
+
getPanel(id) {
|
|
246
|
+
return this.component.getGroupPanel(id);
|
|
247
|
+
}
|
|
248
|
+
setActivePanel(panel) {
|
|
249
|
+
this.component.setActivePanel(panel);
|
|
250
|
+
}
|
|
251
|
+
layout(width, height, force = false) {
|
|
252
|
+
this.component.layout(width, height, force);
|
|
253
|
+
}
|
|
254
|
+
addPanel(options) {
|
|
255
|
+
return this.component.addPanel(options);
|
|
256
|
+
}
|
|
257
|
+
removePanel(panel) {
|
|
258
|
+
this.component.removePanel(panel);
|
|
259
|
+
}
|
|
260
|
+
addEmptyGroup(options) {
|
|
261
|
+
this.component.addEmptyGroup(options);
|
|
262
|
+
}
|
|
263
|
+
moveToNext(options) {
|
|
264
|
+
this.component.moveToNext(options);
|
|
265
|
+
}
|
|
266
|
+
moveToPrevious(options) {
|
|
267
|
+
this.component.moveToPrevious(options);
|
|
268
|
+
}
|
|
269
|
+
closeAllGroups() {
|
|
270
|
+
return this.component.closeAllGroups();
|
|
271
|
+
}
|
|
272
|
+
removeGroup(group) {
|
|
273
|
+
this.component.removeGroup(group);
|
|
274
|
+
}
|
|
275
|
+
resizeToFit() {
|
|
276
|
+
return this.component.resizeToFit();
|
|
277
|
+
}
|
|
278
|
+
getGroup(id) {
|
|
279
|
+
return this.component.getPanel(id);
|
|
280
|
+
}
|
|
281
|
+
fromJSON(data) {
|
|
282
|
+
this.component.fromJSON(data);
|
|
283
|
+
}
|
|
284
|
+
toJSON() {
|
|
285
|
+
return this.component.toJSON();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Emitter, Event } from '../events';
|
|
2
|
-
import { FunctionOrValue } from '../types';
|
|
3
|
-
import { PanelApiImpl, PanelApi } from './panelApi';
|
|
4
|
-
export interface GridConstraintChangeEvent {
|
|
5
|
-
readonly minimumWidth?: number;
|
|
6
|
-
readonly minimumHeight?: number;
|
|
7
|
-
readonly maximumWidth?: number;
|
|
8
|
-
readonly maximumHeight?: number;
|
|
9
|
-
}
|
|
10
|
-
interface GridConstraintChangeEvent2 {
|
|
11
|
-
readonly minimumWidth?: FunctionOrValue<number>;
|
|
12
|
-
readonly minimumHeight?: FunctionOrValue<number>;
|
|
13
|
-
readonly maximumWidth?: FunctionOrValue<number>;
|
|
14
|
-
readonly maximumHeight?: FunctionOrValue<number>;
|
|
15
|
-
}
|
|
16
|
-
export interface SizeEvent {
|
|
17
|
-
readonly width?: number;
|
|
18
|
-
readonly height?: number;
|
|
19
|
-
}
|
|
20
|
-
export interface GridviewPanelApi extends PanelApi {
|
|
21
|
-
readonly onDidConstraintsChange: Event<GridConstraintChangeEvent>;
|
|
22
|
-
setConstraints(value: GridConstraintChangeEvent2): void;
|
|
23
|
-
setSize(event: SizeEvent): void;
|
|
24
|
-
}
|
|
25
|
-
export declare class GridviewPanelApiImpl extends PanelApiImpl implements GridviewPanelApi {
|
|
26
|
-
readonly _onDidConstraintsChangeInternal: Emitter<GridConstraintChangeEvent2>;
|
|
27
|
-
readonly onDidConstraintsChangeInternal: Event<GridConstraintChangeEvent2>;
|
|
28
|
-
readonly _onDidConstraintsChange: Emitter<GridConstraintChangeEvent>;
|
|
29
|
-
readonly onDidConstraintsChange: Event<GridConstraintChangeEvent>;
|
|
30
|
-
readonly _onDidSizeChange: Emitter<SizeEvent>;
|
|
31
|
-
readonly onDidSizeChange: Event<SizeEvent>;
|
|
32
|
-
constructor(id: string);
|
|
33
|
-
setConstraints(value: GridConstraintChangeEvent): void;
|
|
34
|
-
setSize(event: SizeEvent): void;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
1
|
+
import { Emitter, Event } from '../events';
|
|
2
|
+
import { FunctionOrValue } from '../types';
|
|
3
|
+
import { PanelApiImpl, PanelApi } from './panelApi';
|
|
4
|
+
export interface GridConstraintChangeEvent {
|
|
5
|
+
readonly minimumWidth?: number;
|
|
6
|
+
readonly minimumHeight?: number;
|
|
7
|
+
readonly maximumWidth?: number;
|
|
8
|
+
readonly maximumHeight?: number;
|
|
9
|
+
}
|
|
10
|
+
interface GridConstraintChangeEvent2 {
|
|
11
|
+
readonly minimumWidth?: FunctionOrValue<number>;
|
|
12
|
+
readonly minimumHeight?: FunctionOrValue<number>;
|
|
13
|
+
readonly maximumWidth?: FunctionOrValue<number>;
|
|
14
|
+
readonly maximumHeight?: FunctionOrValue<number>;
|
|
15
|
+
}
|
|
16
|
+
export interface SizeEvent {
|
|
17
|
+
readonly width?: number;
|
|
18
|
+
readonly height?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface GridviewPanelApi extends PanelApi {
|
|
21
|
+
readonly onDidConstraintsChange: Event<GridConstraintChangeEvent>;
|
|
22
|
+
setConstraints(value: GridConstraintChangeEvent2): void;
|
|
23
|
+
setSize(event: SizeEvent): void;
|
|
24
|
+
}
|
|
25
|
+
export declare class GridviewPanelApiImpl extends PanelApiImpl implements GridviewPanelApi {
|
|
26
|
+
readonly _onDidConstraintsChangeInternal: Emitter<GridConstraintChangeEvent2>;
|
|
27
|
+
readonly onDidConstraintsChangeInternal: Event<GridConstraintChangeEvent2>;
|
|
28
|
+
readonly _onDidConstraintsChange: Emitter<GridConstraintChangeEvent>;
|
|
29
|
+
readonly onDidConstraintsChange: Event<GridConstraintChangeEvent>;
|
|
30
|
+
readonly _onDidSizeChange: Emitter<SizeEvent>;
|
|
31
|
+
readonly onDidSizeChange: Event<SizeEvent>;
|
|
32
|
+
constructor(id: string);
|
|
33
|
+
setConstraints(value: GridConstraintChangeEvent): void;
|
|
34
|
+
setSize(event: SizeEvent): void;
|
|
35
|
+
}
|
|
36
|
+
export {};
|