Skip to content

Commit

Permalink
fix: add height to polygon in reearth/core (#557)
Browse files Browse the repository at this point in the history
Co-authored-by: pyshx <piyushchahauhan1004@gmail.com>
  • Loading branch information
pyshx and pyshx committed Mar 18, 2023
1 parent 006f40a commit a84dbe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/engines/Cesium/Feature/Polygon/index.tsx
Expand Up @@ -45,6 +45,7 @@ export default function Polygon({
const {
show = true,
fill = true,
height = 0,
stroke,
fillColor,
strokeColor,
Expand Down Expand Up @@ -117,6 +118,7 @@ export default function Polygon({
<PolygonGraphics
hierarchy={hierarchy}
fill={fill}
height={height}
material={memoFillColor}
outline={!!memoStrokeColor}
outlineColor={memoStrokeColor}
Expand Down
1 change: 1 addition & 0 deletions src/core/mantle/types/appearance.ts
Expand Up @@ -82,6 +82,7 @@ export type PolygonAppearance = {
stroke?: boolean;
strokeColor?: string;
strokeWidth?: number;
height?: number;
heightReference?: "none" | "clamp" | "relative";
shadows?: "disabled" | "enabled" | "cast_only" | "receive_only";
lineJoin?: CanvasLineJoin;
Expand Down

0 comments on commit a84dbe0

Please sign in to comment.