Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TimvanScherpenzeel/spars
/ functions
Functions
170 in github.com/TimvanScherpenzeel/spars
⨍
Functions
170
◇
Types & classes
37
Method
constructor
* Configure the fixed cache size * * @param size Size of the cache
src/utilities/memoize.ts:19
Method
constructor
(options: IAssetLoaderOptions)
src/loaders/AssetLoader.ts:75
Method
constructor
* Sets various configuration options
src/caching/PersistentCache.ts:50
Method
constructor
* Sets various configuration options * * @param size Maximum amount of threads to use
src/threadPool/index.ts:21
Method
constructor
* Sets various configuration options * * @param size Maximum amount of threads to use
src/threadPool/TaskManager.ts:46
Function
countPendingTasks
(task: Task, property: string, obj: any[])
src/threadPool/worklet.ts:82
Function
easeInCirc
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:359
Function
easeInExpo
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:290
Function
easeInOutCirc
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:393
Function
easeInOutExpo
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:328
Function
easeInOutQuad
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:43
Function
easeInOutQuart
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:157
Function
easeInOutQuint
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:216
Function
easeInOutSine
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:273
Function
easeInQuad
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:9
Function
easeInQuart
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:123
Function
easeInQuint
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:180
Function
easeInSine
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:239
Function
easeOutCirc
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:376
Function
easeOutExpo
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:309
Function
easeOutQuad
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:26
Function
easeOutQuart
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:140
Function
easeOutQuint
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:197
Function
easeOutSine
( time: number, beginValue: number, changeInValue: number, duration: number )
src/easings/index.ts:256
Function
exitFullscreen
()
src/polyfills/fullScreen.ts:49
Function
exitPointerLock
()
src/polyfills/pointerLock.ts:46
Function
fibonacci
(n: number)
test/utilities/memoize.test.ts:19
Function
fullscreenElement
()
src/polyfills/fullScreen.ts:66
Function
fullscreenSupported
()
src/polyfills/fullScreen.ts:59
Method
get
* Gets a { key: value } pair by key in the persistent cache * * @param key Key of cache entry to get
src/caching/PersistentCache.ts:85
Method
getKeys
* Gets all { key: value } pairs in the persistent cache
src/caching/PersistentCache.ts:104
Function
hidden
()
src/events/onVisibilityChange.ts:28
Method
isEmpty
* Check if the heap container is empty
src/frameScheduler/PriorityUniqueQueue.ts:75
Function
kindOf
(arg: any)
test/utilities/memoize.test.ts:78
Function
later
()
src/utilities/debounce.ts:17
Method
length
* Get the current length of the queue
src/dataStructures/Deque.ts:20
Method
length
* Get the current length of the bitfield
src/dataStructures/Bitfield.ts:16
Function
mGetQueryParameters
(url = window.location.search)
src/utilities/getQueryParameters.ts:15
Function
mHashString
(str: string)
src/utilities/hashString.ts:21
Function
monadic
* A function which accepts a single argument * * @param fn Function to memoize * @param cache Cache to use * @param serializer Serializer to use
src/utilities/memoize.ts:63
Function
nToThePower
(n: number, power: number)
test/utilities/memoize.test.ts:65
Method
off
* Stop the frame ticker
src/frameTicker/index.ts:44
Function
onConnectionChangeHandler
* Monitor connection changes and speed
src/events/onConnectionChange.ts:10
Function
onKeyDownChangeHandler
* Monitor keydown changes
src/events/onKeyChange.ts:14
Function
onKeyUpChangeHandler
* Monitor keyup changes
src/events/onKeyChange.ts:23
Function
onOrientationChangeHandler
* Monitor orientation changes
src/events/onOrientationChange.ts:30
Function
onVisibilityChangeHandler
* Monitor visibility changes
src/events/onVisibilityChange.ts:52
Function
onWindowSizeChangeHandler
* Monitor window size changes
src/events/onWindowSizeChange.ts:18
Function
onfullscreenchange
()
src/polyfills/fullScreen.ts:73
Function
onfullscreenerror
()
src/polyfills/fullScreen.ts:81
Function
onpointerlockchange
()
src/polyfills/pointerLock.ts:75
Function
onpointerlockerror
()
src/polyfills/pointerLock.ts:83
Function
onvisibilitychange
()
src/events/onVisibilityChange.ts:40
Function
pointerLockElement
()
src/polyfills/pointerLock.ts:68
Function
pointerlockEnabled
()
src/polyfills/pointerLock.ts:56
Function
preventInteraction
(event: Event)
src/scrolling/scrollTo.ts:7
Function
recordAnalyticsEvent
(record = {})
src/analytics/index.ts:99
Function
registerAnalytics
(trackingIdentifier: string)
src/analytics/index.ts:10
Function
registerTask
(name: string, taskProcessor: () => void)
src/threadPool/worklet.ts:287
Function
replaceTaskIdWithResult
(task: Task, property: any, obj: any)
src/threadPool/worklet.ts:94
Method
run
* Run a task on a compute module from the task pool * * @param taskName Name of the compute module to execute in the task queue * @param args
src/threadPool/index.ts:34
Function
runTasks
()
src/frameScheduler/index.ts:57
Function
scrollTo
({ destinationY = 0, duration = 1250, }: { destinationY: number; duration: number; })
src/scrolling/scrollTo.ts:26
Function
scrollToTopOnReload
()
src/scrolling/scrollToTopOnReload.ts:4
Function
serializerDefault
(...args: any)
src/utilities/memoize.ts:103
Method
set
* Sets a { key: value } pair in the persistent cache * * NOTE: In order to store ArrayBuffers in IndexedDB you will need to convert them to Blob
src/caching/PersistentCache.ts:68
Method
statusReceived
* Status of the thread (communicates with the individual thread) * * @param worker Active thread * @param statuses Any statusses to report
src/threadPool/TaskManager.ts:214
Method
switchEndianness
(value: number)
src/loaders/AssetLoader.ts:688
Function
unlock
()
src/audio/checkAutoplay.ts:73
Function
variadic
* A function which accepts a variable number of arguments * * @param fn Function to memoize * @param cache Cache to use * @param serializer Serial
src/utilities/memoize.ts:84
← previous
101–170 of 170, ranked by callers