This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/next by this push:
new 9c74d16 refact: add missing files in previous commits.
9c74d16 is described below
commit 9c74d166b3179e42f4273344501803c2f7c323e4
Author: pissang <[email protected]>
AuthorDate: Wed Apr 15 13:27:46 2020 +0800
refact: add missing files in previous commits.
---
src/data/List.ts | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/data/List.ts b/src/data/List.ts
index 53d4872..20e8d77 100644
--- a/src/data/List.ts
+++ b/src/data/List.ts
@@ -367,10 +367,13 @@ class List<
}
const dims = dimensionsSummary.encode[coordDim];
- return idx === true
- // always return array if idx is `true`
- ? (dims || []).slice()
- : (dims ? dims[idx as number] as any : null);
+ return dims ? dims[idx as number] as any : null;
+ }
+
+ mapDimensionsAll(coordDim: DimensionName): DimensionName[] {
+ const dimensionsSummary = this._dimensionsSummary;
+ const dims = dimensionsSummary.encode[coordDim];
+ return (dims || []).slice();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]