diff --git a/config/jsdoc/api/plugins/api.js b/config/jsdoc/api/plugins/api.js index c384d86dad..53e0a8c174 100644 --- a/config/jsdoc/api/plugins/api.js +++ b/config/jsdoc/api/plugins/api.js @@ -73,9 +73,6 @@ function includeAugments(doclet) { }); } cls._hideConstructor = true; - if (!cls.undocumented) { - cls._documented = true; - } } } } @@ -182,13 +179,14 @@ exports.handlers = { doclet._hideConstructor = true; includeAugments(doclet); sortOtherMembers(doclet); - } else if (!doclet._hideConstructor - && !(doclet.longname in defaultExports && byLongname[doclet.longname].some(d => d.isEnum))) { + } else if (!doclet._hideConstructor) { // Remove all other undocumented symbols doclet.undocumented = true; } - if (doclet._documented) { - delete doclet.undocumented; + if (doclet.memberof && byLongname[doclet.memberof] && + byLongname[doclet.memberof][0].isEnum && + !byLongname[doclet.memberof][0].properties.some(p => p.stability)) { + byLongname[doclet.memberof][0].undocumented = true; } } }, diff --git a/config/jsdoc/api/template/tmpl/method.tmpl b/config/jsdoc/api/template/tmpl/method.tmpl index a5ddc77f5d..9ff68aa638 100644 --- a/config/jsdoc/api/template/tmpl/method.tmpl +++ b/config/jsdoc/api/template/tmpl/method.tmpl @@ -64,7 +64,7 @@ var self = this;
-
- ()
-
+
+
+ ()
-
diff --git a/src/ol/style/IconAnchorUnits.js b/src/ol/style/IconAnchorUnits.js
index eaa549d3ce..af81e71ff2 100644
--- a/src/ol/style/IconAnchorUnits.js
+++ b/src/ol/style/IconAnchorUnits.js
@@ -7,6 +7,14 @@
* @enum {string}
*/
export default {
+ /**
+ * Anchor is a fraction
+ * @api
+ */
FRACTION: 'fraction',
+ /**
+ * Anchor is in pixels
+ * @api
+ */
PIXELS: 'pixels'
};
diff --git a/src/ol/style/IconOrigin.js b/src/ol/style/IconOrigin.js
index d1bad0bdf7..7ef62e96c8 100644
--- a/src/ol/style/IconOrigin.js
+++ b/src/ol/style/IconOrigin.js
@@ -7,8 +7,24 @@
* @enum {string}
*/
export default {
+ /**
+ * Origin is at bottom left
+ * @api
+ */
BOTTOM_LEFT: 'bottom-left',
+ /**
+ * Origin is at bottom right
+ * @api
+ */
BOTTOM_RIGHT: 'bottom-right',
+ /**
+ * Origin is at top left
+ * @api
+ */
TOP_LEFT: 'top-left',
+ /**
+ * Origin is at top right
+ * @api
+ */
TOP_RIGHT: 'top-right'
};