@cpfr/tootframes 1.0.9 → 1.0.11
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/README.md +2 -3
- package/dist/DockContainer.d.ts +10 -0
- package/dist/Panel.d.ts +1 -0
- package/dist/tootframes.esm.js +1 -1
- package/dist/tootframes.esm.js.map +1 -1
- package/dist/tootframes.js +1 -1
- package/dist/tootframes.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,12 +26,11 @@ The name *"Tootframes"* is derived from the sound an elephant does plus *"frames
|
|
|
26
26
|
Zlib: https://opensource.org/license/zlib
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
|
-
```
|
|
29
|
+
```ts
|
|
30
30
|
import { ROOT, NodeEditor, Node } from "@cpfr/tootframes";
|
|
31
31
|
|
|
32
32
|
// create a new node editor
|
|
33
|
-
let nodeEditor = new NodeEditor(
|
|
34
|
-
|
|
33
|
+
let nodeEditor = new NodeEditor();
|
|
35
34
|
|
|
36
35
|
// create two nodes
|
|
37
36
|
var n1 = new Node("Node 1");
|
package/dist/DockContainer.d.ts
CHANGED
|
@@ -20,9 +20,19 @@ declare class DockingStructure {
|
|
|
20
20
|
static fromDockPanel(dockPanel: DockPanel): DockingStructure;
|
|
21
21
|
static fromDockContainer(dockContainer: DockContainer): DockingStructure;
|
|
22
22
|
}
|
|
23
|
+
declare class DockSeparator extends Widget {
|
|
24
|
+
prev: Dockable;
|
|
25
|
+
next: Dockable;
|
|
26
|
+
constructor(prev: Dockable, next: Dockable, parent: DockContainer);
|
|
27
|
+
onDragStart(mouseEvt: MouseEvent): boolean;
|
|
28
|
+
onDragging(dragInfo: DragInfo): void;
|
|
29
|
+
onDragEnd(mouseEvt: MouseEvent): void;
|
|
30
|
+
}
|
|
23
31
|
declare abstract class Dockable extends Widget {
|
|
24
32
|
_dockPercentage: number;
|
|
25
33
|
identifier: string | null;
|
|
34
|
+
separatorBefore?: DockSeparator;
|
|
35
|
+
separatorAfter?: DockSeparator;
|
|
26
36
|
}
|
|
27
37
|
declare class DockContainer extends Dockable {
|
|
28
38
|
children: Dockable[];
|
package/dist/Panel.d.ts
CHANGED