Skip to content

Commit

Permalink
chore: update version to 0.11.40
Browse files Browse the repository at this point in the history
  • Loading branch information
paleface001 committed Mar 13, 2020
1 parent 00b7b8c commit df4a743
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## <small>0.11.40 (2019-03-13)</small>
- 🐞Liquid & process 必选数据类型判断

## <small>0.11.39 (2019-03-13)</small>
- 🐞修复一些类型定义问题 ([e6d2a37](https://github.com/antvis/G2Plot/commit/e6d2a37))

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": "@antv/g2plot",
"version": "0.11.39",
"version": "0.11.40",
"description": "An interactive and responsive charting library",
"keywords": [
"chart",
Expand Down
12 changes: 6 additions & 6 deletions src/plots/liquid/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ export default class LiquidLayer<T extends LiquidLayerConfig = LiquidLayerConfig

public beforeInit() {
const { min, max, value } = this.options;
if (_.isNull(min)) {
throw new Error('The min value of Liquid is required.');
if (!_.isNumber(min)) {
throw new Error('The min value of Liquid is required, and the type of min must be Number.');
}
if (_.isNull(max)) {
throw new Error('The max value of Liquid is required.');
if (!_.isNumber(max)) {
throw new Error('The max value of Liquid is required, and the type of max must be Number.');
}
if (_.isNull(value)) {
throw new Error('The value of Liquid is required.');
if (!_.isNumber(value)) {
throw new Error('The value of Liquid is required, and the type of value must be Number.');
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/sparkline/progress/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export default class ProgressLayer<T extends ProgressLayerConfig = ProgressLayer

public beforeInit() {
const { percent } = this.options;
if (_.isNull(percent)) {
throw new Error('Percent value is required.');
if (!_.isNumber(percent)) {
throw new Error('Percent value is required, and the type of percent must be Number.');
}
}

Expand Down

0 comments on commit df4a743

Please sign in to comment.