|
|
|
@ -319,6 +319,7 @@ sources:`;
|
|
|
|
|
arrowArr[0].endY; |
|
|
|
|
let customArea = []; |
|
|
|
|
if ( |
|
|
|
|
item.dimensionedPointsObj && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor.length !== 0 |
|
|
|
|
) { |
|
|
|
@ -362,6 +363,7 @@ sources:`;
|
|
|
|
|
arrowArr[0].endY; |
|
|
|
|
let customArea = []; |
|
|
|
|
if ( |
|
|
|
|
item.dimensionedPointsObj && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor.length !== 0 |
|
|
|
|
) { |
|
|
|
@ -423,6 +425,7 @@ sources:`;
|
|
|
|
|
let str3 = '[' + str + ',' + str2 + ']'; |
|
|
|
|
let customArea = []; |
|
|
|
|
if ( |
|
|
|
|
item.dimensionedPointsObj && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor.length !== 0 |
|
|
|
|
) { |
|
|
|
@ -441,14 +444,19 @@ sources:`;
|
|
|
|
|
custom-area: [${customArea}] |
|
|
|
|
`;
|
|
|
|
|
} else { |
|
|
|
|
console.log(888, item); |
|
|
|
|
let customArea = []; |
|
|
|
|
if (item.type == 0) { |
|
|
|
|
item.dimensionedPointsObj.polygon.forEach((element) => { |
|
|
|
|
customArea.push(element.x); |
|
|
|
|
customArea.push(element.y); |
|
|
|
|
}); |
|
|
|
|
item.dimensionedPointsObj |
|
|
|
|
? item.dimensionedPointsObj.polygon.forEach((element) => { |
|
|
|
|
customArea.push(element.x); |
|
|
|
|
customArea.push(element.y); |
|
|
|
|
}) |
|
|
|
|
: null; |
|
|
|
|
} else { |
|
|
|
|
console.log(item.dimensionedPointsObj); |
|
|
|
|
if ( |
|
|
|
|
item.dimensionedPointsObj && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor && |
|
|
|
|
item.dimensionedPointsObj.polygonOfmonitor.length !== 0 |
|
|
|
|
) { |
|
|
|
|