MCPcopy Create free account

hub / github.com/FallenMax/smart-toc / functions

Functions135 in github.com/FallenMax/smart-toc

↓ 29 callersMethodmap
(mapper: (val: T) => V)
src/content/util/stream.ts:186
↓ 19 callersMethodlog
(name: string)
src/content/util/stream.ts:302
↓ 18 callersMethodsubscribe
(listener: StreamListener<T>, emitCurrent = true)
src/content/util/stream.ts:171
↓ 14 callersMethodfilter
(predict: (val: T) => boolean)
src/content/util/stream.ts:243
↓ 7 callersMethodunique
()
src/content/util/stream.ts:197
↓ 6 callersFunctionnum
(size: string | number | null = '0')
src/content/util/dom/px.ts:2
↓ 6 callersFunctionset
(classNames: string, delay?: number)
src/content/util/toast.ts:21
↓ 5 callersFunctiondraw
( elem: HTMLElement | HTMLElement[] | null | undefined, color = 'red', )
src/content/util/debug.ts:1
↓ 5 callersFunctiontoArray
( arr: NodeListOf<T> | HTMLCollectionOf<Element>, )
src/content/util/dom/to_array.ts:1
↓ 4 callersFunctioncallback
()
src/content/toc.ts:280
↓ 3 callersFunctioncreateLogger
(name: string)
src/content/util/logger.ts:8
↓ 3 callersFunctiongetLogger
(fnName: string)
src/content/util/logger.ts:44
↓ 3 callersFunctiongetScrollTop
(elem: HTMLElement)
src/content/lib/scroll.ts:4
↓ 3 callersMethodmerge
( ...streams: [...StreamTuple<T>] )
src/content/util/stream.ts:96
↓ 3 callersFunctionsetScrollTop
(elem: HTMLElement, val: number)
src/content/lib/scroll.ts:12
↓ 2 callersFunctionHeadingList
(nodes: HeadingNode[], { isRoot = false } = {})
src/content/ui/toc_content.ts:114
↓ 2 callersFunctionaddCSS
(css: string, id: string)
src/content/util/dom/css.ts:25
↓ 2 callersFunctionapplyStyle
(elem: HTMLElement, style = {}, reset = false)
src/content/util/dom/css.ts:3
↓ 2 callersFunctionassert
(condition: any, message: string)
src/content/util/assert.ts:1
↓ 2 callersFunctioncanScroll
(el: HTMLElement)
src/content/lib/scroll.ts:21
↓ 2 callersMethodcombine
(...streams: [...StreamTuple<T>])
src/content/util/stream.ts:70
↓ 2 callersFunctioncreateDecorator
({ onCalled, onReturned, onError, fnName, self = null, }: DecoratorOptions<T>)
src/content/util/decorator.ts:21
↓ 2 callersFunctionemit
(event: K, payload?: EventMap[K])
src/content/util/event.ts:38
↓ 2 callersFunctionexecOnCurrentTab
(command)
src/background/background.js:7
↓ 2 callersFunctionextractHeadings
(articleDom: HTMLElement)
src/content/lib/extract.ts:158
↓ 2 callersFunctionfindFixedParent
(elem: HTMLElement | null)
src/content/toc.ts:173
↓ 2 callersMethodflush
()
src/content/util/stream.ts:328
↓ 2 callersMethodfromEvent
( elem: { addEventListener( type: string, listener: (payload: T | undefined) => void
src/content/util/stream.ts:138
↓ 2 callersFunctiongetElemsCommonLeft
(elems: HTMLElement[])
src/content/lib/extract.ts:43
↓ 2 callersFunctionhide
()
src/content/toc.ts:348
↓ 2 callersFunctionleaveReadableMode
()
src/content/lib/readable.ts:119
↓ 2 callersFunctiononError
(error)
src/content/util/logger.ts:30
↓ 2 callersFunctiononReturned
(result)
src/content/util/logger.ts:27
↓ 2 callersFunctionpx
(size: string | number = 0)
src/content/util/dom/px.ts:12
↓ 2 callersFunctionscrollToHeading
(headingIndex: number)
src/content/toc.ts:270
↓ 2 callersFunctionsmoothScroll
({ target, scroller, topMargin = 0, maxDuration = 300, callback, }: { target: HTMLElement scroll
src/content/lib/scroll.ts:46
↓ 2 callersFunctionstackTop
()
src/content/ui/toc_content.ts:20
↓ 2 callersFunctionstart
()
src/content/index.ts:12
↓ 2 callersMethodstartsWith
(value: S)
src/content/util/stream.ts:166
↓ 2 callersFunctionstop
(e: Event)
src/content/ui/handle.ts:8
↓ 2 callersMethodthrottle
(delay: number)
src/content/util/stream.ts:277
↓ 2 callersFunctiontoDash
(str: string)
src/content/util/dom/css.ts:4
↓ 2 callersMethodupdate
(val: T)
src/content/util/stream.ts:316
↓ 1 callersFunctionactiveHeadingStream
({ scroller, $isShown, $content, $topbarHeight, addDisposer, }: { scroller: HTMLElement $isShown
src/content/toc.ts:22
↓ 1 callersFunctionappendExtender
(content: Content, topbarHeight: number)
src/content/lib/readable.ts:11
↓ 1 callersFunctionapplyReadableStyle
(article: HTMLElement)
src/content/lib/readable.ts:71
↓ 1 callersMethodasStream
()
src/content/util/stream.ts:336
↓ 1 callersFunctionbetween
(min: number, value: number, max: number)
src/content/util/math/between.ts:1
↓ 1 callersFunctioncalcActiveHeading
({ article, scroller, headings, topbarHeight, }: { article: Article scroller: Scroll
src/content/toc.ts:35
↓ 1 callersFunctioncalcPlacement
(article: Article)
src/content/ui/index.ts:12
↓ 1 callersFunctioncalcStyle
(options: { article: Article scroller: Scroller offset: Offset topMargin: number placement: 'left' |
src/content/ui/index.ts:24
↓ 1 callersFunctioncontentStream
({ $isShown, $periodicCheck, $triggerContentChange, article, scroller, addDisposer, }: { article
src/content/toc.ts:100
↓ 1 callersFunctioncreateEventEmitter
()
src/content/util/event.ts:1
↓ 1 callersFunctioncreateToc
(options: { article: HTMLElement preference: TocPreference })
src/content/toc.ts:212
↓ 1 callersFunctiondecorateObject
( object: T, options: DecoratorOptions<any>, )
src/content/util/decorator.ts:71
↓ 1 callersFunctiondecorator
(fn)
src/content/util/decorator.ts:28
↓ 1 callersFunctiondepthOf
(elem: HTMLElement | null)
src/content/util/dom/depth.ts:3
↓ 1 callersMethodemit
(val: T)
src/content/util/stream.ts:282
↓ 1 callersFunctionenterReadableMode
( content: Content, { topbarHeight }: { topbarHeight: number }, )
src/content/lib/readable.ts:106
↓ 1 callersFunctionextractArticle
()
src/content/lib/extract.ts:66
↓ 1 callersMethodflushDependent
()
src/content/util/stream.ts:14
↓ 1 callersMethodfromInterval
( interval: number, callback?: (unsubscribe: () => void) => void, )
src/content/util/stream.ts:126
↓ 1 callersFunctiongetAncestors
(elem: HTMLElement, maxDepth = -1)
src/content/lib/extract.ts:7
↓ 1 callersFunctiongetBottomHeading
(headings: Heading[])
src/content/lib/readable.ts:25
↓ 1 callersFunctiongetContentWindow
()
src/content/lib/iframe.ts:14
↓ 1 callersFunctiongetCurrentTab
(cb)
src/background/background.js:1
↓ 1 callersFunctiongetIframes
(wnd: Window)
src/content/lib/iframe.ts:1
↓ 1 callersFunctiongetScrollElement
(elem: HTMLElement)
src/content/lib/scroll.ts:28
↓ 1 callersFunctiongetTopbarHeight
(targetElem: HTMLElement)
src/content/toc.ts:172
↓ 1 callersFunctionisFixed
(elem: HTMLElement)
src/content/toc.ts:174
↓ 1 callersFunctionisHeadingGroupVisible
(group: HeadingGroup)
src/content/lib/extract.ts:166
↓ 1 callersFunctionisPromise
(o: any)
src/content/util/decorator.ts:1
↓ 1 callersFunctionisTooManyHeadings
()
src/content/ui/index.ts:97
↓ 1 callersFunctionisTooNarrow
(e: HTMLElement)
src/content/lib/extract.ts:105
↓ 1 callersFunctionisVisible
(elem: HTMLElement)
src/content/lib/extract.ts:159
↓ 1 callersFunctiononCalled
(params)
src/content/util/logger.ts:23
↓ 1 callersMethodonDrag
(userOffset: Offset)
src/content/ui/handle.ts:15
↓ 1 callersFunctiononDragStart
( e: MouseEvent & MithrilEvent, vnode: m.Vnode<HandleAttrs>, )
src/content/ui/handle.ts:32
↓ 1 callersFunctionremoveExtender
()
src/content/lib/readable.ts:58
↓ 1 callersFunctionremoveReadableStyle
()
src/content/lib/readable.ts:95
↓ 1 callersFunctionrevealActiveHeading
( tocPanelDom: HTMLElement, headingDom: HTMLElement, )
src/content/ui/toc_content.ts:76
↓ 1 callersMethodscan
( this: Stream<T>, reducer: (last: V, current: T) => V, initValue: V, )
src/content/util/stream.ts:218
↓ 1 callersFunctionsetClass
( elem: HTMLElement, names: string, delay?: number, )
src/content/util/toast.ts:4
↓ 1 callersFunctionshow
()
src/content/toc.ts:345
↓ 1 callersFunctionshowToast
(msg: string)
src/content/util/toast.ts:19
↓ 1 callersFunctiontoTree
(headings: Heading[], activeHeading: number)
src/content/ui/toc_content.ts:17
↓ 1 callersFunctiontopbarStream
($triggerTopbarMeasure: Stream<HTMLElement>)
src/content/toc.ts:171
↓ 1 callersMethodunsubscribe
(listener: StreamListener<T>)
src/content/util/stream.ts:182
↓ 1 callersMethodupdateDependent
(val: T)
src/content/util/stream.ts:13
FunctionHandle
(vnode)
src/content/ui/handle.ts:17
FunctionHeadingItem
( { heading, children, isActive }: HeadingNode, index: number, )
src/content/ui/toc_content.ts:135
FunctionTocContent
()
src/content/ui/toc_content.ts:73
FunctionacceptNode
(node: HTMLElement)
src/content/lib/extract.ts:200
FunctionaddDisposer
(dispose: () => void)
src/content/toc.ts:221
MethodallHasValue
()
src/content/util/stream.ts:72
FunctionassertNever
(o: never)
src/content/util/assert.ts:7
Methodconstructor
(value: T | undefined, name?: string)
src/content/util/stream.ts:38
Methodcreate
(init?: T | undefined, name?: string)
src/content/util/stream.ts:47
FunctioncreateLoggingDecorator
( name: string, self: any = null, )
src/content/util/logger.ts:17
Methoddebounce
(delay: number)
src/content/util/stream.ts:263
next →1–100 of 135, ranked by callers