element-size

WebJar for element-size

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

element-size
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

element-size
WebJar for element-size
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hughsk/element-size

Download element-size

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/element-size/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>element-size</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/element-size/
implementation 'org.webjars.npm:element-size:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/element-size/
implementation ("org.webjars.npm:element-size:1.1.1")
'org.webjars.npm:element-size:jar:1.1.1'
<dependency org="org.webjars.npm" name="element-size" rev="1.1.1">
  <artifact name="element-size" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='element-size', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "element-size" % "1.1.1"
[org.webjars.npm/element-size "1.1.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

element-size stable

Get the size of an element in pixels, including margins

Usage

NPM

[width, height] = size(element)

Given a DOM element, return an array containing that element's width and height in pixels.

License

MIT. See LICENSE.md for details.

Versions

Version
1.1.1