OwlThing.js

24 lines | 525 B Blame History Raw Download
var RoundNode = require("../RoundNode");

module.exports = (function (){
  
  var o = function ( graph ){
    RoundNode.apply(this, arguments);
    
    var superDrawFunction = this.draw;
    
    this.label("Thing")
      .type("owl:Thing")
      .iri("http://www.w3.org/2002/07/owl#Thing")
      .radius(30);
    
    this.draw = function ( element ){
      superDrawFunction(element, ["white", "dashed"]);
    };
  };
  o.prototype = Object.create(RoundNode.prototype);
  o.prototype.constructor = o;
  
  return o;
}());