
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@redbuck/resizable
Advanced tools
pnpm i @redbuck/resizable
<div id="box">
<!-- use data-effect to make element be drag-handler -->
<div class="child resize-item" data-effect="start.x,start.y,end.x,end.y">
<span class="move-rect move-rect-tl" data-effect="start.x,start.y"></span>
<span class="move-rect move-rect-tr" data-effect="end.x,start.y"></span>
<span class="move-rect move-rect-rb" data-effect="end.x,end.y"></span>
<span class="move-rect move-rect-lb" data-effect="start.x,end.y"></span>
<span class="move-line move-line-top" data-effect="start.y"></span>
<span class="move-line move-line-bottom" data-effect="end.y"></span>
<span class="move-line move-line-left" data-effect="start.x"></span>
<span class="move-line move-line-right" data-effect="end.x"></span>
</div>
</div>
<!-- linking default style and of course you can modify it-->
<link rel="stylesheet" href="../dist/index.css">
<script type="module">
import Resizable from '../dist/es/index.js'
const resizer = new Resizable('#box')
resizer.on('effect', console.log)
</script>
| Method | Description | default |
|---|---|---|
| container | The container element or selector | - |
| itemClassName | Which child element under el will effect | resize-item |
| effectManual | Should resizer instance effect dom manual | false |
| getItemOnStart | When drag start, carry the touched element call this function to get which item should be effect | find ancestors(include self) which one`s classList contain itemClassName |
| getEffectOnStart | When drag start, carry the touched element call this function to get effect in this drag | el => el.dataset.effect.split(',') |
| getPointsOnStart | When drag start, carry the touched element call this function to get initial points in this drag | el => el.dataset.effect.split(',') |
| listenerFactory | You can use this option to provide your own Listener | web-listener |
| Method | Description |
|---|---|
| effect | Emitted when drag move , carry the target and it`s shape |
FAQs
`pnpm i @redbuck/resizable`
We found that @redbuck/resizable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.