Skip to content

Commit

Permalink
docs: add closingPoint styling properties to Polygon drawing mode tab…
Browse files Browse the repository at this point in the history
…le in 5.STYLING.md (#254)
  • Loading branch information
aircodepl authored and JamesLMilner committed May 27, 2024
1 parent c85acec commit fffe296
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions guides/5.STYLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ The `TerraDrawLineStringMode` is styled using the following properties:

The `TerraDrawPolygonMode` is styled using the following properties:

| Property | Type | Example Value | Description |
| -------------- | ------------ | ------------- | -------------------------------- |
| `fillColor` | Hex Color | `#00FFFF` | The fill color of the polygon |
| `fillOpacity` | Number (0-1) | `0.7` | The fill opacity of the polygon |
| `outlineColor` | Hex Color | `#00FFFF` | The outline color of the polygon |
| `outlineWidth` | Integer | `2` | The outline width of the polygon |
| Property | Type | Example Value | Description |
| -------------------------- | ------------ | ------------- | -------------------------------------- |
| `fillColor` | Hex Color | `#00FFFF` | The fill color of the polygon |
| `fillOpacity` | Number (0-1) | `0.7` | The fill opacity of the polygon |
| `outlineColor` | Hex Color | `#00FFFF` | The outline color of the polygon |
| `outlineWidth` | Integer | `2` | The outline width of the polygon |
| `closingPointColor` | Hex Color | `#00FFFF` | The fill color of the closing point |
| `closingPointWidth` | Integer | `1` | The width of the closing point |
| `closingPointOutlineColor` | Hex Color | `#00FF00` | The outline color of the closing point |
| `closingPointOutlineWidth` | Integer | `2` | The outline width of the closing point |

### Freehand

Expand Down Expand Up @@ -339,4 +343,4 @@ draw.on("delete", (ids) => ids.forEach((id) => delete cache[id]));
4. [x] [Modes](./4.MODES.md)
5. [x] Styling
6. [ ] [Events](./6.EVENTS.md)
7. [ ] [Development](./7.DEVELOPMENT.md)
7. [ ] [Development](./7.DEVELOPMENT.md)

0 comments on commit fffe296

Please sign in to comment.