Skip to content

Commit

Permalink
add anchors to style list
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Mar 19, 2018
1 parent b61b2d8 commit 17d358c
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 127 deletions.
10 changes: 5 additions & 5 deletions docs/BackgroundLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
| style | `union` | `none` | `false` | Customizable style attributes |


### [styles](#BackgroundLayer-styles)
### styles

* <a href="#visibility">visibility</a><br/>
* <a href="#backgroundColor">backgroundColor</a><br/>
* <a href="#backgroundPattern">backgroundPattern</a><br/>
* <a href="#backgroundOpacity">backgroundOpacity</a><br/>
* <a href="#name">visibility</a><br/>
* <a href="#name-1">backgroundColor</a><br/>
* <a href="#name-2">backgroundPattern</a><br/>
* <a href="#name-3">backgroundOpacity</a><br/>

___

Expand Down
28 changes: 14 additions & 14 deletions docs/CircleLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
| style | `union` | `none` | `false` | Customizable style attributes |


### [styles](#CircleLayer-styles)

* <a href="#visibility">visibility</a><br/>
* <a href="#circleRadius">circleRadius</a><br/>
* <a href="#circleColor">circleColor</a><br/>
* <a href="#circleBlur">circleBlur</a><br/>
* <a href="#circleOpacity">circleOpacity</a><br/>
* <a href="#circleTranslate">circleTranslate</a><br/>
* <a href="#circleTranslateAnchor">circleTranslateAnchor</a><br/>
* <a href="#circlePitchScale">circlePitchScale</a><br/>
* <a href="#circlePitchAlignment">circlePitchAlignment</a><br/>
* <a href="#circleStrokeWidth">circleStrokeWidth</a><br/>
* <a href="#circleStrokeColor">circleStrokeColor</a><br/>
* <a href="#circleStrokeOpacity">circleStrokeOpacity</a><br/>
### styles

* <a href="#name">visibility</a><br/>
* <a href="#name-1">circleRadius</a><br/>
* <a href="#name-2">circleColor</a><br/>
* <a href="#name-3">circleBlur</a><br/>
* <a href="#name-4">circleOpacity</a><br/>
* <a href="#name-5">circleTranslate</a><br/>
* <a href="#name-6">circleTranslateAnchor</a><br/>
* <a href="#name-7">circlePitchScale</a><br/>
* <a href="#name-8">circlePitchAlignment</a><br/>
* <a href="#name-9">circleStrokeWidth</a><br/>
* <a href="#name-10">circleStrokeColor</a><br/>
* <a href="#name-11">circleStrokeOpacity</a><br/>

___

Expand Down
20 changes: 10 additions & 10 deletions docs/FillExtrusionLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
| style | `union` | `none` | `false` | Customizable style attributes |


### [styles](#FillExtrusionLayer-styles)

* <a href="#visibility">visibility</a><br/>
* <a href="#fillExtrusionOpacity">fillExtrusionOpacity</a><br/>
* <a href="#fillExtrusionColor">fillExtrusionColor</a><br/>
* <a href="#fillExtrusionTranslate">fillExtrusionTranslate</a><br/>
* <a href="#fillExtrusionTranslateAnchor">fillExtrusionTranslateAnchor</a><br/>
* <a href="#fillExtrusionPattern">fillExtrusionPattern</a><br/>
* <a href="#fillExtrusionHeight">fillExtrusionHeight</a><br/>
* <a href="#fillExtrusionBase">fillExtrusionBase</a><br/>
### styles

* <a href="#name">visibility</a><br/>
* <a href="#name-1">fillExtrusionOpacity</a><br/>
* <a href="#name-2">fillExtrusionColor</a><br/>
* <a href="#name-3">fillExtrusionTranslate</a><br/>
* <a href="#name-4">fillExtrusionTranslateAnchor</a><br/>
* <a href="#name-5">fillExtrusionPattern</a><br/>
* <a href="#name-6">fillExtrusionHeight</a><br/>
* <a href="#name-7">fillExtrusionBase</a><br/>

___

