diff options
author | Jesse Bounds <jesse@rebounds.net> | 2017-02-08 16:22:53 -0800 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2017-02-08 21:11:43 -0800 |
commit | a49301ad2518663669c6cc7e4719fe786634d982 (patch) | |
tree | 57ec022322663013c44fb882f9096857dfc1c98c /platform/darwin/scripts | |
parent | 0e803186272f9febc84ea9c9e0fdc1b44d637d03 (diff) | |
download | qtlocation-mapboxgl-a49301ad2518663669c6cc7e4719fe786634d982.tar.gz |
[ios, macos] Don't add documentation to NS_ENUM
Diffstat (limited to 'platform/darwin/scripts')
-rw-r--r-- | platform/darwin/scripts/generate-style-code.js | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index 22d1486dd6..e9599b18b8 100644 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -280,29 +280,29 @@ global.propertyDoc = function (propertyName, property, layerType, kind) { } doc += `\n\nThis attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#${anchor}"><code>${property.original}</code></a> layout property in the Mapbox Style Specification.`; } - } - doc += '\n\nThis property can be set to one of the following values:\n\n' + - '- `MGLStyleConstantValue`\n'; - if (property["property-function"]) { - doc += '- `MGLCameraStyleFunction` with an interpolation mode of:\n' + - ' - `MGLInterpolationModeExponential`\n' + - ' - `MGLInterpolationModeInterval`\n' + - '- `MGLSourceStyleFunction` with an interpolation mode of:\n' + - ' - `MGLInterpolationModeExponential`\n' + - ' - `MGLInterpolationModeInterval`\n' + - ' - `MGLInterpolationModeCategorical`\n' + - ' - `MGLInterpolationModeIdentity`\n' + - '- `MGLCompositeStyleFunction` with an interpolation mode of:\n' + - ' - `MGLInterpolationModeExponential`\n' + - ' - `MGLInterpolationModeInterval`\n' + - ' - `MGLInterpolationModeCategorical`\n'; - } else { - if (property.function === "interpolated") { - doc += '- `MGLCameraStyleFunction` with an interpolation mode of:\n' + - ' - `MGLInterpolationModeExponential`\n' + - ' - `MGLInterpolationModeInterval`\n'; + doc += '\n\nYou can set this property to an instance of:\n\n' + + '* `MGLStyleConstantValue`\n'; + if (property["property-function"]) { + doc += '* `MGLCameraStyleFunction` with an interpolation mode of:\n' + + ' * `MGLInterpolationModeExponential`\n' + + ' * `MGLInterpolationModeInterval`\n' + + '* `MGLSourceStyleFunction` with an interpolation mode of:\n' + + ' * `MGLInterpolationModeExponential`\n' + + ' * `MGLInterpolationModeInterval`\n' + + ' * `MGLInterpolationModeCategorical`\n' + + ' * `MGLInterpolationModeIdentity`\n' + + '* `MGLCompositeStyleFunction` with an interpolation mode of:\n' + + ' * `MGLInterpolationModeExponential`\n' + + ' * `MGLInterpolationModeInterval`\n' + + ' * `MGLInterpolationModeCategorical`\n'; } else { - doc += '- `MGLCameraStyleFunction` with an interpolation mode of `MGLInterpolationModeInterval`\n'; + if (property.function === "interpolated") { + doc += '* `MGLCameraStyleFunction` with an interpolation mode of:\n' + + ' * `MGLInterpolationModeExponential`\n' + + ' * `MGLInterpolationModeInterval`\n'; + } else { + doc += '* `MGLCameraStyleFunction` with an interpolation mode of `MGLInterpolationModeInterval`\n'; + } } } return doc; |