Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 5ef2ca8

Browse files
committed
Fix typo
1 parent cc6067c commit 5ef2ca8

6 files changed

+10
-11
lines changed

lib/shared_src/web_friendly/packages/@location_utils_package/location_utils_package.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ part 'src/_calculate_havershire_3d_distance.dart';
1818
part 'src/_calculate_zoom_to_fit.dart';
1919
part 'src/_distance_unit.dart';
2020
part 'src/_sphere_radius.dart';
21-
part 'src/_t_location.dart';
21+
part 'src/_t_location_components.dart';
2222

2323
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
2424

lib/shared_src/web_friendly/packages/@location_utils_package/src/_calculate_best_center.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ extension CalculateBestCentereOnLocationPackageExtension
1818
/// center unless the distance to the closest marker is greater than the
1919
/// [threshold], then the closest marker is used. The [distanceUnit] is the unit of
2020
/// the threshold.
21-
TLocation calculateBestCenter({
22-
required Set<TLocation> locations,
21+
TLocationComponents calculateBestCenter({
22+
required Set<TLocationComponents> locations,
2323
required double threshold,
2424
required LocationUtilsPackageDistanceUnit distanceUnit,
2525
}) {

lib/shared_src/web_friendly/packages/@location_utils_package/src/_calculate_geometric_center.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ part of '../location_utils_package.dart';
1515
extension CalculateGeometricCentereOnLocationPackageExtension
1616
on LocationUtilsPackage {
1717
/// Calculates the geometric center of a set of locations.
18-
TLocation calculateGeometricCenter(
19-
Set<TLocation> locations,
18+
TLocationComponents calculateGeometricCenter(
19+
Set<TLocationComponents> locations,
2020
) {
2121
if (locations.isEmpty) {
2222
return (

lib/shared_src/web_friendly/packages/@location_utils_package/src/_calculate_havershire_3d_distance.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ extension CalculateHavershire3DDistanceOnLocationPackageExtension
3838
/// - `unit` - The unit of distance to return. Default is `LocationPackageDistanceUnit.METRES`.
3939
/// - `radius` - The radius of the sphere. Default is `LocationPackageSphereRadius.EARTH`.
4040
double calculateHavershire3DDistance({
41-
required TLocation location1,
42-
required TLocation location2,
43-
LocationUtilsPackageDistanceUnit unit =
44-
LocationUtilsPackageDistanceUnit.METRES,
41+
required TLocationComponents location1,
42+
required TLocationComponents location2,
43+
LocationUtilsPackageDistanceUnit unit = LocationUtilsPackageDistanceUnit.METRES,
4544
LocationUtilsPackageRadius radius = LocationUtilsPackageRadius.EARTH,
4645
}) {
4746
final lat1 = location1.latitude;

lib/shared_src/web_friendly/packages/@location_utils_package/src/_calculate_zoom_to_fit.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extension CalculateZoomToFitOnLocationPackageExtension on LocationUtilsPackage {
1919
/// is a multiplier to adjust the zoom level. The [minZoom] and [maxZoom] are
2020
/// the minimum and maximum zoom levels to clamp the result.
2121
double calculateZoomToFit(
22-
Iterable<TLocation> locations, {
22+
Iterable<TLocationComponents> locations, {
2323
double factor = 1.0,
2424
double minZoom = 10.0,
2525
double maxZoom = 20.0,

lib/shared_src/web_friendly/packages/@location_utils_package/src/_t_location.dart lib/shared_src/web_friendly/packages/@location_utils_package/src/_t_location_components.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ part of '../location_utils_package.dart';
1212

1313
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
1414

15-
typedef TLocation = ({double longitude, double latitude, double altitude});
15+
typedef TLocationComponents = ({double longitude, double latitude, double altitude});

0 commit comments

Comments
 (0)