Skip to content

Commit

Permalink
fix: update generate to use eslint-config-universe/universe/native
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrauber committed Jul 15, 2024
1 parent 50ea87b commit 8999b46
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion docs/Camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| zoomLevel | `number` | `none` | `false` | The zoom level of the map. |
| padding | `CameraPadding` | `none` | `false` | The viewport padding in points. |
| animationDuration | `number` | `2000` | `false` | The duration the map takes to animate to a new configuration. |
| animationMode | `'flyTo' \| 'easeTo' \| 'linearTo' \| 'moveTo'` | `'easeTo'` | `false` | The easing or path the camera uses to animate to a new configuration. |
| animationMode | `"flyTo" \| "easeTo" \| "linearTo" \| "moveTo"` | `"easeTo"` | `false` | The easing or path the camera uses to animate to a new configuration. |
| allowUpdates | `boolean` | `true` | `false` | If false, the camera will not send any props to the native module. Intended to be used to prevent unnecessary tile fetching and improve performance when the map is not visible. Defaults to true. |
| defaultSettings | `CameraStop` | `none` | `false` | Default view settings applied on camera |
| minZoomLevel | `number` | `none` | `false` | The minimun zoom level of the map |
Expand Down
18 changes: 9 additions & 9 deletions docs/MapView.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Prop | Type | Default | Required | Description |
| ---- | :--: | :-----: | :------: | :----------: |
| contentInset | `number[] \| number` | `none` | `false` | The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport. |
| style | `ViewProps['style']` | `none` | `false` | Style for wrapping React Native View |
| style | `ViewProps["style"]` | `none` | `false` | Style for wrapping React Native View |
| styleURL | `string` | `none` | `false` | Style URL for map - notice, if non is set it _will_ default to `MapLibreGL.StyleURL.Default` |
| styleJSON | `string` | `none` | `false` | StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec |
| preferredFramesPerSecond | `number` | `none` | `false` | iOS: The preferred frame rate at which the map view is rendered.<br/>The default value for this property is MLNMapViewPreferredFramesPerSecondDefault,<br/>which will adaptively set the preferred frame rate based on the capability of<br/>the user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.<br/><br/>Android: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.<br/>This property can be set to arbitrary integer values. |
Expand All @@ -16,16 +16,16 @@
| pitchEnabled | `boolean` | `true` | `false` | Enable/Disable pitch on map |
| rotateEnabled | `boolean` | `true` | `false` | Enable/Disable rotation on map |
| attributionEnabled | `boolean` | `true` | `false` | Enable/Disable attribution on map.<br/><br/>This must be enabled for Mapbox-hosted tiles and styles. Please refer to the Mapbox Terms of Service.<br/>Other providers do not require this. |
| attributionPosition | `\| {top?: number; left?: number}
\| {top?: number; right?: number}
\| {bottom?: number; left?: number}
\| {bottom?: number; right?: number}` | `none` | `false` | Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map |
| attributionPosition | `\| { top?: number; left?: number }
\| { top?: number; right?: number }
\| { bottom?: number; left?: number }
\| { bottom?: number; right?: number }` | `none` | `false` | Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map |
| tintColor | `string \| unknown[]` | `none` | `false` | MapView's tintColor |
| logoEnabled | `boolean` | `false` | `false` | Enable/Disable the logo on the map. |
| logoPosition | `\| {top?: number; left?: number}
\| {top?: number; right?: number}
\| {bottom?: number; left?: number}
\| {bottom?: number; right?: number}` | `none` | `false` | Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map |
| logoPosition | `\| { top?: number; left?: number }
\| { top?: number; right?: number }
\| { bottom?: number; left?: number }
\| { bottom?: number; right?: number }` | `none` | `false` | Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map |
| compassEnabled | `boolean` | `none` | `false` | Enable/Disable the compass from appearing on the map |
| compassViewPosition | `number` | `none` | `false` | Change corner of map the compass starts at. 0: TopLeft, 1: TopRight, 2: BottomLeft, 3: BottomRight |
| compassViewMargins | `object` | `none` | `false` | Add margins to the compass with x and y values |
Expand Down
2 changes: 1 addition & 1 deletion docs/MarkerView.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Prop | Type | Default | Required | Description |
| ---- | :--: | :-----: | :------: | :----------: |
| coordinate | `Array` | `none` | `true` | The center point (specified as a map coordinate) of the marker.<br/>See also #anchor. |
| anchor | `shape` | `{x: 0.5, y: 0.5}` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
| &nbsp;&nbsp;x | `number` | `none` | `true` | `x` of anchor |
| &nbsp;&nbsp;y | `number` | `none` | `true` | `y` of anchor |
| allowOverlap | `boolean` | `false` | `false` | FIX ME NO DESCRIPTION |
Expand Down
2 changes: 1 addition & 1 deletion docs/NativeUserLocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### props
| Prop | Type | Default | Required | Description |
| ---- | :--: | :-----: | :------: | :----------: |
| androidRenderMode | `'normal' \| 'compass' \| 'gps'` | `none` | `false` | Android render mode.<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
| androidRenderMode | `"normal" \| "compass" \| "gps"` | `none` | `false` | Android render mode.<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
| iosShowsUserHeadingIndicator | `boolean` | `none` | `false` | iOS only. A Boolean value indicating whether the user location annotation may display a permanent heading indicator.<br/><br/>@platform ios |


