Commit Graph

342 Commits

Author SHA1 Message Date
Maximilian Krög 403b06b438 Use RegExp#test intead of String#match 2022-08-05 01:49:16 +02:00
Maximilian Krög 81c10fa609 Remove accessing legacy RegExp.$ instead of match return value 2022-08-05 01:49:16 +02:00
Maximilian Krög bb3c5bf144 Use String#startsWith instead of String#indexOf 2022-08-05 01:49:16 +02:00
Maximilian Krög 0b945f2321 Use includes instead of indexOf 2022-08-05 01:49:01 +02:00
Tim Schaub 973c411082 Merge pull request #13917 from tschaub/doc-style
Style updates for examples and API docs
2022-08-01 05:44:13 -06:00
Tim Schaub 1bd9201fed Style updates for examples and API docs 2022-07-31 19:07:46 -06:00
Tim Schaub 8cb423d1d1 Avoid uncaught type error 2022-07-31 14:01:31 -06:00
Tim Schaub 644337184c Remove Google Analytics and cookie consent 2022-07-31 13:47:03 -06:00
Maximilian Krög e56bda5848 Remove IE css fallback 2022-07-30 22:57:51 +02:00
Tim Schaub ab48290bd7 Accept an object literal for static layer styling 2022-07-30 09:48:10 -06:00
Tim Schaub c71d200cbf Publish untranspiled sources 2022-07-28 13:56:34 -06:00
Tim Schaub bbbca0ab78 Update ESLint config and plugins 2022-05-23 15:01:07 -06:00
Andreas Hocevar 07761e96a3 Fix legacy build 2022-03-12 19:52:17 +01:00
Andreas Hocevar 53239f7b1e Document difference between Vector and VectorImage layers 2022-02-12 12:57:19 +01:00
Maximilian Krög 14c5e9a7e8 Load api navigation dynamically to reduce needed disk space 2022-01-22 22:29:33 +01:00
Andreas Hocevar 67c183958a Use applyBackground instead of custom code 2021-12-06 00:07:16 +01:00
Andreas Hocevar b86f9df8bd Account for removed default export of marked 2021-11-08 16:35:23 +01:00
Andreas Hocevar 77ca0c2de5 Fix publicPath problem in legacy build 2021-10-08 11:11:00 +02:00
Andreas Hocevar ccb9ff6f37 Configure builds so they actually work 2021-09-10 18:15:08 +02:00
Andreas Hocevar fa8aa81840 Continue supporting IE11 in examples and legacy buld 2021-09-10 13:40:25 +02:00
Andreas Hocevar 5901751f43 Merge pull request #12624 from ahocevar/apidoc-undefined
Improve API docs for optional properties
2021-09-05 09:30:04 +02:00
Andreas Hocevar 814d70b1cc Add more tests 2021-08-18 17:54:48 +02:00
Andreas Hocevar 976f1b694a Fix legacy build to work with geotiff 2021-08-18 11:24:24 +02:00
Andreas Hocevar 000461993b Add undefined as type when optional and no default 2021-08-12 12:18:51 +02:00
Andreas Hocevar e9791cf4d3 Generate correct type definitions with null 2021-08-04 14:32:36 +02:00
Maximilian Krög 687b131714 Fix example and legacy build with nodejs 16.6 2021-08-01 01:13:26 +02:00
Simon Seyock 9344de5740 remove unneeded code 2021-06-17 18:54:29 +02:00
Simon Seyock aa99de4a6b parse comment for templates 2021-06-17 18:54:29 +02:00
Simon Seyock a5d0b61947 Allow options to be generic in jsdoc 2021-06-17 18:54:29 +02:00
Maximilian Krög 40f8e69675 Fix legacy build
The build process failed because webpack does not allow failed imports
when it is run as a module.
This detects modules with default exports and only generates import
statements for default exports where they are available.
2021-05-02 23:49:50 +02:00
Tim Schaub c301d2413b Modules all the way 2021-05-01 10:17:04 -06:00
Andreas Hocevar 024aef6b25 Fix @types/estree version and remove skipLibCheck: false from tsconfig 2021-04-18 19:28:12 +02:00
Andreas Hocevar 8119c85109 Prevent TypeScript Compiler from erroring out due to lib checks 2021-04-18 15:09:29 +02:00
Tim Schaub 71c18d4444 Merge pull request #12176 from bz2/mangle_private_members
Allow private class members to be mangled
2021-04-07 18:08:53 -06:00
Maximilian Krög 9d773c8f19 Build for ie11 again 2021-04-05 02:55:17 +02:00
Martin Packman 6ab44e9aea Allow private class members to be mangled
Openlayers classes use an underscore suffix convention to mark class
members as private. These are undocumented implementation details and
presumably unsafe for code outside the class to rely on.

Allowing javascript minimisation to change these names gives 5% bundle
size reduction to the library.
2021-04-03 17:57:11 +01:00
Maximilian Krög 0d5d346bcd Update links to external resources 2021-02-08 19:40:05 +01:00
Simon Seyock c15faa19fc enable check-types 2021-02-03 13:59:34 +01:00
Simon Seyock 808868ad1f Fixed some jsdoc issues. 2021-02-02 12:15:30 +01:00
Andreas Hocevar e20f5a450c Legacy build for legacy browsers 2020-12-29 22:10:49 +01:00
Andreas Hocevar f242b7d618 Update inline comments 2020-11-05 10:40:45 +01:00
Andreas Hocevar 68d6a6b84c Add all symbols to the legacy build 2020-11-04 19:56:24 +01:00
Maximilian Krög f9ffd75132 dd / dt tag must be inside dl tags 2020-08-23 16:15:50 +02:00
Maximilian Krög b33b2ce9a4 Don't generate empty nameContainer tag 2020-08-23 16:08:14 +02:00
Maximilian Krög efdfb169aa Equal margin for horizontal line 2020-08-23 16:08:14 +02:00
Maximilian Krög 0a136afe15 Navigate to first search result on enter 2020-08-23 16:08:14 +02:00
Maximilian Krög 411d5bfb03 Charset meta tag should be in the first 1024 bytes 2020-08-23 16:08:14 +02:00
Maximilian Krög 477c331a4c Create source code links during apidoc creation 2020-08-23 16:08:14 +02:00
Maximilian Krög d74da75561 Graceful fallback for internet explorer 11 2020-08-23 12:21:47 +02:00
Maximilian Krög d9bc466f43 Better scroll behaviour for apidocs 2020-08-23 11:18:19 +02:00