Socket
Socket
Sign inDemoInstall

geomath

Package Overview
Dependencies
Maintainers
0
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.1.0 to 1.1.1

10

es/math/matrix3.js

@@ -398,3 +398,3 @@ import * as base from "./base";

export function getTransformationMatrix(e) {
const s = getComputedStyle(e, null), t = s.transform || s.OTransform || s.WebkitTransform || s.msTransform || s.MozTransform || "none";
const s = e.ownerDocument.defaultView.getComputedStyle(e, null), t = s.transform || s.OTransform || s.WebkitTransform || s.msTransform || s.MozTransform || "none";
return t === "none" ? clone(I) : fromCssMatrix(t);

@@ -419,3 +419,3 @@ }

function M3_getAbsoluteTransformationMatrixBuggy(x) {
const transformationMatrix = clone(I), docElem = document.documentElement;
const transformationMatrix = clone(I), docElem = x.ownerDocument.documentElement, window = x.ownerDocument.defaultView;
let parentRect, rect, t, c, s, origin;

@@ -429,3 +429,3 @@ while (x && x !== docElem) {

}
s = getComputedStyle(x, null);
s = window.getComputedStyle(x, null);
c = (s.MozTransform || "none");

@@ -450,6 +450,6 @@ if (c !== "none") {

function M3_getAbsoluteTransformationMatrix(element) {
const transformationMatrix = clone(I), rect = element.getBoundingClientRect(), docElem = document.documentElement;
const transformationMatrix = clone(I), rect = element.getBoundingClientRect(), docElem = element.ownerDocument.documentElement, window = element.ownerDocument.defaultView;
let x = element, c;
while (x && x !== docElem) {
c = getComputedStyle(x, null);
c = window.getComputedStyle(x, null);
c = (c.transform || c.WebkitTransform || c.msTransform || c.MozTransform || c.OTransform || "none");

@@ -456,0 +456,0 @@ if (c !== "none") {

@@ -429,3 +429,3 @@ (function (factory) {

function getTransformationMatrix(e) {
var s = getComputedStyle(e, null), t = s.transform || s.OTransform || s.WebkitTransform || s.msTransform || s.MozTransform || "none";
var s = e.ownerDocument.defaultView.getComputedStyle(e, null), t = s.transform || s.OTransform || s.WebkitTransform || s.msTransform || s.MozTransform || "none";
return t === "none" ? exports.clone(exports.I) : fromCssMatrix(t);

@@ -452,3 +452,3 @@ }

function M3_getAbsoluteTransformationMatrixBuggy(x) {
var transformationMatrix = exports.clone(exports.I), docElem = document.documentElement;
var transformationMatrix = exports.clone(exports.I), docElem = x.ownerDocument.documentElement, window = x.ownerDocument.defaultView;
var parentRect, rect, t, c, s, origin;

@@ -462,3 +462,3 @@ while (x && x !== docElem) {

}
s = getComputedStyle(x, null);
s = window.getComputedStyle(x, null);
c = (s.MozTransform || "none");

@@ -483,6 +483,6 @@ if (c !== "none") {

function M3_getAbsoluteTransformationMatrix(element) {
var transformationMatrix = exports.clone(exports.I), rect = element.getBoundingClientRect(), docElem = document.documentElement;
var transformationMatrix = exports.clone(exports.I), rect = element.getBoundingClientRect(), docElem = element.ownerDocument.documentElement, window = element.ownerDocument.defaultView;
var x = element, c;
while (x && x !== docElem) {
c = getComputedStyle(x, null);
c = window.getComputedStyle(x, null);
c = (c.transform || c.WebkitTransform || c.msTransform || c.MozTransform || c.OTransform || "none");

@@ -489,0 +489,0 @@ if (c !== "none") {

{
"name": "geomath",
"version": "1.1.0",
"version": "1.1.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