diff options
author | adhitya | 2016-04-11 15:10:54 +0000 |
---|---|---|
committer | adhitya | 2016-04-11 15:10:54 +0000 |
commit | 92f3207b50a1caca07df5c5b238212af3358905b (patch) | |
tree | 38c92f9649c6f1016d2ef70fa2fd33c86b437cba /src/js/shape/mxHexagon.js | |
parent | ab5fb6e125d82fdd5818aea3ce370c43c2293ddd (diff) | |
download | xcos-on-web-92f3207b50a1caca07df5c5b238212af3358905b.tar.gz xcos-on-web-92f3207b50a1caca07df5c5b238212af3358905b.tar.bz2 xcos-on-web-92f3207b50a1caca07df5c5b238212af3358905b.zip |
Revert last two commits - Keyboard shortcuts are not working
Diffstat (limited to 'src/js/shape/mxHexagon.js')
-rw-r--r-- | src/js/shape/mxHexagon.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/js/shape/mxHexagon.js b/src/js/shape/mxHexagon.js new file mode 100644 index 0000000..7fa45a3 --- /dev/null +++ b/src/js/shape/mxHexagon.js @@ -0,0 +1,37 @@ +/** + * $Id: mxHexagon.js,v 1.8 2011-09-02 10:01:00 gaudenz Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ +/** + * Class: mxHexagon + * + * Implementation of the hexagon shape. + * + * Constructor: mxHexagon + * + * Constructs a new hexagon shape. + */ +function mxHexagon() { }; + +/** + * Extends <mxActor>. + */ +mxHexagon.prototype = new mxActor(); +mxHexagon.prototype.constructor = mxHexagon; + +/** + * Function: redrawPath + * + * Draws the path for this shape. This method uses the <mxPath> + * abstraction to paint the shape for VML and SVG. + */ +mxHexagon.prototype.redrawPath = function(path, x, y, w, h) +{ + path.moveTo(0.25 * w, 0); + path.lineTo(0.75 * w, 0); + path.lineTo(w, 0.5 * h); + path.lineTo(0.75 * w, h); + path.lineTo(0.25 * w, h); + path.lineTo(0, 0.5 * h); + path.close(); +}; |