MCPcopy Index your code
hub / github.com/KyleAMathews/element-resize-event

github.com/KyleAMathews/element-resize-event @v3.0.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.6 ↗ · + Follow
9 symbols 10 edges 4 files 0 documented · 0% 1 cross-repo links updated 4y ago★ 1763 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

element-resize-event

Library to make it easy to listen for element resize events

Code borrowed from a blog post by backalleycoder.com.

Install

npm install element-resize-event

Dependencies

This library depends on the availability of requestAnimationFrame and cancelAnimationFrame

Usage

var elementResizeEvent = require("element-resize-event")

var element = document.getElementById("resize")

elementResizeEvent(element, function () {
  console.log("resized!")
  console.log(element.offsetWidth)
})

Unbinding The Event Listener

var unbind = require("element-resize-event").unbind

unbind(element)

Core symbols most depended-on inside this repo

s
called by 1
example/bundle.js
resizeListener
called by 0
index.js
_exports
called by 0
index.js
objectLoad
called by 0
index.js
onResize
called by 0
example/index.js
onResize
called by 0
example/bundle.js
resizeListener
called by 0
example/bundle.js
exports
called by 0
example/bundle.js

Shape

Function 9

Languages

TypeScript100%

Modules by API surface

example/bundle.js5 symbols
index.js3 symbols
example/index.js1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add element-resize-event \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact