@qctrl/visualizer
Version:
The Q-CTRL Visualizer is a package for displaying animated 3d Bloch sphere visualizations.
22 lines (21 loc) • 759 B
TypeScript
import { Group, Vector3Tuple } from "three";
import { Styles } from "../../styles/theme";
interface CreatePathProps {
data: Vector3Tuple[];
segmentIndexes: number[];
style: Styles;
divWidthHeight: {
width: number;
height: number;
};
continuousSegments?: boolean;
drawArcs?: boolean;
skipLastLineDraw?: boolean;
}
/**
* Creates a group of line meshes to create a 'pulse path' that reflects the element data
*/
export default function createPath({ data, segmentIndexes, style: { path: { color, lineWidth }, pathCurrentSegment: { lineWidth: currentSegmentLineWidth }, }, divWidthHeight: { width, height }, continuousSegments, drawArcs, skipLastLineDraw, }: CreatePathProps): {
segments: Group;
};
export {};