MCPcopy Create free account

hub / github.com/GoogleChromeLabs/link-to-text-fragment / functions

Functions89 in github.com/GoogleChromeLabs/link-to-text-fragment

↓ 14 callersFunctioncheckTimeout
()
fragment-generation-utils.js:1023
↓ 10 callersMethodbackwardsEndOffset
* Helper method for doing arithmetic in the backwards search space. * @return {Number} - the current end offset, as a start offset in the *
fragment-generation-utils.js:1644
↓ 10 callersMethodbackwardsPrefixOffset
* Helper method for doing arithmetic in the backwards search space. * @return {Number} - the current prefix offset, as a start offset in the *
fragment-generation-utils.js:1662
↓ 9 callersMethodgetStartSearchSpace
* @return {String} - the string to be used as the search space for textStart
fragment-generation-utils.js:1562
↓ 9 callersMethodgetSuffixSearchSpace
* @return {String} - the string to be used as the search space for suffix
fragment-generation-utils.js:1626
↓ 8 callersFunctionisBlock
fragment-generation-utils.js:2329
↓ 8 callersFunctionnormalizeString
fragment-generation-utils.js:636
↓ 7 callersMethodgetEndSearchSpace
* @return {String} - the string to be used as the search space for textEnd
fragment-generation-utils.js:1578
↓ 7 callersFunctionmakeWalkerForNode
(node, endNode)
fragment-generation-utils.js:1965
↓ 6 callersMethodgetPrefixSearchSpace
* @return {String} - the string to be used as the search space for prefix
fragment-generation-utils.js:1602
↓ 5 callersFunctionfindTextInRange
(query, range)
fragment-generation-utils.js:433
↓ 5 callersFunctiongetFirstNodeForBlockSearch
fragment-generation-utils.js:1806
↓ 4 callersFunctionadvanceRangeStartPastOffset
(range, node, offset)
fragment-generation-utils.js:217
↓ 4 callersFunctionenableLinkTextOptions
(enabled)
options.js:29
↓ 4 callersFunctiongetLastNodeForBlockSearch
fragment-generation-utils.js:1823
↓ 4 callersFunctionreverseString
fragment-generation-utils.js:1782
↓ 3 callersMethodgetBackwardsPrefixSearchSpace
* @return {String} - the string to be used as the search space for prefix, * backwards.
fragment-generation-utils.js:1619
↓ 3 callersFunctionisText
fragment-generation-utils.js:2338
↓ 3 callersFunctionsendMessageToPage
(message, data = null)
service_worker.js:137
↓ 2 callersFunctionadvanceRangeStartToNonWhitespace
fragment-generation-utils.js:229
↓ 2 callersMethodappendNode
* Adds the next node in the search space range traversal to the accumulator. * The accumulator then will keep track of the text nodes in the range
fragment-generation-utils.js:1705
↓ 2 callersFunctioncheckSuffix
(suffix, potentialMatch, searchRange, documentToProcess)
fragment-generation-utils.js:188
↓ 2 callersFunctiondoGenerateFragmentFromRange
(range, startTime)
fragment-generation-utils.js:941
↓ 2 callersFunctionexpandToNearestWordBoundaryPointUsingSegments
(segmenter, isRangeEnd, range)
fragment-generation-utils.js:2089
↓ 2 callersFunctionfindWordStartBoundInTextNode
(node, startOffset)
fragment-generation-utils.js:1909
↓ 2 callersMethodgetBackwardsEndSearchSpace
* @return {String} - the string to be used as the search space for textEnd, * backwards.
fragment-generation-utils.js:1595
↓ 2 callersFunctiongetBoundaryPointAtIndex
(index, textNodes, isEnd)
fragment-generation-utils.js:501
↓ 2 callersMethodgetEndSegments
* @return {Segments | Undefined} - the result of segmenting the end search * space using Intl.Segmenter, or undefined if a segmenter was not
fragment-generation-utils.js:1587
↓ 2 callersMethodgetNextOffsetBackwards
* Helper method for embiggening using Intl.Segmenter. Finds the next offset * to be tried in the backwards direction (i.e., a suffix of the search
fragment-generation-utils.js:1532
↓ 2 callersMethodgetNextOffsetForwards
* Helper method for embiggening using Intl.Segmenter. Finds the next offset * to be tried in the forwards direction (i.e., a prefix of the search s
fragment-generation-utils.js:1507
↓ 2 callersMethodgetPrefixSegments
* @return {Segments | Undefined} - the result of segmenting the prefix * search space using Intl.Segmenter, or undefined if a segmenter was not
fragment-generation-utils.js:1611
↓ 2 callersFunctiongetSearchSpaceForEnd
fragment-generation-utils.js:1104
↓ 2 callersFunctiongetSearchSpaceForStart
fragment-generation-utils.js:1055
↓ 2 callersMethodgetStartSegments
* @return {Segments | Undefined} - the result of segmenting the start search * space using Intl.Segmenter, or undefined if a segmenter was not
fragment-generation-utils.js:1571
↓ 2 callersMethodgetSuffixSegments
* @return {Segments | Undefined} - the result of segmenting the suffix * search space using Intl.Segmenter, or undefined if a segmenter was not
fragment-generation-utils.js:1635
↓ 2 callersFunctioninjectContentScripts
(contentScriptNames)
service_worker.js:58
↓ 2 callersFunctionisNodeVisible
fragment-generation-utils.js:300
↓ 2 callersFunctionisUniquelyIdentifying
fragment-generation-utils.js:1773
↓ 2 callersFunctiononCopy
(info, tab)
service_worker.js:165
↓ 2 callersMethodsetBackwardsEndOffset
* Helper method for doing arithmetic in the backwards search space. * @param {Number} backwardsEndOffset - the desired new value of the start *
fragment-generation-utils.js:1653
↓ 2 callersMethodsetBackwardsPrefixOffset
* Helper method for doing arithmetic in the backwards search space. * @param {Number} backwardsPrefixOffset - the desired new value of the prefix
fragment-generation-utils.js:1672
↓ 2 callersFunctionstartProcessing
(tab)
service_worker.js:128
↓ 1 callersFunctionacceptNodeIfVisibleInRange
(node, range)
fragment-generation-utils.js:327
↓ 1 callersFunctionacceptTextNodeIfVisibleInRange
(node, range)
fragment-generation-utils.js:346
↓ 1 callersFunctioncanUseExactMatch
fragment-generation-utils.js:1795
↓ 1 callersFunctioncontainsBlockBoundary
fragment-generation-utils.js:1880
↓ 1 callersFunctioncopyLink
(linkStyle, url, selectedText, html, linkText)
offscreen.js:3
↓ 1 callersFunctioncopyToClipboard
(url, selection)
content_script.js:92
↓ 1 callersFunctioncreateTextFragment
()
content_script.js:25
↓ 1 callersFunctiondoGenerateFragment
(selection, startTime)
fragment-generation-utils.js:924
↓ 1 callersMethodembiggen
* Shifts the current state such that the candidates for textStart and textEnd * represent more of the possible search spaces. * @return {boolean
fragment-generation-utils.js:1211
↓ 1 callersFunctionexpandRangeEndToWordBound
fragment-generation-utils.js:2265
↓ 1 callersFunctionexpandRangeStartToWordBound
fragment-generation-utils.js:1992
↓ 1 callersFunctionfindRangeFromNodeList
(query, range, textNodes, segmenter)
fragment-generation-utils.js:454
↓ 1 callersFunctionfindWordEndBoundInTextNode
(node, endOffset)
fragment-generation-utils.js:1937
↓ 1 callersFunctionforwardTraverse
(walker, finishedSubtrees)
fragment-generation-utils.js:675
↓ 1 callersFunctiongetAllTextNodes
(root, range)
fragment-generation-utils.js:362
↓ 1 callersFunctiongetElementsIn
* Returns all nodes inside root using the provided filter. * @generator * @param {Node} root - Node where to start the TreeWalker. * @param {Elemen
fragment-generation-utils.js:416
↓ 1 callersFunctiongetFirstTextNode
fragment-generation-utils.js:1840
↓ 1 callersFunctiongetLastTextNode
fragment-generation-utils.js:1860
↓ 1 callersMethodgetNodeIntersectionWithRange
* Calculates the intersection of a node with searchRange and returns a Text * Node with the intersection * @param {Node} node - the node to inte
fragment-generation-utils.js:1750
↓ 1 callersMethodgetNumberOfContextWordsToAdd
* @return {number} - how many words should be added to the prefix and suffix * when embiggening. This changes depending on the current state of
fragment-generation-utils.js:1484
↓ 1 callersMethodgetNumberOfRangeWordsToAdd
* @return {number} - how many words should be added to textStart and textEnd * when embiggening. This changes depending on the current state of
fragment-generation-utils.js:1494
↓ 1 callersFunctiongetTextContent
(nodes, startOffset, endOffset)
fragment-generation-utils.js:391
↓ 1 callersFunctiongetTextNodesInSameBlock
fragment-generation-utils.js:2202
↓ 1 callersFunctionisHiddenUntilFound
fragment-generation-utils.js:273
↓ 1 callersFunctionisWordBounded
(text, startPos, length, segmenter)
fragment-generation-utils.js:576
↓ 1 callersFunctionlog
(...args)
content_script.js:19
↓ 1 callersFunctionlog
(...args)
service_worker.js:52
↓ 1 callersFunctionmakeNewSegmenter
()
fragment-generation-utils.js:649
↓ 1 callersFunctionmakeTextNodeWalker
fragment-generation-utils.js:261
↓ 1 callersFunctionmoveRangeEdgesToTextNodes
fragment-generation-utils.js:2057
↓ 1 callersFunctionprocessTextFragmentDirective
(textFragment, documentToProcess = document)
fragment-generation-utils.js:50
↓ 1 callersFunctionrecordStartTime
fragment-generation-utils.js:1041
↓ 1 callersFunctionreportFailure
(status)
content_script.js:72
↓ 1 callersFunctionreportSuccess
()
content_script.js:54
↓ 1 callersMethodsetExactTextMatch
* Sets up the factory for an exact text match. * * Exactly one of this, setStartAndEndSearchSpace, or setSharedSearchSpace * should be called
fragment-generation-utils.js:1417
↓ 1 callersMethodsetPrefixAndSuffixSearchSpace
* Sets up the factory for context-based matches. * * @param {String} prefixSearchSpace - the string to be used as the search * space for
fragment-generation-utils.js:1433
↓ 1 callersMethodsetSharedSearchSpace
* Sets up the factory for a range-based match with a highlight that doesn't * cross block boundaries. * * Exactly one of this, setStartAndEnd
fragment-generation-utils.js:1398
↓ 1 callersMethodsetStartAndEndSearchSpace
* Sets up the factory for a range-based match with a highlight that crosses * block boundaries. * * Exactly one of this, setSharedSearchSpace
fragment-generation-utils.js:1377
↓ 1 callersFunctionsetupOffscreenDocument
(path)
service_worker.js:24
↓ 1 callersMethodtryToMakeUniqueFragment
* Generates a fragment based on the current state, then tests it for * uniqueness. * @return {TextFragment|Undefined} - a text fragment if the c
fragment-generation-utils.js:1177
↓ 1 callersMethoduseSegmenter
* Sets up the factory to use an instance of Intl.Segmenter when identifying * the start/end of words. |segmenter| is not actually retained; instead
fragment-generation-utils.js:1459
FunctionbackwardTraverse
(walker, finishedSubtrees)
fragment-generation-utils.js:712
Methodconstructor
* Initializes the basic state of the factory. Users should then call exactly * one of setStartAndEndSearchSpace, setSharedSearchSpace, or * setE
fragment-generation-utils.js:1155
FunctiongenerateFragment
(selection, startTime = Date.now())
fragment-generation-utils.js:828
FunctiongenerateFragmentFromRange
(range, startTime = Date.now())
fragment-generation-utils.js:841
FunctionisValidRangeForFragmentGeneration
fragment-generation-utils.js:867
FunctionsetTimeout
fragment-generation-utils.js:793