{"id":16203974,"url":"https://github.com/mottie/pointy","last_synced_at":"2025-03-19T07:31:10.520Z","repository":{"id":28703635,"uuid":"32224068","full_name":"Mottie/Pointy","owner":"Mottie","description":"A jQuery plugin that dynamically points one element at another ~","archived":false,"fork":false,"pushed_at":"2016-03-22T13:01:32.000Z","size":205,"stargazers_count":26,"open_issues_count":0,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-28T16:39:52.938Z","etag":null,"topics":["arrow","dynamic","jquery","pointer"],"latest_commit_sha":null,"homepage":"http://mottie.github.io/Pointy/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mottie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-14T17:40:07.000Z","updated_at":"2023-10-08T08:01:55.000Z","dependencies_parsed_at":"2022-08-31T00:01:49.357Z","dependency_job_id":null,"html_url":"https://github.com/Mottie/Pointy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2FPointy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2FPointy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2FPointy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2FPointy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mottie","download_url":"https://codeload.github.com/Mottie/Pointy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976644,"owners_count":20377695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arrow","dynamic","jquery","pointer"],"created_at":"2024-10-10T09:55:51.433Z","updated_at":"2025-03-19T07:31:10.097Z","avatar_url":"https://github.com/Mottie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pointy [![Bower Version][bower-image]][bower-url] [![NPM Version][npm-image]][npm-url] [![devDependency Status][david-dev-image]][david-dev-url]\n\nA jQuery plugin that dynamically points one element at another.\n\n[npm-url]: https://www.npmjs.com/package/jquery.pointy\n[npm-image]: https://img.shields.io/npm/v/jquery.pointy.svg\n[david-dev-url]: https://david-dm.org/Mottie/Pointy#info=devDependencies\n[david-dev-image]: https://img.shields.io/david/dev/Mottie/Pointy.svg\n[bower-url]: http://bower.io/search/?q=jquery.pointy\n[bower-image]: https://img.shields.io/bower/v/jquery.pointy.svg\n\n## Features\n\n* Pointy will create an arrow, at any angle, pointing from the pointer to the pointee (Pointy).\n* Minimal setup with only one required option - setting the pointer.\n* The background \u0026 border color of the arrow will automatically be matched to the pointer, unless overriding options are set.\n* Additional options allow setting the arrow base width \u0026 border width.\n\n## Notes\n\n* jQuery v1.7+ is the only dependency.\n* jQuery UI draggable is used in these demos, but any draggable plugin may be used.\n* The outer width \u0026amp; height of the elements is used in calculation, so any margin on the pointer will offset the arrow placement.\n* Canvas is used to add an arrow which points from one element to another, so there is limited css effect on the arrow background \u0026amp; border colors.\n\n## To Do\n\n* Allow multiple pointers per pointee.\n\n## Setup\n\n```html\n\u003cscript src=\"js/jquery.min.js\"\u003e\u003c/script\u003e\n\u003c!-- using jQuery UI draggable --\u003e\n\u003cscript src=\"js/jquery-ui.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"js/jquery.pointy.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n$(function(){\n\n  // $pointer points at $pointy\n  var $pointer = $('.label.pointer'),\n\n    // initialize pointy (showing all options; but not all defaults)\n    $pointy = $('.repo-name').pointy({\n      pointer      : $pointer,\n      arrowWidth   : 10, // width of pointer base\n      borderWidth  : 1,  // pointer stroke width\n      flipAngle    : 45, // angle @ which to flip pointer to a closer side\n      defaultClass : '', // additional class name added to the pointer \u0026 the arrow (canvas)\n      activeClass  : 'pointy-active', // class added to base \u0026 pointer on updating\n\n      // optional; if not set, plugin will attempt to match the base color\n      borderColor     : null,\n      backgroundColor : null,\n\n      // tweaks\n      useOffset : null\n    });\n\n  // Using jQuery UI draggable (any draggable code will work)\n  $label.draggable({\n    containment : '.top',\n    drag : function() {\n      $pointy.trigger('pointy-update');\n    }\n  });\n\n});\n\u003c/script\u003e\n```\n\n## Documentation \u0026 Demos\n\n* [Main documentation page](http://mottie.github.io/Pointy/)\n* [Basic demo](http://mottie.github.io/Pointy/docs/basic.html)\n* [Keyboard demo](http://mottie.github.io/Pointy/docs/keyboard.html) (using [this plugin](https://github.com/Mottie/Keyboard))\n\n## Version\n\n### v1.0.2-beta (3/22/2016)\n\n* Docs: correction to \"trigger\" destroy method.\n* Update dependencies.\n* Add repo to bower.\n\n### v1.0.1-beta (4/28/2015)\n\n* Fix npm package name.\n* Add `pointer-events:none` to canvas; this allows clicking through the pointy arrow.\n* Update keyboard demo code to refresh pointy arrow on textarea resize.\n* Update jQuery to v1.11.2.\n\n### v1.0.0-beta (3/14/2015)\n\n* Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottie%2Fpointy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmottie%2Fpointy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottie%2Fpointy/lists"}