Skip to content

Commit 934dce4

Browse files
committed
Add line-pattern-type
1 parent e08da96 commit 934dce4

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

3.0.22/reference.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,16 @@
15231523
"doc": "Allows omitting a line pattern symbolizer rule or emitting it with default values.",
15241524
"status": "unstable"
15251525
},
1526+
"line-pattern": {
1527+
"css": "line-pattern-type",
1528+
"type": ["warp",
1529+
"repeat"
1530+
],
1531+
"expression": true,
1532+
"default-value": "warp",
1533+
"default-meaning": "The pattern will be warped along a linear geometry.",
1534+
"doc": "Sets the way how pattern is rendered. The `warp` options warps the pattern in direction of the geometry. The `repeat` option can be used to repeat pattern in an area given by options `stroke-pattern-width`, `stroke-pattern-linecap`, `line-pattern-join`, `line-pattern-miterlimit`, `line-pattern-dasharray`."
1535+
},
15261536
"file": {
15271537
"css": "line-pattern-file",
15281538
"type": "uri",
@@ -1660,6 +1670,66 @@
16601670
"value"
16611671
],
16621672
"expression":true
1673+
},
1674+
"alignment": {
1675+
"css": "line-pattern-alignment",
1676+
"type": [
1677+
"global",
1678+
"local"
1679+
],
1680+
"expression": true,
1681+
"default-value": "global",
1682+
"doc": "Specify whether to align pattern fills to the feature's geometry (local) or to the map (global).",
1683+
"default-meaning":"Patterns will be aligned to the map when being repeated. This is ideal for seamless patterns in tiled rendering."
1684+
},
1685+
"stroke-width": {
1686+
"css": "line-pattern-width",
1687+
"default-value": 1.0,
1688+
"type": "float",
1689+
"expression": true,
1690+
"doc": "The width of a line in pixels. Used for rendering line pattern of type `repeat`.",
1691+
"default-meaning": "The line will be rendered 1 pixel wide."
1692+
},
1693+
"stroke-linecap": {
1694+
"css": "line-pattern-cap",
1695+
"default-value": "butt",
1696+
"type": [
1697+
"butt",
1698+
"round",
1699+
"square"
1700+
],
1701+
"expression": true,
1702+
"doc": "The display of line endings. Used for rendering line pattern of type `repeat`.",
1703+
"default-meaning": "The line endings will be rendered using a butt look."
1704+
},
1705+
"stroke-linejoin": {
1706+
"css": "line-pattern-join",
1707+
"default-value": "miter",
1708+
"type": [
1709+
"miter",
1710+
"miter-revert",
1711+
"round",
1712+
"bevel"
1713+
],
1714+
"expression": true,
1715+
"doc": "The behavior of lines when joining. Used for rendering line pattern of type `repeat`.",
1716+
"default-meaning": "The line joins will be rendered using a miter look."
1717+
},
1718+
"stroke-miterlimit": {
1719+
"css": "line-pattern-miterlimit",
1720+
"type": "float",
1721+
"expression": true,
1722+
"doc": "The limit on the ratio of the miter length to the stroke-width. Used to automatically convert miter joins to bevel joins for sharp angles to avoid the miter extending beyond the thickness of the stroking path. Normally will not need to be set, but a larger value can sometimes help avoid jaggy artifacts. Used for rendering line pattern of type `repeat`.",
1723+
"default-value": 4.0,
1724+
"default-meaning": "Will auto-convert miters to bevel line joins when theta is less than 29 degrees as per the SVG spec: 'miterLength / stroke-width = 1 / sin ( theta / 2 )'."
1725+
},
1726+
"stroke-dasharray": {
1727+
"css": "line-pattern-dasharray",
1728+
"type": "numbers",
1729+
"expression": true,
1730+
"doc": "A pair of length values [a,b], where (a) is the dash length and (b) is the gap length respectively. More than two values are supported for more complex patterns. Used for rendering line pattern of type `repeat`.",
1731+
"default-value": "none",
1732+
"default-meaning": "The line will be drawn without dashes."
16631733
}
16641734
},
16651735
"polygon-pattern": {

0 commit comments

Comments
 (0)