mike-000
564d4f867f
Do not replace color if image not loaded
2021-09-25 13:24:39 +01:00
Maximilian Krög
1fc94337f7
Fix icon tinting with pixelRatio < 1
2021-06-21 00:13:55 +02:00
Maximilian Krög
558b3a3ed2
Support alpha channel for icon tinting
2020-08-09 21:58:33 +02:00
Maximilian Krög
38ecaa9814
Use compositing operation for icon colorization when possible.
2020-08-09 21:58:33 +02:00
Andreas Hocevar
ac5f52a21f
Hit detect everything with a pixel ratio of 1
2020-07-27 19:56:35 +02:00
Andreas Hocevar
2e781afd56
Use static test context for tainted canvas
2020-07-26 12:12:57 +02:00
Stéphane Brunner
f6061f0589
Don't creates too many canvas
2020-07-17 11:22:29 +02:00
Stéphane Brunner
fd1effa992
High resolution icon
2020-07-15 16:30:24 +02: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
Frederic Junod
506aa7aae7
Remove all inheritDoc tags from src/ol/style
2020-04-03 07:56:58 +02:00
Maximilian Krög
24f9e1c6ac
Update comment for the IconImage replaceColor_ method
2020-03-22 13:29:29 +01:00
Maximilian Krög
fbb0364ea5
Make Icon's color attribute work in ie11
2020-03-21 00:33:41 +01:00
Frederic Junod
f67476dd8f
Mark properties as nullable
2019-09-27 13:57:59 +02:00
Frederic Junod
a0e6af425e
Add tests for listenImage function, fix private variables initialization
2019-05-16 16:42:37 +02:00
Tim Schaub
ee9a0bcd05
Stop listening for image decoding
2019-05-16 08:06:12 -06:00
Frederic Junod
2e34dd0faf
Use HTMLImageElement.decode if available
2019-05-16 08:53:29 +02:00
Frederic Junod
c0a860a31f
Remove unnecessary type cast
2019-02-13 11:42:22 +01:00
Frederic Junod
caaf8cb86f
Simplify import path in ol/style/
2018-11-05 16:26:45 +01:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
Kevin Schmidt
124fccf127
Fix style TypeScript errors
2018-09-17 12:38:00 -06:00
ahocevar
fc5aafe9fe
Lazily detect tainted canvas
2018-09-10 10:13:41 +02:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +02: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
Matthias Schiffer
321166849b
Consistently use lowercase HTML tag names
...
Unlike HTML, XHTML is case-sensitive.
2018-08-18 12:48:14 +02:00
Tim Schaub
40486a0ecc
Avoid shadowing EventTarget
2018-07-26 10:14:58 -06:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
Tim Schaub
9ce36da349
Remove @extends and @constructor annotations
2018-07-18 00:36:29 -06:00
Tim Schaub
b7b15eb7f0
Remove unused inherits
2018-07-18 00:13:43 -06:00
Tim Schaub
1a5cf52b61
Remove remaining use of inherits in src
2018-07-17 23:43:10 -06:00
Tim Schaub
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -06:00
Frederic Junod
0c300d651f
Change 'Image' type to 'HTMLImageElement'
2018-06-29 09:31:32 +02:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
ahocevar
59d904e509
Fix some types
2018-04-27 09:30:51 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Tim Schaub
e28305186c
Export shared icon image class from IconImageCache module
2018-04-24 09:37:19 -06:00
Frederic Junod
7cbc22fece
Module type for ol.style.*
2018-03-27 15:09:52 +02:00
Frederic Junod
ded99ccad7
Module type for ol.ImageState
2018-03-19 09:31:18 +01:00
Frederic Junod
3edbbf0b46
Module type for ol.Color
2018-03-19 09:25:45 +01:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Frederic Junod
e3deae940d
Named exports from ol/style/IconImage
2018-02-22 08:19:23 +01:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -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
Tim Schaub
66182f4cfb
Rename _ol_style_IconImage_ to IconImage
2018-01-11 13:29:26 -07:00
Frederic Junod
dc70c4376d
Named export for ol/style
2017-12-18 16:18:00 +01:00
Frederic Junod
0a895a2867
Rename _ol_ImageState_ to ImageState
2017-12-18 10:51:21 +01:00
Marc Jansen
c620688758
Rename _ol_events_EventTarget_ to EventTarget
2017-12-15 16:19:03 +01:00
Marc Jansen
479c7a4668
Rename _ol_events_EventType_ to EventType
2017-12-15 16:19:03 +01:00
Frederic Junod
f6627c4d4e
Named exports from ol/dom
2017-12-14 12:27:09 +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