src/widgets/Arrow.js
changeset 1017 b6e39f6fd24f
parent 1013 392ddcd212d7
child 1021 7253d4d06f0d
equal deleted inserted replaced
1016:e1752b696a07 1017:b6e39f6fd24f
    23         height: (1+this.height) + "px",
    23         height: (1+this.height) + "px",
    24         "margin-top": "1px",
    24         "margin-top": "1px",
    25         overflow: "hidden"
    25         overflow: "hidden"
    26     });
    26     });
    27     this.paper = new Raphael(this.container, this.width, 1+this.height );
    27     this.paper = new Raphael(this.container, this.width, 1+this.height );
    28     window.myArrow = this;
       
    29     this.svgArrow = this.paper.path('M0,' + this.height + 'L' + this.width + ',' + this.height);
    28     this.svgArrow = this.paper.path('M0,' + this.height + 'L' + this.width + ',' + this.height);
    30     this.svgArrow.attr({
    29     this.svgArrow.attr({
    31         stroke: this.stroke_color,
    30         stroke: this.stroke_color,
    32         "stroke-width": this.stroke_width,
    31         "stroke-width": this.stroke_width,
    33         fill: this.fill_url ? ( 'url(' + this.fill_url + ')' ) : this.fill_color
    32         fill: this.fill_url ? ( 'url(' + this.fill_url + ')' ) : this.fill_color