summaryrefslogtreecommitdiff
path: root/platform/darwin/scripts
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-08-22 13:59:09 +0200
committerFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-11-16 11:50:36 +0100
commitb4aba87892d8b6fa5c9d5608032bf54db98b6143 (patch)
tree26a9a07a13f39d27322d8e7c05920068e2ca297f /platform/darwin/scripts
parent7e6d8db1364165b397562f43cd162814f36c4ec4 (diff)
downloadqtlocation-mapboxgl-b4aba87892d8b6fa5c9d5608032bf54db98b6143.tar.gz
[ios, macos] override style spec documentation
Diffstat (limited to 'platform/darwin/scripts')
-rw-r--r--platform/darwin/scripts/generate-style-code.js3
-rw-r--r--platform/darwin/scripts/style-spec-overrides-v8.json55
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