Skip to content

Commit f098e44

Browse files
author
release bot
committed
📦 0.4.0
1 parent c806c5c commit f098e44

File tree

4 files changed

+247
-194
lines changed

4 files changed

+247
-194
lines changed

‎action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: "Arthurlobopro"
44

55
runs:
66
using: docker
7-
image: docker://arthurlobo/snk@sha256:c77e609524f8ff86c42ca7b8d72b63c2fb99b27b969a94107e7f58b0877c51c7
7+
image: docker://arthurlobo/snk@sha256:e6ce52d361c6673fa860f5af70bcb36c27909429faeea7795a10cfc54d29a244
88

99
inputs:
1010
github_user_name:

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "snk",
33
"description": "Generates a snake game from a github user contributions grid",
4-
"version": "0.3.0",
4+
"version": "0.4.0",
55
"private": true,
66
"repository": "github:platane/snk",
77
"devDependencies": {

‎svg-only/dist/764.index.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,12 +620,15 @@ const getPathToPose = (snake0, target, grid) => {
620620
}
621621
};
622622

623+
// EXTERNAL MODULE: ./parsers/index.ts + 7 modules
624+
var parsers = __webpack_require__(4618);
623625
;// CONCATENATED MODULE: ./generateContributionSnake.ts
624626

625627

626628

627629

628630

631+
629632
const generateContributionSnake = async (userName, outputs, options) => {
630633
console.log("🎣 fetching github user contribution");
631634
const cells = await getGithubUserContribution(userName, options);
@@ -634,6 +637,9 @@ const generateContributionSnake = async (userName, outputs, options) => {
634637
if (!out)
635638
return;
636639
const { format, drawOptions, animationOptions, snakeSize } = out;
640+
if (animationOptions.detectSpeed) {
641+
animationOptions.frameDuration = (0,parsers/* calculateAutoSpeed */.hC)(cells);
642+
}
637643
const snake = createSnakeFromSize(snakeSize);
638644
console.log(`📡 computing best route for ${i}° snake`);
639645
const chain = getBestRoute(grid, snake);

0 commit comments

Comments
 (0)