diff options
author | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-08-22 13:59:09 +0200 |
---|---|---|
committer | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-11-08 13:47:09 +0100 |
commit | 5a828cb80fb69f88840d3085b79c9e756bf0e66d (patch) | |
tree | 22346530beda54450a3702b3ff4d4512433156f3 /platform/darwin/scripts | |
parent | 3002023a6cb6380de1e27b02baf9467c428a7e88 (diff) | |
download | qtlocation-mapboxgl-5a828cb80fb69f88840d3085b79c9e756bf0e66d.tar.gz |
[ios, macos] override style spec documentation
Diffstat (limited to 'platform/darwin/scripts')
-rw-r--r-- | platform/darwin/scripts/generate-style-code.js | 3 | ||||
-rw-r--r-- | platform/darwin/scripts/style-spec-overrides-v8.json | 55 |
2 files changed, 57 insertions, 1 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index 62ab3b6b98..80d7504de4 100644 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -2,8 +2,9 @@ const fs = require('fs'); const ejs = require('ejs'); -const spec = require('mapbox-gl-style-spec').latest; +const _ = require('lodash'); const colorParser = require('csscolorparser'); +const spec = _.merge(require('mapbox-gl-style-spec').latest, require('./style-spec-overrides-v8.json')); const prefix = 'MGL'; const suffix = 'StyleLayer'; diff --git a/platform/darwin/scripts/style-spec-overrides-v8.json b/platform/darwin/scripts/style-spec-overrides-v8.json new file mode 100644 index 0000000000..ed42935138 --- /dev/null +++ b/platform/darwin/scripts/style-spec-overrides-v8.json @@ -0,0 +1,55 @@ +{ + "layout_symbol": { + "icon-text-fit-padding": { + "doc": "Size of the additional area added to dimensions determined by `icon-text-fit`." + }, + "icon-offset": { + "doc": "Offset distance of icon from its anchor." + }, + "text-offset": { + "doc": "Offset distance of text from its anchor." + }, + "text-transform": { + "doc": "Specifies how to capitalize text." + } + }, + "paint_background": { + "background-pattern": { + "doc": "Name of image in style images to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512)." + } + }, + "paint_fill": { + "fill-pattern": { + "doc": "Name of image in style images to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512)." + } + }, + "paint_line": { + "line-pattern": { + "doc": "Name of image in style images to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512)." + }, + "line-translate": { + "doc": "The geometry's offset." + } + }, + "paint_circle": { + "circle-translate": { + "doc": "The geometry's offset." + } + }, + "paint_fill": { + "fill-translate": { + "doc": "The geometry's offset." + }, + "fill-color": { + "doc": "The color of the filled part of this layer." + } + }, + "paint_symbol": { + "icon-translate": { + "doc": "Distance that the icon's anchor is moved from its original placement." + }, + "text-translate": { + "doc": "Distance that the text's anchor is moved from its original placement." + } + } +}
\ No newline at end of file |