Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
movable-resizable-js
Advanced tools
This project is a javascript library to facilitate movable and resizable interaction on web page. The library is provided by Tencent Real-timing Communication(TRTC) team.
This project is a javascript library to facilitate movable and resizable interaction on web page. The library is provided by Tencent Real-timing Communication(TRTC) team.
#npm
npm install movable-resizable-js
#yarn
yarn add movable-resizable-js
import { Movable, Resizable } from 'movable-resizable-js';
const targetElement = document.getElementById('movable-and-resiable');
const targetContainer = document.body;
// Enable moving
const movableController = new Movable(
targetElement,
targetContainer,
{
canExceedContainer: true, // default `false`
}
);
movableController.on('move', (left, top) => {
console.log('element moved to:', left, top);
});
// Enable Resizing
const resizableController = new Resizable(
targetElement,
targetContainer,
{
canExceedContainer: true, // default `false`
keepRatio: true, // default `false`
stopPropagation: true // default `false`. To use with `Movable` together, this option must be `true`, or else will trigger moving action too.
}
);
resizableController.on('resize', (left, top, width, height) => {
console.log('element resized to:', left, top, width, height);
});
FAQs
This project is a javascript library to facilitate movable and resizable interaction on web page. The library is provided by Tencent Real-timing Communication(TRTC) team.
The npm package movable-resizable-js receives a total of 0 weekly downloads. As such, movable-resizable-js popularity was classified as not popular.
We found that movable-resizable-js demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.