Subversion Repositories wimsdev

Rev

Rev 18588 | Rev 18612 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18588 Rev 18609
Line 643... Line 643...
643
  ctx.stroke();\
643
  ctx.stroke();\
644
 };\
644
 };\
645
 if( use_userdraw ){\
645
 if( use_userdraw ){\
646
  grid_fill_pattern = ctx;\
646
  grid_fill_pattern = ctx;\
647
 } else {\
647
 } else {\
648
  setTimeout(function(){ filltoborder( x0,y0,color,color,canvas_type,true,ctx); },500);};return;\
648
  setTimeout(function(){ filltoborder( x0,y0,false,color,canvas_type,true,ctx); },500);};return;\
649
};",canvas_root_id,canvas_root_id);
649
};",canvas_root_id,canvas_root_id);
650
        break;
650
        break;
651
      case DRAW_IMAGEFILL:/* not  used for userdraw */
651
      case DRAW_IMAGEFILL:/* not  used for userdraw */
652
        fprintf(js_include_file,"\n/* draw imagefill */\
652
        fprintf(js_include_file,"\n/* draw imagefill */\
653
function draw_imagefill(canvas_type,x0,y0,URL,xsize,ysize,use_userdraw,use_scaling){\
653
function draw_imagefill(canvas_type,x0,y0,URL,xsize,ysize,use_userdraw,use_scaling){\
Line 669... Line 669...
669
   };\
669
   };\
670
  };\
670
  };\
671
  if( use_userdraw ){\
671
  if( use_userdraw ){\
672
   image_pattern = ctx;\
672
   image_pattern = ctx;\
673
  } else {\
673
  } else {\
674
   setTimeout(function(){ filltoborder( x0,y0,'red','red',canvas_type,true,ctx); },500);\
674
   setTimeout(function(){ filltoborder( x0,y0,false,'red',canvas_type,true,ctx); },500);\
675
  };\
675
  };\
676
 };\
676
 };\
677
};",canvas_root_id,canvas_root_id);
677
};",canvas_root_id,canvas_root_id);
678
        break;
678
        break;
679
      case DRAW_DOTFILL:/* not  used for userdraw */
679
      case DRAW_DOTFILL:/* not  used for userdraw */
Line 699... Line 699...
699
  };\
699
  };\
700
 };\
700
 };\
701
 if( use_userdraw ){\
701
 if( use_userdraw ){\
702
  dot_fill_pattern = ctx;\
702
  dot_fill_pattern = ctx;\
703
 } else {\
703
 } else {\
704
 setTimeout(function(){ filltoborder( x0,y0,color,color,canvas_type,true,ctx); },500);\
704
 setTimeout(function(){ filltoborder( x0,y0,false,color,canvas_type,true,ctx); },500);\
705
 };\
705
 };\
706
return;\
706
return;\
707
};",canvas_root_id,canvas_root_id);
707
};",canvas_root_id,canvas_root_id);
708
        break;
708
        break;
709
      case DRAW_SUBSUP:/* Uses 'script-size for numbers and for sub & sup strings */
709
      case DRAW_SUBSUP:/* Uses 'script-size for numbers and for sub & sup strings */
Line 777... Line 777...
777
if( use_userdraw ){\
777
if( use_userdraw ){\
778
 text_fill_pattern = ctx;\
778
 text_fill_pattern = ctx;\
779
}\
779
}\
780
else\
780
else\
781
{\
781
{\
782
 setTimeout(function(){ filltoborder( x0,y0,color,color,canvas_type,true,ctx); },500);\
782
 setTimeout(function(){ filltoborder( x0,y0,false,color,canvas_type,true,ctx); },500);\
783
};\
783
};\
784
return;};",canvas_root_id,canvas_root_id);
784
return;};",canvas_root_id,canvas_root_id);
785
        break;
785
        break;
786
      case DRAW_DIAMONDFILL:/* not used for userdraw */
786
      case DRAW_DIAMONDFILL:/* not used for userdraw */
787
        fprintf(js_include_file,"\n/* draw_diamond fill */\
787
        fprintf(js_include_file,"\n/* draw_diamond fill */\
Line 811... Line 811...
811
if( use_userdraw ){\
811
if( use_userdraw ){\
812
 diamond_fill_pattern = ctx;\
812
 diamond_fill_pattern = ctx;\
813
}\
813
}\
814
else\
814
else\
815
{\
815
{\
816
 setTimeout(function(){ filltoborder( x0,y0,color,color,canvas_type,true,ctx); },500);\
816
 setTimeout(function(){ filltoborder( x0,y0,false,color,canvas_type,true,ctx); },500);\
817
};\
817
};\
818
return;\
818
return;\
819
}",canvas_root_id,canvas_root_id);
819
}",canvas_root_id,canvas_root_id);
820
        break;
820
        break;
821
      case DRAW_HATCHFILL:/* not used for userdraw */
821
      case DRAW_HATCHFILL:/* not used for userdraw */
Line 844... Line 844...
844
if( use_userdraw ){\
844
if( use_userdraw ){\
845
 hatch_fill_pattern = ctx;\
845
 hatch_fill_pattern = ctx;\
846
}\
846
}\
847
else\
847
else\
848
{\
848
{\
849
 setTimeout(function(){ filltoborder( x0,y0,color,color,canvas_type,true,ctx); },500);\
849
 setTimeout(function(){ filltoborder( x0,y0,false,color,canvas_type,true,ctx); },500);\
850
};\
850
};\
851
return;};",canvas_root_id,canvas_root_id);
851
return;};",canvas_root_id,canvas_root_id);
852
        break;
852
        break;
853
      case DRAW_LINES:/*  used for js-tracing */
853
      case DRAW_LINES:/*  used for js-tracing */
854
        fprintf(js_include_file,"\n/* draw lines */\
854
        fprintf(js_include_file,"\n/* draw lines */\