| | |
| | | }, |
| | | // 删除元素 |
| | | del() { |
| | | debugger |
| | | let delEle = {}; |
| | | switch (this.delCursor.type) { |
| | | case "1": |
| | |
| | | _this.type = "0"; |
| | | _this.delCursor.type = "2"; |
| | | _this.delCursor.index = i; |
| | | debugger |
| | | _this.delCursor.remarksName = v.name; |
| | | _this.delCursor.id = v.id; |
| | | // console.log("当前选中元素:",_this.delCursor) |
| | |
| | | width = typeof width !== "undefined" ? width : 1; |
| | | // color = typeof color !== 'undefined' ? color : 'yellow' |
| | | // 计算各角度和对应的P2,P3坐标 |
| | | debugger |
| | | let angle = (Math.atan2(fromY - toY, fromX - toX) * 180) / Math.PI; |
| | | let angle1 = ((angle + theta) * Math.PI) / 180; |
| | | let angle2 = ((angle - theta) * Math.PI) / 180; |