Expand Down
20 changes: 10 additions & 10 deletions docs/FillLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
| style | `union` | `none` | `false` | Customizable style attributes |


### [styles](#FillLayer-styles)

* <a href="#visibility">visibility</a><br/>
* <a href="#fillAntialias">fillAntialias</a><br/>
* <a href="#fillOpacity">fillOpacity</a><br/>
* <a href="#fillColor">fillColor</a><br/>
* <a href="#fillOutlineColor">fillOutlineColor</a><br/>
* <a href="#fillTranslate">fillTranslate</a><br/>
* <a href="#fillTranslateAnchor">fillTranslateAnchor</a><br/>
* <a href="#fillPattern">fillPattern</a><br/>
### styles

* <a href="#name">visibility</a><br/>
* <a href="#name-1">fillAntialias</a><br/>
* <a href="#name-2">fillOpacity</a><br/>
* <a href="#name-3">fillColor</a><br/>
* <a href="#name-4">fillOutlineColor</a><br/>
* <a href="#name-5">fillTranslate</a><br/>
* <a href="#name-6">fillTranslateAnchor</a><br/>
* <a href="#name-7">fillPattern</a><br/>

___

Expand Down
10 changes: 5 additions & 5 deletions docs/Light.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
| style | `custom` | `none` | `false` | Customizable style attributes |


### [styles](#Light-styles)
### styles

* <a href="#anchor">anchor</a><br/>
* <a href="#position">position</a><br/>
* <a href="#color">color</a><br/>
* <a href="#intensity">intensity</a><br/>
* <a href="#name">anchor</a><br/>
* <a href="#name-1">position</a><br/>
* <a href="#name-2">color</a><br/>
* <a href="#name-3">intensity</a><br/>

___

Expand Down
34 changes: 17 additions & 17 deletions docs/LineLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
| style | `union` | `none` | `false` | Customizable style attributes |


### [styles](#LineLayer-styles)

* <a href="#lineCap">lineCap</a><br/>
* <a href="#lineJoin">lineJoin</a><br/>
* <a href="#lineMiterLimit">lineMiterLimit</a><br/>
* <a href="#lineRoundLimit">lineRoundLimit</a><br/>
* <a href="#visibility">visibility</a><br/>
* <a href="#lineOpacity">lineOpacity</a><br/>
* <a href="#lineColor">lineColor</a><br/>
* <a href="#lineTranslate">lineTranslate</a><br/>
* <a href="#lineTranslateAnchor">lineTranslateAnchor</a><br/>
* <a href="#lineWidth">lineWidth</a><br/>
* <a href="#lineGapWidth">lineGapWidth</a><br/>
* <a href="#lineOffset">lineOffset</a><br/>
* <a href="#lineBlur">lineBlur</a><br/>
* <a href="#lineDasharray">lineDasharray</a><br/>
* <a href="#linePattern">linePattern</a><br/>
### styles

* <a href="#name">lineCap</a><br/>
* <a href="#name-1">lineJoin</a><br/>
* <a href="#name-2">lineMiterLimit</a><br/>
* <a href="#name-3">lineRoundLimit</a><br/>
* <a href="#name-4">visibility</a><br/>
* <a href="#name-5">lineOpacity</a><br/>
* <a href="#name-6">lineColor</a><br/>
* <a href="#name-7">lineTranslate</a><br/>
* <a href="#name-8">lineTranslateAnchor</a><br/>
* <a href="#name-9">lineWidth</a><br/>
* <a href="#name-10">lineGapWidth</a><br/>
* <a href="#name-11">lineOffset</a><br/>
* <a href="#name-12">lineBlur</a><br/>
* <a href="#name-13">lineDasharray</a><br/>
* <a href="#name-14">linePattern</a><br/>

___

Expand Down
20 changes: 10 additions & 10 deletions docs/RasterLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
| style | `union` | `none` | `false` | Customizable style attributes |


### [styles](#RasterLayer-styles)

