GraphSpatialIndex({double gridSize = 500.0, this.portSnapDistance = 8.0}) : _grid = SpatialGrid<SpatialItem>(gridSize: gridSize);