From d489aed2de688a18d6aaf76ae3630b24d56c8ee4 Mon Sep 17 00:00:00 2001
From: 81041 <81041@192.168.10.27>
Date: 星期二, 06 十一月 2018 16:06:01 +0800
Subject: [PATCH] gprs使用REPLACE 

---
 gx_tieta/WebRoot/js/elecircle.js |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/gx_tieta/WebRoot/js/elecircle.js b/gx_tieta/WebRoot/js/elecircle.js
index 79573ac..c070f09 100644
--- a/gx_tieta/WebRoot/js/elecircle.js
+++ b/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);

--
Gitblit v1.9.1