Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@null3d/controls

Latest version: v0.1.3

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: hiddentao
3 Stars
1 Forks
5 Versions
591 Downloads
TypeScript Repo language

Scan summary

@null3d/controls was last scanned on 29 Nov 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest 3 were published within 3 days (27–29 Nov 2026).
  • Findings: No rules fired in version 0.1.3.
  • Downloads: 591 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.3 LATEST 29 Nov 2026 No rules fired
0.1.2 28 Nov 2026 No rules fired
0.1.1 27 Nov 2026 No rules fired
0.0.0 22 Nov 2026 Not shown
0.0.0-stage 22 Nov 2026 Not shown

No rules fired in 0.1.3

Findings

Findings for v0.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Controls for null3D

@null3d/controls moves the camera of a null3D sketch with the mouse, the wheel, a trackpad, touch and the keyboard. It also draws gizmos that move, turn and scale scene objects. The controls run in the sketch, where the camera is, and add no DOM listeners. Each update(dt) reads the sketch's input once. The controls keep the option names and behavior of the three.js controls, which helps when you port a scene.

Install

bun add @null3d/engine @null3d/controls

The package needs @null3d/engine at the same version.

Use

import { defineSketch } from '@null3d/engine';
import { createOrbitControls } from '@null3d/controls';

export default defineSketch((ctx) => {
  const { scene, geometry, materials } = ctx;
  const camera = scene.createPerspectiveCamera({ fov: 45, position: [3, 2, 5] });
  scene.setActiveCamera(camera);
  scene.createDirectionalLight({ direction: [-1, -2, -1], intensity: 3 });
  scene.createMesh({
    mesh: geometry.box(),
    material: materials.standard({ color: '#e8554e' }),
    position: [0, 0.5, 0],
  });

  const controls = createOrbitControls(ctx, camera, {
    target: [0, 0.5, 0],
    enableDamping: true,
    minDistance: 2,
    maxDistance: 12,
    maxPolarAngle: Math.PI * 0.49,
  });

  return {
    onUpdate(dt) {
      controls.update(dt);
    },
  };
});

A left drag or one finger turns the camera around the target. The wheel, a pinch and a middle drag dolly it, and a right drag or two fingers pan. Pass the whole sketch context first: the controls read its input, the canvas size and the user's motion preference. The camera can be perspective or orthographic. Each option is also a property, so controls.enablePan = false turns off the pan at any time.

zoomToCursor zooms toward the pointer. After listenToKeyEvents(), the arrow keys pan the camera, and keys names other keys. minTargetRadius and maxTargetRadius keep the target near cursor. saveState() keeps the view, and reset() puts it back.

The page

The controls read the input that the page forwards, so keep the browser's own gestures off the canvas:

  • Give the canvas touch-action: none in its CSS. Without it, the browser scrolls or zooms the page and cancels the touches.
  • Stop the wheel from scrolling the page: canvas.addEventListener('wheel', (e) => e.preventDefault(), { passive: false }).

Other controls

  • createMapControls pans over the ground, as in a map or a strategy game. It takes the orbit options.
  • createFlyControls moves the camera along its own axes and turns it about them, so it can loop and roll.
  • createFirstPersonControls walks over the ground with the keys and looks around with a drag. While the page holds the pointer lock (engine.requestPointerLock()), the mouse turns the view.
  • createTransformControls draws handles on one object. A drag of a handle moves, turns or scales the object. minX to maxZ limit where a move puts it.
  • createDragControls drags any object of a list over a plane that faces the camera.

Costs and limits

  • The camera controls' update allocates nothing.
  • If the camera has a parent, the parent must not be rotated.

Docs

Controls: every gesture, option and control, and the pointer lock.

License

Licensed under either of the Apache License 2.0 or the MIT license, at your option.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @null3d/controls

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229