@mlightcad/cad-simple-viewer 1.5.0 → 1.5.2

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.
Files changed (242) hide show
  1. package/README.md +2 -1
  2. package/dist/index.js +25678 -48997
  3. package/dist/index.umd.cjs +571 -603
  4. package/dist/libredwg-parser-worker.js +3955 -7422
  5. package/dist/mtext-renderer-worker.js +2727 -2539
  6. package/lib/app/AcApAnnotation.js +4 -4
  7. package/lib/app/AcApAnnotation.js.map +1 -1
  8. package/lib/app/AcApDocManager.d.ts +56 -2
  9. package/lib/app/AcApDocManager.d.ts.map +1 -1
  10. package/lib/app/AcApDocManager.js +182 -31
  11. package/lib/app/AcApDocManager.js.map +1 -1
  12. package/lib/app/index.d.ts +1 -0
  13. package/lib/app/index.d.ts.map +1 -1
  14. package/lib/app/index.js +1 -0
  15. package/lib/app/index.js.map +1 -1
  16. package/lib/app/openFileProgress.d.ts +10 -0
  17. package/lib/app/openFileProgress.d.ts.map +1 -0
  18. package/lib/app/openFileProgress.js +20 -0
  19. package/lib/app/openFileProgress.js.map +1 -0
  20. package/lib/command/AcApSwitchBgCmd.d.ts +3 -0
  21. package/lib/command/AcApSwitchBgCmd.d.ts.map +1 -1
  22. package/lib/command/AcApSwitchBgCmd.js +14 -7
  23. package/lib/command/AcApSwitchBgCmd.js.map +1 -1
  24. package/lib/command/AcApZoomCmd.d.ts.map +1 -1
  25. package/lib/command/AcApZoomCmd.js +3 -3
  26. package/lib/command/AcApZoomCmd.js.map +1 -1
  27. package/lib/command/convert/index.d.ts +0 -1
  28. package/lib/command/convert/index.d.ts.map +1 -1
  29. package/lib/command/convert/index.js +0 -1
  30. package/lib/command/convert/index.js.map +1 -1
  31. package/lib/command/draw/AcApArcCmd.d.ts.map +1 -1
  32. package/lib/command/draw/AcApArcCmd.js +47 -20
  33. package/lib/command/draw/AcApArcCmd.js.map +1 -1
  34. package/lib/command/draw/AcApCircleCmd.d.ts.map +1 -1
  35. package/lib/command/draw/AcApCircleCmd.js +5 -6
  36. package/lib/command/draw/AcApCircleCmd.js.map +1 -1
  37. package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -1
  38. package/lib/command/draw/AcApEllipseCmd.js +4 -6
  39. package/lib/command/draw/AcApEllipseCmd.js.map +1 -1
  40. package/lib/command/draw/AcApMLineCmd.d.ts.map +1 -1
  41. package/lib/command/draw/AcApMLineCmd.js +4 -7
  42. package/lib/command/draw/AcApMLineCmd.js.map +1 -1
  43. package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
  44. package/lib/command/draw/AcApMTextCmd.js +3 -1
  45. package/lib/command/draw/AcApMTextCmd.js.map +1 -1
  46. package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -1
  47. package/lib/command/draw/AcApPolygonCmd.js +4 -5
  48. package/lib/command/draw/AcApPolygonCmd.js.map +1 -1
  49. package/lib/command/draw/AcApPolylineCmd.d.ts +49 -0
  50. package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -1
  51. package/lib/command/draw/AcApPolylineCmd.js +200 -18
  52. package/lib/command/draw/AcApPolylineCmd.js.map +1 -1
  53. package/lib/command/draw/AcApRayCmd.d.ts.map +1 -1
  54. package/lib/command/draw/AcApRayCmd.js +2 -3
  55. package/lib/command/draw/AcApRayCmd.js.map +1 -1
  56. package/lib/command/draw/AcApRectCmd.d.ts.map +1 -1
  57. package/lib/command/draw/AcApRectCmd.js +10 -10
  58. package/lib/command/draw/AcApRectCmd.js.map +1 -1
  59. package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -1
  60. package/lib/command/draw/AcApSplineCmd.js +3 -6
  61. package/lib/command/draw/AcApSplineCmd.js.map +1 -1
  62. package/lib/command/draw/AcApXLineCmd.d.ts.map +1 -1
  63. package/lib/command/draw/AcApXLineCmd.js +2 -3
  64. package/lib/command/draw/AcApXLineCmd.js.map +1 -1
  65. package/lib/command/measure/AcApClearMeasurementsCmd.d.ts +11 -0
  66. package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -1
  67. package/lib/command/measure/AcApClearMeasurementsCmd.js +15 -4
  68. package/lib/command/measure/AcApClearMeasurementsCmd.js.map +1 -1
  69. package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
  70. package/lib/command/measure/AcApMeasureAngleCmd.js +15 -6
  71. package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
  72. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
  73. package/lib/command/measure/AcApMeasureArcCmd.js +11 -4
  74. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
  75. package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
  76. package/lib/command/measure/AcApMeasureAreaCmd.js +11 -4
  77. package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
  78. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -2
  79. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
  80. package/lib/command/measure/AcApMeasureDistanceCmd.js +14 -6
  81. package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
  82. package/lib/command/modify/AcApOffsetCmd.d.ts +30 -0
  83. package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -0
  84. package/lib/command/modify/AcApOffsetCmd.js +425 -0
  85. package/lib/command/modify/AcApOffsetCmd.js.map +1 -0
  86. package/lib/command/modify/AcApRotateCmd.d.ts.map +1 -1
  87. package/lib/command/modify/AcApRotateCmd.js +3 -4
  88. package/lib/command/modify/AcApRotateCmd.js.map +1 -1
  89. package/lib/command/modify/index.d.ts +1 -0
  90. package/lib/command/modify/index.d.ts.map +1 -1
  91. package/lib/command/modify/index.js +1 -0
  92. package/lib/command/modify/index.js.map +1 -1
  93. package/lib/command/review/AcApRevCircleCmd.d.ts.map +1 -1
  94. package/lib/command/review/AcApRevCircleCmd.js +4 -1
  95. package/lib/command/review/AcApRevCircleCmd.js.map +1 -1
  96. package/lib/editor/global/AcEdUiColor.d.ts +183 -0
  97. package/lib/editor/global/AcEdUiColor.d.ts.map +1 -0
  98. package/lib/editor/global/AcEdUiColor.js +224 -0
  99. package/lib/editor/global/AcEdUiColor.js.map +1 -0
  100. package/lib/editor/global/AcEdUiTheme.d.ts +0 -1
  101. package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
  102. package/lib/editor/global/AcEdUiTheme.js +0 -5
  103. package/lib/editor/global/AcEdUiTheme.js.map +1 -1
  104. package/lib/editor/global/eventBus.d.ts +3 -0
  105. package/lib/editor/global/eventBus.d.ts.map +1 -1
  106. package/lib/editor/global/eventBus.js.map +1 -1
  107. package/lib/editor/global/index.d.ts +1 -0
  108. package/lib/editor/global/index.d.ts.map +1 -1
  109. package/lib/editor/global/index.js +1 -0
  110. package/lib/editor/global/index.js.map +1 -1
  111. package/lib/editor/input/AcEdCursorManager.d.ts +4 -0
  112. package/lib/editor/input/AcEdCursorManager.d.ts.map +1 -1
  113. package/lib/editor/input/AcEdCursorManager.js +11 -8
  114. package/lib/editor/input/AcEdCursorManager.js.map +1 -1
  115. package/lib/editor/input/AcEdOrthoMode.d.ts +11 -0
  116. package/lib/editor/input/AcEdOrthoMode.d.ts.map +1 -0
  117. package/lib/editor/input/AcEdOrthoMode.js +22 -0
  118. package/lib/editor/input/AcEdOrthoMode.js.map +1 -0
  119. package/lib/editor/input/AcEdPolarTracking.d.ts +107 -0
  120. package/lib/editor/input/AcEdPolarTracking.d.ts.map +1 -0
  121. package/lib/editor/input/AcEdPolarTracking.js +398 -0
  122. package/lib/editor/input/AcEdPolarTracking.js.map +1 -0
  123. package/lib/editor/input/AcEdSelectionFilter.js +7 -6
  124. package/lib/editor/input/AcEdSelectionFilter.js.map +1 -1
  125. package/lib/editor/input/AcEditor.d.ts +4 -0
  126. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  127. package/lib/editor/input/AcEditor.js +6 -0
  128. package/lib/editor/input/AcEditor.js.map +1 -1
  129. package/lib/editor/input/index.d.ts +2 -0
  130. package/lib/editor/input/index.d.ts.map +1 -1
  131. package/lib/editor/input/index.js +2 -0
  132. package/lib/editor/input/index.js.map +1 -1
  133. package/lib/editor/input/marker/AcEdMarker.d.ts.map +1 -1
  134. package/lib/editor/input/marker/AcEdMarker.js +3 -2
  135. package/lib/editor/input/marker/AcEdMarker.js.map +1 -1
  136. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +4 -0
  137. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
  138. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +11 -0
  139. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
  140. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts.map +1 -1
  141. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +1 -1
  142. package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js.map +1 -1
  143. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  144. package/lib/editor/input/ui/AcEdCommandLine.js +1 -1
  145. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  146. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +13 -0
  147. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  148. package/lib/editor/input/ui/AcEdFloatingInput.js +48 -3
  149. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  150. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +5 -0
  151. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  152. package/lib/editor/input/ui/AcEdFloatingMessage.js +1 -1
  153. package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
  154. package/lib/editor/input/ui/AcEdInputManager.d.ts +25 -6
  155. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  156. package/lib/editor/input/ui/AcEdInputManager.js +164 -63
  157. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  158. package/lib/editor/input/ui/AcEdMTextEditor.d.ts +67 -2
  159. package/lib/editor/input/ui/AcEdMTextEditor.d.ts.map +1 -1
  160. package/lib/editor/input/ui/AcEdMTextEditor.js +213 -21
  161. package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -1
  162. package/lib/editor/input/ui/AcEdRubberBand.d.ts +8 -0
  163. package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -1
  164. package/lib/editor/input/ui/AcEdRubberBand.js +62 -37
  165. package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
  166. package/lib/i18n/en/command.d.ts +71 -11
  167. package/lib/i18n/en/command.d.ts.map +1 -1
  168. package/lib/i18n/en/command.js +74 -14
  169. package/lib/i18n/en/command.js.map +1 -1
  170. package/lib/i18n/en/jig.d.ts +8 -0
  171. package/lib/i18n/en/jig.d.ts.map +1 -1
  172. package/lib/i18n/en/jig.js +8 -0
  173. package/lib/i18n/en/jig.js.map +1 -1
  174. package/lib/i18n/zh/command.d.ts +71 -11
  175. package/lib/i18n/zh/command.d.ts.map +1 -1
  176. package/lib/i18n/zh/command.js +74 -14
  177. package/lib/i18n/zh/command.js.map +1 -1
  178. package/lib/i18n/zh/jig.d.ts +8 -0
  179. package/lib/i18n/zh/jig.d.ts.map +1 -1
  180. package/lib/i18n/zh/jig.js +8 -0
  181. package/lib/i18n/zh/jig.js.map +1 -1
  182. package/lib/index.d.ts +2 -1
  183. package/lib/index.d.ts.map +1 -1
  184. package/lib/index.js +2 -1
  185. package/lib/index.js.map +1 -1
  186. package/lib/plugin/AcApLazyPluginRegistration.d.ts +28 -0
  187. package/lib/plugin/AcApLazyPluginRegistration.d.ts.map +1 -0
  188. package/lib/plugin/AcApLazyPluginRegistration.js +2 -0
  189. package/lib/plugin/AcApLazyPluginRegistration.js.map +1 -0
  190. package/lib/plugin/AcApPluginManager.d.ts +38 -0
  191. package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
  192. package/lib/plugin/AcApPluginManager.js +147 -22
  193. package/lib/plugin/AcApPluginManager.js.map +1 -1
  194. package/lib/plugin/index.d.ts +1 -0
  195. package/lib/plugin/index.d.ts.map +1 -1
  196. package/lib/plugin/index.js +1 -0
  197. package/lib/plugin/index.js.map +1 -1
  198. package/lib/util/AcApExportFileNameUtil.d.ts +22 -0
  199. package/lib/util/AcApExportFileNameUtil.d.ts.map +1 -0
  200. package/lib/util/AcApExportFileNameUtil.js +49 -0
  201. package/lib/util/AcApExportFileNameUtil.js.map +1 -0
  202. package/lib/util/AcApFontUtil.d.ts +79 -0
  203. package/lib/util/AcApFontUtil.d.ts.map +1 -0
  204. package/lib/util/AcApFontUtil.js +173 -0
  205. package/lib/util/AcApFontUtil.js.map +1 -0
  206. package/lib/util/index.d.ts +3 -0
  207. package/lib/util/index.d.ts.map +1 -1
  208. package/lib/util/index.js +3 -0
  209. package/lib/util/index.js.map +1 -1
  210. package/lib/util/yieldToMain.d.ts +5 -0
  211. package/lib/util/yieldToMain.d.ts.map +1 -0
  212. package/lib/util/yieldToMain.js +11 -0
  213. package/lib/util/yieldToMain.js.map +1 -0
  214. package/lib/view/AcTrLayoutView.d.ts +13 -1
  215. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  216. package/lib/view/AcTrLayoutView.js +20 -1
  217. package/lib/view/AcTrLayoutView.js.map +1 -1
  218. package/lib/view/AcTrLayoutViewManager.d.ts +3 -1
  219. package/lib/view/AcTrLayoutViewManager.d.ts.map +1 -1
  220. package/lib/view/AcTrLayoutViewManager.js +4 -2
  221. package/lib/view/AcTrLayoutViewManager.js.map +1 -1
  222. package/lib/view/AcTrScene.d.ts +38 -6
  223. package/lib/view/AcTrScene.d.ts.map +1 -1
  224. package/lib/view/AcTrScene.js +57 -30
  225. package/lib/view/AcTrScene.js.map +1 -1
  226. package/lib/view/AcTrView2d.d.ts +184 -1
  227. package/lib/view/AcTrView2d.d.ts.map +1 -1
  228. package/lib/view/AcTrView2d.js +657 -104
  229. package/lib/view/AcTrView2d.js.map +1 -1
  230. package/lib/view/index.d.ts +1 -0
  231. package/lib/view/index.d.ts.map +1 -1
  232. package/lib/view/index.js +1 -0
  233. package/lib/view/index.js.map +1 -1
  234. package/package.json +12 -9
  235. package/lib/command/convert/AcApConvertToSvgCmd.d.ts +0 -32
  236. package/lib/command/convert/AcApConvertToSvgCmd.d.ts.map +0 -1
  237. package/lib/command/convert/AcApConvertToSvgCmd.js +0 -98
  238. package/lib/command/convert/AcApConvertToSvgCmd.js.map +0 -1
  239. package/lib/command/convert/AcApSvgConvertor.d.ts +0 -53
  240. package/lib/command/convert/AcApSvgConvertor.d.ts.map +0 -1
  241. package/lib/command/convert/AcApSvgConvertor.js +0 -103
  242. package/lib/command/convert/AcApSvgConvertor.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { AcGePoint3d } from '@mlightcad/data-model';
