New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shapediver/viewer.shared.services

Package Overview
Dependencies
Maintainers
4
Versions
229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shapediver/viewer.shared.services - npm Package Compare versions

Comparing version 1.14.10 to 1.14.11

100

dist/dom-event-engine/DomEventEngine.js

@@ -61,8 +61,8 @@ "use strict";

if (allowedListeners.mousewheel) {
this._canvas.addEventListener("mousewheel", this._onMouseWheel, { passive: false });
this._canvas.addEventListener("MozMousePixelScroll", this._onMouseWheel, { passive: false }); // firefox
this._canvas.addEventListener("mousewheel", this._onMouseWheel);
this._canvas.addEventListener("MozMousePixelScroll", this._onMouseWheel); // firefox
}
else {
this._canvas.removeEventListener("mousewheel", this._onMouseWheel, false);
this._canvas.removeEventListener("MozMousePixelScroll", this._onMouseWheel, false); // firefox
this._canvas.removeEventListener("mousewheel", this._onMouseWheel);
this._canvas.removeEventListener("MozMousePixelScroll", this._onMouseWheel); // firefox
}

@@ -73,6 +73,6 @@ this._allowListeners.mousewheel = allowedListeners.mousewheel;

if (allowedListeners.mousedown) {
this._canvas.addEventListener("mousedown", this._onMouseDown, { passive: false });
this._canvas.addEventListener("mousedown", this._onMouseDown);
}
else {
this._canvas.removeEventListener("mousedown", this._onMouseDown, false);
this._canvas.removeEventListener("mousedown", this._onMouseDown);
}

@@ -83,8 +83,8 @@ this._allowListeners.mousedown = allowedListeners.mousedown;

if (allowedListeners.mousemove) {
this._canvas.addEventListener("mousemove", this._onMouseMove, { passive: false });
window.addEventListener("mousemove", this._onKeyDownMousePositionHelper, { passive: false });
this._canvas.addEventListener("mousemove", this._onMouseMove);
window.addEventListener("mousemove", this._onKeyDownMousePositionHelper);
}
else {
this._canvas.removeEventListener("mousemove", this._onMouseMove, false);
window.removeEventListener("mousemove", this._onKeyDownMousePositionHelper, false);
this._canvas.removeEventListener("mousemove", this._onMouseMove);
window.removeEventListener("mousemove", this._onKeyDownMousePositionHelper);
}

@@ -95,6 +95,6 @@ this._allowListeners.mousemove = allowedListeners.mousemove;

if (allowedListeners.mouseup) {
this._canvas.addEventListener("mouseup", this._onMouseUp, { passive: false });
this._canvas.addEventListener("mouseup", this._onMouseUp);
}
else {
this._canvas.removeEventListener("mouseup", this._onMouseUp, false);
this._canvas.removeEventListener("mouseup", this._onMouseUp);
}

@@ -105,6 +105,6 @@ this._allowListeners.mouseup = allowedListeners.mouseup;

if (allowedListeners.mouseout) {
this._canvas.addEventListener("mouseout", this._onMouseUp, { passive: false });
this._canvas.addEventListener("mouseout", this._onMouseUp);
}
else {
this._canvas.removeEventListener("mouseout", this._onMouseUp, false);
this._canvas.removeEventListener("mouseout", this._onMouseUp);
}

@@ -115,6 +115,6 @@ this._allowListeners.mouseout = allowedListeners.mouseout;

if (allowedListeners.touchstart) {
window.addEventListener("touchstart", this._onTouchStart, { passive: false });
window.addEventListener("touchstart", this._onTouchStart);
}
else {
window.removeEventListener("touchstart", this._onTouchStart, false);
window.removeEventListener("touchstart", this._onTouchStart);
}

@@ -125,6 +125,6 @@ this._allowListeners.touchstart = allowedListeners.touchstart;

if (allowedListeners.touchmove) {
window.addEventListener("touchmove", this._onTouchMove, { passive: false });
window.addEventListener("touchmove", this._onTouchMove);
}
else {
window.removeEventListener("touchmove", this._onTouchMove, false);
window.removeEventListener("touchmove", this._onTouchMove);
}

@@ -135,6 +135,6 @@ this._allowListeners.touchmove = allowedListeners.touchmove;

if (allowedListeners.touchend) {
window.addEventListener("touchend", this._onTouchEnd, { passive: false });
window.addEventListener("touchend", this._onTouchEnd);
}
else {
window.removeEventListener("touchend", this._onTouchEnd, false);
window.removeEventListener("touchend", this._onTouchEnd);
}

@@ -145,6 +145,6 @@ this._allowListeners.touchend = allowedListeners.touchend;

if (allowedListeners.touchcancel) {
window.addEventListener("touchcancel", this._onTouchEnd, { passive: false });
window.addEventListener("touchcancel", this._onTouchEnd);
}
else {
window.removeEventListener("touchcancel", this._onTouchEnd, false);
window.removeEventListener("touchcancel", this._onTouchEnd);
}

@@ -155,6 +155,6 @@ this._allowListeners.touchcancel = allowedListeners.touchcancel;

