Skip to content

Commit

Permalink
fix: precision is a number, not a string
Browse files Browse the repository at this point in the history
Fixes #5190
  • Loading branch information
domoritz committed Jul 10, 2019
1 parent c2753a7 commit 6ba005c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/vega-lite-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8982,7 +8982,7 @@
},
"precision": {
"description": "Sets the threshold for the projection’s [adaptive resampling](http://bl.ocks.org/mbostock/3795544) to the specified value in pixels. This value corresponds to the [Douglas–Peucker distance](http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm). If precision is not specified, returns the projection’s current resampling precision which defaults to `√0.5 ≅ 0.70710…`.",
"type": "string"
"type": "number"
},
"radius": {
"type": "number"
Expand Down
2 changes: 1 addition & 1 deletion src/projection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface Projection {
/**
* Sets the threshold for the projection’s [adaptive resampling](http://bl.ocks.org/mbostock/3795544) to the specified value in pixels. This value corresponds to the [Douglas–Peucker distance](http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm). If precision is not specified, returns the projection’s current resampling precision which defaults to `√0.5 ≅ 0.70710…`.
*/
precision?: string;
precision?: number;
/*
* Sets whether or not the x-dimension is reflected (negated) in the output.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/vega.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export interface VgProjection {
/*
* The desired precision of the projection.
*/
precision?: string;
precision?: number;
/*
* GeoJSON data to which the projection should attempt to automatically fit the translate and scale parameters..
*/
Expand Down

0 comments on commit 6ba005c

Please sign in to comment.