Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maslick/radiaslider

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maslick/radiaslider - npm Package Compare versions

Comparing version 1.8.3 to 1.9.0

4

package.json
{
"name": "@maslick/radiaslider",
"version": "1.8.3",
"version": "1.9.0",
"description": "nice looking canvas-based radial and linear slider",

@@ -51,3 +51,3 @@ "repository": {

"cssnano": "^4.1.10",
"parcel": "^1.12.3"
"parcel": "^1.12.4"
},

@@ -54,0 +54,0 @@ "scripts": {

@@ -45,3 +45,3 @@ # =radiaSlider=

<script>
const slider = new Slider({ canvasId: "myCanvas", continuousMode: true, x0: 150, y0: 150 });
const slider = new Slider({ canvasId: "myCanvas", continuousMode: true, x0: 150, y0: 150, readOnly: false });
slider.addSlider({

@@ -48,0 +48,0 @@ id: 1,

@@ -29,11 +29,13 @@ (function () {

this.rotationEventListener = this._rotation.bind(this);
this.container.addEventListener('mousedown', this._handleMouseDown.bind(this), false);
this.the_body.addEventListener('mouseup', this._handleMouseUp.bind(this), false);
this.container.addEventListener('click', this._handleClick.bind(this), false);
this.readOnly = options.readOnly || false;
if (!this.readOnly) {
this.rotationEventListener = this._rotation.bind(this);
this.container.addEventListener('mousedown', this._handleMouseDown.bind(this), false);
this.the_body.addEventListener('mouseup', this._handleMouseUp.bind(this), false);
this.container.addEventListener('click', this._handleClick.bind(this), false);
this.container.addEventListener('touchstart', this._handleTouch.bind(this), false);
this.container.addEventListener('touchmove', this._handleMove.bind(this), false);
this.container.addEventListener('touchend', this._handleEnd.bind(this), false);
this.container.addEventListener('touchstart', this._handleTouch.bind(this), false);
this.container.addEventListener('touchmove', this._handleMove.bind(this), false);
this.container.addEventListener('touchend', this._handleEnd.bind(this), false);
}
}

@@ -40,0 +42,0 @@

@@ -22,11 +22,13 @@ (function () {

this.rotationEventListener = this._rotation.bind(this);
this.container.addEventListener('mousedown', this._handleMouseDown.bind(this), false);
this.the_body.addEventListener('mouseup', this._handleMouseUp.bind(this), false);
this.container.addEventListener('click', this._handleClick.bind(this), false);
this.readOnly = options.readOnly || false;
if (!this.readOnly) {
this.rotationEventListener = this._rotation.bind(this);
this.container.addEventListener('mousedown', this._handleMouseDown.bind(this), false);
this.the_body.addEventListener('mouseup', this._handleMouseUp.bind(this), false);
this.container.addEventListener('click', this._handleClick.bind(this), false);
this.container.addEventListener('touchstart', this._handleTouch.bind(this), false);
this.container.addEventListener('touchmove', this._handleMove.bind(this), false);
this.container.addEventListener('touchend', this._handleEnd.bind(this), false);
this.container.addEventListener('touchstart', this._handleTouch.bind(this), false);
this.container.addEventListener('touchmove', this._handleMove.bind(this), false);
this.container.addEventListener('touchend', this._handleEnd.bind(this), false);
}
}

@@ -33,0 +35,0 @@

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