From 464e98c28ddb9f81af441856174ec05a1ba51fb7 Mon Sep 17 00:00:00 2001 From: xiaoluoHe Date: Wed, 19 Jul 2023 16:09:59 +0800 Subject: [PATCH] chore: supply comments --- packages/vchart/src/series/map/geo-source.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/vchart/src/series/map/geo-source.ts b/packages/vchart/src/series/map/geo-source.ts index 63139e110..3cd2a8c0e 100644 --- a/packages/vchart/src/series/map/geo-source.ts +++ b/packages/vchart/src/series/map/geo-source.ts @@ -5,12 +5,20 @@ import { registerDataSetInstanceParser, registerDataSetInstanceTransform } from export interface IGeoJsonOption { type: 'geojson'; + /** 计算中心点 */ + /** @default true */ centroid?: boolean; + /** 地图简化 */ + /** @default false */ simplify?: boolean; - rewind?: // 逆时针回绕(Multi)LineString或(Multi)Polygon的外部环,内部环顺时针。默认 false - | boolean + /** 逆时针回绕(Multi)LineString或(Multi)Polygon的外部环,内部环顺时针。*/ + /** @default false */ + rewind?: + | boolean | { - reverse?: boolean; // 启用反向绕行,默认 false + /** 启用反向绕行 */ + /** @default false */ + reverse?: boolean; }; }