MCPcopy Create free account
hub / github.com/pacexy/flow / setAnnotationRange

Method setAnnotationRange

apps/reader/src/models/reader.ts:134–137  ·  view source on GitHub ↗
(cfi: string)

Source from the content-addressed store, hash-verified

132
133 annotationRange?: Range
134 setAnnotationRange(cfi: string) {
135 const range = this.view?.contents.range(cfi)
136 if (range) this.annotationRange = ref(range)
137 }
138
139 define(def: string[]) {
140 this.updateBook({ definitions: [...this.book.definitions, ...def] })

Callers 2

DefinitionFunction · 0.80
AnnotationFunction · 0.80

Calls 1

rangeMethod · 0.80

Tested by

no test coverage detected