dxf-json 0.0.7 → 0.0.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.
Files changed (468) hide show
  1. package/.github/workflows/npm-publish.yml +1 -1
  2. package/dist/bundle.js +2 -0
  3. package/dist/bundle.js.LICENSE.txt +5 -0
  4. package/dist/consts/block.d.ts +10 -0
  5. package/dist/consts/block.js +22 -0
  6. package/dist/consts/block.js.map +1 -0
  7. package/dist/consts/color.d.ts +5 -0
  8. package/dist/consts/color.js +10 -0
  9. package/dist/consts/color.js.map +1 -0
  10. package/dist/consts/config.d.ts +2 -0
  11. package/dist/consts/config.js +6 -0
  12. package/dist/consts/config.js.map +1 -0
  13. package/dist/consts/dimension.d.ts +61 -0
  14. package/dist/consts/dimension.js +74 -0
  15. package/dist/consts/dimension.js.map +1 -0
  16. package/dist/consts/hatch.d.ts +44 -0
  17. package/dist/consts/hatch.js +57 -0
  18. package/dist/consts/hatch.js.map +1 -0
  19. package/dist/consts/header.d.ts +9 -0
  20. package/dist/consts/header.js +13 -0
  21. package/dist/consts/header.js.map +1 -0
  22. package/dist/consts/index.d.ts +9 -0
  23. package/dist/consts/index.js +26 -0
  24. package/dist/consts/index.js.map +1 -0
  25. package/dist/consts/lineweight.d.ts +5 -0
  26. package/dist/consts/lineweight.js +10 -0
  27. package/dist/consts/lineweight.js.map +1 -0
  28. package/dist/consts/measurement.d.ts +4 -0
  29. package/dist/consts/measurement.js +9 -0
  30. package/dist/consts/measurement.js.map +1 -0
  31. package/dist/consts/obscuredLineTypes.d.ts +21 -0
  32. package/dist/consts/obscuredLineTypes.js +26 -0
  33. package/dist/consts/obscuredLineTypes.js.map +1 -0
  34. package/dist/consts/scene.d.ts +2 -0
  35. package/dist/consts/scene.js +6 -0
  36. package/dist/consts/scene.js.map +1 -0
  37. package/dist/consts/viewport.d.ts +56 -0
  38. package/dist/consts/viewport.js +67 -0
  39. package/dist/consts/viewport.js.map +1 -0
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +9 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/parser/AutoCadColorIndex.d.ts +8 -0
  44. package/dist/parser/AutoCadColorIndex.js +267 -0
  45. package/dist/parser/AutoCadColorIndex.js.map +1 -0
  46. package/dist/parser/DxfArrayScanner.d.ts +38 -0
  47. package/dist/parser/DxfArrayScanner.js +159 -0
  48. package/dist/parser/DxfArrayScanner.js.map +1 -0
  49. package/dist/parser/DxfParser.d.ts +9 -0
  50. package/dist/parser/DxfParser.js +108 -0
  51. package/dist/parser/DxfParser.js.map +1 -0
  52. package/dist/parser/ParseHelpers.d.ts +21 -0
  53. package/dist/parser/ParseHelpers.js +129 -0
  54. package/dist/parser/ParseHelpers.js.map +1 -0
  55. package/dist/parser/blocks/blocks.test.d.ts +1 -0
  56. package/dist/parser/blocks/blocks.test.js +86 -0
  57. package/dist/parser/blocks/blocks.test.js.map +1 -0
  58. package/dist/parser/blocks/index.d.ts +4 -0
  59. package/dist/parser/blocks/index.js +83 -0
  60. package/dist/parser/blocks/index.js.map +1 -0
  61. package/dist/parser/blocks/types.d.ts +14 -0
  62. package/dist/parser/blocks/types.js +3 -0
  63. package/dist/parser/blocks/types.js.map +1 -0
  64. package/dist/parser/entities/3dface.js +106 -0
  65. package/dist/parser/entities/3dface.js.map +1 -0
  66. package/dist/parser/entities/arc/index.d.ts +2 -0
  67. package/dist/parser/entities/arc/index.js +19 -0
  68. package/dist/parser/entities/arc/index.js.map +1 -0
  69. package/dist/parser/entities/arc/parser.d.ts +7 -0
  70. package/dist/parser/entities/arc/parser.js +63 -0
  71. package/dist/parser/entities/arc/parser.js.map +1 -0
  72. package/dist/parser/entities/arc/types.d.ts +12 -0
  73. package/dist/parser/entities/arc/types.js +3 -0
  74. package/dist/parser/entities/arc/types.js.map +1 -0
  75. package/dist/parser/entities/attdef/consts.d.ts +11 -0
  76. package/dist/parser/entities/attdef/consts.js +17 -0
  77. package/dist/parser/entities/attdef/consts.js.map +1 -0
  78. package/dist/parser/entities/attdef/index.d.ts +3 -0
  79. package/dist/parser/entities/attdef/index.js +20 -0
  80. package/dist/parser/entities/attdef/index.js.map +1 -0
  81. package/dist/parser/entities/attdef/parser.d.ts +8 -0
  82. package/dist/parser/entities/attdef/parser.js +108 -0
  83. package/dist/parser/entities/attdef/parser.js.map +1 -0
  84. package/dist/parser/entities/attdef/types.d.ts +17 -0
  85. package/dist/parser/entities/attdef/types.js +3 -0
  86. package/dist/parser/entities/attdef/types.js.map +1 -0
  87. package/dist/parser/entities/attribute/consts.d.ts +6 -0
  88. package/dist/parser/entities/attribute/consts.js +11 -0
  89. package/dist/parser/entities/attribute/consts.js.map +1 -0
  90. package/dist/parser/entities/attribute/index.d.ts +3 -0
  91. package/dist/parser/entities/attribute/index.js +20 -0
  92. package/dist/parser/entities/attribute/index.js.map +1 -0
  93. package/dist/parser/entities/attribute/parser.d.ts +8 -0
  94. package/dist/parser/entities/attribute/parser.js +185 -0
  95. package/dist/parser/entities/attribute/parser.js.map +1 -0
  96. package/dist/parser/entities/attribute/types.d.ts +30 -0
  97. package/dist/parser/entities/attribute/types.js +3 -0
  98. package/dist/parser/entities/attribute/types.js.map +1 -0
  99. package/dist/parser/entities/circle/index.d.ts +2 -0
  100. package/dist/parser/entities/circle/index.js +19 -0
  101. package/dist/parser/entities/circle/index.js.map +1 -0
  102. package/dist/parser/entities/circle/parser.d.ts +8 -0
  103. package/dist/parser/entities/circle/parser.js +50 -0
  104. package/dist/parser/entities/circle/parser.js.map +1 -0
  105. package/dist/parser/entities/circle/types.d.ts +10 -0
  106. package/dist/parser/entities/circle/types.js +3 -0
  107. package/dist/parser/entities/circle/types.js.map +1 -0
  108. package/dist/parser/entities/dimension/common.d.ts +6 -0
  109. package/dist/parser/entities/dimension/common.js +122 -0
  110. package/dist/parser/entities/dimension/common.js.map +1 -0
  111. package/dist/parser/entities/dimension/index.d.ts +6 -0
  112. package/dist/parser/entities/dimension/index.js +21 -0
  113. package/dist/parser/entities/dimension/index.js.map +1 -0
  114. package/dist/parser/entities/dimension/types.d.ts +48 -0
  115. package/dist/parser/entities/dimension/types.js +3 -0
  116. package/dist/parser/entities/dimension/types.js.map +1 -0
  117. package/dist/parser/entities/ellipse/index.d.ts +2 -0
  118. package/dist/parser/entities/ellipse/index.js +19 -0
  119. package/dist/parser/entities/ellipse/index.js.map +1 -0
  120. package/dist/parser/entities/ellipse/parser.d.ts +7 -0
  121. package/dist/parser/entities/ellipse/parser.js +59 -0
  122. package/dist/parser/entities/ellipse/parser.js.map +1 -0
  123. package/dist/parser/entities/ellipse/types.d.ts +12 -0
  124. package/dist/parser/entities/ellipse/types.js +3 -0
  125. package/dist/parser/entities/ellipse/types.js.map +1 -0
  126. package/dist/parser/entities/entities.test.d.ts +1 -0
  127. package/dist/parser/entities/entities.test.js +81 -0
  128. package/dist/parser/entities/entities.test.js.map +1 -0
  129. package/dist/parser/entities/hatch/boundaryPathData/edge.d.ts +6 -0
  130. package/dist/parser/entities/hatch/boundaryPathData/edge.js +178 -0
  131. package/dist/parser/entities/hatch/boundaryPathData/edge.js.map +1 -0
  132. package/dist/parser/entities/hatch/boundaryPathData/index.d.ts +5 -0
  133. package/dist/parser/entities/hatch/boundaryPathData/index.js +23 -0
  134. package/dist/parser/entities/hatch/boundaryPathData/index.js.map +1 -0
  135. package/dist/parser/entities/hatch/boundaryPathData/polyline.d.ts +2 -0
  136. package/dist/parser/entities/hatch/boundaryPathData/polyline.js +41 -0
  137. package/dist/parser/entities/hatch/boundaryPathData/polyline.js.map +1 -0
  138. package/dist/parser/entities/hatch/boundaryPathData/shared.d.ts +2 -0
  139. package/dist/parser/entities/hatch/boundaryPathData/shared.js +19 -0
  140. package/dist/parser/entities/hatch/boundaryPathData/shared.js.map +1 -0
  141. package/dist/parser/entities/hatch/index.d.ts +8 -0
  142. package/dist/parser/entities/hatch/index.js +183 -0
  143. package/dist/parser/entities/hatch/index.js.map +1 -0
  144. package/dist/parser/entities/hatch/patternData.d.ts +3 -0
  145. package/dist/parser/entities/hatch/patternData.js +54 -0
  146. package/dist/parser/entities/hatch/patternData.js.map +1 -0
  147. package/dist/parser/entities/hatch/types/boundaryPath.d.ts +59 -0
  148. package/dist/parser/entities/hatch/types/boundaryPath.js +3 -0
  149. package/dist/parser/entities/hatch/types/boundaryPath.js.map +1 -0
  150. package/dist/parser/entities/hatch/types/definitionLine.d.ts +8 -0
  151. package/dist/parser/entities/hatch/types/definitionLine.js +3 -0
  152. package/dist/parser/entities/hatch/types/definitionLine.js.map +1 -0
  153. package/dist/parser/entities/hatch/types/hatch.d.ts +38 -0
  154. package/dist/parser/entities/hatch/types/hatch.js +3 -0
  155. package/dist/parser/entities/hatch/types/hatch.js.map +1 -0
  156. package/dist/parser/entities/hatch/types/index.d.ts +3 -0
  157. package/dist/parser/entities/hatch/types/index.js +20 -0
  158. package/dist/parser/entities/hatch/types/index.js.map +1 -0
  159. package/dist/parser/entities/index.d.ts +8 -0
  160. package/dist/parser/entities/index.js +81 -0
  161. package/dist/parser/entities/index.js.map +1 -0
  162. package/dist/parser/entities/insert/index.d.ts +2 -0
  163. package/dist/parser/entities/insert/index.js +19 -0
  164. package/dist/parser/entities/insert/index.js.map +1 -0
  165. package/dist/parser/entities/insert/parser.d.ts +8 -0
  166. package/dist/parser/entities/insert/parser.js +97 -0
  167. package/dist/parser/entities/insert/parser.js.map +1 -0
  168. package/dist/parser/entities/insert/types.d.ts +18 -0
  169. package/dist/parser/entities/insert/types.js +3 -0
  170. package/dist/parser/entities/insert/types.js.map +1 -0
  171. package/dist/parser/entities/leader/consts.d.ts +6 -0
  172. package/dist/parser/entities/leader/consts.js +11 -0
  173. package/dist/parser/entities/leader/consts.js.map +1 -0
  174. package/dist/parser/entities/leader/index.d.ts +3 -0
  175. package/dist/parser/entities/leader/index.js +20 -0
  176. package/dist/parser/entities/leader/index.js.map +1 -0
  177. package/dist/parser/entities/leader/parser.d.ts +8 -0
  178. package/dist/parser/entities/leader/parser.js +110 -0
  179. package/dist/parser/entities/leader/parser.js.map +1 -0
  180. package/dist/parser/entities/leader/types.d.ts +23 -0
  181. package/dist/parser/entities/leader/types.js +3 -0
  182. package/dist/parser/entities/leader/types.js.map +1 -0
  183. package/dist/parser/entities/line/index.d.ts +2 -0
  184. package/dist/parser/entities/line/index.js +19 -0
  185. package/dist/parser/entities/line/index.js.map +1 -0
  186. package/dist/parser/entities/line/parser.d.ts +8 -0
  187. package/dist/parser/entities/line/parser.js +50 -0
  188. package/dist/parser/entities/line/parser.js.map +1 -0
  189. package/dist/parser/entities/line/types.d.ts +10 -0
  190. package/dist/parser/entities/line/types.js +3 -0
  191. package/dist/parser/entities/line/types.js.map +1 -0
  192. package/dist/parser/entities/lwpolyline/consts.d.ts +4 -0
  193. package/dist/parser/entities/lwpolyline/consts.js +9 -0
  194. package/dist/parser/entities/lwpolyline/consts.js.map +1 -0
  195. package/dist/parser/entities/lwpolyline/index.d.ts +3 -0
  196. package/dist/parser/entities/lwpolyline/index.js +20 -0
  197. package/dist/parser/entities/lwpolyline/index.js.map +1 -0
  198. package/dist/parser/entities/lwpolyline/parser.d.ts +7 -0
  199. package/dist/parser/entities/lwpolyline/parser.js +105 -0
  200. package/dist/parser/entities/lwpolyline/parser.js.map +1 -0
  201. package/dist/parser/entities/lwpolyline/types.d.ts +19 -0
  202. package/dist/parser/entities/lwpolyline/types.js +3 -0
  203. package/dist/parser/entities/lwpolyline/types.js.map +1 -0
  204. package/dist/parser/entities/mtext/consts.d.ts +5 -0
  205. package/dist/parser/entities/mtext/consts.js +10 -0
  206. package/dist/parser/entities/mtext/consts.js.map +1 -0
  207. package/dist/parser/entities/mtext/index.d.ts +3 -0
  208. package/dist/parser/entities/mtext/index.js +20 -0
  209. package/dist/parser/entities/mtext/index.js.map +1 -0
  210. package/dist/parser/entities/mtext/parser.d.ts +10 -0
  211. package/dist/parser/entities/mtext/parser.js +188 -0
  212. package/dist/parser/entities/mtext/parser.js.map +1 -0
  213. package/dist/parser/entities/mtext/types.d.ts +33 -0
  214. package/dist/parser/entities/mtext/types.js +3 -0
  215. package/dist/parser/entities/mtext/types.js.map +1 -0
  216. package/dist/parser/entities/point/index.d.ts +2 -0
  217. package/dist/parser/entities/point/index.js +19 -0
  218. package/dist/parser/entities/point/index.js.map +1 -0
  219. package/dist/parser/entities/point/parser.d.ts +6 -0
  220. package/dist/parser/entities/point/parser.js +54 -0
  221. package/dist/parser/entities/point/parser.js.map +1 -0
  222. package/dist/parser/entities/point/types.d.ts +9 -0
  223. package/dist/parser/entities/point/types.js +3 -0
  224. package/dist/parser/entities/point/types.js.map +1 -0
  225. package/dist/parser/entities/polyline/consts.d.ts +16 -0
  226. package/dist/parser/entities/polyline/consts.js +22 -0
  227. package/dist/parser/entities/polyline/consts.js.map +1 -0
  228. package/dist/parser/entities/polyline/index.d.ts +3 -0
  229. package/dist/parser/entities/polyline/index.js +20 -0
  230. package/dist/parser/entities/polyline/index.js.map +1 -0
  231. package/dist/parser/entities/polyline/parser.d.ts +7 -0
  232. package/dist/parser/entities/polyline/parser.js +118 -0
  233. package/dist/parser/entities/polyline/parser.js.map +1 -0
  234. package/dist/parser/entities/polyline/types.d.ts +19 -0
  235. package/dist/parser/entities/polyline/types.js +3 -0
  236. package/dist/parser/entities/polyline/types.js.map +1 -0
  237. package/dist/parser/entities/section/index.d.ts +2 -0
  238. package/dist/parser/entities/section/index.js +19 -0
  239. package/dist/parser/entities/section/index.js.map +1 -0
  240. package/dist/parser/entities/section/parser.d.ts +7 -0
  241. package/dist/parser/entities/section/parser.js +97 -0
  242. package/dist/parser/entities/section/parser.js.map +1 -0
  243. package/dist/parser/entities/section/types.d.ts +19 -0
  244. package/dist/parser/entities/section/types.js +3 -0
  245. package/dist/parser/entities/section/types.js.map +1 -0
  246. package/dist/parser/entities/shared.d.ts +35 -0
  247. package/dist/parser/entities/shared.js +136 -0
  248. package/dist/parser/entities/shared.js.map +1 -0
  249. package/dist/parser/entities/solid/index.d.ts +2 -0
  250. package/dist/parser/entities/solid/index.js +19 -0
  251. package/dist/parser/entities/solid/index.js.map +1 -0
  252. package/dist/parser/entities/solid/parser.d.ts +8 -0
  253. package/dist/parser/entities/solid/parser.js +48 -0
  254. package/dist/parser/entities/solid/parser.js.map +1 -0
  255. package/dist/parser/entities/solid/types.d.ts +9 -0
  256. package/dist/parser/entities/solid/types.js +3 -0
  257. package/dist/parser/entities/solid/types.js.map +1 -0
  258. package/dist/parser/entities/spline/consts.d.ts +8 -0
  259. package/dist/parser/entities/spline/consts.js +13 -0
  260. package/dist/parser/entities/spline/consts.js.map +1 -0
  261. package/dist/parser/entities/spline/index.d.ts +3 -0
  262. package/dist/parser/entities/spline/index.js +20 -0
  263. package/dist/parser/entities/spline/index.js.map +1 -0
  264. package/dist/parser/entities/spline/parser.d.ts +8 -0
  265. package/dist/parser/entities/spline/parser.js +113 -0
  266. package/dist/parser/entities/spline/parser.js.map +1 -0
  267. package/dist/parser/entities/spline/types.d.ts +21 -0
  268. package/dist/parser/entities/spline/types.js +3 -0
  269. package/dist/parser/entities/spline/types.js.map +1 -0
  270. package/dist/parser/entities/text/consts.d.ts +19 -0
  271. package/dist/parser/entities/text/consts.js +26 -0
  272. package/dist/parser/entities/text/consts.js.map +1 -0
  273. package/dist/parser/entities/text/index.d.ts +3 -0
  274. package/dist/parser/entities/text/index.js +20 -0
  275. package/dist/parser/entities/text/index.js.map +1 -0
  276. package/dist/parser/entities/text/parser.d.ts +26 -0
  277. package/dist/parser/entities/text/parser.js +112 -0
  278. package/dist/parser/entities/text/parser.js.map +1 -0
  279. package/dist/parser/entities/text/types.d.ts +20 -0
  280. package/dist/parser/entities/text/types.js +3 -0
  281. package/dist/parser/entities/text/types.js.map +1 -0
  282. package/dist/parser/entities/vertex/consts.d.ts +10 -0
  283. package/dist/parser/entities/vertex/consts.js +15 -0
  284. package/dist/parser/entities/vertex/consts.js.map +1 -0
  285. package/dist/parser/entities/vertex/index.d.ts +3 -0
  286. package/dist/parser/entities/vertex/index.js +20 -0
  287. package/dist/parser/entities/vertex/index.js.map +1 -0
  288. package/dist/parser/entities/vertex/parser.d.ts +8 -0
  289. package/dist/parser/entities/vertex/parser.js +86 -0
  290. package/dist/parser/entities/vertex/parser.js.map +1 -0
  291. package/dist/parser/entities/vertex/types.d.ts +16 -0
  292. package/dist/parser/entities/vertex/types.js +3 -0
  293. package/dist/parser/entities/vertex/types.js.map +1 -0
  294. package/dist/parser/entities/viewport/index.d.ts +5 -0
  295. package/dist/parser/entities/viewport/index.js +195 -0
  296. package/dist/parser/entities/viewport/index.js.map +1 -0
  297. package/dist/parser/entities/viewport/types.d.ts +51 -0
  298. package/dist/parser/entities/viewport/types.js +3 -0
  299. package/dist/parser/entities/viewport/types.js.map +1 -0
  300. package/dist/parser/filterDummyBlocks.d.ts +2 -0
  301. package/dist/parser/filterDummyBlocks.js +37 -0
  302. package/dist/parser/filterDummyBlocks.js.map +1 -0
  303. package/dist/parser/header/index.d.ts +3 -0
  304. package/dist/parser/header/index.js +32 -0
  305. package/dist/parser/header/index.js.map +1 -0
  306. package/dist/parser/objects/common.d.ts +8 -0
  307. package/dist/parser/objects/common.js +51 -0
  308. package/dist/parser/objects/common.js.map +1 -0
  309. package/dist/parser/objects/dictionary.d.ts +20 -0
  310. package/dist/parser/objects/dictionary.js +50 -0
  311. package/dist/parser/objects/dictionary.js.map +1 -0
  312. package/dist/parser/objects/index.d.ts +6 -0
  313. package/dist/parser/objects/index.js +43 -0
  314. package/dist/parser/objects/index.js.map +1 -0
  315. package/dist/parser/objects/layout.d.ts +30 -0
  316. package/dist/parser/objects/layout.js +110 -0
  317. package/dist/parser/objects/layout.js.map +1 -0
  318. package/dist/parser/objects/plotSettings.d.ts +64 -0
  319. package/dist/parser/objects/plotSettings.js +198 -0
  320. package/dist/parser/objects/plotSettings.js.map +1 -0
  321. package/dist/parser/objects/treefy.d.ts +2 -0
  322. package/dist/parser/objects/treefy.js +37 -0
  323. package/dist/parser/objects/treefy.js.map +1 -0
  324. package/dist/parser/objects/types.d.ts +15 -0
  325. package/dist/parser/objects/types.js +3 -0
  326. package/dist/parser/objects/types.js.map +1 -0
  327. package/dist/parser/shared/index.d.ts +7 -0
  328. package/dist/parser/shared/index.js +22 -0
  329. package/dist/parser/shared/index.js.map +1 -0
  330. package/dist/parser/shared/parsePoint.d.ts +7 -0
  331. package/dist/parser/shared/parsePoint.js +33 -0
  332. package/dist/parser/shared/parsePoint.js.map +1 -0
  333. package/dist/parser/shared/parserGenerator.d.ts +15 -0
  334. package/dist/parser/shared/parserGenerator.js +114 -0
  335. package/dist/parser/shared/parserGenerator.js.map +1 -0
  336. package/dist/parser/shared/parserGenerator.test.d.ts +1 -0
  337. package/dist/parser/shared/parserGenerator.test.js +153 -0
  338. package/dist/parser/shared/parserGenerator.test.js.map +1 -0
  339. package/dist/parser/shared/xdata/index.d.ts +3 -0
  340. package/dist/parser/shared/xdata/index.js +20 -0
  341. package/dist/parser/shared/xdata/index.js.map +1 -0
  342. package/dist/parser/shared/xdata/interpreter.d.ts +20 -0
  343. package/dist/parser/shared/xdata/interpreter.js +43 -0
  344. package/dist/parser/shared/xdata/interpreter.js.map +1 -0
  345. package/dist/parser/shared/xdata/interpreter.test.d.ts +1 -0
  346. package/dist/parser/shared/xdata/interpreter.test.js +83 -0
  347. package/dist/parser/shared/xdata/interpreter.test.js.map +1 -0
  348. package/dist/parser/shared/xdata/parser.d.ts +6 -0
  349. package/dist/parser/shared/xdata/parser.js +133 -0
  350. package/dist/parser/shared/xdata/parser.js.map +1 -0
  351. package/dist/parser/shared/xdata/parser.test.d.ts +1 -0
  352. package/dist/parser/shared/xdata/parser.test.js +64 -0
  353. package/dist/parser/shared/xdata/parser.test.js.map +1 -0
  354. package/dist/parser/shared/xdata/types.d.ts +9 -0
  355. package/dist/parser/shared/xdata/types.js +3 -0
  356. package/dist/parser/shared/xdata/types.js.map +1 -0
  357. package/dist/parser/tables/blockRecord/index.d.ts +2 -0
  358. package/dist/parser/tables/blockRecord/index.js +19 -0
  359. package/dist/parser/tables/blockRecord/index.js.map +1 -0
  360. package/dist/parser/tables/blockRecord/parser.d.ts +1 -0
  361. package/dist/parser/tables/blockRecord/parser.js +45 -0
  362. package/dist/parser/tables/blockRecord/parser.js.map +1 -0
  363. package/dist/parser/tables/blockRecord/types.d.ts +10 -0
  364. package/dist/parser/tables/blockRecord/types.js +3 -0
  365. package/dist/parser/tables/blockRecord/types.js.map +1 -0
  366. package/dist/parser/tables/dimStyle/consts.d.ts +2 -0
  367. package/dist/parser/tables/dimStyle/consts.js +424 -0
  368. package/dist/parser/tables/dimStyle/consts.js.map +1 -0
  369. package/dist/parser/tables/dimStyle/index.d.ts +3 -0
  370. package/dist/parser/tables/dimStyle/index.js +20 -0
  371. package/dist/parser/tables/dimStyle/index.js.map +1 -0
  372. package/dist/parser/tables/dimStyle/parser.d.ts +1 -0
  373. package/dist/parser/tables/dimStyle/parser.js +35 -0
  374. package/dist/parser/tables/dimStyle/parser.js.map +1 -0
  375. package/dist/parser/tables/dimStyle/types.d.ts +83 -0
  376. package/dist/parser/tables/dimStyle/types.js +3 -0
  377. package/dist/parser/tables/dimStyle/types.js.map +1 -0
  378. package/dist/parser/tables/index.d.ts +2 -0
  379. package/dist/parser/tables/index.js +19 -0
  380. package/dist/parser/tables/index.js.map +1 -0
  381. package/dist/parser/tables/layer/index.d.ts +2 -0
  382. package/dist/parser/tables/layer/index.js +19 -0
  383. package/dist/parser/tables/layer/index.js.map +1 -0
  384. package/dist/parser/tables/layer/parser.d.ts +1 -0
  385. package/dist/parser/tables/layer/parser.js +55 -0
  386. package/dist/parser/tables/layer/parser.js.map +1 -0
  387. package/dist/parser/tables/layer/types.d.ts +13 -0
  388. package/dist/parser/tables/layer/types.js +3 -0
  389. package/dist/parser/tables/layer/types.js.map +1 -0
  390. package/dist/parser/tables/ltype/consts.d.ts +6 -0
  391. package/dist/parser/tables/ltype/consts.js +11 -0
  392. package/dist/parser/tables/ltype/consts.js.map +1 -0
  393. package/dist/parser/tables/ltype/index.d.ts +3 -0
  394. package/dist/parser/tables/ltype/index.js +20 -0
  395. package/dist/parser/tables/ltype/index.js.map +1 -0
  396. package/dist/parser/tables/ltype/parser.d.ts +1 -0
  397. package/dist/parser/tables/ltype/parser.js +105 -0
  398. package/dist/parser/tables/ltype/parser.js.map +1 -0
  399. package/dist/parser/tables/ltype/types.d.ts +21 -0
  400. package/dist/parser/tables/ltype/types.js +3 -0
  401. package/dist/parser/tables/ltype/types.js.map +1 -0
  402. package/dist/parser/tables/parser.d.ts +2 -0
  403. package/dist/parser/tables/parser.js +90 -0
  404. package/dist/parser/tables/parser.js.map +1 -0
  405. package/dist/parser/tables/shared.d.ts +2 -0
  406. package/dist/parser/tables/shared.js +32 -0
  407. package/dist/parser/tables/shared.js.map +1 -0
  408. package/dist/parser/tables/style/index.d.ts +2 -0
  409. package/dist/parser/tables/style/index.js +19 -0
  410. package/dist/parser/tables/style/index.js.map +1 -0
  411. package/dist/parser/tables/style/parser.d.ts +1 -0
  412. package/dist/parser/tables/style/parser.js +68 -0
  413. package/dist/parser/tables/style/parser.js.map +1 -0
  414. package/dist/parser/tables/style/types.d.ts +14 -0
  415. package/dist/parser/tables/style/types.js +3 -0
  416. package/dist/parser/tables/style/types.js.map +1 -0
  417. package/dist/parser/tables/types.d.ts +14 -0
  418. package/dist/parser/tables/types.js +3 -0
  419. package/dist/parser/tables/types.js.map +1 -0
  420. package/dist/parser/tables/vport/index.d.ts +2 -0
  421. package/dist/parser/tables/vport/index.js +19 -0
  422. package/dist/parser/tables/vport/index.js.map +1 -0
  423. package/dist/parser/tables/vport/parser.d.ts +1 -0
  424. package/dist/parser/tables/vport/parser.js +201 -0
  425. package/dist/parser/tables/vport/parser.js.map +1 -0
  426. package/dist/parser/tables/vport/types.d.ts +43 -0
  427. package/dist/parser/tables/vport/types.js +3 -0
  428. package/dist/parser/tables/vport/types.js.map +1 -0
  429. package/dist/parser/types.d.ts +29 -0
  430. package/dist/parser/types.js +3 -0
  431. package/dist/parser/types.js.map +1 -0
  432. package/dist/types/color.d.ts +3 -0
  433. package/dist/types/color.js +3 -0
  434. package/dist/types/color.js.map +1 -0
  435. package/dist/types/dxfHeader.d.ts +16 -0
  436. package/dist/types/dxfHeader.js +3 -0
  437. package/dist/types/dxfHeader.js.map +1 -0
  438. package/dist/types/entity.d.ts +6 -0
  439. package/dist/types/entity.js +3 -0
  440. package/dist/types/entity.js.map +1 -0
  441. package/dist/types/index.d.ts +24 -0
  442. package/dist/types/index.js +20 -0
  443. package/dist/types/index.js.map +1 -0
  444. package/dist/utils/binarySearch.d.ts +1 -0
  445. package/dist/utils/binarySearch.js +23 -0
  446. package/dist/utils/binarySearch.js.map +1 -0
  447. package/dist/utils/disjointSet.d.ts +6 -0
  448. package/dist/utils/disjointSet.js +52 -0
  449. package/dist/utils/disjointSet.js.map +1 -0
  450. package/dist/utils/flooding.d.ts +8 -0
  451. package/dist/utils/flooding.js +26 -0
  452. package/dist/utils/flooding.js.map +1 -0
  453. package/dist/utils/functional.d.ts +17 -0
  454. package/dist/utils/functional.js +111 -0
  455. package/dist/utils/functional.js.map +1 -0
  456. package/dist/utils/graph.d.ts +19 -0
  457. package/dist/utils/graph.js +47 -0
  458. package/dist/utils/graph.js.map +1 -0
  459. package/dist/utils/index.d.ts +30 -0
  460. package/dist/utils/index.js +106 -0
  461. package/dist/utils/index.js.map +1 -0
  462. package/dist/utils/queue.d.ts +19 -0
  463. package/dist/utils/queue.js +71 -0
  464. package/dist/utils/queue.js.map +1 -0
  465. package/dist/utils/triangle.d.ts +2 -0
  466. package/dist/utils/triangle.js +19 -0
  467. package/dist/utils/triangle.js.map +1 -0
  468. package/package.json +2 -2
