yanchengPowerSupply/node_modules/mxdraw/dist/lib/MxModule/MxDbGradientLine/index.d.ts

64 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import McGiWorldDraw from '../McGiWorldDraw';
import MxDbEntity from '../MxDbEntity';
/***
* 渐变线段
* @augments MxDbEntity
* */
declare class MxDbGradientLine extends MxDbEntity {
/** 点集合 */
points: THREE.Vector3[];
/** 渐变色 */
colors: (THREE.Color | string | number)[];
/**
* 定义线两端的样式
* @access public
* */
linecap: 'butt' | 'round' | 'square';
/**
* 定义线连接节点的样式
* @access public
* */
linejoin: 'round' | 'bevel' | 'miter';
/**
* 定义线形状是否闭合,从而创建多边形或斑点
* @access public
* */
closed: boolean;
/**
* 曲线的类型: chordal: 弦线、 centripetal 向心线、 catmullrom: Catmull-Rom曲线 默认centripetal
* @access public
* */
curveType: 'chordal' | 'centripetal' | 'catmullrom';
/**
* 当curveType为catmullrom时定义catmullrom的张力。 张力: 数值越大曲线越弯曲。值为0将导致没有插值。默认值是0
* @access public
*
*/
tension: number;
/**
* 如果没有提供张力但bezierType赋值为'quadratic'| 'cubic'则使用点集合中的点绘制一条bezier线 默认: undefined
* @summary quadratic: 三维二次贝塞尔曲线 => 起点 中间的控制点 终点
* @summary cubic: 三维三次贝塞尔曲线 => 起点v 第一个控制点 第二个控制点 终点
*/
bezierType: 'quadratic' | 'cubic' | undefined;
protected curve?: THREE.CatmullRomCurve3 | THREE.CurvePath<THREE.Vector3>;
create(): MxDbGradientLine;
getTypeName(): string;
setPoints(points: THREE.Vector3[]): this;
setColors(colors: (THREE.Color | string | number)[]): this;
addColor(color: THREE.Color): this;
setLinecap(linecap: 'butt' | 'round' | 'square'): void;
setClosed(closed: boolean): void;
setCurveType(curveType: 'chordal' | 'centripetal' | 'catmullrom'): void;
setTension(tension: number): void;
setBezierType(bezierType: 'quadratic' | 'cubic'): void;
worldDraw(pWorldDraw: McGiWorldDraw): void;
getGripPoints(): THREE.Vector3[];
getPoints(): import("three").Vector3[];
moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
move(index: number, offset: THREE.Vector3): this;
dwgIn(obj: any): boolean;
dwgOut(obj: any): object;
}
export default MxDbGradientLine;