Lint removal

This commit is contained in:
Tim Schaub
2018-07-16 17:57:57 -06:00
parent f78d0d4cfa
commit d0ab8dce38
63 changed files with 2945 additions and 2917 deletions

View File

@@ -19,35 +19,35 @@ const BufferUsage = {
* @struct
*/
class WebGLBuffer {
constructor(opt_arr, opt_usage) {
constructor(opt_arr, opt_usage) {
/**
/**
* @private
* @type {Array.<number>}
*/
this.arr_ = opt_arr !== undefined ? opt_arr : [];
this.arr_ = opt_arr !== undefined ? opt_arr : [];
/**
/**
* @private
* @type {number}
*/
this.usage_ = opt_usage !== undefined ? opt_usage : BufferUsage.STATIC_DRAW;
this.usage_ = opt_usage !== undefined ? opt_usage : BufferUsage.STATIC_DRAW;
}
}
/**
/**
* @return {Array.<number>} Array.
*/
getArray() {
return this.arr_;
}
getArray() {
return this.arr_;
}
/**
/**
* @return {number} Usage.
*/
getUsage() {
return this.usage_;
}
getUsage() {
return this.usage_;
}
}
export default WebGLBuffer;

View File

@@ -12,16 +12,16 @@ import WebGLShader from '../webgl/Shader.js';
* @struct
*/
class WebGLFragment {
constructor(source) {
WebGLShader.call(this, source);
}
constructor(source) {
WebGLShader.call(this, source);
}
/**
/**
* @inheritDoc
*/
getType() {
return FRAGMENT_SHADER;
}
getType() {
return FRAGMENT_SHADER;
}
}
inherits(WebGLFragment, WebGLShader);

View File

@@ -10,28 +10,28 @@ import {FALSE} from '../functions.js';
* @struct
*/
class WebGLShader {
constructor(source) {
constructor(source) {
/**
/**
* @private
* @type {string}
*/
this.source_ = source;
this.source_ = source;
}
}
/**
/**
* @abstract
* @return {number} Type.
*/
getType() {}
getType() {}
/**
/**
* @return {string} Source.
*/
getSource() {
return this.source_;
}
getSource() {
return this.source_;
}
}

View File

@@ -12,16 +12,16 @@ import WebGLShader from '../webgl/Shader.js';
* @struct
*/
class WebGLVertex {
constructor(source) {
WebGLShader.call(this, source);
}
constructor(source) {
WebGLShader.call(this, source);
}
/**
/**
* @inheritDoc
*/
getType() {
return VERTEX_SHADER;
}
getType() {
return VERTEX_SHADER;
}
}
inherits(WebGLVertex, WebGLShader);