@@ -0,0 +1,10 @@
1
+ import type { Point3D } from '../../../types';
2
+ import type { CommonDxfEntity } from '../shared';
3
+ export interface LineEntity extends CommonDxfEntity {
4
+ type: 'LINE';
5
+ subclassMarker: 'AcDbLine';
6
+ thickness: number;
7
+ startPoint: Point3D;
8
+ endPoint: Point3D;
9
+ extrusionDirection: Point3D;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/line/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare enum LWPolylineFlag {
2
+ IS_CLOSED = 1,
3
+ PLINE_GEN = 128
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LWPolylineFlag = void 0;
4
+ var LWPolylineFlag;
5
+ (function (LWPolylineFlag) {
6
+ LWPolylineFlag[LWPolylineFlag["IS_CLOSED"] = 1] = "IS_CLOSED";
7
+ LWPolylineFlag[LWPolylineFlag["PLINE_GEN"] = 128] = "PLINE_GEN";
8
+ })(LWPolylineFlag || (exports.LWPolylineFlag = LWPolylineFlag = {}));
9
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/parser/entities/lwpolyline/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,6DAAa,CAAA;IACb,+DAAe,CAAA;AACnB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './consts';
3
+ export * from './parser';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./consts"), exports);
19
+ __exportStar(require("./parser"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/lwpolyline/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
@@ -0,0 +1,7 @@
1
+ import type DxfArrayScanner from '../../DxfArrayScanner';
2
+ import type { ScannerGroup } from '../../DxfArrayScanner';
3
+ import type { LWPolylineEntity } from './types';
4
+ export declare class LWPolylineParser {
5
+ static ForEntityName: string;
6
+ parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): LWPolylineEntity;
7
+ }
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LWPolylineParser = void 0;
4
+ const parserGenerator_1 = require("../../shared/parserGenerator");
5
+ const shared_1 = require("../shared");
6
+ const DefaultLWPolylineEntity = {
7
+ flag: 0,
8
+ elevation: 0,
9
+ thickness: 0,
10
+ extrusionDirection: { x: 0, y: 0, z: 1 },
11
+ vertices: [],
12
+ };
13
+ const DefaultLWPolylineVertex = {
14
+ bulge: 0,
15
+ };
16
+ const LWPolylineVertexSnippets = [
17
+ {
18
+ code: 42,
19
+ name: 'bulge',
20
+ parser: parserGenerator_1.Identity,
21
+ },
22
+ {
23
+ code: 41,
24
+ name: 'endWidth',
25
+ parser: parserGenerator_1.Identity,
26
+ },
27
+ {
28
+ code: 40,
29
+ name: 'startWidth',
30
+ parser: parserGenerator_1.Identity,
31
+ },
32
+ {
33
+ code: 91,
34
+ name: 'id',
35
+ parser: parserGenerator_1.Identity,
36
+ },
37
+ {
38
+ code: 20,
39
+ name: 'y',
40
+ parser: parserGenerator_1.Identity,
41
+ },
42
+ {
43
+ code: 10,
44
+ name: 'x',
45
+ parser: parserGenerator_1.Identity,
46
+ },
47
+ ];
48
+ const LWPolylineSnippets = [
49
+ {
50
+ code: 210,
51
+ name: 'extrusionDirection',
52
+ parser: parserGenerator_1.PointParser,
53
+ },
54
+ {
55
+ code: 10,
56
+ name: 'vertices',
57
+ isMultiple: true,
58
+ parser(curr, scanner) {
59
+ const entity = {};
60
+ (0, parserGenerator_1.createParser)(LWPolylineVertexSnippets, DefaultLWPolylineVertex)(curr, scanner, entity);
61
+ return entity;
62
+ },
63
+ },
64
+ {
65
+ code: 39,
66
+ name: 'thickness',
67
+ parser: parserGenerator_1.Identity,
68
+ },
69
+ {
70
+ code: 38,
71
+ name: 'elevation',
72
+ parser: parserGenerator_1.Identity,
73
+ },
74
+ {
75
+ code: 43,
76
+ name: 'constantWidth',
77
+ parser: parserGenerator_1.Identity,
78
+ },
79
+ {
80
+ code: 70,
81
+ name: 'flag',
82
+ parser: parserGenerator_1.Identity,
83
+ },
84
+ {
85
+ code: 90,
86
+ name: 'numberOfVertices',
87
+ parser: parserGenerator_1.Identity,
88
+ },
89
+ {
90
+ code: 100,
91
+ name: 'subclassMarker',
92
+ parser: parserGenerator_1.Identity,
93
+ },
94
+ ...shared_1.CommonEntitySnippets,
95
+ ];
96
+ class LWPolylineParser {
97
+ parseEntity(scanner, curr) {
98
+ const entity = {};
99
+ (0, parserGenerator_1.createParser)(LWPolylineSnippets, DefaultLWPolylineEntity)(curr, scanner, entity);
100
+ return entity;
101
+ }
102
+ }
103
+ exports.LWPolylineParser = LWPolylineParser;
104
+ LWPolylineParser.ForEntityName = 'LWPOLYLINE';
105
+ //# sourceMappingURL=parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/lwpolyline/parser.ts"],"names":[],"mappings":";;;AAEA,kEAKsC;AACtC,sC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AC;KACJ;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD,GAAG,6BAAoB;CAC1B,CAAC;AAEF,MAAa,gBAAgB;IAGzB,WAAW,CAAC,OAAwB,EAAE,IAAkB;QACpD,MAAM,MAAM,GAAG,EAAS,CAAC;QACzB,IAAA,8BAAY,EAAC,kBAAkB,EAAE,uBAAuB,CAAC,CACrD,IAAI,EACJ,OAAO,EACP,MAAM,CACT,CAAC;QACF,OAAO,MAA0B,CAAC;IACtC,CAAC;;AAXL,4CAYC;AAXU,8BAAa,GAAG,YAAY,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { Point2D, Point3D } from '../../../types';
2
+ import type { CommonDxfEntity } from '../shared';
3
+ export interface LWPolylineEntity extends CommonDxfEntity {
4
+ type: 'LWPOLYLINE';
5
+ subclassMarker: 'AcDbPolyline';
6
+ numberOfVertices: number;
7
+ flag: number;
8
+ constantWidth?: number;
9
+ elevation: number;
10
+ thickness: number;
11
+ extrusionDirection: Point3D;
12
+ vertices: LWPolylineVertex[];
13
+ }
14
+ export interface LWPolylineVertex extends Point2D {
15
+ id: number;
16
+ startWidth?: number;
17
+ endWidth?: number;
18
+ bulge: number;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/lwpolyline/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare enum MTextDrawingDirection {
2
+ LEFT_TO_RIGHT = 1,
3
+ TOP_TO_BOTTOM = 3,
4
+ BY_STYLE = 5
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MTextDrawingDirection = void 0;
4
+ var MTextDrawingDirection;
5
+ (function (MTextDrawingDirection) {
6
+ MTextDrawingDirection[MTextDrawingDirection["LEFT_TO_RIGHT"] = 1] = "LEFT_TO_RIGHT";
7
+ MTextDrawingDirection[MTextDrawingDirection["TOP_TO_BOTTOM"] = 3] = "TOP_TO_BOTTOM";
8
+ MTextDrawingDirection[MTextDrawingDirection["BY_STYLE"] = 5] = "BY_STYLE";
9
+ })(MTextDrawingDirection || (exports.MTextDrawingDirection = MTextDrawingDirection = {}));
10
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/parser/entities/mtext/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,mFAAiB,CAAA;IACjB,mFAAiB,CAAA;IACjB,yEAAY,CAAA;AAChB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './consts';
3
+ export * from './parser';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./consts"), exports);
19
+ __exportStar(require("./parser"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/mtext/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
@@ -0,0 +1,10 @@
1
+ import type DxfArrayScanner from '../../DxfArrayScanner';
2
+ import type { ScannerGroup } from '../../DxfArrayScanner';
3
+ import { DXFParserSnippet } from '../../shared/parserGenerator';
4
+ import type { MTextEntity } from './types';
5
+ export declare const MTextEntityParserSnippets: DXFParserSnippet[];
6
+ export declare class MTextEntityParser {
7
+ static ForEntityName: string;
8
+ private parser;
9
+ parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): MTextEntity;
10
+ }
@@ -0,0 +1,188 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MTextEntityParser = exports.MTextEntityParserSnippets = void 0;
4
+ const utils_1 = require("../../../utils");
5
+ const ParseHelpers_1 = require("../../ParseHelpers");
6
+ const parserGenerator_1 = require("../../shared/parserGenerator");
7
+ const shared_1 = require("../shared");
8
+ const DefaultMTextEntity = {
9
+ textStyle: 'STANDARD',
10
+ extrusionDirection: { x: 0, y: 0, z: 1 },
11
+ rotation: 0,
12
+ };
13
+ exports.MTextEntityParserSnippets = [
14
+ {
15
+ // 얘는 원래 순수 MTEXT에는 없으나 ATTRIB에 내장된 MTEXT에는 있다
16
+ // 만약 ATTRIB에만 이걸 놔두면, ATTRIB를 제외했을 때 터지는 경우가 생김
17
+ code: 46,
18
+ name: 'annotationHeight',
19
+ parser: parserGenerator_1.Identity,
20
+ },
21
+ {
22
+ code: 101,
23
+ parser(curr, scanner) {
24
+ // 정체불명인데 기존 로직에 있어서 보존
25
+ (0, ParseHelpers_1.skipEmbeddedObject)(scanner);
26
+ },
27
+ },
28
+ {
29
+ code: 50,
30
+ name: 'columnHeight',
31
+ parser: parserGenerator_1.Identity,
32
+ },
33
+ {
34
+ code: 49,
35
+ name: 'columnGutter',
36
+ parser: parserGenerator_1.Identity,
37
+ },
38
+ {
39
+ code: 48,
40
+ name: 'columnWidth',
41
+ parser: parserGenerator_1.Identity,
42
+ },
43
+ {
44
+ code: 79,
45
+ name: 'columnAutoHeight',
46
+ parser: parserGenerator_1.Identity,
47
+ },
48
+ {
49
+ code: 78,
50
+ name: 'columnFlowReversed',
51
+ parser: parserGenerator_1.Identity,
52
+ },
53
+ {
54
+ code: 76,
55
+ name: 'columnCount',
56
+ parser: parserGenerator_1.Identity,
57
+ },
58
+ {
59
+ code: 75,
60
+ name: 'columnType',
61
+ parser: parserGenerator_1.Identity,
62
+ },
63
+ {
64
+ code: 441,
65
+ name: 'backgroundFillTransparency',
66
+ parser: parserGenerator_1.Identity,
67
+ },
68
+ {
69
+ // Color to use for background fill when group code 90 is 1.
70
+ code: 63,
71
+ name: 'backgroundFillColor',
72
+ parser: parserGenerator_1.Identity,
73
+ },
74
+ {
75
+ code: 45,
76
+ name: 'fillBoxScale',
77
+ parser: parserGenerator_1.Identity,
78
+ },
79
+ {
80
+ code: [...(0, utils_1.generateIntegers)(430, 440)], // named color
81
+ name: 'backgroundColor',
82
+ parser: parserGenerator_1.Identity, // 당장은 테이블 보기 힘들어서 놔둠 추후에 rgb화 필요
83
+ },
84
+ {
85
+ code: [...(0, utils_1.generateIntegers)(420, 430)], // rgb
86
+ name: 'backgroundColor',
87
+ parser: parserGenerator_1.Identity,
88
+ },
89
+ {
90
+ code: 90,
91
+ name: 'backgroundFill',
92
+ parser: parserGenerator_1.Identity,
93
+ },
94
+ {
95
+ code: 44,
96
+ name: 'lineSpacing',
97
+ parser: parserGenerator_1.Identity,
98
+ },
99
+ {
100
+ code: 73,
101
+ name: 'lineSpacingStyle',
102
+ parser: parserGenerator_1.Identity,
103
+ },
104
+ {
105
+ code: 50,
106
+ name: 'rotation',
107
+ parser: parserGenerator_1.Identity, // radian
108
+ },
109
+ {
110
+ code: 43, // vertical height of characters, 미사용
111
+ },
112
+ {
113
+ code: 42, // horizontal width of characters, 미사용
114
+ },
115
+ {
116
+ code: 11,
117
+ name: 'direction',
118
+ parser: parserGenerator_1.PointParser,
119
+ },
120
+ {
121
+ code: 210,
122
+ name: 'extrusionDirection',
123
+ parser: parserGenerator_1.PointParser,
124
+ },
125
+ {
126
+ code: 7,
127
+ name: 'styleName',
128
+ parser: parserGenerator_1.Identity,
129
+ },
130
+ {
131
+ code: 3,
132
+ name: 'text',
133
+ parser(curr, scanner, entity) {
134
+ var _a;
135
+ // Code 1에다 추가로 더 달아야 함
136
+ return ((_a = entity.text) !== null && _a !== void 0 ? _a : '') + curr.value;
137
+ },
138
+ },
139
+ {
140
+ code: 1,
141
+ name: 'text',
142
+ parser: parserGenerator_1.Identity,
143
+ },
144
+ {
145
+ code: 72,
146
+ name: 'drawingDirection',
147
+ parser: parserGenerator_1.Identity,
148
+ },
149
+ {
150
+ code: 71,
151
+ name: 'attachmentPoint',
152
+ parser: parserGenerator_1.Identity,
153
+ },
154
+ {
155
+ code: 41,
156
+ name: 'width',
157
+ parser: parserGenerator_1.Identity,
158
+ },
159
+ {
160
+ code: 40,
161
+ name: 'height',
162
+ parser: parserGenerator_1.Identity,
163
+ },
164
+ {
165
+ code: 10,
166
+ name: 'insertionPoint',
167
+ parser: parserGenerator_1.PointParser,
168
+ },
169
+ {
170
+ code: 100,
171
+ name: 'subclassMarker',
172
+ parser: parserGenerator_1.Identity,
173
+ },
174
+ ...shared_1.CommonEntitySnippets,
175
+ ];
176
+ class MTextEntityParser {
177
+ constructor() {
178
+ this.parser = (0, parserGenerator_1.createParser)(exports.MTextEntityParserSnippets, DefaultMTextEntity);
179
+ }
180
+ parseEntity(scanner, curr) {
181
+ const entity = {};
182
+ this.parser(curr, scanner, entity);
183
+ return entity;
184
+ }
185
+ }
186
+ exports.MTextEntityParser = MTextEntityParser;
187
+ MTextEntityParser.ForEntityName = 'MTEXT';
188
+ //# sourceMappingURL=parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/mtext/parser.ts"],"names":[],"mappings":";;;AAEA,0CAAkD;AAClD,qDAAwD;AACxD,kEAKsC;AACtC,sCAAiD;AAGjD,MAAM,kBAAkB,GAAG;IACvB,SAAS,EAAE,UAAU;IACrB,kBAAkB,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;IACxC,QAAQ,EAAE,CAAC;CACd,CAAC;AAEW,QAAA,yBAAyB,GAAuB;IACzD;QACI,8CAA8C;QAC9C,gDAAgD;QAChD,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,MAAM,CAAC,IAAI,EAAE,OAAO;YAChB,uBAAuB;YACvB,IAAA,iCAAkB,EAAC,OAAO,CAAC,CAAC;QAChC,CAAC;KACJ;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,0BAAQ;KACnB;IACD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1B,CAAC;AAEF,MAAa,iBAAiB;IAA9B;QAEY,WAAM,GAAG,IAAA,8BAAY,EACzB,iCAAyB,EACzB,kBAAkB,CACrB,CAAC;IAON,CAAC;IALG,WAAW,CAAC,OAAwB,EAAE,IAAkB;QACpD,MAAM,MAAM,GAAG,EAAS,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACnC,OAAO,MAAqB,CAAC;IACjC,CAAC;;AAXL,8CAYC;AAXU,+BAAa,GAAG,OAAO,AAAV,CAAW"}
@@ -0,0 +1,33 @@
1
+ import type { AttachmentPoint } from '../../../consts';
2
+ import type { Point3D } from '../../../types';
3
+ import type { CommonDxfEntity } from '../shared';
4
+ import type { MTextDrawingDirection } from './consts';
5
+ export interface MTextEntity extends CommonDxfEntity {
6
+ type: 'MTEXT';
7
+ subclassMarker: 'AcDbMText';
8
+ insertionPoint: Point3D;
9
+ height: number;
10
+ width: number;
11
+ attachmentPoint: AttachmentPoint;
12
+ drawingDirection: MTextDrawingDirection;
13
+ text: string;
14
+ styleName: string;
15
+ extrusionDirection: Point3D;
16
+ direction: Point3D;
17
+ rotation: number;
18
+ lineSpacingStyle: number;
19
+ lineSpacing: number;
20
+ backgroundFill: number;
21
+ backgroundColor: number;
22
+ fillBoxScale: number;
23
+ backgroundFillColor: number;
24
+ backgroundFillTransparency: number;
25
+ columnType: number;
26
+ columnCount: number;
27
+ columnFlowReversed: number;
28
+ columnAutoHeight: number;
29
+ columnWidth: number;
30
+ columnGutter: number;
31
+ columnHeight: number;
32
+ annotationHeight: number;
33
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/mtext/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export * from './parser';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./parser"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/point/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB"}
@@ -0,0 +1,6 @@
1
+ import DxfArrayScanner, { ScannerGroup } from '../../DxfArrayScanner';
2
+ export declare class PointEntityParser {
3
+ static ForEntityName: string;
4
+ private parser;
5
+ parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): any;
6
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PointEntityParser = void 0;
4
+ const parserGenerator_1 = require("../../shared/parserGenerator");
5
+ const shared_1 = require("../shared");
6
+ const DefaultPointEntity = {
7
+ thickness: 0,
8
+ extrusionDirection: { x: 0, y: 0, z: 1 },
9
+ angle: 0,
10
+ };
11
+ const PointEntityParserSnippets = [
12
+ // Angle of the X axis for the UCS in effect
13
+ // when the point was drawn.
14
+ // used when PDMODE is nonzero.
15
+ {
16
+ code: 50,
17
+ name: 'angle',
18
+ parser: parserGenerator_1.Identity,
19
+ },
20
+ {
21
+ code: 210,
22
+ name: 'extrusionDirection',
23
+ parser: parserGenerator_1.PointParser,
24
+ },
25
+ {
26
+ code: 39,
27
+ name: 'thickness',
28
+ parser: parserGenerator_1.Identity,
29
+ },
30
+ {
31
+ code: 10,
32
+ name: 'position',
33
+ parser: parserGenerator_1.PointParser,
34
+ },
35
+ {
36
+ code: 100,
37
+ name: 'subclassMarker',
38
+ parser: parserGenerator_1.Identity,
39
+ },
40
+ ...shared_1.CommonEntitySnippets,
41
+ ];
42
+ class PointEntityParser {
43
+ constructor() {
44
+ this.parser = (0, parserGenerator_1.createParser)(PointEntityParserSnippets, DefaultPointEntity);
45
+ }
46
+ parseEntity(scanner, curr) {
47
+ const entity = {};
48
+ this.parser(curr, scanner, entity);
49
+ return entity;
50
+ }
51
+ }
52
+ exports.PointEntityParser = PointEntityParser;
53
+ PointEntityParser.ForEntityName = 'POINT';
54
+ //# sourceMappingURL=parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/point/parser.ts"],"names":[],"mappings":";;;AACA,kEAKsC;AACtC,sCAAiD;AAEjD,MAAM,kBAAkB,GAAG;IACvB,SAAS,EAAE,CAAC;IACZ,kBAAkB,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;IACxC,KAAK,EAAE,CAAC;CACX,CAAC;AAEF,MAAM,yBAAyB,GAAuB;IAClD,4CAA4C;IAC5C,4BAA4B;IAC5B,+BAA+B;IAC/B;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD,GAAG,6BAAoB;CAC1B,CAAC;AAEF,MAAa,iBAAiB;IAA9B;QAEY,WAAM,GAAG,IAAA,8BAAY,EACzB,yBAAyB,EACzB,kBAAkB,CACrB,CAAC;IAON,CAAC;IALG,WAAW,CAAC,OAAwB,EAAE,IAAkB;QACpD,MAAM,MAAM,GAAG,EAAS,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACnC,OAAO,MAAM,CAAC;IAClB,CAAC;;AAXL,8CAYC;AAXU,+BAAa,GAAG,OAAO,AAAV,CAAW"}
@@ -0,0 +1,9 @@
1
+ import { Point3D } from '../../../types';
2
+ import type { CommonDxfEntity } from '../shared';
3
+ export interface PointEntity extends CommonDxfEntity {
4
+ type: 'POINT';
5
+ position: Point3D;
6
+ thickness: number;
7
+ extrusionDirection: Point3D;
8
+ angle: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/point/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export declare enum PolylineFlag {
2
+ CLOSED_POLYLINE = 1,
3
+ CURVE_FIT = 2,
4
+ SPLINE_FIT = 4,
5
+ POLYLINE_3D = 8,
6
+ POLYGON_3D = 16,
7
+ CLOSED_POLYGON = 32,
8
+ POLYFACE = 64,
9
+ CONTINUOUS = 128
10
+ }
11
+ export declare enum SmoothType {
12
+ NONE = 0,
13
+ QUADRATIC = 5,
14
+ CUBIC = 6,
15
+ BEZIER = 8
16
+ }