mxcad 1.0.388 → 1.0.389
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 +2 -0
- package/dist/mxcad.es.js +16 -4
- package/dist/mxcad.umd.js +3 -3
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/dist/wasm/2d-x64/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-x64-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -16599,6 +16599,7 @@ export declare function postMemoryFile(memoryData: any, url: string, filename: s
|
|
|
16599
16599
|
export declare function postEmscriptenIndexedDBFile(filekey: string, url: string, retCall: (code: number, message: string) => void, param?: any): void;
|
|
16600
16600
|
export declare function createCursor(cursorSize?: number, targetFrameSize?: number, color?: string): any;
|
|
16601
16601
|
export declare function createMdGeLongLongArrayFormAryId(aryId: McObjectId[]): any;
|
|
16602
|
+
export declare function copyMcDbEntityProperties(fromEnt: McDbEntity, toEnt: McDbEntity): void;
|
|
16602
16603
|
export declare const MxTools: {
|
|
16603
16604
|
b64Encode: typeof b64Encode;
|
|
16604
16605
|
b64Decode: typeof b64Decode;
|
|
@@ -16613,6 +16614,7 @@ export declare const MxTools: {
|
|
|
16613
16614
|
postMemoryFile: typeof postMemoryFile;
|
|
16614
16615
|
createCursor: typeof createCursor;
|
|
16615
16616
|
createMdGeLongLongArrayFormAryId: typeof createMdGeLongLongArrayFormAryId;
|
|
16617
|
+
copyMcDbEntityProperties: typeof copyMcDbEntityProperties;
|
|
16616
16618
|
};
|
|
16617
16619
|
export declare class MxCanvas2Image {
|
|
16618
16620
|
private $support;
|
package/dist/mxcad.es.js
CHANGED
|
@@ -14596,7 +14596,7 @@ win.McDrawObjectEvent_asciiToUTF8 = function (hexstr) {
|
|
|
14596
14596
|
return MxG2312Obj.decodeFromGb2312Imp(hexstr);
|
|
14597
14597
|
};
|
|
14598
14598
|
|
|
14599
|
-
const version$1 = "1.0.
|
|
14599
|
+
const version$1 = "1.0.388";
|
|
14600
14600
|
|
|
14601
14601
|
var isSharedArrayBuffer = "SharedArrayBuffer" in window;
|
|
14602
14602
|
var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);
|
|
@@ -41995,7 +41995,8 @@ function _Mx_Offset() {
|
|
|
41995
41995
|
if (aryObj2.empty()) return;
|
|
41996
41996
|
aryObj2.forEach(function (obj) {
|
|
41997
41997
|
if (obj instanceof McDbEntity) {
|
|
41998
|
-
|
|
41998
|
+
MxTools.copyMcDbEntityProperties(curve2, obj);
|
|
41999
|
+
pw.drawMcDbEntity(obj, false, true);
|
|
41999
42000
|
}
|
|
42000
42001
|
});
|
|
42001
42002
|
});
|
|
@@ -42095,6 +42096,7 @@ function _Mx_Offset() {
|
|
|
42095
42096
|
if (!isSourceLayer) {
|
|
42096
42097
|
obj.layer = MxCpp.getCurrentMxCAD().getDatabase().getCurrentlyLayerName();
|
|
42097
42098
|
}
|
|
42099
|
+
MxTools.copyMcDbEntityProperties(curve, obj);
|
|
42098
42100
|
var id = MxCpp.getCurrentMxCAD().drawEntity(obj);
|
|
42099
42101
|
if (isMultiple) retIds.unshift(id);
|
|
42100
42102
|
}
|
|
@@ -47066,6 +47068,14 @@ function createMdGeLongLongArrayFormAryId(aryId) {
|
|
|
47066
47068
|
});
|
|
47067
47069
|
return ids_imp;
|
|
47068
47070
|
}
|
|
47071
|
+
function copyMcDbEntityProperties(fromEnt, toEnt) {
|
|
47072
|
+
toEnt.layerId = fromEnt.layerId;
|
|
47073
|
+
toEnt.linetypeId = fromEnt.linetypeId;
|
|
47074
|
+
toEnt.linetypeScale = fromEnt.linetypeScale;
|
|
47075
|
+
toEnt.lineweight = fromEnt.lineweight;
|
|
47076
|
+
toEnt.trueColor = fromEnt.trueColor;
|
|
47077
|
+
toEnt.textStyleId = fromEnt.textStyleId;
|
|
47078
|
+
}
|
|
47069
47079
|
var MxTools = {
|
|
47070
47080
|
b64Encode: b64Encode,
|
|
47071
47081
|
b64Decode: b64Decode,
|
|
@@ -47079,7 +47089,8 @@ var MxTools = {
|
|
|
47079
47089
|
postEmscriptenIndexedDBFile: postEmscriptenIndexedDBFile,
|
|
47080
47090
|
postMemoryFile: postMemoryFile,
|
|
47081
47091
|
createCursor: createCursor,
|
|
47082
|
-
createMdGeLongLongArrayFormAryId: createMdGeLongLongArrayFormAryId
|
|
47092
|
+
createMdGeLongLongArrayFormAryId: createMdGeLongLongArrayFormAryId,
|
|
47093
|
+
copyMcDbEntityProperties: copyMcDbEntityProperties
|
|
47083
47094
|
};
|
|
47084
47095
|
|
|
47085
47096
|
var MxCanvas2Image = /*#__PURE__*/function () {
|
|
@@ -104214,6 +104225,7 @@ const mxcad = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
104214
104225
|
postEmscriptenIndexedDBFile,
|
|
104215
104226
|
createCursor,
|
|
104216
104227
|
createMdGeLongLongArrayFormAryId,
|
|
104228
|
+
copyMcDbEntityProperties,
|
|
104217
104229
|
MxTools,
|
|
104218
104230
|
MxCanvas2Image,
|
|
104219
104231
|
McGePoint3d,
|
|
@@ -104353,4 +104365,4 @@ globalThis.Buffer = buffer$1.Buffer;
|
|
|
104353
104365
|
globalThis.Buffer.alloc = buffer$1.Buffer.alloc;
|
|
104354
104366
|
globalThis.Buffer.from = buffer$1.Buffer.from;
|
|
104355
104367
|
|
|
104356
|
-
export { ColorIndexType, ColorMethod, DxfCode, FetchAttributes, IMcDbDwgFiler, IsZero, MLineJustificationType, McAppType, McCmColor, McDb, McDb2LineAngularDimension, McDbAlignedDimension, McDbArc, McDbAttribute, McDbAttributeDefinition, McDbBackgroundEntity, McDbBlockReference, McDbBlockTable, McDbBlockTableRecord, McDbCircle, McDbCurve, McDbCustomEntity, McDbDatabase, McDbDiametricDimension, McDbDictionary, McDbDimStyleTable, McDbDimStyleTableRecord, McDbDimension, McDbEllipse, McDbEntity, McDbGroup, McDbHatch$1 as McDbHatch, McDbLayerTable, McDbLayerTableRecord, McDbLine, McDbLinetypeTable, McDbLinetypeTableRecord, McDbMLine, McDbMText, McDbMxRegion, McDbObject, McDbObjectArray, McDbPoint, McDbPolyline, McDbProxyEntity, McDbRadialDimension, McDbRasterImage, McDbRasterImageDef, McDbRay, McDbRotatedDimension, McDbSpatialFilter, McDbSpline, McDbText, McDbTextStyleTable, McDbTextStyleTableRecord, McDbViewport, McDbWipeout, McDbXline, McDbXlsxTable, McDbXrecord, McGeBound, McGeDoubleArray, McGeLongArray, McGeMatrix3d, McGePoint3d, McGePoint3dArray, McGeStringArray, McGeVector3d, McObject, McObjectId, McObjectIdType, McObjectTempDraw, McRxObject, MxCADBaseCustomElement, MxCADBaseCustomText, MxCADCloneType, MxCADMText, MxCADPluginBase, MxCADPluginMapDefaultData, MxCADPluginSampleCode, MxCADResbuf, MxCADSelectionSet, MxCADSelectionSetStatus, MxCADTempForbiddenIntelliSelect, MxCADUiPrAngle, MxCADUiPrBase, MxCADUiPrDist, MxCADUiPrEntity, MxCADUiPrInt, MxCADUiPrKeyWord, MxCADUiPrPoint, MxCADUiPrPointTransform, MxCADUiPrString, MxCADUtility, MxCADUtilityClass, MxCADWorldDraw, MxCADWorldDrawType, MxCanvas2Image, MxCheckTheBrowser, MxCompare, MxCooperate, MxCoordConvert, MxCoordConvertType, MxCpp, MxCppType, MxMap, MxMapAddGoogleCnLayer, MxMapAddRasterTileLayer, MxModifyColor, MxPropertiesWindowCustom, MxPropertiesWindowCustomValue, MxPropertiesWindowCustomValueType, MxTIFFLoader, MxTools, Mx_About, Mx_Erase, TableRenderDirection, _ML_String, b64Decode, b64Encode, crateHexString, createCursor, createMcCmColor, createMdGeLongLongArrayFormAryId, createMxCad, mxcad as default, downloadFile, downloadFileFromUrl, drawArc, drawCircle, drawEllipticalArc, drawLine, drawMText, drawPolyLine, drawPolygon, drawRectang, drawText, getColorUtils, getFileFromUrl, getFilterImp, getJsonFromUrl, loadMxCADassembly, mx_gcj02_To_gps84, mx_gps84_To_gcj02, postEmscriptenIndexedDBFile, postMemoryFile, saveAsFileDialog, setMcCmColor };
|
|
104368
|
+
export { ColorIndexType, ColorMethod, DxfCode, FetchAttributes, IMcDbDwgFiler, IsZero, MLineJustificationType, McAppType, McCmColor, McDb, McDb2LineAngularDimension, McDbAlignedDimension, McDbArc, McDbAttribute, McDbAttributeDefinition, McDbBackgroundEntity, McDbBlockReference, McDbBlockTable, McDbBlockTableRecord, McDbCircle, McDbCurve, McDbCustomEntity, McDbDatabase, McDbDiametricDimension, McDbDictionary, McDbDimStyleTable, McDbDimStyleTableRecord, McDbDimension, McDbEllipse, McDbEntity, McDbGroup, McDbHatch$1 as McDbHatch, McDbLayerTable, McDbLayerTableRecord, McDbLine, McDbLinetypeTable, McDbLinetypeTableRecord, McDbMLine, McDbMText, McDbMxRegion, McDbObject, McDbObjectArray, McDbPoint, McDbPolyline, McDbProxyEntity, McDbRadialDimension, McDbRasterImage, McDbRasterImageDef, McDbRay, McDbRotatedDimension, McDbSpatialFilter, McDbSpline, McDbText, McDbTextStyleTable, McDbTextStyleTableRecord, McDbViewport, McDbWipeout, McDbXline, McDbXlsxTable, McDbXrecord, McGeBound, McGeDoubleArray, McGeLongArray, McGeMatrix3d, McGePoint3d, McGePoint3dArray, McGeStringArray, McGeVector3d, McObject, McObjectId, McObjectIdType, McObjectTempDraw, McRxObject, MxCADBaseCustomElement, MxCADBaseCustomText, MxCADCloneType, MxCADMText, MxCADPluginBase, MxCADPluginMapDefaultData, MxCADPluginSampleCode, MxCADResbuf, MxCADSelectionSet, MxCADSelectionSetStatus, MxCADTempForbiddenIntelliSelect, MxCADUiPrAngle, MxCADUiPrBase, MxCADUiPrDist, MxCADUiPrEntity, MxCADUiPrInt, MxCADUiPrKeyWord, MxCADUiPrPoint, MxCADUiPrPointTransform, MxCADUiPrString, MxCADUtility, MxCADUtilityClass, MxCADWorldDraw, MxCADWorldDrawType, MxCanvas2Image, MxCheckTheBrowser, MxCompare, MxCooperate, MxCoordConvert, MxCoordConvertType, MxCpp, MxCppType, MxMap, MxMapAddGoogleCnLayer, MxMapAddRasterTileLayer, MxModifyColor, MxPropertiesWindowCustom, MxPropertiesWindowCustomValue, MxPropertiesWindowCustomValueType, MxTIFFLoader, MxTools, Mx_About, Mx_Erase, TableRenderDirection, _ML_String, b64Decode, b64Encode, copyMcDbEntityProperties, crateHexString, createCursor, createMcCmColor, createMdGeLongLongArrayFormAryId, createMxCad, mxcad as default, downloadFile, downloadFileFromUrl, drawArc, drawCircle, drawEllipticalArc, drawLine, drawMText, drawPolyLine, drawPolygon, drawRectang, drawText, getColorUtils, getFileFromUrl, getFilterImp, getJsonFromUrl, loadMxCADassembly, mx_gcj02_To_gps84, mx_gps84_To_gcj02, postEmscriptenIndexedDBFile, postMemoryFile, saveAsFileDialog, setMcCmColor };
|