4 changes: 2 additions & 2 deletions docs/PointAnnotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
| selected | `boolean` | `none` | `false` | Manually selects/deselects annotation<br/>@type {[type]} |
| draggable | `boolean` | `false` | `false` | Enable or disable dragging. Defaults to false. |
| coordinate | `Array` | `none` | `true` | The center point (specified as a map coordinate) of the annotation. |
| anchor | `shape` | `{x: 0.5, y: 0.5}` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
| anchor | `shape` | `{ x: 0.5, y: 0.5 }` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. |
| &nbsp;&nbsp;x | `number` | `none` | `true` | See anchor |
| &nbsp;&nbsp;y | `number` | `none` | `true` | See anchor |
| children | `React.ReactElement \| [React.ReactElement, React.ReactElement]` | `none` | `true` | Expects one child, and an optional callout can be added as well |
| style | `ViewProps['style']` | `none` | `false` | FIX ME NO DESCRIPTION |
| style | `ViewProps["style"]` | `none` | `false` | FIX ME NO DESCRIPTION |

### methods
#### refresh()
Expand Down
4 changes: 2 additions & 2 deletions docs/UserLocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
| Prop | Type | Default | Required | Description |
| ---- | :--: | :-----: | :------: | :----------: |
| animated | `boolean` | `true` | `false` | Whether location icon is animated between updates |
| renderMode | `'normal' \| 'native'` | `'normal'` | `false` | Which render mode to use.<br/>Can either be `normal` or `native` |
| androidRenderMode | `'normal' \| 'compass' \| 'gps'` | `none` | `false` | native/android only render mode<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
| renderMode | `"normal" \| "native"` | `"normal"` | `false` | Which render mode to use.<br/>Can either be `normal` or `native` |
| androidRenderMode | `"normal" \| "compass" \| "gps"` | `none` | `false` | native/android only render mode<br/><br/> - normal: just a circle<br/> - compass: triangle with heading<br/> - gps: large arrow<br/><br/>@platform android |
| visible | `boolean` | `true` | `false` | Whether location icon is visible |
| showsUserHeadingIndicator | `boolean` | `false` | `false` | Show or hide small arrow which indicates direction the device is pointing relative to north. |
| minDisplacement | `number` | `0` | `false` | Minimum amount of movement before GPS location is updated in meters |
Expand Down
24 changes: 12 additions & 12 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@
{
"name": "animationMode",
"required": false,
"type": "'flyTo' \\| 'easeTo' \\| 'linearTo' \\| 'moveTo'",
"default": "'easeTo'",
"type": "\"flyTo\" \\| \"easeTo\" \\| \"linearTo\" \\| \"moveTo\"",
"default": "\"easeTo\"",
"description": "The easing or path the camera uses to animate to a new configuration."
},
{
Expand Down Expand Up @@ -2415,7 +2415,7 @@
{
"name": "style",
"required": false,
"type": "ViewProps['style']",
"type": "ViewProps[\"style\"]",
"default": "none",
"description": "Style for wrapping React Native View"
},
Expand Down Expand Up @@ -2485,7 +2485,7 @@
{
"name": "attributionPosition",
"required": false,
"type": "\\| {top?: number; left?: number}\n\\| {top?: number; right?: number}\n\\| {bottom?: number; left?: number}\n\\| {bottom?: number; right?: number}",
"type": "\\| { top?: number; left?: number }\n\\| { top?: number; right?: number }\n\\| { bottom?: number; left?: number }\n\\| { bottom?: number; right?: number }",
"default": "none",
"description": "Adds attribution offset, e.g. `{top: 8, left: 8}` will put attribution button in top-left corner of the map"
},
Expand All @@ -2506,7 +2506,7 @@
{
"name": "logoPosition",
"required": false,
"type": "\\| {top?: number; left?: number}\n\\| {top?: number; right?: number}\n\\| {bottom?: number; left?: number}\n\\| {bottom?: number; right?: number}",
"type": "\\| { top?: number; left?: number }\n\\| { top?: number; right?: number }\n\\| { bottom?: number; left?: number }\n\\| { bottom?: number; right?: number }",
"default": "none",
"description": "Adds logo offset, e.g. `{top: 8, left: 8}` will put the logo in top-left corner of the map"
},
Expand Down Expand Up @@ -2610,7 +2610,7 @@
}
]
},
"default": "{x: 0.5, y: 0.5}",
"default": "{ x: 0.5, y: 0.5 }",
"description": "Specifies the anchor being set on a particular point of the annotation.\nThe anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],\nwhere (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.\nNote this is only for custom annotations not the default pin view.\nDefaults to the center of the view."
},
{
Expand Down Expand Up @@ -2649,7 +2649,7 @@
{
"name": "androidRenderMode",
"required": false,
"type": "'normal' \\| 'compass' \\| 'gps'",
"type": "\"normal\" \\| \"compass\" \\| \"gps\"",
"default": "none",
"description": "Android render mode.\n\n - normal: just a circle\n - compass: triangle with heading\n - gps: large arrow\n\n@platform android"
},
Expand Down Expand Up @@ -2747,7 +2747,7 @@
}
]
},
"default": "{x: 0.5, y: 0.5}",
"default": "{ x: 0.5, y: 0.5 }",
"description": "Specifies the anchor being set on a particular point of the annotation.\nThe anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],\nwhere (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.\nNote this is only for custom annotations not the default pin view.\nDefaults to the center of the view."
},
{
Expand All @@ -2760,7 +2760,7 @@
{
"name": "style",
"required": false,
"type": "ViewProps['style']",
"type": "ViewProps[\"style\"]",
"default": "none",
"description": "FIX ME NO DESCRIPTION"
}
Expand Down Expand Up @@ -4811,14 +4811,14 @@
{
"name": "renderMode",
"required": false,
"type": "'normal' \\| 'native'",
"default": "'normal'",
"type": "\"normal\" \\| \"native\"",
"default": "\"normal\"",
"description": "Which render mode to use.\nCan either be `normal` or `native`"
},
{
"name": "androidRenderMode",
"required": false,
"type": "'normal' \\| 'compass' \\| 'gps'",
"type": "\"normal\" \\| \"compass\" \\| \"gps\"",
"default": "none",
"description": "native/android only render mode\n\n - normal: just a circle\n - compass: triangle with heading\n - gps: large arrow\n\n@platform android"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/autogenerate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ejs = require('ejs');
const {execSync} = require('child_process');

const prettier = require('prettier');
const prettierrc = require('../.prettierrc.js');
const prettierrc = require('eslint-config-universe');

const styleSpecJSON = require('../style-spec/v8.json');

Expand Down

0 comments on commit 8999b46

Please sign in to comment.