All Projects → Mottie → Pointy

Mottie / Pointy

Licence: MIT license
A jQuery plugin that dynamically points one element at another ~

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Pointy

NSL
Implementation for <Neural Similarity Learning> in NeurIPS'19.
Stars: ✭ 33 (+32%)
Mutual labels:  dynamic
1pt
A URL shortener with protection against malicious redirects
Stars: ✭ 20 (-20%)
Mutual labels:  dynamic
tform
A easy, extensible and dynamic flutter form framework. Support for custom selectors, validators and widgets. Support form verification, insert, delete and so on.
Stars: ✭ 30 (+20%)
Mutual labels:  dynamic
Tutorials
Repository for my YouTube tutorials + code snippets
Stars: ✭ 224 (+796%)
Mutual labels:  pointer
pykafarr
A high-performance Python Kafka client. Efficiently from Kafka to Pandas and back.
Stars: ✭ 32 (+28%)
Mutual labels:  arrow
Telescope
Telescope is an engine for efficiently creating meaningful visualizations
Stars: ✭ 26 (+4%)
Mutual labels:  dynamic
spark-clickhouse-connector
Spark ClickHouse Connector build on DataSourceV2 API
Stars: ✭ 100 (+300%)
Mutual labels:  arrow
dynamic-queue
The dynamic queue
Stars: ✭ 17 (-32%)
Mutual labels:  dynamic
readme-components
Cards for your readme
Stars: ✭ 44 (+76%)
Mutual labels:  dynamic
dlib
Dynamic loading library for C/C++
Stars: ✭ 19 (-24%)
Mutual labels:  dynamic
cpp-code-snippets
Some useful C++ code snippets
Stars: ✭ 35 (+40%)
Mutual labels:  pointer
bootstrap-directional-buttons
Directional / Arrow buttons for Bootstrap
Stars: ✭ 18 (-28%)
Mutual labels:  arrow
Archery
Declare all your project's metadata and what you can do with it in one single place.
Stars: ✭ 47 (+88%)
Mutual labels:  arrow
RazorSharp
Low-level utilities and tools for working with the CLR and memory.
Stars: ✭ 31 (+24%)
Mutual labels:  pointer
mmwm
Modern Minimalistic Window Manager
Stars: ✭ 45 (+80%)
Mutual labels:  dynamic
action-dynamic-readme
~ Dynamic ReadME Generator ~
Stars: ✭ 29 (+16%)
Mutual labels:  dynamic
webpack-entry-plus
Generate dynamic webpack bundle output names from known or unknown entry files
Stars: ✭ 24 (-4%)
Mutual labels:  dynamic
typijs
The Angular CMS Framework for building fully-featured SPA sites powered by NodeJS and MongoDB with TypeScript
Stars: ✭ 141 (+464%)
Mutual labels:  dynamic
bow
Go data analysis / manipulation library built on top of Apache Arrow
Stars: ✭ 20 (-20%)
Mutual labels:  arrow
DynamicQueryable
λ Construct Linq queries using strings.
Stars: ✭ 46 (+84%)
Mutual labels:  dynamic

Pointy Bower Version NPM Version devDependency Status

A jQuery plugin that dynamically points one element at another.

Features

  • Pointy will create an arrow, at any angle, pointing from the pointer to the pointee (Pointy).
  • Minimal setup with only one required option - setting the pointer.
  • The background & border color of the arrow will automatically be matched to the pointer, unless overriding options are set.
  • Additional options allow setting the arrow base width & border width.

Notes

  • jQuery v1.7+ is the only dependency.
  • jQuery UI draggable is used in these demos, but any draggable plugin may be used.
  • The outer width & height of the elements is used in calculation, so any margin on the pointer will offset the arrow placement.
  • Canvas is used to add an arrow which points from one element to another, so there is limited css effect on the arrow background & border colors.

To Do

  • Allow multiple pointers per pointee.

Setup

<script src="js/jquery.min.js"></script>
<!-- using jQuery UI draggable -->
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.pointy.js"></script>
<script>
$(function(){

  // $pointer points at $pointy
  var $pointer = $('.label.pointer'),

    // initialize pointy (showing all options; but not all defaults)
    $pointy = $('.repo-name').pointy({
      pointer      : $pointer,
      arrowWidth   : 10, // width of pointer base
      borderWidth  : 1,  // pointer stroke width
      flipAngle    : 45, // angle @ which to flip pointer to a closer side
      defaultClass : '', // additional class name added to the pointer & the arrow (canvas)
      activeClass  : 'pointy-active', // class added to base & pointer on updating

      // optional; if not set, plugin will attempt to match the base color
      borderColor     : null,
      backgroundColor : null,

      // tweaks
      useOffset : null
    });

  // Using jQuery UI draggable (any draggable code will work)
  $label.draggable({
    containment : '.top',
    drag : function() {
      $pointy.trigger('pointy-update');
    }
  });

});
</script>

Documentation & Demos

Version

v1.0.2-beta (3/22/2016)

  • Docs: correction to "trigger" destroy method.
  • Update dependencies.
  • Add repo to bower.

v1.0.1-beta (4/28/2015)

  • Fix npm package name.
  • Add pointer-events:none to canvas; this allows clicking through the pointy arrow.
  • Update keyboard demo code to refresh pointy arrow on textarea resize.
  • Update jQuery to v1.11.2.

v1.0.0-beta (3/14/2015)

  • Initial release
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].