@cpfr/tootframes 1.0.9 → 1.0.10

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 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(null, null, null, null, true, true, new tootframes.UndoHistory());
34
-
33
+ let nodeEditor = new NodeEditor();
35
34
 
36
35
  // create two nodes
37
36
  var n1 = new Node("Node 1");
package/dist/Panel.d.ts CHANGED
@@ -2,6 +2,7 @@ import { Widget } from './Widget';
2
2
  declare class Panel extends Widget {
3
3
  children: Widget[];
4
4
  constructor();
5
+ prependChild(child: Widget): void;
5
6
  appendChild(child: Widget): void;
6
7
  removeChild(child: Widget): void;
7
8
  onAttached(): void;