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

31 lines
851 B
TypeScript

/** @module MxDbSVG*/
/**
* MxDbSVGText 为SVG提供文字数据
* */
export default class MxDbSVGText {
/** 文字的位置 */
txtPos: THREE.Vector3;
/** 文字内容 */
txt: string;
/** 文字高度 */
txtHeight: number;
/** 文字颜色 */
color: number | string | THREE.Color | undefined;
/** THREE.Sprite */
_txtObject: THREE.Sprite | null;
/** 比例 */
_txtAspectRatio: number;
/** 文字是否能独立移动 */
move: boolean;
/** 文字移动到距图片远处,自动绘制一个连接线 */
drawConnectingLine: boolean;
/** 连接线的临时绘制对象 */
_connectingLine: THREE.Line | null;
/** 字体样式 */
fontStyle: string;
/** 下划线 */
underline: boolean;
/** 下划线的临时绘制对象 */
_underLine: THREE.Line | null;
}