标签 自定义
const point = this;
const points = point.points; const validPoints = points.filter( (point) => point.isVisible() ); if(point == validPoints[validPoints.length - 2]) { let value = 0; for(let i = 0; i < validPoints.length-1; i++) { value += validPoints[i].value; } return value; } else { return ""; }