2
+ import { AcApDocManager } from '../../../app';
2
3
  /**
3
4
  * AcEdRubberBand provides a temporary CAD-style rubber-band preview.
4
5
  *
@@ -49,6 +50,22 @@ var AcEdRubberBand = /** @class */ (function () {
49
50
  enumerable: false,
50
51
  configurable: true
51
52
  });
53
+ /**
54
+ * Converts a world point to container-local screen coordinates.
55
+ */
56
+ AcEdRubberBand.prototype.toContainerPoint = function (point) {
57
+ return this.view.canvasToContainer(this.view.worldToScreen(point));
58
+ };
59
+ /**
60
+ * Ensures the overlay host can anchor absolutely positioned children.
61
+ */
62
+ AcEdRubberBand.prototype.ensureHostPositioned = function () {
63
+ var host = this.view.container;
64
+ var hostPosition = getComputedStyle(host).position;
65
+ if (hostPosition === 'static') {
66
+ host.style.position = 'relative';
67
+ }
68
+ };
52
69
  /**
53
70
  * Starts the rubber-band preview.
54
71
  * @param basePoint The starting point in world coordinates.
@@ -59,25 +76,29 @@ var AcEdRubberBand = /** @class */ (function () {
59
76
  this.options = options || {};
60
77
  var color = this.options.color || 'var(--ml-ui-canvas-line, #0f0)';
61
78
  // --------------------------------------------------------------------
62
- // Create parent container
79
+ // Create parent container inside the view so overlays stay within the
80
+ // canvas stacking context and do not float above ribbon/status bar.
63
81
  // --------------------------------------------------------------------
82
+ this.ensureHostPositioned();
64
83
  this.container = document.createElement('div');
65
- this.container.style.position = 'fixed';
84
+ this.container.style.position = 'absolute';
66
85
  this.container.style.left = '0';
67
86
  this.container.style.top = '0';
87
+ this.container.style.width = '100%';
88
+ this.container.style.height = '100%';
68
89
  this.container.style.pointerEvents = 'none';
69
- this.container.style.zIndex = '99999';
70
- document.body.appendChild(this.container);
90
+ this.container.style.zIndex = '1';
91
+ this.view.container.appendChild(this.container);
71
92
  // --------------------------------------------------------------------
72
93
  // Always create baseLine
73
94
  // --------------------------------------------------------------------
74
95
  this.baseLine = document.createElement('div');
75
- this.baseLine.style.position = 'fixed';
96
+ this.baseLine.style.position = 'absolute';
76
97
  this.baseLine.style.borderTop = "1px solid ".concat(color);
77
98
  this.container.appendChild(this.baseLine);
78
99
  var createDashed = function () {
79
100
  var el = document.createElement('div');
80
- el.style.position = 'fixed';
101
+ el.style.position = 'absolute';
81
102
  el.style.borderTop = "1px dashed ".concat(color);
82
103
  _this.container.appendChild(el);
83
104
  return el;
@@ -89,7 +110,7 @@ var AcEdRubberBand = /** @class */ (function () {
89
110
  this.connectorLine = createDashed();
90
111
  // distance label
91
112
  this.labelEl = document.createElement('div');
92
- this.labelEl.style.position = 'fixed';
113
+ this.labelEl.style.position = 'absolute';
93
114
  // this.labelEl.style.background = 'rgba(0,0,0,0.6)'
94
115
  this.labelEl.style.color = color;
95
116
  this.labelEl.style.fontSize = '12px';
@@ -98,7 +119,7 @@ var AcEdRubberBand = /** @class */ (function () {
98
119
  this.container.appendChild(this.labelEl);
99
120
  // X-axis reference line
100
121
  this.xAxisLine = document.createElement('div');
101
- this.xAxisLine.style.position = 'fixed';
122
+ this.xAxisLine.style.position = 'absolute';
102
123
  this.xAxisLine.style.borderTop = "1px solid ".concat(color);
103
124
  this.container.appendChild(this.xAxisLine);
104
125
  // SVG for angle arc
@@ -116,7 +137,7 @@ var AcEdRubberBand = /** @class */ (function () {
116
137
  this.container.appendChild(this.angleSvg);
117
138
  // Angle label (HTML) positioned in screen coords at arc midpoint
118
139
  this.angleLabelEl = document.createElement('div');
119
- this.angleLabelEl.style.position = 'fixed';
140
+ this.angleLabelEl.style.position = 'absolute';
120
141
  // this.angleLabelEl.style.background = 'rgba(0,0,0,0.6)'
121
142
  this.angleLabelEl.style.color = color;
122
143
  this.angleLabelEl.style.fontSize = '12px';
@@ -130,14 +151,11 @@ var AcEdRubberBand = /** @class */ (function () {
130
151
  * @param targetPoint The current cursor position in world coordinates.
131
152
  */
132
153
  AcEdRubberBand.prototype.update = function (targetPoint) {
133
- var _a, _b, _c;
154
+ var _a, _b, _c, _d, _e;
134
155
  if (!this.container || !this.basePoint || !this.baseLine)
135
156
  return;
136
- var rect = this.view.canvas.getBoundingClientRect();
137
- var p0 = this.view.worldToScreen(this.basePoint);
138
- var p3 = this.view.worldToScreen(targetPoint);
139
- var offsetX = rect.left;
140
- var offsetY = rect.top;
157
+ var p0 = this.toContainerPoint(this.basePoint);
158
+ var p3 = this.toContainerPoint(targetPoint);
141
159
  var drawLine = function (line, start, end) {
142
160
  var dx = end.x - start.x;
143
161
  var dy = end.y - start.y;
@@ -145,7 +163,7 @@ var AcEdRubberBand = /** @class */ (function () {
145
163
  var angle = Math.atan2(dy, dx) * (180 / Math.PI);
146
164
  line.style.width = "".concat(length, "px");
147
165
  line.style.transformOrigin = '0 0';
148
- line.style.transform = "translate(".concat(start.x + offsetX, "px, ").concat(start.y + offsetY, "px) rotate(").concat(angle, "deg)");
166
+ line.style.transform = "translate(".concat(start.x, "px, ").concat(start.y, "px) rotate(").concat(angle, "deg)");
149
167
  };
150
168
  // --------------------------------------------------------------------
151
169
  // Always update baseLine
@@ -192,11 +210,14 @@ var AcEdRubberBand = /** @class */ (function () {
192
210
  // Distance label
193
211
  // --------------------------------------------------------------------
194
212
  if (this.labelEl) {
195
- var midX = (pBasePerp.x + pCursorPerp.x) / 2 + offsetX;
196
- var midY = (pBasePerp.y + pCursorPerp.y) / 2 + offsetY - 24;
213
+ var midX = (pBasePerp.x + pCursorPerp.x) / 2;
214
+ var midY = (pBasePerp.y + pCursorPerp.y) / 2 - 24;
197
215
  var dist = Math.sqrt(Math.pow((targetPoint.x - this.basePoint.x), 2) +
198
216
  Math.pow((targetPoint.y - this.basePoint.y), 2));
199
- this.labelEl.textContent = dist.toFixed(3);
217
+ var db = (_b = AcApDocManager.instance.curDocument) === null || _b === void 0 ? void 0 : _b.database;
218
+ this.labelEl.textContent = db
219
+ ? db.formatter.formatLength(dist)
220
+ : dist.toFixed(3);
200
221
  this.labelEl.style.left = "".concat(midX - 20, "px");
201
222
  this.labelEl.style.top = "".concat(midY, "px");
202
223
  this.labelEl.style.display = '';
@@ -205,13 +226,13 @@ var AcEdRubberBand = /** @class */ (function () {
205
226
  // Horizontal X-axis line (same length as base line)
206
227
  // --------------------------------------------------------------------
207
228
  if (this.xAxisLine) {
208
- var baseAngleRadWorld = (((_b = this.options.baseAngle) !== null && _b !== void 0 ? _b : 0) * Math.PI) / 180;
229
+ var baseAngleRadWorld = (((_c = this.options.baseAngle) !== null && _c !== void 0 ? _c : 0) * Math.PI) / 180;
209
230
  var worldRefPoint = {
210
231
  x: this.basePoint.x + Math.cos(baseAngleRadWorld),
211
232
  y: this.basePoint.y + Math.sin(baseAngleRadWorld),
212
233
  z: 0
213
234
  };
214
- var screenRefPoint = this.view.worldToScreen(worldRefPoint);
235
+ var screenRefPoint = this.toContainerPoint(worldRefPoint);
215
236
  var baseAngleRadScreen = Math.atan2(screenRefPoint.y - p0.y, screenRefPoint.x - p0.x);
216
237
  var pX = {
217
238
  x: p0.x + lengthBase * Math.cos(baseAngleRadScreen),
@@ -225,20 +246,20 @@ var AcEdRubberBand = /** @class */ (function () {
225
246
  // --------------------------------------------------------------------
226
247
  if (this.angleSvg && this.anglePath && this.angleLabelEl) {
227
248
  var radius = lengthBase;
228
- // center (screen) of the arc
229
- var centerScreenX = p0.x + offsetX;
230
- var centerScreenY = p0.y + offsetY;
249
+ // center of the arc in container-local coordinates
250
+ var centerX = p0.x;
251
+ var centerY = p0.y;
231
252
  // We need coordinates relative to the SVG's top-left.
232
253
  // We'll make the SVG have width = height = 2*radius and be positioned
233
254
  // at (center - radius). Then coordinates inside SVG are:
234
255
  // start = (2r, r), end = (r + r*cos(theta), r + r*sin(theta))
235
- var baseAngleRadWorld = (((_c = this.options.baseAngle) !== null && _c !== void 0 ? _c : 0) * Math.PI) / 180;
256
+ var baseAngleRadWorld = (((_d = this.options.baseAngle) !== null && _d !== void 0 ? _d : 0) * Math.PI) / 180;
236
257
  var worldRefPoint = {
237
258
  x: this.basePoint.x + Math.cos(baseAngleRadWorld),
238
259
  y: this.basePoint.y + Math.sin(baseAngleRadWorld),
239
260
  z: 0
240
261
  };
241
- var screenRefPoint = this.view.worldToScreen(worldRefPoint);
262
+ var screenRefPoint = this.toContainerPoint(worldRefPoint);
242
263
  var baseAngleRadScreen = Math.atan2(screenRefPoint.y - p0.y, screenRefPoint.x - p0.x);
243
264
  var targetAngleRad = Math.atan2(p3.y - p0.y, p3.x - p0.x);
244
265
  var angleRad = targetAngleRad - baseAngleRadScreen;
@@ -246,12 +267,11 @@ var AcEdRubberBand = /** @class */ (function () {
246
267
  angleRad += Math.PI * 2;
247
268
  while (angleRad > Math.PI)
248
269
  angleRad -= Math.PI * 2;
249
- var angleDeg = (angleRad * 180) / Math.PI;
250
270
  // mid-angle for placing label (middle of arc)
251
271
  var midAngle = baseAngleRadScreen + angleRad / 2;
252
272
  // SVG position and sizing
253
- var svgLeft = centerScreenX - radius;
254
- var svgTop = centerScreenY - radius;
273
+ var svgLeft = centerX - radius;
274
+ var svgTop = centerY - radius;
255
275
  var svgSize = radius * 2;
256
276
  // set SVG attributes and position
257
277
  this.angleSvg.style.left = "".concat(svgLeft, "px");
@@ -273,17 +293,22 @@ var AcEdRubberBand = /** @class */ (function () {
273
293
  // build path: Move to start, arc to end
274
294
  var d = "M ".concat(sx, " ").concat(sy, " A ").concat(radius, " ").concat(radius, " 0 ").concat(largeArcFlag, " ").concat(sweepFlag, " ").concat(ex, " ").concat(ey);
275
295
  this.anglePath.setAttribute('d', d);
276
- // angle label (absolute degrees)
277
- var angleValueDeg = Math.abs(angleDeg);
278
- var angleText = "".concat(angleValueDeg.toFixed(1), "\u00B0");
279
- // midpoint of arc in screen coords
280
- var midScreenX = centerScreenX + radius * Math.cos(midAngle);
281
- var midScreenY = centerScreenY + radius * Math.sin(midAngle);
296
+ var angleValueRad = Math.abs(angleRad);
297
+ var db = (_e = AcApDocManager.instance.curDocument) === null || _e === void 0 ? void 0 : _e.database;
298
+ var angleText = db
299
+ ? db.formatter.formatAngle(angleValueRad, {
300
+ showUnits: true,
301
+ applyAngbaseAngdir: false
302
+ })
303
+ : "".concat(((angleValueRad * 180) / Math.PI).toFixed(1), "\u00B0");
304
+ // midpoint of arc in container-local coordinates
305
+ var midX = centerX + radius * Math.cos(midAngle);
306
+ var midY = centerY + radius * Math.sin(midAngle);
282
307
  this.angleLabelEl.textContent = angleText;
283
308
  // center the label roughly
284
309
  var labelRectApproxWidth = 40; // rough centering; exact can be done by measuring
285
- this.angleLabelEl.style.left = "".concat(midScreenX - labelRectApproxWidth / 2, "px");
286
- this.angleLabelEl.style.top = "".concat(midScreenY - 12, "px");
310
+ this.angleLabelEl.style.left = "".concat(midX - labelRectApproxWidth / 2, "px");
311
+ this.angleLabelEl.style.top = "".concat(midY - 12, "px");
287
312
  this.angleLabelEl.style.display = '';
288
313
  }
289
314
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdRubberBand.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdRubberBand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,uBAAuB,CAAA;AA+BpE;;;;;;;;;;;;;;GAcG;AACH;IAgCE;;;;OAIG;IACH,wBAAY,IAAkB;QAjCtB,cAAS,GAA0B,IAAI,CAAA;QAE/C,gBAAgB;QACR,aAAQ,GAA0B,IAAI,CAAA;QACtC,m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AAE,CAAA;QACtC,CAAC;IACH,CAAC;IAED,mEAAmE;IACnE,gCAAO,GAAP;QACE,IAAI,IAAI,CAAC,SAAS;YAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QAErB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QACpB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAA;QAC5B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAA;QAEzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;QACnB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAA;QAExB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACrB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;IACvB,CAAC;IACH,qBAAC;AAAD,CAAC,AAlXD,IAkXC"}
@@ -6,21 +6,42 @@ declare const _default: {
6
6
  '-layer': {
7
7
  description: string;
8
8
  };
9
+ angbase: {
10
+ description: string;
11
+ };
12
+ angdir: {
13
+ description: string;
14
+ };
9
15
  arc: {
10
16
  description: string;
11
17
  };
18
+ aunits: {
19
+ description: string;
20
+ };
21
+ auprec: {
22
+ description: string;
23
+ };
12
24
  cdxf: {
13
25
  description: string;
14
26
  };
27
+ cpdf: {
28
+ description: string;
29
+ };
15
30
  cecolor: {
16
31
  description: string;
17
32
  };
18
33
  celtscale: {
19
34
  description: string;
20
35
  };
36
+ celtype: {
37
+ description: string;
38
+ };
21
39
  celweight: {
22
40
  description: string;
23
41
  };
42
+ cetranparency: {
43
+ description: string;
44
+ };
24
45
  circle: {
25
46
  description: string;
26
47
  };
@@ -46,22 +67,16 @@ declare const _default: {
46
67
  csvg: {
47
68
  description: string;
48
69
  };
49
- dimlinear: {
50
- description: string;
51
- };
52
- measurearea: {
70
+ chtml: {
53
71
  description: string;
54
72
  };
55
- measureangle: {
73
+ dimlinear: {
56
74
  description: string;
57
75
  };
58
- measurearc: {
76
+ dynmode: {
59
77
  description: string;
60
78
  };
61
- measuredistance: {
62
- description: string;
63
- };
64
- measurementcolor: {
79
+ dynprompt: {
65
80
  description: string;
66
81
  };
67
82
  ellipse: {
@@ -74,6 +89,9 @@ declare const _default: {
74
89
  hatch: {
75
90
  description: string;
76
91
  };
92
+ ipdf: {
93
+ description: string;
94
+ };
77
95
  hpang: {
78
96
  description: string;
79
97
  };
@@ -107,6 +125,9 @@ declare const _default: {
107
125
  hptransparency: {
108
126
  description: string;
109
127
  };
128
+ insunits: {
129
+ description: string;
130
+ };
110
131
  laycur: {
111
132
  description: string;
112
133
  prompt: string;
@@ -155,9 +176,33 @@ declare const _default: {
155
176
  log: {
156
177
  description: string;
157
178
  };
179
+ lunits: {
180
+ description: string;
181
+ };
182
+ luprec: {
183
+ description: string;
184
+ };
158
185
  lwdisplay: {
159
186
  description: string;
160
187
  };
188
+ measurearea: {
189
+ description: string;
190
+ };
191
+ measureangle: {
192
+ description: string;
193
+ };
194
+ measurearc: {
195
+ description: string;
196
+ };
197
+ measuredistance: {
198
+ description: string;
199
+ };
200
+ measurement: {
201
+ description: string;
202
+ };
203
+ measurementcolor: {
204
+ description: string;
205
+ };
161
206
  mline: {
162
207
  description: string;
163
208
  };
@@ -165,12 +210,18 @@ declare const _default: {
165
210
  description: string;
166
211
  prompt: string;
167
212
  };
213
+ offset: {
214
+ description: string;
215
+ };
168
216
  mtext: {
169
217
  description: string;
170
218
  };
171
219
  open: {
172
220
  description: string;
173
221
  };
222
+ osmode: {
223
+ description: string;
224
+ };
174
225
  pan: {
175
226
  description: string;
176
227
  };
@@ -211,13 +262,22 @@ declare const _default: {
211
262
  select: {
212
263
  description: string;
213
264
  };
265
+ shortcutmenu: {
266
+ description: string;
267
+ };
214
268
  sketch: {
215
269
  description: string;
216
270
  };
217
271
  spline: {
218
272
  description: string;
219
273
  };
220
- whitebkcolor: {
274
+ textstyle: {
275
+ description: string;
276
+ };
277
+ unitmode: {
278
+ description: string;
279
+ };
280
+ switchbg: {
221
281
  description: string;
222
282
  };
223
283
  xline: {
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4PC"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAiUC"}
@@ -6,21 +6,42 @@ export default {
6
6
  '-layer': {
7
7
  description: 'Manages layers through command-line options'
8
8
  },
9
+ angbase: {
10
+ description: 'Sets the base angle 0 direction with respect to the current UCS'
11
+ },
12
+ angdir: {
13
+ description: 'Sets whether positive angles are measured clockwise or counterclockwise'
14
+ },
9
15
  arc: {
10
16
  description: 'Creates an arc'
11
17
  },
18
+ aunits: {
19
+ description: 'Sets the display format for angles'
20
+ },
21
+ auprec: {
22
+ description: 'Sets the display precision for angles, used together with AUNITS'
23
+ },
12
24
  cdxf: {
13
25
  description: 'Exports current drawing to DXF'
14
26
  },
27
+ cpdf: {
28
+ description: 'Exports current drawing to PDF'
29
+ },
15
30
  cecolor: {
16
31
  description: 'Sets the current default color for newly created objects'
17
32
  },
18
33
  celtscale: {
19
34
  description: 'Controls the linetype scale factor for newly created objects'
20
35
  },
36
+ celtype: {
37
+ description: 'Sets the linetype for newly created objects'
38
+ },
21
39
  celweight: {
22
40
  description: 'Sets the default lineweight for newly created objects'
23
41
  },
42
+ cetranparency: {
43
+ description: 'Sets the transparency for newly created objects'
44
+ },
24
45
  circle: {
25
46
  description: 'Creates one circle by center and radius'
26
47
  },
@@ -46,23 +67,17 @@ export default {
46
67
  csvg: {
47
68
  description: 'Converts current drawing to SVG'
48
69
  },
70
+ chtml: {
71
+ description: 'Exports current drawing to a standalone offline HTML file'
72
+ },
49
73
  dimlinear: {
50
74
  description: 'Creates linear dimensions'
51
75
  },
52
- measurearea: {
53
- description: 'Calculates the area and perimeter of selected objects or points'
76
+ dynmode: {
77
+ description: 'Controls Dynamic Input settings at the cursor'
54
78
  },
55
- measureangle: {
56
- description: 'Measures the angle between two lines or three points'
57
- },
58
- measurearc: {
59
- description: 'Measures the length of an arc segment'
60
- },
61
- measuredistance: {
62
- description: 'Measures the distance and delta values between two points'
63
- },
64
- measurementcolor: {
65
- description: 'Sets the color used for measurement overlays'
79
+ dynprompt: {
80
+ description: 'Controls display of prompts in Dynamic Input tooltips'
66
81
  },
67
82
  ellipse: {
68
83
  description: 'Creates an ellipse or elliptical arc by axis endpoints or center'
@@ -74,6 +89,9 @@ export default {
74
89
  hatch: {
75
90
  description: 'Fills an enclosed area or selected objects with a hatch pattern'
76
91
  },
92
+ ipdf: {
93
+ description: 'Imports vector geometry from a PDF file'
94
+ },
77
95
  hpang: {
78
96
  description: 'Sets the default angle, in radians, for newly created hatch patterns'
79
97
  },
@@ -107,6 +125,9 @@ export default {
107
125
  hptransparency: {
108
126
  description: 'Sets the default transparency for newly created hatches and fills'
109
127
  },
128
+ insunits: {
129
+ description: 'Specifies drawing units for automatic scaling of inserted blocks, images, or xrefs'
130
+ },
110
131
  laycur: {
111
132
  description: 'Changes the layer property of selected objects to the current layer',
112
133
  prompt: 'Select objects to be changed to the current layer'
@@ -155,9 +176,33 @@ export default {
155
176
  log: {
156
177
  description: 'Logs debug information in console'
157
178
  },
179
+ lunits: {
180
+ description: 'Sets the display format for coordinates and distances'
181
+ },
182
+ luprec: {
183
+ description: 'Sets the display precision for linear units, used together with LUNITS'
184
+ },
158
185
  lwdisplay: {
159
186
  description: 'Controls whether lineweights are displayed in the drawing'
160
187
  },
188
+ measurearea: {
189
+ description: 'Calculates the area and perimeter of selected objects or points'
190
+ },
191
+ measureangle: {
192
+ description: 'Measures the angle between two lines or three points'
193
+ },
194
+ measurearc: {
195
+ description: 'Measures the length of an arc segment'
196
+ },
197
+ measuredistance: {
198
+ description: 'Measures the distance and delta values between two points'
199
+ },
200
+ measurement: {
201
+ description: 'Sets whether the drawing uses English (imperial) or metric units'
202
+ },
203
+ measurementcolor: {
204
+ description: 'Sets the color used for measurement overlays'
205
+ },
161
206
  mline: {
162
207
  description: 'Creates multiple parallel lines as one multiline object'
163
208
  },
@@ -165,12 +210,18 @@ export default {
165
210
  description: 'Moves selected entities by a displacement vector',
166
211
  prompt: 'Select entities'
167
212
  },
213
+ offset: {
214
+ description: 'Creates parallel curves, polylines, or circles at a specified distance'
215
+ },
168
216
  mtext: {
169
217
  description: 'Creates one mtext entity'
170
218
  },
171
219
  open: {
172
220
  description: 'Opens an existing drawing file'
173
221
  },
222
+ osmode: {
223
+ description: 'Sets running Object Snap modes using a bitcode value'
224
+ },
174
225
  pan: {
175
226
  description: 'Shifts the view without changing the viewing direction or magnification'
176
227
  },
@@ -211,13 +262,22 @@ export default {
211
262
  select: {
212
263
  description: 'Selects entities'
213
264
  },
265
+ shortcutmenu: {
266
+ description: 'Controls the availability of shortcut menus in the drawing area'
267
+ },
214
268
  sketch: {
215
269
  description: 'Creates a sketch line using polyline that tracks mouse movement'
216
270
  },
217
271
  spline: {
218
272
  description: 'Creates a smooth spline curve by specifying control points'
219
273
  },
220
- whitebkcolor: {
274
+ textstyle: {
275
+ description: 'Sets the name of the current text style'
276
+ },
277
+ unitmode: {
278
+ description: 'Controls fractional display of coordinates when LUNITS is Architectural or Fractional'
279
+ },
280
+ switchbg: {
221
281
  description: 'Toggles the drawing area background between white and black'
222
282
  },
223
283
  xline: {
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,IAAI,EAAE;QACJ,QAAQ,EAAE;YACR,WAAW,EACT,wEAAwE;SAC3E;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,6CAA6C;SAC3D;QACD,GAAG,EAAE;YACH,WAAW,EAAE,gBAAgB;SAC9B;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;SAC9C;QACD,OAAO,EAAE;YACP,WAAW,EAAE,0DAA0D;SACxE;QACD,SAAS,EAAE;YACT,WAAW,EACT,8DAA8D;SACjE;QACD,SAAS,EAAE;YACT,WAAW,EAAE,uDAAuD;SACrE;QACD,MAAM,EAAE;YACN,WAAW,EAAE,yCAAyC;SACvD;QACD,MAAM,EAAE;YACN,WAAW,EACT,+DAA+D;SAClE;QACD,aAAa,EAAE;YACb,WAAW,EAAE,gDAAgD;SAC9D;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,2CAA2C;SACzD;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,8CAA8C;SAC5D;QACD,UAAU,EAAE;YACV,WAAW,EACT,gEAAgE;SACnE;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;YACxE,MAAM,EAAE,iBAAiB;SAC1B;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;SAC/C;QACD,SAAS,EAAE;YACT,WAAW,EAAE,2BAA2B;SACzC;QACD,W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WAAW,EAAE,wDAAwD;SACtE;QACD,KAAK,EAAE;YACL,WAAW,EAAE,6BAA6B;SAC3C;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,4DAA4D;SAC1E;QACD,MAAM,EAAE;YACN,WAAW,EAAE,+CAA+C;YAC5D,MAAM,EAAE,iBAAiB;SAC1B;QACD,MAAM,EAAE;YACN,WAAW,EAAE,kBAAkB;SAChC;QACD,MAAM,EAAE;YACN,WAAW,EACT,iEAAiE;SACpE;QACD,MAAM,EAAE;YACN,WAAW,EAAE,4DAA4D;SAC1E;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,6DAA6D;SAC3E;QACD,KAAK,EAAE;YACL,WAAW,EACT,wEAAwE;SAC3E;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;SACpE;KACF;IACD,IAAI,EAAE,EAAE;CACT,CAAA"}
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/i18n/en/command.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,IAAI,EAAE;QACJ,QAAQ,EAAE;YACR,WAAW,EACT,wEAAwE;SAC3E;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,6CAA6C;SAC3D;QACD,OAAO,EAAE;YACP,WAAW,EACT,iEAAiE;SACpE;QACD,MAAM,EAAE;YACN,WAAW,EACT,yEAAyE;SAC5E;QACD,GAAG,EAAE;YACH,WAAW,EAAE,gBAAgB;SAC9B;QACD,MAAM,EAAE;YACN,WAAW,EAAE,oCAAoC;SAClD;QACD,MAAM,EAAE;YACN,WAAW,EACT,kEAAkE;SACrE;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;SAC9C;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;SAC9C;QACD,OAAO,EAAE;YACP,WAAW,EAAE,0DAA0D;SACxE;QACD,SAAS,EAAE;YACT,WAAW,EACT,8DAA8D;SACjE;QACD,OAAO,EAAE;YACP,WAAW,EAAE,6CAA6C;SAC3D;QACD,SAAS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BAAiB;SAC1B;QACD,MAAM,EAAE;YACN,WAAW,EAAE,kBAAkB;SAChC;QACD,YAAY,EAAE;YACZ,WAAW,EACT,iEAAiE;SACpE;QACD,MAAM,EAAE;YACN,WAAW,EACT,iEAAiE;SACpE;QACD,MAAM,EAAE;YACN,WAAW,EAAE,4DAA4D;SAC1E;QACD,SAAS,EAAE;YACT,WAAW,EAAE,yCAAyC;SACvD;QACD,QAAQ,EAAE;YACR,WAAW,EACT,uFAAuF;SAC1F;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,6DAA6D;SAC3E;QACD,KAAK,EAAE;YACL,WAAW,EACT,wEAAwE;SAC3E;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;SACpE;KACF;IACD,IAAI,EAAE,EAAE;CACT,CAAA"}
@@ -653,6 +653,14 @@ declare const _default: {
653
653
  };
654
654
  };
655
655
  };
656
+ offset: {
657
+ distance: string;
658
+ selectObject: string;
659
+ sidePoint: string;
660
+ invalidDistance: string;
661
+ invalidSelection: string;
662
+ offsetFailed: string;
663
+ };
656
664
  mtext: {
657
665
  point: string;
658
666
  };