summaryrefslogtreecommitdiff
path: root/scripts/generate-style-code.js
Commit message (Collapse)AuthorAgeFilesLines
* Implement icon-anchor propertyLauren Budorick2017-08-281-0/+3
|
* [core] add DataDrivenPaintProperty uniform template class to generation ↵Lauren Budorick2017-06-161-4/+5
| | | | script (#9297)
* [core] generated accessor methods on lightIvo van Dongen2017-05-081-1/+22
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {text,icon}-{color,opacity,halo-color,halo-blur,halo-width} (#7939) * Add symbol dds attributes and adapt style code generation * Update to mapbox-gl-js/master * Refactor SymbolFeature as a subclass of GeometryTileFeature Prepares for enabling DDS on symbol paint properties by allowing the SymbolFeatures, which we keep around after constructing SymbolLayout, to be used in evaluating data-driven paint properties later in the layout process. * Draft approach for splitting icon/text paint properties The `Program` types are set up to bind GL attributes to each of the data-driven paint properties specified in the `PaintProperties` type provided. Since `SymbolPaintProperties` specifies both `Text*` and `Icon*` properties, the symbolIcon, symbolIconSDF, and symbolGlyph programs each attempt to bind roughly double the number of attributes that they actually need. This change addresses this by: - Adding the more specific `IconPaintProperties` and `TextPaintProperties` types, which are subsets of the full `SymbolPaintProperties`. - The symbol layer continues to use its `SymbolPaintProperties paint` member to track layer property state, but it provides helpers that construct objects of each the specific `{Icon,Text}PaintProperties::Evaluated` type, for use by the painter. - The three symbol programs instantiate `Program<>` using the appropriate `{Icon,Text}PaintProperties` type. * check in generated style code * Populate paint buffers for symbol DDS properties * Address first round of review comments * Refactor VectorTile{Layer,Feature} to explicitly share data * Update submodule
* [core] Update gl-js; fix $id filters with GeoJSON sourceJohn Firebaugh2017-02-081-1/+1
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-5/+40
|
* [build] Use style-spec from gl-js monorepoJohn Firebaugh2017-02-011-1/+1
|
* [core] Implement circle-stroke propertiesJohn Firebaugh2016-12-091-9/+11
| | | | Also includes stubs for fill-extrusion layer, because most of the code was auto-generated.
* [build] don't rewrite style code for every buildKonstantin Käfer2016-11-091-17/+10
| | | | | | revert of 93166aef482ea5835d87231f88d369449398ccdf On Android, we always rewrote the style code files, which lead to gratuitous recompiles
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-251-1/+1
|
* update style generation code for new style spec enum values docs (#6508)Justin R. Miller2016-09-301-1/+1
| | | | | | 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.
* [core] Add static getters for property default values (#6124)John Firebaugh2016-08-231-1/+15
|
* [core] make code generator produce GL-compatible colorsKonstantin Käfer2016-07-071-1/+8
| | | | this makes sure colors are premultiplied and the RGB values are in the 0..1 range rather than in the 0..255 range.
* [core, node] Implement bindings for addLayerJohn Firebaugh2016-06-241-2/+2
|
* Color class (#5361)Young Hahn2016-06-151-1/+1
| | | | | | * Color class * Switch to list initialization
* [node] Partial implementation of runtime styling API for node bindingsJohn Firebaugh2016-06-131-6/+11
|
* [core] Extract code templates to individual .ejs filesJohn Firebaugh2016-06-131-275/+4
|
* text-pitch-alignment (#5288)Young Hahn2016-06-101-3/+7
| | | | | | | | | | | | * First pass at port of https://github.com/mapbox/mapbox-gl-js/pull/2668 * RotationAlignmentType => AlignmentType * Handle undefined default value for text-pitch-alignment and implement inheritance for this value from text-rotation-alignment * Update dependencies * Move handling fo undefined default value out of camelize functions
* [core] Revert line-round-limit default to 1 (#5260)John Firebaugh2016-06-061-0/+5
| | | Refs #5258, #5234.
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-15/+25
|
* [core] Add Filter accessorsJohn Firebaugh2016-06-021-0/+14
|
* [core] Introduce PropertyValue<T>John Firebaugh2016-06-021-15/+17
| | | | PropertyValue<T> represents the three possible types of style property value: undefined, constant, or function.
* [core] Runtime style layer APIJohn Firebaugh2016-06-021-0/+346