🚿 refactor + clean up
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Color } from "@snk/compute/grid";
|
||||
import { pathRoundedRect } from "./pathRoundedRect";
|
||||
import { Point } from "@snk/compute/point";
|
||||
import type { Color } from "@snk/types/grid";
|
||||
import type { Point } from "@snk/types/point";
|
||||
|
||||
type Options = {
|
||||
colorDots: Record<Color, string>;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { getColor } from "@snk/compute/grid";
|
||||
import { getColor } from "@snk/types/grid";
|
||||
import { pathRoundedRect } from "./pathRoundedRect";
|
||||
import type { Grid, Color } from "@snk/compute/grid";
|
||||
import type { Point } from "@snk/compute/point";
|
||||
import type { Grid, Color } from "@snk/types/grid";
|
||||
import type { Point } from "@snk/types/point";
|
||||
|
||||
type Options = {
|
||||
colorDots: Record<Color, string>;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { pathRoundedRect } from "./pathRoundedRect";
|
||||
import { Snake, snakeToCells } from "@snk/compute/snake";
|
||||
import { snakeToCells } from "@snk/types/snake";
|
||||
import type { Snake } from "@snk/types/snake";
|
||||
|
||||
type Options = {
|
||||
colorSnake: string;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { drawGrid } from "./drawGrid";
|
||||
import { drawSnake, drawSnakeLerp } from "./drawSnake";
|
||||
import type { Grid, Color } from "@snk/compute/grid";
|
||||
import type { Point } from "@snk/compute/point";
|
||||
import type { Snake } from "@snk/compute/snake";
|
||||
import type { Grid, Color } from "@snk/types/grid";
|
||||
import type { Point } from "@snk/types/point";
|
||||
import type { Snake } from "@snk/types/snake";
|
||||
|
||||
export type Options = {
|
||||
colorDots: Record<Color, string>;
|
||||
|
||||
Reference in New Issue
Block a user