mxcad 1.0.304 → 1.0.306
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
|
@@ -14140,6 +14140,8 @@ declare class MxCADMTextImp extends PubSub<{
|
|
|
14140
14140
|
angle: number;
|
|
14141
14141
|
lineHeightRatio: number;
|
|
14142
14142
|
entityType: "custom" | "mtext";
|
|
14143
|
+
/** 强制不拆散多行文本(entityType === 'mtext' 时有效) */
|
|
14144
|
+
isIntegrityLockedMText: boolean;
|
|
14143
14145
|
/** 文档中存在自定义文本或者元素 */
|
|
14144
14146
|
get isCustomTextOrElement(): boolean;
|
|
14145
14147
|
isEditState: boolean;
|
|
@@ -14306,6 +14308,35 @@ export interface ITableStyle {
|
|
|
14306
14308
|
borderColor: number;
|
|
14307
14309
|
textColor: number;
|
|
14308
14310
|
backgroundColor?: number | null;
|
|
14311
|
+
/**
|
|
14312
|
+
* 文本对齐方式
|
|
14313
|
+
* - 'left': 左对齐
|
|
14314
|
+
* - 'center': 居中对齐
|
|
14315
|
+
* - 'right': 右对齐
|
|
14316
|
+
*/
|
|
14317
|
+
textAlignment?: "left" | "center" | "right";
|
|
14318
|
+
/**
|
|
14319
|
+
* 文本垂直对齐方式
|
|
14320
|
+
* - 'top': 顶部对齐
|
|
14321
|
+
* - 'middle': 垂直居中
|
|
14322
|
+
* - 'bottom': 底部对齐
|
|
14323
|
+
*/
|
|
14324
|
+
textVerticalAlignment?: "top" | "middle" | "bottom";
|
|
14325
|
+
/**
|
|
14326
|
+
* 文本样式名称
|
|
14327
|
+
* 指定要使用的文字样式名称
|
|
14328
|
+
*/
|
|
14329
|
+
textStyle?: string;
|
|
14330
|
+
/**
|
|
14331
|
+
* 边框线宽
|
|
14332
|
+
* 表格边框线宽,单位为毫米
|
|
14333
|
+
*/
|
|
14334
|
+
borderLineWeight?: number;
|
|
14335
|
+
/**
|
|
14336
|
+
* 边框线型
|
|
14337
|
+
* 表格边框线型名称,如"Continuous", "Dashed", "Dotted"等
|
|
14338
|
+
*/
|
|
14339
|
+
borderLineType?: string;
|
|
14309
14340
|
}
|
|
14310
14341
|
/**
|
|
14311
14342
|
* 单元格样式接口
|
|
@@ -14315,6 +14346,26 @@ export interface ICellStyle {
|
|
|
14315
14346
|
textColor?: number | null;
|
|
14316
14347
|
alignment?: "left" | "center" | "right";
|
|
14317
14348
|
verticalAlignment?: "top" | "middle" | "bottom";
|
|
14349
|
+
/**
|
|
14350
|
+
* 文本样式名称
|
|
14351
|
+
* 指定要使用的文字样式名称
|
|
14352
|
+
*/
|
|
14353
|
+
textStyle?: string;
|
|
14354
|
+
/**
|
|
14355
|
+
* 文本角度
|
|
14356
|
+
* 文本旋转角度,以度为单位(0-360)
|
|
14357
|
+
*/
|
|
14358
|
+
textAngle?: number;
|
|
14359
|
+
/**
|
|
14360
|
+
* 边框线宽
|
|
14361
|
+
* 单元格边框线宽,单位为毫米
|
|
14362
|
+
*/
|
|
14363
|
+
borderLineWeight?: number;
|
|
14364
|
+
/**
|
|
14365
|
+
* 边框线型
|
|
14366
|
+
* 单元格边框线型名称,如"Continuous", "Dashed", "Dotted"等
|
|
14367
|
+
*/
|
|
14368
|
+
borderLineType?: string;
|
|
14318
14369
|
}
|
|
14319
14370
|
export declare class McDbXlsxTable extends McDbCustomEntity {
|
|
14320
14371
|
position: McGePoint3d;
|
|
@@ -14667,6 +14718,176 @@ export declare class McDbXlsxTable extends McDbCustomEntity {
|
|
|
14667
14718
|
getGripPoints(): McGePoint3dArray;
|
|
14668
14719
|
moveGripPointsAt(iIndex: number, dXOffset: number, dYOffset: number, dZOffset: number): void;
|
|
14669
14720
|
transformBy(_mat: McGeMatrix3d): boolean;
|
|
14721
|
+
/**
|
|
14722
|
+
* 设置单元格文本样式
|
|
14723
|
+
* @param row 行索引 (0-based)
|
|
14724
|
+
* @param col 列索引 (0-based)
|
|
14725
|
+
* @param textStyle 文本样式名称
|
|
14726
|
+
*/
|
|
14727
|
+
setCellTextStyle(row: number, col: number, textStyle: string): void;
|
|
14728
|
+
/**
|
|
14729
|
+
* 获取单元格文本样式
|
|
14730
|
+
* @param row 行索引 (0-based)
|
|
14731
|
+
* @param col 列索引 (0-based)
|
|
14732
|
+
* @returns 单元格文本样式,如果未设置则返回undefined
|
|
14733
|
+
*/
|
|
14734
|
+
getCellTextStyle(row: number, col: number): string | undefined;
|
|
14735
|
+
/**
|
|
14736
|
+
* 通过A1引用格式设置单元格文本样式
|
|
14737
|
+
* @param cellRef A1格式的单元格引用 (例如 "A1", "B2")
|
|
14738
|
+
* @param textStyle 文本样式名称
|
|
14739
|
+
* @returns 是否设置成功
|
|
14740
|
+
*/
|
|
14741
|
+
setCellTextStyleByRef(cellRef: string, textStyle: string): boolean;
|
|
14742
|
+
/**
|
|
14743
|
+
* 批量设置单元格文本样式
|
|
14744
|
+
* @param cells 单元格位置数组 { row, col } 或 A1引用字符串数组
|
|
14745
|
+
* @param textStyle 文本样式名称
|
|
14746
|
+
*/
|
|
14747
|
+
setBatchCellTextStyle(cells: (string | {
|
|
14748
|
+
row: number;
|
|
14749
|
+
col: number;
|
|
14750
|
+
})[], textStyle: string): void;
|
|
14751
|
+
/**
|
|
14752
|
+
* 设置单元格文本角度
|
|
14753
|
+
* @param row 行索引 (0-based)
|
|
14754
|
+
* @param col 列索引 (0-based)
|
|
14755
|
+
* @param textAngle 文本角度(0-360度)
|
|
14756
|
+
*/
|
|
14757
|
+
setCellTextAngle(row: number, col: number, textAngle: number): void;
|
|
14758
|
+
/**
|
|
14759
|
+
* 获取单元格文本角度
|
|
14760
|
+
* @param row 行索引 (0-based)
|
|
14761
|
+
* @param col 列索引 (0-based)
|
|
14762
|
+
* @returns 单元格文本角度,如果未设置则返回undefined
|
|
14763
|
+
*/
|
|
14764
|
+
getCellTextAngle(row: number, col: number): number | undefined;
|
|
14765
|
+
/**
|
|
14766
|
+
* 通过A1引用格式设置单元格文本角度
|
|
14767
|
+
* @param cellRef A1格式的单元格引用 (例如 "A1", "B2")
|
|
14768
|
+
* @param textAngle 文本角度(0-360度)
|
|
14769
|
+
* @returns 是否设置成功
|
|
14770
|
+
*/
|
|
14771
|
+
setCellTextAngleByRef(cellRef: string, textAngle: number): boolean;
|
|
14772
|
+
/**
|
|
14773
|
+
* 批量设置单元格文本角度
|
|
14774
|
+
* @param cells 单元格位置数组 { row, col } 或 A1引用字符串数组
|
|
14775
|
+
* @param textAngle 文本角度(0-360度)
|
|
14776
|
+
*/
|
|
14777
|
+
setBatchCellTextAngle(cells: (string | {
|
|
14778
|
+
row: number;
|
|
14779
|
+
col: number;
|
|
14780
|
+
})[], textAngle: number): void;
|
|
14781
|
+
/**
|
|
14782
|
+
* 设置单元格边框线宽
|
|
14783
|
+
* @param row 行索引 (0-based)
|
|
14784
|
+
* @param col 列索引 (0-based)
|
|
14785
|
+
* @param lineWeight 边框线宽(毫米)
|
|
14786
|
+
*/
|
|
14787
|
+
setCellBorderLineWeight(row: number, col: number, lineWeight: number): void;
|
|
14788
|
+
/**
|
|
14789
|
+
* 获取单元格边框线宽
|
|
14790
|
+
* @param row 行索引 (0-based)
|
|
14791
|
+
* @param col 列索引 (0-based)
|
|
14792
|
+
* @returns 单元格边框线宽,如果未设置则返回undefined
|
|
14793
|
+
*/
|
|
14794
|
+
getCellBorderLineWeight(row: number, col: number): number | undefined;
|
|
14795
|
+
/**
|
|
14796
|
+
* 通过A1引用格式设置单元格边框线宽
|
|
14797
|
+
* @param cellRef A1格式的单元格引用 (例如 "A1", "B2")
|
|
14798
|
+
* @param lineWeight 边框线宽(毫米)
|
|
14799
|
+
* @returns 是否设置成功
|
|
14800
|
+
*/
|
|
14801
|
+
setCellBorderLineWeightByRef(cellRef: string, lineWeight: number): boolean;
|
|
14802
|
+
/**
|
|
14803
|
+
* 批量设置单元格边框线宽
|
|
14804
|
+
* @param cells 单元格位置数组 { row, col } 或 A1引用字符串数组
|
|
14805
|
+
* @param lineWeight 边框线宽(毫米)
|
|
14806
|
+
*/
|
|
14807
|
+
setBatchCellBorderLineWeight(cells: (string | {
|
|
14808
|
+
row: number;
|
|
14809
|
+
col: number;
|
|
14810
|
+
})[], lineWeight: number): void;
|
|
14811
|
+
/**
|
|
14812
|
+
* 设置单元格边框线型
|
|
14813
|
+
* @param row 行索引 (0-based)
|
|
14814
|
+
* @param col 列索引 (0-based)
|
|
14815
|
+
* @param lineType 边框线型(如 "Continuous", "Dashed", "Dotted"等)
|
|
14816
|
+
*/
|
|
14817
|
+
setCellBorderLineType(row: number, col: number, lineType: string): void;
|
|
14818
|
+
/**
|
|
14819
|
+
* 获取单元格边框线型
|
|
14820
|
+
* @param row 行索引 (0-based)
|
|
14821
|
+
* @param col 列索引 (0-based)
|
|
14822
|
+
* @returns 单元格边框线型,如果未设置则返回undefined
|
|
14823
|
+
*/
|
|
14824
|
+
getCellBorderLineType(row: number, col: number): string | undefined;
|
|
14825
|
+
/**
|
|
14826
|
+
* 通过A1引用格式设置单元格边框线型
|
|
14827
|
+
* @param cellRef A1格式的单元格引用 (例如 "A1", "B2")
|
|
14828
|
+
* @param lineType 边框线型(如 "Continuous", "Dashed", "Dotted"等)
|
|
14829
|
+
* @returns 是否设置成功
|
|
14830
|
+
*/
|
|
14831
|
+
setCellBorderLineTypeByRef(cellRef: string, lineType: string): boolean;
|
|
14832
|
+
/**
|
|
14833
|
+
* 批量设置单元格边框线型
|
|
14834
|
+
* @param cells 单元格位置数组 { row, col } 或 A1引用字符串数组
|
|
14835
|
+
* @param lineType 边框线型(如 "Continuous", "Dashed", "Dotted"等)
|
|
14836
|
+
*/
|
|
14837
|
+
setBatchCellBorderLineType(cells: (string | {
|
|
14838
|
+
row: number;
|
|
14839
|
+
col: number;
|
|
14840
|
+
})[], lineType: string): void;
|
|
14841
|
+
/**
|
|
14842
|
+
* 设置表格文本对齐方式
|
|
14843
|
+
* @param alignment 文本对齐方式 ('left', 'center', 'right')
|
|
14844
|
+
*/
|
|
14845
|
+
setTextAlignment(alignment: "left" | "center" | "right"): void;
|
|
14846
|
+
/**
|
|
14847
|
+
* 获取表格文本对齐方式
|
|
14848
|
+
* @returns 表格文本对齐方式
|
|
14849
|
+
*/
|
|
14850
|
+
getTextAlignment(): "left" | "center" | "right";
|
|
14851
|
+
/**
|
|
14852
|
+
* 设置表格文本垂直对齐方式
|
|
14853
|
+
* @param verticalAlignment 文本垂直对齐方式 ('top', 'middle', 'bottom')
|
|
14854
|
+
*/
|
|
14855
|
+
setTextVerticalAlignment(verticalAlignment: "top" | "middle" | "bottom"): void;
|
|
14856
|
+
/**
|
|
14857
|
+
* 获取表格文本垂直对齐方式
|
|
14858
|
+
* @returns 表格文本垂直对齐方式
|
|
14859
|
+
*/
|
|
14860
|
+
getTextVerticalAlignment(): "top" | "middle" | "bottom";
|
|
14861
|
+
/**
|
|
14862
|
+
* 设置表格文本样式
|
|
14863
|
+
* @param textStyle 文本样式名称
|
|
14864
|
+
*/
|
|
14865
|
+
setTextStyle(textStyle: string): void;
|
|
14866
|
+
/**
|
|
14867
|
+
* 获取表格文本样式
|
|
14868
|
+
* @returns 表格文本样式名称
|
|
14869
|
+
*/
|
|
14870
|
+
getTextStyle(): string;
|
|
14871
|
+
/**
|
|
14872
|
+
* 设置表格边框线宽
|
|
14873
|
+
* @param lineWeight 边框线宽(毫米)
|
|
14874
|
+
*/
|
|
14875
|
+
setBorderLineWeight(lineWeight: number): void;
|
|
14876
|
+
/**
|
|
14877
|
+
* 获取表格边框线宽
|
|
14878
|
+
* @returns 表格边框线宽(毫米)
|
|
14879
|
+
*/
|
|
14880
|
+
getBorderLineWeight(): number;
|
|
14881
|
+
/**
|
|
14882
|
+
* 设置表格边框线型
|
|
14883
|
+
* @param lineType 边框线型(如 "Continuous", "Dashed", "Dotted"等)
|
|
14884
|
+
*/
|
|
14885
|
+
setBorderLineType(lineType: string): void;
|
|
14886
|
+
/**
|
|
14887
|
+
* 获取表格边框线型
|
|
14888
|
+
* @returns 表格边框线型
|
|
14889
|
+
*/
|
|
14890
|
+
getBorderLineType(): string;
|
|
14670
14891
|
}
|
|
14671
14892
|
export declare let MxCpp: MxCppType;
|
|
14672
14893
|
/**
|