mxcad 1.0.167 → 1.0.168
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 +12 -2
- package/dist/mxcad.es.js +909 -446
- package/dist/mxcad.umd.js +2 -2
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/dist/wasm/3d/mxdraw3d_min.js +35 -23
- package/dist/wasm/3d/mxdraw3d_min.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v6.13.0
|
|
2
2
|
|
|
3
|
-
import { DetailedResult, DynamicInputType, McEdGetPointWorldDrawObject, MrxDbgUiPrBaseReturn, MxCursorType, MxDbEntity, MxDrawObject } from 'mxdraw';
|
|
3
|
+
import { DetailedResult, DynamicInputType, McEdGetPointWorldDrawObject, MrxDbgUiPrBaseReturn, MrxDbgUiPrPoint, MxCursorType, MxDbEntity, MxDrawObject } from 'mxdraw';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
|
|
6
6
|
export declare function b64Encode(str: string): string;
|
|
@@ -23,6 +23,10 @@ export declare function downloadFile(blob: any, filename: string): void;
|
|
|
23
23
|
export declare function downloadFileFromUrl(url: string, filename: string): void;
|
|
24
24
|
export declare const getJsonFromUrl: (url: string) => Promise<any>;
|
|
25
25
|
export declare const getFileFromUrl: (url: string) => Promise<Response | undefined>;
|
|
26
|
+
/** 接收输入的提示字符串
|
|
27
|
+
* @param strId 字符串的ID 起一个符合定义的ID名称
|
|
28
|
+
* @param str 提示字符串
|
|
29
|
+
* */
|
|
26
30
|
export declare function _ML_String(strId: string, str: string): string;
|
|
27
31
|
export declare function IsZero(val: number): boolean;
|
|
28
32
|
export declare function postMemoryFile(memoryData: any, url: string, filename: string, retCall: (code: number, message: string) => void, param?: any): void;
|
|
@@ -827,9 +831,12 @@ export declare class MxCADUtilityClass {
|
|
|
827
831
|
* selectEnt 方法用于在指定位置选择图形对象
|
|
828
832
|
* @param strPrompt - 选择时的提示信息,默认为 null(表示不显示提示信息)
|
|
829
833
|
* @param filter - 过滤器,用于过滤选择到的图形对象,默认为 null(表示不进行过滤)
|
|
834
|
+
* @param isSelectMxDraw 是否选择批注图形 默认true
|
|
835
|
+
* @param init 选择图形前初始化函数( 会在实例化{@link https://mxcadx.gitee.io/mxdraw_api_docs/classes/MrxDbgUiPrPoint.html | mxdraw取点类}时触发,得到取点实例)
|
|
836
|
+
* @param callbackGetPoint 回调函数 获取选中图形时的坐标点
|
|
830
837
|
* @returns 返回一个 Promise,其中包含选择到的图形对象的 ID 数组
|
|
831
838
|
*/
|
|
832
|
-
selectEnt(strPrompt?: string, filter?: MxCADResbuf | null, isSelectMxDraw?: boolean): Promise<McObjectId[]>;
|
|
839
|
+
selectEnt(strPrompt?: string, filter?: MxCADResbuf | null, isSelectMxDraw?: boolean, init?: (getPoint: MrxDbgUiPrPoint) => any, callbackGetPoint?: (point: McGePoint3d) => void): Promise<McObjectId[]>;
|
|
833
840
|
/**
|
|
834
841
|
* 得到当前选中的对象。
|
|
835
842
|
*/
|
|
@@ -4418,6 +4425,8 @@ export interface MxDraw3d extends WasmConfig {
|
|
|
4418
4425
|
highLightSelShape(theEntry: number): void;
|
|
4419
4426
|
/** 高亮 */
|
|
4420
4427
|
highLightSelLabelShape(labelEntryStr: string): void;
|
|
4428
|
+
/** 通过Entry来进行删除对象 */
|
|
4429
|
+
removeObjectByEntry(theEntry: string): void;
|
|
4421
4430
|
/** 显示隐藏 */
|
|
4422
4431
|
setObjectShowStateByLabel(labelEntryStr: string, theToShow: boolean): void;
|
|
4423
4432
|
/** 更新画布大小 */
|
|
@@ -7333,6 +7342,7 @@ export declare class MdGeBRep {
|
|
|
7333
7342
|
ChangeSelectedMaterial(material: MdGeMaterialAspect): void;
|
|
7334
7343
|
AddClipPlane(pln: MdGePlane): void;
|
|
7335
7344
|
GetSelectedShapes(): MdGeListOfShape;
|
|
7345
|
+
setObjectColor(theEntry: string, theColor: MdGeColor): void;
|
|
7336
7346
|
}
|
|
7337
7347
|
/**
|
|
7338
7348
|
* 表示颜色
|