Skip to content

Commit d6fbfd1

Browse files
Merge pull request #120 from technote-space/release/next-v0.14.18
release: v0.14.19
2 parents 281e0c2 + 2130550 commit d6fbfd1

File tree

4 files changed

+271
-272
lines changed

4 files changed

+271
-272
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/ga-framework/badge)](https://www.codefactor.io/repository/github/technote-space/ga-framework)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/ga-framework/blob/master/LICENSE)
77

8-
GA Framework
8+
Genetic Algorithm Framework
99

1010
## Table of Contents
1111

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/ga-framework",
3-
"version": "0.14.17",
3+
"version": "0.14.19",
44
"description": "GA Framework",
55
"keywords": [
66
"genetic algorithm"
@@ -43,9 +43,9 @@
4343
"@material-ui/core": "^4.11.4",
4444
"@material-ui/icons": "^4.11.2",
4545
"@mui-treasury/layout": "^4.5.0",
46-
"@technote-space/genetic-algorithms-js": "^0.8.19",
47-
"@technote-space/worker-controller": "^0.5.34",
48-
"chart.js": "^3.3.2",
46+
"@technote-space/genetic-algorithms-js": "^0.8.21",
47+
"@technote-space/worker-controller": "^0.5.36",
48+
"chart.js": "^3.4.0",
4949
"clsx": "^1.1.1",
5050
"keycharm": "^0.4.0",
5151
"moment": "^2.29.1",
@@ -60,31 +60,31 @@
6060
"devDependencies": {
6161
"@babel/core": "^7.14.6",
6262
"@babel/plugin-proposal-class-properties": "^7.14.5",
63-
"@babel/plugin-proposal-object-rest-spread": "^7.14.5",
63+
"@babel/plugin-proposal-object-rest-spread": "^7.14.7",
6464
"@babel/plugin-transform-react-inline-elements": "^7.14.5",
65-
"@babel/preset-env": "^7.14.5",
65+
"@babel/preset-env": "^7.14.7",
6666
"@babel/preset-flow": "^7.14.5",
6767
"@babel/preset-react": "^7.14.5",
6868
"@babel/preset-typescript": "^7.14.5",
6969
"@commitlint/cli": "^12.1.4",
7070
"@commitlint/config-conventional": "^12.1.4",
71-
"@types/node": "^15.12.4",
71+
"@types/node": "^16.0.0",
7272
"@types/react-helmet": "^6.1.1",
73-
"@types/styled-components": "^5.1.10",
74-
"@typescript-eslint/eslint-plugin": "^4.27.0",
75-
"@typescript-eslint/parser": "^4.27.0",
73+
"@types/styled-components": "^5.1.11",
74+
"@typescript-eslint/eslint-plugin": "^4.28.1",
75+
"@typescript-eslint/parser": "^4.28.1",
7676
"babel-plugin-react-html-attrs": "^3.0.5",
7777
"babel-plugin-transform-class-properties": "^6.24.1",
78-
"copy-webpack-plugin": "^9.0.0",
79-
"eslint": "^7.29.0",
78+
"copy-webpack-plugin": "^9.0.1",
79+
"eslint": "^7.30.0",
8080
"eslint-plugin-react": "^7.24.0",
8181
"eslint-plugin-react-hooks": "^4.2.0",
82-
"html-webpack-plugin": "^5.3.1",
83-
"husky": "^6.0.0",
82+
"html-webpack-plugin": "^5.3.2",
83+
"husky": "^7.0.0",
8484
"lint-staged": "^11.0.0",
8585
"pinst": "^2.1.6",
86-
"typescript": "^4.3.4",
87-
"webpack": "^5.39.1"
86+
"typescript": "^4.3.5",
87+
"webpack": "^5.42.0"
8888
},
8989
"publishConfig": {
9090
"access": "public"

src/app/components/Timeline.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ const Timeline: FC<{
2323
const themeObject = useTheme(themeColor);
2424

2525
useEffect(() => {
26-
if (chart) {
27-
chart.destroy();
28-
}
2926
if (!container.current) {
3027
return;
3128
}
@@ -40,6 +37,8 @@ const Timeline: FC<{
4037
tension: 0.1,
4138
backgroundColor: 'rgba(75, 192, 192, 0.4)',
4239
borderColor: 'rgba(75, 192, 192, 1)',
40+
fill: true,
41+
animation: false,
4342
label: 'Fitness',
4443
data,
4544
},
@@ -82,6 +81,13 @@ const Timeline: FC<{
8281
},
8382
},
8483
));
84+
}, []);
85+
86+
useEffect(() => {
87+
if (chart) {
88+
chart.data.datasets[0].data = data;
89+
chart.update();
90+
}
8591
}, [data]);
8692

8793
return <canvas className={classes.root} ref={container}/>;

0 commit comments

Comments
 (0)