mxcad 1.0.78 → 1.0.80
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 +82 -101
- package/dist/mxcad.es.js +623 -626
- package/dist/mxcad.umd.js +35 -35
- package/dist/wasm/2d/mxdrawassembly_min.js +7 -7
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +8 -8
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ export declare function saveAsFileDialog({ blob, filename, types }: {
|
|
|
15
15
|
blob: Blob;
|
|
16
16
|
filename?: string;
|
|
17
17
|
types?: FileTypes;
|
|
18
|
-
}): Promise<
|
|
18
|
+
}): Promise<(FileSystemFileHandle & {
|
|
19
|
+
createWritable: () => Promise<WritableStreamDefaultWriter<any>>;
|
|
20
|
+
}) | undefined>;
|
|
19
21
|
export declare function downloadFile(blob: any, filename: string): void;
|
|
20
22
|
export declare function downloadFileFromUrl(url: string, filename: string): void;
|
|
21
23
|
export declare const MxTools: {
|
|
@@ -658,14 +660,13 @@ export declare class MxCADSelectionSet extends McRxObject {
|
|
|
658
660
|
getIds(): McObjectId[];
|
|
659
661
|
userSelect(strPrompt?: string, filter?: MxCADResbuf | null): Promise<boolean>;
|
|
660
662
|
}
|
|
661
|
-
export declare class
|
|
662
|
-
|
|
663
|
-
constructor();
|
|
664
|
-
go(): Promise<McGePoint3d | null>;
|
|
663
|
+
export declare class MxCADUiPrBase {
|
|
664
|
+
protected imp: any;
|
|
665
|
+
constructor(imp: any);
|
|
665
666
|
/**
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
667
|
+
* 返回关键字列表
|
|
668
|
+
* @returns 关键词列表
|
|
669
|
+
*/
|
|
669
670
|
keyWords(): string;
|
|
670
671
|
/**
|
|
671
672
|
* 设置关键字列表
|
|
@@ -701,33 +702,6 @@ export declare class MxCADUiPrPoint {
|
|
|
701
702
|
* @returns void
|
|
702
703
|
*/
|
|
703
704
|
setUserDraw(pDraw: ((currentPoint: McGePoint3d, pWorldDraw: McEdGetPointWorldDrawObject) => void)): void;
|
|
704
|
-
/**
|
|
705
|
-
* 得以获取的点对象,Three.js坐标
|
|
706
|
-
* @returns 点对象 THREE.THREE.Vector3
|
|
707
|
-
*/
|
|
708
|
-
value(): McGePoint3d;
|
|
709
|
-
/**
|
|
710
|
-
* 得到 MxCAD下CAD图纸坐标.
|
|
711
|
-
* @returns 点对象 MdGePoint3d
|
|
712
|
-
*/
|
|
713
|
-
getCADValue(): McGePoint3d;
|
|
714
|
-
/**
|
|
715
|
-
* 得到动态拖动的基点
|
|
716
|
-
* @returns 基点 THREE.THREE.Vector3
|
|
717
|
-
*/
|
|
718
|
-
basePt(): McGePoint3d;
|
|
719
|
-
/**
|
|
720
|
-
* 设置动态拖动的基点
|
|
721
|
-
* @param basePt 基点 THREE.THREE.Vector3
|
|
722
|
-
* @returns 点对象 DWG图纸坐标
|
|
723
|
-
*/
|
|
724
|
-
setBasePt(basePt: McGePoint3d): void;
|
|
725
|
-
/**
|
|
726
|
-
* 设置使用动态拖动的基点
|
|
727
|
-
* @param useIt 是否设置 默认为false
|
|
728
|
-
* @returns void
|
|
729
|
-
*/
|
|
730
|
-
setUseBasePt(useIt: boolean): void;
|
|
731
705
|
/**
|
|
732
706
|
* 返回交互操作退出的详细原因
|
|
733
707
|
*/
|
|
@@ -780,48 +754,39 @@ export declare class MxCADUiPrPoint {
|
|
|
780
754
|
*/
|
|
781
755
|
isDisableOsnap(): boolean;
|
|
782
756
|
}
|
|
783
|
-
export declare class
|
|
784
|
-
private imp;
|
|
757
|
+
export declare class MxCADUiPrPoint extends MxCADUiPrBase {
|
|
785
758
|
constructor();
|
|
759
|
+
go(): Promise<McGePoint3d | null>;
|
|
786
760
|
/**
|
|
787
|
-
*
|
|
788
|
-
* @returns
|
|
789
|
-
*/
|
|
790
|
-
keyWords(): string;
|
|
791
|
-
/**
|
|
792
|
-
* 设置关键字列表
|
|
793
|
-
* @param keyWordList 关键词列表
|
|
794
|
-
* @returns void
|
|
761
|
+
* 得以获取的点对象,Three.js坐标
|
|
762
|
+
* @returns 点对象 THREE.THREE.Vector3
|
|
795
763
|
*/
|
|
796
|
-
|
|
764
|
+
value(): McGePoint3d;
|
|
797
765
|
/**
|
|
798
|
-
*
|
|
799
|
-
* @returns
|
|
766
|
+
* 得到 MxCAD下CAD图纸坐标.
|
|
767
|
+
* @returns 点对象 MdGePoint3d
|
|
800
768
|
*/
|
|
801
|
-
|
|
769
|
+
getCADValue(): McGePoint3d;
|
|
802
770
|
/**
|
|
803
|
-
*
|
|
804
|
-
* @
|
|
805
|
-
* @returns 提示消息
|
|
771
|
+
* 得到动态拖动的基点
|
|
772
|
+
* @returns 基点 THREE.THREE.Vector3
|
|
806
773
|
*/
|
|
807
|
-
|
|
774
|
+
basePt(): McGePoint3d;
|
|
808
775
|
/**
|
|
809
|
-
*
|
|
810
|
-
* @
|
|
776
|
+
* 设置动态拖动的基点
|
|
777
|
+
* @param basePt 基点 THREE.THREE.Vector3
|
|
778
|
+
* @returns 点对象 DWG图纸坐标
|
|
811
779
|
*/
|
|
812
|
-
|
|
780
|
+
setBasePt(basePt: McGePoint3d): void;
|
|
813
781
|
/**
|
|
814
|
-
*
|
|
815
|
-
* @param
|
|
816
|
-
* @returns
|
|
782
|
+
* 设置使用动态拖动的基点
|
|
783
|
+
* @param useIt 是否设置 默认为false
|
|
784
|
+
* @returns void
|
|
817
785
|
*/
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
* @returns void
|
|
823
|
-
*/
|
|
824
|
-
setUserDraw(pDraw: ((currentPoint: McGePoint3d, pWorldDraw: McEdGetPointWorldDrawObject) => void)): void;
|
|
786
|
+
setUseBasePt(useIt: boolean): void;
|
|
787
|
+
}
|
|
788
|
+
export declare class MxCADUiPrDist extends MxCADUiPrBase {
|
|
789
|
+
constructor();
|
|
825
790
|
/**
|
|
826
791
|
* 得以获取的距离
|
|
827
792
|
*/
|
|
@@ -843,63 +808,77 @@ export declare class MxCADUiPrDist {
|
|
|
843
808
|
* @returns void
|
|
844
809
|
*/
|
|
845
810
|
setUseBasePt(useIt: boolean): void;
|
|
846
|
-
/**
|
|
847
|
-
* 返回交互操作退出的详细原因
|
|
848
|
-
*/
|
|
849
|
-
getDetailedResult(): DetailedResult;
|
|
850
|
-
getStatus(): MrxDbgUiPrBaseReturn;
|
|
851
811
|
/**
|
|
852
812
|
* 开始动态拖动
|
|
853
813
|
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
854
814
|
* @returns void
|
|
855
815
|
*/
|
|
856
816
|
go(): Promise<number | null>;
|
|
817
|
+
}
|
|
818
|
+
export declare class MxCADUiPrAngle extends MxCADUiPrBase {
|
|
819
|
+
constructor();
|
|
857
820
|
/**
|
|
858
|
-
*
|
|
859
|
-
* @param callAddEntity 回调参数ent 类型:THREE.THREE.Object3D
|
|
860
|
-
* @returns 点对象 DWG图纸坐标
|
|
821
|
+
* 得以获取的距离
|
|
861
822
|
*/
|
|
862
|
-
|
|
823
|
+
value(): number;
|
|
863
824
|
/**
|
|
864
|
-
*
|
|
825
|
+
* 得到动态拖动的基点
|
|
826
|
+
* @returns 基点 McGePoint3d
|
|
865
827
|
*/
|
|
866
|
-
|
|
828
|
+
basePt(): McGePoint3d;
|
|
867
829
|
/**
|
|
868
|
-
*
|
|
830
|
+
* 设置动态拖动的基点
|
|
831
|
+
* @param basePt 基点 McGePoint3d
|
|
832
|
+
* @returns 点对象 DWG图纸坐标
|
|
869
833
|
*/
|
|
870
|
-
|
|
834
|
+
setBasePt(basePt: McGePoint3d): void;
|
|
871
835
|
/**
|
|
872
|
-
*
|
|
836
|
+
* 设置使用动态拖动的基点
|
|
837
|
+
* @param useIt 是否设置 默认为false
|
|
838
|
+
* @returns void
|
|
873
839
|
*/
|
|
874
|
-
|
|
840
|
+
setUseBasePt(useIt: boolean): void;
|
|
875
841
|
/**
|
|
876
|
-
*
|
|
842
|
+
* 开始动态拖动
|
|
843
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
844
|
+
* @returns void
|
|
877
845
|
*/
|
|
878
|
-
|
|
846
|
+
go(): Promise<number | null>;
|
|
847
|
+
}
|
|
848
|
+
export declare class MxCADUiPrInt extends MxCADUiPrBase {
|
|
849
|
+
constructor();
|
|
879
850
|
/**
|
|
880
|
-
*
|
|
851
|
+
* 得以获取的距离
|
|
881
852
|
*/
|
|
882
|
-
|
|
853
|
+
value(): number;
|
|
883
854
|
/**
|
|
884
|
-
*
|
|
855
|
+
* 开始动态拖动
|
|
856
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
857
|
+
* @returns void
|
|
885
858
|
*/
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
isDisableDynInput(): boolean;
|
|
859
|
+
go(): Promise<number | null>;
|
|
860
|
+
}
|
|
861
|
+
export declare class MxCADUiPrKeyWord extends MxCADUiPrBase {
|
|
862
|
+
constructor();
|
|
891
863
|
/**
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
864
|
+
* 开始动态拖动
|
|
865
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
866
|
+
* @returns void
|
|
867
|
+
*/
|
|
868
|
+
go(): Promise<string | null>;
|
|
869
|
+
}
|
|
870
|
+
export declare class MxCADUiPrString extends MxCADUiPrBase {
|
|
871
|
+
constructor();
|
|
895
872
|
/**
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
873
|
+
* 得以获取的距离
|
|
874
|
+
*/
|
|
875
|
+
value(): string;
|
|
899
876
|
/**
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
877
|
+
* 开始动态拖动
|
|
878
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
879
|
+
* @returns void
|
|
880
|
+
*/
|
|
881
|
+
go(): Promise<string | null>;
|
|
903
882
|
}
|
|
904
883
|
/**
|
|
905
884
|
* 表示数据库实体。
|
|
@@ -2273,7 +2252,7 @@ export declare class McObject {
|
|
|
2273
2252
|
* @param isWorkThread 是否使用工作线程打开文件,默认为 true
|
|
2274
2253
|
* @returns 是否成功打开文件
|
|
2275
2254
|
*/
|
|
2276
|
-
openWebFile(sFileUrl: string, retCall?: (iRet: number) => void, isWorkThread?: boolean): boolean;
|
|
2255
|
+
openWebFile(sFileUrl: string, retCall?: (iRet: number) => void, isWorkThread?: boolean, sInitialParameter?: string): boolean;
|
|
2277
2256
|
/**
|
|
2278
2257
|
* 获取当前文件名
|
|
2279
2258
|
* @returns 当前文件名
|
|
@@ -2886,6 +2865,8 @@ export interface MxCadConfig {
|
|
|
2886
2865
|
networkFonts?: string[];
|
|
2887
2866
|
/** 是否支持多选 */
|
|
2888
2867
|
multipleSelect?: boolean;
|
|
2868
|
+
/** 打开文件参数设置 */
|
|
2869
|
+
openParameter?: string;
|
|
2889
2870
|
}
|
|
2890
2871
|
/** 创建MxCad实例 */
|
|
2891
2872
|
export declare const createMxCad: (config?: MxCadConfig) => Promise<McObject>;
|