@cpfr/tootframes 1.0.15 → 1.0.17

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.
@@ -9,15 +9,15 @@ declare class ListViewColumn {
9
9
  }
10
10
  declare class StringListViewColumn extends ListViewColumn {
11
11
  constructor(name: string, isReadOnly: boolean);
12
- compare(a: string, b: string): 0 | 1 | -1;
12
+ compare(a: string, b: string): 1 | -1 | 0;
13
13
  }
14
14
  declare class IntListViewColumn extends ListViewColumn {
15
15
  constructor(name: string, isReadOnly: boolean);
16
- compare(a: number, b: number): 0 | 1 | -1;
16
+ compare(a: number, b: number): 1 | -1 | 0;
17
17
  }
18
18
  declare class FloatListViewColumn extends ListViewColumn {
19
19
  constructor(name: string, isReadOnly: boolean);
20
- compare(a: number, b: number): 0 | 1 | -1;
20
+ compare(a: number, b: number): 1 | -1 | 0;
21
21
  }
22
22
  declare class ListView extends Widget {
23
23
  private _columns;
@@ -56,7 +56,8 @@ declare class NodeEditor extends Widget {
56
56
  private _svg;
57
57
  private _nodes;
58
58
  _viewport: NodeEditorViewport;
59
- private _zoomWithoutCtrl;
59
+ private _scrollSpeedX;
60
+ private _scrollSpeedY;
60
61
  _addArrowHeads: boolean;
61
62
  private _defineCtrlShortcuts;
62
63
  _targetInput?: NodePort;
@@ -77,7 +78,7 @@ declare class NodeEditor extends Widget {
77
78
  _nodeRemovedCallback: (removedNode: Node) => void;
78
79
  _previouslySelectedNodes: any[];
79
80
  _connections: any;
80
- constructor(nodeSelectedCallback?: (selectedNode: Node) => void, nodeDeselectedCallback?: (deselectedNode: Node) => void, nodeAddedCallback?: (addedNode: Node) => void, nodeRemovedCallback?: (removedNode: Node) => void, zoomWithoutCtrl?: boolean, addArrowHeads?: boolean, defineCtrlShortcuts?: boolean, undoHistory?: UndoHistory);
81
+ constructor(nodeSelectedCallback?: (selectedNode: Node) => void, nodeDeselectedCallback?: (deselectedNode: Node) => void, nodeAddedCallback?: (addedNode: Node) => void, nodeRemovedCallback?: (removedNode: Node) => void, scrollSpeedX?: number, scrollSpeedY?: number, addArrowHeads?: boolean, defineCtrlShortcuts?: boolean, undoHistory?: UndoHistory);
81
82
  onCopy(): void;
82
83
  onCut(): void;
83
84
  onPaste(fromContextMenu: boolean): void;
@@ -91,7 +92,8 @@ declare class NodeEditor extends Widget {
91
92
  hasFocus(): boolean;
92
93
  _applyZoom(newZoom: number, x?: number, y?: number): void;
93
94
  useArrowHeads(useArrowHeads: boolean): void;
94
- zoomWithoutCtrl(zoomWithoutCtrl: boolean): void;
95
+ scrollSpeedX(scrollSpeedX: number): void;
96
+ scrollSpeedY(scrollSpeedY: number): void;
95
97
  _addConnection(connection: NodeConnection): void;
96
98
  _removeConnection(connection: NodeConnection): void;
97
99
  _removeSelectedNodes(): void;