mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-24 23:37:57 +01:00
Fix eslint errors
This commit is contained in:
parent
c469d82599
commit
b48d55ebca
@ -24,13 +24,11 @@ import Node from './Node';
|
||||
import RootedTreeSet from './RootedTreeSet';
|
||||
|
||||
class BalancedSorter extends AbstractBasicSorter {
|
||||
|
||||
private static INTERNODE_VERTICAL_PADDING = 5;
|
||||
|
||||
private static INTERNODE_HORIZONTAL_PADDING = 30;
|
||||
|
||||
predict(graph, parent, node: Node, position: PositionType) {
|
||||
|
||||
const rootNode = graph.getRootNode(parent);
|
||||
|
||||
// If it is a dragged node...
|
||||
@ -243,7 +241,7 @@ class BalancedSorter extends AbstractBasicSorter {
|
||||
return 'Balanced Sorter';
|
||||
}
|
||||
|
||||
protected _getChildrenForOrder(parent: Node, graph: RootedTreeSet, order: number) {
|
||||
protected _getChildrenForOrder(parent: Node, graph: RootedTreeSet, order: number) {
|
||||
return this._getSortedChildren(graph, parent)
|
||||
.filter((child) => child.getOrder() % 2 === order % 2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user