(noteIds: string[], regionId?: string)
| 39 | } |
| 40 | } |
| 41 | fromIds(noteIds: string[], regionId?: string): PageNote[] { |
| 42 | const noteIdsSet = new Set<string>(); |
| 43 | |
| 44 | const notesArray = []; |
| 45 | |
| 46 | for (const noteId of noteIds) { |
| 47 | if (noteIdsSet.has(noteId)) { |
| 48 | continue; |
| 49 | } |
| 50 | |
| 51 | noteIdsSet.add(noteId); |
| 52 | |
| 53 | const note = this.fromId(noteId, regionId); |
| 54 | |
| 55 | if (note != null) { |
| 56 | notesArray.push(note); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return notesArray; |
| 61 | } |
| 62 | |
| 63 | createAndObserveChildren(noteId: string, index: number): void { |
| 64 | let note = this.fromId(noteId); |
no test coverage detected