| 119 | }) |
| 120 | } |
| 121 | let callbackGl = (es: any) => { |
| 122 | es.forEach((e: any) => { |
| 123 | if (e.isIntersecting) { |
| 124 | let id = attr(e.target, `data-string-id`, `${this._key}-${this.id}`) |
| 125 | this.objectsMap.set(id, stringObject) |
| 126 | } else { |
| 127 | let id = attr(e.target, `data-string-id`, `${this._key}-${this.id}`) |
| 128 | this.objectsMap.delete(id) |
| 129 | } |
| 130 | this.objectsArray = Array.from(this.objectsMap).map(([name, value]) => (value)) |
| 131 | }) |
| 132 | } |
| 133 | let optionsProgress = { |
| 134 | root: null, |
| 135 | rootMargin: `${stringObject.oBottom * 1 + 10 }px 0px ${stringObject.oTop * 1 + 10}px 0px`, |