type-enforcer-ui

An extension of type-enforcer with UI related data types and enforcer functions

Usage no npm install needed!

<script type="module">
  import typeEnforcerUi from 'https://cdn.skypack.dev/type-enforcer-ui';
</script>

README

Type Enforcer Ui

An extension of type-enforcer with UI related data types and enforcer functions

npm build coverage deps size vulnerabilities license


Installation

npm install type-enforcer-ui

Requires Babel 7.2+


About

type-enforcer-ui re-exports everything from type-enforcer and type-enforcer-math.


Objects

is : object

Utility functions for checking if something is a particular data type. Includes all the checks from type-enforcer and type-enforcer-math.

enforce : object

Utility functions for enforcing data types. Includes all the enforcers from type-enforcer and type-enforcer-math.

method : object

Enforce data types and remove common boilerplate code on class methods. Includes all the methods from type-enforcer and type-enforcer-math.


Classes

CssSize

A class for handling css size conversions

DockPoint

Allows the designation of a specific point relative to an object.

Thickness

Replicates the functionality of css border-width, margin, and padding, or anything that requires top, right, bottom, and left css sizes.

windowResize[Queue](https://github.com/DarrenPaulWright/type-enforcer/blob/master/docs/Queue.md)

Executes callbacks whenever the screen is resized (throttled at 100ms) or explicitly triggered