dockview-core 1.8.4 → 1.8.5

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.
Files changed (334) hide show
  1. package/README.md +51 -51
  2. package/dist/cjs/api/component.api.d.ts +455 -152
  3. package/dist/cjs/api/component.api.d.ts.map +1 -1
  4. package/dist/cjs/api/component.api.js +895 -592
  5. package/dist/cjs/api/component.api.js.map +1 -1
  6. package/dist/cjs/api/dockviewGroupPanelApi.d.ts +29 -29
  7. package/dist/cjs/api/dockviewGroupPanelApi.js +53 -53
  8. package/dist/cjs/api/dockviewPanelApi.d.ts +47 -47
  9. package/dist/cjs/api/dockviewPanelApi.js +88 -88
  10. package/dist/cjs/api/gridviewPanelApi.d.ts +37 -37
  11. package/dist/cjs/api/gridviewPanelApi.js +47 -47
  12. package/dist/cjs/api/panelApi.d.ts +88 -88
  13. package/dist/cjs/api/panelApi.js +135 -135
  14. package/dist/cjs/api/paneviewPanelApi.d.ts +26 -26
  15. package/dist/cjs/api/paneviewPanelApi.js +57 -57
  16. package/dist/cjs/api/splitviewPanelApi.d.ts +32 -32
  17. package/dist/cjs/api/splitviewPanelApi.js +47 -47
  18. package/dist/cjs/array.d.ts +13 -13
  19. package/dist/cjs/array.js +67 -67
  20. package/dist/cjs/dnd/abstractDragHandler.d.ts +12 -12
  21. package/dist/cjs/dnd/abstractDragHandler.js +141 -141
  22. package/dist/cjs/dnd/dataTransfer.d.ts +30 -31
  23. package/dist/cjs/dnd/dataTransfer.d.ts.map +1 -1
  24. package/dist/cjs/dnd/dataTransfer.js +99 -100
  25. package/dist/cjs/dnd/dataTransfer.js.map +1 -1
  26. package/dist/cjs/dnd/dnd.d.ts +27 -27
  27. package/dist/cjs/dnd/dnd.js +59 -59
  28. package/dist/cjs/dnd/droptarget.d.ts +53 -53
  29. package/dist/cjs/dnd/droptarget.js +304 -304
  30. package/dist/cjs/dnd/droptarget.js.map +1 -1
  31. package/dist/cjs/dnd/ghost.d.ts +1 -1
  32. package/dist/cjs/dnd/ghost.js +15 -15
  33. package/dist/cjs/dnd/groupDragHandler.d.ts +12 -12
  34. package/dist/cjs/dnd/groupDragHandler.js +77 -77
  35. package/dist/cjs/dnd/overlay.d.ts +43 -43
  36. package/dist/cjs/dnd/overlay.d.ts.map +1 -1
  37. package/dist/cjs/dnd/overlay.js +412 -412
  38. package/dist/cjs/dnd/overlay.js.map +1 -1
  39. package/dist/cjs/dockview/components/panel/content.d.ts +30 -30
  40. package/dist/cjs/dockview/components/panel/content.js +100 -100
  41. package/dist/cjs/dockview/components/tab/defaultTab.d.ts +21 -21
  42. package/dist/cjs/dockview/components/tab/defaultTab.js +105 -105
  43. package/dist/cjs/dockview/components/tab/tab.d.ts +34 -34
  44. package/dist/cjs/dockview/components/tab/tab.js +120 -120
  45. package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +81 -81
  46. package/dist/cjs/dockview/components/titlebar/tabsContainer.js +325 -325
  47. package/dist/cjs/dockview/components/titlebar/voidContainer.d.ts +17 -17
  48. package/dist/cjs/dockview/components/titlebar/voidContainer.js +77 -77
  49. package/dist/cjs/dockview/components/watermark/watermark.d.ts +18 -18
  50. package/dist/cjs/dockview/components/watermark/watermark.js +87 -87
  51. package/dist/cjs/dockview/deserializer.d.ts +12 -12
  52. package/dist/cjs/dockview/deserializer.js +33 -33
  53. package/dist/cjs/dockview/deserializer.js.map +1 -1
  54. package/dist/cjs/dockview/dockviewComponent.d.ts +159 -159
  55. package/dist/cjs/dockview/dockviewComponent.d.ts.map +1 -1
  56. package/dist/cjs/dockview/dockviewComponent.js +1170 -1156
  57. package/dist/cjs/dockview/dockviewComponent.js.map +1 -1
  58. package/dist/cjs/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
  59. package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +34 -34
  60. package/dist/cjs/dockview/dockviewGroupPanel.d.ts +30 -30
  61. package/dist/cjs/dockview/dockviewGroupPanel.js +97 -97
  62. package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +185 -185
  63. package/dist/cjs/dockview/dockviewGroupPanelModel.js +632 -631
  64. package/dist/cjs/dockview/dockviewGroupPanelModel.js.map +1 -1
  65. package/dist/cjs/dockview/dockviewPanel.d.ts +41 -41
  66. package/dist/cjs/dockview/dockviewPanel.js +172 -171
  67. package/dist/cjs/dockview/dockviewPanel.js.map +1 -1
  68. package/dist/cjs/dockview/dockviewPanelModel.d.ts +35 -35
  69. package/dist/cjs/dockview/dockviewPanelModel.js +98 -98
  70. package/dist/cjs/dockview/dockviewPanelModel.js.map +1 -1
  71. package/dist/cjs/dockview/options.d.ts +133 -136
  72. package/dist/cjs/dockview/options.d.ts.map +1 -1
  73. package/dist/cjs/dockview/options.js +31 -31
  74. package/dist/cjs/dockview/types.d.ts +63 -63
  75. package/dist/cjs/dockview/types.js +10 -10
  76. package/dist/cjs/dockview/types.js.map +1 -1
  77. package/dist/cjs/dom.d.ts +16 -16
  78. package/dist/cjs/dom.js +197 -197
  79. package/dist/cjs/events.d.ts +47 -47
  80. package/dist/cjs/events.js +216 -216
  81. package/dist/cjs/events.js.map +1 -1
  82. package/dist/cjs/gridview/baseComponentGridview.d.ts +88 -87
  83. package/dist/cjs/gridview/baseComponentGridview.d.ts.map +1 -1
  84. package/dist/cjs/gridview/baseComponentGridview.js +270 -270
  85. package/dist/cjs/gridview/baseComponentGridview.js.map +1 -1
  86. package/dist/cjs/gridview/basePanelView.d.ts +40 -40
  87. package/dist/cjs/gridview/basePanelView.js +156 -156
  88. package/dist/cjs/gridview/branchNode.d.ts +49 -49
  89. package/dist/cjs/gridview/branchNode.js +343 -343
  90. package/dist/cjs/gridview/gridview.d.ts +133 -133
  91. package/dist/cjs/gridview/gridview.js +547 -547
  92. package/dist/cjs/gridview/gridviewComponent.d.ts +80 -80
  93. package/dist/cjs/gridview/gridviewComponent.d.ts.map +1 -1
  94. package/dist/cjs/gridview/gridviewComponent.js +362 -360
  95. package/dist/cjs/gridview/gridviewComponent.js.map +1 -1
  96. package/dist/cjs/gridview/gridviewPanel.d.ts +65 -65
  97. package/dist/cjs/gridview/gridviewPanel.js +214 -214
  98. package/dist/cjs/gridview/leafNode.d.ts +34 -34
  99. package/dist/cjs/gridview/leafNode.js +170 -170
  100. package/dist/cjs/gridview/leafNode.js.map +1 -1
  101. package/dist/cjs/gridview/options.d.ts +17 -18
  102. package/dist/cjs/gridview/options.d.ts.map +1 -1
  103. package/dist/cjs/gridview/options.js +2 -2
  104. package/dist/cjs/gridview/types.d.ts +3 -3
  105. package/dist/cjs/gridview/types.js +2 -2
  106. package/dist/cjs/index.d.ts +42 -42
  107. package/dist/cjs/index.js +61 -61
  108. package/dist/cjs/lifecycle.d.ts +23 -23
  109. package/dist/cjs/lifecycle.js +65 -65
  110. package/dist/cjs/lifecycle.js.map +1 -1
  111. package/dist/cjs/math.d.ts +5 -5
  112. package/dist/cjs/math.js +34 -34
  113. package/dist/cjs/panel/componentFactory.d.ts +11 -10
  114. package/dist/cjs/panel/componentFactory.d.ts.map +1 -1
  115. package/dist/cjs/panel/componentFactory.js +30 -30
  116. package/dist/cjs/panel/componentFactory.js.map +1 -1
  117. package/dist/cjs/panel/types.d.ts +33 -33
  118. package/dist/cjs/panel/types.js +2 -2
  119. package/dist/cjs/paneview/defaultPaneviewHeader.d.ts +21 -21
  120. package/dist/cjs/paneview/defaultPaneviewHeader.js +90 -90
  121. package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +21 -21
  122. package/dist/cjs/paneview/draggablePaneviewPanel.js +131 -131
  123. package/dist/cjs/paneview/options.d.ts +25 -28
  124. package/dist/cjs/paneview/options.d.ts.map +1 -1
  125. package/dist/cjs/paneview/options.js +2 -2
  126. package/dist/cjs/paneview/paneview.d.ts +40 -40
  127. package/dist/cjs/paneview/paneview.d.ts.map +1 -1
  128. package/dist/cjs/paneview/paneview.js +200 -201
  129. package/dist/cjs/paneview/paneview.js.map +1 -1
  130. package/dist/cjs/paneview/paneviewComponent.d.ts +128 -128
  131. package/dist/cjs/paneview/paneviewComponent.js +400 -397
  132. package/dist/cjs/paneview/paneviewComponent.js.map +1 -1
  133. package/dist/cjs/paneview/paneviewPanel.d.ts +92 -92
  134. package/dist/cjs/paneview/paneviewPanel.d.ts.map +1 -1
  135. package/dist/cjs/paneview/paneviewPanel.js +275 -275
  136. package/dist/cjs/resizable.d.ts +10 -7
  137. package/dist/cjs/resizable.d.ts.map +1 -1
  138. package/dist/cjs/resizable.js +79 -64
  139. package/dist/cjs/resizable.js.map +1 -1
  140. package/dist/cjs/splitview/options.d.ts +26 -27
  141. package/dist/cjs/splitview/options.d.ts.map +1 -1
  142. package/dist/cjs/splitview/options.js +2 -2
  143. package/dist/cjs/splitview/splitview.d.ts +128 -128
  144. package/dist/cjs/splitview/splitview.js +936 -936
  145. package/dist/cjs/splitview/splitview.js.map +1 -1
  146. package/dist/cjs/splitview/splitviewComponent.d.ts +101 -101
  147. package/dist/cjs/splitview/splitviewComponent.js +395 -392
  148. package/dist/cjs/splitview/splitviewComponent.js.map +1 -1
  149. package/dist/cjs/splitview/splitviewPanel.d.ts +45 -45
  150. package/dist/cjs/splitview/splitviewPanel.d.ts.map +1 -1
  151. package/dist/cjs/splitview/splitviewPanel.js +179 -179
  152. package/dist/cjs/splitview/splitviewPanel.js.map +1 -1
  153. package/dist/cjs/splitview/viewItem.d.ts +25 -25
  154. package/dist/cjs/splitview/viewItem.js +119 -119
  155. package/dist/cjs/svg.d.ts +3 -3
  156. package/dist/cjs/svg.js +43 -43
  157. package/dist/cjs/types.d.ts +2 -2
  158. package/dist/cjs/types.js +2 -2
  159. package/dist/dockview-core.amd.js +7650 -7316
  160. package/dist/dockview-core.amd.js.map +1 -1
  161. package/dist/dockview-core.amd.min.js +2 -2
  162. package/dist/dockview-core.amd.min.js.map +1 -1
  163. package/dist/dockview-core.amd.min.noStyle.js +2 -2
  164. package/dist/dockview-core.amd.min.noStyle.js.map +1 -1
  165. package/dist/dockview-core.amd.noStyle.js +7601 -7267
  166. package/dist/dockview-core.amd.noStyle.js.map +1 -1
  167. package/dist/dockview-core.cjs.js +7650 -7316
  168. package/dist/dockview-core.cjs.js.map +1 -1
  169. package/dist/dockview-core.esm.js +7650 -7316
  170. package/dist/dockview-core.esm.js.map +1 -1
  171. package/dist/dockview-core.esm.min.js +2 -2
  172. package/dist/dockview-core.esm.min.js.map +1 -1
  173. package/dist/dockview-core.js +7650 -7316
  174. package/dist/dockview-core.js.map +1 -1
  175. package/dist/dockview-core.min.js +2 -2
  176. package/dist/dockview-core.min.js.map +1 -1
  177. package/dist/dockview-core.min.noStyle.js +2 -2
  178. package/dist/dockview-core.min.noStyle.js.map +1 -1
  179. package/dist/dockview-core.noStyle.js +7601 -7267
  180. package/dist/dockview-core.noStyle.js.map +1 -1
  181. package/dist/esm/api/component.api.d.ts +455 -152
  182. package/dist/esm/api/component.api.d.ts.map +1 -1
  183. package/dist/esm/api/component.api.js +638 -335
  184. package/dist/esm/api/component.api.js.map +1 -1
  185. package/dist/esm/api/dockviewGroupPanelApi.d.ts +29 -29
  186. package/dist/esm/api/dockviewGroupPanelApi.js +27 -27
  187. package/dist/esm/api/dockviewPanelApi.d.ts +47 -47
  188. package/dist/esm/api/dockviewPanelApi.js +53 -53
  189. package/dist/esm/api/gridviewPanelApi.d.ts +37 -37
  190. package/dist/esm/api/gridviewPanelApi.js +25 -25
  191. package/dist/esm/api/panelApi.d.ts +88 -88
  192. package/dist/esm/api/panelApi.js +93 -93
  193. package/dist/esm/api/paneviewPanelApi.d.ts +26 -26
  194. package/dist/esm/api/paneviewPanelApi.js +27 -27
  195. package/dist/esm/api/splitviewPanelApi.d.ts +32 -32
  196. package/dist/esm/api/splitviewPanelApi.js +25 -25
  197. package/dist/esm/array.d.ts +13 -13
  198. package/dist/esm/array.js +57 -57
  199. package/dist/esm/dnd/abstractDragHandler.d.ts +12 -12
  200. package/dist/esm/dnd/abstractDragHandler.js +63 -63
  201. package/dist/esm/dnd/dataTransfer.d.ts +30 -31
  202. package/dist/esm/dnd/dataTransfer.d.ts.map +1 -1
  203. package/dist/esm/dnd/dataTransfer.js +66 -69
  204. package/dist/esm/dnd/dataTransfer.js.map +1 -1
  205. package/dist/esm/dnd/dnd.d.ts +27 -27
  206. package/dist/esm/dnd/dnd.js +36 -36
  207. package/dist/esm/dnd/droptarget.d.ts +53 -53
  208. package/dist/esm/dnd/droptarget.js +274 -274
  209. package/dist/esm/dnd/droptarget.js.map +1 -1
  210. package/dist/esm/dnd/ghost.d.ts +1 -1
  211. package/dist/esm/dnd/ghost.js +11 -11
  212. package/dist/esm/dnd/groupDragHandler.d.ts +12 -12
  213. package/dist/esm/dnd/groupDragHandler.js +54 -54
  214. package/dist/esm/dnd/overlay.d.ts +43 -43
  215. package/dist/esm/dnd/overlay.d.ts.map +1 -1
  216. package/dist/esm/dnd/overlay.js +304 -304
  217. package/dist/esm/dnd/overlay.js.map +1 -1
  218. package/dist/esm/dockview/components/panel/content.d.ts +30 -30
  219. package/dist/esm/dockview/components/panel/content.js +73 -73
  220. package/dist/esm/dockview/components/tab/defaultTab.d.ts +21 -21
  221. package/dist/esm/dockview/components/tab/defaultTab.js +67 -67
  222. package/dist/esm/dockview/components/tab/tab.d.ts +34 -34
  223. package/dist/esm/dockview/components/tab/tab.js +90 -90
  224. package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +81 -81
  225. package/dist/esm/dockview/components/titlebar/tabsContainer.js +239 -239
  226. package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +17 -17
  227. package/dist/esm/dockview/components/titlebar/voidContainer.js +51 -51
  228. package/dist/esm/dockview/components/watermark/watermark.d.ts +18 -18
  229. package/dist/esm/dockview/components/watermark/watermark.js +61 -61
  230. package/dist/esm/dockview/deserializer.d.ts +12 -12
  231. package/dist/esm/dockview/deserializer.js +28 -28
  232. package/dist/esm/dockview/deserializer.js.map +1 -1
  233. package/dist/esm/dockview/dockviewComponent.d.ts +159 -159
  234. package/dist/esm/dockview/dockviewComponent.d.ts.map +1 -1
  235. package/dist/esm/dockview/dockviewComponent.js +932 -918
  236. package/dist/esm/dockview/dockviewComponent.js.map +1 -1
  237. package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +23 -23
  238. package/dist/esm/dockview/dockviewFloatingGroupPanel.js +12 -12
  239. package/dist/esm/dockview/dockviewGroupPanel.d.ts +30 -30
  240. package/dist/esm/dockview/dockviewGroupPanel.js +51 -51
  241. package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +185 -185
  242. package/dist/esm/dockview/dockviewGroupPanelModel.js +499 -498
  243. package/dist/esm/dockview/dockviewGroupPanelModel.js.map +1 -1
  244. package/dist/esm/dockview/dockviewPanel.d.ts +41 -41
  245. package/dist/esm/dockview/dockviewPanel.js +105 -104
  246. package/dist/esm/dockview/dockviewPanel.js.map +1 -1
  247. package/dist/esm/dockview/dockviewPanelModel.d.ts +35 -35
  248. package/dist/esm/dockview/dockviewPanelModel.js +74 -74
  249. package/dist/esm/dockview/dockviewPanelModel.js.map +1 -1
  250. package/dist/esm/dockview/options.d.ts +133 -136
  251. package/dist/esm/dockview/options.d.ts.map +1 -1
  252. package/dist/esm/dockview/options.js +24 -24
  253. package/dist/esm/dockview/types.d.ts +63 -63
  254. package/dist/esm/dockview/types.js +7 -7
  255. package/dist/esm/dom.d.ts +16 -16
  256. package/dist/esm/dom.js +126 -126
  257. package/dist/esm/events.d.ts +47 -47
  258. package/dist/esm/events.js +156 -156
  259. package/dist/esm/events.js.map +1 -1
  260. package/dist/esm/gridview/baseComponentGridview.d.ts +88 -87
  261. package/dist/esm/gridview/baseComponentGridview.d.ts.map +1 -1
  262. package/dist/esm/gridview/baseComponentGridview.js +184 -184
  263. package/dist/esm/gridview/baseComponentGridview.js.map +1 -1
  264. package/dist/esm/gridview/basePanelView.d.ts +40 -40
  265. package/dist/esm/gridview/basePanelView.js +85 -85
  266. package/dist/esm/gridview/branchNode.d.ts +49 -49
  267. package/dist/esm/gridview/branchNode.js +219 -219
  268. package/dist/esm/gridview/gridview.d.ts +133 -133
  269. package/dist/esm/gridview/gridview.js +461 -461
  270. package/dist/esm/gridview/gridviewComponent.d.ts +80 -80
  271. package/dist/esm/gridview/gridviewComponent.d.ts.map +1 -1
  272. package/dist/esm/gridview/gridviewComponent.js +264 -262
  273. package/dist/esm/gridview/gridviewComponent.js.map +1 -1
  274. package/dist/esm/gridview/gridviewPanel.d.ts +65 -65
  275. package/dist/esm/gridview/gridviewPanel.js +151 -151
  276. package/dist/esm/gridview/leafNode.d.ts +34 -34
  277. package/dist/esm/gridview/leafNode.js +103 -103
  278. package/dist/esm/gridview/options.d.ts +17 -18
  279. package/dist/esm/gridview/options.d.ts.map +1 -1
  280. package/dist/esm/gridview/options.js +1 -1
  281. package/dist/esm/gridview/types.d.ts +3 -3
  282. package/dist/esm/gridview/types.js +1 -1
  283. package/dist/esm/index.d.ts +42 -42
  284. package/dist/esm/index.js +34 -34
  285. package/dist/esm/lifecycle.d.ts +23 -23
  286. package/dist/esm/lifecycle.js +41 -41
  287. package/dist/esm/math.d.ts +5 -5
  288. package/dist/esm/math.js +28 -28
  289. package/dist/esm/panel/componentFactory.d.ts +11 -10
  290. package/dist/esm/panel/componentFactory.d.ts.map +1 -1
  291. package/dist/esm/panel/componentFactory.js +24 -24
  292. package/dist/esm/panel/componentFactory.js.map +1 -1
  293. package/dist/esm/panel/types.d.ts +33 -33
  294. package/dist/esm/panel/types.js +1 -1
  295. package/dist/esm/paneview/defaultPaneviewHeader.d.ts +21 -21
  296. package/dist/esm/paneview/defaultPaneviewHeader.js +63 -63
  297. package/dist/esm/paneview/draggablePaneviewPanel.d.ts +21 -21
  298. package/dist/esm/paneview/draggablePaneviewPanel.js +92 -92
  299. package/dist/esm/paneview/options.d.ts +25 -28
  300. package/dist/esm/paneview/options.d.ts.map +1 -1
  301. package/dist/esm/paneview/options.js +1 -1
  302. package/dist/esm/paneview/paneview.d.ts +40 -40
  303. package/dist/esm/paneview/paneview.d.ts.map +1 -1
  304. package/dist/esm/paneview/paneview.js +145 -145
  305. package/dist/esm/paneview/paneviewComponent.d.ts +128 -128
  306. package/dist/esm/paneview/paneviewComponent.js +276 -273
  307. package/dist/esm/paneview/paneviewComponent.js.map +1 -1
  308. package/dist/esm/paneview/paneviewPanel.d.ts +92 -92
  309. package/dist/esm/paneview/paneviewPanel.d.ts.map +1 -1
  310. package/dist/esm/paneview/paneviewPanel.js +192 -192
  311. package/dist/esm/resizable.d.ts +10 -7
  312. package/dist/esm/resizable.d.ts.map +1 -1
  313. package/dist/esm/resizable.js +48 -38
  314. package/dist/esm/resizable.js.map +1 -1
  315. package/dist/esm/splitview/options.d.ts +26 -27
  316. package/dist/esm/splitview/options.d.ts.map +1 -1
  317. package/dist/esm/splitview/options.js +1 -1
  318. package/dist/esm/splitview/splitview.d.ts +128 -128
  319. package/dist/esm/splitview/splitview.js +704 -704
  320. package/dist/esm/splitview/splitviewComponent.d.ts +101 -101
  321. package/dist/esm/splitview/splitviewComponent.js +261 -258
  322. package/dist/esm/splitview/splitviewComponent.js.map +1 -1
  323. package/dist/esm/splitview/splitviewPanel.d.ts +45 -45
  324. package/dist/esm/splitview/splitviewPanel.d.ts.map +1 -1
  325. package/dist/esm/splitview/splitviewPanel.js +108 -108
  326. package/dist/esm/splitview/splitviewPanel.js.map +1 -1
  327. package/dist/esm/splitview/viewItem.d.ts +25 -25
  328. package/dist/esm/splitview/viewItem.js +74 -74
  329. package/dist/esm/svg.d.ts +3 -3
  330. package/dist/esm/svg.js +31 -31
  331. package/dist/esm/types.d.ts +2 -2
  332. package/dist/esm/types.js +1 -1
  333. package/package.json +30 -42
  334. package/LICENSE +0 -21
