Maximilian Krög
c55366d35e
use correct stride for draw image
2021-06-17 00:14:34 +02:00
Maximilian Krög
3791dee358
Fix immediate render with pixel ratio != 1
2021-06-17 00:14:27 +02:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
mike-000
cf0e650435
allow scale to be two dimensional
...
add getScaleArray() method
test two dimension scale icons
test two dimension scale text
add example of icon and label scaling
use smaller icon and larger interval
test two dimensional scale icons
test two dimensional scale icons
2020-05-20 09:54:47 +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
Frederic Junod
a695ce8616
Remove all inheritDoc tags from src/ol/render
2020-04-03 07:56:58 +02:00
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
Andreas Hocevar
90d6a6f441
Move hit detection to its own module
2019-10-14 14:40:06 +02:00
Andreas Hocevar
3c243b0236
getFeature() for VectorTile layer
2019-10-08 08:23:38 +02:00
Andreas Hocevar
e9785317eb
Move hit detection code to Immediate.js
2019-10-08 08:23:38 +02:00
Andreas Hocevar
315695eeb8
New Layer#getFeatures method with fast hit detection for VectorLayer
2019-10-08 08:23:38 +02:00
Tim Schaub
d3b47c794e
Make the immediate API work with a user projection
2019-09-30 08:28:50 -06:00
Frederic Junod
ad51c7c08f
Use CanvasLineCap type instead of string
2019-07-05 11:11:35 +02:00
Frederic Junod
7a8a0c18ae
Use CanvasLineJoin type instead of string
2019-07-05 11:07:10 +02:00
Frederic Junod
b3520f8217
Remove CANVAS_LINE_DASH from ol/has
...
Test if `context.setLineDash` is defined instead.
2018-12-07 13:15:23 +01:00
Kevin Schmidt
452d5454cb
Fix type check errors in ol/render/canvas/Immediate
2018-10-02 12:32:37 -06: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
ahocevar
b9aceb23ac
Let renderer decide whether to snapToPixel or not, also for text
2018-08-09 18:16:58 +02:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
ahocevar
bbe0a66d07
Set api annotation on classdesc, not constructor
2018-07-21 17:25:22 +02:00
Frederic Junod
65b306891b
Remove 'struct' jsdoc tags, code indentation
2018-07-18 09:07:27 +02: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
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -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
Frederic Junod
b34cdb58e3
Set textAlign to the canvas context
2018-05-17 13:15:04 +02:00
Tim Schaub
8e7c88d9a5
Updated type annotations
2018-05-07 15:50:56 -06:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Frederic Junod
7701c5fd3a
Module type for ol.render.Feature
2018-04-20 14:53:56 +02:00
Frederic Junod
3c0c4cd155
Module type for ol.render.VectorContext
2018-04-20 14:41:11 +02:00
Frederic Junod
ae5e24a6c3
Module type for ol.render.Event
2018-04-20 14:32:23 +02:00
Michael Kuenzli
b740630e89
Move ol.CanvasTextState to ol/render/canvas
2018-04-19 17:41:08 +02:00
Michael Kuenzli
6096f84be2
Move ol.CanvasStrokeState to ol/render/canvas
2018-04-19 17:41:08 +02:00
Michael Kuenzli
4f74bcaa31
Move ol.CanvasFillState to ol/render/canvas
2018-04-19 17:41:08 +02:00
Frederic Junod
7cbc22fece
Module type for ol.style.*
2018-03-27 15:09:52 +02:00
Frederic Junod
ce726ed9dd
Module type for ol.layer.Vector
2018-03-23 08:44:21 +01:00
Tim Schaub
cf80733e41
Module type for ol/Feature
2018-03-12 08:32:09 -06:00
Tim Schaub
ef70d71636
Module types for ol/geom
2018-03-12 08:32:09 -06: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
fba4d82bdb
Named exports from ol/geom/SimpleGeometry
2018-02-19 10:05:30 -07:00
Frederic Junod
4cad77089a
Better code indentation
2018-02-16 14:34:00 +01:00
Marc Jansen
183b8e29c4
Named exports from ol/transform
2018-02-15 17:55:54 +01:00
Tim Schaub
0948d4002f
Named exports from ol/render/canvas
2018-02-14 09:43:20 -07:00
raiyni
b2d920bbf1
ol/geom/flat/transform export
2018-02-13 09:22:00 -06:00
Tim Schaub
9cfee0f40b
Named exports from ol/has
2018-02-05 10:42:47 -07:00
Frederic Junod
039d4dc714
Better variables scoping
2018-01-17 16:07:36 +01: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
d840eab615
Rename _ol_render_canvas_Immediate_ to ImmediateCanvasRenderer
2018-01-11 11:58:26 -07:00