dxf-json 0.0.9 → 0.0.14

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 (467) hide show
  1. package/package.json +3 -4
  2. package/src/index.ts +1 -1
  3. package/src/parser/DxfParser.ts +2 -1
  4. package/dist/consts/block.d.ts +0 -10
  5. package/dist/consts/block.js +0 -22
  6. package/dist/consts/block.js.map +0 -1
  7. package/dist/consts/color.d.ts +0 -5
  8. package/dist/consts/color.js +0 -10
  9. package/dist/consts/color.js.map +0 -1
  10. package/dist/consts/config.d.ts +0 -2
  11. package/dist/consts/config.js +0 -6
  12. package/dist/consts/config.js.map +0 -1
  13. package/dist/consts/dimension.d.ts +0 -61
  14. package/dist/consts/dimension.js +0 -74
  15. package/dist/consts/dimension.js.map +0 -1
  16. package/dist/consts/hatch.d.ts +0 -44
  17. package/dist/consts/hatch.js +0 -57
  18. package/dist/consts/hatch.js.map +0 -1
  19. package/dist/consts/header.d.ts +0 -9
  20. package/dist/consts/header.js +0 -13
  21. package/dist/consts/header.js.map +0 -1
  22. package/dist/consts/index.d.ts +0 -9
  23. package/dist/consts/index.js +0 -26
  24. package/dist/consts/index.js.map +0 -1
  25. package/dist/consts/lineweight.d.ts +0 -5
  26. package/dist/consts/lineweight.js +0 -10
  27. package/dist/consts/lineweight.js.map +0 -1
  28. package/dist/consts/measurement.d.ts +0 -4
  29. package/dist/consts/measurement.js +0 -9
  30. package/dist/consts/measurement.js.map +0 -1
  31. package/dist/consts/obscuredLineTypes.d.ts +0 -21
  32. package/dist/consts/obscuredLineTypes.js +0 -26
  33. package/dist/consts/obscuredLineTypes.js.map +0 -1
  34. package/dist/consts/scene.d.ts +0 -2
  35. package/dist/consts/scene.js +0 -6
  36. package/dist/consts/scene.js.map +0 -1
  37. package/dist/consts/viewport.d.ts +0 -56
  38. package/dist/consts/viewport.js +0 -67
  39. package/dist/consts/viewport.js.map +0 -1
  40. package/dist/index.d.ts +0 -2
  41. package/dist/index.js +0 -9
  42. package/dist/index.js.map +0 -1
  43. package/dist/parser/AutoCadColorIndex.d.ts +0 -8
  44. package/dist/parser/AutoCadColorIndex.js +0 -267
  45. package/dist/parser/AutoCadColorIndex.js.map +0 -1
  46. package/dist/parser/DxfArrayScanner.d.ts +0 -38
  47. package/dist/parser/DxfArrayScanner.js +0 -159
  48. package/dist/parser/DxfArrayScanner.js.map +0 -1
  49. package/dist/parser/DxfParser.d.ts +0 -9
  50. package/dist/parser/DxfParser.js +0 -108
  51. package/dist/parser/DxfParser.js.map +0 -1
  52. package/dist/parser/ParseHelpers.d.ts +0 -21
  53. package/dist/parser/ParseHelpers.js +0 -129
  54. package/dist/parser/ParseHelpers.js.map +0 -1
  55. package/dist/parser/blocks/blocks.test.d.ts +0 -1
  56. package/dist/parser/blocks/blocks.test.js +0 -86
  57. package/dist/parser/blocks/blocks.test.js.map +0 -1
  58. package/dist/parser/blocks/index.d.ts +0 -4
  59. package/dist/parser/blocks/index.js +0 -83
  60. package/dist/parser/blocks/index.js.map +0 -1
  61. package/dist/parser/blocks/types.d.ts +0 -14
  62. package/dist/parser/blocks/types.js +0 -3
  63. package/dist/parser/blocks/types.js.map +0 -1
  64. package/dist/parser/entities/3dface.js +0 -106
  65. package/dist/parser/entities/3dface.js.map +0 -1
  66. package/dist/parser/entities/arc/index.d.ts +0 -2
  67. package/dist/parser/entities/arc/index.js +0 -19
  68. package/dist/parser/entities/arc/index.js.map +0 -1
  69. package/dist/parser/entities/arc/parser.d.ts +0 -7
  70. package/dist/parser/entities/arc/parser.js +0 -63
  71. package/dist/parser/entities/arc/parser.js.map +0 -1
  72. package/dist/parser/entities/arc/types.d.ts +0 -12
  73. package/dist/parser/entities/arc/types.js +0 -3
  74. package/dist/parser/entities/arc/types.js.map +0 -1
  75. package/dist/parser/entities/attdef/consts.d.ts +0 -11
  76. package/dist/parser/entities/attdef/consts.js +0 -17
  77. package/dist/parser/entities/attdef/consts.js.map +0 -1
  78. package/dist/parser/entities/attdef/index.d.ts +0 -3
  79. package/dist/parser/entities/attdef/index.js +0 -20
  80. package/dist/parser/entities/attdef/index.js.map +0 -1
  81. package/dist/parser/entities/attdef/parser.d.ts +0 -8
  82. package/dist/parser/entities/attdef/parser.js +0 -108
  83. package/dist/parser/entities/attdef/parser.js.map +0 -1
  84. package/dist/parser/entities/attdef/types.d.ts +0 -17
  85. package/dist/parser/entities/attdef/types.js +0 -3
  86. package/dist/parser/entities/attdef/types.js.map +0 -1
  87. package/dist/parser/entities/attribute/consts.d.ts +0 -6
  88. package/dist/parser/entities/attribute/consts.js +0 -11
  89. package/dist/parser/entities/attribute/consts.js.map +0 -1
  90. package/dist/parser/entities/attribute/index.d.ts +0 -3
  91. package/dist/parser/entities/attribute/index.js +0 -20
  92. package/dist/parser/entities/attribute/index.js.map +0 -1
  93. package/dist/parser/entities/attribute/parser.d.ts +0 -8
  94. package/dist/parser/entities/attribute/parser.js +0 -185
  95. package/dist/parser/entities/attribute/parser.js.map +0 -1
  96. package/dist/parser/entities/attribute/types.d.ts +0 -30
  97. package/dist/parser/entities/attribute/types.js +0 -3
  98. package/dist/parser/entities/attribute/types.js.map +0 -1
  99. package/dist/parser/entities/circle/index.d.ts +0 -2
  100. package/dist/parser/entities/circle/index.js +0 -19
  101. package/dist/parser/entities/circle/index.js.map +0 -1
  102. package/dist/parser/entities/circle/parser.d.ts +0 -8
  103. package/dist/parser/entities/circle/parser.js +0 -50
  104. package/dist/parser/entities/circle/parser.js.map +0 -1
  105. package/dist/parser/entities/circle/types.d.ts +0 -10
  106. package/dist/parser/entities/circle/types.js +0 -3
  107. package/dist/parser/entities/circle/types.js.map +0 -1
  108. package/dist/parser/entities/dimension/common.d.ts +0 -6
  109. package/dist/parser/entities/dimension/common.js +0 -122
  110. package/dist/parser/entities/dimension/common.js.map +0 -1
  111. package/dist/parser/entities/dimension/index.d.ts +0 -6
  112. package/dist/parser/entities/dimension/index.js +0 -21
  113. package/dist/parser/entities/dimension/index.js.map +0 -1
  114. package/dist/parser/entities/dimension/types.d.ts +0 -48
  115. package/dist/parser/entities/dimension/types.js +0 -3
  116. package/dist/parser/entities/dimension/types.js.map +0 -1
  117. package/dist/parser/entities/ellipse/index.d.ts +0 -2
  118. package/dist/parser/entities/ellipse/index.js +0 -19
  119. package/dist/parser/entities/ellipse/index.js.map +0 -1
  120. package/dist/parser/entities/ellipse/parser.d.ts +0 -7
  121. package/dist/parser/entities/ellipse/parser.js +0 -59
  122. package/dist/parser/entities/ellipse/parser.js.map +0 -1
  123. package/dist/parser/entities/ellipse/types.d.ts +0 -12
  124. package/dist/parser/entities/ellipse/types.js +0 -3
  125. package/dist/parser/entities/ellipse/types.js.map +0 -1
  126. package/dist/parser/entities/entities.test.d.ts +0 -1
  127. package/dist/parser/entities/entities.test.js +0 -81
  128. package/dist/parser/entities/entities.test.js.map +0 -1
  129. package/dist/parser/entities/hatch/boundaryPathData/edge.d.ts +0 -6
  130. package/dist/parser/entities/hatch/boundaryPathData/edge.js +0 -178
  131. package/dist/parser/entities/hatch/boundaryPathData/edge.js.map +0 -1
  132. package/dist/parser/entities/hatch/boundaryPathData/index.d.ts +0 -5
  133. package/dist/parser/entities/hatch/boundaryPathData/index.js +0 -23
  134. package/dist/parser/entities/hatch/boundaryPathData/index.js.map +0 -1
  135. package/dist/parser/entities/hatch/boundaryPathData/polyline.d.ts +0 -2
  136. package/dist/parser/entities/hatch/boundaryPathData/polyline.js +0 -41
  137. package/dist/parser/entities/hatch/boundaryPathData/polyline.js.map +0 -1
  138. package/dist/parser/entities/hatch/boundaryPathData/shared.d.ts +0 -2
  139. package/dist/parser/entities/hatch/boundaryPathData/shared.js +0 -19
  140. package/dist/parser/entities/hatch/boundaryPathData/shared.js.map +0 -1
  141. package/dist/parser/entities/hatch/index.d.ts +0 -8
  142. package/dist/parser/entities/hatch/index.js +0 -183
  143. package/dist/parser/entities/hatch/index.js.map +0 -1
  144. package/dist/parser/entities/hatch/patternData.d.ts +0 -3
  145. package/dist/parser/entities/hatch/patternData.js +0 -54
  146. package/dist/parser/entities/hatch/patternData.js.map +0 -1
  147. package/dist/parser/entities/hatch/types/boundaryPath.d.ts +0 -59
  148. package/dist/parser/entities/hatch/types/boundaryPath.js +0 -3
  149. package/dist/parser/entities/hatch/types/boundaryPath.js.map +0 -1
  150. package/dist/parser/entities/hatch/types/definitionLine.d.ts +0 -8
  151. package/dist/parser/entities/hatch/types/definitionLine.js +0 -3
  152. package/dist/parser/entities/hatch/types/definitionLine.js.map +0 -1
  153. package/dist/parser/entities/hatch/types/hatch.d.ts +0 -38
  154. package/dist/parser/entities/hatch/types/hatch.js +0 -3
  155. package/dist/parser/entities/hatch/types/hatch.js.map +0 -1
  156. package/dist/parser/entities/hatch/types/index.d.ts +0 -3
  157. package/dist/parser/entities/hatch/types/index.js +0 -20
  158. package/dist/parser/entities/hatch/types/index.js.map +0 -1
  159. package/dist/parser/entities/index.d.ts +0 -8
  160. package/dist/parser/entities/index.js +0 -81
  161. package/dist/parser/entities/index.js.map +0 -1
  162. package/dist/parser/entities/insert/index.d.ts +0 -2
  163. package/dist/parser/entities/insert/index.js +0 -19
  164. package/dist/parser/entities/insert/index.js.map +0 -1
  165. package/dist/parser/entities/insert/parser.d.ts +0 -8
  166. package/dist/parser/entities/insert/parser.js +0 -97
  167. package/dist/parser/entities/insert/parser.js.map +0 -1
  168. package/dist/parser/entities/insert/types.d.ts +0 -18
  169. package/dist/parser/entities/insert/types.js +0 -3
  170. package/dist/parser/entities/insert/types.js.map +0 -1
  171. package/dist/parser/entities/leader/consts.d.ts +0 -6
  172. package/dist/parser/entities/leader/consts.js +0 -11
  173. package/dist/parser/entities/leader/consts.js.map +0 -1
  174. package/dist/parser/entities/leader/index.d.ts +0 -3
  175. package/dist/parser/entities/leader/index.js +0 -20
  176. package/dist/parser/entities/leader/index.js.map +0 -1
  177. package/dist/parser/entities/leader/parser.d.ts +0 -8
  178. package/dist/parser/entities/leader/parser.js +0 -110
  179. package/dist/parser/entities/leader/parser.js.map +0 -1
  180. package/dist/parser/entities/leader/types.d.ts +0 -23
  181. package/dist/parser/entities/leader/types.js +0 -3
  182. package/dist/parser/entities/leader/types.js.map +0 -1
  183. package/dist/parser/entities/line/index.d.ts +0 -2
  184. package/dist/parser/entities/line/index.js +0 -19
  185. package/dist/parser/entities/line/index.js.map +0 -1
  186. package/dist/parser/entities/line/parser.d.ts +0 -8
  187. package/dist/parser/entities/line/parser.js +0 -50
  188. package/dist/parser/entities/line/parser.js.map +0 -1
  189. package/dist/parser/entities/line/types.d.ts +0 -10
  190. package/dist/parser/entities/line/types.js +0 -3
  191. package/dist/parser/entities/line/types.js.map +0 -1
  192. package/dist/parser/entities/lwpolyline/consts.d.ts +0 -4
  193. package/dist/parser/entities/lwpolyline/consts.js +0 -9
  194. package/dist/parser/entities/lwpolyline/consts.js.map +0 -1
  195. package/dist/parser/entities/lwpolyline/index.d.ts +0 -3
  196. package/dist/parser/entities/lwpolyline/index.js +0 -20
  197. package/dist/parser/entities/lwpolyline/index.js.map +0 -1
  198. package/dist/parser/entities/lwpolyline/parser.d.ts +0 -7
  199. package/dist/parser/entities/lwpolyline/parser.js +0 -105
  200. package/dist/parser/entities/lwpolyline/parser.js.map +0 -1
  201. package/dist/parser/entities/lwpolyline/types.d.ts +0 -19
  202. package/dist/parser/entities/lwpolyline/types.js +0 -3
  203. package/dist/parser/entities/lwpolyline/types.js.map +0 -1
  204. package/dist/parser/entities/mtext/consts.d.ts +0 -5
  205. package/dist/parser/entities/mtext/consts.js +0 -10
  206. package/dist/parser/entities/mtext/consts.js.map +0 -1
  207. package/dist/parser/entities/mtext/index.d.ts +0 -3
  208. package/dist/parser/entities/mtext/index.js +0 -20
  209. package/dist/parser/entities/mtext/index.js.map +0 -1
  210. package/dist/parser/entities/mtext/parser.d.ts +0 -10
  211. package/dist/parser/entities/mtext/parser.js +0 -188
  212. package/dist/parser/entities/mtext/parser.js.map +0 -1
  213. package/dist/parser/entities/mtext/types.d.ts +0 -33
  214. package/dist/parser/entities/mtext/types.js +0 -3
  215. package/dist/parser/entities/mtext/types.js.map +0 -1
  216. package/dist/parser/entities/point/index.d.ts +0 -2
  217. package/dist/parser/entities/point/index.js +0 -19
  218. package/dist/parser/entities/point/index.js.map +0 -1
  219. package/dist/parser/entities/point/parser.d.ts +0 -6
  220. package/dist/parser/entities/point/parser.js +0 -54
  221. package/dist/parser/entities/point/parser.js.map +0 -1
  222. package/dist/parser/entities/point/types.d.ts +0 -9
  223. package/dist/parser/entities/point/types.js +0 -3
  224. package/dist/parser/entities/point/types.js.map +0 -1
  225. package/dist/parser/entities/polyline/consts.d.ts +0 -16
  226. package/dist/parser/entities/polyline/consts.js +0 -22
  227. package/dist/parser/entities/polyline/consts.js.map +0 -1
  228. package/dist/parser/entities/polyline/index.d.ts +0 -3
  229. package/dist/parser/entities/polyline/index.js +0 -20
  230. package/dist/parser/entities/polyline/index.js.map +0 -1
  231. package/dist/parser/entities/polyline/parser.d.ts +0 -7
  232. package/dist/parser/entities/polyline/parser.js +0 -118
  233. package/dist/parser/entities/polyline/parser.js.map +0 -1
  234. package/dist/parser/entities/polyline/types.d.ts +0 -19
  235. package/dist/parser/entities/polyline/types.js +0 -3
  236. package/dist/parser/entities/polyline/types.js.map +0 -1
  237. package/dist/parser/entities/section/index.d.ts +0 -2
  238. package/dist/parser/entities/section/index.js +0 -19
  239. package/dist/parser/entities/section/index.js.map +0 -1
  240. package/dist/parser/entities/section/parser.d.ts +0 -7
  241. package/dist/parser/entities/section/parser.js +0 -97
  242. package/dist/parser/entities/section/parser.js.map +0 -1
  243. package/dist/parser/entities/section/types.d.ts +0 -19
  244. package/dist/parser/entities/section/types.js +0 -3
  245. package/dist/parser/entities/section/types.js.map +0 -1
  246. package/dist/parser/entities/shared.d.ts +0 -35
  247. package/dist/parser/entities/shared.js +0 -136
  248. package/dist/parser/entities/shared.js.map +0 -1
  249. package/dist/parser/entities/solid/index.d.ts +0 -2
  250. package/dist/parser/entities/solid/index.js +0 -19
  251. package/dist/parser/entities/solid/index.js.map +0 -1
  252. package/dist/parser/entities/solid/parser.d.ts +0 -8
  253. package/dist/parser/entities/solid/parser.js +0 -48
  254. package/dist/parser/entities/solid/parser.js.map +0 -1
  255. package/dist/parser/entities/solid/types.d.ts +0 -9
  256. package/dist/parser/entities/solid/types.js +0 -3
  257. package/dist/parser/entities/solid/types.js.map +0 -1
  258. package/dist/parser/entities/spline/consts.d.ts +0 -8
  259. package/dist/parser/entities/spline/consts.js +0 -13
  260. package/dist/parser/entities/spline/consts.js.map +0 -1
  261. package/dist/parser/entities/spline/index.d.ts +0 -3
  262. package/dist/parser/entities/spline/index.js +0 -20
  263. package/dist/parser/entities/spline/index.js.map +0 -1
  264. package/dist/parser/entities/spline/parser.d.ts +0 -8
  265. package/dist/parser/entities/spline/parser.js +0 -113
  266. package/dist/parser/entities/spline/parser.js.map +0 -1
  267. package/dist/parser/entities/spline/types.d.ts +0 -21
  268. package/dist/parser/entities/spline/types.js +0 -3
  269. package/dist/parser/entities/spline/types.js.map +0 -1
  270. package/dist/parser/entities/text/consts.d.ts +0 -19
  271. package/dist/parser/entities/text/consts.js +0 -26
  272. package/dist/parser/entities/text/consts.js.map +0 -1
  273. package/dist/parser/entities/text/index.d.ts +0 -3
  274. package/dist/parser/entities/text/index.js +0 -20
  275. package/dist/parser/entities/text/index.js.map +0 -1
  276. package/dist/parser/entities/text/parser.d.ts +0 -26
  277. package/dist/parser/entities/text/parser.js +0 -112
  278. package/dist/parser/entities/text/parser.js.map +0 -1
  279. package/dist/parser/entities/text/types.d.ts +0 -20
  280. package/dist/parser/entities/text/types.js +0 -3
  281. package/dist/parser/entities/text/types.js.map +0 -1
  282. package/dist/parser/entities/vertex/consts.d.ts +0 -10
  283. package/dist/parser/entities/vertex/consts.js +0 -15
  284. package/dist/parser/entities/vertex/consts.js.map +0 -1
  285. package/dist/parser/entities/vertex/index.d.ts +0 -3
  286. package/dist/parser/entities/vertex/index.js +0 -20
  287. package/dist/parser/entities/vertex/index.js.map +0 -1
  288. package/dist/parser/entities/vertex/parser.d.ts +0 -8
  289. package/dist/parser/entities/vertex/parser.js +0 -86
  290. package/dist/parser/entities/vertex/parser.js.map +0 -1
  291. package/dist/parser/entities/vertex/types.d.ts +0 -16
  292. package/dist/parser/entities/vertex/types.js +0 -3
  293. package/dist/parser/entities/vertex/types.js.map +0 -1
  294. package/dist/parser/entities/viewport/index.d.ts +0 -5
  295. package/dist/parser/entities/viewport/index.js +0 -195
  296. package/dist/parser/entities/viewport/index.js.map +0 -1
  297. package/dist/parser/entities/viewport/types.d.ts +0 -51
  298. package/dist/parser/entities/viewport/types.js +0 -3
  299. package/dist/parser/entities/viewport/types.js.map +0 -1
  300. package/dist/parser/filterDummyBlocks.d.ts +0 -2
  301. package/dist/parser/filterDummyBlocks.js +0 -37
  302. package/dist/parser/filterDummyBlocks.js.map +0 -1
  303. package/dist/parser/header/index.d.ts +0 -3
  304. package/dist/parser/header/index.js +0 -32
  305. package/dist/parser/header/index.js.map +0 -1
  306. package/dist/parser/objects/common.d.ts +0 -8
  307. package/dist/parser/objects/common.js +0 -51
  308. package/dist/parser/objects/common.js.map +0 -1
  309. package/dist/parser/objects/dictionary.d.ts +0 -20
  310. package/dist/parser/objects/dictionary.js +0 -50
  311. package/dist/parser/objects/dictionary.js.map +0 -1
  312. package/dist/parser/objects/index.d.ts +0 -6
  313. package/dist/parser/objects/index.js +0 -43
  314. package/dist/parser/objects/index.js.map +0 -1
  315. package/dist/parser/objects/layout.d.ts +0 -30
  316. package/dist/parser/objects/layout.js +0 -110
  317. package/dist/parser/objects/layout.js.map +0 -1
  318. package/dist/parser/objects/plotSettings.d.ts +0 -64
  319. package/dist/parser/objects/plotSettings.js +0 -198
  320. package/dist/parser/objects/plotSettings.js.map +0 -1
  321. package/dist/parser/objects/treefy.d.ts +0 -2
  322. package/dist/parser/objects/treefy.js +0 -37
  323. package/dist/parser/objects/treefy.js.map +0 -1
  324. package/dist/parser/objects/types.d.ts +0 -15
  325. package/dist/parser/objects/types.js +0 -3
  326. package/dist/parser/objects/types.js.map +0 -1
  327. package/dist/parser/shared/index.d.ts +0 -7
  328. package/dist/parser/shared/index.js +0 -22
  329. package/dist/parser/shared/index.js.map +0 -1
  330. package/dist/parser/shared/parsePoint.d.ts +0 -7
  331. package/dist/parser/shared/parsePoint.js +0 -33
  332. package/dist/parser/shared/parsePoint.js.map +0 -1
  333. package/dist/parser/shared/parserGenerator.d.ts +0 -15
  334. package/dist/parser/shared/parserGenerator.js +0 -114
  335. package/dist/parser/shared/parserGenerator.js.map +0 -1
  336. package/dist/parser/shared/parserGenerator.test.d.ts +0 -1
  337. package/dist/parser/shared/parserGenerator.test.js +0 -153
  338. package/dist/parser/shared/parserGenerator.test.js.map +0 -1
  339. package/dist/parser/shared/xdata/index.d.ts +0 -3
  340. package/dist/parser/shared/xdata/index.js +0 -20
  341. package/dist/parser/shared/xdata/index.js.map +0 -1
  342. package/dist/parser/shared/xdata/interpreter.d.ts +0 -20
  343. package/dist/parser/shared/xdata/interpreter.js +0 -43
  344. package/dist/parser/shared/xdata/interpreter.js.map +0 -1
  345. package/dist/parser/shared/xdata/interpreter.test.d.ts +0 -1
  346. package/dist/parser/shared/xdata/interpreter.test.js +0 -83
  347. package/dist/parser/shared/xdata/interpreter.test.js.map +0 -1
  348. package/dist/parser/shared/xdata/parser.d.ts +0 -6
  349. package/dist/parser/shared/xdata/parser.js +0 -133
  350. package/dist/parser/shared/xdata/parser.js.map +0 -1
  351. package/dist/parser/shared/xdata/parser.test.d.ts +0 -1
  352. package/dist/parser/shared/xdata/parser.test.js +0 -64
  353. package/dist/parser/shared/xdata/parser.test.js.map +0 -1
  354. package/dist/parser/shared/xdata/types.d.ts +0 -9
  355. package/dist/parser/shared/xdata/types.js +0 -3
  356. package/dist/parser/shared/xdata/types.js.map +0 -1
  357. package/dist/parser/tables/blockRecord/index.d.ts +0 -2
  358. package/dist/parser/tables/blockRecord/index.js +0 -19
  359. package/dist/parser/tables/blockRecord/index.js.map +0 -1
  360. package/dist/parser/tables/blockRecord/parser.d.ts +0 -1
  361. package/dist/parser/tables/blockRecord/parser.js +0 -45
  362. package/dist/parser/tables/blockRecord/parser.js.map +0 -1
  363. package/dist/parser/tables/blockRecord/types.d.ts +0 -10
  364. package/dist/parser/tables/blockRecord/types.js +0 -3
  365. package/dist/parser/tables/blockRecord/types.js.map +0 -1
  366. package/dist/parser/tables/dimStyle/consts.d.ts +0 -2
  367. package/dist/parser/tables/dimStyle/consts.js +0 -424
  368. package/dist/parser/tables/dimStyle/consts.js.map +0 -1
  369. package/dist/parser/tables/dimStyle/index.d.ts +0 -3
  370. package/dist/parser/tables/dimStyle/index.js +0 -20
  371. package/dist/parser/tables/dimStyle/index.js.map +0 -1
  372. package/dist/parser/tables/dimStyle/parser.d.ts +0 -1
  373. package/dist/parser/tables/dimStyle/parser.js +0 -35
  374. package/dist/parser/tables/dimStyle/parser.js.map +0 -1
  375. package/dist/parser/tables/dimStyle/types.d.ts +0 -83
  376. package/dist/parser/tables/dimStyle/types.js +0 -3
  377. package/dist/parser/tables/dimStyle/types.js.map +0 -1
  378. package/dist/parser/tables/index.d.ts +0 -2
  379. package/dist/parser/tables/index.js +0 -19
  380. package/dist/parser/tables/index.js.map +0 -1
  381. package/dist/parser/tables/layer/index.d.ts +0 -2
  382. package/dist/parser/tables/layer/index.js +0 -19
  383. package/dist/parser/tables/layer/index.js.map +0 -1
  384. package/dist/parser/tables/layer/parser.d.ts +0 -1
  385. package/dist/parser/tables/layer/parser.js +0 -55
  386. package/dist/parser/tables/layer/parser.js.map +0 -1
  387. package/dist/parser/tables/layer/types.d.ts +0 -13
  388. package/dist/parser/tables/layer/types.js +0 -3
  389. package/dist/parser/tables/layer/types.js.map +0 -1
  390. package/dist/parser/tables/ltype/consts.d.ts +0 -6
  391. package/dist/parser/tables/ltype/consts.js +0 -11
  392. package/dist/parser/tables/ltype/consts.js.map +0 -1
  393. package/dist/parser/tables/ltype/index.d.ts +0 -3
  394. package/dist/parser/tables/ltype/index.js +0 -20
  395. package/dist/parser/tables/ltype/index.js.map +0 -1
  396. package/dist/parser/tables/ltype/parser.d.ts +0 -1
  397. package/dist/parser/tables/ltype/parser.js +0 -105
  398. package/dist/parser/tables/ltype/parser.js.map +0 -1
  399. package/dist/parser/tables/ltype/types.d.ts +0 -21
  400. package/dist/parser/tables/ltype/types.js +0 -3
  401. package/dist/parser/tables/ltype/types.js.map +0 -1
  402. package/dist/parser/tables/parser.d.ts +0 -2
  403. package/dist/parser/tables/parser.js +0 -90
  404. package/dist/parser/tables/parser.js.map +0 -1
  405. package/dist/parser/tables/shared.d.ts +0 -2
  406. package/dist/parser/tables/shared.js +0 -32
  407. package/dist/parser/tables/shared.js.map +0 -1
  408. package/dist/parser/tables/style/index.d.ts +0 -2
  409. package/dist/parser/tables/style/index.js +0 -19
  410. package/dist/parser/tables/style/index.js.map +0 -1
  411. package/dist/parser/tables/style/parser.d.ts +0 -1
  412. package/dist/parser/tables/style/parser.js +0 -68
  413. package/dist/parser/tables/style/parser.js.map +0 -1
  414. package/dist/parser/tables/style/types.d.ts +0 -14
  415. package/dist/parser/tables/style/types.js +0 -3
  416. package/dist/parser/tables/style/types.js.map +0 -1
  417. package/dist/parser/tables/types.d.ts +0 -14
  418. package/dist/parser/tables/types.js +0 -3
  419. package/dist/parser/tables/types.js.map +0 -1
  420. package/dist/parser/tables/vport/index.d.ts +0 -2
  421. package/dist/parser/tables/vport/index.js +0 -19
  422. package/dist/parser/tables/vport/index.js.map +0 -1
  423. package/dist/parser/tables/vport/parser.d.ts +0 -1
  424. package/dist/parser/tables/vport/parser.js +0 -201
  425. package/dist/parser/tables/vport/parser.js.map +0 -1
  426. package/dist/parser/tables/vport/types.d.ts +0 -43
  427. package/dist/parser/tables/vport/types.js +0 -3
  428. package/dist/parser/tables/vport/types.js.map +0 -1
  429. package/dist/parser/types.d.ts +0 -29
  430. package/dist/parser/types.js +0 -3
  431. package/dist/parser/types.js.map +0 -1
  432. package/dist/types/color.d.ts +0 -3
  433. package/dist/types/color.js +0 -3
  434. package/dist/types/color.js.map +0 -1
  435. package/dist/types/dxfHeader.d.ts +0 -16
  436. package/dist/types/dxfHeader.js +0 -3
  437. package/dist/types/dxfHeader.js.map +0 -1
  438. package/dist/types/entity.d.ts +0 -6
  439. package/dist/types/entity.js +0 -3
  440. package/dist/types/entity.js.map +0 -1
  441. package/dist/types/index.d.ts +0 -24
  442. package/dist/types/index.js +0 -20
  443. package/dist/types/index.js.map +0 -1
  444. package/dist/utils/binarySearch.d.ts +0 -1
  445. package/dist/utils/binarySearch.js +0 -23
  446. package/dist/utils/binarySearch.js.map +0 -1
  447. package/dist/utils/disjointSet.d.ts +0 -6
  448. package/dist/utils/disjointSet.js +0 -52
  449. package/dist/utils/disjointSet.js.map +0 -1
  450. package/dist/utils/flooding.d.ts +0 -8
  451. package/dist/utils/flooding.js +0 -26
  452. package/dist/utils/flooding.js.map +0 -1
  453. package/dist/utils/functional.d.ts +0 -17
  454. package/dist/utils/functional.js +0 -111
  455. package/dist/utils/functional.js.map +0 -1
  456. package/dist/utils/graph.d.ts +0 -19
  457. package/dist/utils/graph.js +0 -47
  458. package/dist/utils/graph.js.map +0 -1
  459. package/dist/utils/index.d.ts +0 -30
  460. package/dist/utils/index.js +0 -106
  461. package/dist/utils/index.js.map +0 -1
  462. package/dist/utils/queue.d.ts +0 -19
  463. package/dist/utils/queue.js +0 -71
  464. package/dist/utils/queue.js.map +0 -1
  465. package/dist/utils/triangle.d.ts +0 -2
  466. package/dist/utils/triangle.js +0 -19
  467. package/dist/utils/triangle.js.map +0 -1
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultLightingType = exports.ShadePlotMode = exports.OrthographicType = exports.UCSPerViewport = exports.RenderMode = exports.ViewportStatusFlag = void 0;
4
- var ViewportStatusFlag;
5
- (function (ViewportStatusFlag) {
6
- ViewportStatusFlag[ViewportStatusFlag["PERSPECTIVE_MODE"] = 1] = "PERSPECTIVE_MODE";
7
- ViewportStatusFlag[ViewportStatusFlag["FRONT_CLIPPING"] = 2] = "FRONT_CLIPPING";
8
- ViewportStatusFlag[ViewportStatusFlag["BACK_CLIPPING"] = 4] = "BACK_CLIPPING";
9
- ViewportStatusFlag[ViewportStatusFlag["UCS_FOLLOW"] = 8] = "UCS_FOLLOW";
10
- ViewportStatusFlag[ViewportStatusFlag["FRONT_CLIP_NOT_AT_EYE"] = 16] = "FRONT_CLIP_NOT_AT_EYE";
11
- ViewportStatusFlag[ViewportStatusFlag["UCS_ICON_VISIBILITY"] = 32] = "UCS_ICON_VISIBILITY";
12
- ViewportStatusFlag[ViewportStatusFlag["UCS_ICON_AT_ORIGIN"] = 64] = "UCS_ICON_AT_ORIGIN";
13
- ViewportStatusFlag[ViewportStatusFlag["FAST_ZOOM"] = 128] = "FAST_ZOOM";
14
- ViewportStatusFlag[ViewportStatusFlag["SNAP_MODE"] = 256] = "SNAP_MODE";
15
- ViewportStatusFlag[ViewportStatusFlag["GRID_MODE"] = 512] = "GRID_MODE";
16
- ViewportStatusFlag[ViewportStatusFlag["ISOMETRIC_SNAP_STYLE"] = 1024] = "ISOMETRIC_SNAP_STYLE";
17
- ViewportStatusFlag[ViewportStatusFlag["HIDE_PLOT_MODE"] = 2048] = "HIDE_PLOT_MODE";
18
- ViewportStatusFlag[ViewportStatusFlag["K_ISO_PAIR_TOP"] = 4096] = "K_ISO_PAIR_TOP";
19
- ViewportStatusFlag[ViewportStatusFlag["K_ISO_PAIR_RIGHT"] = 8192] = "K_ISO_PAIR_RIGHT";
20
- ViewportStatusFlag[ViewportStatusFlag["VIEWPORT_ZOOM_LOCKING"] = 16384] = "VIEWPORT_ZOOM_LOCKING";
21
- ViewportStatusFlag[ViewportStatusFlag["UNUSED"] = 32768] = "UNUSED";
22
- ViewportStatusFlag[ViewportStatusFlag["NON_RECTANGULAR_CLIPPING"] = 65536] = "NON_RECTANGULAR_CLIPPING";
23
- ViewportStatusFlag[ViewportStatusFlag["VIEWPORT_OFF"] = 131072] = "VIEWPORT_OFF";
24
- ViewportStatusFlag[ViewportStatusFlag["GRID_BEYOND_DRAWING_LIMITS"] = 262144] = "GRID_BEYOND_DRAWING_LIMITS";
25
- ViewportStatusFlag[ViewportStatusFlag["ADAPTIVE_GRID_DISPLAY"] = 524288] = "ADAPTIVE_GRID_DISPLAY";
26
- ViewportStatusFlag[ViewportStatusFlag["SUBDIVISION_BELOW_SPACING"] = 1048576] = "SUBDIVISION_BELOW_SPACING";
27
- ViewportStatusFlag[ViewportStatusFlag["GRID_FOLLOWS_WORKPLANE"] = 2097152] = "GRID_FOLLOWS_WORKPLANE";
28
- })(ViewportStatusFlag || (exports.ViewportStatusFlag = ViewportStatusFlag = {}));
29
- var RenderMode;
30
- (function (RenderMode) {
31
- RenderMode[RenderMode["OPTIMIZED_2D"] = 0] = "OPTIMIZED_2D";
32
- RenderMode[RenderMode["WIREFRAME"] = 1] = "WIREFRAME";
33
- RenderMode[RenderMode["HIDDEN_LINE"] = 2] = "HIDDEN_LINE";
34
- RenderMode[RenderMode["FLAT_SHADED"] = 3] = "FLAT_SHADED";
35
- RenderMode[RenderMode["GOURAUD_SHADED"] = 4] = "GOURAUD_SHADED";
36
- RenderMode[RenderMode["FLAT_SHADED_WITH_WIREFRAME"] = 5] = "FLAT_SHADED_WITH_WIREFRAME";
37
- RenderMode[RenderMode["GOURAUD_SHADED_WITH_WIREFRAME"] = 6] = "GOURAUD_SHADED_WITH_WIREFRAME";
38
- })(RenderMode || (exports.RenderMode = RenderMode = {}));
39
- // viewport가 개별 ucs를 가지고 있는지 여부
40
- var UCSPerViewport;
41
- (function (UCSPerViewport) {
42
- UCSPerViewport[UCSPerViewport["UCS_UNCHANGED"] = 0] = "UCS_UNCHANGED";
43
- UCSPerViewport[UCSPerViewport["HAS_OWN_UCS"] = 1] = "HAS_OWN_UCS";
44
- })(UCSPerViewport || (exports.UCSPerViewport = UCSPerViewport = {}));
45
- var OrthographicType;
46
- (function (OrthographicType) {
47
- OrthographicType[OrthographicType["NON_ORTHOGRAPHIC"] = 0] = "NON_ORTHOGRAPHIC";
48
- OrthographicType[OrthographicType["TOP"] = 1] = "TOP";
49
- OrthographicType[OrthographicType["BOTTOM"] = 2] = "BOTTOM";
50
- OrthographicType[OrthographicType["FRONT"] = 3] = "FRONT";
51
- OrthographicType[OrthographicType["BACK"] = 4] = "BACK";
52
- OrthographicType[OrthographicType["LEFT"] = 5] = "LEFT";
53
- OrthographicType[OrthographicType["RIGHT"] = 6] = "RIGHT";
54
- })(OrthographicType || (exports.OrthographicType = OrthographicType = {}));
55
- var ShadePlotMode;
56
- (function (ShadePlotMode) {
57
- ShadePlotMode[ShadePlotMode["AS_DISPLAYED"] = 0] = "AS_DISPLAYED";
58
- ShadePlotMode[ShadePlotMode["WIREFRAME"] = 1] = "WIREFRAME";
59
- ShadePlotMode[ShadePlotMode["HIDDEN"] = 2] = "HIDDEN";
60
- ShadePlotMode[ShadePlotMode["RENDERED"] = 3] = "RENDERED";
61
- })(ShadePlotMode || (exports.ShadePlotMode = ShadePlotMode = {}));
62
- var DefaultLightingType;
63
- (function (DefaultLightingType) {
64
- DefaultLightingType[DefaultLightingType["ONE_DISTANT_LIGHT"] = 0] = "ONE_DISTANT_LIGHT";
65
- DefaultLightingType[DefaultLightingType["TWO_DISTANT_LIGHTS"] = 1] = "TWO_DISTANT_LIGHTS";
66
- })(DefaultLightingType || (exports.DefaultLightingType = DefaultLightingType = {}));
67
- //# sourceMappingURL=viewport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../src/consts/viewport.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAuBX;AAvBD,WAAY,kBAAkB;IAC1B,mFAAsB,CAAA;IACtB,+EAAoB,CAAA;IACpB,6EAAmB,CAAA;IACnB,uEAAgB,CAAA;IAChB,8FAA4B,CAAA;IAC5B,0FAA0B,CAAA;IAC1B,wFAAyB,CAAA;IACzB,uEAAgB,CAAA;IAChB,uEAAiB,CAAA;IACjB,u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2
- export { DxfParser, };
package/dist/index.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DxfParser = void 0;
7
- const DxfParser_1 = __importDefault(require("./parser/DxfParser"));
8
- exports.DxfParser = DxfParser_1.default;
9
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,mEAA0C;AAItC,oBAJG,mBAAS,CAIH"}
@@ -1,8 +0,0 @@
1
- /**
2
- * AutoCad files sometimes use an indexed color value between 1 and 255 inclusive.
3
- * Each value corresponds to a color. index 1 is red, that is 16711680 or 0xFF0000.
4
- * index 0 and 256, while included in this array, are actually reserved for inheritance
5
- * values in AutoCad so they should not be used for index color lookups.
6
- */
7
- declare const _default: number[];
8
- export default _default;
@@ -1,267 +0,0 @@
1
- "use strict";
2
- /**
3
- * AutoCad files sometimes use an indexed color value between 1 and 255 inclusive.
4
- * Each value corresponds to a color. index 1 is red, that is 16711680 or 0xFF0000.
5
- * index 0 and 256, while included in this array, are actually reserved for inheritance
6
- * values in AutoCad so they should not be used for index color lookups.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.default = [
10
- 0,
11
- 16711680,
12
- 16776960,
13
- 65280,
14
- 65535,
15
- 255,
16
- 16711935,
17
- 16777215,
18
- 8421504,
19
- 12632256,
20
- 16711680,
21
- 16744319,
22
- 13369344,
23
- 13395558,
24
- 10027008,
25
- 10046540,
26
- 8323072,
27
- 8339263,
28
- 4980736,
29
- 4990502,
30
- 16727808,
31
- 16752511,
32
- 13382400,
33
- 13401958,
34
- 10036736,
35
- 10051404,
36
- 8331008,
37
- 8343359,
38
- 4985600,
39
- 4992806,
40
- 16744192,
41
- 16760703,
42
- 13395456,
43
- 13408614,
44
- 10046464,
45
- 10056268,
46
- 8339200,
47
- 8347455,
48
- 4990464,
49
- 4995366,
50
- 16760576,
51
- 16768895,
52
- 13408512,
53
- 13415014,
54
- 10056192,
55
- 10061132,
56
- 8347392,
57
- 8351551,
58
- 4995328,
59
- 4997670,
60
- 16776960,
61
- 16777087,
62
- 13421568,
63
- 13421670,
64
- 10000384,
65
- 10000460,
66
- 8355584,
67
- 8355647,
68
- 5000192,
69
- 5000230,
70
- 12582656,
71
- 14679935,
72
- 10079232,
73
- 11717734,
74
- 7510016,
75
- 8755276,
76
- 6258432,
77
- 7307071,
78
- 3755008,
79
- 4344870,
80
- 8388352,
81
- 12582783,
82
- 6736896,
83
- 10079334,
84
- 5019648,
85
- 7510092,
86
- 4161280,
87
- 6258495,
88
- 2509824,
89
- 3755046,
90
- 4194048,
91
- 10485631,
92
- 3394560,
93
- 8375398,
94
- 2529280,
95
- 6264908,
96
- 2064128,
97
- 5209919,
98
- 1264640,
99
- 3099686,
100
- 65280,
101
- 8388479,
102
- 52224,
103
- 6736998,
104
- 38912,
105
- 5019724,
106
- 32512,
107
- 4161343,
108
- 19456,
109
- 2509862,
110
- 65343,
111
- 8388511,
112
- 52275,
113
- 6737023,
114
- 38950,
115
- 5019743,
116
- 32543,
117
- 4161359,
118
- 19475,
119
- 2509871,
120
- 65407,
121
- 8388543,
122
- 52326,
123
- 6737049,
124
- 38988,
125
- 5019762,
126
- 32575,
127
- 4161375,
128
- 19494,
129
- 2509881,
130
- 65471,
131
- 8388575,
132
- 52377,
133
- 6737074,
134
- 39026,
135
- 5019781,
136
- 32607,
137
- 4161391,
138
- 19513,
139
- 2509890,
140
- 65535,
141
- 8388607,
142
- 52428,
143
- 6737100,
144
- 39064,
145
- 5019800,
146
- 32639,
147
- 4161407,
148
- 19532,
149
- 2509900,
150
- 49151,
151
- 8380415,
152
- 39372,
153
- 6730444,
154
- 29336,
155
- 5014936,
156
- 24447,
157
- 4157311,
158
- 14668,
159
- 2507340,
160
- 32767,
161
- 8372223,
162
- 26316,
163
- 6724044,
164
- 19608,
165
- 5010072,
166
- 16255,
167
- 4153215,
168
- 9804,
169
- 2505036,
170
- 16383,
171
- 8364031,
172
- 13260,
173
- 6717388,
174
- 9880,
175
- 5005208,
176
- 8063,
177
- 4149119,
178
- 4940,
179
- 2502476,
180
- 255,
181
- 8355839,
182
- 204,
183
- 6710988,
184
- 152,
185
- 5000344,
186
- 127,
187
- 4145023,
188
- 76,
189
- 2500172,
190
- 4129023,
191
- 10452991,
192
- 3342540,
193
- 8349388,
194
- 2490520,
195
- 6245528,
196
- 2031743,
197
- 5193599,
198
- 1245260,
199
- 3089996,
200
- 8323327,
201
- 12550143,
202
- 6684876,
203
- 10053324,
204
- 4980888,
205
- 7490712,
206
- 4128895,
207
- 6242175,
208
- 2490444,
209
- 3745356,
210
- 12517631,
211
- 14647295,
212
- 10027212,
213
- 11691724,
214
- 7471256,
215
- 8735896,
216
- 6226047,
217
- 7290751,
218
- 3735628,
219
- 4335180,
220
- 16711935,
221
- 16744447,
222
- 13369548,
223
- 13395660,
224
- 9961624,
225
- 9981080,
226
- 8323199,
227
- 8339327,
228
- 4980812,
229
- 4990540,
230
- 16711871,
231
- 16744415,
232
- 13369497,
233
- 13395634,
234
- 9961586,
235
- 9981061,
236
- 8323167,
237
- 8339311,
238
- 4980793,
239
- 4990530,
240
- 16711807,
241
- 16744383,
242
- 13369446,
243
- 13395609,
244
- 9961548,
245
- 9981042,
246
- 8323135,
247
- 8339295,
248
- 4980774,
249
- 4990521,
250
- 16711743,
251
- 16744351,
252
- 13369395,
253
- 13395583,
254
- 9961510,
255
- 9981023,
256
- 8323103,
257
- 8339279,
258
- 4980755,
259
- 4990511,
260
- 3355443,
261
- 5987163,
262
- 8684676,
263
- 11382189,
264
- 14079702,
265
- 16777215
266
- ];
267
- //# sourceMappingURL=AutoCadColorIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AutoCadColorIndex.js","sourceRoot":"","sources":["../../src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IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;CACR,CAAC"}
@@ -1,38 +0,0 @@
1
- export interface ScannerGroup {
2
- code: number;
3
- value: any;
4
- }
5
- /**
6
- * DxfArrayScanner
7
- *
8
- * Based off the AutoCad 2012 DXF Reference
9
- * http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
10
- *
11
- * Reads through an array representing lines of a dxf file. Takes an array and
12
- * provides an easy interface to extract group code and value pairs.
13
- * @param data - an array where each element represents a line in the dxf file
14
- * @constructor
15
- */
16
- export default class DxfArrayScanner {
17
- private _pointer;
18
- private _data;
19
- private _eof;
20
- lastReadGroup: ScannerGroup;
21
- constructor(data: string[]);
22
- next(): {
23
- code: number;
24
- value: string | number | boolean;
25
- };
26
- peek(): ScannerGroup;
27
- rewind(numberOfGroups?: number | undefined): void;
28
- /**
29
- * Returns true if there is another code/value pair (2 elements in the array).
30
- * @returns {boolean}
31
- */
32
- hasNext(): boolean;
33
- /**
34
- * Returns true if the scanner is at the end of the array
35
- * @returns {boolean}
36
- */
37
- isEOF(): boolean;
38
- }
@@ -1,159 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const shared_1 = require("./shared");
4
- /**
5
- * DxfArrayScanner
6
- *
7
- * Based off the AutoCad 2012 DXF Reference
8
- * http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
9
- *
10
- * Reads through an array representing lines of a dxf file. Takes an array and
11
- * provides an easy interface to extract group code and value pairs.
12
- * @param data - an array where each element represents a line in the dxf file
13
- * @constructor
14
- */
15
- class DxfArrayScanner {
16
- constructor(data) {
17
- this.lastReadGroup = { code: 0, value: 0 };
18
- this._pointer = 0;
19
- this._data = data;
20
- this._eof = false;
21
- }
22
- next() {
23
- if (!this.hasNext()) {
24
- if (!this._eof) {
25
- console.warn('Unexpected end of input: EOF group not read before end of file. Ended on code ' +
26
- this._data[this._pointer]);
27
- }
28
- else {
29
- console.warn("Cannot call 'next' after EOF group has been read");
30
- }
31
- return {
32
- code: 0,
33
- value: 'EOF',
34
- };
35
- }
36
- const code = parseInt(this._data[this._pointer++], 10);
37
- const value = parseGroupValue(code, this._data[this._pointer++]);
38
- const group = { code, value };
39
- if ((0, shared_1.isMatched)(group, 0, 'EOF')) {
40
- this._eof = true;
41
- }
42
- this.lastReadGroup = group;
43
- return group;
44
- }
45
- peek() {
46
- if (!this.hasNext()) {
47
- if (!this._eof)
48
- throw new Error('Unexpected end of input: EOF group not read before end of file. Ended on code ' +
49
- this._data[this._pointer]);
50
- else
51
- throw new Error("Cannot call 'next' after EOF group has been read");
52
- }
53
- let group = {
54
- code: parseInt(this._data[this._pointer]),
55
- value: 0
56
- };
57
- group.value = parseGroupValue(group.code, this._data[this._pointer + 1]);
58
- return group;
59
- }
60
- rewind(numberOfGroups) {
61
- numberOfGroups = numberOfGroups || 1;
62
- this._pointer = this._pointer - numberOfGroups * 2;
63
- }
64
- /**
65
- * Returns true if there is another code/value pair (2 elements in the array).
66
- * @returns {boolean}
67
- */
68
- hasNext() {
69
- if (this._eof) {
70
- return false;
71
- }
72
- if (this._pointer > this._data.length - 2) {
73
- return false;
74
- }
75
- return true;
76
- }
77
- /**
78
- * Returns true if the scanner is at the end of the array
79
- * @returns {boolean}
80
- */
81
- isEOF() {
82
- return this._eof;
83
- }
84
- }
85
- exports.default = DxfArrayScanner;
86
- /**
87
- * Parse a value to its proper type.
88
- * See pages 3 - 10 of the AutoCad DXF 2012 reference given at the top of this file
89
- *
90
- * @param code
91
- * @param value
92
- * @returns {*}
93
- */
94
- function parseGroupValue(code, value) {
95
- if (code <= 9)
96
- return value;
97
- if (code >= 10 && code <= 59)
98
- return parseFloat(value.trim());
99
- if (code >= 60 && code <= 99)
100
- return parseInt(value.trim());
101
- if (code >= 100 && code <= 109)
102
- return value;
103
- if (code >= 110 && code <= 149)
104
- return parseFloat(value.trim());
105
- if (code >= 160 && code <= 179)
106
- return parseInt(value.trim());
107
- if (code >= 210 && code <= 239)
108
- return parseFloat(value.trim());
109
- if (code >= 270 && code <= 289)
110
- return parseInt(value.trim());
111
- if (code >= 290 && code <= 299)
112
- return parseBoolean(value.trim());
113
- if (code >= 300 && code <= 369)
114
- return value;
115
- if (code >= 370 && code <= 389)
116
- return parseInt(value.trim());
117
- if (code >= 390 && code <= 399)
118
- return value;
119
- if (code >= 400 && code <= 409)
120
- return parseInt(value.trim());
121
- if (code >= 410 && code <= 419)
122
- return value;
123
- if (code >= 420 && code <= 429)
124
- return parseInt(value.trim());
125
- if (code >= 430 && code <= 439)
126
- return value;
127
- if (code >= 440 && code <= 459)
128
- return parseInt(value.trim());
129
- if (code >= 460 && code <= 469)
130
- return parseFloat(value.trim());
131
- if (code >= 470 && code <= 481)
132
- return value;
133
- if (code === 999)
134
- return value;
135
- if (code >= 1000 && code <= 1009)
136
- return value;
137
- if (code >= 1010 && code <= 1059)
138
- return parseFloat(value.trim());
139
- if (code >= 1060 && code <= 1071)
140
- return parseInt(value.trim());
141
- console.log('WARNING: Group code does not have a defined type: %j', {
142
- code: code,
143
- value: value,
144
- });
145
- return value;
146
- }
147
- /**
148
- * Parse a boolean according to a 1 or 0 value
149
- * @param str
150
- * @returns {boolean}
151
- */
152
- function parseBoolean(str) {
153
- if (str === '0')
154
- return false;
155
- if (str === '1')
156
- return true;
157
- throw TypeError("String '" + str + "' cannot be cast to Boolean type");
158
- }
159
- //# sourceMappingURL=DxfArrayScanner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DxfArrayScanner.js","sourceRoot":"","sources":["../../src/parser/DxfArrayScanner.ts"],"names":[],"mappings":";;AAAA,qCAAqC;AASrC;;;;;;;;;;GAUG;AAEH,MAAqB,eAAe;IAOhC,YAAY,IAAc;QAF1B,kBAAa,GAAiB,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAA;QAG/C,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,IAAI;QACA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YAClB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACb,OAAO,CAAC,IAAI,CACR,gFAAgF;oBAChF,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAC5B,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO,CAAC,IAAI,CACR,kDAAkD,CACrD,CAAC;YACN,CAAC;YACD,OAAO;gBACH,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,KAAK;aACf,CAAC;QACN,CAAC;QAED,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACvD,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACjE,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAE9B,IAAI,IAAA,kBAAS,EAAC,KAAK,EAAE,CAAC,EAAE,KAAK,C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;KACf,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAC,GAAW;IAC7B,IAAI,GAAG,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IAC9B,IAAI,GAAG,KAAK,GAAG;QAAE,OAAO,IAAI,CAAC;IAC7B,MAAM,SAAS,CAAC,UAAU,GAAG,GAAG,GAAG,kCAAkC,CAAC,CAAC;AAC3E,CAAC"}
@@ -1,9 +0,0 @@
1
- import DxfArrayScanner from './DxfArrayScanner';
2
- import type { ParsedDxf } from './types';
3
- import { Readable } from 'readable-stream';
4
- export default class DxfParser {
5
- parseSync(dxfString: string): ParsedDxf;
6
- parseStream(stream: Readable): Promise<ParsedDxf>;
7
- parseFromUrl(url: string, encoding?: string, init?: RequestInit | undefined): Promise<ParsedDxf | null>;
8
- parseAll(scanner: DxfArrayScanner): ParsedDxf;
9
- }