Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios, macos] Rename MGLStyleConstantValue to MGLConstantStyleValue
Browse files Browse the repository at this point in the history
  • Loading branch information
boundsj committed Mar 2, 2017
1 parent f1e3c32 commit 93bff3b
Show file tree
Hide file tree
Showing 16 changed files with 178 additions and 178 deletions.
2 changes: 1 addition & 1 deletion platform/darwin/docs/guides/For Style Authors.md.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ In style JSON | In Objective-C | In Swift
## Setting attribute values
Each property representing a layout or paint attribute is set to an
`MGLStyleValue` object, which is either an `MGLStyleConstantValue` object (for
`MGLStyleValue` object, which is either an `MGLConstantStyleValue` object (for
constant values) or an `MGLStyleFunction` object (for zoom level functions). The
style value object is a container for the raw value or function parameters that
you want the attribute to be set to.
Expand Down
4 changes: 2 additions & 2 deletions platform/darwin/scripts/generate-style-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ global.testGetterImplementation = function (property, layerType, isFunction) {
if (isFunction) {
return `XCTAssertEqualObjects(gLayer.${objCName(property)}, ${value});`;
}
return `XCTAssert([gLayer.${objCName(property)} isKindOfClass:[MGLStyleConstantValue class]]);
return `XCTAssert([gLayer.${objCName(property)} isKindOfClass:[MGLConstantStyleValue class]]);
XCTAssertEqualObjects(gLayer.${objCName(property)}, ${value});`;
}
return `XCTAssertEqualObjects(gLayer.${objCName(property)}, ${value});`;
Expand Down Expand Up @@ -281,7 +281,7 @@ 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\nYou can set this property to an instance of:\n\n' +
'* `MGLStyleConstantValue`\n';
'* `MGLConstantStyleValue`\n';
if (property["property-function"]) {
doc += '* `MGLCameraStyleFunction` with an interpolation mode of:\n' +
' * `MGLInterpolationModeExponential`\n' +
Expand Down
8 changes: 4 additions & 4 deletions platform/darwin/src/MGLBackgroundStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -60,7 +60,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -77,7 +77,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -91,7 +91,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of
`MGLInterpolationModeInterval`
*/
Expand Down
26 changes: 13 additions & 13 deletions platform/darwin/src/MGLCircleStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -117,7 +117,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -142,7 +142,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -168,7 +168,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -195,7 +195,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand Down Expand Up @@ -224,7 +224,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of
`MGLInterpolationModeInterval`
*/
Expand All @@ -242,7 +242,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -267,7 +267,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -293,7 +293,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand Down Expand Up @@ -321,7 +321,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand Down Expand Up @@ -353,7 +353,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -375,7 +375,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -401,7 +401,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of
`MGLInterpolationModeInterval`
*/
Expand Down
20 changes: 10 additions & 10 deletions platform/darwin/src/MGLFillStyleLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of
`MGLInterpolationModeInterval`
*/
Expand All @@ -88,7 +88,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand Down Expand Up @@ -116,7 +116,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -143,7 +143,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -169,7 +169,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -194,7 +194,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -217,7 +217,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of
`MGLInterpolationModeInterval`
*/
Expand All @@ -239,7 +239,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -261,7 +261,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of:
* `MGLInterpolationModeExponential`
* `MGLInterpolationModeInterval`
Expand All @@ -287,7 +287,7 @@ MGL_EXPORT
You can set this property to an instance of:
* `MGLStyleConstantValue`
* `MGLConstantStyleValue`
* `MGLCameraStyleFunction` with an interpolation mode of
`MGLInterpolationModeInterval`
*/
Expand Down
Loading

0 comments on commit 93bff3b

Please sign in to comment.