Home :: GUI :: Utilities

  1. Introduction
  2. Reference
    1. Methods
      1. constructor
      2. init
      3. realize
      4. register
      5. unregister
      6. registerShape
      7. unregisterShape
      8. unregisterAll
      9. unregisterShapes
      10. handleIndex
      11. shapeIndex
      12. beginDrag
      13. mouseup
      14. mousemove
      15. getUserCoordinate
      16. getTransformToElement
    2. Properties
      1. svgNode
      2. handles
      3. shapes
      4. lastPoint
      5. currentNode
  3. Download

Introduction

Mouser is a JavaScript object that is used to track the mouse. This code is used in the 2D Geometry section of this site


Reference

Methods

constructor - new Mouser(parent);

init();

realize();

register(handle);

unregister(handle);

registerShape(shape);

unregisterShape(shape);

unregisterAll();

unregisterShapes();

handleIndex(handle) : integer;

shapeIndex(shape) : integer;

beginDrag(e);

mouseup(e);

mousemove(e);

getUserCoordinate(node, x, y); // returns an SVGPoint

getTransformToElement(node); // returns an SVGMatrix

Properties


Download

Mouser.js