🔨 fix typing

This commit is contained in:
platane
2020-10-14 22:37:27 +02:00
committed by Platane
parent 8f5c1969a6
commit 3d16c675bd
9 changed files with 44 additions and 46 deletions

View File

@@ -26,7 +26,7 @@ const drawOptions = {
colorSnake: "purple",
};
const gifOptions = { frameDuration: 20, step: 1 };
const gifOptions = { frameDuration: 200, step: 1 };
(async () => {
const m = 3;

View File

@@ -1,10 +1,10 @@
import * as fs from "fs";
import * as path from "path";
import { createGif } from "..";
import { getBestRoute } from "@snk/compute/getBestRoute";
import * as grids from "@snk/compute/__fixtures__/grid";
import { snake3 as snake } from "@snk/compute/__fixtures__/snake";
import { createSnake, nextSnake } from "@snk/compute/snake";
import { getBestRoute } from "@snk/compute/getBestRoute";
jest.setTimeout(20 * 1000);
@@ -18,7 +18,7 @@ const drawOptions = {
colorSnake: "purple",
};
const gifOptions = { frameDuration: 20, step: 1 };
const gifOptions = { frameDuration: 200, step: 1 };
const dir = path.resolve(__dirname, "__snapshots__");

View File

@@ -79,7 +79,7 @@ export const createGif = async (
[
"convert",
["-loop", "0"],
["-delay", gifOptions.frameDuration.toString()],
["-delay", (gifOptions.frameDuration / 10).toString()],
["-dispose", "2"],
// ["-layers", "OptimizeFrame"],
["-compress", "LZW"],