/* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */
/* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */

/*
 * Simple wrapper for labels
 */
OverlayLabel = function (
id, // unique id for the node from the database
paper, // the raphael paper this node is drawn to
x, // the x coordinate in pixel coordinates
y, // y coordinates
text) {
  // the database treenode id
  this.id = id;
  this.paper = paper;

  // local screen coordinates relative to the div
  // pixel coordinates
  this.x = x;
  this.y = y;
  this.text = text;

  // create a raphael circle object
  var c = this.paper.g.blob(this.x+4, this.y, this.text);

  this.remove = function () {
    c.remove();
  };
    
};
/* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */
/* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */

/*
 * Simple wrapper for labels
 */
OverlayLabel = function (
id, // unique id for the node from the database
paper, // the raphael paper this node is drawn to
x, // the x coordinate in pixel coordinates
y, // y coordinates
text) {
  // the database treenode id
  this.id = id;
  this.paper = paper;

  // local screen coordinates relative to the div
  // pixel coordinates
  this.x = x;
  this.y = y;
  this.text = text;

  // create a raphael circle object
  var c = this.paper.blob(this.x+4, this.y, this.text);

  this.remove = function () {
    c.remove();
  };
    
};

Fix issue with displaying the text tags, caused by a change on the Raphael API.
Fix issue with displaying the text tags, caused by a change on the Raphael API.
