Skip to content

Commit

Permalink
refactor(imgui): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 13, 2021
1 parent b22054e commit 82767ed
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/imgui/src/behaviors/button.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pointInside } from "@thi.ng/geom";
import { pointInside } from "@thi.ng/geom/ops/point-inside";
import type { IShape } from "@thi.ng/geom-api";
import { Key } from "../api";
import { tooltipRaw } from "../components/tooltip";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/behaviors/slider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FnN4 } from "@thi.ng/api";
import { pointInside } from "@thi.ng/geom";
import { pointInside } from "@thi.ng/geom/ops/point-inside";
import type { IShape } from "@thi.ng/geom-api";
import { clamp } from "@thi.ng/math/interval";
import { roundTo } from "@thi.ng/math/prec";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/button.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn5 } from "@thi.ng/api";
import { rect } from "@thi.ng/geom";
import { rect } from "@thi.ng/geom/ctors/rect";
import type { IShape } from "@thi.ng/geom-api";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { ZERO2 } from "@thi.ng/vectors/api";
Expand Down
3 changes: 2 additions & 1 deletion packages/imgui/src/components/dial.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Fn } from "@thi.ng/api";
import { circle, line } from "@thi.ng/geom";
import { circle } from "@thi.ng/geom/ctors/circle";
import { line } from "@thi.ng/geom/ctors/line";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { isLayout } from "@thi.ng/layout/is-layout";
import { HALF_PI, PI, TAU } from "@thi.ng/math/api";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/dropdown.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { polygon } from "@thi.ng/geom";
import { polygon } from "@thi.ng/geom/ctors/polygon";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { gridLayout } from "@thi.ng/layout/grid-layout";
import { isLayout } from "@thi.ng/layout/is-layout";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/icon-button.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rect } from "@thi.ng/geom";
import { rect } from "@thi.ng/geom/ctors/rect";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { isLayout } from "@thi.ng/layout/is-layout";
import { hash } from "@thi.ng/vectors/hash";
Expand Down
6 changes: 5 additions & 1 deletion packages/imgui/src/components/radial-menu.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { centroid, circle, polygon, Polygon, vertices } from "@thi.ng/geom";
import type { Polygon } from "@thi.ng/geom";
import { triFan } from "@thi.ng/geom-tessellate/tri-fan";
import { circle } from "@thi.ng/geom/ctors/circle";
import { polygon } from "@thi.ng/geom/ctors/polygon";
import { centroid } from "@thi.ng/geom/ops/centroid";
import { vertices } from "@thi.ng/geom/ops/vertices";
import { mod } from "@thi.ng/math/prec";
import { mapIndexed } from "@thi.ng/transducers/xform/map-indexed";
import { add2 } from "@thi.ng/vectors/add";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/ring.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn, FnN2 } from "@thi.ng/api";
import { polygon } from "@thi.ng/geom";
import { polygon } from "@thi.ng/geom/ctors/polygon";
import { pointInRect } from "@thi.ng/geom-isec/point";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { isLayout } from "@thi.ng/layout/is-layout";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/sliderh.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn } from "@thi.ng/api";
import { rect } from "@thi.ng/geom";
import { rect } from "@thi.ng/geom/ctors/rect";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { fit, norm } from "@thi.ng/math/fit";
import { hash } from "@thi.ng/vectors/hash";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/sliderv.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Fn } from "@thi.ng/api";
import { rect } from "@thi.ng/geom";
import { rect } from "@thi.ng/geom/ctors/rect";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { fit, norm } from "@thi.ng/math/fit";
import { ZERO2 } from "@thi.ng/vectors/api";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/textfield.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Predicate } from "@thi.ng/api";
import { rect } from "@thi.ng/geom";
import { rect } from "@thi.ng/geom/ctors/rect";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { fitClamped } from "@thi.ng/math/fit";
import { hash } from "@thi.ng/vectors/hash";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/toggle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rect } from "@thi.ng/geom";
import { rect } from "@thi.ng/geom/ctors/rect";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import { hash } from "@thi.ng/vectors/hash";
import { handleButtonKeys, hoverButton } from "../behaviors/button";
Expand Down
2 changes: 1 addition & 1 deletion packages/imgui/src/components/tooltip.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rect } from "@thi.ng/geom";
import { rect } from "@thi.ng/geom/ctors/rect";
import { add2 } from "@thi.ng/vectors/add";
import type { IMGUI } from "../gui";
import { textLabelRaw } from "./textlabel";
Expand Down
3 changes: 2 additions & 1 deletion packages/imgui/src/components/xypad.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Fn } from "@thi.ng/api";
import { line, rect } from "@thi.ng/geom";
import { line } from "@thi.ng/geom/ctors/line";
import { rect } from "@thi.ng/geom/ctors/rect";
import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
import type { Vec } from "@thi.ng/vectors";
import { fit2 } from "@thi.ng/vectors/fit";
Expand Down

0 comments on commit 82767ed

Please sign in to comment.