Skip to content

This package provides additional Util features for the Web standard API.

License

Notifications You must be signed in to change notification settings

web-packages/web_utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Utility

Version v1.2.20

Introduction

This package provides additional Util features for the Web standard API.

See Also, If you want the change-log by version for this package. refer to Change Log for details.

Usage

import { ElementUtil, DOMRectUtil } from "@web-package/utility";

// Gets an intrinsic size(i.e. width, height) of a given element.
ElementUtil.intrinsicSizeOf(target);

// Gets an intrinsic size and DOMRect values of a given element.
DOMRectUtil.intrinsicOf(target);

// Gets an intrinsic size(i.e. width, height) of an element by getter calling.
const size = target.intrinsicSize;

// Gets an intrinsic size and DOMRect values of an element by getter calling.
const rect = target.intrinsicRect;

// Gets an intrinsic width of an element by getter calling.
const width = target.intrinsicWidth;

// Gets an intrinsic height of an element by getter calling.
const height = target.intrinsicHeight;

About

This package provides additional Util features for the Web standard API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published