dxfview 0.0.4-beta.7 → 0.0.4-beta.9
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.
|
@@ -56,4 +56,12 @@ export declare class FreeDrawAnnotation extends BaseAnnotation {
|
|
|
56
56
|
* 将世界坐标转换为屏幕坐标
|
|
57
57
|
*/
|
|
58
58
|
private worldToScreen;
|
|
59
|
+
/**
|
|
60
|
+
* 从数据恢复标注
|
|
61
|
+
* 专用于JSON数据恢复,支持保持原始ID不变
|
|
62
|
+
* @param points 点集合
|
|
63
|
+
* @param customId 自定义ID,用于保持JSON中的原始ID
|
|
64
|
+
* @returns 创建的标注ID
|
|
65
|
+
*/
|
|
66
|
+
restoreFromData(points: THREE.Vector3[], customId?: string): string | undefined;
|
|
59
67
|
}
|
|
@@ -179,4 +179,11 @@ export declare class DividePlugin extends Plugin {
|
|
|
179
179
|
* @param drawable 要取消的绘制数据
|
|
180
180
|
*/
|
|
181
181
|
cancelFrameCreation(drawable: FrameDrawable): void;
|
|
182
|
+
/**
|
|
183
|
+
* 从JSON数据恢复图框
|
|
184
|
+
* 根据保存的角点坐标重新创建图框
|
|
185
|
+
* @param framesData 图框数据数组
|
|
186
|
+
* @returns 成功恢复的图框数量
|
|
187
|
+
*/
|
|
188
|
+
restoreFrames(framesData: DivideFrameInfo[]): number;
|
|
182
189
|
}
|