Skip to content

Commit

Permalink
v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannchie committed Mar 30, 2021
1 parent b2db3e8 commit 62981f2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log


## ver 2.1.1 [2021-03-31]

- 移除了一些 Console 输出。

## ver 2.1.0 [2021-03-31]

- 添加了 Nodejs 环境的支持。

## ver 2.0.2

- 添加了柱状图坐标轴范围的选项
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anichart",
"version": "2.1.0",
"version": "2.1.1",
"description": "Data visualization animation library",
"author": "jannchie <[email protected]>",
"license": "MIT",
Expand Down
9 changes: 6 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,13 @@ npm run serve

#### Node.js环境

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

如果有特殊需求,比如服务器端定时导出视频的用户,请等待正式版本。
如果有特殊需求,比如服务器端定时导出视频的用户。

你可以使用下列命令测试 Node.js 下的 Anichart:

```bash
node --experimental-wasm-threads --experimental-wasm-bulk-memory index.js
cd test
ts-node index.ts
```
1 change: 0 additions & 1 deletion src/core/Stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export class Stage {

play(): void {
this.loadRecourse().then(() => {
console.log(recourse);
this.doPlay();
});
}
Expand Down
1 change: 0 additions & 1 deletion src/core/chart/ItemChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class ItemChart extends BaseChart {
const components = this.data.map((item) => {
const id = item[this.idField];
const value = item[this.valueField];
console.log(id, value);
return new Component();
});
const res = new Component();
Expand Down

0 comments on commit 62981f2

Please sign in to comment.