Skip to content

Commit

Permalink
📝 Update example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
beroso committed Nov 10, 2021
1 parent 998e6a7 commit 17afcc5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0
## 0.1.0

- Initial version.

## 0.2.0

- Update example docs.
13 changes: 9 additions & 4 deletions example/polylabel_example.dart
Original file line number Diff line number Diff line change
@@ -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}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 17afcc5

Please sign in to comment.