Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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