mxcad 1.0.298 → 1.0.300

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mxcad.d.ts CHANGED
@@ -13581,6 +13581,10 @@ export declare class MxCADWorldDraw {
13581
13581
  * @param lPtrWorldDraw 传递指向绘图设备的指针
13582
13582
  */
13583
13583
  constructor(lPtrWorldDraw: number);
13584
+ /**
13585
+ *使Draw对象使用使用entity的属性
13586
+ */
13587
+ setupForEntity(entity: McDbEntity): boolean;
13584
13588
  /**
13585
13589
  * 绘制实例对象
13586
13590
  */
@@ -13596,6 +13600,30 @@ export declare class MxCADWorldDraw {
13596
13600
  set trueColor(val: McCmColor);
13597
13601
  get trueColor(): McCmColor;
13598
13602
  /**
13603
+ * 设置或获取当前使用的图层
13604
+ * @param val 图层id
13605
+ */
13606
+ set layerId(val: McObjectId);
13607
+ get layerId(): McObjectId;
13608
+ /**
13609
+ * 设置或获取当前使用的线型id
13610
+ * @param val 线型id
13611
+ */
13612
+ set lineTypeId(val: McObjectId);
13613
+ get lineTypeId(): McObjectId;
13614
+ /**
13615
+ * 设置或获取当前使用的线重
13616
+ * @param val 使用的线重
13617
+ */
13618
+ set lineWeight(val: McDb.LineWeight);
13619
+ get lineWeight(): McDb.LineWeight;
13620
+ /**
13621
+ * 设置或获取当前使用的线型比例
13622
+ * @param val 线型比例
13623
+ */
13624
+ set lineTypeScale(val: number);
13625
+ get lineTypeScale(): number;
13626
+ /**
13599
13627
  * 得到worddraw type
13600
13628
  */
13601
13629
  getType(): MxCADWorldDrawType;
@@ -13976,7 +14004,6 @@ export interface LineInfo {
13976
14004
  breakType: BreakType;
13977
14005
  };
13978
14006
  horizontalOffset?: number;
13979
- bottomSpacing?: number;
13980
14007
  isEndLine?: boolean;
13981
14008
  }
13982
14009
  declare class MultilineTextConverter {
@@ -14013,6 +14040,7 @@ export interface RenderResult {
14013
14040
  width: number;
14014
14041
  height: number;
14015
14042
  lines: LineInfo[];
14043
+ lineHeightRatio?: number;
14016
14044
  }
14017
14045
  export declare abstract class MxCADBaseCustomElement {
14018
14046
  /** 类型 */
@@ -14037,10 +14065,16 @@ export declare abstract class MxCADBaseCustomText {
14037
14065
  declare class ElementTextManager {
14038
14066
  private elementMap;
14039
14067
  private textMap;
14068
+ /** 特殊字符映射表 (Unicode字符 -> CAD特殊字符) */
14069
+ private specialCharacterMap;
14040
14070
  constructor();
14041
14071
  /** 注册自定义元素 */
14042
14072
  registerElement(props: MxCADBaseCustomElement): void;
14043
14073
  registerTextNode(props: MxCADBaseCustomText): void;
14074
+ /** 注册特殊字符映射 (Unicode字符 -> CAD特殊字符) */
14075
+ registerSpecialCharacter(unicodeChar: string, cadSpecialChar: string): void;
14076
+ /** 遍历特殊字符映射表 */
14077
+ forEachSpecialCharacter(callback: (unicodeChar: string, cadSpecialChar: string) => void): void;
14044
14078
  getText(type: string): MxCADBaseCustomText | undefined;
14045
14079
  hasText(type: string): boolean;
14046
14080
  get(type: string): MxCADBaseCustomElement | undefined;
@@ -14135,6 +14169,7 @@ declare class MxCADMTextImp extends PubSub<{
14135
14169
  * @returns 段落中的所有行信息
14136
14170
  */
14137
14171
  getParagraphLines(paragraphIndex: number): LineInfo[];
14172
+ getParagrapInfo(paragraphIndex: number): RenderResult & CalculateData;
14138
14173
  /**
14139
14174
  * 获取指定段落的行数
14140
14175
  * @param this McDbCustomEditorEntity实例