1.2.20 • Published 9 months ago

@web-package/utility v1.2.20

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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 a intrinsic size(i.e. width, height) of a given element.
ElementUtil.intrinsicSizeOf(target);

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

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

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

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

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

9 months ago

1.2.10

10 months ago

1.2.0

10 months ago

1.1.10

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago