import { ContextManager } from '@zcomponent/core'; import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial'; import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry'; import { Line2 as THREELine2 } from 'three/examples/jsm/lines/Line2'; import { Object3D } from '../Object3D'; /** * Constructor properties. */ export interface Line2ConstructorProps { /** * The geometry of the line. */ geometry?: LineGeometry; /** * The material of the line. */ material?: LineMaterial; /** * If this node contains a Curve, this property determines how many points are used to create the geometry from the curve. * @zui * @zdefault 50 */ pointsForCurve?: number; } /** * * A continuous line. * * Root element: [THREE.Line2](https://threejs.org/docs/index.html#examples/en/lines/Line2) * @zcomponent * @zgroup Lines * @zicon deployed_code * @ztag three/Object3D/Line2/Line2 * @ztag three/CurveHost/Line2 * @zparents three/Object3D/Group/** */ export declare class Line2 extends Object3D { element: THREELine2; private _material; private _geometry; /** * Creates a new line. * @param contextManager - Context manager. * @param props - Properties. */ constructor(contextManager: ContextManager, props: Line2ConstructorProps); private _updateFromCurve; private _attachCurve; dispose(): never; }