summaryrefslogtreecommitdiff
path: root/platform/darwin/scripts
Commit message (Collapse)AuthorAgeFilesLines
* [core] Rework spec function/expression taxonomyLauren Budorick2018-05-141-3/+8
| | | Ports https://github.com/mapbox/mapbox-gl-js/pull/6521, updating codegen scripts to parse new expression taxonomy.
* [ios, macos] Update Style Functions guide (#11724)Jordan Kiley2018-04-191-3/+3
|
* [macos] Replaced UIColor with NSColor in documentationMinh Nguyễn2018-04-161-5/+5
|
* [ios, macos] Corrected documentationMinh Nguyễn2018-04-021-9/+9
| | | | Mentioned MGLComputedShapeSource in a few more places. Updated symbol style layer documentation to refer to aftermarket expression functions. Copyedited some heatmap style layer documentation.
* [ios, macos] Renamed MGLVectorSource to MGLVectorTileSourceMinh Nguyễn2018-04-021-7/+7
|
* [ios, macos] Renamed MGLRasterSource to MGLRasterTileSourceMinh Nguyễn2018-04-021-1/+1
| | | | Also updated various source class listings to reflect the addition of image and raster DEM sources.
* Merge branch 'master' into release-bobaFabian Guerra2018-02-152-6/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/CompassView.java # platform/android/scripts/exclude-activity-gen.json # platform/ios/CHANGELOG.md # platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec # platform/ios/Mapbox-iOS-SDK-symbols.podspec # platform/ios/Mapbox-iOS-SDK.podspec # platform/macos/CHANGELOG.md
| * [core, ios, macos, android, node] Heatmap layer (#11046)Vladimir Agafonkin2018-02-152-6/+15
| | | | | | | | | | Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
* | [ios, macos] Documented ranges of style propertiesMinh Nguyễn2018-01-261-6/+20
|/
* [ios, macos] Hook up hillshade style layers, raster DEM sources to iOS/macOS ↵Minh Nguyễn2018-01-251-0/+3
| | | | | | | | | | | | | | | | (#11036) * [ios, macos] Finished implementing MGLHillshadeStyleLayer * [macos] Added icon for hillshade layer Also set the background layer icon to mirror in right-to-left locales. * [ios, macos] Implemented raster DEM source * [macos] Added Enhance Terrain debugging command * [ios, macos] Simplified raster DEM source example
* [ios, macos] Raster style layers are used with image sources tooMinh Nguyễn2018-01-241-1/+1
|
* [ios, macos] Removed heatmap layer suppression from Darwin code generatorMinh Nguyễn2018-01-241-3/+0
|
* [build] Always use style-code's writeIfModified to unify file updatesKonstantin Käfer2018-01-242-20/+17
|
* [build] Add temporary modifications to style spec + shadersKonstantin Käfer2018-01-241-1/+1
| | | | This ensures that the generated code matches what is checked in. Remove those temporary modifications once we add the features to master.
* Reimplement style values atop NSExpression (#10726)Minh Nguyễn2018-01-241-48/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Import headers, not implementation files * [core] Added accessors for various expression parameters Added missing parameter accessors to various expression operator classes, as well as a method on InterpolatorBase and Step that enumerates the stops and their values. * [ios, macos] Silenced warning in test of error condition * [ios, macos] Made MGLSphericalPosition boxable * [ios, macos] Implemented array enumeration during conversion * [ios, macos] Temporarily ignore heatmap layer type * [ios, macos] Migrated MGLSymbolStyleLayer.text to NSExpression MGLSymbolStyleLayer.text is now of type NSExpression instead of MGLStyleValue, as a first step toward migrating the entire layer API from style values to expressions. Implemented conversions from NSExpression to JSON arrays and vice versa. The most common NSExpression functions are now converted into style expressions, but not all of the most common style expression operators are supported yet. * [ios, macos] Implemented string coercion * [ios, macos] Color literals * [ios, macos] Null constant expressions * [ios, macos] Convert dictionary literals * [ios, macos] Interpolation expressions * [ios, macos] to-boolean, to-number, get from object * [ios, macos] Variable expressions Implemented custom expression functions for assigning and referring to variables within the context of an expression. Variables are assigned via a “context dictionary” and applied to an subexpression that is given as another argument to the same expression. Also implemented built-in variable expressions for zoom level and heatmap density. * [ios, macos] Convert colors, offsets, padding in expressions to JSON objects * [ios, macos] Expression-based style property getters Implemented a conversion from mbgl::style::PropertyValues to Objective-C JSON objects, which are then converted to NSExpressions. * [ios, macos] Consolidated property value–expression conversion in MGLStyleValueTransformer * [ios, macos] Predicate and expression guide Extracted documentation about predicates from a documentation comment in MGLVectorStyleLayer.h to a new jazzy guide. Added details about NSExpression support as well. Began updating the “For Style Authors” guide to reflect the transition from style values to expressions. * [ios, macos] Updated style authoring guide Updated the Information for Style Authors guide to discuss expressions instead of style functions. Included a table mapping style specification expression operators to NSExpression syntaxes. * [ios, macos] Migrated codegen templates to expressions * [ios, macos] Applied expression changes via codegen Ran make darwin-style-code. * [macos] Migrated macosapp to expressions * [ios, macos] Updated style function guide This guide needs to be thoroughly rewritten, but for now the example code has been migrated to expressions. * [ios, macos] Eviscerated style function tests * [ios, macos] Updated changelogs * [ios] Migrated iosapp to expressions * [ios, macos] Exposed JSON conversion methods publicly * [ios, macos] Removed MGLStyleValue, MGLStyleFunction
* [ios, macos] Add documentation overrides for icon-image and text-fieldJohn Firebaugh2018-01-101-0/+6
|
* [build] Special case heatmap-color so it doesn't crash `make style-code`John Firebaugh2018-01-101-1/+5
|
* [ios, macos] Fixed inconsistent indentationMinh Nguyễn2018-01-101-11/+11
|
* [ios, macos] Qualify references to properties in enum docsMinh Nguyễn2018-01-101-0/+7
| | | | jazzy requires these property references to be qualified by class names in order to auto link them.
* [ios, macos] Update cross-refs to properties in doc commentsMinh Nguyễn2018-01-101-4/+6
|
* Implement icon-anchor propertyLauren Budorick2017-08-281-4/+10
|
* MGLLight autogenerate scripts (#9260)Fabian Guerra Soto2017-06-162-1/+44
| | | | | | | | | | | | | | * [ios, macos] Add the MGLLight generation templates * [ios, macos] Add MGLLight generation script * [ios, macos] Add the auto-generation script for MGLLight.mm * [ios, macos] Add the auto-generation script for MGLLightTest.mm * [core] Add const to Position constructor. * [ios, macos] Simplify MGLLightTest.mm autogenerate script.
* [ios, macos] Factored out tile URL template guideMinh Nguyễn2017-05-161-3/+10
| | | | Factored out redundant tile URL template documentation from the MGLRasterSource and MGLVectorSource documentation into a jazzy guide. This documentation used to live in one place, on a method on MGLTileSource, but that method had to be moved to MGLTileSource’s concrete subclasses. A jazzy guide is easier to link to, in any case.
* [ios, macos] Moved DDS guide examples to Swift unit testMinh Nguyễn2017-05-082-1/+36
| | | | Moved example code from DDS guide to a unit test written in Swift. The code is inserted into the guide at codegen time.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-273-5/+18
|
* [ios, macos] Rename Data-driven styling guide (#8627)Jesse Bounds2017-04-051-3/+3
| | | | | | | | | * [ios, macos] Rename Data-driven styling guide This turns the Data-driven styling guide into a guide for working with style functions. This helps clarify that not all style functions are DDS specific but keeps the discussion of this related functionality in the same guide.
* [ios, macos] update iOS SDK guides (#8354)Jordan Kiley2017-03-171-0/+7
| | | | - Added DDS guide - Updated "For Style Authors" guide
* [ios, macos] Rename MGLStyleConstantValue to MGLConstantStyleValueJesse Bounds2017-03-031-2/+2
|
* [core] Enable property functions for text-{field,transform} (#7944)Anand Thakker2017-02-171-1/+8
|
* [ios, macos] Don't add documentation to NS_ENUMJesse Bounds2017-02-081-22/+22
|
* [ios, macos] Add more bullets to style property docsJason Wray2017-02-081-5/+16
|
* [ios, macos] Add function and interpolation mode to style property docsJesse Bounds2017-02-081-0/+13
|
* [core] Update gl-js; fix $id filters with GeoJSON sourceJohn Firebaugh2017-02-081-1/+1
|
* [build] Use style-spec from gl-js monorepoJohn Firebaugh2017-02-011-1/+1
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-272-18/+18
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.1-masterMinh Nguyễn2017-01-261-2/+2
|\
| * [ios, macos] Testify MGLMapView gesture recognizer exampleMinh Nguyễn2017-01-251-2/+2
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7Minh Nguyễn2017-01-164-83/+449
|\ \ | |/
| * [ios, macos] Rewrote style layer testsMinh Nguyễn2017-01-131-26/+134
| | | | | | | | | | | | | | | | Replaced the style layer integration tests with unit tests. Test conversion of style values to property values and vice versa, not just round-tripping. Test the initial state and null-resetting of each null-resettable property. Test NSValue additions for style attribute enumerations. Test properties common to all style layer classes. Test MGLStyle’s source and layer collections. Eviscerated implementations of unavailable style layer properties corresponding to style specification properties that were renamed. Implemented corresponding getters to prevent ivars from being autosynthesized for these unavailable properties. Added a missing bridging header to the iOS test project.
| * [ios, macos] Added MGLShape from GeoJSON exampleMinh Nguyễn2017-01-091-1/+1
| | | | | | | | Added an example of deserializing an MGLShape from a GeoJSON file.
| * [ios, macos] Cleaned up color, edge insets declarations, commentsMinh Nguyễn2017-01-091-17/+19
| | | | | | | | Eliminated references to MGLColor within style layer headers.
| * [macos] Flip offsets and translationsMinh Nguyễn2017-01-091-1/+12
| | | | | | | | The screen origin is at the lower-left, so offsets and translations increase rightwards and upwards, in contrast to iOS and Web contexts, where the coordinate system increases rightwards and downwards. Duplicated style layer property declarations to reflect this difference.
| * [ios, macos] Fixed links to paint properties in style specMinh Nguyễn2017-01-071-1/+10
| |
| * [ios, macos] -translate → -translationMinh Nguyễn2017-01-072-13/+27
| |
| * [ios, macos] Renamed text-field, text-font, text-font-size, circle-pitch-scaleMinh Nguyễn2017-01-072-1/+10
| | | | | | | | Reduced the likelihood that the developer might attempt to set textField to an NSTextField or UITextField, or textFont to an NSFont or UIFont, or textSize to a CGSize or NSSize, or circlePitchScale to a number (given iconScale).
| * [ios, macos] Keep style attribute NSValue categories near enum declarationsMinh Nguyễn2017-01-071-12/+1
| | | | | | | | Eliminated the separate NSValue+MGLStyleLayerAddition files, moving the categories into their respective style layer headers to be closer to the enumeration declarations.
| * [ios, macos] Split NSValue+MGLStyleEnumAttributeAdditions category per style ↵Minh Nguyễn2017-01-071-33/+29
| | | | | | | | | | | | layer type Also renamed the file to have a slightly more wieldy name.
| * [ios, macos] Split For Style Authors guideMinh Nguyễn2017-01-041-1/+7
| | | | | | | | Information for Style Authors is now two separate guides, one for iOS and one for macOS. Both are compiled from the same template. Added language about rotation, tilting, and printing.
| * [ios, macos] Added guide for style authorsMinh Nguyễn2017-01-041-3/+16
| | | | | | | | Added a guide to orient JSON stylesheet authors and Mapbox Studio users around the runtime styling API. An introductory section details the many considerations for designing a robust style for use with iOS and macOS devices.
| * [ios, macos] Insert example code in original headers (#7569)Minh Nguyễn2017-01-041-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Removed extraneous code fences * [ios] Streamlined example delimiters Use test method names as names of example blocks and test method documentation comments as front matter for examples. Set off example blocks using a syntax similar to playground markup syntax. Avoid hard-coding indentation levels. Trigger Xcode build error when an error occurs in the script. * [ios] Removed platform-specific code from examples * [ios] Fixed logic error The comment said 200 while the code said 1,500. * [ios] Formalize build phase input * [ios] Insert examples into original source documentation Rewrote the example code insertion script to work on the original source files and overwrite any existing code examples on the same symbols. The script uses SourceKitten to find the documentation comment for the symbol named by the test method. Replaced the Run Script build phase that runs the example code insertion script with a make rule that runs the same script. Inlined skeleton examples minus the contents of the code blocks. * [ios] Fixed syntax error * [ios] Ran ios-add-examples-to-docs * [ios] Avoid touching unchanged headers * [ios] Refactored example insertion script * [ios] Point jazzy at original sources * [ios] Invoke SourceKitten only once * [ios] Look for methods as well as properties * [ios] Thoroughly search for code blocks in doc comments Refactored the example code insertion script to index test methods by their names, then recursively search the SourceKitten output for documentation comments that contain Swift code blocks, replacing each code block with the associated test method body. * [ios, macos] Enabled example insertion for macOS The example code insertion script is now platform-agnostic. * [ios, macos] Fixed documentation example tests Set the map view’s style to a minimal local JSON file. Wait for the style to finish loading before running each test. Corrected CGVector type. * [ios, macos] Dry run mode The output of this mode isn’t a good indicator of whether any files would’ve needed to be changed, because the presence of a conditional compilation block in one of the test methods means this script would always change and revert the corresponding comment. * [ios] Fixed test failure The iOS implementation of MGLMapView tries to show the Streets style by default even if no access token has been set. Avoid a race condition and frequent test failure by specifying the minimal style on initialization. * [ios, macos] Ensure SourceKitten is installed before inserting example code * [ios, macos] Tear down map view after each test Keep map views from previous tests from hanging around, potentially obscuring the result of a subsequent test. Set the access token to a bogus token upfront for all style layer tests. Unified MGLStyle usage within MGLStyleTests. * [ios, macos] Reinsert examples after generating runtime styling headers