mxcad 1.0.398 → 1.0.399

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 CHANGED
@@ -11463,9 +11463,15 @@ export declare class McObject {
11463
11463
  */
11464
11464
  undoMark(): void;
11465
11465
  /**
11466
- *回退标记索引加1.
11467
- *在非命令函数里面修改数据据对象,需要回退标记索引加1,这样会记录修改,不然可能会认为上一次的命令修改,跳过当前修改回退记录.
11468
- *在命令里面会自动回退标记索引加1
11466
+ *当前是否存在回退数据。
11467
+ */
11468
+ isUndo(): boolean;
11469
+ /**
11470
+ *当前是否存在重做数据。
11471
+ */
11472
+ isRedo(): boolean;
11473
+ /**
11474
+ *回退标记索引加1.,用于内部使用。
11469
11475
  */
11470
11476
  undoIndexIncrease(): void;
11471
11477
  }
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.397";
14599
+ const version$1 = "1.0.398";
14600
14600
 
14601
14601
  var isSharedArrayBuffer = "SharedArrayBuffer" in window;
14602
14602
  var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);
@@ -23612,6 +23612,16 @@ var McObject = /*#__PURE__*/function () {
23612
23612
  value: function undoMark() {
23613
23613
  this.imp.undoMark();
23614
23614
  }
23615
+ }, {
23616
+ key: "isUndo",
23617
+ value: function isUndo() {
23618
+ return this.imp.isUndo();
23619
+ }
23620
+ }, {
23621
+ key: "isRedo",
23622
+ value: function isRedo() {
23623
+ return this.imp.isRedo();
23624
+ }
23615
23625
  }, {
23616
23626
  key: "undoIndexIncrease",
23617
23627
  value: function undoIndexIncrease() {