List subclasses for each class
With this change, we no longer need to link to implementations or subclasses manually.
This commit is contained in:
@@ -43,6 +43,20 @@
|
|||||||
<?js } ?>
|
<?js } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?js if (doc.kind == 'class') {
|
||||||
|
var subclasses = self.find(function() {
|
||||||
|
return this.augments && this.augments.indexOf(doc.longname) > -1;
|
||||||
|
})
|
||||||
|
if (subclasses.length) {
|
||||||
|
?>
|
||||||
|
<h3 class="subsection-title">Subclasses</h3>
|
||||||
|
<ul><?js subclasses.forEach(function(s) { ?>
|
||||||
|
<li><?js= self.linkto(s.longname, s.longname) ?>
|
||||||
|
<?js= (s.interface ? '(Interface)' : '') ?>
|
||||||
|
</li>
|
||||||
|
<?js }); ?></ul>
|
||||||
|
<?js } } ?>
|
||||||
|
|
||||||
<?js if (doc.augments && doc.augments.length) { ?>
|
<?js if (doc.augments && doc.augments.length) { ?>
|
||||||
<h3 class="subsection-title">Extends</h3>
|
<h3 class="subsection-title">Extends</h3>
|
||||||
|
|
||||||
@@ -67,7 +81,7 @@
|
|||||||
<li><?js= self.linkto(r, r) ?></li>
|
<li><?js= self.linkto(r, r) ?></li>
|
||||||
<?js }); ?></ul>
|
<?js }); ?></ul>
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
|
|
||||||
<?js
|
<?js
|
||||||
var classes = self.find({kind: 'class', memberof: doc.longname});
|
var classes = self.find({kind: 'class', memberof: doc.longname});
|
||||||
if (doc.kind !== 'globalobj' && classes && classes.length) {
|
if (doc.kind !== 'globalobj' && classes && classes.length) {
|
||||||
|
|||||||
@@ -156,8 +156,7 @@ olx.MapOptions.prototype.keyboardEventTarget;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Layers. Array or {@link ol.Collection} items are instances of
|
* Layers.
|
||||||
* {@link ol.layer.Layer} or any of its {@link ol.layer} subclasses.
|
|
||||||
* @type {Array.<ol.layer.Base>|ol.Collection|undefined}
|
* @type {Array.<ol.layer.Base>|ol.Collection|undefined}
|
||||||
*/
|
*/
|
||||||
olx.MapOptions.prototype.layers;
|
olx.MapOptions.prototype.layers;
|
||||||
@@ -192,7 +191,7 @@ olx.MapOptions.prototype.target;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The map's view. Currently {@link ol.View2D} is available as view.
|
* The map's view.
|
||||||
* @type {ol.IView|undefined}
|
* @type {ol.IView|undefined}
|
||||||
*/
|
*/
|
||||||
olx.MapOptions.prototype.view;
|
olx.MapOptions.prototype.view;
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ goog.require('ol.interaction.PinchZoom');
|
|||||||
* setting the appropriate option to false in the constructor options,
|
* setting the appropriate option to false in the constructor options,
|
||||||
* but the order of the interactions is fixed. If you want to specify a
|
* but the order of the interactions is fixed. If you want to specify a
|
||||||
* different order for interactions, you will need to create your own
|
* different order for interactions, you will need to create your own
|
||||||
* {@link ol.interaction} instances and insert them into an
|
* {@link ol.interaction.Interaction} instances and insert them into a
|
||||||
* {@link ol.Collection} in the order you want before creating your ol.Map
|
* {@link ol.Collection} in the order you want before creating your
|
||||||
* instance.
|
* {@link ol.Map} instance.
|
||||||
* @param {olx.interaction.DefaultsOptions=} opt_options Defaults options.
|
* @param {olx.interaction.DefaultsOptions=} opt_options Defaults options.
|
||||||
* @return {ol.Collection} A collection of interactions to be used with
|
* @return {ol.Collection} A collection of interactions to be used with
|
||||||
* the ol.Map constructor's interactions option.
|
* the ol.Map constructor's interactions option.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ goog.require('ol.IView3D');
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for views. Currently {@link ol.View2D} is implemented.
|
* Interface for views.
|
||||||
* @interface
|
* @interface
|
||||||
*/
|
*/
|
||||||
ol.IView = function() {
|
ol.IView = function() {
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ ol.layer.LayerState;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for all layers. The most basic implementation is
|
* Base class for all layers.
|
||||||
* {@link ol.layer.Layer}. See {@link ol.layer} for all implementations.
|
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.Object}
|
* @extends {ol.Object}
|
||||||
* @param {olx.layer.BaseOptions} options Layer options.
|
* @param {olx.layer.BaseOptions} options Layer options.
|
||||||
|
|||||||
@@ -662,13 +662,12 @@ ol.Map.prototype.getOverlays = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the collection of
|
* Gets the collection of {@link ol.interaction.Interaction} instances
|
||||||
* {@link ol.interaction|ol.interaction.Interaction} instances
|
* associated with this map. Modifying this collection changes the interactions
|
||||||
* associated with this map. Modifying this collection
|
* associated with the map.
|
||||||
* changes the interactions associated with the map.
|
|
||||||
*
|
*
|
||||||
* Interactions are used for e.g. pan, zoom and rotate.
|
* Interactions are used for e.g. pan, zoom and rotate.
|
||||||
* @return {ol.Collection} Interactions.
|
* @return {ol.Collection} {@link ol.interaction.Interaction Interactions}.
|
||||||
* @todo api
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.Map.prototype.getInteractions = function() {
|
ol.Map.prototype.getInteractions = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user