MCPcopy Create free account

hub / github.com/TimvanScherpenzeel/spars / functions

Functions170 in github.com/TimvanScherpenzeel/spars

↓ 84 callersFunctiongetParameter
( gl: WebGLRenderingContext | WebGL2RenderingContext, parameter: GLenum )
src/features/browserFeatures/getWebGLFeatures.ts:41
↓ 40 callersMethodpush
* Add an item to the tail of the internal list * * @param item Item to insert
src/dataStructures/Deque.ts:129
↓ 36 callersFunctiongetShaderPrecisionFormat
( gl: WebGLRenderingContext | WebGL2RenderingContext, shaderType: GLenum, precisionType: GLenum )
src/features/browserFeatures/getWebGLFeatures.ts:53
↓ 27 callersMethodtoString
* Get the bitfield as a string representation
src/dataStructures/Bitfield.ts:85
↓ 25 callersFunctiongetExtension
( gl: WebGLRenderingContext | WebGL2RenderingContext, extension: string )
src/features/browserFeatures/getWebGLFeatures.ts:65
↓ 23 callersMethodunshift
* Add an item to the head of the internal list * * @param item Item to insert
src/dataStructures/Deque.ts:86
↓ 18 callersMethodpeekIndex
* Returns the item at the specified index from the internal list * You can specify a negative index to peek at values from the end of the internal
src/dataStructures/Deque.ts:43
↓ 18 callersMethodset
* Set a bit index with value (positive number) * * 1 << 0 = 1 = 0b00000000000000000000000000000001 * 1 << 1 = 2 = 0
src/dataStructures/Bitfield.ts:53
↓ 17 callersMethodget
* Get a bit value by index (positive number) * * @param index Index of bit
src/dataStructures/Bitfield.ts:35
↓ 16 callersFunctionassert
(condition: any, message: string)
src/utilities/assert.ts:10
↓ 15 callersMethodpop
* Remove and return the last item on the internal list
src/dataStructures/Deque.ts:150
↓ 12 callersMethodshift
* Remove and return the first item on the internal list
src/dataStructures/Deque.ts:106
↓ 11 callersMethodwhen
(today: Date)
test/decorators/@Memoize.test.ts:15
↓ 10 callersMethodtoArray
* Get the internal list as array
src/dataStructures/Deque.ts:233
↓ 9 callersFunctionmemoize
( fn: any, { size = 3, type = 'monadic', }: { size?: number; type?: 'monadic' | 'variadi
src/utilities/memoize.ts:111
↓ 8 callersFunctioncanPlay
(type: HTMLAudioElement | HTMLVideoElement, mimeType: string)
src/features/browserFeatures/getMediaFeatures.ts:8
↓ 8 callersMethodremove
* Remove and return the item at the specified index from the internal list * * @param index
src/dataStructures/Deque.ts:177
↓ 5 callersFunctionconvertBlobToArrayBuffer
(blob: Blob)
src/utilities/convertBlobToArrayBuffer.ts:6
↓ 4 callersFunctionconvertArrayBufferToBlob
(buffer: ArrayBuffer, type: string = '')
src/utilities/convertArrayBufferToBlob.ts:7
↓ 4 callersFunctiongetUUID
()
src/utilities/getUUID.ts:45
↓ 4 callersMethodgetWorker
* Get an active thread by id * * @param id Id of the thread to get
src/threadPool/TaskManager.ts:262
↓ 4 callersMethodpeekHead
* Returns the head item of the internal list without removing it
src/dataStructures/Deque.ts:66
↓ 4 callersMethodpeekTail
* Returns the tail item of the internal list without removing it
src/dataStructures/Deque.ts:77
↓ 3 callersMethodgetSize
* Get the number of items in the internal list
src/dataStructures/Deque.ts:240
↓ 3 callersFunctionisAllowedAsKey
(key: any)
src/caching/PersistentCache.ts:15
↓ 3 callersMethodisEmpty
* Check if the internal list is empty
src/dataStructures/Deque.ts:226
↓ 3 callersMethodisEmpty
* Check if the linked list has no link nodes
src/frameScheduler/SinglyLinkedList.ts:55
↓ 3 callersMethodpairIsInCorrectOrder
* Verify is a pair is ordered correctly * * @param firstElement First queue item * @param secondElement Second queue item
src/frameScheduler/PriorityUniqueQueue.ts:161
↓ 3 callersFunctionplugins
({ isUMD = false, isCJS = false, isES = false })
rollup.config.ts:18
↓ 2 callersMethodaddWorker
* Add a thread to the thread pool
src/threadPool/TaskManager.ts:273
↓ 2 callersMethodcopyList
* Copy the internal list to a new list * * @param shouldDoFullCopy Should it do a full copy
src/dataStructures/Deque.ts:273
↓ 2 callersFunctioncreateAudioContext
(desiredSampleRate = 44100)
src/audio/createAudioContext.ts:9
↓ 2 callersFunctiondebounce
(func: any, wait: number, immediate: boolean = false)
src/utilities/debounce.ts:9
↓ 2 callersFunctionflushResultStatuses
()
src/threadPool/worklet.ts:199
↓ 2 callersMethodget
* Get a cache entry from the cache by key * * @param key Key to get cache entry by
src/utilities/memoize.ts:28
↓ 2 callersFunctiongetCookie
(key: string)
src/cookies/index.ts:36
↓ 2 callersFunctiongetRandomValues
()
src/utilities/getUUID.ts:7
↓ 2 callersMethodgrowList
* Double the length of the internal list
src/dataStructures/Deque.ts:255
↓ 2 callersFunctionnext
()
src/threadPool/worklet.ts:122
↓ 2 callersMethodpush
* Push a list node at the tail of the linked list * * @param data Data to add to the list node
src/frameScheduler/SinglyLinkedList.ts:22
↓ 2 callersFunctionrunDefer
()
src/frameScheduler/index.ts:30
↓ 2 callersMethodset
* Set a cache entry by key * * @param key Key to set cache entry by * @param value Value to set cache entry to
src/utilities/memoize.ts:38
↓ 2 callersMethodshrinkList
* Shrink the internal list
src/dataStructures/Deque.ts:300
↓ 2 callersMethodswap
* Swap the pointer to the item in the heap * * @param indexA First index * @param indexB Second index
src/frameScheduler/PriorityUniqueQueue.ts:171
↓ 2 callersFunctionwalk
(obj: any[], action: (value: Task, i: string, obj: any[]) => void)
src/threadPool/worklet.ts:56
↓ 2 callersFunctionwalkReduce
( obj: any, reducer: any, accumulator?: any, index?: any, pa
src/threadPool/worklet.ts:33
↓ 1 callersFunctionMemoize
()
src/decorators/@Memoize.ts:8
↓ 1 callersMethodadd
* Add a queue item to the priority queue * * @param priority Priority of the queue item * @param value Task to store
src/frameScheduler/PriorityUniqueQueue.ts:66
↓ 1 callersFunctionaddTask
(callback: () => void, priority: number)
src/frameScheduler/index.ts:43
↓ 1 callersMethodaddWorklet
* Add a compute module to the task pool * * @param code Compute module source code
src/threadPool/TaskManager.ts:147
↓ 1 callersFunctioncallback
()
src/analytics/index.ts:106
↓ 1 callersMethodcancelTask
* Cancel a task * * Cancellation isn't guaranteed, however cancellation of a task * known to have been already completed will return `false`.
src/threadPool/TaskManager.ts:161
↓ 1 callersFunctioncheckAutoplay
(element?: HTMLElement)
src/audio/checkAutoplay.ts:31
↓ 1 callersFunctioncreateFrameScheduler
()
src/frameScheduler/index.ts:26
↓ 1 callersMethoddelete
* Delete a { key: value } pair by key in the persistent cache * * @param key Key of cache entry to delete
src/caching/PersistentCache.ts:123
↓ 1 callersFunctiondeleteCookie
( key: string, path: string = '/', domain: string = window.location.hostname.replace('www.', '') )
src/cookies/index.ts:72
↓ 1 callersMethoddispose
* Dispose all active threads
src/threadPool/index.ts:61
↓ 1 callersFunctioneaseInCubic
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:66
↓ 1 callersFunctioneaseInOutCubic
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:100
↓ 1 callersFunctioneaseOutCubic
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:83
↓ 1 callersMethodexec
* Execute a task * * @param task Task to execute * @param taskName Name of the task to execute * @param args Any arguments that have been
src/threadPool/TaskManager.ts:57
↓ 1 callersFunctionextractVersion
(uuid: string)
test/utilities/getUUID.test.ts:8
↓ 1 callersMethodfreeWorkerTask
* Mark a thread as free for new computation * * @param worker Thread to mark as free
src/threadPool/TaskManager.ts:248
↓ 1 callersFunctionget
()
src/threadPool/Task.ts:33
↓ 1 callersMethodget
* Get a priority slot * * @param priority Priority slot
src/frameScheduler/PriorityUniqueQueue.ts:84
↓ 1 callersMethodgetNextWorker
* If no suitable worker for the task was found get the next available one
src/threadPool/TaskManager.ts:378
↓ 1 callersFunctiongetOrientation
()
src/events/onOrientationChange.ts:12
↓ 1 callersMethodgetTaskDependencies
* Get and collect any dependencies of a task * * @param args Task dependencies
src/threadPool/TaskManager.ts:338
↓ 1 callersMethodgetTaskResult
* Get a task result * * @param taskId Id of task to get result of
src/threadPool/TaskManager.ts:187
↓ 1 callersMethodgetTaskWorker
* Get the most suitable worker for this task (keep dependencies in mind) * * @param taskName Name of the task * @param args Any arguments tha
src/threadPool/TaskManager.ts:354
↓ 1 callersMethodgetWorkerForTask
* Get the most suitable worker for this task (keep dependencies in mind) * * @param taskId Id of the task
src/threadPool/TaskManager.ts:323
↓ 1 callersFunctionnewFunction
(name: string, fn: () => any)
src/decorators/@Memoize.ts:25
↓ 1 callersFunctionnewGetter
(name: string, fn: () => any)
src/decorators/@Memoize.ts:36
↓ 1 callersMethodon
* Start the frame ticker
src/frameTicker/index.ts:36
↓ 1 callersMethodpeek
* Peek at the heap container head node
src/frameScheduler/PriorityUniqueQueue.ts:35
↓ 1 callersMethodpoll
* Poll the heap container for the next queue item in the heap container
src/frameScheduler/PriorityUniqueQueue.ts:42
↓ 1 callersMethodprocess
()
src/threadPool/TaskManager.ts:296
↓ 1 callersMethodpushDown
* Push a queue item down the heap
src/frameScheduler/PriorityUniqueQueue.ts:127
↓ 1 callersMethodpushUp
* Push a queue item up the heap
src/frameScheduler/PriorityUniqueQueue.ts:109
↓ 1 callersFunctionrealm
(code: string, scope: any)
src/threadPool/worklet.ts:13
↓ 1 callersMethodresize
* Resize the bitfield * * @param size New size of the bitfield
src/dataStructures/Bitfield.ts:72
↓ 1 callersMethodrising
* Move the priority pointer
src/frameScheduler/PriorityUniqueQueue.ts:91
↓ 1 callersFunctionscroll
()
src/scrolling/scrollTo.ts:46
↓ 1 callersFunctionsetCookie
( key: string, value: string, expiryDays: number = 365, path: string = '/', domain: string = window.
src/cookies/index.ts:13
↓ 1 callersMethodshift
* Shift a list node off of the head of the linked list
src/frameScheduler/SinglyLinkedList.ts:42
↓ 1 callersFunctionvalue
()
src/threadPool/Task.ts:47
↓ 1 callersFunctionvanillaFibonacci
(n: number)
test/utilities/memoize.test.ts:10
Function$$TASK_WORKLET_WAIT
(promise: Promise<any>)
src/threadPool/worklet.ts:283
Function$$cancel
(id: number)
src/threadPool/worklet.ts:330
Function$$eval
(code: string)
src/threadPool/worklet.ts:279
Function$$getResult
(id: number)
src/threadPool/worklet.ts:311
Function$$init
(identifier: string, worklets: string[])
src/threadPool/worklet.ts:273
Function$$task
(id: number)
src/threadPool/worklet.ts:298
Methodadd
* Add a compute module to the task pool * * @param moduleName Name of the compute module to make available to the task * @param moduleClass C
src/threadPool/index.ts:52
Functionaddition
(numb: number)
test/utilities/memoize.test.ts:33
Methodclear
* Clear the entire persistent cache from { key: value } pairs
src/caching/PersistentCache.ts:136
FunctioncollectTransferrables
(transfer: any[], value: any)
src/threadPool/worklet.ts:72
Methodconstructor
* Optionally populate the internal list with an array * * @param array Array with items to initialise the internal list with
src/dataStructures/Deque.ts:29
Methodconstructor
* Set the size of the bitfield and initializes the internal data buffer * * @param size Size of the bitfield
src/dataStructures/Bitfield.ts:25
Methodconstructor
* Upon initial load check the cookies for the audio manager configuration
src/audio/audioManager.ts:24
next →1–100 of 170, ranked by callers