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
c0f058f5cf
Variable should be reset on each loop but wasn't
...
The ancestors variable is always set once the first augmented doclet is found.
The incompleteDoclet variable is also not reset between loops.
2020-02-07 00:08:14 +01:00
Maximilian Krög
2e4f989d7b
Store api members as object map instead of array.
2020-02-07 00:08:14 +01:00
Maximilian Krög
0c04293d5f
Generate navigation html only once for all pages.
...
This reduces the time for apidoc generation by ~30%.
2020-02-07 00:08:07 +01:00
Maximilian Krög
e2dc67546e
Only generate module apidoc pages when it contains api tags
2020-01-19 15:51:48 +01:00
Maximilian Krög
9cc7ef4b96
Use correct config for tags which must not have a value.
2020-01-18 20:15:10 +01:00
Maximilian Krög
3bac2e49d1
Remove build/apidoc before running jsdoc again
2020-01-11 17:40:56 +01:00
Maximilian Krög
9622a8ca93
Fix link in apidocs to ObjectEvent.
2019-12-27 23:35:19 +01:00
Maximilian Krög
33389969ce
Limit the ZoomSlider's range to the view's constrained resolution.
2019-12-20 23:13:41 +01:00
Maximilian Krög
d7eaacf923
Small performance improvement by saving the calculated logarithm.
2019-12-20 23:13:19 +01:00
Maximilian Krög
db49842f63
Display error message instead of 'style not valid yet...'
2019-10-03 17:06:39 +02:00
Maximilian Krög
8fe8302dc2
Remove duplicate type definition for style
2019-10-03 15:45:35 +02:00
Maximilian Krög
b1a9f765fc
Parse the style in the constructor.
...
This detects errors earlier and allows the caller to handle the thrown exception.
Remove assertion 65 as it should no longer be needed.
2019-10-03 14:36:48 +02:00
Maximilian Krög
d0cd1064ff
Also check predefined styles for validity.
2019-10-03 03:02:58 +02:00
Maximilian Krög
b4a996e760
Catch errors in style definition
...
Do not replace the layer if the style is invalid.
Thrown errors are caught and the layer will not be changed.
2019-10-03 01:59:42 +02:00
Maximilian Krög
dee114d4c4
Guard against JSON.parse errors.
...
Also show successful style parse status after a style error was corrected
but it is the same style as previously.
2019-10-03 01:59:42 +02:00
Maximilian Krög
db34a338d6
Reset status message when selecting from select element.
2019-10-03 01:59:21 +02:00
Maximilian Krög
0eac5007e8
Reserve the height for the style parse messages.
2019-10-03 01:59:00 +02:00
Maximilian Krög
c1921a6b16
Preselect the 'circles' style in the select input
...
The text in the editor element already is from the circles style..
2019-10-03 01:57:49 +02:00
Maximilian Krög
dc28590cff
Remove invalid option from style select
...
When this option was selected the text field contained 'undefined'
as it is not one of the predefined styles.
2019-10-03 01:48:45 +02:00
Maximilian Krög
200392785d
Squared tolerance does not change for each style.
2019-08-17 11:15:06 +02:00