From e6e751abd3cd785f02b3f691f52d1a4db00afdb8 Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Thu, 20 Jun 2019 09:07:01 +0300 Subject: [darwin] Update documentation text for enum array value --- platform/darwin/scripts/generate-style-code.js | 2 +- platform/darwin/src/MGLSymbolStyleLayer.h | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index 18afa561e5..38066c9f43 100755 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -409,7 +409,7 @@ global.propertyDoc = function (propertyName, property, layerType, kind) { doc += '* Any of the following constant string values:\n'; doc += Object.keys(property.values).map(value => ' * `' + value + '`: ' + property.values[value].doc).join('\n') + '\n'; } else if (property.type === 'array' && property.value === 'enum') { - doc += '* Constant array, whose each element is any of the following constant string values:\n'; + doc += '* Constant array, in which each element is any of the following constant string values:\n'; doc += Object.keys(property.values).map(value => ' * `' + value + '`: ' + property.values[value].doc).join('\n') + '\n'; } if (property.type === 'formatted') { diff --git a/platform/darwin/src/MGLSymbolStyleLayer.h b/platform/darwin/src/MGLSymbolStyleLayer.h index 93c9e38477..fb00b0d165 100644 --- a/platform/darwin/src/MGLSymbolStyleLayer.h +++ b/platform/darwin/src/MGLSymbolStyleLayer.h @@ -317,9 +317,9 @@ typedef NS_ENUM(NSUInteger, MGLTextTransform) { }; /** - The property allows to control an orientation of a symbol. Note that the - property values act as a hint, so that a symbol whose language doesn’t support - the provided orientation will be laid out in its natural orientation. Example: + The property allows control over a symbol's orientation. Note that the property + values act as a hint, so that a symbol whose language doesn’t support the + provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant. @@ -1644,7 +1644,7 @@ MGL_EXPORT You can set this property to an expression containing any of the following: * Constant `MGLTextAnchor` array values - * Constant array, whose each element is any of the following constant string + * Constant array, in which each element is any of the following constant string values: * `center`: The center of the text is placed closest to the anchor. * `left`: The left side of the text is placed closest to the anchor. @@ -1671,9 +1671,9 @@ MGL_EXPORT @property (nonatomic, null_resettable) NSExpression *textVariableAnchor; /** - The property allows to control an orientation of a symbol. Note that the - property values act as a hint, so that a symbol whose language doesn’t support - the provided orientation will be laid out in its natural orientation. Example: + The property allows control over a symbol's orientation. Note that the property + values act as a hint, so that a symbol whose language doesn’t support the + provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant. @@ -1689,7 +1689,7 @@ MGL_EXPORT You can set this property to an expression containing any of the following: * Constant `MGLTextWritingMode` array values - * Constant array, whose each element is any of the following constant string + * Constant array, in which each element is any of the following constant string values: * `horizontal`: If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally. -- cgit v1.2.1