summaryrefslogtreecommitdiff
path: root/platform/darwin/scripts/generate-style-code.js
Commit message (Collapse)AuthorAgeFilesLines
* Implement icon-anchor propertyLauren Budorick2017-08-281-4/+10
|
* MGLLight autogenerate scripts (#9260)Fabian Guerra Soto2017-06-161-1/+38
| | | | | | | | | | | | | | * [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-081-0/+35
| | | | 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-271-5/+0
|
* [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-271-4/+4
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7Minh Nguyễn2017-01-161-79/+248
|\
| * [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] 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-071-9/+11
| |
| * [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] Update and reformat documentation for runtime styling (#7475)Minh Nguyễn2016-12-201-7/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Optimized changelog for runtime styling Changelog entries related to style JSON now lead off with the analogous portion of the runtime styling API. * [ios, macos] Autolink cross-class property references in docs jazzy can autolink `Class.property` references in documentation comments. * [ios, macos] Removed extra blank lines * [ios, macos] Corrected typo in MGLMultiPoint docs * [ios, macos] Rewrote shape and feature docs Rewrote documentation about MGLShape, its subclasses, and MGLFeature to emphasize runtime styling uses over annotation uses, associate each type with real-world concepts, cross-reference related style layer classes, and cross-reference related or easily confused shape classes. Links to the GeoJSON specification have been updated to RFC 7946. * [ios, macos] Expanded style layer docs With this change, documentation about style layer classes is nominally based on the documentation in the style specification. However, all the existing layer types’ documentation has been overridden to explain what the layer looks like, relate the layer to a real-world concept, and cross-reference related geometry classes. This change also corrects the description of MGLBackgroundStyleLayer, which erroneously stated that the identifier must be “background”, whereas that only happens to be true by default for Studio template styles. * [ios, macos] Wrap style layer docs * [ios, macos] Removed unused code * [ios, macos] Corrected symbol references in docs * [ios, macos] Corrected typo in abstract class exception
* | [ios, macos] Temporarily ignore the fill extrusion layer (#7706)Jesse Bounds2017-01-121-1/+7
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-masterMinh Nguyễn2016-12-201-9/+41
|\ \ | |/ | | | | Also reran make style-code and manually discarded anything related to fill extrusion layers.
| * Use appropriate part of speech for properties (#7457)Minh Nguyễn2016-12-161-15/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Use appropriate part of speech for properties Fixed overridden property references in requirements lists. Boolean-typed properties can now have getters beginning with “is”. Renamed a number of layout properties according to the following rules: Boolean-typed properties should include a verb; other properties must be noun phrases; all properties must be grammatical. * [ios, macos] Added style spec names as unavailable aliases Renamed properties now have aliases based on their style specification names, marked unavailable, for wayfinding purposes. * [ios, macos] Fixed autosynthesis warnings * [ios, macos] Moved style layer test template to test folder * [ios, macos] Customized iconOptional getter * [ios, macos] Avoid autosynthesis of aliases * [ios, macos] Test that property names are grammatical Run property getter names through a basic battery of tests to see if they’re grammatical. Most part-of-speech tagging tests are guarded by a compile-time flag, off by default, because NSLinguisticTagger does a poor job of telling nouns from verbs, and we’ve intentionally kept many words in property names that could be read as either verbs or nouns (like “transform” or “scale”).
| * [ios, macos] Override references to property names in property requirements ↵Minh Nguyễn2016-12-121-0/+17
| | | | | | | | | | | | | | | | | | | | lists (#7391) * [ios, macos] Refer to template images in documentation SDF icons are known as template images in AppKit and UIKit. * [ios, macos] Override property names in requirements
| * [ios, macos] renamed dasharray and icon sizeFredrik Karlsson2016-12-061-1/+1
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-masterMinh Nguyễn2016-12-031-3/+39
|\ \ | |/
| * [ios, macos] rename style spec propertiesFredrik Karlsson2016-11-301-4/+17
| |
| * [ios, macos] Refactor runtime styling enumeration propertiesJesse Bounds2016-11-221-0/+22
| | | | | | | | | | | | | | Correctly map SDK runtime styling enumerations to mbgl equivalents. Also, add category methods to NSValue so enums can be wrapped up with less of the details of how they are layed out in memory in Objective-C.
| * [ios, macos] override style spec documentationFredrik Karlsson2016-11-161-1/+2
| |
* | [build] don't rewrite style code for every buildKonstantin Käfer2016-11-091-15/+5
| | | | | | | | | | | | revert of 93166aef482ea5835d87231f88d369449398ccdf On Android, we always rewrote the style code files, which lead to gratuitous recompiles
* | [ios, macos] override style spec documentationFredrik Karlsson2016-11-081-1/+2
|/
* [ios, macos] Fixed syntax error in documentation comment (#6822)Minh Nguyễn2016-10-261-0/+3
| | | Fixes #6821.
* [ios, macos] Expand changes to entire APIMinh Nguyễn2016-10-171-78/+63
|
* [ios, macos] Simplified style property enum namesMinh Nguyễn2016-10-111-1/+1
| | | | The name of each enumeration type no longer refers to the layer type that uses it.
* [ios, macos] Revamped MGLStyleLayer, MGLSource inheritanceMinh Nguyễn2016-10-061-10/+2
| | | | | | | | | | Removed the MGLStyleLayer protocol, because almost none of its members was actually implemented in every class that adopted the protocol. Removed the unused mapView backpointer property with no replacement. Renamed MGLBaseStyleLayer to MGLStyleLayer. Created the intermediate abstract classes MGLForegroundStyleLayer and MGLVectorStyleLayer to cover subsets of style layer classes with like functionality. Moved each MGLBaseStyleLayer initializer and the corresponding properties down to an abstract subclass such that the initializer makes sense for all concrete subclasses. Moved more initializers and the predicate property up to MGLVectorStyleLayer to eliminate duplication among the concrete subclasses. Marked these initializers as designated initializers. Removed “source” or “layer” before identifier wherever the type of identifier is apparent. Removed extra MGLGeoJSONSource initializer variants in favor of nullable parameters. Added copious documentation comments for source and style layer classes, including several previously undocumented methods and properties. In particular, some preconditions and postconditions have been documented. Added pragma marks to break up the jazzy documentation pages into sections. Reformatted exceptions for consistency.
* [ios, macos] Loosened style doc transform regex (#6543)Minh Nguyễn2016-09-301-2/+2
| | | | | Mildly decoupled the transformation from the style specification to the format required for iOS/macOS documentation so it’s harder for style specification references to other properties’ values to fall through the cracks. Fixes #6541.
* update style generation code for new style spec enum values docs (#6508)Justin R. Miller2016-09-301-12/+34
| | | | | | Documentation for enum values landed in mapbox/mapbox-gl-style-spec#510. This updates Android, iOS, and macOS documentation code gen scripts to capitalize on them.
* [ios, macos] Doc gen handles arrays as required property values (#6448)David Clark2016-09-241-5/+18
|
* [ios, macos] Allow full hexadecimal colors in layer documentation (#6444)Minh Nguyễn2016-09-231-19/+8
| | | | | | | | * [ios, macos] Allow full hex colors in layer docs CSS hexadecimal RGB syntax can contain all the hexadecimal digits, not just the decimal digits. * [ios, macos] Parse colors with csscolorparser
* [ios, macos] Put MGLStyleLayer inits in respective classesJesse Bounds2016-09-081-2/+14
| | | | | | | | | | | | | | | | | | | | | | | Previously, we declared MGLStyleLayer initializers in the MGLStyleLayer protocol as optional methods. This made it easy to opt in and out of initializers that did or or did not make sense for the subclass. However, this approach was dangerous since it was easy for an application developer to initialize an MGLStyleLayer subclass with an init method that was actually not implemented in that class causing an exception at runtime. This commit moves the init methods that each subclass supports to each subclass so xcode (and the compiler) help the developer avoid the previously possible runtime exception. In addition, a new init method is added that takes the source layer and passes that on to `mbgl::style:Layer` (but only on classes where this is possible in core). This allows an application developer to style a specific source layer (i.e. the contour lines of the mapbox terrain vector source). Finally, this refactors MGLStyleLayer classes to use an MGLSource instead of a string identifier for the source when initializing the style.
* [core, ios, android, qt] Observe style layer mutations rather than requiring ↵John Firebaugh2016-09-061-1/+0
| | | | | | SDKs to use Map::update This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
* [ios, macos] Specialize color properties by platformMinh Nguyễn2016-08-261-6/+25
| | | | Duplicate each color-typed property once per platform using conditional compilation macros. Let’s just hope we never have to throw CGColor into the mix.
* [ios, macos] Test roundtripping property functionsMinh Nguyễn2016-08-261-15/+19
|
* [ios, macos] Test enum values, not just typesMinh Nguyễn2016-08-261-3/+1
|