Commit Graph

423 Commits

Author SHA1 Message Date
Frederic Junod f6627c4d4e Named exports from ol/dom 2017-12-14 12:27:09 +01:00
Andreas Hocevar c0c43bca84 Use named imports from extent 2017-12-13 14:05:42 +01:00
Tim Schaub 87295a74dd Use named exports from ol/index.js 2017-12-12 12:34:23 -07:00
Tim Schaub 7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Tim Schaub 1cdb6a66f0 Imports cased like the filename 2017-12-12 06:53:17 -07:00
Andreas Hocevar a2d41da30f Use full precision for the declutter box 2017-12-11 10:18:46 +01:00
Andreas Hocevar 74bf846ffe Add pixel ratio to label cache key 2017-11-30 01:20:49 +01:00
Andreas Hocevar 9307c35c17 Improve vertical font placement in Firefox 2017-11-30 01:03:15 +01:00
Andreas Hocevar ac195c46b1 Reuse declutter tree for hit detection
Replaying for hit detection no longer declutters, but uses the declutter tree
from the previous rendered frame.
2017-11-28 01:36:47 +01:00
Andreas Hocevar 674868a683 Deprecate exceedLength and replace with overflow 2017-11-27 09:25:41 +01:00
Andreas Hocevar dce56ac73a Merge pull request #7513 from ahocevar/stroke-key
Make strokeKey safer
2017-11-27 08:47:09 +01:00
Andreas Hocevar 66d5d66129 Prune the label cache less aggressively 2017-11-26 23:30:58 +01:00
Andreas Hocevar f426c1cd18 Make strokeKey safer 2017-11-26 12:50:14 +01:00
Andreas Hocevar 0bf7e95619 Merge pull request #7477 from ahocevar/text-style-keys
Make text states available for replay time
2017-11-16 19:59:45 +01:00
Andreas Hocevar ad8e4debbe Make text states available for replay time 2017-11-16 00:39:27 +01:00
Andreas Hocevar febbba78dc Reset text measurements when available fonts change 2017-11-15 18:44:26 +01:00
Andreas Hocevar 53b85a9192 Add rendering tests 2017-11-13 13:58:11 +01:00
Andreas Hocevar df90f1b78c Reuse more code 2017-11-12 22:49:32 +01:00
Andreas Hocevar 1afc686af9 Add text background rendering and text padding 2017-11-12 22:49:32 +01:00
Andreas Hocevar c6eca804f9 Refactor stroke style management to reuse code 2017-11-10 01:16:18 +01:00
Andreas Hocevar 47e6918072 Refactor setTextStyle() for better readability 2017-11-09 16:42:41 +01:00
Andreas Hocevar 5483fa3181 More efficient font checking loop 2017-11-03 13:52:06 +01:00
Andreas Hocevar 7f865b8520 Check if fonts are available and redraw when label cache was cleared 2017-11-03 13:04:06 +01:00
Andreas Hocevar 431d570b91 Only split text at line angle changes 2017-11-03 11:26:38 +01:00
Andreas Hocevar 306851d6ee Consistent naming of declutterTree 2017-11-03 10:36:28 +01:00
Andreas Hocevar e6ae029d08 Improve text rendering performance 2017-10-31 11:33:48 +01:00
Andreas Hocevar 6ce201c429 Do not render text along oversimplified geometries 2017-10-31 11:33:48 +01:00
Andreas Hocevar b29e74d1ab Measure height only once per font 2017-10-31 11:33:48 +01:00
Andreas Hocevar 4a73754b93 Entertain the compiler 2017-10-31 11:33:48 +01:00
Andreas Hocevar 53a2cf55f1 Fix hit detection for decluttered layers 2017-10-31 11:33:48 +01:00
Andreas Hocevar f4506d87eb Use existing sort function 2017-10-31 11:33:48 +01:00
Andreas Hocevar 80e67bac7a Give lower z-index priority (painter's order) 2017-10-31 11:33:48 +01:00
Andreas Hocevar b3f9e4e8ef Improve documentation 2017-10-31 11:33:48 +01:00
Andreas Hocevar 08af207724 Add decluttering for images and text 2017-10-31 11:33:48 +01:00
Andreas Hocevar 742a71cd4b Only render images when visible 2017-10-31 11:33:48 +01:00
Andreas Hocevar 8dbaf29fca Calculate correct text box size 2017-10-12 00:35:22 +02:00
Andreas Hocevar 380690a6a3 Pre-render text images for configured scale 2017-10-11 15:51:15 +02:00
Andreas Hocevar dcf38c22e2 Merge pull request #7345 from ahocevar/line-width
Handle different lineWidth scaling in Safari
2017-10-11 08:56:34 +02:00
Andreas Hocevar d0092ecd18 Handle different lineWidth scaling in Safari 2017-10-11 00:40:14 +02:00
Andreas Hocevar 1fcb94a29c Make text height detection independent of css settings 2017-10-11 00:21:29 +02:00
Andreas Hocevar 02e23e3cd0 Take pixel ratio into account for text stroke 2017-10-09 18:51:45 +02:00
Andreas Hocevar fdacd368f7 Fix multipoint instruction set 2017-09-29 13:17:07 +02:00
Andreas Hocevar 325fac6886 Consider polygon labels only when they fit the intersection length 2017-09-27 18:06:30 +02:00
Andreas Hocevar ca11fd00c1 Fix vertical stroke/fill alignment for text along lines 2017-09-24 22:54:45 +02:00
Andreas Hocevar e2ebd05624 Use a stricter type for chars_ 2017-09-12 11:27:26 +02:00
Andreas Hocevar 94a4554083 Find longest straight chunk when textAlign is not set 2017-09-11 16:54:28 +02:00
Andreas Hocevar efc86d59b0 Implement text rendering along paths
This commit also changes the TextReplay.drawText() signature, and moves
geometry calculation into drawText(). This improves performance where no
text needs to be rendered (TextStyle.getText() == ''), which is used often
in applications.
2017-09-11 16:54:27 +02:00
Andreas Hocevar 6469d3e864 Handle pixelRatio on replay creation instead of replay 2017-08-31 21:41:07 +02:00
Andreas Hocevar 35bd92b713 Prerender labels and cache them as images 2017-08-31 21:41:07 +02:00
Andreas Hocevar 617151c8ff Simplify the renderer function API 2017-08-05 00:15:58 +02:00