You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/08/16 07:35:14 UTC
[incubator-echarts] branch next updated: fix(type): fix optional
type issues in option declaration
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 fd0c35a fix(type): fix optional type issues in option declaration
fd0c35a is described below
commit fd0c35a07ee4327a8deb0c36f20db0e256e446ae
Author: pissang <bm...@gmail.com>
AuthorDate: Sun Aug 16 15:34:38 2020 +0800
fix(type): fix optional type issues in option declaration
---
src/chart/graph/GraphSeries.ts | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/chart/graph/GraphSeries.ts b/src/chart/graph/GraphSeries.ts
index 77f4887..2be92d6 100644
--- a/src/chart/graph/GraphSeries.ts
+++ b/src/chart/graph/GraphSeries.ts
@@ -162,12 +162,12 @@ export interface GraphSeriesOption extends SeriesOption,
/**
* Symbol size scale ratio in roam
*/
- nodeScaleRatio: 0.6,
+ nodeScaleRatio?: 0.6,
draggable?: boolean
- edgeSymbol: string | string[]
- edgeSymbolSize: number | number[]
+ edgeSymbol?: string | string[]
+ edgeSymbolSize?: number | number[]
edgeLabel?: LineLabelOption & {
formatter?: LabelFormatterCallback | string
@@ -208,18 +208,18 @@ export interface GraphSeriesOption extends SeriesOption,
}
// Configuration of force directed layout
- force: {
- initLayout: 'circular' | 'none'
+ force?: {
+ initLayout?: 'circular' | 'none'
// Node repulsion. Can be an array to represent range.
- repulsion: number | number[]
- gravity: number
+ repulsion?: number | number[]
+ gravity?: number
// Initial friction
- friction: number
+ friction?: number
// Edge length. Can be an array to represent range.
- edgeLength: number | number[]
+ edgeLength?: number | number[]
- layoutAnimation: boolean
+ layoutAnimation?: boolean
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org