summaryrefslogtreecommitdiff
path: root/src/mbgl/layout
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix -Werror={pessimizing,redundant}-move from GCC 9Bruno de Oliveira Abinader2020-04-201-1/+1
|
* Better structure fix.Luke Seelenbinder2020-04-171-4/+4
|
* Fix segfault resulting from an invalid geometry.Luke Seelenbinder2020-04-171-2/+5
|
* [core] Fix performance-no-automatic-move (bonus)Thiago Marcos P. Santos2020-04-171-1/+1
| | | | | | As reported by clang-tidy-10. We don't run clang-tidy-10 yet. We should probably consider moving the bots at some point so errors like this won't return.
* [core] Fix modernize-use-equals-default errors in header filesThiago Marcos P. Santos2020-04-171-2/+1
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-copy-initialization errors in header filesThiago Marcos P. Santos2020-04-171-2/+2
| | | | As reported by clang-tidy-8.
* [core] Fix readability-avoid-const-params-in-decls errors in header filesThiago Marcos P. Santos2020-04-175-38/+44
| | | | As reported by clang-tidy-8.
* [core] CircleLayout fixesMikhail Pozdnyakov2020-04-141-37/+33
|
* Enable 'circle-sort-key' layout propertyAndrew Hay Kurtz2020-04-141-0/+165
|
* [build] Fix undefined behavour sanitizer (#16375)zmiao2020-04-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [build] Fix integer overflow runtime error for core part Temporarily remove circle ci UBSAN build precondition * [build] Enable all of the ubsans [build] Check runtime error [build] Update UBSAN_OPTION * [build] Add UBSAN blacklist [build] Ignore system libraries [build] Ignore vendor library * [build] Fix implicit conversion runtime error in core * [build] Fix division by zero runtime error * [build] Add unfixed error to ubsan blacklist * [build] Make UBSAN halt on error Revert "Temporary remove build precondition" * [build] Fix division by zero error * [build] Make UBSAN officially work without FIXME prefix * [build] Fix implicit conversion from int64_t to uint64_t * [build] Rename style test json file name * Address review findings
* [core] Fix readability-* errorsThiago Marcos P. Santos2020-03-302-3/+4
| | | | As reported by clang-tidy-8.
* [core] Fix google-readability-casting errorsThiago Marcos P. Santos2020-03-301-8/+16
| | | | As reported by clang-tidy-8.
* [core] Fix modernize-return-braced-init-list errorsThiago Marcos P. Santos2020-03-231-5/+3
| | | | As reported by clang-tidy-8.
* [core] Fix performance-type-promotion-in-math-fn errorsThiago Marcos P. Santos2020-03-232-9/+17
| | | | As reported by clang-tidy-8.
* [core] Fix performance-unnecessary-copy-initialization errorsThiago Marcos P. Santos2020-03-231-1/+1
| | | | As reported by clang-tidy-8.
* [core] Encapsulate placement code handling symbols sort rangesMikhail Pozdnyakov2020-03-032-8/+3
|
* Backport https://github.com/mapbox/mapbox-gl-js/pull/9333zmiao2020-02-261-9/+1
|
* [core] Support [within expression] with layout propertyzmiao2020-02-123-36/+52
|
* Enable within expression with Filterzmiao2020-02-122-4/+7
| | | | | | add canonical as pointer fix review findings
* Enable parse within expressionzmiao2020-02-125-26/+80
| | | | Add geometry type checker
* [core] sort symbols using symbol-sort-key before placement (#16023)Ansis Brammanis2020-02-113-10/+44
| | | | fix #15964 partially port mapbox/mapbox-gl-js#9054
* Bump GL-JSzmiao2020-02-111-2/+10
| | | | Backport GL-JS fix 'Hide glyphs behind the camera'(https://github.com/mapbox/mapbox-gl-js/pull/9229)
* [core] remove std::vector copy step in SymbolLayout::anchorIsTooClose (#16131)galinelle2020-01-221-1/+1
| | | A const reference is enough here.
* [core] Do not index and place the off-screen symbols for overscaled tilesMikhail Pozdnyakov2020-01-221-0/+2
| | | | | For overscaled tiles the viewport might be showing only a small part of the tile, so we filter out the off-screen symbols to improve the performance.
* [core] implement stretchable icons for icon-text-fitKonstantin Käfer2020-01-153-3/+7
|
* [core] move icon rotation from shaping to quad generation to mirror JSKonstantin Käfer2020-01-153-4/+6
|
* [core] Remove unused WritingMode from getIconQuadsKonstantin Käfer2020-01-151-3/+2
|
* [core] getGlyphQuad -> getGlyphQuadsKonstantin Käfer2020-01-154-18/+46
|
* [core] add pixelOffset and minFontScale to SymbolQuadsKonstantin Käfer2020-01-151-3/+3
|
* [core] Upgrade shaders and add new vertices to SymbolLayoutKonstantin Käfer2020-01-151-8/+39
|
* [core] Handle zero text sizeMikhail Pozdnyakov2019-12-191-1/+1
| | | | | | | | The style specification stipulates that `text-size` values must be positive (https://docs.mapbox.com/mapbox-gl-js/style-spec/#layout-symbol-text-size). However, a zero value could be passed to the engine (e.g. as a result of an expression) this patch handles it and avoids assertion hit in `shaping.cpp`.
* [core] Enable 'line-sort-key' and 'fill-sort-key' layout properties (#15839)Andrew Hay Kurtz2019-12-171-8/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Generate style code for 'line-sort-key' and 'symbol-sort-key' - Add new layout properties to FillLayer::Impl, FillBucket, and FillLayerFactory - Fix consistency of paint and layout properties type alias usage in FillBucket, LineBucket - Add optional feature sorting to fill and line Layout creation - Enable node render tests for fill-sort-key and line-sort-key - Fix FillBucket test construction - Prefer emplace_back to push_back for PatternFeature container - Fix buggy static_cast for PatternFeature indices - Maintain sort of features as they are created - Switch pattern layout features container to list from vector for better insert performance - Fix formatting expected by sanity check - Use subclass PatternLayoutSorted to work around lack of template functions - Fix to retain source order for features with equivalent sort keys during sorting - [core] Fix clang-format - [core] Address review comments - [core] Pass inserting strategy class at compile time - [core] Use sorted strategy only if sort key is defined in layout - [core] Update style generator - [core] Merge PatternLayout and PatternLayoutSorted classes - Use static methods for inserter strategies - Merge PatternLayout and PatternLayoutSorted classes
* [core] Add unit test for calculateTileDistancesAlexander Shalamov2019-12-092-4/+5
|
* [core] Don't use signed int type for anchor segmentAlexander Shalamov2019-12-091-11/+26
|
* [core] Shape images in labels at bucket zoom levelAlexander Shalamov2019-12-021-0/+2
|
* [core] Use new 'SymbolTextAndIcon' program to draw icons in textAlexander Shalamov2019-12-022-4/+16
|
* [core] Store 'sdf' flag in vertex attributeAlexander Shalamov2019-12-023-13/+16
|
* [core] Shape images in labels and create image quadsAlexander Shalamov2019-12-025-27/+40
|
* [core] Calculate line width and line breaks for imagesAlexander Shalamov2019-12-021-1/+1
|
* [core] Pass images and evaluated layout text size to shapingAlexander Shalamov2019-12-022-6/+24
|
* [core] Add evaluated images to styled text sectionsAlexander Shalamov2019-12-021-12/+19
|
* [core] Implement image expression (#15877)Alexander Shalamov2019-11-115-36/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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] fix icon-text-fitKonstantin Käfer2019-10-141-9/+10
| | | | This fixes rendering by account for the 1px texture padding around icons that were stretched with icon-text-fit. We've added the 1px padding before, but didn't scale it accordingly when we are resizing the icon when it is stretched to fit the text. Adjusts the code to match the logic in GL JS.
* [core] Fix performance-move-const-argThiago Marcos P. Santos2019-09-251-4/+2
|
* [build] Fix clang format and tidy checksJuha Alanen2019-09-181-2/+4
|
* [core] Add feature state support to bucket classesJuha Alanen2019-09-182-3/+3
|
* [core] Bitmask operations for enumsMikhail Pozdnyakov2019-09-131-14/+1
|
* [core] Enable `text-offset` with variable label placementMikhail Pozdnyakov2019-09-034-29/+94
| | | | Port of https://github.com/mapbox/mapbox-gl-js/pull/8642
* [core] fix collisionBox alignment when Icon/text translation is enabled (#15467)zmiao2019-08-301-18/+26
| | | | | | | | | | | | | | | | | | * add initial fix * fix bug for collision circle * refind code structure * fix indentation * update test * refind code structure * Add changelog * Add comment for boolean
* [core] fix mixed sdf + non-sdf icon rendering in one layer (#15456)zmiao2019-08-264-37/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] fix icon symbol rendring when sdf and non-sdf icon in the same symbol layer * fix build error * fix typo * revert renderableSegment change * simplify codes * fix build error * refine sdf icon flag * [core] fix mixed sdf + non-sdf icon rendering in one layer * remove iconstatus getter in stymbol bucket * fix review findings * provide bitwise operator for SymbolContent enum * use MBGL_MBGL_CONSTEXPR * add one missing update for sdfIcon * make renderer symbol type as enum