Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web-package/utility

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web-package/utility

This is package that provides templates that can significantly reduce CSS development works in a react development environment.

  • 1.2.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Web Utility

Versionv1.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 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;

Keywords

FAQs

Package last updated on 15 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc