Comparing version 1.0.0 to 1.0.1
@@ -29,3 +29,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
import MathArray from './math-array'; | ||
import Vector from './vector'; | ||
import { checkNumber } from './common'; | ||
@@ -52,4 +52,4 @@ | ||
var Vector2 = function (_MathArray) { | ||
_inherits(Vector2, _MathArray); | ||
var Vector2 = function (_Vector) { | ||
_inherits(Vector2, _Vector); | ||
@@ -320,5 +320,5 @@ // Creates a new, empty vec2 | ||
return Vector2; | ||
}(MathArray); | ||
}(Vector); | ||
export default Vector2; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92ZWN0b3IyLmpzIl0sIm5hbWVzIjpbIk1hdGhBcnJheSIsImNoZWNrTnVtYmVyIiwidmVjMl9zZXQiLCJ2ZWMyX2FkZCIsInZlYzJfc3VidHJhY3QiLCJ2ZWMyX211bHRpcGx5IiwidmVjMl9kaXZpZGUiLCJ2ZWMyX3NjYWxlIiwidmVjMl9zY2FsZUFuZEFkZCIsInZlYzJfbmVnYXRlIiwidmVjMl9ub3JtYWxpemUiLCJ2ZWMyX2RvdCIsInZlYzJfY3Jvc3MiLCJ2ZWMyX2xlcnAiLCJ2YWxpZGF0ZVZlY3RvcjIiLCJ2IiwibGVuZ3RoIiwiTnVtYmVyIiwiaXNGaW5pdGUiLCJWZWN0b3IyIiwieCIsInkiLCJBcnJheSIsImlzQXJyYXkiLCJhcmd1bWVudHMiLCJjb3B5Iiwic2V0IiwiY2hlY2siLCJ2ZWN0b3JzIiwidmVjdG9yIiwic2NhbGUiLCJjb2V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G4gICAgdGhpcy5jaGVjaygpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG59XG4iXX0= |
@@ -29,3 +29,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
import MathArray from './math-array'; | ||
import Vector from './vector'; | ||
import { checkNumber } from './common'; | ||
@@ -54,4 +54,4 @@ | ||
var Vector3 = function (_MathArray) { | ||
_inherits(Vector3, _MathArray); | ||
var Vector3 = function (_Vector) { | ||
_inherits(Vector3, _Vector); | ||
@@ -330,5 +330,5 @@ // Creates a new vec3, either empty, or from an array or from values | ||
return Vector3; | ||
}(MathArray); | ||
}(Vector); | ||
export default Vector3; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92ZWN0b3IzLmpzIl0sIm5hbWVzIjpbIk1hdGhBcnJheSIsImNoZWNrTnVtYmVyIiwidmVjM19zZXQiLCJ2ZWMzX2FuZ2xlIiwidmVjM19hZGQiLCJ2ZWMzX3N1YnRyYWN0IiwidmVjM19tdWx0aXBseSIsInZlYzNfZGl2aWRlIiwidmVjM19zY2FsZSIsInZlYzNfc2NhbGVBbmRBZGQiLCJ2ZWMzX2Nyb3NzIiwidmVjM19yb3RhdGVYIiwidmVjM19yb3RhdGVZIiwidmVjM19yb3RhdGVaIiwiT1JJR0lOIiwidmFsaWRhdGVWZWN0b3IzIiwidiIsImxlbmd0aCIsIk51bWJlciIsImlzRmluaXRlIiwiVmVjdG9yMyIsIngiLCJ5IiwieiIsIkFycmF5IiwiaXNBcnJheSIsImFyZ3VtZW50cyIsImNvcHkiLCJzZXQ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XG5cbiAgcm90YXRlWih7cmFkaWFucywgb3JpZ2luID0gT1JJR0lOfSkge1xuICAgIHZlYzNfcm90YXRlWih0aGlzLCB0aGlzLCBvcmlnaW4sIHJhZGlhbnMpO1xuICAgIHJldHVybiB0aGlzLmNoZWNrKCk7XG4gIH1cblxuICBvcGVyYXRpb24ob3BlcmF0aW9uLCAuLi5hcmdzKSB7XG4gICAgb3BlcmF0aW9uKHRoaXMsIHRoaXMsIC4uLmFyZ3MpO1xuICAgIHJldHVybiB0aGlzLmNoZWNrKCk7XG4gIH1cblxuICAvLyBUQkQgLSBkbyB3ZSByZWFsbHkgbmVlZCB0aGVzZT9cbiAgZGl2aWRlKC4uLnZlY3RvcnMpIHtcbiAgICBmb3IgKGNvbnN0IHZlY3RvciBvZiB2ZWN0b3JzKSB7XG4gICAgICB2ZWMzX2RpdmlkZSh0aGlzLCB0aGlzLCB2ZWN0b3IpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5jaGVjaygpO1xuICB9XG5cbiAgc2NhbGVBbmRBZGQodmVjdG9yLCBzY2FsZSkge1xuICAgIHZlYzNfc2NhbGVBbmRBZGQodGhpcywgdGhpcywgdmVjdG9yLCBzY2FsZSk7XG4gICAgcmV0dXJuIHRoaXMuY2hlY2soKTtcbiAgfVxufVxuIl19 |
@@ -29,3 +29,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
import MathArray from './math-array'; | ||
import Vector from './vector'; | ||
import { checkNumber } from './common'; | ||
@@ -54,4 +54,4 @@ | ||
var Vector4 = function (_MathArray) { | ||
_inherits(Vector4, _MathArray); | ||
var Vector4 = function (_Vector) { | ||
_inherits(Vector4, _Vector); | ||
@@ -398,5 +398,5 @@ // Creates a new, empty vec4 | ||
return Vector4; | ||
}(MathArray); | ||
}(Vector); | ||
export default Vector4; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92ZWN0b3I0LmpzIl0sIm5hbWVzIjpbIk1hdGhBcnJheSIsImNoZWNrTnVtYmVyIiwidmVjNF9zZXQiLCJ2ZWM0X2Rpc3RhbmNlIiwidmVjNF9hZGQiLCJ2ZWM0X3N1YnRyYWN0IiwidmVjNF9tdWx0aXBseSIsInZlYzRfZGl2aWRlIiwidmVjNF9zY2FsZSIsInZlYzRfc2NhbGVBbmRBZGQiLCJ2ZWM0X25lZ2F0ZSIsInZlYzRfaW52ZXJzZSIsInZlYzRfbm9ybWFsaXplIiwidmVjNF9kb3QiLCJ2ZWM0X2xlcnAiLCJ2YWxpZGF0ZVZlY3RvcjQiLCJ2IiwibGVuZ3RoIiwiTnVtYmVyIiwiaXNGaW5pdGUiLCJWZWN0b3I0IiwieCIsInkiLCJ6IiwidyIsIkFycmF5IiwiaXNBcnJheSIsImFyZ3VtZW50cyIsImNvcHkiLCJzZXQiLCJjaGVjayIsInZlY3RvciIsInZlY3RvcnMiLCJzY2FsZSIsImNvZWZmIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUEsT0FBT0EsU0FBUCxNQUFzQixjQUF0QjtBQUNBLFNBQVFDLFdBQVIsUUFBMEIsVUFBMUI7O0FBRUE7QUFDQTtBQUNBLE9BQU9DLFFBQVAsTUFBcUIsYUFBckI7QUFDQSxPQUFPQyxhQUFQLE1BQTBCLGtCQUExQjtBQUN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blxuICByb3RhdGVZKG9yaWdpbiwgYW5nbGUpIHtcbiAgICB2ZWM0X3JvdGF0ZVkodGhpcywgdGhpcywgb3JpZ2luLCBhbmdsZSk7XG4gICAgdGhpcy5jaGVjaygpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG5cbiAgcm90YXRlWihvcmlnaW4sIGFuZ2xlKSB7XG4gICAgdmVjNF9yb3RhdGVaKHRoaXMsIHRoaXMsIG9yaWdpbiwgYW5nbGUpO1xuICAgIHRoaXMuY2hlY2soKTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuICAqL1xufVxuIl19 |
@@ -11,5 +11,5 @@ 'use strict'; | ||
var _mathArray = require('./math-array'); | ||
var _vector = require('./vector'); | ||
var _mathArray2 = _interopRequireDefault(_mathArray); | ||
var _vector2 = _interopRequireDefault(_vector); | ||
@@ -100,4 +100,4 @@ var _common = require('./common'); | ||
var Vector2 = function (_MathArray) { | ||
_inherits(Vector2, _MathArray); | ||
var Vector2 = function (_Vector) { | ||
_inherits(Vector2, _Vector); | ||
@@ -368,5 +368,5 @@ // Creates a new, empty vec2 | ||
return Vector2; | ||
}(_mathArray2.default); | ||
}(_vector2.default); | ||
exports.default = Vector2; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92ZWN0b3IyLmpzIl0sIm5hbWVzIjpbInZhbGlkYXRlVmVjdG9yMiIsInYiLCJsZW5ndGgiLCJOdW1iZXIiLCJpc0Zpbml0ZSIsIlZlY3RvcjIiLCJ4IiwieSIsIkFycmF5IiwiaXNBcnJheSIsImFyZ3VtZW50cyIsImNvcHkiLCJzZXQiLCJjaGVjayIsInZlY3RvcnMiLCJ2ZWN0b3IiLCJzY2FsZSIsImNvZWZmIiwiTWF0aCIsImF0YW4yIiwib3BlcmF0aW9uIiwiYXJncyIsInZhbHVlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7OztRQXNDZ0JBLGUsR0FBQ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VjaygpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG5cbiAgbmVnYXRlKCkge1xuICAgIHZlYzJfbmVnYXRlKHRoaXMsIHRoaXMpO1xuICAgIHRoaXMuY2hlY2soKTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuXG4gIG5vcm1hbGl6ZSgpIHtcbiAgICB2ZWMyX25vcm1hbGl6ZSh0aGlzLCB0aGlzKTtcbiAgICB0aGlzLmNoZWNrKCk7XG4gICAgcmV0dXJuIHRoaXM7XG4gIH1cblxuICBkb3QodmVjdG9yKSB7XG4gICAgcmV0dXJuIHZlYzJfZG90KHRoaXMsIHZlY3Rvcik7XG4gIH1cblxuICBjcm9zcyh2ZWN0b3IpIHtcbiAgICB2ZWMyX2Nyb3NzKHRoaXMsIHRoaXMsIHZlY3Rvcik7XG4gICAgdGhpcy5jaGVjaygpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG5cbiAgbGVycCh2ZWN0b3IsIGNvZWZmKSB7XG4gICAgdmVjMl9sZXJwKHRoaXMsIHRoaXMsIHZlY3RvciwgY29lZmYpO1xuICAgIHRoaXMuY2hlY2soKTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuXG4gIGhvcml6b250YWxBbmdsZSgpIHtcbiAgICByZXR1cm4gTWF0aC5hdGFuMih0aGlzLnksIHRoaXMueCk7XG4gIH1cblxuICB2ZXJ0aWNhbEFuZ2xlKCkge1xuICAgIHJldHVybiBNYXRoLmF0YW4yKHRoaXMueCwgdGhpcy55KTtcbiAgfVxuXG4gIG9wZXJhdGlvbihvcGVyYXRpb24sIC4uLmFyZ3MpIHtcbiAgICBvcGVyYXRpb24odGhpcywgdGhpcywgLi4uYXJncyk7XG4gICAgdGhpcy5jaGVjaygpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG59XG4iXX0= |
@@ -11,5 +11,5 @@ 'use strict'; | ||
var _mathArray = require('./math-array'); | ||
var _vector = require('./vector'); | ||
var _mathArray2 = _interopRequireDefault(_mathArray); | ||
var _vector2 = _interopRequireDefault(_vector); | ||
@@ -102,4 +102,4 @@ var _common = require('./common'); | ||
var Vector3 = function (_MathArray) { | ||
_inherits(Vector3, _MathArray); | ||
var Vector3 = function (_Vector) { | ||
_inherits(Vector3, _Vector); | ||
@@ -378,5 +378,5 @@ // Creates a new vec3, either empty, or from an array or from values | ||
return Vector3; | ||
}(_mathArray2.default); | ||
}(_vector2.default); | ||
exports.default = Vector3; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92ZWN0b3IzLmpzIl0sIm5hbWVzIjpbInZhbGlkYXRlVmVjdG9yMyIsIk9SSUdJTiIsInYiLCJsZW5ndGgiLCJOdW1iZXIiLCJpc0Zpbml0ZSIsIlZlY3RvcjMiLCJ4IiwieSIsInoiLCJBcnJheSIsImlzQXJyYXkiLCJhcmd1bWVudHMiLCJjb3B5Iiwic2V0IiwiY2hlY2siLCJ2ZWN0b3IiLCJ2ZWN0b3JzIiwic2NhbGUiLCJyYWRpYW5zIiwib3JpZ2luIiwib3BlcmF0aW9uIiwiYXJncyIsInZhbHVlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7OztRQXdDZ0JBLGUsR0FBQUEsZTs7QUFwQmhCOzs7O0FBQ0E7O0FBSUE7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7Ozs7OytlQXBDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFLQTtBQUNBOzs7QUFjQSxJQUFNQyxTQUFTLENBQUMsQ0FBRCxFQUFJLENBQUosRUFBTyxDQU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b3IsIHNjYWxlKSB7XG4gICAgdmVjM19zY2FsZUFuZEFkZCh0aGlzLCB0aGlzLCB2ZWN0b3IsIHNjYWxlKTtcbiAgICByZXR1cm4gdGhpcy5jaGVjaygpO1xuICB9XG59XG4iXX0= |
@@ -11,5 +11,5 @@ 'use strict'; | ||
var _mathArray = require('./math-array'); | ||
var _vector = require('./vector'); | ||
var _mathArray2 = _interopRequireDefault(_mathArray); | ||
var _vector2 = _interopRequireDefault(_vector); | ||
@@ -106,4 +106,4 @@ var _common = require('./common'); | ||
var Vector4 = function (_MathArray) { | ||
_inherits(Vector4, _MathArray); | ||
var Vector4 = function (_Vector) { | ||
_inherits(Vector4, _Vector); | ||
@@ -450,5 +450,5 @@ // Creates a new, empty vec4 | ||
return Vector4; | ||
}(_mathArray2.default); | ||
}(_vector2.default); | ||
exports.default = Vector4; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92ZWN0b3I0LmpzIl0sIm5hbWVzIjpbInZhbGlkYXRlVmVjdG9yNCIsInYiLCJsZW5ndGgiLCJOdW1iZXIiLCJpc0Zpbml0ZSIsIlZlY3RvcjQiLCJ4IiwieSIsInoiLCJ3IiwiQXJyYXkiLCJpc0FycmF5IiwiYXJndW1lbnRzIiwiY29weSIsInNldCIsImNoZWNrIiwidmVjdG9yIiwidmVjdG9ycyIsInNjYWxlIiwiY29lZmYiLCJ2YWx1ZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7UUF3Q2dCQSxlLEdBQUFBLGU7O0FBcEJoQjs7OztBQUNBOztBQUlBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUVBOzs7Ozs7Ozs7OytlQXRDQTtBQUNBO0FBQ0E7QUFDQTtBQUNB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XG4gICAgcmV0dXJuIHRoaXM7XG4gIH1cblxuICByb3RhdGVaKG9yaWdpbiwgYW5nbGUpIHtcbiAgICB2ZWM0X3JvdGF0ZVoodGhpcywgdGhpcywgb3JpZ2luLCBhbmdsZSk7XG4gICAgdGhpcy5jaGVjaygpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG4gICovXG59XG4iXX0= |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "webgl", |
@@ -21,3 +21,3 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
import MathArray from './math-array'; | ||
import Vector from './vector'; | ||
import {checkNumber} from './common'; | ||
@@ -45,3 +45,3 @@ | ||
export default class Vector2 extends MathArray { | ||
export default class Vector2 extends Vector { | ||
// Creates a new, empty vec2 | ||
@@ -48,0 +48,0 @@ constructor(x = 0, y = 0) { |
@@ -21,3 +21,3 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
import MathArray from './math-array'; | ||
import Vector from './vector'; | ||
import {checkNumber} from './common'; | ||
@@ -47,3 +47,3 @@ | ||
export default class Vector3 extends MathArray { | ||
export default class Vector3 extends Vector { | ||
// Creates a new vec3, either empty, or from an array or from values | ||
@@ -50,0 +50,0 @@ constructor(x = 0, y = 0, z = 0) { |
@@ -21,3 +21,3 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
import MathArray from './math-array'; | ||
import Vector from './vector'; | ||
import {checkNumber} from './common'; | ||
@@ -48,3 +48,3 @@ | ||
export default class Vector4 extends MathArray { | ||
export default class Vector4 extends Vector { | ||
// Creates a new, empty vec4 | ||
@@ -51,0 +51,0 @@ constructor(x = 0, y = 0, z = 0, w = 0) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
722329