
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
view-effects
Advanced tools
Package which applies custom behavior or effects to elements
ViewEffectis a term, which describes custom logic applied to views (HTMLElements), behavior, like events responding and etc.
// Effect is created.
// (targetElement: HTMLElement)
const effect = new ViewEffectConstructor(targetElement, ...args);
effect.enable();
// Effect enabled...
effect.disable();
// Effect is disabled...
Applies resizing effect to the HTMLElement, so it becomes resizeable
by the cursor.
When effectController is grabbed, by moving the cursor effectTarget will properly rescale, until it does not fit into the window.
Constructor
new ResizeViewEffect(effectTarget: HTMLElement, effectController: HTMLElement = effectTarget): ViewEffect
effectTarget View which will be resized by the effect.effectController If provided, resize effect will be achived by drabbing
this effectController element, and not effectTarget. By default,
equals to effectTarget.For example, you can achive desktop window behavior, when window is resized by grabbing its corner.
Applies grabbing effect to the HTMLElement, which makes it
possible to drag it around the surface by the cursor.
When effectController is grabbed, y moving the cursor effectTarget will change it's position around the document. (Don't forget to position to absolute/fixed)
Constructor
new DragViewEffect(effectTarget: HTMLElement, effectController: HTMLElement = effectTarget): ViewEffect
effectTarget View which shoud be dragged around the document.
effectController If provided, dragging effect will be achived by drabbing
this effectController element, and not effectTarget. By default,
equals to effectTarget.
For example, you can achive desktop app window behavior, when window is moved around the screen only when its header is being dragged by the cursor,
FAQs
Package which applies custom behavior or effects to elements
We found that view-effects 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.