diff --git a/CHANGELOG.md b/CHANGELOG.md index effe43c..e283a19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ -## 1.0.0 +## 0.1.0 - Initial version. + +## 0.2.0 + +- Update example docs. diff --git a/example/polylabel_example.dart b/example/polylabel_example.dart index 10fc079..f7c66ed 100644 --- a/example/polylabel_example.dart +++ b/example/polylabel_example.dart @@ -1,6 +1,11 @@ +import 'dart:math'; + import 'package:polylabel/polylabel.dart'; -// void main() { -// var awesome = Awesome(); -// print('awesome: ${awesome.isAwesome}'); -// } +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} +} diff --git a/pubspec.yaml b/pubspec.yaml index 23d1606..644aad6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: polylabel description: Dart port of https://github.com/mapbox/polylabel. -version: 0.1.0 +version: 0.2.0 repository: https://github.com/beroso/dart_polylabel environment: