修改
This commit is contained in:
@ -58,6 +58,7 @@ class BatchModel extends Base {
|
|||||||
// BatchModel.computeDis(this)
|
// BatchModel.computeDis(this)
|
||||||
|
|
||||||
let Draw
|
let Draw
|
||||||
|
console.log('kkkkk')
|
||||||
switch (options.type) {
|
switch (options.type) {
|
||||||
case '点':
|
case '点':
|
||||||
Draw = new DrawPoint(this.sdk)
|
Draw = new DrawPoint(this.sdk)
|
||||||
@ -73,6 +74,7 @@ class BatchModel extends Base {
|
|||||||
}
|
}
|
||||||
Draw && Draw.start((a, positions) => {
|
Draw && Draw.start((a, positions) => {
|
||||||
this.options.positions = positions;
|
this.options.positions = positions;
|
||||||
|
console.log('uuuuuu')
|
||||||
//判断范围是否过大
|
//判断范围是否过大
|
||||||
if (positions.length != 0 || positions.lng) {
|
if (positions.length != 0 || positions.lng) {
|
||||||
if (options.type == '面') {
|
if (options.type == '面') {
|
||||||
|
@ -441,7 +441,6 @@ class YJEarth {
|
|||||||
textList[i].querySelector('textarea').focus()
|
textList[i].querySelector('textarea').focus()
|
||||||
_this.isLeftClick = true
|
_this.isLeftClick = true
|
||||||
_this.entityMap.get(_this.clickTextDom.id).isClick(movement.position, _this.clickTextDom.id)
|
_this.entityMap.get(_this.clickTextDom.id).isClick(movement.position, _this.clickTextDom.id)
|
||||||
|
|
||||||
_this.blurFun = () => {
|
_this.blurFun = () => {
|
||||||
// let { sdkP } = getSdk()
|
// let { sdkP } = getSdk()
|
||||||
// if (_this == sdkP && sdkP) {//二维
|
// if (_this == sdkP && sdkP) {//二维
|
||||||
@ -449,7 +448,6 @@ class YJEarth {
|
|||||||
// } else if (!sdkP) {
|
// } else if (!sdkP) {
|
||||||
_this.entityMap.get(_this.clickTextDom.id).getwords(_this.clickTextDom.getElementsByTagName('textarea')[0].value)
|
_this.entityMap.get(_this.clickTextDom.id).getwords(_this.clickTextDom.getElementsByTagName('textarea')[0].value)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
_this.clickTextDom.querySelector('textarea').removeEventListener('blur', _this.blurFun)
|
_this.clickTextDom.querySelector('textarea').removeEventListener('blur', _this.blurFun)
|
||||||
}
|
}
|
||||||
_this.clickTextDom.querySelector('textarea').addEventListener('blur', _this.blurFun)
|
_this.clickTextDom.querySelector('textarea').addEventListener('blur', _this.blurFun)
|
||||||
@ -474,7 +472,7 @@ class YJEarth {
|
|||||||
click = true
|
click = true
|
||||||
}
|
}
|
||||||
mousemove = function (e) {
|
mousemove = function (e) {
|
||||||
if (!click) {
|
if (!click || !_this.clickTextDom) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let width = _this.clickTextDom.clientWidth * 1
|
let width = _this.clickTextDom.clientWidth * 1
|
||||||
|
Reference in New Issue
Block a user