@@ -1,336 +1,639 @@
1
- import { Emitter } from '../events';
2
- export class SplitviewApi {
3
- get minimumSize() {
4
- return this.component.minimumSize;
5
- }
6
- get maximumSize() {
7
- return this.component.maximumSize;
8
- }
9
- get height() {
10
- return this.component.height;
11
- }
12
- get width() {
13
- return this.component.width;
14
- }
15
- get length() {
16
- return this.component.length;
17
- }
18
- get orientation() {
19
- return this.component.orientation;
20
- }
21
- get panels() {
22
- return this.component.panels;
23
- }
24
- get onDidLayoutFromJSON() {
25
- return this.component.onDidLayoutFromJSON;
26
- }
27
- get onDidLayoutChange() {
28
- return this.component.onDidLayoutChange;
29
- }
30
- get onDidAddView() {
31
- return this.component.onDidAddView;
32
- }
33
- get onDidRemoveView() {
34
- return this.component.onDidRemoveView;
35
- }
36
- constructor(component) {
37
- this.component = component;
38
- }
39
- updateOptions(options) {
40
- this.component.updateOptions(options);
41
- }
42
- removePanel(panel, sizing) {
43
- this.component.removePanel(panel, sizing);
44
- }
45
- focus() {
46
- this.component.focus();
47
- }
48
- getPanel(id) {
49
- return this.component.getPanel(id);
50
- }
51
- layout(width, height) {
52
- return this.component.layout(width, height);
53
- }
54
- addPanel(options) {
55
- return this.component.addPanel(options);
56
- }
57
- movePanel(from, to) {
58
- this.component.movePanel(from, to);
59
- }
60
- fromJSON(data) {
61
- this.component.fromJSON(data);
62
- }
63
- toJSON() {
64
- return this.component.toJSON();
65
- }
66
- clear() {
67
- this.component.clear();
68
- }
69
- }
70
- export class PaneviewApi {
71
- get minimumSize() {
72
- return this.component.minimumSize;
73
- }
74
- get maximumSize() {
75
- return this.component.maximumSize;
76
- }
77
- get height() {
78
- return this.component.height;
79
- }
80
- get width() {
81
- return this.component.width;
82
- }
83
- get panels() {
84
- return this.component.panels;
85
- }
86
- get onDidLayoutChange() {
87
- return this.component.onDidLayoutChange;
88
- }
89
- get onDidLayoutFromJSON() {
90
- return this.component.onDidLayoutFromJSON;
91
- }
92
- get onDidAddView() {
93
- return this.component.onDidAddView;
94
- }
95
- get onDidRemoveView() {
96
- return this.component.onDidRemoveView;
97
- }
98
- get onDidDrop() {
99
- const emitter = new Emitter();
100
- const disposable = this.component.onDidDrop((e) => {
101
- emitter.fire(Object.assign(Object.assign({}, e), { api: this }));
102
- });
103
- emitter.dispose = () => {
104
- disposable.dispose();
105
- emitter.dispose();
106
- };
107
- return emitter.event;
108
- }
109
- constructor(component) {
110
- this.component = component;
111
- }
112
- removePanel(panel) {
113
- this.component.removePanel(panel);
114
- }
115
- getPanel(id) {
116
- return this.component.getPanel(id);
117
- }
118
- movePanel(from, to) {
119
- this.component.movePanel(from, to);
120
- }
121
- focus() {
122
- this.component.focus();
123
- }
124
- layout(width, height) {
125
- this.component.layout(width, height);
126
- }
127
- addPanel(options) {
128
- return this.component.addPanel(options);
129
- }
130
- fromJSON(data) {
131
- this.component.fromJSON(data);
132
- }
133
- toJSON() {
134
- return this.component.toJSON();
135
- }
136
- clear() {
137
- this.component.clear();
138
- }
139
- }
140
- export class GridviewApi {
141
- get minimumHeight() {
142
- return this.component.minimumHeight;
143
- }
144
- get maximumHeight() {
145
- return this.component.maximumHeight;
146
- }
147
- get minimumWidth() {
148
- return this.component.minimumWidth;
149
- }
150
- get maximumWidth() {
151
- return this.component.maximumWidth;
152
- }
153
- get width() {
154
- return this.component.width;
155
- }
156
- get height() {
157
- return this.component.height;
158
- }
159
- get onDidLayoutChange() {
160
- return this.component.onDidLayoutChange;
161
- }
162
- get onDidAddPanel() {
163
- return this.component.onDidAddGroup;
164
- }
165
- get onDidRemovePanel() {
166
- return this.component.onDidRemoveGroup;
167
- }
168
- get onDidActivePanelChange() {
169
- return this.component.onDidActiveGroupChange;
170
- }
171
- get onDidLayoutFromJSON() {
172
- return this.component.onDidLayoutFromJSON;
173
- }
174
- get panels() {
175
- return this.component.groups;
176
- }
177
- get orientation() {
178
- return this.component.orientation;
179
- }
180
- set orientation(value) {
181
- this.component.updateOptions({ orientation: value });
182
- }
183
- constructor(component) {
184
- this.component = component;
185
- }
186
- focus() {
187
- this.component.focus();
188
- }
189
- layout(width, height, force = false) {
190
- this.component.layout(width, height, force);
191
- }
192
- addPanel(options) {
193
- return this.component.addPanel(options);
194
- }
195
- removePanel(panel, sizing) {
196
- this.component.removePanel(panel, sizing);
197
- }
198
- movePanel(panel, options) {
199
- this.component.movePanel(panel, options);
200
- }
201
- getPanel(id) {
202
- return this.component.getPanel(id);
203
- }
204
- fromJSON(data) {
205
- return this.component.fromJSON(data);
206
- }
207
- toJSON() {
208
- return this.component.toJSON();
209
- }
210
- clear() {
211
- this.component.clear();
212
- }
213
- }
214
- export class DockviewApi {
215
- get id() {
216
- return this.component.id;
217
- }
218
- get width() {
219
- return this.component.width;
220
- }
221
- get height() {
222
- return this.component.height;
223
- }
224
- get minimumHeight() {
225
- return this.component.minimumHeight;
226
- }
227
- get maximumHeight() {
228
- return this.component.maximumHeight;
229
- }
230
- get minimumWidth() {
231
- return this.component.minimumWidth;
232
- }
233
- get maximumWidth() {
234
- return this.component.maximumWidth;
235
- }
236
- get size() {
237
- return this.component.size;
238
- }
239
- get totalPanels() {
240
- return this.component.totalPanels;
241
- }
242
- get onDidActiveGroupChange() {
243
- return this.component.onDidActiveGroupChange;
244
- }
245
- get onDidAddGroup() {
246
- return this.component.onDidAddGroup;
247
- }
248
- get onDidRemoveGroup() {
249
- return this.component.onDidRemoveGroup;
250
- }
251
- get onDidActivePanelChange() {
252
- return this.component.onDidActivePanelChange;
253
- }
254
- get onDidAddPanel() {
255
- return this.component.onDidAddPanel;
256
- }
257
- get onDidRemovePanel() {
258
- return this.component.onDidRemovePanel;
259
- }
260
- get onDidLayoutFromJSON() {
261
- return this.component.onDidLayoutFromJSON;
262
- }
263
- get onDidLayoutChange() {
264
- return this.component.onDidLayoutChange;
265
- }
266
- get onDidDrop() {
267
- return this.component.onDidDrop;
268
- }
269
- get onWillDragGroup() {
270
- return this.component.onWillDragGroup;
271
- }
272
- get onWillDragPanel() {
273
- return this.component.onWillDragPanel;
274
- }
275
- get panels() {
276
- return this.component.panels;
277
- }
278
- get groups() {
279
- return this.component.groups;
280
- }
281
- get activePanel() {
282
- return this.component.activePanel;
283
- }
284
- get activeGroup() {
285
- return this.component.activeGroup;
286
- }
287
- constructor(component) {
288
- this.component = component;
289
- }
290
- focus() {
291
- this.component.focus();
292
- }
293
- getPanel(id) {
294
- return this.component.getGroupPanel(id);
295
- }
296
- layout(width, height, force = false) {
297
- this.component.layout(width, height, force);
298
- }
299
- addPanel(options) {
300
- return this.component.addPanel(options);
301
- }
302
- removePanel(panel) {
303
- this.component.removePanel(panel);
304
- }
305
- addGroup(options) {
306
- return this.component.addGroup(options);
307
- }
308
- moveToNext(options) {
309
- this.component.moveToNext(options);
310
- }
311
- moveToPrevious(options) {
312
- this.component.moveToPrevious(options);
313
- }
314
- closeAllGroups() {
315
- return this.component.closeAllGroups();
316
- }
317
- removeGroup(group) {
318
- this.component.removeGroup(group);
319
- }
320
- getGroup(id) {
321
- return this.component.getPanel(id);
322
- }
323
- addFloatingGroup(item, coord) {
324
- return this.component.addFloatingGroup(item, coord);
325
- }
326
- fromJSON(data) {
327
- this.component.fromJSON(data);
328
- }
329
- toJSON() {
330
- return this.component.toJSON();
331
- }
332
- clear() {
333
- this.component.clear();
334
- }
335
- }
1
+ import { Emitter } from '../events';
2
+ export class SplitviewApi {
3
+ /**
4
+ * The minimum size the component can reach where size is measured in the direction of orientation provided.
5
+ */
6
+ get minimumSize() {
7
+ return this.component.minimumSize;
8
+ }
9
+ /**
10
+ * The maximum size the component can reach where size is measured in the direction of orientation provided.
11
+ */
12
+ get maximumSize() {
13
+ return this.component.maximumSize;
14
+ }
15
+ /**
16
+ * Width of the component.
17
+ */
18
+ get width() {
19
+ return this.component.width;
20
+ }
21
+ /**
22
+ * Height of the component.
23
+ */
24
+ get height() {
25
+ return this.component.height;
26
+ }
27
+ /**
28
+ * The current number of panels.
29
+ */
30
+ get length() {
31
+ return this.component.length;
32
+ }
33
+ /**
34
+ * The current orientation of the component.
35
+ */
36
+ get orientation() {
37
+ return this.component.orientation;
38
+ }
39
+ /**
40
+ * The list of current panels.
41
+ */
42
+ get panels() {
43
+ return this.component.panels;
44
+ }
45
+ /**
46
+ * Invoked after a layout is loaded through the `fromJSON` method.
47
+ */
48
+ get onDidLayoutFromJSON() {
49
+ return this.component.onDidLayoutFromJSON;
50
+ }
51
+ /**
52
+ * Invoked whenever any aspect of the layout changes.
53
+ * If listening to this event it may be worth debouncing ouputs.
54
+ */
55
+ get onDidLayoutChange() {
56
+ return this.component.onDidLayoutChange;
57
+ }
58
+ /**
59
+ * Invoked when a view is added.
60
+ */
61
+ get onDidAddView() {
62
+ return this.component.onDidAddView;
63
+ }
64
+ /**
65
+ * Invoked when a view is removed.
66
+ */
67
+ get onDidRemoveView() {
68
+ return this.component.onDidRemoveView;
69
+ }
70
+ constructor(component) {
71
+ this.component = component;
72
+ }
73
+ /**
74
+ * Update configuratable options.
75
+ */
76
+ updateOptions(options) {
77
+ this.component.updateOptions(options);
78
+ }
79
+ /**
80
+ * Removes an existing panel and optionally provide a `Sizing` method
81
+ * for the subsequent resize.
82
+ */
83
+ removePanel(panel, sizing) {
84
+ this.component.removePanel(panel, sizing);
85
+ }
86
+ /**
87
+ * Focus the component.
88
+ */
89
+ focus() {
90
+ this.component.focus();
91
+ }
92
+ /**
93
+ * Get the reference to a panel given it's `string` id.
94
+ */
95
+ getPanel(id) {
96
+ return this.component.getPanel(id);
97
+ }
98
+ /**
99
+ * Layout the panel with a width and height.
100
+ */
101
+ layout(width, height) {
102
+ return this.component.layout(width, height);
103
+ }
104
+ /**
105
+ * Add a new panel and return the created instance.
106
+ */
107
+ addPanel(options) {
108
+ return this.component.addPanel(options);
109
+ }
110
+ /**
111
+ * Move a panel given it's current and desired index.
112
+ */
113
+ movePanel(from, to) {
114
+ this.component.movePanel(from, to);
115
+ }
116
+ /**
117
+ * Deserialize a layout to built a splitivew.
118
+ */
119
+ fromJSON(data) {
120
+ this.component.fromJSON(data);
121
+ }
122
+ /** Serialize a layout */
123
+ toJSON() {
124
+ return this.component.toJSON();
125
+ }
126
+ /**
127
+ * Remove all panels and clear the component.
128
+ */
129
+ clear() {
130
+ this.component.clear();
131
+ }
132
+ }
133
+ export class PaneviewApi {
134
+ /**
135
+ * The minimum size the component can reach where size is measured in the direction of orientation provided.
136
+ */
137
+ get minimumSize() {
138
+ return this.component.minimumSize;
139
+ }
140
+ /**
141
+ * The maximum size the component can reach where size is measured in the direction of orientation provided.
142
+ */
143
+ get maximumSize() {
144
+ return this.component.maximumSize;
145
+ }
146
+ /**
147
+ * Width of the component.
148
+ */
149
+ get width() {
150
+ return this.component.width;
151
+ }
152
+ /**
153
+ * Height of the component.
154
+ */
155
+ get height() {
156
+ return this.component.height;
157
+ }
158
+ /**
159
+ * All panel objects.
160
+ */
161
+ get panels() {
162
+ return this.component.panels;
163
+ }
164
+ /**
165
+ * Invoked when any layout change occures, an aggregation of many events.
166
+ */
167
+ get onDidLayoutChange() {
168
+ return this.component.onDidLayoutChange;
169
+ }
170
+ /**
171
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
172
+ */
173
+ get onDidLayoutFromJSON() {
174
+ return this.component.onDidLayoutFromJSON;
175
+ }
176
+ /**
177
+ * Invoked when a panel is added. May be called multiple times when moving panels.
178
+ */
179
+ get onDidAddView() {
180
+ return this.component.onDidAddView;
181
+ }
182
+ /**
183
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
184
+ */
185
+ get onDidRemoveView() {
186
+ return this.component.onDidRemoveView;
187
+ }
188
+ /**
189
+ * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
190
+ */
191
+ get onDidDrop() {
192
+ const emitter = new Emitter();
193
+ const disposable = this.component.onDidDrop((e) => {
194
+ emitter.fire(Object.assign(Object.assign({}, e), { api: this }));
195
+ });
196
+ emitter.dispose = () => {
197
+ disposable.dispose();
198
+ emitter.dispose();
199
+ };
200
+ return emitter.event;
201
+ }
202
+ constructor(component) {
203
+ this.component = component;
204
+ }
205
+ /**
206
+ * Remove a panel given the panel object.
207
+ */
208
+ removePanel(panel) {
209
+ this.component.removePanel(panel);
210
+ }
211
+ /**
212
+ * Get a panel object given a `string` id. May return `undefined`.
213
+ */
214
+ getPanel(id) {
215
+ return this.component.getPanel(id);
216
+ }
217
+ /**
218
+ * Move a panel given it's current and desired index.
219
+ */
220
+ movePanel(from, to) {
221
+ this.component.movePanel(from, to);
222
+ }
223
+ /**
224
+ * Focus the component. Will try to focus an active panel if one exists.
225
+ */
226
+ focus() {
227
+ this.component.focus();
228
+ }
229
+ /**
230
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
231
+ */
232
+ layout(width, height) {
233
+ this.component.layout(width, height);
234
+ }
235
+ /**
236
+ * Add a panel and return the created object.
237
+ */
238
+ addPanel(options) {
239
+ return this.component.addPanel(options);
240
+ }
241
+ /**
242
+ * Create a component from a serialized object.
243
+ */
244
+ fromJSON(data) {
245
+ this.component.fromJSON(data);
246
+ }
247
+ /**
248
+ * Create a serialized object of the current component.
249
+ */
250
+ toJSON() {
251
+ return this.component.toJSON();
252
+ }
253
+ /**
254
+ * Reset the component back to an empty and default state.
255
+ */
256
+ clear() {
257
+ this.component.clear();
258
+ }
259
+ }
260
+ export class GridviewApi {
261
+ /**
262
+ * Width of the component.
263
+ */
264
+ get width() {
265
+ return this.component.width;
266
+ }
267
+ /**
268
+ * Height of the component.
269
+ */
270
+ get height() {
271
+ return this.component.height;
272
+ }
273
+ /**
274
+ * Minimum height of the component.
275
+ */
276
+ get minimumHeight() {
277
+ return this.component.minimumHeight;
278
+ }
279
+ /**
280
+ * Maximum height of the component.
281
+ */
282
+ get maximumHeight() {
283
+ return this.component.maximumHeight;
284
+ }
285
+ /**
286
+ * Minimum width of the component.
287
+ */
288
+ get minimumWidth() {
289
+ return this.component.minimumWidth;
290
+ }
291
+ /**
292
+ * Maximum width of the component.
293
+ */
294
+ get maximumWidth() {
295
+ return this.component.maximumWidth;
296
+ }
297
+ /**
298
+ * Invoked when any layout change occures, an aggregation of many events.
299
+ */
300
+ get onDidLayoutChange() {
301
+ return this.component.onDidLayoutChange;
302
+ }
303
+ /**
304
+ * Invoked when a panel is added. May be called multiple times when moving panels.
305
+ */
306
+ get onDidAddPanel() {
307
+ return this.component.onDidAddGroup;
308
+ }
309
+ /**
310
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
311
+ */
312
+ get onDidRemovePanel() {
313
+ return this.component.onDidRemoveGroup;
314
+ }
315
+ /**
316
+ * Invoked when the active panel changes. May be undefined if no panel is active.
317
+ */
318
+ get onDidActivePanelChange() {
319
+ return this.component.onDidActiveGroupChange;
320
+ }
321
+ /**
322
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
323
+ */
324
+ get onDidLayoutFromJSON() {
325
+ return this.component.onDidLayoutFromJSON;
326
+ }
327
+ /**
328
+ * All panel objects.
329
+ */
330
+ get panels() {
331
+ return this.component.groups;
332
+ }
333
+ /**
334
+ * Current orientation. Can be changed after initialization.
335
+ */
336
+ get orientation() {
337
+ return this.component.orientation;
338
+ }
339
+ set orientation(value) {
340
+ this.component.updateOptions({ orientation: value });
341
+ }
342
+ constructor(component) {
343
+ this.component = component;
344
+ }
345
+ /**
346
+ * Focus the component. Will try to focus an active panel if one exists.
347
+ */
348
+ focus() {
349
+ this.component.focus();
350
+ }
351
+ /**
352
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
353
+ */
354
+ layout(width, height, force = false) {
355
+ this.component.layout(width, height, force);
356
+ }
357
+ /**
358
+ * Add a panel and return the created object.
359
+ */
360
+ addPanel(options) {
361
+ return this.component.addPanel(options);
362
+ }
363
+ /**
364
+ * Remove a panel given the panel object.
365
+ */
366
+ removePanel(panel, sizing) {
367
+ this.component.removePanel(panel, sizing);
368
+ }
369
+ /**
370
+ * Move a panel in a particular direction relative to another panel.
371
+ */
372
+ movePanel(panel, options) {
373
+ this.component.movePanel(panel, options);
374
+ }
375
+ /**
376
+ * Get a panel object given a `string` id. May return `undefined`.
377
+ */
378
+ getPanel(id) {
379
+ return this.component.getPanel(id);
380
+ }
381
+ /**
382
+ * Create a component from a serialized object.
383
+ */
384
+ fromJSON(data) {
385
+ return this.component.fromJSON(data);
386
+ }
387
+ /**
388
+ * Create a serialized object of the current component.
389
+ */
390
+ toJSON() {
391
+ return this.component.toJSON();
392
+ }
393
+ /**
394
+ * Reset the component back to an empty and default state.
395
+ */
396
+ clear() {
397
+ this.component.clear();
398
+ }
399
+ }
400
+ export class DockviewApi {
401
+ /**
402
+ * The unique identifier for this instance. Used to manage scope of Drag'n'Drop events.
403
+ */
404
+ get id() {
405
+ return this.component.id;
406
+ }
407
+ /**
408
+ * Width of the component.
409
+ */
410
+ get width() {
411
+ return this.component.width;
412
+ }
413
+ /**
414
+ * Height of the component.
415
+ */
416
+ get height() {
417
+ return this.component.height;
418
+ }
419
+ /**
420
+ * Minimum height of the component.
421
+ */
422
+ get minimumHeight() {
423
+ return this.component.minimumHeight;
424
+ }
425
+ /**
426
+ * Maximum height of the component.
427
+ */
428
+ get maximumHeight() {
429
+ return this.component.maximumHeight;
430
+ }
431
+ /**
432
+ * Minimum width of the component.
433
+ */
434
+ get minimumWidth() {
435
+ return this.component.minimumWidth;
436
+ }
437
+ /**
438
+ * Maximum width of the component.
439
+ */
440
+ get maximumWidth() {
441
+ return this.component.maximumWidth;
442
+ }
443
+ /**
444
+ * Total number of groups.
445
+ */
446
+ get size() {
447
+ return this.component.size;
448
+ }
449
+ /**
450
+ * Total number of panels.
451
+ */
452
+ get totalPanels() {
453
+ return this.component.totalPanels;
454
+ }
455
+ /**
456
+ * Invoked when the active group changes. May be undefined if no group is active.
457
+ */
458
+ get onDidActiveGroupChange() {
459
+ return this.component.onDidActiveGroupChange;
460
+ }
461
+ /**
462
+ * Invoked when a group is added. May be called multiple times when moving groups.
463
+ */
464
+ get onDidAddGroup() {
465
+ return this.component.onDidAddGroup;
466
+ }
467
+ /**
468
+ * Invoked when a group is removed. May be called multiple times when moving groups.
469
+ */
470
+ get onDidRemoveGroup() {
471
+ return this.component.onDidRemoveGroup;
472
+ }
473
+ /**
474
+ * Invoked when the active panel changes. May be undefined if no panel is active.
475
+ */
476
+ get onDidActivePanelChange() {
477
+ return this.component.onDidActivePanelChange;
478
+ }
479
+ /**
480
+ * Invoked when a panel is added. May be called multiple times when moving panels.
481
+ */
482
+ get onDidAddPanel() {
483
+ return this.component.onDidAddPanel;
484
+ }
485
+ /**
486
+ * Invoked when a panel is removed. May be called multiple times when moving panels.
487
+ */
488
+ get onDidRemovePanel() {
489
+ return this.component.onDidRemovePanel;
490
+ }
491
+ /**
492
+ * Invoked after a layout is deserialzied using the `fromJSON` method.
493
+ */
494
+ get onDidLayoutFromJSON() {
495
+ return this.component.onDidLayoutFromJSON;
496
+ }
497
+ /**
498
+ * Invoked when any layout change occures, an aggregation of many events.
499
+ */
500
+ get onDidLayoutChange() {
501
+ return this.component.onDidLayoutChange;
502
+ }
503
+ /**
504
+ * Invoked when a Drag'n'Drop event occurs that the component was unable to handle. Exposed for custom Drag'n'Drop functionality.
505
+ */
506
+ get onDidDrop() {
507
+ return this.component.onDidDrop;
508
+ }
509
+ /**
510
+ * Invoked before a group is dragged. Exposed for custom Drag'n'Drop functionality.
511
+ */
512
+ get onWillDragGroup() {
513
+ return this.component.onWillDragGroup;
514
+ }
515
+ /**
516
+ * Invoked before a panel is dragged. Exposed for custom Drag'n'Drop functionality.
517
+ */
518
+ get onWillDragPanel() {
519
+ return this.component.onWillDragPanel;
520
+ }
521
+ /**
522
+ * All panel objects.
523
+ */
524
+ get panels() {
525
+ return this.component.panels;
526
+ }
527
+ /**
528
+ * All group objects.
529
+ */
530
+ get groups() {
531
+ return this.component.groups;
532
+ }
533
+ /**
534
+ * Active panel object.
535
+ */
536
+ get activePanel() {
537
+ return this.component.activePanel;
538
+ }
539
+ /**
540
+ * Active group object.
541
+ */
542
+ get activeGroup() {
543
+ return this.component.activeGroup;
544
+ }
545
+ constructor(component) {
546
+ this.component = component;
547
+ }
548
+ /**
549
+ * Focus the component. Will try to focus an active panel if one exists.
550
+ */
551
+ focus() {
552
+ this.component.focus();
553
+ }
554
+ /**
555
+ * Get a panel object given a `string` id. May return `undefined`.
556
+ */
557
+ getPanel(id) {
558
+ return this.component.getGroupPanel(id);
559
+ }
560
+ /**
561
+ * Force resize the component to an exact width and height. Read about auto-resizing before using.
562
+ */
563
+ layout(width, height, force = false) {
564
+ this.component.layout(width, height, force);
565
+ }
566
+ /**
567
+ * Add a panel and return the created object.
568
+ */
569
+ addPanel(options) {
570
+ return this.component.addPanel(options);
571
+ }
572
+ /**
573
+ * Remove a panel given the panel object.
574
+ */
575
+ removePanel(panel) {
576
+ this.component.removePanel(panel);
577
+ }
578
+ /**
579
+ * Add a group and return the created object.
580
+ */
581
+ addGroup(options) {
582
+ return this.component.addGroup(options);
583
+ }
584
+ /**
585
+ * Close all groups and panels.
586
+ */
587
+ closeAllGroups() {
588
+ return this.component.closeAllGroups();
589
+ }
590
+ /**
591
+ * Remove a group and any panels within the group.
592
+ */
593
+ removeGroup(group) {
594
+ this.component.removeGroup(group);
595
+ }
596
+ /**
597
+ * Get a group object given a `string` id. May return undefined.
598
+ */
599
+ getGroup(id) {
600
+ return this.component.getPanel(id);
601
+ }
602
+ /**
603
+ * Add a floating group
604
+ */
605
+ addFloatingGroup(item, coord) {
606
+ return this.component.addFloatingGroup(item, coord);
607
+ }
608
+ /**
609
+ * Create a component from a serialized object.
610
+ */
611
+ fromJSON(data) {
612
+ this.component.fromJSON(data);
613
+ }
614
+ /**
615
+ * Create a serialized object of the current component.
616
+ */
617
+ toJSON() {
618
+ return this.component.toJSON();
619
+ }
620
+ /**
621
+ * Reset the component back to an empty and default state.
622
+ */
623
+ clear() {
624
+ this.component.clear();
625
+ }
626
+ /**
627
+ * Move the focus progmatically to the next panel or group.
628
+ */
629
+ moveToNext(options) {
630
+ this.component.moveToNext(options);
631
+ }
632
+ /**
633
+ * Move the focus progmatically to the previous panel or group.
634
+ */
635
+ moveToPrevious(options) {
636
+ this.component.moveToPrevious(options);
637
+ }
638
+ }
336
639
  //# sourceMappingURL=component.api.js.map