ParallelLayout constructor
ParallelLayout(
- Parallel props
Implementation
ParallelLayout(super.props) {
_initData();
// _touchHelper.onClick = (e) {
// if (!props.expandable) {
// return;
// }
// BaseAxisNode? node = findClickAxis(e.localPosition);
// if (node == null) {
// return;
// }
// if (node.axis.silent) {
// return;
// }
//
// ParallelAxisNode? leftNode;
// ParallelAxisNode? rightNode;
// if (_expandLeftIndex >= 0 && _expandLeftIndex < props.axisList.length) {
// var axis = props.axisList[_expandLeftIndex];
// leftNode = _axisMap[axis];
// }
// if (_expandRightIndex >= 0 && _expandRightIndex < props.axisList.length) {
// var axis = props.axisList[_expandRightIndex];
// rightNode = _axisMap[axis];
// }
// Offset offset = e.localPosition;
// if (leftNode != null && rightNode != null) {
// if (props.direction == Direction.horizontal) {
// if (offset.dx >= leftNode.layoutProps.rect.left && offset.dx <= rightNode.layoutProps.rect.left) {
// return;
// }
// } else {
// if (offset.dy >= leftNode.layoutProps.rect.top && offset.dy <= rightNode.layoutProps.rect.top) {
// return;
// }
// }
// }
//
// ///找到
// BaseAxisNode? tmpNode = findMinDistanceAxis(offset);
// if (tmpNode == null) {
// return;
// }
// };
}