if (allowedListeners.keydown) {
window.addEventListener("keydown", this._onKeyDown, { passive: false });
window.addEventListener("keydown", this._onKeyDown);
}
else {
window.removeEventListener("keydown", this._onKeyDown, false);
window.removeEventListener("keydown", this._onKeyDown);
}

@@ -165,6 +165,6 @@ this._allowListeners.keydown = allowedListeners.keydown;

if (allowedListeners.contextmenu) {
this._canvas.addEventListener("contextmenu", this._onContextMenu, { passive: false });
this._canvas.addEventListener("contextmenu", this._onContextMenu);
}
else {
this._canvas.removeEventListener("contextmenu", this._onContextMenu, false);
this._canvas.removeEventListener("contextmenu", this._onContextMenu);
}

@@ -191,16 +191,16 @@ this._allowListeners.contextmenu = allowedListeners.contextmenu;

addEventListeners() {
this._canvas.addEventListener("mousewheel", this._onMouseWheel, { passive: false });
this._canvas.addEventListener("MozMousePixelScroll", this._onMouseWheel, { passive: false }); // firefox
this._canvas.addEventListener("mousedown", this._onMouseDown, { passive: false });
this._canvas.addEventListener("mousemove", this._onMouseMove, { passive: false });
this._canvas.addEventListener("mouseup", this._onMouseUp, { passive: false });
this._canvas.addEventListener("mouseout", this._onMouseUp, { passive: false });
window.addEventListener("touchstart", this._onTouchStart, { passive: false });
window.addEventListener("touchmove", this._onTouchMove, { passive: false });
window.addEventListener("touchend", this._onTouchEnd, { passive: false });
window.addEventListener("touchcancel", this._onTouchEnd, { passive: false });
window.addEventListener("keydown", this._onKeyDown, { passive: false });
window.addEventListener("mousemove", this._onKeyDownMousePositionHelper, { passive: false });
this._canvas.addEventListener("mousewheel", this._onMouseWheel);
this._canvas.addEventListener("MozMousePixelScroll", this._onMouseWheel); // firefox
this._canvas.addEventListener("mousedown", this._onMouseDown);
this._canvas.addEventListener("mousemove", this._onMouseMove);
this._canvas.addEventListener("mouseup", this._onMouseUp);
this._canvas.addEventListener("mouseout", this._onMouseUp);
window.addEventListener("touchstart", this._onTouchStart);
window.addEventListener("touchmove", this._onTouchMove);
window.addEventListener("touchend", this._onTouchEnd);
window.addEventListener("touchcancel", this._onTouchEnd);
window.addEventListener("keydown", this._onKeyDown);
window.addEventListener("mousemove", this._onKeyDownMousePositionHelper);
// just prevent right click menu
this._canvas.addEventListener("contextmenu", this._onContextMenu, { passive: false });
this._canvas.addEventListener("contextmenu", this._onContextMenu);
}

@@ -255,13 +255,13 @@ onContextMenu(event) {

this._canvas.removeEventListener("MozMousePixelScroll", this._onMouseWheel); // firefox
this._canvas.removeEventListener("mousedown", this._onMouseDown, false);
this._canvas.removeEventListener("mousemove", this._onMouseMove, false);
this._canvas.removeEventListener("mouseup", this._onMouseUp, false);
this._canvas.removeEventListener("mouseout", this._onMouseUp, false);
window.removeEventListener("touchstart", this._onTouchStart, false);
window.removeEventListener("touchmove", this._onTouchMove, false);
window.removeEventListener("touchend", this._onTouchEnd, false);
window.removeEventListener("touchcancel", this._onTouchEnd, false);
window.removeEventListener("keydown", this._onKeyDown, false);
window.removeEventListener("mousemove", this._onKeyDownMousePositionHelper, false);
this._canvas.removeEventListener("contextmenu", this._onContextMenu, false);
this._canvas.removeEventListener("mousedown", this._onMouseDown);
this._canvas.removeEventListener("mousemove", this._onMouseMove);
this._canvas.removeEventListener("mouseup", this._onMouseUp);
this._canvas.removeEventListener("mouseout", this._onMouseUp);
window.removeEventListener("touchstart", this._onTouchStart);
window.removeEventListener("touchmove", this._onTouchMove);
window.removeEventListener("touchend", this._onTouchEnd);
window.removeEventListener("touchcancel", this._onTouchEnd);
window.removeEventListener("keydown", this._onKeyDown);
window.removeEventListener("mousemove", this._onKeyDownMousePositionHelper);
this._canvas.removeEventListener("contextmenu", this._onContextMenu);
}

@@ -268,0 +268,0 @@ }

{
"name": "@shapediver/viewer.shared.services",
"version": "1.14.10",
"version": "1.14.11",
"description": "",

@@ -44,3 +44,3 @@ "keywords": [],

"@shapediver/viewer.settings": "0.1.36",
"@shapediver/viewer.shared.build-data": "1.14.10",
"@shapediver/viewer.shared.build-data": "1.14.11",
"@types/dompurify": "^2.3.1",

@@ -56,3 +56,3 @@ "@types/ua-parser-js": "^0.7.36",

},
"gitHead": "d732a4769a8cbb20c3d3168dd503f961f45f3c8d"
"gitHead": "0da6d5bd7b7ab2cdf71c0dba874603b190a62493"
}

Sorry, the diff of this file is not supported yet

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