Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed incorrect or missing jsdoc annotations #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion io/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ X.loader.prototype.failed = function(request, container, object) {
/**
* Supported data types by extension.
*
* @enum {Array}
* @const
* @type {Object.<string, Array>}
*/
X.loader.extensions = {
// support for the following extensions and the mapping to X.parsers as well
Expand Down
2 changes: 1 addition & 1 deletion io/parserLUT.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ X.parserLUT.prototype.parse = function(container, object, data, flag) {
}

// split each line
var lineFields = line.split(' ');
var lineFields = /** @type {Array} */ (line.split(' '));

// filter out multiple blanks
lineFields = lineFields.filter(function(v) {
Expand Down
2 changes: 1 addition & 1 deletion io/parserMRC.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ X.parserMRC = function() {
//
// class attributes

/*
/**
* @inheritDoc
* @const
*/
Expand Down
4 changes: 2 additions & 2 deletions io/parserNII.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ X.parserNII.prototype.parse = function(container, object, data, flag) {
_data = inflate.decompress();

// .. and use the underlying array buffer
_data = _data.buffer;
_data = /** @type {!ArrayBuffer} */ (_data.buffer);

// check endianness
if (!this.verifyNII(_data)) {
Expand All @@ -99,7 +99,7 @@ X.parserNII.prototype.parse = function(container, object, data, flag) {
}

// parse the byte stream
var MRI = this.parseStream(_data);
var MRI = this.parseStream(/** @type {!ArrayBuffer} */ (_data));

// grab the min, max intensities
var min = MRI.min;
Expand Down
2 changes: 1 addition & 1 deletion io/parserVTK.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ X.parserVTK.prototype.parse = function(container, object, data, flag) {
// This uses an optimized loop.
//

/*
/**
* Fast Duff's Device
*
* @author Miller Medeiros <http://millermedeiros.com>
Expand Down
2 changes: 1 addition & 1 deletion lib/zlib.js/gunzip.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Zlib.Gunzip.prototype.decompress = function() {
this.decodeMember();
}

return this.concatMember();
return /** @type {!(Array.<number>|Uint8Array)} */ (this.concatMember());
};

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/zlib.js/rawdeflate.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,11 +687,11 @@ Zlib.RawDeflate.prototype.lz77 = function(dataArray) {
var il;
/** @type {number} chained-hash-table key */
var matchKey;
/** @type {Object.<Array.<Array.<number>>>} chained-hash-table */
/** @type {Object.<Array.<number>>} chained-hash-table */
var table = {};
/** @const @type {number} */
var windowSize = Zlib.RawDeflate.WindowSize;
/** @type {Array.<Array.<number>>} match list */
/** @type {Array.<number>} match list */
var matchList;
/** @type {Zlib.RawDeflate.Lz77Match} longest match */
var longestMatch;
Expand Down
2 changes: 1 addition & 1 deletion visualization/camera3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ X.camera3D = function(width, height) {
/**
* The perspective matrix.
*
* @type {Array.<number>|Float32Array|Float64Array|null}
* @type {!Array.<number>|!Float32Array|!Float64Array}
* @protected
*/
this._perspective = X.matrix.makePerspective(X.matrix.identity(), this._fieldOfView, (width/height), 1, 10000);
Expand Down