Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

polylabel

dart

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

a fast algorithm for finding polygon pole of inaccessibility implemented as a dart library. useful for optimal placement of a text label on a polygon.

usage

import 'dart:math';

import 'package:polylabel/polylabel.dart';

final polygon = [[point(0, 0), point(1, 0), point(1, 1), point(0, 1), point(0, 0)]];
final result = polylabel(polygon); // polylabelresult(point(0.5, 0.5), distance: 0.5)

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.