dxfview 0.0.4-beta.3 → 0.0.4-beta.4

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.
@@ -113,6 +113,7 @@ export declare class AnnotationPlugin extends Plugin {
113
113
  * @description {zh} 取消当前的标注绘制。这并不会退出标注,用户可以开始一个新的标注。
114
114
  */
115
115
  cancel(): void;
116
+ private getLastDrawable;
116
117
  /**
117
118
  *
118
119
  * @param {AnnotationData[]} dataArray
@@ -95,6 +95,11 @@ export declare abstract class BaseAnnotation extends Event<AnnotationEvents> {
95
95
  dblclick: () => void;
96
96
  protected onMouseClick(e: EventInfo): void;
97
97
  protected selectAnnotationByEvent(e: EventInfo): void;
98
+ /**
99
+ * 撤销当前绘制的最后一个点。
100
+ * @returns 是否成功撤销
101
+ */
102
+ undoLastPoint(): boolean;
98
103
  keydown: (e: EventInfo) => void;
99
104
  abstract exitDrawing(): void;
100
105
  abstract cancel(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dxfview",
3
- "version": "0.0.4-beta.3",
3
+ "version": "0.0.4-beta.4",
4
4
  "homepage": "",
5
5
  "module": "dist/dxfview.esm.min.js",
6
6
  "main": "dist/dxfview.esm.min.js",