Comparing version 1.0.0 to 1.0.1
@@ -0,0 +0,0 @@ import * as _geometry from "./math/geometry"; |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
var _geometry = require("./math/geometry"); | ||
@@ -13,0 +14,0 @@ var _matrix = require("./math/matrix"); |
@@ -0,0 +0,0 @@ export interface ArrayTypes { |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports.ArrayType = Array; | ||
@@ -13,0 +14,0 @@ exports.arrayTypes = { simple: Array }; |
@@ -0,0 +0,0 @@ export interface Point { |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
/** Calculate area for given set of points, if two points, calculate length */ | ||
@@ -13,0 +14,0 @@ function area(pts, signed) { |
@@ -0,0 +0,0 @@ import * as vector2 from "./vector2"; |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
var vector2 = require("./vector2"); | ||
@@ -13,0 +14,0 @@ var vector3 = require("./vector3"); |
@@ -0,0 +0,0 @@ import V2 = require("./vector2"); |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
var base = require("./base"); | ||
@@ -305,3 +306,3 @@ if (base.ArrayType === Array) { | ||
var tmp = makeScale(v), tmpPoint = transformPointAffine(tmp, pt); | ||
translateSelf([pt[0] - tmpPoint[0], pt[1] - tmpPoint[1], pt[2] - tmpPoint[2]], tmp); | ||
translateSelf([pt[0] - tmpPoint[0], pt[1] - tmpPoint[1]], tmp); | ||
mul(m, tmp, r); | ||
@@ -454,3 +455,3 @@ return r; | ||
var parentRect, rect, t, c, s, origin; | ||
while (x && x !== document.documentElement) { | ||
while (x && x !== docElem) { | ||
t = exports.clone(exports.I); | ||
@@ -467,3 +468,3 @@ parentRect = x.parentNode && x.parentNode.getBoundingClientRect ? x.parentNode.getBoundingClientRect() : null; | ||
origin = s.MozTransformOrigin || "0 0"; | ||
if (origin.indexOf("%") !== -1) { | ||
if (origin.indexOf("%") !== -1) { // Firefox gives 50% 50% when there is no transform!? and pixels (50px 30px) otherwise | ||
origin = "0 0"; | ||
@@ -470,0 +471,0 @@ } |
@@ -0,0 +0,0 @@ import V3 = require("./vector3"); |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
var base = require("./base"); | ||
@@ -168,3 +169,3 @@ var V3 = require("./vector3"); | ||
var det = m[0] * (a11) + m[1] * (a12) + m[2] * (a13); | ||
if (det === 0) { | ||
if (det === 0) { // no inverse | ||
throw new Error("matrix not invertible"); | ||
@@ -810,3 +811,3 @@ } | ||
origin = s.MozTransformOrigin || "0 0"; | ||
if (origin.indexOf("%") !== -1) { | ||
if (origin.indexOf("%") !== -1) { // Firefox gives 50% 50% when there is no transform!? and pixels (50px 30px) otherwise | ||
origin = "0 0"; | ||
@@ -813,0 +814,0 @@ } |
@@ -0,0 +0,0 @@ import M3 = require("./matrix3"); |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
var base = require("./base"); | ||
@@ -13,0 +14,0 @@ if (base.ArrayType === Array) { |
@@ -0,0 +0,0 @@ import M4 = require("./matrix4"); |
@@ -11,2 +11,3 @@ (function (factory) { | ||
"use strict"; | ||
exports.__esModule = true; | ||
var base = require("./base"); | ||
@@ -13,0 +14,0 @@ //#region Init Methods |
{ | ||
"name": "geomath", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "AMD Geometry and Matrix modules using reuse pattern for better performance", | ||
@@ -5,0 +5,0 @@ "author": "SPA Tools", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2137
0
88682