polylabel 0.2.0 copy "polylabel: ^0.2.0" to clipboard
polylabel: ^0.2.0 copied to clipboard

outdated

Dart port of https://github.com/mapbox/polylabel.

example/polylabel_example.dart

import 'dart:math';

import 'package:polylabel/polylabel.dart';

void main() {
  final polygon = [
    [Point(0, 0), Point(1, 0), Point(1, 1), Point(0, 1), Point(0, 0)]
  ];
  final result = polylabel(polygon);
  // PolylabelResult{x: 0.5, y: 0.5, distance: 0.5}
}
9
likes
0
pub points
88%
popularity

Publisher

verified publisherberoso.dev

Dart port of https://github.com/mapbox/polylabel.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection

More

Packages that depend on polylabel