summaryrefslogtreecommitdiff
path: root/test/util/merge_lines.test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Implement image expression (#15877)Alexander Shalamov2019-11-111-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Bump gl-js version * [core] Implement image expression * [core] Use new image expression * [core] Coerce image expression to / from string * [core] Serialize evaluated image * [core] Pass available images to layout * [core] Pass images to evaluation context * [core] Set available flag value based on image availability * [core] Allow image coercion to boolean to indicate image availability * [core] Coalesce image expression * [core] Add image expression to next build system * [core] Align serialization format and evaluated type with gl-js * [core] Add images to expression evaluation method * [core] Add support for Image expression to expression test runner * [core] Unskip image expression tests * [core] Update unit tests * [core] Use image expression in annotation manager * [core] Add string to ImageExpression conversion * [core] Add image expression to expression dsl * [core] Convert tokens for implicitly created Image literal * [core] Fix clang format * [core] Split generated style code lines that are over 120 characters * [core] Add unit test for image expression equality * [core] Add image property expression evaluation unit test * [core] Unskip image expression render test * [core] Skip 'in' expression tests * [core] Ignore fill-pattern/update-feature-state render test * [core] Rename Image::serialize to Image::toValue
* [core] GeometryCollection must not be implicitly copiedMikhail Pozdnyakov2019-07-241-22/+22
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-051-1/+1
|
* [core] Add possibility of overriding paint properties inside format ↵Alexander Shalamov2019-03-131-1/+1
| | | | | | | | | | | | | | | | | | expression #14062 * [core] Add format override expression and formatted section to evaluation context * [core] Add textColor to TaggedString's formatted section * [core] Add FormatSectionOverrides and introduce overridable properties * [core] Populate symbol layer paint properties for text sections * [core] Add benchmark for style that uses text-color override * [core] Add unit test for FormatOverrideExpression * [core] Add unit test for FormatSectionOverrides
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-131-1/+1
|
* [core] Initial implementation of 'format' expressionChris Loer2018-10-151-1/+3
|
* [core] GCC 4.9 bracket initialization issuesBruno de Oliveira Abinader2017-07-121-33/+40
|
* [test] Reuse StubGeometryTileFeature in MergeLinesBruno de Oliveira Abinader2017-07-061-34/+7
|
* [tidy] modernize-pass-by-valueBruno de Oliveira Abinader2017-05-121-3/+4
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-50/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {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] Add support for data-driven stylingJohn Firebaugh2017-02-021-26/+26
|
* [core] Clean up merge_lines.cpp and add bounds checkingJohn Firebaugh2017-01-181-0/+24
|
* [core] Fix symbol rendering for multipointsJohn Firebaugh2016-12-201-24/+26
| | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/3763 and https://github.com/mapbox/mapbox-gl-js/pull/3806.
* [core] Full support for line breaking bidirectional text using ICU bidi ↵Chris Loer2016-11-301-24/+24
| | | | | | | functionality. - Trim whitespace from labels before determining their max-width for alignment. - Fix crash on labels that contain lines with only a single character of whitespace.
* [core] Add minimal line breaking support for RTL text.Chris Loer2016-11-171-24/+24
|
* [core] Use UTF-16 instead of UTF-32 for label features to avoid extra ↵Chris Loer2016-11-171-2/+2
| | | | | | | conversions and reduce in-memory size. Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32. Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
* [test] add .test.cpp suffix to test case filesKonstantin Käfer2016-09-281-0/+76