Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#52616 Fix mapbog-gl SymbolLayer style defi…
Browse files Browse the repository at this point in the history
…nition by @OttyLab
  • Loading branch information
OttyLab committed May 5, 2021
1 parent 793c607 commit dcdbe17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/mapbox-gl/index.d.ts
Expand Up @@ -2337,7 +2337,7 @@ declare namespace mapboxgl {
'symbol-avoid-edges'?: boolean;
'symbol-z-order'?: 'viewport-y' | 'source';
'icon-allow-overlap'?: boolean | StyleFunction | Expression;
'icon-ignore-placement'?: boolean;
'icon-ignore-placement'?: boolean | Expression;
'icon-optional'?: boolean;
'icon-rotation-alignment'?: 'map' | 'viewport' | 'auto';
'icon-size'?: number | StyleFunction | Expression;
Expand All @@ -2358,7 +2358,7 @@ declare namespace mapboxgl {
'text-max-width'?: number | StyleFunction | Expression;
'text-line-height'?: number | Expression;
'text-letter-spacing'?: number | Expression;
'text-justify'?: 'left' | 'center' | 'right' | Expression;
'text-justify'?: 'auto' | 'left' | 'center' | 'right' | Expression;
'text-anchor'?: Anchor | StyleFunction | Expression;
'text-max-angle'?: number | Expression;
'text-rotate'?: number | StyleFunction | Expression;
Expand Down
4 changes: 2 additions & 2 deletions types/mapbox-gl/mapbox-gl-tests.ts
Expand Up @@ -1500,7 +1500,7 @@ const symbolLayout: mapboxgl.SymbolLayout = {
'symbol-avoid-edges': false,
'symbol-z-order': eitherType('viewport-y', 'source'),
'icon-allow-overlap': eitherType(false, styleFunction, expression),
'icon-ignore-placement': false,
'icon-ignore-placement': eitherType(false, expression),
'icon-optional': false,
'icon-rotation-alignment': eitherType('map', 'viewport', 'auto'),
'icon-size': eitherType(0, styleFunction, expression),
Expand All @@ -1521,7 +1521,7 @@ const symbolLayout: mapboxgl.SymbolLayout = {
'text-max-width': eitherType(0, styleFunction, expression),
'text-line-height': eitherType(0, expression),
'text-letter-spacing': eitherType(0, expression),
'text-justify': eitherType('left', 'center', 'right', expression),
'text-justify': eitherType('auto', 'left', 'center', 'right', expression),
'text-anchor': eitherType('center', styleFunction, expression),
'text-max-angle': eitherType(0, expression),
'text-rotate': eitherType(0, styleFunction, expression),
Expand Down

0 comments on commit dcdbe17

Please sign in to comment.