A collection of utilities, classes, functions and abstracts made for the browser and babel compatible.
npm i @squirrel-forge/ui-util
import { Class, function } from '@squirrel-forge/ui-util';
The documentation is also included in the package.
Package contents listing by language and namespace.
- Javascript
- Animation
- afterPaint()
- cssTransition()
- Easing()
- holdElementViewportPosition()
- scrollComplete()
- Scroller
- scrollTo()
- [scrollTrigger()]
- [scrollTriggerAll()]
- Slide functions
- Array
- [Data]
- [LStorage]
- [saveBlobAs()]
- Dev
- DOM
- Error
- Exception
- [ExceptionHandler]
- Events
- bindMultiClick()
- bindNodeList()
- CallbackEvents
- [copyToClipboard()]
- [copyToClipboardFallback()]
- debounce()
- docReady()
- Draggables()
- EventDispatcher
- [hasTouch()]
- [poll()]
- getFocusable
- tabFocusLock
- HTTP
- AsyncRequest
- [CookieManager]
- JsonP
- LocationManager
- Layout
- getScrollbarWidth()
- getVisibility()
- [measureText()]
- Logic
- Number
- convertBytes()
- gcd()
- isEven()
- isFloat()
- leadingZeros()
- [orientation()]
- rand()
- [Ratio]
- [rgb2hex()]
- round()
- [snapValue()]
- Object
- cloneObject()
- isPojo()
- mergeObject()
- [objectEmpty()]
- strAccess()
- strCreate()
- String
- colorand()
- escapeHTML()
- [hex2rgb()]
- isValidFunctionName()
- normalizePath()
- [rgba2hex()]
- simpleReplace()
- str2node()
- str2time()
- strand()
- [strCamel2Dash()]
- strSlug()
- [strStyle()]
- trimChar()
- [rtrimChar()]
- [ltrimChar()]
- ucfirst()
- Var
- Animation
If you encounter any issues, please report here.
Check the sourcecode on github for detailed comments.