Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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 29,763 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 66 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.