Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@antv/g-camera-api
Advanced tools
English | 简体中文
Provides advanced camera features, including full camera movements and animations.
It's already built-in in @antv/g
, with the lite version to use the following way:
import '@antv/g-lite';
import '@antv/g-camera-api';
The camera can then be retrieved from the canvas to perform the camera action.
const camera = canvas.getCamera();
camera.pan(100, 20);
The camera's three axes in the camera coordinate system are uvn, and the camera action is actually moving and rotating along these three axes.
https://g-next.antv.vision/en/docs/api/camera#camera-action
We can record the current position and viewpoint of the camera and save it as a Landmark, and then when the camera parameters change, we can switch to any of the previously saved Landmark at any time, with a smooth switching animation, similar to the camera pendulum on a real set, also called flyTo in some applications.
https://g-next.antv.vision/en/docs/api/camera#camera-animation
FAQs
A simple implementation of Camera API.
The npm package @antv/g-camera-api receives a total of 27,701 weekly downloads. As such, @antv/g-camera-api popularity was classified as popular.
We found that @antv/g-camera-api 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.