If this selector is a range selector, it creates a new selector by collapsing to its end position. If this selector is not a range selector, this instance is returned.
If this selector is a range selector, it creates a new selector by collapsing to its start position. If this selector is not a range selector, this instance is returned.
Creates a new selector describing the range using this instance as startSelector and the passed value as endSelector. Returns null, if the selector implementation cannot create range selectors or if endSelector type is incompatible with this selector.
The caller must guarantee that endSelector is after this selector. The implementation will not check that endSelector is after this selector.
A link to the specification that defines the syntax of the fragment. This must be a value as described in https://www.w3.org/TR/annotation-model/#fragment-selector
Returns the highlight component if any. The returned DOMRect defines the rectangle in default user space coordinate system.
Returns the named destination component if any.
Returns the page number component if any.
A Selector can optionally have a list of selectors that further refine the intended target location. Multiple Selectors should select the same content, however some Selectors will not have the same precision as others. The first selector in the array has the highest precision.
Returns the type of selector, which in this case always is FRAGMENT_SELECTOR.
Get the fragment selector value as a string.
Returns the view rectactangle component if any. The returned DOMRect defines the rectangle in default user space coordinate system.
Returns true if this Selector selects a range of content.
Get this instance as a plain JSON object.
Get this selector as string that can be used as the fragment component of an URL. For FragmentSelectors, this will always be the value of FragmentSelector. For other selectors, the serialization algorithm defined by Selectors And States is used.
Generated using TypeDoc
A fragment selector implementing the PDF fragment selector as specified by http://tools.ietf.org/rfc/rfc3778 PDF fragment selector example: page=10&highlight=50,50,640,480
A valid PDF fragment selector must specify either
namedDest
orpageNumber