Detalhes do pacote

type-enforcer-ui

DarrenPaulWright165MIT1.2.3

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

type, enforce, method, UI

readme (leia-me)

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.

windowResizeQueue

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

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning

1.0.1 - 2019-12-06

Security

  • Updated dependencies

1.0.0

Added

  • CssSize, DockPoint, Element, and Thickness classes and functions from type-enforcer