Skip to content

Commit 62981f2

Browse files
committed
v2.1.1
1 parent b2db3e8 commit 62981f2

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

CHANGELOG.md

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

3+
4+
## ver 2.1.1 [2021-03-31]
5+
6+
- 移除了一些 Console 输出。
7+
8+
## ver 2.1.0 [2021-03-31]
9+
10+
- 添加了 Nodejs 环境的支持。
11+
312
## ver 2.0.2
413

514
- 添加了柱状图坐标轴范围的选项

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "anichart",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Data visualization animation library",
55
"author": "jannchie <[email protected]>",
66
"license": "MIT",

readme.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,13 @@ npm run serve
170170

171171
#### Node.js环境
172172

173-
**不建议使用**:Node.js 的版本在未来被暂时移除。因为相关依赖的包安装速度过于缓慢,使用体验较差。同时Browser版本的导出速度得到了极大的提升,这使得node版本显得不是特别重要了。之后Node.js版本将来会作为独立的版本进行安装
173+
该项目现已提供 node.js 的相关支持,你可以直接使用 node 运行该项目,无需任何配置,你将能够直接导出 PNG 序列,以便于在 FFmpeg 等工具中整合成视频。但是 node 环境并不是主要开发测试环境,在该环境下进行开发可能会遇到未知的 BUG
174174

175-
如果有特殊需求,比如服务器端定时导出视频的用户,请等待正式版本。
175+
如果有特殊需求,比如服务器端定时导出视频的用户。
176+
177+
你可以使用下列命令测试 Node.js 下的 Anichart:
176178

177179
```bash
178-
node --experimental-wasm-threads --experimental-wasm-bulk-memory index.js
180+
cd test
181+
ts-node index.ts
179182
```

src/core/Stage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export class Stage {
8282

8383
play(): void {
8484
this.loadRecourse().then(() => {
85-
console.log(recourse);
8685
this.doPlay();
8786
});
8887
}

src/core/chart/ItemChart.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export class ItemChart extends BaseChart {
1515
const components = this.data.map((item) => {
1616
const id = item[this.idField];
1717
const value = item[this.valueField];
18-
console.log(id, value);
1918
return new Component();
2019
});
2120
const res = new Component();

0 commit comments

Comments
 (0)