Skip to content

Commit

Permalink
refactor(geom-tessellate): update type-only imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 7, 2020
1 parent cd893cd commit dc88789
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/geom-tessellate/src/earcut.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Tessellator } from "@thi.ng/geom-api";
import { pointInTriangle2 } from "@thi.ng/geom-isec";
import { polyArea2 } from "@thi.ng/geom-poly-utils";
import { range } from "@thi.ng/transducers";
import { ReadonlyVec, signedArea2, Vec } from "@thi.ng/vectors";
import type { Tessellator } from "@thi.ng/geom-api";

const snip = (
points: ReadonlyVec[],
Expand Down
2 changes: 1 addition & 1 deletion packages/geom-tessellate/src/edge-split.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Tessellator } from "@thi.ng/geom-api";
import { centroid } from "@thi.ng/geom-poly-utils";
import {
comp,
Expand All @@ -8,7 +9,6 @@ import {
wrapSides,
} from "@thi.ng/transducers";
import { mixN, ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { Tessellator } from "@thi.ng/geom-api";

export const edgeSplit: Tessellator = (points: ReadonlyVec[]) => {
const c = centroid(points);
Expand Down
2 changes: 1 addition & 1 deletion packages/geom-tessellate/src/inset.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Tessellator } from "@thi.ng/geom-api";
import { centroid } from "@thi.ng/geom-poly-utils";
import {
comp,
Expand All @@ -9,7 +10,6 @@ import {
zip,
} from "@thi.ng/transducers";
import { mixN, ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { Tessellator } from "@thi.ng/geom-api";

export const tesselInset = (inset = 0.5, keepInterior = false): Tessellator => (
points: ReadonlyVec[]
Expand Down
2 changes: 1 addition & 1 deletion packages/geom-tessellate/src/quad-fan.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Tessellator } from "@thi.ng/geom-api";
import { centroid } from "@thi.ng/geom-poly-utils";
import {
comp,
Expand All @@ -8,7 +9,6 @@ import {
wrapSides,
} from "@thi.ng/transducers";
import { mixN, ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { Tessellator } from "@thi.ng/geom-api";

export const quadFan: Tessellator = (points: ReadonlyVec[]) => {
const p = centroid(points);
Expand Down
2 changes: 1 addition & 1 deletion packages/geom-tessellate/src/rim-tris.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Tessellator } from "@thi.ng/geom-api";
import {
comp,
map,
Expand All @@ -8,7 +9,6 @@ import {
zip,
} from "@thi.ng/transducers";
import { mixN, ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { Tessellator } from "@thi.ng/geom-api";

export const rimTris: Tessellator = (points: ReadonlyVec[]) => {
const edgeCentroids = transduce(
Expand Down
2 changes: 1 addition & 1 deletion packages/geom-tessellate/src/tessellate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isFunction } from "@thi.ng/checks";
import type { Tessellator } from "@thi.ng/geom-api";
import {
last,
mapcat,
Expand All @@ -8,7 +9,6 @@ import {
scan,
transduce,
} from "@thi.ng/transducers";
import type { Tessellator } from "@thi.ng/geom-api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";

export function tessellate(
Expand Down
2 changes: 1 addition & 1 deletion packages/geom-tessellate/src/tri-fan.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Tessellator } from "@thi.ng/geom-api";
import { centroid } from "@thi.ng/geom-poly-utils";
import {
comp,
Expand All @@ -7,7 +8,6 @@ import {
transduce,
wrapSides,
} from "@thi.ng/transducers";
import type { Tessellator } from "@thi.ng/geom-api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";

export const triFan: Tessellator = (points: ReadonlyVec[]) => {
Expand Down

0 comments on commit dc88789

Please sign in to comment.