simplify_dart 1.2.4

  • Readme
  • Changelog
  • Installing
  • 58

simplify_dart is a drat port of the Simplify.js JavaScript polyline simplification library by Vladimir Agafonkin.

See: https://github.com/mourner/simplify-js

Usage #

For a usage example look at the testcase.

1.2.4 #

  • Initial version, numbering follows the simplify.js library.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  simplify_dart: ^1.2.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:simplify_dart/simplify_dart.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
20
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
58
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14

Health suggestions

Format lib/simplify_dart.dart.

Run dartfmt to format lib/simplify_dart.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and simplify_dart.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.8.1 <3.0.0
Dev dependencies
pedantic ^1.8.0
test ^1.6.0