Rev 18638 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18638 | Rev 18639 | ||
---|---|---|---|
Line 1057... | Line 1057... | ||
1057 | if not (that is when border is a color). |
1057 | if not (that is when border is a color). |
1058 | */ |
1058 | */ |
1059 | void add_js_filltoborder(int canvas_type){ |
1059 | void add_js_filltoborder(int canvas_type){ |
1060 | fprintf(js_include_file,"\n/* command filltoborder */\ |
1060 | fprintf(js_include_file,"\n/* command filltoborder */\ |
1061 | function filltoborder(xs,ys,border,color,fill_canvas_no,use_special_filling,fill_ctx){\ |
1061 | function filltoborder(xs,ys,border,color,fill_canvas_no,use_special_filling,fill_ctx){\ |
1062 | document.body.style.cursor = 'wait';\ |
- | |
1063 | let canvas = document.getElementById(\"wims_canvas%d%d\");\ |
1062 | let canvas = document.getElementById(\"wims_canvas%d%d\");\ |
1064 | if (!canvas) return;\ |
1063 | if (!canvas) return;\ |
1065 | document.body.style.cursor = 'wait';\ |
1064 | document.body.style.cursor = 'wait';\ |
1066 | let ctx = canvas.getContext(\"2d\");\ |
1065 | let ctx = canvas.getContext(\"2d\");\ |
1067 | xs = parseInt(x2px(xs)); ys = parseInt(y2px(ys));\ |
1066 | xs = parseInt(x2px(xs)); ys = parseInt(y2px(ys));\ |