hdw
2018-11-06 0678edc3ce322e2190941805434e1031b5e2153b
gx_tieta/WebRoot/js/elecircle.js
@@ -1125,6 +1125,25 @@
   this.opts.push(txtInfor);
}
// 绘制图片
EleCircle.prototype.drawImg = function(options) {
   var defaluts = {
      img: '',
      startX: 0,
      startY: 0,
      width: 30,
      height: 30,
      isShow: true,
      name:'',
      id: '',
   };
   var opts = $.extend({}, defaluts, options || {});
   if(opts.img != '')
   this.context.drawImage(opts.img, opts.startX-30, opts.startY-3, 65, 105);
};
// 重新绘制图
EleCircle.prototype.redraw =function() {
   this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);