Skip to content

Commit 2b96343

Browse files
committed
docs(changeset): Add coordinates to circle
1 parent 60cd98f commit 2b96343

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

.changeset/small-buckets-turn.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@feltmaps/js-sdk": minor
3+
---
4+
5+
Add coordinates to circle

docs/Elements/CircleElementCreate.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
1515
***
1616

17-
### radius
18-
19-
> **radius**: `number`
20-
21-
***
22-
2317
### groupId?
2418

2519
> `optional` **groupId**: `null` | `string`
@@ -80,6 +74,12 @@
8074
8175
***
8276

77+
### radius?
78+
79+
> `optional` **radius**: `number`
80+
81+
***
82+
8383
### radiusDisplayAngle?
8484

8585
> `optional` **radiusDisplayAngle**: `number`

docs/Elements/CircleElementRead.md

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@
6868
6969
***
7070

71+
### coordinates
72+
73+
> **coordinates**: \[`number`, `number`] = `LngLatTupleSchema`
74+
75+
***
76+
7177
### radius
7278

7379
> **radius**: `number`

src/modules/elements/types.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ export const PolygonCreateSchema = PolygonElementSchema.partial()
146146

147147
export const CircleCreateSchema = CircleElementSchema.partial()
148148
.required(requiredCreateProps)
149-
.required({ radius: true })
150149
.omit(omitCreateProps);
151150

152151
export const MarkerCreateSchema = MarkerElementSchema.partial()
@@ -194,7 +193,7 @@ const PathReadSchema = PathElementSchema.omit({ coordinates: true });
194193
const PolygonReadSchema = PolygonElementSchema.omit({
195194
coordinates: true,
196195
});
197-
const CircleReadSchema = CircleElementSchema.omit({ coordinates: true });
196+
const CircleReadSchema = CircleElementSchema;
198197
const MarkerReadSchema = MarkerElementSchema.omit({ coordinates: true });
199198
const HighlighterReadSchema = HighlighterElementSchema.omit({
200199
coordinates: true,

0 commit comments

Comments
 (0)