Skip to content

Commit

Permalink
Add class block tag to Label.js so that it can be identified in t…
Browse files Browse the repository at this point in the history
…he LabelCollection by its type.
  • Loading branch information
bampakoa committed Jul 25, 2018
1 parent bacf265 commit 8c852b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions Source/Scene/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ define([
*
* @alias Label
* @internalConstructor
* @class
*
* @exception {DeveloperError} translucencyByDistance.far must be greater than translucencyByDistance.near
* @exception {DeveloperError} pixelOffsetScaleByDistance.far must be greater than pixelOffsetScaleByDistance.near
Expand Down
16 changes: 8 additions & 8 deletions Source/Scene/LabelCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ define([
* calling <code>update</code>.
*
* @exception {DeveloperError} This object was destroyed, i.e., destroy() was called.
* @memberOf {LabelCollection.prototype}
*
*
* @example
* // Example 1: Add a label, specifying all the default values.
Expand Down Expand Up @@ -660,7 +660,7 @@ define([
* {@link Label#show} instead of removing and re-adding the label.
*
* @exception {DeveloperError} This object was destroyed, i.e., destroy() was called.
* @memberOf {LabelCollection.prototype}
*
*
* @example
* var l = labels.add(...);
Expand Down Expand Up @@ -689,7 +689,7 @@ define([
* from a collection and then add new ones than to create a new collection entirely.
*
* @exception {DeveloperError} This object was destroyed, i.e., destroy() was called.
* @memberOf {LabelCollection.prototype}
*
*
* @example
* labels.add(...);
Expand All @@ -716,7 +716,7 @@ define([
* @returns {Boolean} true if this collection contains the label, false otherwise.
*
* @see LabelCollection#get
* @memberOf {LabelCollection.prototype}
*
*/
LabelCollection.prototype.contains = function(label) {
return defined(label) && label._labelCollection === this;
Expand All @@ -738,7 +738,7 @@ define([
* operation is performed.
*
* @exception {DeveloperError} This object was destroyed, i.e., destroy() was called.
* @memberOf {LabelCollection.prototype}
*
*
* @example
* // Toggle the show property of every label in the collection
Expand All @@ -762,7 +762,7 @@ define([

/**
* @private
* @memberOf {LabelCollection.prototype}
*
*/
LabelCollection.prototype.update = function(frameState) {
var billboardCollection = this._billboardCollection;
Expand Down Expand Up @@ -845,7 +845,7 @@ define([
* <code>isDestroyed</code> will result in a {@link DeveloperError} exception.
*
* @returns {Boolean} True if this object was destroyed; otherwise, false.
* @memberOf {LabelCollection.prototype}
*
* @see LabelCollection#destroy
*/
LabelCollection.prototype.isDestroyed = function() {
Expand All @@ -861,7 +861,7 @@ define([
* assign the return value (<code>undefined</code>) to the object as done in the example.
*
* @exception {DeveloperError} This object was destroyed, i.e., destroy() was called.
* @memberOf {LabelCollection.prototype}
*
*
* @example
* labels = labels && labels.destroy();
Expand Down

0 comments on commit 8c852b1

Please sign in to comment.