@qctrl/visualizer
Version:
The Q-CTRL Visualizer is a package for displaying animated 3d Bloch sphere visualizations.
17 lines (16 loc) • 719 B
TypeScript
import { Vector3 } from "three";
import { Line } from "../../helpers/scene/Line";
import { Styles } from "../../styles/theme";
interface CreateIndicatorStickProps {
currentVector: Vector3;
style: Styles;
divWidthHeight: {
width: number;
height: number;
};
}
/**
* Creates a line mesh from the origin to the pulse vector, to act as an indicator for the current pulse vector. The line mesh has the geometry attached to its userData prop so that it can be easily updated with new positions
*/
export default function createIndicatorStick({ currentVector, style: { indicatorStick: { color, lineWidth }, }, divWidthHeight: { width, height }, }: CreateIndicatorStickProps): Line;
export {};