Maximilian Krög
187a216379
Do not draw empty text styles
...
This fixes a rendering/flicker issue when an empty text style is decluttered
together with an image style.
2020-10-05 12:20:04 +02:00
Maximilian Krög
fc67d8302b
Add charset to the examples html below the map
2020-10-03 21:31:38 +02:00
Maximilian Krög
65fc3ca2ca
Improved performance when removing feature with only one Select
2020-09-28 01:00:07 +02:00
Maximilian Krög
f63d0741b9
Add rendering test for multipoint with icon and text
2020-09-27 21:13:27 +02:00
Maximilian Krög
0996b37fe7
Fix end world calculation if projection is not symmetric
2020-09-17 00:12:15 +02:00
Maximilian Krög
2a81a7a236
Add rendering test for multi world
2020-09-17 00:12:15 +02:00
Maximilian Krög
85499d7daf
Only draw visible worlds
2020-09-14 23:41:04 +02:00
Maximilian Krög
66ca8fbc13
Fix error when text placement is 'line' for point geometry
2020-09-12 21:30:28 +02:00
Maximilian Krög
fd28d5bb3d
Simplify method signature for appendFlatPointCoordinates
2020-09-12 20:54:53 +02:00
Maximilian Krög
9ca9e73374
Declare variable when used
2020-09-12 20:54:53 +02:00
Maximilian Krög
df81f53eb5
Some simplifications
2020-09-12 20:54:53 +02:00
Maximilian Krög
3e4e21dc8d
Only check if point is in extent for MultiPoint and TextLabels
2020-09-12 18:23:24 +02:00
Maximilian Krög
fb62e7928e
Rename method used for lines.
2020-09-11 23:53:59 +02: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
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
Maximilian Krög
d2d1022359
Link labels to input elements
2020-08-09 20:49:07 +02:00
Maximilian Krög
37e5529b22
Update some example styles / formatting
2020-08-09 20:49:07 +02:00
Maximilian Krög
5e30b15860
Fix link to workshop / download
2020-08-04 21:47:58 +02:00
Maximilian Krög
cd069e30fb
Show the popup over in front of the other overlays
2020-08-01 00:34:22 +02:00
Maximilian Krög
8645dbc333
Use https for mapbox tiles
2020-07-30 22:28:48 +02:00
Maximilian Krög
85e4a62553
Fix the popup in the geographic example
...
Set the container to prevent the popup from moving the element to the body.
Don't sanitze the html, as table is not in the list of allowed elements.
2020-07-28 20:21:12 +02:00
Maximilian Krög
edf5125149
Fix kml-earthquakes tooltip
2020-07-27 23:22:53 +02:00
Maximilian Krög
3be9435a70
Remove unused codepen resources, duplicate bootstrap / jquery js
...
Use push instead of setting by index, gets rid of some empty lines generated by sparse
resource array
2020-07-27 23:22:50 +02:00
Maximilian Krög
a0e487fcbd
Update jquery version to 3.5.1 for all examples
2020-07-27 21:13:00 +02:00
Maximilian Krög
594ba4a0ab
Use bootstrap 4.5.0 in all examples
2020-07-27 20:15:55 +02:00
Maximilian Krög
4deb3a2dfc
Do not load resources multiple time for codepen
2020-07-26 19:31:59 +02:00
Maximilian Krög
e51643dfca
Show correct link for codepen button
2020-07-26 19:31:59 +02:00
Maximilian Krög
e39e3ea152
Update prism js version
...
Use latest version of prism, add json formatter, copy to clipboard plugin,
and line-numbers.
Now the clipboard js is automatically loaded by prism it it not included
and the buttons are automatically initialized. Though I added some css to
match the previous style.
2020-07-26 19:31:59 +02:00
Maximilian Krög
e723061f9b
Add empty alt tag to logo
2020-07-26 19:31:57 +02:00
Maximilian Krög
f8edc928ed
The charset meta tag should be withing the first 1024 bytes
2020-07-26 19:27:11 +02:00
Maximilian Krög
8b733c2eba
Cleanup experimental notice
...
With bootstrap js always included there is no need to add own js to dismiss it.
Only generate the notice for experimental pages, no need to have js for that.
2020-07-26 19:27:11 +02:00
Maximilian Krög
4f76334c92
Script tag not allowed out side body / head
2020-07-26 19:27:11 +02:00
Maximilian Krög
281f7d7a8f
Remove unused ol.css from the example index.html
2020-07-26 19:27:09 +02:00
Maximilian Krög
e5983d262a
Add missing comma between tags / use same case as in other examples
2020-07-26 19:25:59 +02:00
Maximilian Krög
9844483364
Remove tags / duplicate url from exported info script
...
The tags are not used currently.
Adding the query string to the urls doesn't make sense as far as I understand
it.
2020-07-26 19:25:56 +02:00
Maximilian Krög
9093478016
Add modal to tag count with direct links to other examples
2020-07-25 20:40:20 +02:00
Maximilian Krög
50404ca409
Add number of occurence to tags
...
It can be a bit frustrating to click on a tag only to realise it was the
only example with that tag.
2020-07-25 14:00:53 +02:00
Maximilian Krög
217f648608
Fix quotes in tags yaml
2020-07-17 21:52:35 +02:00
Maximilian Krög
557563f331
Update scoring / indexing code
...
Add dict / word as parameters to updateScore function so it
does not need to be created in each loop, and shorten it a bit.
2020-07-17 21:52:35 +02:00
Maximilian Krög
b6404fb766
Remove unnecessary space at end of bing key
2020-07-17 21:52:35 +02:00
Maximilian Krög
856830b834
No empty string words / allow 1 character search
...
If a space character is at either end of the input string splitting it
procuces an empty string that matches everything.
Allow single character words as there are is a single character tag: `x`
2020-07-17 21:52:34 +02:00
Maximilian Krög
b41a43cb7f
Simplify sorting of the examples by precalculating the score / words
2020-07-17 21:52:34 +02:00
Maximilian Krög
687795ba24
Skip listing all examples if query param is set.
...
Also use the `input` event instead of `keyup` and addEventlistener instead
of setting the onload / onchange properties.
And handle space character encoded as `+` in query string correctly.
2020-07-17 21:52:34 +02:00
Maximilian Krög
84463c3030
Make example builds repeatable
2020-07-17 21:52:27 +02:00
Maximilian Krög
292ff812fe
Split searching and listing
2020-07-17 21:18:53 +02:00
Maximilian Krög
dc05cacefa
Prettier code
...
This also fixes two undeclared variables and the regex is only created once per word
2020-07-17 21:18:53 +02:00
Maximilian Krög
681fc155a7
Move js code into separate file to benefit from code analysis
2020-07-17 21:18:47 +02:00
MoonE and Andreas Hocevar
353de14624
Update config/jsdoc/api/template/tmpl/navigation.tmpl
...
Co-authored-by: Andreas Hocevar <andreas.hocevar@gmail.com >
2020-07-17 16:17:07 +02:00
Maximilian Krög
434ac3141f
Allow line breaks before slashes in apidoc navigation
2020-07-16 21:51:29 +02:00
Maximilian Krög
b6b17ea202
Add MapBrowserPointerEvent to apidoc
2020-05-09 16:23:11 +02:00
Maximilian Krög
b07f96e558
Remove link for fullscreen event from navigation
2020-04-10 19:07:25 +02:00
Maximilian Krög
a7a21aab08
Fix toggle state when there are no hidden members
2020-04-05 15:23:41 +02:00
Maximilian Krög
1020c384bb
Fix two missing apidoc links
...
Add IconAnchorUnits and IconOrigin to the api.
2020-03-27 12:33:54 +01: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
Maximilian Krög
f942c482d8
Svg icon needs imgSize to display in ie11
2020-03-21 00:15:49 +01:00
Maximilian Krög
873cccc4f3
Add default exported enums to apidoc
2020-03-12 22:29:46 +01:00
Maximilian Krög
f2477622c3
Remove redundant check if doclet kind is typedef
2020-03-12 22:29:34 +01:00
Maximilian Krög
058ca59233
Also correctly detect default exports without an identifier
2020-03-12 21:36:19 +01:00
Maximilian Krög
1d7d7a7eef
Sort events / observables in all cases
...
Right now this only changes the order of events of the UrlTile class.
2020-03-01 00:25:11 +01:00
Maximilian Krög
d28be3c160
Fix building apidoc on windows
2020-02-28 21:44:06 +01:00
Maximilian Krög
e484eca1a1
Some more cleanup
...
No need to sort beforehand and therefore sorting can be done at last too.
Also forEach is just fine, no need for underscore.
This changes the navigation default order for modules to be after classes
when the name is the same.
2020-02-27 23:47:22 +01:00
Maximilian Krög
bc8499472c
Current item may be undefined
...
Worked fine before, but better safe than sorry.
2020-02-27 22:58:07 +01:00
Maximilian Krög
47ed2963c4
Default exported classes have same prettyname as modules
2020-02-27 22:57:55 +01:00
Maximilian Krög
c2505f938e
Remove measuring code
2020-02-22 14:30:44 +01:00
Maximilian Krög
6b9a35b7b9
Always sort top level matches before member matches
2020-02-22 14:30:25 +01:00
Maximilian Krög
df8c0f3e6f
Avoid deprecated jquery :eq selector
2020-02-22 01:07:43 +01:00
Maximilian Krög
bf2a7bd21a
Allow toggel on whole title, add toggle transition
2020-02-22 01:07:41 +01:00
Maximilian Krög
ee8ec6f03a
Shorter css paths in navigation
2020-02-21 22:58:05 +01:00
Maximilian Krög
b46b250d75
On toggle when searching show unfiltered instead of hiding all
2020-02-21 22:58:05 +01:00
Maximilian Krög
2dec296aae
Use css to show / hide items; track matched items
...
... to improve search speed.
Instead of marking all items as hidden, and then marking the matched
ones again, this keeps track of all matched items and only
removes those that no longer match and adds those that previously did
not match.
2020-02-21 22:57:53 +01:00
Maximilian Krög
646ecfd405
Weight function prefer classes over modules
2020-02-21 22:56:54 +01:00
Maximilian Krög
99d9a9ff86
Use strict mode
2020-02-21 22:56:54 +01:00
Maximilian Krög
15beb1f2c6
Put more weight on the base name
2020-02-21 22:56:53 +01:00
Maximilian Krög
b613e8e77f
Fix regex dot escape
2020-02-21 22:56:53 +01:00
Maximilian Krög
ccafb4b91d
Improved weight function.
...
++++ Full match from start to end
+++ Full match between word boundaries
++ Begin matches at word boundary, multiple matches are better
+ Matches somewhere
Classes with (multiple) members matching at the beginning are
weighted higher.
2020-02-21 22:56:51 +01:00
Maximilian Krög
1b4ed08bc5
Indent line-wrapped class names
2020-02-21 22:55:32 +01:00
Maximilian Krög
cc561dab8e
Allow word wrap before '.' and '~' in class names
2020-02-21 22:55:32 +01:00
Maximilian Krög
8b857eed26
Change prettyname of classes
...
Now also includes the class name if it is different than its module name.
`ol/source/Vector` -> `ol/source/Vector~VectorSource`.
2020-02-21 22:55:32 +01:00
Maximilian Krög
7640bcd163
Only match the displayed name of items when searching
...
Currently the search term is matched against the longname of members.
Because of this most members are matched when searching for a
class / module and also searching for 'mod' matches everything as
all longnames start with 'module:'
2020-02-21 22:55:32 +01:00
Maximilian Krög
d3b9b25429
Search if the search input is not empty after page loads
...
Firefox remembers input on the same page if a normal reload is performed.
In this case the results for the search term should be shown automatically.
2020-02-21 22:55:32 +01:00
Maximilian Krög
f7871d6103
Store search data in lowercase and compare in lowercase
...
This way we can do the search case-sensitive after only converting
the search term to lowercase.
2020-02-21 22:55:32 +01:00
Maximilian Krög
b9455bfad9
Remove unnecessary / duplicate code.
2020-02-21 22:55:31 +01:00
Maximilian Krög
2b8582fcad
Catch errors when search term is an invalid regular expression
...
On error search escape special characters, with only '.' matching
any characters.
2020-02-21 22:50:57 +01:00
Maximilian Krög
d56513b722
Add code to measure search function speed
2020-02-21 22:50:57 +01:00
Maximilian Krög
99ecce2a87
Provide the searchTerm as argument to doSearch function
2020-02-21 22:50:57 +01:00
Maximilian Krög
b919074aa3
Skip searches when typing fast / slow cpu.
2020-02-21 22:50:57 +01:00
Maximilian Krög
6187118166
Hide member-lists, show current item when clearing input
2020-02-21 22:50:57 +01:00
Maximilian Krög
f5a996a64e
Highlight current anchor with css instead of js.
...
The `:target` selector is supported by all browsers.
2020-02-21 22:50:57 +01:00
Maximilian Krög
300cc282e4
Generate valid html for the apidoc navigation
...
Only `<li>` can be a direct descendant of `<ul>` tags.
2020-02-10 00:10:05 +01:00
Maximilian Krög
5d922fc53b
Cleanup navigation.tmpl and the generated html
...
- Add a function that is used to generate all four types of member lists.
- Only use one line per list item.
- Don't generate empty `class=""` attributes when item is stable.
- Remove closing `</li>` tag, as is allowed by the html 5 standard.
Overall this reduces the filesize for the generated html pages by ~33%.
2020-02-10 00:09:33 +01:00
Maximilian Krög
0057144b52
Add apidoc-debug task to debug the apidoc generation process
2020-02-07 00:25:04 +01:00