Tim Schaub
e2883fb658
Deprecate the imageSmoothing option for sources
2021-12-27 15:30:48 -07:00
Simon Seyock
2ad5789797
Add descriptions for properties.
2021-02-04 18:19:33 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Simon Seyock
7a155a00e7
Replace nested types by typedefs
2021-02-02 18:03:12 +01:00
mike-000
75ae8634f7
use 'source-over' to render edges
2020-06-28 14:51:36 +01:00
Andreas Hocevar
92a47b5e57
Make formatting prettier
2020-05-17 15:35:28 +02:00
philip
c1949a28f0
Just draw everything on pixel boundaries. Browsers just get the
...
difficult cases wrong.
2020-05-17 00:13:40 +00:00
mike-000
c515183bad
Use explicit test for image smoothing disabled
...
fix prettier
2020-04-30 16:27:43 +01:00
mike-000
fc2fe25e69
Use explicit test for smoothing disabled
2020-04-30 16:23:39 +01:00
mike-000
3643f9ec98
Use BrokenDiagonalRendering with contextOptions
...
Apply the BrokenDiagonalRendering processing if opt_contextOptions is set to avoid color distortion along reprojection edges
2020-04-30 13:04:30 +01:00
Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Andreas Hocevar
58b92aca6f
Merge pull request #10463 from pjsg/fix_triangulation
...
Fix issue with reprojection and double drawing pixels.
2020-04-04 09:44:28 +02:00
philip
4e81cf02ee
Remove the unused import
2020-04-03 21:58:51 +00:00
philip
665a8275f6
It appears that Safari and Chrome behave differently when doing a drawImage
...
with coordinates that are outside the source. Chrome appears to draw the
piece of the image that is within the area specified on the drawImage and within
the source. Safari bails and draws nothing if (I think) any of the corners are outside
the source.
2020-04-03 21:54:42 +00:00
philip
76b926420c
Only draw the piece of the source canvas that is required. I.e. take the clip
...
region into account.
2020-01-14 23:52:54 +00:00
philip
1772c8198b
Added comment pointing to an area of improvement
2020-01-11 18:07:09 +00:00
philip
852f6552c7
Fix pixel rounding
2020-01-11 17:29:26 +00:00
philip
902ed53999
Add detection of browsers which cannot render correctly with diagonal
...
clipping regions. In this case, modify the shape of the clip region
so that it has (a number) of horizontal and vertical edges.
2020-01-06 02:23:58 +00:00
philip
4040d03ae6
Fix problem with zero size canvas drawing
2019-12-28 18:09:07 +00:00
philip
a6b1df3574
Fix missing corners of the world
2019-12-28 17:47:53 +00:00
philip
b71b87d7bb
Fix issue with reprojection and double drawing pixels.
2019-12-28 03:40:10 +00:00
mike-000
560931e976
Set reprojection canvas context options
...
Add example of disabling image smoothing
Add test for reprojection context options
2019-12-20 11:41:42 +00:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
Frederic Junod
0c300d651f
Change 'Image' type to 'HTMLImageElement'
2018-06-29 09:31:32 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Tim Schaub
9c1db1f904
Named exports from ol/reproj
2018-02-09 10:04:03 -07:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Ron Young
a11208d126
rename _ol_math_ imports
2017-12-20 19:31:00 -06:00
Frédéric Junod
083d48b9cb
Merge pull request #7586 from fredj/ne_dom
...
Named exports from ol/dom
2017-12-14 13:29:36 +01:00
Tim Schaub
6f72ffe498
Named exports from ol/proj
2017-12-14 13:08:40 +01:00
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
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Marc Jansen
9fc0fb5e74
Merge pull request #6916 from marcjansen/eslint-4-upgrade
...
Upgrade eslint to v4.0.0
2017-06-22 07:55:06 +02:00
Marc Jansen
d0ef05977b
Autofix indentation issues (eslint --fix)
2017-06-19 11:58:00 +02:00
Andreas Hocevar
0d0ed6c130
Only adjust resolution when center within projection extent
2017-06-14 15:33:16 +02:00
Frederic Junod
5763e1d145
Remove unused goog.require
2017-02-03 12:40:53 +01:00
Andreas Hocevar
9a1adc43cd
No special raster reprojection handling for Chrome
2017-01-10 14:12:07 +01:00
Tim Schaub
ef04f466cd
Name modules more like their provide
2016-12-18 11:24:01 -07:00