mxcad 1.0.79 → 1.0.81
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 +104 -101
- package/dist/mxcad.es.js +744 -679
- package/dist/mxcad.umd.js +40 -40
- package/dist/wasm/2d/mxdrawassembly_min.js +166 -165
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +158 -157
- 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: {
|
|
@@ -643,10 +645,26 @@ export declare class MxCADUtilityClass {
|
|
|
643
645
|
/**
|
|
644
646
|
* 得到当前选中的对象。
|
|
645
647
|
*/
|
|
646
|
-
getCurrentSelect(): McObjectId[];
|
|
648
|
+
getCurrentSelect(filter?: MxCADResbuf | null): McObjectId[];
|
|
649
|
+
userSelect(strPrompt?: string, filter?: MxCADResbuf | null): Promise<McObjectId[]>;
|
|
647
650
|
private init;
|
|
651
|
+
getCorner(strPrompt?: string, pt1?: McGePoint3d, detailedResult?: Function, drawSelectCroner?: boolean): Promise<{
|
|
652
|
+
pt1: McGePoint3d;
|
|
653
|
+
pt2: McGePoint3d;
|
|
654
|
+
} | null>;
|
|
655
|
+
getMcDbEntitysBoundingBox(aryId: McObjectId[]): {
|
|
656
|
+
minPt: McGePoint3d;
|
|
657
|
+
maxPt: McGePoint3d;
|
|
658
|
+
} | undefined;
|
|
648
659
|
}
|
|
649
660
|
export declare let MxCADUtility: MxCADUtilityClass;
|
|
661
|
+
export declare enum MxCADSelectionSetStatus {
|
|
662
|
+
kSelected = 0,
|
|
663
|
+
kNone = 1,
|
|
664
|
+
kCanceled = 2,
|
|
665
|
+
kRejected = 3,
|
|
666
|
+
kKeyword = 4
|
|
667
|
+
}
|
|
650
668
|
export declare class MxCADSelectionSet extends McRxObject {
|
|
651
669
|
constructor();
|
|
652
670
|
allSelect(filter?: MxCADResbuf | null): number;
|
|
@@ -658,14 +676,13 @@ export declare class MxCADSelectionSet extends McRxObject {
|
|
|
658
676
|
getIds(): McObjectId[];
|
|
659
677
|
userSelect(strPrompt?: string, filter?: MxCADResbuf | null): Promise<boolean>;
|
|
660
678
|
}
|
|
661
|
-
export declare class
|
|
662
|
-
|
|
663
|
-
constructor();
|
|
664
|
-
go(): Promise<McGePoint3d | null>;
|
|
679
|
+
export declare class MxCADUiPrBase {
|
|
680
|
+
protected imp: any;
|
|
681
|
+
constructor(imp: any);
|
|
665
682
|
/**
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
683
|
+
* 返回关键字列表
|
|
684
|
+
* @returns 关键词列表
|
|
685
|
+
*/
|
|
669
686
|
keyWords(): string;
|
|
670
687
|
/**
|
|
671
688
|
* 设置关键字列表
|
|
@@ -701,33 +718,6 @@ export declare class MxCADUiPrPoint {
|
|
|
701
718
|
* @returns void
|
|
702
719
|
*/
|
|
703
720
|
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
721
|
/**
|
|
732
722
|
* 返回交互操作退出的详细原因
|
|
733
723
|
*/
|
|
@@ -779,49 +769,48 @@ export declare class MxCADUiPrPoint {
|
|
|
779
769
|
* 是否禁用捕捉
|
|
780
770
|
*/
|
|
781
771
|
isDisableOsnap(): boolean;
|
|
772
|
+
/**
|
|
773
|
+
* 返回输入控制设置,UserInputControls
|
|
774
|
+
*/
|
|
775
|
+
userInputControls(): number;
|
|
776
|
+
/**
|
|
777
|
+
* 设置输入控制设置,UserInputControls
|
|
778
|
+
*/
|
|
779
|
+
setUserInputControls(contros: number): void;
|
|
782
780
|
}
|
|
783
|
-
export declare class
|
|
784
|
-
private imp;
|
|
781
|
+
export declare class MxCADUiPrPoint extends MxCADUiPrBase {
|
|
785
782
|
constructor();
|
|
783
|
+
go(): Promise<McGePoint3d | null>;
|
|
786
784
|
/**
|
|
787
|
-
*
|
|
788
|
-
* @returns
|
|
789
|
-
*/
|
|
790
|
-
keyWords(): string;
|
|
791
|
-
/**
|
|
792
|
-
* 设置关键字列表
|
|
793
|
-
* @param keyWordList 关键词列表
|
|
794
|
-
* @returns void
|
|
785
|
+
* 得以获取的点对象,Three.js坐标
|
|
786
|
+
* @returns 点对象 THREE.THREE.Vector3
|
|
795
787
|
*/
|
|
796
|
-
|
|
788
|
+
value(): McGePoint3d;
|
|
797
789
|
/**
|
|
798
|
-
*
|
|
799
|
-
* @returns
|
|
790
|
+
* 得到 MxCAD下CAD图纸坐标.
|
|
791
|
+
* @returns 点对象 MdGePoint3d
|
|
800
792
|
*/
|
|
801
|
-
|
|
793
|
+
getCADValue(): McGePoint3d;
|
|
802
794
|
/**
|
|
803
|
-
*
|
|
804
|
-
* @
|
|
805
|
-
* @returns 提示消息
|
|
795
|
+
* 得到动态拖动的基点
|
|
796
|
+
* @returns 基点 THREE.THREE.Vector3
|
|
806
797
|
*/
|
|
807
|
-
|
|
798
|
+
basePt(): McGePoint3d;
|
|
808
799
|
/**
|
|
809
|
-
*
|
|
810
|
-
* @
|
|
800
|
+
* 设置动态拖动的基点
|
|
801
|
+
* @param basePt 基点 THREE.THREE.Vector3
|
|
802
|
+
* @returns 点对象 DWG图纸坐标
|
|
811
803
|
*/
|
|
812
|
-
|
|
804
|
+
setBasePt(basePt: McGePoint3d): void;
|
|
813
805
|
/**
|
|
814
|
-
*
|
|
815
|
-
* @param
|
|
816
|
-
* @returns
|
|
806
|
+
* 设置使用动态拖动的基点
|
|
807
|
+
* @param useIt 是否设置 默认为false
|
|
808
|
+
* @returns void
|
|
817
809
|
*/
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
* @returns void
|
|
823
|
-
*/
|
|
824
|
-
setUserDraw(pDraw: ((currentPoint: McGePoint3d, pWorldDraw: McEdGetPointWorldDrawObject) => void)): void;
|
|
810
|
+
setUseBasePt(useIt: boolean): void;
|
|
811
|
+
}
|
|
812
|
+
export declare class MxCADUiPrDist extends MxCADUiPrBase {
|
|
813
|
+
constructor();
|
|
825
814
|
/**
|
|
826
815
|
* 得以获取的距离
|
|
827
816
|
*/
|
|
@@ -843,63 +832,77 @@ export declare class MxCADUiPrDist {
|
|
|
843
832
|
* @returns void
|
|
844
833
|
*/
|
|
845
834
|
setUseBasePt(useIt: boolean): void;
|
|
846
|
-
/**
|
|
847
|
-
* 返回交互操作退出的详细原因
|
|
848
|
-
*/
|
|
849
|
-
getDetailedResult(): DetailedResult;
|
|
850
|
-
getStatus(): MrxDbgUiPrBaseReturn;
|
|
851
835
|
/**
|
|
852
836
|
* 开始动态拖动
|
|
853
837
|
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
854
838
|
* @returns void
|
|
855
839
|
*/
|
|
856
840
|
go(): Promise<number | null>;
|
|
841
|
+
}
|
|
842
|
+
export declare class MxCADUiPrAngle extends MxCADUiPrBase {
|
|
843
|
+
constructor();
|
|
857
844
|
/**
|
|
858
|
-
*
|
|
859
|
-
* @param callAddEntity 回调参数ent 类型:THREE.THREE.Object3D
|
|
860
|
-
* @returns 点对象 DWG图纸坐标
|
|
845
|
+
* 得以获取的距离
|
|
861
846
|
*/
|
|
862
|
-
|
|
847
|
+
value(): number;
|
|
863
848
|
/**
|
|
864
|
-
*
|
|
849
|
+
* 得到动态拖动的基点
|
|
850
|
+
* @returns 基点 McGePoint3d
|
|
865
851
|
*/
|
|
866
|
-
|
|
852
|
+
basePt(): McGePoint3d;
|
|
867
853
|
/**
|
|
868
|
-
*
|
|
854
|
+
* 设置动态拖动的基点
|
|
855
|
+
* @param basePt 基点 McGePoint3d
|
|
856
|
+
* @returns 点对象 DWG图纸坐标
|
|
869
857
|
*/
|
|
870
|
-
|
|
858
|
+
setBasePt(basePt: McGePoint3d): void;
|
|
871
859
|
/**
|
|
872
|
-
*
|
|
860
|
+
* 设置使用动态拖动的基点
|
|
861
|
+
* @param useIt 是否设置 默认为false
|
|
862
|
+
* @returns void
|
|
873
863
|
*/
|
|
874
|
-
|
|
864
|
+
setUseBasePt(useIt: boolean): void;
|
|
875
865
|
/**
|
|
876
|
-
*
|
|
866
|
+
* 开始动态拖动
|
|
867
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
868
|
+
* @returns void
|
|
877
869
|
*/
|
|
878
|
-
|
|
870
|
+
go(): Promise<number | null>;
|
|
871
|
+
}
|
|
872
|
+
export declare class MxCADUiPrInt extends MxCADUiPrBase {
|
|
873
|
+
constructor();
|
|
879
874
|
/**
|
|
880
|
-
*
|
|
875
|
+
* 得以获取的距离
|
|
881
876
|
*/
|
|
882
|
-
|
|
877
|
+
value(): number;
|
|
883
878
|
/**
|
|
884
|
-
*
|
|
879
|
+
* 开始动态拖动
|
|
880
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
881
|
+
* @returns void
|
|
885
882
|
*/
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
isDisableDynInput(): boolean;
|
|
883
|
+
go(): Promise<number | null>;
|
|
884
|
+
}
|
|
885
|
+
export declare class MxCADUiPrKeyWord extends MxCADUiPrBase {
|
|
886
|
+
constructor();
|
|
891
887
|
/**
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
888
|
+
* 开始动态拖动
|
|
889
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
890
|
+
* @returns void
|
|
891
|
+
*/
|
|
892
|
+
go(): Promise<string | null>;
|
|
893
|
+
}
|
|
894
|
+
export declare class MxCADUiPrString extends MxCADUiPrBase {
|
|
895
|
+
constructor();
|
|
895
896
|
/**
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
897
|
+
* 得以获取的距离
|
|
898
|
+
*/
|
|
899
|
+
value(): string;
|
|
899
900
|
/**
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
901
|
+
* 开始动态拖动
|
|
902
|
+
* @param retcall 回调参数status {@link MrxDbgUiPrBaseReturn | 状态值}
|
|
903
|
+
* @returns void
|
|
904
|
+
*/
|
|
905
|
+
go(): Promise<string | null>;
|
|
903
906
|
}
|
|
904
907
|
/**
|
|
905
908
|
* 表示数据库实体。
|