Hierarchy
Properties
annotationRect
The bounding box of the annotation in which the result was found. This property is only available when the result is an annotation.
isAnnotation
Boolean to indicate whether the matching search result is part of an annotation.
rectsOnPage
All rects on the page that should be used to highlight the text.
Immutable Record API
31
"[iterator]"(): IterableIterator<
[
keyof { … },
| string
| number
| boolean
| NutrientViewer.Geometry.Rect
| NutrientViewer.Immutable.List<NutrientViewer.Geometry.Rect>
| null
| undefined,
],
>Returns
IterableIterator<
[
keyof { … },
| string
| number
| boolean
| NutrientViewer.Geometry.Rect
| NutrientViewer.Immutable.List<NutrientViewer.Geometry.Rect>
| null
| undefined
]
>
Returns
thisSee Also
Map#asImmutable
Returns
thisSee Also
Map#asMutable
Returns a new instance of this Record type with all values set to their default values.
Returns
this
delete<K extends keyof { … }>(key: K): this
Returns a new instance of this Record type with the value for the specific key set to its default value.
Parameters
otherunknownReturns
boolean
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
- has(
key: string,
): key is
| "pageIndex"
| "previewText"
| "locationInPreview"
| "lengthInPreview"
| "rectsOnPage"
| "isAnnotation"
| "annotationRect"Parameters
keystringReturns
key is
| "pageIndex"
| "previewText"
| "locationInPreview"
| "lengthInPreview"
| "rectsOnPage"
| "isAnnotation"
| "annotationRect"
Returns
number
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
remove<K extends keyof { … }>(key: K): this
Parameters
keyPathIterable<unknown>valueunknownReturns
this
Deeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Returns
{ … }
- OptionalannotationRect?: unknown
The bounding box of the annotation in which the result was found. This property is only available when the result is an annotation.
isAnnotation: boolean | null
Boolean to indicate whether the matching search result is part of an annotation.
lengthInPreview: number | null
Length of the search term in the preview text.
locationInPreview: number | null
Location of the search term in the preview text.
pageIndex: number | null
The page where the result was found.
previewText: string
The text surrounding the search term that can be used to list a preview.
rectsOnPage: unknown
All rects on the page that should be used to highlight the text.
Shallowly converts this Record to equivalent native JavaScript Object.
Returns
{ … }
- OptionalannotationRect?: NutrientViewer.Geometry.Rect | null
The bounding box of the annotation in which the result was found. This property is only available when the result is an annotation.
isAnnotation: boolean | null
Boolean to indicate whether the matching search result is part of an annotation.
lengthInPreview: number | null
Length of the search term in the preview text.
locationInPreview: number | null
Location of the search term in the preview text.
pageIndex: number | null
The page where the result was found.
previewText: string
The text surrounding the search term that can be used to list a preview.
rectsOnPage: NutrientViewer.Immutable.List<NutrientViewer.Geometry.Rect>
All rects on the page that should be used to highlight the text.
Shallowly converts this Record to equivalent JavaScript Object.
Returns
{ … }
- OptionalannotationRect?: NutrientViewer.Geometry.Rect | null
The bounding box of the annotation in which the result was found. This property is only available when the result is an annotation.
isAnnotation: boolean | null
Boolean to indicate whether the matching search result is part of an annotation.
lengthInPreview: number | null
Length of the search term in the preview text.
locationInPreview: number | null
Location of the search term in the preview text.
pageIndex: number | null
The page where the result was found.
previewText: string
The text surrounding the search term that can be used to list a preview.
rectsOnPage: NutrientViewer.Immutable.List<NutrientViewer.Geometry.Rect>
All rects on the page that should be used to highlight the text.
toSeq(): Keyed<
keyof { … },
| string
| number
| boolean
| NutrientViewer.Geometry.Rect
| NutrientViewer.Immutable.List<NutrientViewer.Geometry.Rect>
| null
| undefined,
>Returns
Keyed<
keyof { … },
| string
| number
| boolean
| NutrientViewer.Geometry.Rect
| NutrientViewer.Immutable.List<NutrientViewer.Geometry.Rect>
| null
| undefined
>
Parameters
keyPathIterable<unknown>updater(value: unknown) => unknownReturns
this
Returns
booleanSee Also
Map#wasAltered
Note: Not all methods can be used on a mutable collection or within
withMutations! Onlysetmay be used mutatively.Parameters
mutator(mutable: this) => unknownReturns
thisSee Also
Map#withMutations
A match when searching the PDF.
You can retrieve search results by using Instance#search