Files
DefinitelyTyped/polylabel/polylabel-tests.ts
Denis c0ce167c10 Improve polylabel ES6 import syntax (#11260)
Using `import * as polylabel from 'polylabel'` is now valid in Typescript vs. require('polylabel').
2016-09-19 15:15:35 +09:00

9 lines
254 B
TypeScript

/// <reference path="./polylabel.d.ts" />
import * as polylabel from 'polylabel';
const polygon = [[[3116,3071],[3118,3068],[3108,3102],[3751,927]]]
polylabel(polygon)
polylabel(polygon, 1.0)
polylabel(polygon, 1.0, true)
polylabel(polygon, 1.0, false)