{"_id":"drag-tracker","_rev":"9-fea0fb991e5cfe4642b95b95b52a5709","name":"drag-tracker","dist-tags":{"latest":"1.0.0"},"versions":{"0.4.0":{"name":"drag-tracker","version":"0.4.0","description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","main":"dist/drag-tracker.js","module":"src/drag-tracker.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"license":"MIT","bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"f6552b68a63f0dee248ef92dbebac19b8e994763","_id":"drag-tracker@0.4.0","_shasum":"014830f79f92c09d9f57b2c26c2560b259ed2f25","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"014830f79f92c09d9f57b2c26c2560b259ed2f25","tarball":"https://registry.npmjs.org/drag-tracker/-/drag-tracker-0.4.0.tgz","fileCount":33,"unpackedSize":150220,"integrity":"sha512-WbsuvwoChQMKPWxIHA+2dWb8IyFT9g9Zz/Hk3vt2OngEHtmeniE8+4bSVViDHlCttSa0EKEQoj8n051aTdf8dg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGhcnuUHZ/dT9QtmstE4i2nI1abNVJoc2pM90QXTzb0AiEA9ZJiTlzx3xoFhtG3F43WnlKUzI8tnFbQPHjUN8Zdj4k="}]},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drag-tracker_0.4.0_1519268687573_0.5102176287353628"},"_hasShrinkwrap":false},"0.4.1":{"name":"drag-tracker","version":"0.4.1","description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","main":"dist/drag-tracker.js","module":"src/drag-tracker.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"license":"MIT","bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"d51c658a034e9e48dd7a60a999eb8571b945e2d7","_id":"drag-tracker@0.4.1","_shasum":"c2e4541188a5010b639fa3e18fe06953ec36e99f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"c2e4541188a5010b639fa3e18fe06953ec36e99f","tarball":"https://registry.npmjs.org/drag-tracker/-/drag-tracker-0.4.1.tgz","fileCount":6,"unpackedSize":17668,"integrity":"sha512-SGO0IqHZsFyJGavLkx6pJlc2scG/Un4JafiM50qeey/r7TTA7moDLEi1Ea2f5WnPuk0ICOaCNV+gvV7HdZz8XA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVV/tOiA4scMPOBeFNNgx9AgMdW79bE2tZDgR4668ZQAiBJzRUzzqZu8iunvxyFh0sJPNf8kiOgbx26GXtQxznQdQ=="}]},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drag-tracker_0.4.1_1519271011764_0.8308433842855414"},"_hasShrinkwrap":false},"0.4.2":{"name":"drag-tracker","version":"0.4.2","description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","main":"dist/drag-tracker.js","module":"src/drag-tracker.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"license":"MIT","bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"d51c658a034e9e48dd7a60a999eb8571b945e2d7","_id":"drag-tracker@0.4.2","_shasum":"433fee58abe360a4636a2d7fcda408da6587cc07","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"433fee58abe360a4636a2d7fcda408da6587cc07","tarball":"https://registry.npmjs.org/drag-tracker/-/drag-tracker-0.4.2.tgz","fileCount":6,"unpackedSize":17667,"integrity":"sha512-oY/W3q2NfNZzLHHQOiTEEkTx/Mc1IF7nwZd8rT3SwpqKUmBDBKkTbT++YFovYeCB3bYSxUSb+eRDymZNESftEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICXL52a/+7QFzXWtECOmyHmOP2Qrx+Oq0gHPYiq9v9nJAiEA2ul26q6eq7jeUkqxSWERwDsbtHXcxYNkroYy0r/VeuU="}]},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drag-tracker_0.4.2_1519438467724_0.6845905475952074"},"_hasShrinkwrap":false},"0.4.3":{"name":"drag-tracker","version":"0.4.3","description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","main":"dist/drag-tracker.js","module":"src/drag-tracker.js","files":["src/","dist/"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"license":"MIT","bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"e6caf997d3907c8fe34aab6021532e7727fddf44","_id":"drag-tracker@0.4.3","_shasum":"b19fdc6f1002ea22acb337070c2427667eb7d619","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"b19fdc6f1002ea22acb337070c2427667eb7d619","tarball":"https://registry.npmjs.org/drag-tracker/-/drag-tracker-0.4.3.tgz","fileCount":7,"unpackedSize":19299,"integrity":"sha512-PSwZGKqQ36CmWCvXAiHG7E4DuvuS0Bux1g8iTMArtFoasNQ7kHW8aFQXIMsG90soS+07raEJghGx4cdTEblnZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDimiqw8BcYTW+zvYWFG2k5mCDYnXrZrYIeJolenniZegIgFFp3YJAHeTGe9XVAvzdvSCFEDnxDmVyPpTkIORjNWVo="}]},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drag-tracker_0.4.3_1521934232865_0.7356751204945469"},"_hasShrinkwrap":false},"0.4.4":{"name":"drag-tracker","version":"0.4.4","description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","main":"dist/drag-tracker.js","module":"src/drag-tracker.js","files":["src/","dist/"],"scripts":{"prepublish":"bash ./scripts/prepub.sh","postpublish":"bash ./scripts/postpub.sh","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"license":"MIT","bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"724ded50a0594dfa879d8f4f4403c4801b9bcb62","_id":"drag-tracker@0.4.4","_shasum":"e409853451e3a806ad6ac37f935aa0ab796391a3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"e409853451e3a806ad6ac37f935aa0ab796391a3","tarball":"https://registry.npmjs.org/drag-tracker/-/drag-tracker-0.4.4.tgz","fileCount":7,"unpackedSize":19393,"integrity":"sha512-JXQGFFfyITpu3d9KBruWNLYVKyz1uF644AjEQ1yEZLYA1fGCYo6YX6YNraf0IvGVPgusqSctTV4+SkGyY1Qqqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1QRiJCfcNxhlVn3Mt5A0Jd+cntPWsjLX6aQr7mw2hMQIhAKJ7XqkqrBuKGsr+/9qTZJ05jokofgG4lrxt1XJRXnhC"}]},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drag-tracker_0.4.4_1522943686847_0.5903617127163954"},"_hasShrinkwrap":false},"0.4.5":{"name":"drag-tracker","version":"0.4.5","description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","main":"dist/drag-tracker.js","module":"src/drag-tracker.js","files":["src/","dist/"],"scripts":{"prepublish":"bash ./scripts/prepub.sh","postpublish":"bash ./scripts/postpub.sh","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"license":"MIT","bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"e132b206e666b074fd9ae4aa09c390713c4ead8e","_id":"drag-tracker@0.4.5","_shasum":"b061ba4075bdd0ddb986cb53313842d2f252d045","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"b061ba4075bdd0ddb986cb53313842d2f252d045","tarball":"https://registry.npmjs.org/drag-tracker/-/drag-tracker-0.4.5.tgz","fileCount":7,"unpackedSize":19393,"integrity":"sha512-WM/20BW5TlljkWN5h5xz2OJmISPfIomr4SCsoruchsOwUMtDu8JsTeS/xhy4NiLo48H0c0OYJaz4PIPsIlit0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUe1uLiLa6MOXgRfD5ObCVq59kLTOihXm1ctb0eDackAIhANlxPzdXaXtPTIWrNRBd6sgOYNs2rw6ihc9ZwV91R2xw"}]},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drag-tracker_0.4.5_1522943849764_0.5227259660770793"},"_hasShrinkwrap":false},"1.0.0":{"name":"drag-tracker","version":"1.0.0","description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","main":"dist/drag-tracker.js","module":"src/drag-tracker.js","files":["src/","dist/"],"scripts":{"prepublish":"bash ./scripts/prepub.sh","postpublish":"bash ./scripts/postpub.sh","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"license":"MIT","bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","gulp":"^4.0.0","gulp-file":"^0.4.0","gulp-header":"^2.0.1","gulp-rename":"^1.2.2","gulp-strip-comments":"^2.5.2","gulp-uglify":"^3.0.0","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.3"},"gitHead":"9349217bd7bae67cb2db263fc8666205d6762726","_id":"drag-tracker@1.0.0","_shasum":"9bd33d380bc3056db69bd5b3cf6e062fec58bd64","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"sphinxxxx","email":"coding@enthuses.me"},"dist":{"shasum":"9bd33d380bc3056db69bd5b3cf6e062fec58bd64","tarball":"https://registry.npmjs.org/drag-tracker/-/drag-tracker-1.0.0.tgz","fileCount":7,"unpackedSize":21217,"integrity":"sha512-BSGDl37YXpW49dLMRfiDExxzD3yPOpLEBGx05Wed3z2sk2+Qd5dFvHCSVFTPsGTeltGBtkRB4qhLhSKv6tvBKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtNePKq3T/6LjT2aETtq3kPlqQjzaKkrbRt35MuVUFIAiBfKRPrF7pMCAqz2S3d2IiVKMPvqZ0YcF4Cmn4sJO4qQA=="}]},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drag-tracker_1.0.0_1522953608069_0.4945159616450958"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-22T03:04:47.572Z","0.4.0":"2018-02-22T03:04:47.715Z","modified":"2022-06-15T23:44:45.295Z","0.4.1":"2018-02-22T03:43:31.847Z","0.4.2":"2018-02-24T02:14:27.832Z","0.4.3":"2018-03-24T23:30:32.986Z","0.4.4":"2018-04-05T15:54:46.949Z","0.4.5":"2018-04-05T15:57:29.827Z","1.0.0":"2018-04-05T18:40:08.151Z"},"maintainers":[{"name":"sphinxxxx","email":"coding@enthuses.me"}],"description":"A simple library for dragging things around. Tracks dragging with touch or mouse.","homepage":"https://github.com/Sphinxxxx/drag-tracker#readme","repository":{"type":"git","url":"git+https://github.com/Sphinxxxx/drag-tracker.git"},"author":{"name":"Andreas Borgen"},"bugs":{"url":"https://github.com/Sphinxxxx/drag-tracker/issues"},"license":"MIT","readme":"# drag-tracker\n\nA simple library for dragging things around. Tracks dragging with touch or mouse (left button).\n\n## Demo\n\nhttps://rawgit.com/Sphinxxxx/drag-tracker/master/demo/index.html  \nhttps://codepen.io/Sphinxxxx/pen/KXedQe\n\n## Usage\n\n    dragTracker({\n      container:          /* The element the user can drag within */,\n      selector:           /* CSS selector for elements inside the container that are draggable, or a single HTML element */,\n      \n      callback:           /* Your code which decides what happens during a drag operation */,\n      callbackDragStart:  /* Optional callback when a drag operation is about to start */,\n      callbackDragEnd:    /* Optional callback when a drag operation has ended */,\n      callbackClick:      /* Optional callback when a draggable element is only clicked, not dragged */,\n      propagateEvents:    /* Whether to let mouse/touch events propagate (bubble) after being handled. Usually not wanted in case multiple handlers track the same container */,\n      \n      roundCoords:  true  /* Whether callback coordinates should be integers */,\n      dragOutside:  true  /* Whether the draggable elements can be dragged outside the bounds of the container */,\n\n      /* Whether callback coordinates should be adjusted to suit the dragged element instead of the actual mouse position */\n      handleOffset: true (default)  /* Coordinates are the element's center for SVG `<circle>`s and `<ellipse>`s, and the top-left corner for all other elements */,\n                    'center'        /* Coordinates are always the element's center */\n                    'topleft'       /* Coordinates are always the element's top-left corner */\n                    false           /* No adjustment, just use the mouse position */\n    });\n\nAll options are optional. Without a `callback`, the coordinates are written to `console.log`.\n","readmeFilename":"README.md"}