Socket
Socket
Sign inDemoInstall

geomath

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geomath - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

0

math.d.ts

@@ -0,0 +0,0 @@ import * as _geometry from "./math/geometry";

1

math.js

@@ -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");

7

math/matrix3.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc