-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support mix-blend-mode compositing in screenshots. #1074
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,13 +46,13 @@ describe('blog-lines example', function () { | |
|
||
it('basic', function (done) { | ||
$('#map').attr('src', '/examples/blog-lines/index.html?mode=select'); | ||
imageTest.imageTest('exampleBlogLines', '#map', 0.0015, done, ready, 500, 2, '.leaflet-pane'); | ||
}, 10000); | ||
imageTest.imageTest('exampleBlogLines', '#map', 0.0015, done, ready, 5000, 2, '.leaflet-pane'); | ||
}, 20000); | ||
it('round line cap', function (done) { | ||
$('#map')[0].contentWindow.scrollTo(0, 130); | ||
base$ = $('iframe#map')[0].contentWindow.jQuery; | ||
base$('#feature').val('linecap-round').trigger('change'); | ||
imageTest.imageTest('exampleBlogLinesRoundCap', '#map', 0.0015, done, ready, 500, 2, '.mapboxgl-canvas'); | ||
imageTest.imageTest('exampleBlogLinesRoundCap', '#map', 0.0015, done, ready, 5000, 2, '.mapboxgl-canvas'); | ||
}, 20000); | ||
it('10,000 lines in geojs', function (done) { | ||
// remove previous contents to ensure we detect new contents | ||
|
@@ -62,6 +62,6 @@ describe('blog-lines example', function () { | |
// this permits a large delta to pass on CI. It visually is rendered | ||
// correctly, though with seemingly different aliasing choices by the | ||
// renderer | ||
imageTest.imageTest('exampleBlogLines10k', '#map', 0.04, done, null, 1000, 2, '.geojs-map.ready'); | ||
imageTest.imageTest('exampleBlogLines10k', '#map', 0.04, done, null, 5000, 2, '.geojs-map.ready'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this increase to 5000? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Travis was timing out on this. I don't know why, but increasing it allowed the tests to pass. It is like they are using a different mesa library than before that is slower, but that is just speculation. |
||
}, 10000); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be not possible to just have the user pass any one type of globalCompositeOperation (source in/out, over etc?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, any of the globalCompositeOperation values are supported. They are called mix-blend-mode in css and globalCompositeOperation in canvas.