@deephaven/golden-layout 0.19.2-beta.10 → 0.19.2-beta.12
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/dist/LayoutManager.d.ts +313 -0
- package/dist/LayoutManager.d.ts.map +1 -0
- package/dist/LayoutManager.js +468 -450
- package/dist/LayoutManager.js.map +1 -1
- package/dist/base.d.ts +16 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +6 -6
- package/dist/base.js.map +1 -1
- package/dist/config/Config.d.ts +146 -0
- package/dist/config/Config.d.ts.map +1 -0
- package/dist/config/{defaultConfig.js → Config.js} +6 -6
- package/dist/config/Config.js.map +1 -0
- package/dist/config/ItemConfig.d.ts +66 -0
- package/dist/config/ItemConfig.d.ts.map +1 -0
- package/dist/config/ItemConfig.js +14 -0
- package/dist/config/ItemConfig.js.map +1 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -6
- package/dist/config/index.js.map +1 -1
- package/dist/container/ItemContainer.d.ts +91 -0
- package/dist/container/ItemContainer.d.ts.map +1 -0
- package/dist/container/ItemContainer.js +110 -85
- package/dist/container/ItemContainer.js.map +1 -1
- package/dist/container/index.d.ts +3 -0
- package/dist/container/index.d.ts.map +1 -0
- package/dist/container/index.js +2 -4
- package/dist/container/index.js.map +1 -1
- package/dist/controls/BrowserPopout.d.ts +83 -0
- package/dist/controls/BrowserPopout.d.ts.map +1 -0
- package/dist/controls/BrowserPopout.js +135 -101
- package/dist/controls/BrowserPopout.js.map +1 -1
- package/dist/controls/DragProxy.d.ts +67 -0
- package/dist/controls/DragProxy.d.ts.map +1 -0
- package/dist/controls/DragProxy.js +135 -110
- package/dist/controls/DragProxy.js.map +1 -1
- package/dist/controls/DragSource.d.ts +30 -0
- package/dist/controls/DragSource.d.ts.map +1 -0
- package/dist/controls/DragSource.js +37 -29
- package/dist/controls/DragSource.js.map +1 -1
- package/dist/controls/DragSourceFromEvent.d.ts +30 -0
- package/dist/controls/DragSourceFromEvent.d.ts.map +1 -0
- package/dist/controls/DragSourceFromEvent.js +49 -36
- package/dist/controls/DragSourceFromEvent.js.map +1 -1
- package/dist/controls/DropTargetIndicator.d.ts +14 -0
- package/dist/controls/DropTargetIndicator.d.ts.map +1 -0
- package/dist/controls/DropTargetIndicator.js +18 -14
- package/dist/controls/DropTargetIndicator.js.map +1 -1
- package/dist/controls/Header.d.ts +145 -0
- package/dist/controls/Header.d.ts.map +1 -0
- package/dist/controls/Header.js +414 -271
- package/dist/controls/Header.js.map +1 -1
- package/dist/controls/HeaderButton.d.ts +9 -0
- package/dist/controls/HeaderButton.d.ts.map +1 -0
- package/dist/controls/HeaderButton.js +19 -13
- package/dist/controls/HeaderButton.js.map +1 -1
- package/dist/controls/Splitter.d.ts +12 -0
- package/dist/controls/Splitter.d.ts.map +1 -0
- package/dist/controls/Splitter.js +36 -20
- package/dist/controls/Splitter.js.map +1 -1
- package/dist/controls/Tab.d.ts +91 -0
- package/dist/controls/Tab.d.ts.map +1 -0
- package/dist/controls/Tab.js +131 -119
- package/dist/controls/Tab.js.map +1 -1
- package/dist/controls/TransitionIndicator.d.ts +25 -0
- package/dist/controls/TransitionIndicator.d.ts.map +1 -0
- package/dist/controls/TransitionIndicator.js +53 -39
- package/dist/controls/TransitionIndicator.js.map +1 -1
- package/dist/controls/index.d.ts +11 -0
- package/dist/controls/index.d.ts.map +1 -0
- package/dist/controls/index.js +10 -22
- package/dist/controls/index.js.map +1 -1
- package/dist/errors/ConfigurationError.d.ts +6 -0
- package/dist/errors/ConfigurationError.d.ts.map +1 -0
- package/dist/errors/ConfigurationError.js +15 -8
- package/dist/errors/ConfigurationError.js.map +1 -1
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +1 -4
- package/dist/errors/index.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/items/AbstractContentItem.d.ts +233 -0
- package/dist/items/AbstractContentItem.d.ts.map +1 -0
- package/dist/items/AbstractContentItem.js +284 -242
- package/dist/items/AbstractContentItem.js.map +1 -1
- package/dist/items/Component.d.ts +30 -0
- package/dist/items/Component.d.ts.map +1 -0
- package/dist/items/Component.js +61 -42
- package/dist/items/Component.js.map +1 -1
- package/dist/items/Root.d.ts +18 -0
- package/dist/items/Root.d.ts.map +1 -0
- package/dist/items/Root.js +68 -38
- package/dist/items/Root.js.map +1 -1
- package/dist/items/RowOrColumn.d.ts +157 -0
- package/dist/items/RowOrColumn.d.ts.map +1 -0
- package/dist/items/RowOrColumn.js +219 -187
- package/dist/items/RowOrColumn.js.map +1 -1
- package/dist/items/Stack.d.ts +108 -0
- package/dist/items/Stack.d.ts.map +1 -0
- package/dist/items/Stack.js +218 -151
- package/dist/items/Stack.js.map +1 -1
- package/dist/items/index.d.ts +8 -0
- package/dist/items/index.d.ts.map +1 -0
- package/dist/items/index.js +7 -12
- package/dist/items/index.js.map +1 -1
- package/dist/utils/BubblingEvent.d.ts +8 -0
- package/dist/utils/BubblingEvent.d.ts.map +1 -0
- package/dist/utils/BubblingEvent.js +18 -9
- package/dist/utils/BubblingEvent.js.map +1 -1
- package/dist/utils/ConfigMinifier.d.ts +21 -0
- package/dist/utils/ConfigMinifier.d.ts.map +1 -0
- package/dist/utils/ConfigMinifier.js +121 -121
- package/dist/utils/ConfigMinifier.js.map +1 -1
- package/dist/utils/DragListener.d.ts +34 -0
- package/dist/utils/DragListener.d.ts.map +1 -0
- package/dist/utils/DragListener.js +103 -70
- package/dist/utils/DragListener.js.map +1 -1
- package/dist/utils/EventEmitter.d.ts +59 -0
- package/dist/utils/EventEmitter.d.ts.map +1 -0
- package/dist/utils/EventEmitter.js +64 -70
- package/dist/utils/EventEmitter.js.map +1 -1
- package/dist/utils/EventHub.d.ts +55 -0
- package/dist/utils/EventHub.d.ts.map +1 -0
- package/dist/utils/EventHub.js +83 -105
- package/dist/utils/EventHub.js.map +1 -1
- package/dist/utils/ReactComponentHandler.d.ts +54 -0
- package/dist/utils/ReactComponentHandler.d.ts.map +1 -0
- package/dist/utils/ReactComponentHandler.js +58 -56
- package/dist/utils/ReactComponentHandler.js.map +1 -1
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +7 -21
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/utils.d.ts +25 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +21 -145
- package/dist/utils/utils.js.map +1 -1
- package/package.json +9 -5
- package/dist/config/ItemDefaultConfig.js +0 -8
- package/dist/config/ItemDefaultConfig.js.map +0 -1
- package/dist/config/defaultConfig.js.map +0 -1
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ItemConfig, Config, ComponentConfig, ItemConfigType, ReactComponentConfig } from './config';
|
|
3
|
+
import type { ItemContainer } from './container';
|
|
4
|
+
import { BrowserPopout, DragSource, DragSourceFromEvent, DropTargetIndicator, TransitionIndicator } from './controls';
|
|
5
|
+
import { AbstractContentItem, ItemArea, Root, Stack } from './items';
|
|
6
|
+
import { EventEmitter, EventHub } from './utils';
|
|
7
|
+
export declare type ComponentConstructor<C extends ComponentConfig | ReactComponentConfig = ComponentConfig> = {
|
|
8
|
+
new (container: ItemContainer<C>, state: unknown): unknown;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The main class that will be exposed as GoldenLayout.
|
|
12
|
+
*
|
|
13
|
+
* @param config
|
|
14
|
+
* @param container Can be a jQuery selector string or a Dom element. Defaults to body
|
|
15
|
+
*/
|
|
16
|
+
export default class LayoutManager extends EventEmitter {
|
|
17
|
+
/**
|
|
18
|
+
* Hook that allows to access private classes
|
|
19
|
+
*/
|
|
20
|
+
static __lm: {
|
|
21
|
+
config: typeof import("./config");
|
|
22
|
+
container: typeof import("./container");
|
|
23
|
+
controls: typeof import("./controls");
|
|
24
|
+
errors: typeof import("./errors");
|
|
25
|
+
items: typeof import("./items");
|
|
26
|
+
utils: typeof import("./utils");
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Takes a GoldenLayout configuration object and
|
|
30
|
+
* replaces its keys and values recursively with
|
|
31
|
+
* one letter codes
|
|
32
|
+
*
|
|
33
|
+
* @param config A GoldenLayout config object
|
|
34
|
+
* @returns minified config
|
|
35
|
+
*/
|
|
36
|
+
static minifyConfig(config: Config): Record<string, unknown>;
|
|
37
|
+
/**
|
|
38
|
+
* Takes a configuration Object that was previously minified
|
|
39
|
+
* using minifyConfig and returns its original version
|
|
40
|
+
*
|
|
41
|
+
* @param minifiedConfig
|
|
42
|
+
* @returns the original configuration
|
|
43
|
+
*/
|
|
44
|
+
static unminifyConfig(config: Record<string, unknown>): Config;
|
|
45
|
+
isInitialised: boolean;
|
|
46
|
+
private _isFullPage;
|
|
47
|
+
private _resizeTimeoutId;
|
|
48
|
+
private _components;
|
|
49
|
+
private _fallbackComponent?;
|
|
50
|
+
private _itemAreas;
|
|
51
|
+
private _maximisedItem;
|
|
52
|
+
private _maximisePlaceholder;
|
|
53
|
+
private _creationTimeoutPassed;
|
|
54
|
+
private _subWindowsCreated;
|
|
55
|
+
private _dragSources;
|
|
56
|
+
private _updatingColumnsResponsive;
|
|
57
|
+
private _firstLoad;
|
|
58
|
+
width: number | null;
|
|
59
|
+
height: number | null;
|
|
60
|
+
root: Root;
|
|
61
|
+
openPopouts: BrowserPopout[];
|
|
62
|
+
selectedItem: AbstractContentItem | null;
|
|
63
|
+
isSubWindow: boolean;
|
|
64
|
+
eventHub: EventHub;
|
|
65
|
+
config: Config;
|
|
66
|
+
container: JQuery<HTMLElement>;
|
|
67
|
+
private _originalContainer;
|
|
68
|
+
dropTargetIndicator: DropTargetIndicator | null;
|
|
69
|
+
transitionIndicator: TransitionIndicator | null;
|
|
70
|
+
tabDropPlaceholder: JQuery<HTMLElement>;
|
|
71
|
+
private _typeToItem;
|
|
72
|
+
constructor(config: Config, container: JQuery<HTMLElement> | HTMLElement | undefined);
|
|
73
|
+
/**
|
|
74
|
+
* Register a component with the layout manager. If a configuration node
|
|
75
|
+
* of type component is reached it will look up componentName and create the
|
|
76
|
+
* associated component
|
|
77
|
+
*
|
|
78
|
+
* {
|
|
79
|
+
* type: "component",
|
|
80
|
+
* componentName: "EquityNewsFeed",
|
|
81
|
+
* componentState: { "feedTopic": "us-bluechips" }
|
|
82
|
+
* }
|
|
83
|
+
*
|
|
84
|
+
* @param name
|
|
85
|
+
* @param constructor
|
|
86
|
+
* @returns cleanup function to deregister component
|
|
87
|
+
*/
|
|
88
|
+
registerComponent(name: string, constructor: ComponentConstructor | React.Component | React.ForwardRefExoticComponent<any>): () => void;
|
|
89
|
+
/**
|
|
90
|
+
* Set a fallback component to be rendered in place of unregistered components
|
|
91
|
+
* @param constructor
|
|
92
|
+
*/
|
|
93
|
+
setFallbackComponent(constructor: ComponentConstructor | React.ForwardRefExoticComponent<any>): void;
|
|
94
|
+
/**
|
|
95
|
+
* Creates a layout configuration object based on the the current state
|
|
96
|
+
* @param root
|
|
97
|
+
* @returns GoldenLayout configuration
|
|
98
|
+
*/
|
|
99
|
+
toConfig(root?: AbstractContentItem): Config;
|
|
100
|
+
/**
|
|
101
|
+
* Returns a previously registered component
|
|
102
|
+
* @param name The name used
|
|
103
|
+
*/
|
|
104
|
+
getComponent(name: string): ComponentConstructor<ComponentConfig> | ComponentConstructor<ReactComponentConfig> | React.Component<{}, {}, any> | React.ForwardRefExoticComponent<any>;
|
|
105
|
+
/**
|
|
106
|
+
* Returns a fallback component to render in place of unregistered components
|
|
107
|
+
*
|
|
108
|
+
* @public
|
|
109
|
+
*
|
|
110
|
+
* @returns {Function}
|
|
111
|
+
*/
|
|
112
|
+
getFallbackComponent(): ComponentConstructor<ComponentConfig> | React.ForwardRefExoticComponent<any> | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Creates the actual layout. Must be called after all initial components
|
|
115
|
+
* are registered. Recurses through the configuration and sets up
|
|
116
|
+
* the item tree.
|
|
117
|
+
*
|
|
118
|
+
* If called before the document is ready it adds itself as a listener
|
|
119
|
+
* to the document.ready event
|
|
120
|
+
*/
|
|
121
|
+
init(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Updates the layout managers size
|
|
124
|
+
* @param width width in pixels
|
|
125
|
+
* @param height height in pixels
|
|
126
|
+
*/
|
|
127
|
+
updateSize(width?: number, height?: number): void;
|
|
128
|
+
/**
|
|
129
|
+
* Destroys the LayoutManager instance itself as well as every ContentItem
|
|
130
|
+
* within it. After this is called nothing should be left of the LayoutManager.
|
|
131
|
+
*/
|
|
132
|
+
destroy(): void;
|
|
133
|
+
/**
|
|
134
|
+
* Recursively creates new item tree structures based on a provided
|
|
135
|
+
* ItemConfiguration object
|
|
136
|
+
*
|
|
137
|
+
* @public
|
|
138
|
+
* @param config ItemConfig
|
|
139
|
+
* @param parent The item the newly created item should be a child of
|
|
140
|
+
*
|
|
141
|
+
* @returns Created item
|
|
142
|
+
*/
|
|
143
|
+
createContentItem(config: Partial<ComponentConfig> & {
|
|
144
|
+
type: ItemConfig['type'];
|
|
145
|
+
}, parent?: AbstractContentItem): AbstractContentItem;
|
|
146
|
+
/**
|
|
147
|
+
* Creates a popout window with the specified content and dimensions
|
|
148
|
+
*
|
|
149
|
+
* @param configOrContentItem
|
|
150
|
+
* @param dimensions A map with width, height, left and top
|
|
151
|
+
* @param parentId the id of the element this item will be appended to
|
|
152
|
+
* when popIn is called
|
|
153
|
+
* @param indexInParent The position of this item within its parent element
|
|
154
|
+
|
|
155
|
+
* @returns Created popout
|
|
156
|
+
*/
|
|
157
|
+
createPopout(configOrContentItem: ItemConfigType | AbstractContentItem | ItemConfigType[], dimensions?: {
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
left: number;
|
|
161
|
+
top: number;
|
|
162
|
+
}, parentId?: string, indexInParent?: number): BrowserPopout | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* Attaches DragListener to any given DOM element
|
|
165
|
+
* and turns it into a way of creating new ContentItems
|
|
166
|
+
* by 'dragging' the DOM element into the layout
|
|
167
|
+
*
|
|
168
|
+
* @param element
|
|
169
|
+
* @param itemConfig for the new item to be created, or a function which will provide it
|
|
170
|
+
*/
|
|
171
|
+
createDragSource(element: JQuery<HTMLElement>, itemConfig: ComponentConfig | (() => ComponentConfig)): DragSource;
|
|
172
|
+
/**
|
|
173
|
+
* Create a new item in a dragging state, given a starting mouse event to act as the initial position
|
|
174
|
+
*
|
|
175
|
+
* @param itemConfig for the new item to be created, or a function which will provide it
|
|
176
|
+
* @param event used as the starting position for the dragProxy
|
|
177
|
+
*/
|
|
178
|
+
createDragSourceFromEvent(itemConfig: ItemConfig | (() => ItemConfig), event: JQuery.TriggeredEvent): DragSourceFromEvent;
|
|
179
|
+
/**
|
|
180
|
+
* Programmatically selects an item. This deselects
|
|
181
|
+
* the currently selected item, selects the specified item
|
|
182
|
+
* and emits a selectionChanged event
|
|
183
|
+
*
|
|
184
|
+
* @param item
|
|
185
|
+
* @param _$silent Wheather to notify the item of its selection
|
|
186
|
+
*/
|
|
187
|
+
selectItem(item: AbstractContentItem, _$silent?: boolean): void;
|
|
188
|
+
/*************************
|
|
189
|
+
* PACKAGE PRIVATE
|
|
190
|
+
*************************/
|
|
191
|
+
_$maximiseItem(contentItem: AbstractContentItem): void;
|
|
192
|
+
_$minimiseItem(contentItem: AbstractContentItem): void;
|
|
193
|
+
/**
|
|
194
|
+
* This method is used to get around sandboxed iframe restrictions.
|
|
195
|
+
* If 'allow-top-navigation' is not specified in the iframe's 'sandbox' attribute
|
|
196
|
+
* (as is the case with codepens) the parent window is forbidden from calling certain
|
|
197
|
+
* methods on the child, such as window.close() or setting document.location.href.
|
|
198
|
+
*
|
|
199
|
+
* This prevented GoldenLayout popouts from popping in in codepens. The fix is to call
|
|
200
|
+
* _$closeWindow on the child window's gl instance which (after a timeout to disconnect
|
|
201
|
+
* the invoking method from the close call) closes itself.
|
|
202
|
+
*/
|
|
203
|
+
_$closeWindow(): void;
|
|
204
|
+
_$getArea(x: number, y: number): ItemArea<AbstractContentItem> | null;
|
|
205
|
+
/**
|
|
206
|
+
* Creates the drop zones at the edges of the screen
|
|
207
|
+
*/
|
|
208
|
+
_$createRootItemAreas(): void;
|
|
209
|
+
_$calculateItemAreas(): void;
|
|
210
|
+
/**
|
|
211
|
+
* Takes a contentItem or a configuration and optionally a parent
|
|
212
|
+
* item and returns an initialised instance of the contentItem.
|
|
213
|
+
* If the contentItem is a function, it is first called
|
|
214
|
+
*
|
|
215
|
+
* @param contentItemOrConfig
|
|
216
|
+
* @param parent Only necessary when passing in config
|
|
217
|
+
*/
|
|
218
|
+
_$normalizeContentItem(contentItemOrConfig: {
|
|
219
|
+
type: ItemConfig['type'];
|
|
220
|
+
} | ItemConfigType | AbstractContentItem | (() => AbstractContentItem), parent?: AbstractContentItem): AbstractContentItem;
|
|
221
|
+
/**
|
|
222
|
+
* Iterates through the array of open popout windows and removes the ones
|
|
223
|
+
* that are effectively closed. This is necessary due to the lack of reliably
|
|
224
|
+
* listening for window.close / unload events in a cross browser compatible fashion.
|
|
225
|
+
*/
|
|
226
|
+
_$reconcilePopoutWindows(): void;
|
|
227
|
+
/***************************
|
|
228
|
+
* PRIVATE
|
|
229
|
+
***************************/
|
|
230
|
+
/**
|
|
231
|
+
* Returns a flattened array of all content items,
|
|
232
|
+
* regardles of level or type
|
|
233
|
+
* @return Flattened array of content items
|
|
234
|
+
*/
|
|
235
|
+
_getAllContentItems(): AbstractContentItem[];
|
|
236
|
+
/**
|
|
237
|
+
* Binds to DOM/BOM events on init
|
|
238
|
+
*/
|
|
239
|
+
_bindEvents(): void;
|
|
240
|
+
/**
|
|
241
|
+
* Handles setting a class based on window focus, useful for focus indicators
|
|
242
|
+
*/
|
|
243
|
+
_windowBlur(): void;
|
|
244
|
+
_windowFocus(): void;
|
|
245
|
+
/**
|
|
246
|
+
* Debounces resize events
|
|
247
|
+
*/
|
|
248
|
+
_onResize(): void;
|
|
249
|
+
/**
|
|
250
|
+
* Extends the default config with the user specific settings and applies
|
|
251
|
+
* derivations. Please note that there's a seperate method (AbstractContentItem._extendItemNode)
|
|
252
|
+
* that deals with the extension of item configs
|
|
253
|
+
*
|
|
254
|
+
* @param config
|
|
255
|
+
* @returns config
|
|
256
|
+
*/
|
|
257
|
+
_createConfig(config: Config): Config;
|
|
258
|
+
/**
|
|
259
|
+
* This is executed when GoldenLayout detects that it is run
|
|
260
|
+
* within a previously opened popout window.
|
|
261
|
+
*/
|
|
262
|
+
_adjustToWindowMode(): void;
|
|
263
|
+
/**
|
|
264
|
+
* Creates Subwindows (if there are any). Throws an error
|
|
265
|
+
* if popouts are blocked.
|
|
266
|
+
*/
|
|
267
|
+
_createSubWindows(): void;
|
|
268
|
+
_getContainer(): JQuery<HTMLElement>;
|
|
269
|
+
/**
|
|
270
|
+
* Determines what element the layout will be created in
|
|
271
|
+
*/
|
|
272
|
+
_setContainer(): void;
|
|
273
|
+
/**
|
|
274
|
+
* Kicks of the initial, recursive creation chain
|
|
275
|
+
*
|
|
276
|
+
* @param config GoldenLayout Config
|
|
277
|
+
*/
|
|
278
|
+
_create(config: Config): void;
|
|
279
|
+
/**
|
|
280
|
+
* Called when the window is closed or the user navigates away
|
|
281
|
+
* from the page
|
|
282
|
+
*/
|
|
283
|
+
_onUnload(): void;
|
|
284
|
+
/**
|
|
285
|
+
* Adjusts the number of columns to be lower to fit the screen and still maintain minItemWidth.
|
|
286
|
+
*/
|
|
287
|
+
_adjustColumnsResponsive(): void;
|
|
288
|
+
/**
|
|
289
|
+
* Determines if responsive layout should be used.
|
|
290
|
+
*
|
|
291
|
+
* @returns True if responsive layout should be used; otherwise false.
|
|
292
|
+
*/
|
|
293
|
+
_useResponsiveLayout(): boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Adds all children of a node to another container recursively.
|
|
296
|
+
* @param container - Container to add child content items to.
|
|
297
|
+
* @param node - Node to search for content items.
|
|
298
|
+
*/
|
|
299
|
+
_addChildContentItemsToContainer(container: AbstractContentItem, node: AbstractContentItem): void;
|
|
300
|
+
/**
|
|
301
|
+
* Finds all the stack containers.
|
|
302
|
+
* @returns The found stack containers.
|
|
303
|
+
*/
|
|
304
|
+
_findAllStackContainers(): Stack[];
|
|
305
|
+
/**
|
|
306
|
+
* Finds all the stack containers.
|
|
307
|
+
*
|
|
308
|
+
* @param stackContainers Set of containers to populate.
|
|
309
|
+
* @param node Current node to process.
|
|
310
|
+
*/
|
|
311
|
+
_findAllStackContainersRecursive(stackContainers: Stack[], node: AbstractContentItem): void;
|
|
312
|
+
}
|
|
313
|
+
//# sourceMappingURL=LayoutManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutManager.d.ts","sourceRoot":"","sources":["../src/LayoutManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,eAAe,EACf,cAAc,EACd,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,mBAAmB,EACnB,QAAQ,EAGR,IAAI,EAEJ,KAAK,EACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAGL,YAAY,EACZ,QAAQ,EAKT,MAAM,SAAS,CAAC;AAEjB,oBAAY,oBAAoB,CAC9B,CAAC,SAAS,eAAe,GAAG,oBAAoB,GAAG,eAAe,IAChE;IACF,KAAK,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;CAC5D,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ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