From 56dde5eb5729b453cecc568acbc366387e17f2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Danielka?= <32483053+jezza12111@users.noreply.github.com> Date: Mon, 29 Apr 2019 19:34:02 +0200 Subject: [PATCH] =?UTF-8?q?Added=20types=20to=20PolylineGlowMaterialProper?= =?UTF-8?q?ty=20and=20PolylineDashMaterialP=E2=80=A6=20(#34610)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added types to PolylineGlowMaterialProperty and PolylineDashMaterialProperty [Cesium] * Fix line length and whitespace [Cesium] * Fix whitespaces * Fix PR comments --- types/cesium/index.d.ts | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/types/cesium/index.d.ts b/types/cesium/index.d.ts index ad8daee05a..dee7b32519 100644 --- a/types/cesium/index.d.ts +++ b/types/cesium/index.d.ts @@ -2437,18 +2437,26 @@ declare namespace Cesium { constructor(color?: Property); } - class PolylineGeometryUpdater extends GeometryUpdater { - readonly depthFailMaterialProperty: MaterialProperty; - readonly distanceDisplayConditionProperty: Property; - constructor(entity: Entity, scene: Scene); - } - class PolylineGlowMaterialProperty extends MaterialProperty { color: Color; glowPower: Property; constructor(options?: { color?: Property; glowPower?: Property }); } + class PolylineDashMaterialProperty extends MaterialProperty { + color: Color; + gapColor: Color; + dashLength: Property; + dashPattern: Property; + constructor(options?: {color?: Color; gapColor?: Color; dashLength?: Property; dashPattern?: Property}); + } + + class PolylineGeometryUpdater extends GeometryUpdater { + readonly depthFailMaterialProperty: MaterialProperty; + readonly distanceDisplayConditionProperty: Property; + constructor(entity: Entity, scene: Scene); + } + class PolylineGraphics { definitionChanged: Event; show: Property; @@ -2457,7 +2465,14 @@ declare namespace Cesium { width: number; followSurface: Property; granularity: Property; - constructor(options?: { positions?: Cartesian3[]; followSurface?: Property; width?: number; show?: Property; material?: MaterialProperty; granularity?: Property }); + constructor(options?: { + positions?: Cartesian3[]; + followSurface?: Property; + width?: number; + show?: Property; + material?: MaterialProperty; + granularity?: Property + }); clone(result?: PolylineGraphics): PolylineGraphics; merge(source: PolylineGraphics): PolylineGraphics; }