Skip to content

Commit 0c65111

Browse files
authored
Merge pull request #41 from yoshi389111/release_0.7.0
Release 0.7.0
2 parents a7f8452 + 1b01158 commit 0c65111

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

CHANGE_LOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 2022-08-10, 0.7.0 release
4+
5+
* Added Spanish README.
6+
* Enabled to specify the output destination file name when using settings json
7+
* Multiple custom definitions can be specified in the settings json.
8+
* Made it possible to change the label with a custom definition.
9+
* Added pie_lang_only and radar_contrib_only modes.
10+
* fix: performance bitmap mode.
11+
* fix: growing animation of settings json
12+
313
## 2022-02-12, 0.6.0 release
414

515
* Added git block version.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
name: generate-github-profile-3d-contrib
4646
steps:
4747
- uses: actions/checkout@v2
48-
- uses: yoshi389111/github-profile-3d-contrib@0.6.0
48+
- uses: yoshi389111/github-profile-3d-contrib@0.7.0
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
USERNAME: ${{ github.repository_owner }}

dist/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ exports.createPieLanguage = void 0;
871871
const d3 = __importStar(__nccwpck_require__(45203));
872872
const OTHER_NAME = 'other';
873873
const OTHER_COLOR = '#444444';
874-
const createPieLanguage = (svg, userInfo, x, y, width, height, settings, isAnimate) => {
874+
const createPieLanguage = (svg, userInfo, x, y, width, height, settings, isForcedAnimation) => {
875875
if (userInfo.totalContributions === 0) {
876876
return;
877877
}
@@ -887,6 +887,7 @@ const createPieLanguage = (svg, userInfo, x, y, width, height, settings, isAnima
887887
contributions: otherContributions,
888888
});
889889
}
890+
const isAnimate = settings.growingAnimation || isForcedAnimation;
890891
const animeSteps = 5;
891892
const animateOpacity = (num) => Array(languages.length + animeSteps)
892893
.fill('')
@@ -1017,10 +1018,11 @@ const toLevel = (value) => {
10171018
const result = Math.log10(value);
10181019
return Math.min(result, 5) + 1;
10191020
};
1020-
const createRadarContrib = (svg, userInfo, x, y, width, height, settings, isAnimate) => {
1021+
const createRadarContrib = (svg, userInfo, x, y, width, height, settings, isForcedAnimation) => {
10211022
const radius = (height / 2) * 0.8;
10221023
const cx = width / 2;
10231024
const cy = (height / 2) * 1.1;
1025+
const isAnimate = settings.growingAnimation || isForcedAnimation;
10241026
const commitLabel = settings.l10n ? settings.l10n.commit : 'Commit';
10251027
const issueLabel = settings.l10n ? settings.l10n.issue : 'Issue';
10261028
const pullReqLabel = settings.l10n ? settings.l10n.pullreq : 'PullReq';

docs/README.es-es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
name: generate-github-profile-3d-contrib
4646
steps:
4747
- uses: actions/checkout@v2
48-
- uses: yoshi389111/github-profile-3d-contrib@0.6.0
48+
- uses: yoshi389111/github-profile-3d-contrib@0.7.0
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
USERNAME: ${{ github.repository_owner }}

docs/README.ja-jp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
name: generate-github-profile-3d-contrib
4747
steps:
4848
- uses: actions/checkout@v2
49-
- uses: yoshi389111/github-profile-3d-contrib@0.6.0
49+
- uses: yoshi389111/github-profile-3d-contrib@0.7.0
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
USERNAME: ${{ github.repository_owner }}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-profile-3d-contrib",
3-
"version": "0.6.0",
3+
"version": "0.7.0",
44
"description": "Generate profile 3D Contributions",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)