* <a href="#visibility">visibility</a><br/>
* <a href="#rasterOpacity">rasterOpacity</a><br/>
* <a href="#rasterHueRotate">rasterHueRotate</a><br/>
* <a href="#rasterBrightnessMin">rasterBrightnessMin</a><br/>
* <a href="#rasterBrightnessMax">rasterBrightnessMax</a><br/>
* <a href="#rasterSaturation">rasterSaturation</a><br/>
* <a href="#rasterContrast">rasterContrast</a><br/>
* <a href="#rasterFadeDuration">rasterFadeDuration</a><br/>
### styles

* <a href="#name">visibility</a><br/>
* <a href="#name-1">rasterOpacity</a><br/>
* <a href="#name-2">rasterHueRotate</a><br/>
* <a href="#name-3">rasterBrightnessMin</a><br/>
* <a href="#name-4">rasterBrightnessMax</a><br/>
* <a href="#name-5">rasterSaturation</a><br/>
* <a href="#name-6">rasterContrast</a><br/>
* <a href="#name-7">rasterFadeDuration</a><br/>

___

Expand Down
106 changes: 53 additions & 53 deletions docs/SymbolLayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,59 +16,59 @@
| style | `union` | `none` | `false` | Customizable style attributes |


### [styles](#SymbolLayer-styles)

* <a href="#symbolPlacement">symbolPlacement</a><br/>
* <a href="#symbolSpacing">symbolSpacing</a><br/>
* <a href="#symbolAvoidEdges">symbolAvoidEdges</a><br/>
* <a href="#iconAllowOverlap">iconAllowOverlap</a><br/>
* <a href="#iconIgnorePlacement">iconIgnorePlacement</a><br/>
* <a href="#iconOptional">iconOptional</a><br/>
* <a href="#iconRotationAlignment">iconRotationAlignment</a><br/>
* <a href="#iconSize">iconSize</a><br/>
* <a href="#iconTextFit">iconTextFit</a><br/>
* <a href="#iconTextFitPadding">iconTextFitPadding</a><br/>
* <a href="#iconImage">iconImage</a><br/>
* <a href="#iconRotate">iconRotate</a><br/>
* <a href="#iconPadding">iconPadding</a><br/>
* <a href="#iconKeepUpright">iconKeepUpright</a><br/>
* <a href="#iconOffset">iconOffset</a><br/>
* <a href="#iconAnchor">iconAnchor</a><br/>
* <a href="#iconPitchAlignment">iconPitchAlignment</a><br/>
* <a href="#textPitchAlignment">textPitchAlignment</a><br/>
* <a href="#textRotationAlignment">textRotationAlignment</a><br/>
* <a href="#textField">textField</a><br/>
* <a href="#textFont">textFont</a><br/>
* <a href="#textSize">textSize</a><br/>
* <a href="#textMaxWidth">textMaxWidth</a><br/>
* <a href="#textLineHeight">textLineHeight</a><br/>
* <a href="#textLetterSpacing">textLetterSpacing</a><br/>
* <a href="#textJustify">textJustify</a><br/>
* <a href="#textAnchor">textAnchor</a><br/>
* <a href="#textMaxAngle">textMaxAngle</a><br/>
* <a href="#textRotate">textRotate</a><br/>
* <a href="#textPadding">textPadding</a><br/>
* <a href="#textKeepUpright">textKeepUpright</a><br/>
* <a href="#textTransform">textTransform</a><br/>
* <a href="#textOffset">textOffset</a><br/>
* <a href="#textAllowOverlap">textAllowOverlap</a><br/>
* <a href="#textIgnorePlacement">textIgnorePlacement</a><br/>
* <a href="#textOptional">textOptional</a><br/>
* <a href="#visibility">visibility</a><br/>
* <a href="#iconOpacity">iconOpacity</a><br/>
* <a href="#iconColor">iconColor</a><br/>
* <a href="#iconHaloColor">iconHaloColor</a><br/>
* <a href="#iconHaloWidth">iconHaloWidth</a><br/>
* <a href="#iconHaloBlur">iconHaloBlur</a><br/>
* <a href="#iconTranslate">iconTranslate</a><br/>
* <a href="#iconTranslateAnchor">iconTranslateAnchor</a><br/>
* <a href="#textOpacity">textOpacity</a><br/>
* <a href="#textColor">textColor</a><br/>
* <a href="#textHaloColor">textHaloColor</a><br/>
* <a href="#textHaloWidth">textHaloWidth</a><br/>
* <a href="#textHaloBlur">textHaloBlur</a><br/>
* <a href="#textTranslate">textTranslate</a><br/>
* <a href="#textTranslateAnchor">textTranslateAnchor</a><br/>
### styles

