src/widgets/Arrow.js
changeset 1021 7253d4d06f0d
parent 1017 b6e39f6fd24f
child 1072 ac1eacb3aa33
equal deleted inserted replaced
1018:de1e7cf6bfc4 1021:7253d4d06f0d
    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;
    28     this.svgArrow = this.paper.path('M0,' + this.height + 'L' + this.width + ',' + this.height);
    29     this.svgArrow = this.paper.path('M0,' + this.height + 'L' + this.width + ',' + this.height);
    29     this.svgArrow.attr({
    30     this.svgArrow.attr({
    30         stroke: this.stroke_color,
    31         stroke: this.stroke_color,
    31         "stroke-width": this.stroke_width,
    32         "stroke-width": this.stroke_width,
    32         fill: this.fill_url ? ( 'url(' + this.fill_url + ')' ) : this.fill_color
    33         fill: this.fill_url ? ( 'url(' + this.fill_url + ')' ) : this.fill_color