|
|
@@ -73,7 +73,7 @@ export default class ThreeService {
|
|
|
* @returns data点中的元素
|
|
|
*/
|
|
|
onMouseDblclick() {
|
|
|
- let data = null
|
|
|
+ let data = null as any
|
|
|
this.dom.addEventListener(
|
|
|
'click',
|
|
|
(event) => {
|
|
|
@@ -186,7 +186,7 @@ export default class ThreeService {
|
|
|
*/
|
|
|
SvgPathToPrint(DOMID: string) {
|
|
|
const svg = document.getElementById(DOMID)
|
|
|
- const arrList = []
|
|
|
+ const arrList = [] as any[]
|
|
|
for (let j = 0; j < svg!.childNodes.length; j++) {
|
|
|
const item = svg!.childNodes[j] as any
|
|
|
const obj = {
|
|
|
@@ -204,7 +204,7 @@ export default class ThreeService {
|
|
|
}
|
|
|
|
|
|
const newARR = [ arrList[0], arrList[1], arrList[2], arrList[3] ]
|
|
|
- const overarr = []
|
|
|
+ const overarr = [] as any[]
|
|
|
for (let z = 0; z < newARR.length; z++) {
|
|
|
const item = newARR[z]
|
|
|
if (!item) continue
|
|
|
@@ -264,7 +264,7 @@ export default class ThreeService {
|
|
|
* @returns {Array} - 分割后的子数组组成的数组
|
|
|
*/
|
|
|
splitArray(array: string | any[], parts: number) {
|
|
|
- const result = []
|
|
|
+ const result = [] as any[]
|
|
|
const len = array.length
|
|
|
const partSize = Math.ceil(len / parts)
|
|
|
|