Skip to content

Commit

Permalink
fix(geom-tesselate): TS3.4 type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 2, 2019
1 parent 34eab59 commit 800c1c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/geom-tessellate/src/rim-tris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {
partition,
push,
transduce,
zip,
wrap
wrap,
zip
} from "@thi.ng/transducers";
import { mixN, ReadonlyVec, Vec } from "@thi.ng/vectors";

export const rimTris: Tessellator = (points: ReadonlyVec[]) => {
const edgeCentroids = transduce(
comp(partition<Vec>(2, 1), map((e) => mixN([], e[0], e[1], 0.5))),
push(),
push<Vec>(),
wrap(points, 1, false, true)
);
return transduce(
Expand Down

0 comments on commit 800c1c7

Please sign in to comment.