Frederic Junod
1f1951f3cc
Use typescript types for RBush
...
The `toJSON` function simply returns the `data` property.
See: https://github.com/mourner/rbush/blob/v2.0.2/index.js#L184
2018-10-24 17:07:41 +02:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
William Wall
7ff974be2c
Remove superfluous bitwise operations
2018-09-20 10:27:13 -06: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
Tim Schaub
40486a0ecc
Avoid shadowing EventTarget
2018-07-26 10:14:58 -06:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07: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
Tim Schaub
e1e34e5636
Replace @see with See.
2018-07-19 08:37:32 -06:00
Frederic Junod
c1ffb0a2a9
Move template type at the class level
...
This removes the TS1092 error from TypeScript: Type parameters cannot appear on a constructor declaration.
2018-07-19 15:53:52 +02:00
Tim Schaub
b8c9125602
Remove lint
2018-07-18 10:35:54 -06: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
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -06:00
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
Frederic Junod
0d99fc1f98
Set format parameter to rbush function
...
To remove the following closure compiler warning:
```
Function module$node_modules$rbush$index.default: called with 1 argument(s). Function requires at least 2 argument(s) and at most 2.
```
2018-05-09 16:39:59 +02:00
ahocevar
c32ee68637
Fix type syntax
2018-05-07 14:29:10 +02:00
Frederic Junod
76769f9901
Module type for ol.struct.*
2018-04-26 15:16:21 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Tim Schaub
44fb48d63f
Type is * instead of value_
2018-04-18 16:19:06 -06:00
Michael Kuenzli
b76492c3b8
Move ol.LRUCacheEntry to ol/structs/LRUCache
2018-04-18 16:14:03 +02:00
Michael Kuenzli
11da20e744
Move ol.LinkedListItem to ol/structs/LinkedList
2018-04-18 16:09:17 +02:00
Frederic Junod
48740f0026
Move RBush typedefs out of src/ol/typedefs.js
2018-03-22 17:13:48 +01:00
Frederic Junod
857b946f3e
Module type for ol.events.Event
2018-03-19 14:31:04 +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
3435ac575e
Better type definition
...
Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
2018-03-07 16:45:46 +01:00
Frederic Junod
57a7750924
Named exports from ol/structs/PriorityQueue
2018-02-20 16:13:16 +01:00
Andreas Hocevar
fff957a199
Allow setting the label cache size
2018-02-16 11:36:58 +01:00
Frederic Junod
31e30d28b7
Named exports from ol/obj
2018-01-16 14:14:17 +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
Frederic Junod
9349ba5403
Named export for ol/asserts
2017-12-18 10:33:41 +01:00
Frédéric Junod
4fab991cdf
Merge pull request #7619 from fredj/more_rename
...
More variable renaming
2017-12-17 09:57:49 +01:00
Frederic Junod
f96a94fbcd
Rename _ol_structs_PriorityQueue_ to PriorityQueue
2017-12-17 09:04:53 +01:00
Frederic Junod
e887b5012b
Rename _ol_structs_LRUCache_ to LRUCache
2017-12-17 09:00:48 +01:00
Frederic Junod
ed79ec9b2e
Rename _ol_structs_LinkedList_ to LinkedList
2017-12-17 08:58:15 +01:00
Frederic Junod
56163c5f37
Rename _ol_structs_RBush_ to RBush
2017-12-17 08:55:43 +01:00
Frederic Junod
22ed6a8a2f
Better import name for _ol_ext_* import
2017-12-16 09:07:13 +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
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
66d5d66129
Prune the label cache less aggressively
2017-11-26 23:30:58 +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
Tim Schaub
177156c293
Method for peeking at the newest cache entry key
2017-10-08 08:43:53 -06:00
Tim Schaub
10af59bfce
Allow items to be removed from the cache
2017-10-08 08:42:10 -06:00