mxcad 1.0.346 → 1.0.348
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 +180 -1
- package/dist/mxcad.es.js +757 -196
- package/dist/mxcad.umd.js +3 -3
- package/dist/wasm/2d/mxdrawassembly_min.js +1824 -1823
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +1824 -1823
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -1505,6 +1505,20 @@ export declare class McGeMatrix3d {
|
|
|
1505
1505
|
* ```
|
|
1506
1506
|
*/
|
|
1507
1507
|
setData(row: number, col: number, val: number): void;
|
|
1508
|
+
/**
|
|
1509
|
+
* 返回矩阵的所有定义数据。
|
|
1510
|
+
* @example
|
|
1511
|
+
* ```ts
|
|
1512
|
+
* ```
|
|
1513
|
+
*/
|
|
1514
|
+
getDatas(): string;
|
|
1515
|
+
/**
|
|
1516
|
+
* 返回THREE.Matrix4
|
|
1517
|
+
* @example
|
|
1518
|
+
* ```ts
|
|
1519
|
+
* ```
|
|
1520
|
+
*/
|
|
1521
|
+
toMatrix4(): THREE.Matrix4;
|
|
1508
1522
|
}
|
|
1509
1523
|
/**
|
|
1510
1524
|
* 整数数组
|
|
@@ -3699,6 +3713,61 @@ export declare class MxCADUiPrPoint extends MxCADUiPrBase {
|
|
|
3699
3713
|
*/
|
|
3700
3714
|
setUseBasePt(useIt: boolean): void;
|
|
3701
3715
|
}
|
|
3716
|
+
/**
|
|
3717
|
+
* 带坐标变换的取点类
|
|
3718
|
+
* @example
|
|
3719
|
+
* ```ts
|
|
3720
|
+
* ```
|
|
3721
|
+
*/
|
|
3722
|
+
export declare class MxCADUiPrPointTransform extends MxCADUiPrPoint {
|
|
3723
|
+
mat: McGeMatrix3d;
|
|
3724
|
+
rmat: McGeMatrix3d;
|
|
3725
|
+
mat_three: THREE.Matrix4;
|
|
3726
|
+
rmat_three: THREE.Matrix4;
|
|
3727
|
+
constructor(mat: McGeMatrix3d);
|
|
3728
|
+
/**
|
|
3729
|
+
* 运行go方法, 将返回用户交互的Promise任务
|
|
3730
|
+
* @returns 返回一个promise对象,包含了用户点击页面得到的坐标点
|
|
3731
|
+
* @description
|
|
3732
|
+
* @example
|
|
3733
|
+
* ```ts
|
|
3734
|
+
* ```
|
|
3735
|
+
*/
|
|
3736
|
+
go(): Promise<McGePoint3d | null>;
|
|
3737
|
+
/**
|
|
3738
|
+
* 得以获取的点
|
|
3739
|
+
* @returns 点坐标
|
|
3740
|
+
* @example
|
|
3741
|
+
* ```ts
|
|
3742
|
+
* ```
|
|
3743
|
+
*/
|
|
3744
|
+
value(retcad_val?: boolean): McGePoint3d;
|
|
3745
|
+
/**
|
|
3746
|
+
* 得到动态拖动的基点
|
|
3747
|
+
* @returns 基点 McGePoint3d
|
|
3748
|
+
* @example
|
|
3749
|
+
* ```ts
|
|
3750
|
+
* import { MxCADUiPrPoint } from "mxcad"
|
|
3751
|
+
* ```
|
|
3752
|
+
*/
|
|
3753
|
+
basePt(retcad_val?: boolean): McGePoint3d;
|
|
3754
|
+
/**
|
|
3755
|
+
* 设置动态拖动的基点
|
|
3756
|
+
* @param basePt 基点 McGePoint3d
|
|
3757
|
+
* @example
|
|
3758
|
+
* ```ts
|
|
3759
|
+
* ```
|
|
3760
|
+
*/
|
|
3761
|
+
setBasePt(basePt: McGePoint3d, cad_val?: boolean): void;
|
|
3762
|
+
/**
|
|
3763
|
+
* 设置动态绘制
|
|
3764
|
+
* @param basePt 基点 McGePoint3d
|
|
3765
|
+
* @example
|
|
3766
|
+
* ```ts
|
|
3767
|
+
* ```
|
|
3768
|
+
*/
|
|
3769
|
+
setUserDraw(pDraw: ((currentPoint: McGePoint3d, pWorldDraw: McEdGetPointWorldDrawObject) => void)): void;
|
|
3770
|
+
}
|
|
3702
3771
|
/** UI交互获取距离
|
|
3703
3772
|
* @description 根据两个点确定一段距离
|
|
3704
3773
|
* @example
|
|
@@ -4040,7 +4109,7 @@ export declare class MxCADUiPrEntity extends MxCADUiPrBase {
|
|
|
4040
4109
|
* const getEnt = new MxCADUiPrEntity();
|
|
4041
4110
|
* ```
|
|
4042
4111
|
*/
|
|
4043
|
-
constructor();
|
|
4112
|
+
constructor(isDisableAllTrace?: boolean);
|
|
4044
4113
|
/**
|
|
4045
4114
|
* 设置或获取过滤器
|
|
4046
4115
|
* @param filter 过滤器
|
|
@@ -12201,6 +12270,23 @@ export declare class McObject {
|
|
|
12201
12270
|
* ```
|
|
12202
12271
|
*/
|
|
12203
12272
|
addLinetypeEx(sName: string, sLineDefine: string, sTextStyle?: string): McObjectId;
|
|
12273
|
+
/**
|
|
12274
|
+
* 创建布局
|
|
12275
|
+
* @param pszName 布局名称
|
|
12276
|
+
* @example
|
|
12277
|
+
* ```ts
|
|
12278
|
+
* import { MxCpp, McObject } from "mxcad"
|
|
12279
|
+
* ```
|
|
12280
|
+
*/
|
|
12281
|
+
createLayout(sName: string): McObjectId;
|
|
12282
|
+
/**
|
|
12283
|
+
* 删除布局
|
|
12284
|
+
* @param pszName 布局名称
|
|
12285
|
+
* @example
|
|
12286
|
+
* ```ts
|
|
12287
|
+
* ```
|
|
12288
|
+
*/
|
|
12289
|
+
deleteLayout(sName: string): boolean;
|
|
12204
12290
|
/**
|
|
12205
12291
|
* 绘制直线
|
|
12206
12292
|
* @param dX1 起点 X 坐标
|
|
@@ -14627,6 +14713,19 @@ export declare class MxCADMText extends McDbCustomEntity {
|
|
|
14627
14713
|
convertSlatePointToCadPoint: typeof convertSlatePointToCadPoint;
|
|
14628
14714
|
transformBy: typeof transformBy;
|
|
14629
14715
|
}
|
|
14716
|
+
/**
|
|
14717
|
+
* 表格渲染方向枚举
|
|
14718
|
+
*/
|
|
14719
|
+
export declare enum TableRenderDirection {
|
|
14720
|
+
/** 向右下方向渲染(默认) */
|
|
14721
|
+
BottomRight = "BottomRight",
|
|
14722
|
+
/** 向左下方向渲染 */
|
|
14723
|
+
BottomLeft = "BottomLeft",
|
|
14724
|
+
/** 向右上方向渲染 */
|
|
14725
|
+
TopRight = "TopRight",
|
|
14726
|
+
/** 向左上方向渲染 */
|
|
14727
|
+
TopLeft = "TopLeft"
|
|
14728
|
+
}
|
|
14630
14729
|
/**
|
|
14631
14730
|
* 合并单元格信息接口
|
|
14632
14731
|
*/
|
|
@@ -14660,6 +14759,72 @@ export interface IColumnWidth {
|
|
|
14660
14759
|
col: number;
|
|
14661
14760
|
width: number;
|
|
14662
14761
|
}
|
|
14762
|
+
/**
|
|
14763
|
+
* 表格数据接口
|
|
14764
|
+
*/
|
|
14765
|
+
export interface ITableData {
|
|
14766
|
+
data: any[][];
|
|
14767
|
+
mergeCells?: IMergeCellInfo[];
|
|
14768
|
+
styles?: any;
|
|
14769
|
+
rowHeights?: IRowHeight[];
|
|
14770
|
+
colWidths?: IColumnWidth[];
|
|
14771
|
+
rowCount: number;
|
|
14772
|
+
cols: number;
|
|
14773
|
+
}
|
|
14774
|
+
/**
|
|
14775
|
+
* 表格样式接口
|
|
14776
|
+
*/
|
|
14777
|
+
export interface ITableStyle {
|
|
14778
|
+
name: string;
|
|
14779
|
+
textHeight: number;
|
|
14780
|
+
borderColor: number;
|
|
14781
|
+
textColor: number;
|
|
14782
|
+
backgroundColor?: number | null;
|
|
14783
|
+
/**
|
|
14784
|
+
* 文本对齐方式
|
|
14785
|
+
* - 'left': 左对齐
|
|
14786
|
+
* - 'center': 居中对齐
|
|
14787
|
+
* - 'right': 右对齐
|
|
14788
|
+
*/
|
|
14789
|
+
textAlignment?: "left" | "center" | "right";
|
|
14790
|
+
/**
|
|
14791
|
+
* 文本垂直对齐方式
|
|
14792
|
+
* - 'top': 顶部对齐
|
|
14793
|
+
* - 'middle': 垂直居中
|
|
14794
|
+
* - 'bottom': 底部对齐
|
|
14795
|
+
*/
|
|
14796
|
+
textVerticalAlignment?: "top" | "middle" | "bottom";
|
|
14797
|
+
/**
|
|
14798
|
+
* 文本样式名称
|
|
14799
|
+
* 指定要使用的文字样式名称
|
|
14800
|
+
*/
|
|
14801
|
+
textStyle?: string;
|
|
14802
|
+
/**
|
|
14803
|
+
* 边框线宽
|
|
14804
|
+
* 表格边框线宽,单位为毫米
|
|
14805
|
+
*/
|
|
14806
|
+
borderLineWeight?: number;
|
|
14807
|
+
/**
|
|
14808
|
+
* 边框线型
|
|
14809
|
+
* 表格边框线型名称,如"Continuous", "Dashed", "Dotted"等
|
|
14810
|
+
*/
|
|
14811
|
+
borderLineType?: string;
|
|
14812
|
+
}
|
|
14813
|
+
/**
|
|
14814
|
+
* 表格尺寸接口
|
|
14815
|
+
*/
|
|
14816
|
+
export interface ITableDimensions {
|
|
14817
|
+
width: number;
|
|
14818
|
+
height: number;
|
|
14819
|
+
}
|
|
14820
|
+
/**
|
|
14821
|
+
* 表格位置接口
|
|
14822
|
+
*/
|
|
14823
|
+
export interface ITablePosition {
|
|
14824
|
+
x: number;
|
|
14825
|
+
y: number;
|
|
14826
|
+
z: number;
|
|
14827
|
+
}
|
|
14663
14828
|
/**
|
|
14664
14829
|
* 单元格样式接口
|
|
14665
14830
|
*/
|
|
@@ -14689,6 +14854,16 @@ export interface ICellStyle {
|
|
|
14689
14854
|
*/
|
|
14690
14855
|
borderLineType?: string;
|
|
14691
14856
|
}
|
|
14857
|
+
/**
|
|
14858
|
+
* XLSX表格数据接口
|
|
14859
|
+
*/
|
|
14860
|
+
export interface IXlsxTableData {
|
|
14861
|
+
data: any[][];
|
|
14862
|
+
mergeCells: IMergeCellInfo[];
|
|
14863
|
+
styles: any;
|
|
14864
|
+
rowHeights: IRowHeight[];
|
|
14865
|
+
colWidths: IColumnWidth[];
|
|
14866
|
+
}
|
|
14692
14867
|
export declare class McDbXlsxTable extends McDbCustomEntity {
|
|
14693
14868
|
matrix: McGeMatrix3d;
|
|
14694
14869
|
private _rowHeight;
|
|
@@ -14711,6 +14886,10 @@ export declare class McDbXlsxTable extends McDbCustomEntity {
|
|
|
14711
14886
|
/** 表格位置和尺寸 - 渲染必需 */
|
|
14712
14887
|
get position(): McGePoint3d;
|
|
14713
14888
|
set position(val: McGePoint3d);
|
|
14889
|
+
private _renderDirection;
|
|
14890
|
+
/** 表格渲染方向 */
|
|
14891
|
+
get renderDirection(): TableRenderDirection;
|
|
14892
|
+
set renderDirection(val: TableRenderDirection);
|
|
14714
14893
|
private _styleName;
|
|
14715
14894
|
/** 表格样式名称 */
|
|
14716
14895
|
get styleName(): string;
|