21 Commits

Author SHA1 Message Date
Nyall Dawson
6c4d0efa1f Fix test which relied on local layout default font setting 2019-09-19 14:38:42 +10:00
Nyall Dawson
c988bd8c23 More test mask updates 2019-09-19 14:38:42 +10:00
Nyall Dawson
a750507fd1 Replace composition converter reference images -- new legend rendering code has superior results to reference images 2019-06-28 09:45:48 +10:00
Nyall Dawson
426382c919 [FEATURE] Average line angles for marker and hashed line symbology
Previously, when marker or hash lines were rendered using interval
or center point place placement, the symbol angles were determined
by taking the exact line orientation at the position of the symbol.

This often leads to undesirable rendering effects, where little
jaggies or corners in lines which occur at the position of the
symbol cause the marker or hash line to be oriented at a very
different angle to what the eye expects to see.

With this new option, the angle is instead calculated by averaging
the line over a specified distance either side of the symbol. E.g.
averaging the line angle over 4mm means we take the points along
the line 2mm from either side of the symbol placement, and use these
instead to calculate the line angle for that symbol. This has the
effect of smoothing (or removing) any tiny local deviations from
the overall line direction, resulting in much nicer visual
orientation of marker or hash lines.

Like all symbol settings, the average angle smoothing distance
can be set using mm/pixels/map units/etc, and supports data-defined
values.

Closed rings also correctly consider wrapping around these average
angles from the start/end vertex.

(Sponsored by an anonymous corporate backer)
2019-04-05 12:00:47 +10:00
Marco Hugentobler
a321d40840 Adapt unit test control images 2019-02-08 10:56:07 +01:00
Nyall Dawson
201523fb85 Test masks 2019-01-03 04:53:28 +10:00
Nyall Dawson
3d03cfba8c Update test masks 2018-05-11 17:48:45 +10:00
Denis Rouzaud
f7220c89c6 more test masks 2018-02-27 08:29:20 -09:00
Alessandro Pasotti
27ab59c628 Fixed mask image and docs 2018-02-27 08:46:30 +00:00
Alessandro Pasotti
5fbcb8e5ed Update mask images 2018-02-26 19:37:10 +00:00
Alessandro Pasotti
02e75a7347 Update control images 2018-02-26 19:04:11 +00:00
Alessandro Pasotti
353b88a857 [layout] Update reference images 2018-01-09 13:34:18 +01:00
Alessandro Pasotti
f297e86201 [layout] Import attribute table from composition 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
2b2dae828f [layout] Import HTML and atlas from 2.x composition 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
858a71f863 [layout] Add map rendering to tests 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
57a40050ad [layout] Added tests for uuid linked maps
Also updated the control images
2018-01-09 08:08:26 +01:00
Alessandro Pasotti
0cb12edbbf [layouts] test masks for rendering tests 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
a5fc57078c [layouts] Removed diff images and adapted tests
to use QGIS font

Also addressed comments in the PR
2018-01-09 08:08:26 +01:00
Alessandro Pasotti
e0c56e7de3 Added diff images for tests 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
c232b4fe9c [layout] connect converted to loader code 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
680b9f8ea0 [layout] Convert scalebar and legent from 2.x 2018-01-09 08:08:26 +01:00