From 04478c86d3fd198ad7a29163e41e1ac81d6e0492 Mon Sep 17 00:00:00 2001 From: ethan Date: Sun, 24 Mar 2024 10:20:38 +0800 Subject: [PATCH] docs --- README.md | 40 ++++++++++++++++++++-------------------- src/interface.ts | 4 ++-- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index a32c6ad..69a9e7b 100644 --- a/README.md +++ b/README.md @@ -44,26 +44,26 @@ import CesiumPlot from 'cesium-plot-js'; 每个图形为独立的类,绑定事件或其他操作通过类的实例来实现 -| 类名 | 类型 | 描述 | -| ---------------------- | --------- | ---------------- | -| Polygon | 'polygon' | 多边形 | -| Reactangle | 'polygon' | 矩形 | -| Triangle | 'polygon' | 三角形 | -| Circle | 'polygon' | 圆形 | -| StraightArrow | 'line' | 细直箭头 | -| CurvedArrow | 'line' | 曲线箭头 | -| FineArrow | 'polygon' | 直箭头 | -| AttackArrow | 'polygon' | 进攻方向箭头 | -| SwallowtailAttackArrow | 'polygon' | 燕尾进攻方向箭头 | -| SquadCombat | 'polygon' | 分队战斗方向 | -| SwallowtailSquadCombat | 'polygon' | 燕尾分队战斗方向 | -| AssaultDirection | 'polygon' | 突击方向 | -| DoubleArrow | 'polygon' | 双箭头 | -| FreehandLine | 'line' | 自由线 | -| FreehandPolygon | 'polygon' | 自由面 | -| Curve | 'line' | 曲线 | -| Ellipse | 'polygon' | 椭圆 | -| Lune | 'polygon' | 半月面 | +| 类名 | 类型 | 描述 | 生长动画 | +| ---------------------- | --------- | ---------------- | -------- | +| Polygon | 'polygon' | 多边形 | ❌ | +| Reactangle | 'polygon' | 矩形 | ❌ | +| Triangle | 'polygon' | 三角形 | ❌ | +| Circle | 'polygon' | 圆形 | ❌ | +| StraightArrow | 'line' | 细直箭头 | ✔️ | +| CurvedArrow | 'line' | 曲线箭头 | ✔️ | +| FineArrow | 'polygon' | 直箭头 | ✔️ | +| AttackArrow | 'polygon' | 进攻方向箭头 | ✔️ | +| SwallowtailAttackArrow | 'polygon' | 燕尾进攻方向箭头 | ✔️ | +| SquadCombat | 'polygon' | 分队战斗方向 | ✔️ | +| SwallowtailSquadCombat | 'polygon' | 燕尾分队战斗方向 | ✔️ | +| AssaultDirection | 'polygon' | 突击方向 | ✔️ | +| DoubleArrow | 'polygon' | 双箭头 | ✔️ | +| FreehandLine | 'line' | 自由线 | ❌ | +| FreehandPolygon | 'polygon' | 自由面 | ❌ | +| Curve | 'line' | 曲线 | ❌ | +| Ellipse | 'polygon' | 椭圆 | ❌ | +| Lune | 'polygon' | 半月面 | ❌ | ### 构造函数 diff --git a/src/interface.ts b/src/interface.ts index 974c5c9..6e271c9 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -2,9 +2,9 @@ import * as CesiumTypeOnly from 'cesium'; export type PolygonStyle = { - material?: CesiumTypeOnly.MaterialProperty; + material?: CesiumTypeOnly.MaterialProperty | CesiumTypeOnly.Color; outlineWidth?: number; - outlineMaterial?: CesiumTypeOnly.MaterialProperty; + outlineMaterial?: CesiumTypeOnly.MaterialProperty | CesiumTypeOnly.Color; }; export type LineStyle = {