https://github.com/nighttrax/jquery-pathy
jQuery plugin that aligns objects with a given path
https://github.com/nighttrax/jquery-pathy
Last synced: 7 months ago
JSON representation
jQuery plugin that aligns objects with a given path
- Host: GitHub
- URL: https://github.com/nighttrax/jquery-pathy
- Owner: NiGhTTraX
- License: gpl-3.0
- Created: 2014-01-09T17:34:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T09:03:23.000Z (over 7 years ago)
- Last Synced: 2025-01-24T02:16:18.154Z (9 months ago)
- Language: JavaScript
- Size: 80.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jquery-pathy
===========Usage
-----```javascript
$(".item").path("line", [0, 0, 300, 300]);
```The above will place the selected items on a straight line from 0x0 to 300x300,
with equal distance between them.Building
--------Pathy uses the [Grunt](https://github.com/gruntjs/grunt) build system. To build Pathy, you must have [node.js](https://github.com/joyent/node) installed and then run the following commands:
```bash
# Install the Grunt CLI.
npm install -g grunt-cli# Clone the repository.
git clone git@github.com:NiGhTTraX/jquery-pathy.git
cd jquery-pathy# Install node module dependencies.
npm install# Run the build task.
grunt
```If all went well, you will find a minified version of the plugin in the ```build/``` folder.
Testing
-------Run ```grunt test``` to run the tests in [PhantomJS](https://github.com/ariya/phantomjs) or open ```tests/index.html``` to run them in your browser. Tests are written using the [QUnit](http://www.qunitjs.com/) framework and the [jQuery Event Unit Testing Helpers](https://github.com/jquery/jquery-simulate).
To enable coverage, place the ```resources/``` and ```tests/``` folders in your webserver and run the tests from there with the coverage option in QUnit checked (running coverage locally will throw a cross-domain error). Coverage is done using [blanket.js](http://www.blanketjs.org).