* <a href="#name">symbolPlacement</a><br/>
* <a href="#name-1">symbolSpacing</a><br/>
* <a href="#name-2">symbolAvoidEdges</a><br/>
* <a href="#name-3">iconAllowOverlap</a><br/>
* <a href="#name-4">iconIgnorePlacement</a><br/>
* <a href="#name-5">iconOptional</a><br/>
* <a href="#name-6">iconRotationAlignment</a><br/>
* <a href="#name-7">iconSize</a><br/>
* <a href="#name-8">iconTextFit</a><br/>
* <a href="#name-9">iconTextFitPadding</a><br/>
* <a href="#name-10">iconImage</a><br/>
* <a href="#name-11">iconRotate</a><br/>
* <a href="#name-12">iconPadding</a><br/>
* <a href="#name-13">iconKeepUpright</a><br/>
* <a href="#name-14">iconOffset</a><br/>
* <a href="#name-15">iconAnchor</a><br/>
* <a href="#name-16">iconPitchAlignment</a><br/>
* <a href="#name-17">textPitchAlignment</a><br/>
* <a href="#name-18">textRotationAlignment</a><br/>
* <a href="#name-19">textField</a><br/>
* <a href="#name-20">textFont</a><br/>
* <a href="#name-21">textSize</a><br/>
* <a href="#name-22">textMaxWidth</a><br/>
* <a href="#name-23">textLineHeight</a><br/>
* <a href="#name-24">textLetterSpacing</a><br/>
* <a href="#name-25">textJustify</a><br/>
* <a href="#name-26">textAnchor</a><br/>
* <a href="#name-27">textMaxAngle</a><br/>
* <a href="#name-28">textRotate</a><br/>
* <a href="#name-29">textPadding</a><br/>
* <a href="#name-30">textKeepUpright</a><br/>
* <a href="#name-31">textTransform</a><br/>
* <a href="#name-32">textOffset</a><br/>
* <a href="#name-33">textAllowOverlap</a><br/>
* <a href="#name-34">textIgnorePlacement</a><br/>
* <a href="#name-35">textOptional</a><br/>
* <a href="#name-36">visibility</a><br/>
* <a href="#name-37">iconOpacity</a><br/>
* <a href="#name-38">iconColor</a><br/>
* <a href="#name-39">iconHaloColor</a><br/>
* <a href="#name-40">iconHaloWidth</a><br/>
* <a href="#name-41">iconHaloBlur</a><br/>
* <a href="#name-42">iconTranslate</a><br/>
* <a href="#name-43">iconTranslateAnchor</a><br/>
* <a href="#name-44">textOpacity</a><br/>
* <a href="#name-45">textColor</a><br/>
* <a href="#name-46">textHaloColor</a><br/>
* <a href="#name-47">textHaloWidth</a><br/>
* <a href="#name-48">textHaloBlur</a><br/>
* <a href="#name-49">textTranslate</a><br/>
* <a href="#name-50">textTranslateAnchor</a><br/>

___

Expand Down
9 changes: 6 additions & 3 deletions scripts/templates/component.md.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
<%_ } _%>

<%_ if (component.styles && component.styles.length) { _%>
### [styles](#<%- component.name -%>-styles)
### styles
<%_ for (let style of component.styles) { _%>
* <a href="#<%- style.name -%>"><%- style.name %></a><br/>
<%_ for (let i = 0; i < component.styles.length; i++) { _%>
<%
const style = component.styles[i];
-%>
* <a href="#name<%- i > 0 ? '-' + i : '' -%>"><%- style.name %></a><br/>
<%_ } _%>
<%_ for (let style of component.styles) { _%>
Expand Down

0 comments on commit 17d358c

Please sign in to comment.