
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
selectable-grid
Advanced tools
npm install --save selectable-grid
import SelectableGrid from 'selectable-grid'
const init = () => {
const img = document.querySelector('img')
if (!img) {
return
}
img.addEventListener('load', () => {
new SelectableGrid({
container: img,
cellCount: 15,
})
})
}
init()
| Property | Required | Type | Description |
|---|---|---|---|
container | true | HTMLImageElement | HTMLVideoElement | img or video node |
cellCount | true | number | count of the cell in the grid |
mouseMove | false | function(area: {x: number, y: number, w: number, h: number}, selectArea: {x: number, y: number, w: number, h: number}, e: MouseEvent){} | handler of mouse move on the grid |
mouseDown | false | (point: {x: number, y:number}, e: MouseEvent) => void | handler of mouse down on the grid |
mouseUp | false | (area: {x: number, y: number, w: number, h: number}, selectArea: {x: number, y: number, w: number, h: number}, e: MouseEvent) => void | handler of mouse up on the grid |
cellsStyles | false | {fillStyle: string} | color like as color for canvas |
gridStyles | false | {strokeStyle: string} | color like as color for canvas |
areaStyles | false | {strokeStyle: string, fillStyle: string} | color like as color for canvas |
isArea | false | boolean | show area on the grid |
keepArea | false | boolean | show area on the grid |
isCells | false | boolean | render cells on the grid |
isGrid | false | boolean | render grid on the grid |
canvasClassName | false | string | class name of the canvas |
FAQs
selectable-grid
We found that selectable-grid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.