Home :: GUI :: Shapes

  1. Introduction
  2. Reference
    1. Methods
      1. constructor
      2. init
      3. show
      4. refresh
      5. update
      6. translate
      7. select
      8. registerHandles
      9. unregisterHandles
      10. selectHandles
      11. showHandles
      12. mousedown
    2. Properties
      1. svgNode
      2. locked
      3. visible
      4. selected
      5. callback
      6. lastUpdate
  3. Download

Introduction

Shape is an abstract JavaScript object from which other shape-manipulating objects are sub-classed. This code is used in the 2D Geometry section of this site.

Shape inherits from the EventHandler object.


Reference

Methods

constructor - new Shape(svgNode);

init(svgNode);

show(state);

refresh();

update();

translate(delta);

select(state);

registerHandles();

unregisterHandles();

selectHandles();

showHandles();

mousedown(e);

Properties


Download

Shape.js - the shape object only...cannot be used in isolation

2D.js.gz - all objects needed to use this object and other 2D geometry objects