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,9 +0,0 @@
1
- import { Point3D } from '../../../types';
2
- import type { CommonDxfEntity } from '../shared';
3
- export interface SolidEntity extends CommonDxfEntity {
4
- type: 'SOLID';
5
- subclassMarker: 'AcDbTrace';
6
- points: Point3D[];
7
- thickness: number;
8
- extrusionDirection: Point3D;
9
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/solid/types.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export declare enum SplineFlag {
2
- NONE = 0,
3
- CLOSED = 1,
4
- PERIODIC = 2,
5
- RATIONAL = 4,
6
- PLANAR = 8,
7
- LINEAR = 16
8
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SplineFlag = void 0;
4
- var SplineFlag;
5
- (function (SplineFlag) {
6
- SplineFlag[SplineFlag["NONE"] = 0] = "NONE";
7
- SplineFlag[SplineFlag["CLOSED"] = 1] = "CLOSED";
8
- SplineFlag[SplineFlag["PERIODIC"] = 2] = "PERIODIC";
9
- SplineFlag[SplineFlag["RATIONAL"] = 4] = "RATIONAL";
10
- SplineFlag[SplineFlag["PLANAR"] = 8] = "PLANAR";
11
- SplineFlag[SplineFlag["LINEAR"] = 16] = "LINEAR";
12
- })(SplineFlag || (exports.SplineFlag = SplineFlag = {}));
13
- //# sourceMappingURL=consts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/parser/entities/spline/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAOX;AAPD,WAAY,UAAU;IAClB,2CAAQ,CAAA;IACR,+CAAU,CAAA;IACV,mDAAY,CAAA;IACZ,mDAAY,CAAA;IACZ,+CAAU,CAAA;IACV,gDAAW,CAAA;AACf,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB"}
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './consts';
3
- export * from './parser';
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/spline/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
@@ -1,8 +0,0 @@
1
- import type DxfArrayScanner from '../../DxfArrayScanner';
2
- import type { ScannerGroup } from '../../DxfArrayScanner';
3
- import type { SplineEntity } from './types';
4
- export declare class SplineEntityParser {
5
- static ForEntityName: string;
6
- private parser;
7
- parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): SplineEntity;
8
- }
@@ -1,113 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SplineEntityParser = void 0;
4
- const parserGenerator_1 = require("../../shared/parserGenerator");
5
- const shared_1 = require("../shared");
6
- const DefaultSplineEntity = {
7
- knotTolerance: 1e-6,
8
- controlTolerance: 1e-6,
9
- fitTolerance: 1e-9,
10
- knotValues: [],
11
- controlPoints: [],
12
- fitPoints: [],
13
- };
14
- const SplineEntityParserSnippets = [
15
- {
16
- code: 11,
17
- name: 'fitPoints',
18
- isMultiple: true,
19
- parser: parserGenerator_1.PointParser,
20
- },
21
- {
22
- code: 10,
23
- name: 'controlPoints',
24
- isMultiple: true,
25
- parser: parserGenerator_1.PointParser,
26
- },
27
- {
28
- code: 41,
29
- name: 'weights',
30
- isMultiple: true,
31
- parser: parserGenerator_1.Identity,
32
- },
33
- {
34
- code: 40,
35
- name: 'knots',
36
- isMultiple: true,
37
- parser: parserGenerator_1.Identity,
38
- },
39
- {
40
- code: 13,
41
- name: 'endTangent',
42
- parser: parserGenerator_1.PointParser,
43
- },
44
- {
45
- code: 12,
46
- name: 'startTangent',
47
- parser: parserGenerator_1.PointParser,
48
- },
49
- {
50
- code: 44,
51
- name: 'fitTolerance',
52
- parser: parserGenerator_1.Identity,
53
- },
54
- {
55
- code: 43,
56
- name: 'controlTolerance',
57
- parser: parserGenerator_1.Identity,
58
- },
59
- {
60
- code: 42,
61
- name: 'knotTolerance',
62
- parser: parserGenerator_1.Identity,
63
- },
64
- {
65
- code: 74,
66
- name: 'numberOfFitPoints',
67
- parser: parserGenerator_1.Identity,
68
- },
69
- {
70
- code: 73,
71
- name: 'numberOfControlPoints',
72
- parser: parserGenerator_1.Identity,
73
- },
74
- {
75
- code: 72,
76
- name: 'numberOfKnots',
77
- parser: parserGenerator_1.Identity,
78
- },
79
- {
80
- code: 71,
81
- name: 'degree',
82
- parser: parserGenerator_1.Identity,
83
- },
84
- {
85
- code: 70,
86
- name: 'flag',
87
- parser: parserGenerator_1.Identity,
88
- },
89
- {
90
- code: 210,
91
- name: 'normal',
92
- parser: parserGenerator_1.PointParser,
93
- },
94
- {
95
- code: 100,
96
- name: 'subclassMarker',
97
- parser: parserGenerator_1.Identity,
98
- },
99
- ...shared_1.CommonEntitySnippets,
100
- ];
101
- class SplineEntityParser {
102
- constructor() {
103
- this.parser = (0, parserGenerator_1.createParser)(SplineEntityParserSnippets, DefaultSplineEntity);
104
- }
105
- parseEntity(scanner, curr) {
106
- const entity = {};
107
- this.parser(curr, scanner, entity);
108
- return entity;
109
- }
110
- }
111
- exports.SplineEntityParser = SplineEntityParser;
112
- SplineEntityParser.ForEntityName = 'SPLINE';
113
- //# sourceMappingURL=parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/spline/parser.ts"],"names":[],"mappings":";;;AAEA,kEAKsC;AACtC,sCAAiD;AAGjD,MAAM,mBAAmB,GAAG;IACxB,aAAa,EAAE,IAAI;IACnB,gBAAgB,EAAE,IAAI;IACtB,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,EAAE;IACjB,SAAS,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,0BAA0B,GAAuB;IACnD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,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,mBAAmB;QACzB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,uBAAuB;QAC7B,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,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,QAAQ;QACd,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,kBAAkB;IAA/B;QAEY,WAAM,GAAG,IAAA,8BAAY,EACzB,0BAA0B,EAC1B,mBAAmB,CACtB,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,MAAsB,CAAC;IAClC,CAAC;;AAXL,gDAYC;AAXU,gCAAa,GAAG,QAAQ,AAAX,CAAY"}
@@ -1,21 +0,0 @@
1
- import type { Point3D } from '../../../types';
2
- import type { CommonDxfEntity } from '../shared';
3
- export interface SplineEntity extends CommonDxfEntity {
4
- type: 'SPLINE';
5
- subclassMarker: 'AcDbSpline';
6
- normal?: Point3D;
7
- flag: number;
8
- degree: number;
9
- numberOfKnots: number;
10
- numberOfControlPoints: number;
11
- numberOfFitPoints: number;
12
- knotTolerance: number;
13
- controlTolerance: number;
14
- fitTolerance: number;
15
- startTangent?: Point3D;
16
- endTangent?: Point3D;
17
- knots: number[];
18
- weights?: number[];
19
- controlPoints: Point3D[];
20
- fitPoints: number[];
21
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/spline/types.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- export declare enum TextGenerationFlag {
2
- NONE = 0,
3
- MIRRORED_X = 2,
4
- MIRRORED_Y = 4
5
- }
6
- export declare enum TextHorizontalAlign {
7
- LEFT = 0,
8
- CENTER = 1,
9
- RIGHT = 2,
10
- ALIGNED = 3,
11
- MIDDLE = 4,
12
- FIT = 5
13
- }
14
- export declare enum TextVerticalAlign {
15
- BASELINE = 0,
16
- BOTTOM = 1,
17
- MIDDLE = 2,
18
- TOP = 3
19
- }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextVerticalAlign = exports.TextHorizontalAlign = exports.TextGenerationFlag = void 0;
4
- var TextGenerationFlag;
5
- (function (TextGenerationFlag) {
6
- TextGenerationFlag[TextGenerationFlag["NONE"] = 0] = "NONE";
7
- TextGenerationFlag[TextGenerationFlag["MIRRORED_X"] = 2] = "MIRRORED_X";
8
- TextGenerationFlag[TextGenerationFlag["MIRRORED_Y"] = 4] = "MIRRORED_Y";
9
- })(TextGenerationFlag || (exports.TextGenerationFlag = TextGenerationFlag = {}));
10
- var TextHorizontalAlign;
11
- (function (TextHorizontalAlign) {
12
- TextHorizontalAlign[TextHorizontalAlign["LEFT"] = 0] = "LEFT";
13
- TextHorizontalAlign[TextHorizontalAlign["CENTER"] = 1] = "CENTER";
14
- TextHorizontalAlign[TextHorizontalAlign["RIGHT"] = 2] = "RIGHT";
15
- TextHorizontalAlign[TextHorizontalAlign["ALIGNED"] = 3] = "ALIGNED";
16
- TextHorizontalAlign[TextHorizontalAlign["MIDDLE"] = 4] = "MIDDLE";
17
- TextHorizontalAlign[TextHorizontalAlign["FIT"] = 5] = "FIT";
18
- })(TextHorizontalAlign || (exports.TextHorizontalAlign = TextHorizontalAlign = {}));
19
- var TextVerticalAlign;
20
- (function (TextVerticalAlign) {
21
- TextVerticalAlign[TextVerticalAlign["BASELINE"] = 0] = "BASELINE";
22
- TextVerticalAlign[TextVerticalAlign["BOTTOM"] = 1] = "BOTTOM";
23
- TextVerticalAlign[TextVerticalAlign["MIDDLE"] = 2] = "MIDDLE";
24
- TextVerticalAlign[TextVerticalAlign["TOP"] = 3] = "TOP";
25
- })(TextVerticalAlign || (exports.TextVerticalAlign = TextVerticalAlign = {}));
26
- //# sourceMappingURL=consts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/parser/entities/text/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,2DAAQ,CAAA;IACR,uEAAc,CAAA;IACd,uEAAc,CAAA;AAClB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC3B,6DAAQ,CAAA;IACR,iEAAU,CAAA;IACV,+DAAS,CAAA;IACT,mEAAW,CAAA;IACX,iEAAU,CAAA;IACV,2DAAO,CAAA;AACX,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,iEAAY,CAAA;IACZ,6DAAU,CAAA;IACV,6DAAU,CAAA;IACV,uDAAO,CAAA;AACX,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './consts';
3
- export * from './parser';
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/text/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
@@ -1,26 +0,0 @@
1
- import type DxfArrayScanner from '../../DxfArrayScanner';
2
- import type { ScannerGroup } from '../../DxfArrayScanner';
3
- import { DXFParserSnippet } from '../../shared/parserGenerator';
4
- import { TextHorizontalAlign, TextVerticalAlign } from './consts';
5
- import { TextEntity } from './types';
6
- export declare const DefaultTextEntity: {
7
- thickness: number;
8
- rotation: number;
9
- xScale: number;
10
- obliqueAngle: number;
11
- styleName: string;
12
- generationFlag: number;
13
- halign: TextHorizontalAlign;
14
- valign: TextVerticalAlign;
15
- extrusionDirection: {
16
- x: number;
17
- y: number;
18
- z: number;
19
- };
20
- };
21
- export declare const TextEntityParserSnippets: DXFParserSnippet[];
22
- export declare class TextEntityParser {
23
- static ForEntityName: string;
24
- private parser;
25
- parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): TextEntity;
26
- }
@@ -1,112 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextEntityParser = exports.TextEntityParserSnippets = exports.DefaultTextEntity = void 0;
4
- const parserGenerator_1 = require("../../shared/parserGenerator");
5
- const shared_1 = require("../shared");
6
- const consts_1 = require("./consts");
7
- exports.DefaultTextEntity = {
8
- thickness: 0,
9
- rotation: 0,
10
- xScale: 1,
11
- obliqueAngle: 0,
12
- styleName: 'STANDARD',
13
- generationFlag: 0,
14
- halign: consts_1.TextHorizontalAlign.LEFT,
15
- valign: consts_1.TextVerticalAlign.BASELINE,
16
- extrusionDirection: { x: 0, y: 0, z: 1 },
17
- };
18
- exports.TextEntityParserSnippets = [
19
- {
20
- code: 73,
21
- name: 'valign',
22
- parser: parserGenerator_1.Identity,
23
- },
24
- {
25
- // skip for duplicated AcDbText
26
- code: 100,
27
- },
28
- {
29
- code: 210,
30
- name: 'extrusionDirection',
31
- parser: parserGenerator_1.PointParser,
32
- },
33
- {
34
- code: 11,
35
- name: 'endPoint',
36
- parser: parserGenerator_1.PointParser,
37
- },
38
- {
39
- code: 72,
40
- name: 'valign',
41
- parser: parserGenerator_1.Identity,
42
- },
43
- {
44
- code: 72,
45
- name: 'halign',
46
- parser: parserGenerator_1.Identity,
47
- },
48
- {
49
- code: 71,
50
- name: 'generationFlag',
51
- parser: parserGenerator_1.Identity,
52
- },
53
- {
54
- code: 7,
55
- name: 'styleName',
56
- parser: parserGenerator_1.Identity,
57
- },
58
- {
59
- code: 51,
60
- name: 'obliqueAngle',
61
- parser: parserGenerator_1.Identity,
62
- },
63
- {
64
- code: 41,
65
- name: 'xScale',
66
- parser: parserGenerator_1.Identity,
67
- },
68
- {
69
- code: 50,
70
- name: 'rotation',
71
- parser: parserGenerator_1.Identity,
72
- },
73
- {
74
- code: 1,
75
- name: 'text',
76
- parser: parserGenerator_1.Identity,
77
- },
78
- {
79
- code: 40,
80
- name: 'textHeight',
81
- parser: parserGenerator_1.Identity,
82
- },
83
- {
84
- code: 10,
85
- name: 'startPoint',
86
- parser: parserGenerator_1.PointParser,
87
- },
88
- {
89
- code: 39,
90
- name: 'thickness',
91
- parser: parserGenerator_1.Identity,
92
- },
93
- {
94
- code: 100,
95
- name: 'subclassMarker',
96
- parser: parserGenerator_1.Identity,
97
- },
98
- ...shared_1.CommonEntitySnippets,
99
- ];
100
- class TextEntityParser {
101
- constructor() {
102
- this.parser = (0, parserGenerator_1.createParser)(exports.TextEntityParserSnippets, exports.DefaultTextEntity);
103
- }
104
- parseEntity(scanner, curr) {
105
- const entity = {};
106
- this.parser(curr, scanner, entity);
107
- return entity;
108
- }
109
- }
110
- exports.TextEntityParser = TextEntityParser;
111
- TextEntityParser.ForEntityName = 'TEXT';
112
- //# sourceMappingURL=parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/text/parser.ts"],"names":[],"mappings":";;;AAEA,kEAKsC;AACtC,sCAAiD;AACjD,qCAAkE;AAGrD,QAAA,iBAAiB,GAAG;IAC7B,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE,CAAC;IACT,YAAY,EAAE,CAAC;IACf,SAAS,EAAE,UAAU;IACrB,cAAc,EAAE,CAAC;IACjB,MAAM,EAAE,4BAAmB,CAAC,IAAI;IAChC,MAAM,EAAE,0BAAiB,CAAC,QAAQ;IAClC,kBAAkB,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;CAC3C,CAAC;AAEW,QAAA,wBAAwB,GAAuB;IACxD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,+BAA+B;QAC/B,IAAI,EAAE,GAAG;KACZ;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,CAAC;QACP,IAAI,EAAE,WAAW;QACjB,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,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,CAAC;QACP,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,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;IAA7B;QAEY,WAAM,GAAG,IAAA,8BAAY,EAAC,gCAAwB,EAAE,yBAAiB,CAAC,CAAC;IAO/E,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,MAAoB,CAAC;IAChC,CAAC;;AARL,4CASC;AARU,8BAAa,GAAG,MAAM,AAAT,CAAU"}
@@ -1,20 +0,0 @@
1
- import type { Point3D } from '../../../types';
2
- import type { CommonDxfEntity } from '../shared';
3
- import { TextHorizontalAlign, TextVerticalAlign } from './consts';
4
- export interface TextEntity extends CommonDxfEntity {
5
- type: 'TEXT';
6
- subclassMarker: 'AcDbText';
7
- text: string;
8
- thickness: number;
9
- startPoint: Point3D;
10
- endPoint: Point3D;
11
- textHeight: number;
12
- rotation: number;
13
- xScale: number;
14
- obliqueAngle: number;
15
- styleName: string;
16
- generationFlag: number;
17
- halign: TextHorizontalAlign;
18
- valign: TextVerticalAlign;
19
- extrusionDirection: Point3D;
20
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/text/types.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- export declare enum VertexFlag {
2
- CREATED_BY_CURVE_FIT = 1,
3
- TANGENT_DEFINED = 2,
4
- NOT_USED = 4,
5
- CREATED_BY_SPLINE_FIT = 8,
6
- SPLINE_CONTROL_POINT = 16,
7
- FOR_POLYLINE = 32,
8
- FOR_POLYGON = 64,
9
- POLYFACE = 128
10
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VertexFlag = void 0;
4
- var VertexFlag;
5
- (function (VertexFlag) {
6
- VertexFlag[VertexFlag["CREATED_BY_CURVE_FIT"] = 1] = "CREATED_BY_CURVE_FIT";
7
- VertexFlag[VertexFlag["TANGENT_DEFINED"] = 2] = "TANGENT_DEFINED";
8
- VertexFlag[VertexFlag["NOT_USED"] = 4] = "NOT_USED";
9
- VertexFlag[VertexFlag["CREATED_BY_SPLINE_FIT"] = 8] = "CREATED_BY_SPLINE_FIT";
10
- VertexFlag[VertexFlag["SPLINE_CONTROL_POINT"] = 16] = "SPLINE_CONTROL_POINT";
11
- VertexFlag[VertexFlag["FOR_POLYLINE"] = 32] = "FOR_POLYLINE";
12
- VertexFlag[VertexFlag["FOR_POLYGON"] = 64] = "FOR_POLYGON";
13
- VertexFlag[VertexFlag["POLYFACE"] = 128] = "POLYFACE";
14
- })(VertexFlag || (exports.VertexFlag = VertexFlag = {}));
15
- //# sourceMappingURL=consts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/parser/entities/vertex/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,UASX;AATD,WAAY,UAAU;IAClB,2EAAwB,CAAA;IACxB,iEAAmB,CAAA;IACnB,mDAAY,CAAA;IACZ,6EAAyB,CAAA;IACzB,4EAAyB,CAAA;IACzB,4DAAiB,CAAA;IACjB,0DAAgB,CAAA;IAChB,qDAAc,CAAA;AAClB,CAAC,EATW,UAAU,0BAAV,UAAU,QASrB"}
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './consts';
3
- export * from './parser';
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/vertex/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
@@ -1,8 +0,0 @@
1
- import type DxfArrayScanner from '../../DxfArrayScanner';
2
- import type { ScannerGroup } from '../../DxfArrayScanner';
3
- import { VertexEntity } from './types';
4
- export declare class VertexParser {
5
- static ForEntityName: string;
6
- private parser;
7
- parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): VertexEntity;
8
- }
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VertexParser = void 0;
4
- const utils_1 = require("../../../utils");
5
- const parserGenerator_1 = require("../../shared/parserGenerator");
6
- const shared_1 = require("../shared");
7
- const DefaultVertexEntity = {
8
- startWidth: 0,
9
- endWidth: 0,
10
- bulge: 0,
11
- };
12
- const VertextParserSnippets = [
13
- {
14
- code: 91,
15
- name: 'id',
16
- parser: parserGenerator_1.Identity,
17
- },
18
- {
19
- code: [...(0, utils_1.generateIntegers)(71, 75)],
20
- name: 'faces',
21
- isMultiple: true, // isMultiple이 참이면 code가 달라도 동일한 곳에 넣어줌
22
- parser: parserGenerator_1.Identity,
23
- },
24
- {
25
- code: 50,
26
- name: 'tangentDirection',
27
- parser: parserGenerator_1.Identity,
28
- },
29
- {
30
- code: 70,
31
- name: 'flag',
32
- parser: parserGenerator_1.Identity,
33
- },
34
- {
35
- code: 42,
36
- name: 'bulge',
37
- parser: parserGenerator_1.Identity,
38
- },
39
- {
40
- code: 41,
41
- name: 'endWidth',
42
- parser: parserGenerator_1.Identity,
43
- },
44
- {
45
- code: 40,
46
- name: 'startWidth',
47
- parser: parserGenerator_1.Identity,
48
- },
49
- {
50
- code: 30,
51
- name: 'z',
52
- parser: parserGenerator_1.Identity,
53
- },
54
- {
55
- code: 20,
56
- name: 'y',
57
- parser: parserGenerator_1.Identity,
58
- },
59
- {
60
- code: 10,
61
- name: 'x',
62
- parser: parserGenerator_1.Identity,
63
- },
64
- {
65
- code: 100,
66
- name: 'subclassMarker',
67
- parser: parserGenerator_1.Identity,
68
- },
69
- {
70
- code: 100, // skip for AcDbVertex
71
- },
72
- ...shared_1.CommonEntitySnippets,
73
- ];
74
- class VertexParser {
75
- constructor() {
76
- this.parser = (0, parserGenerator_1.createParser)(VertextParserSnippets, DefaultVertexEntity);
77
- }
78
- parseEntity(scanner, curr) {
79
- const entity = {};
80
- this.parser(curr, scanner, entity);
81
- return entity;
82
- }
83
- }
84
- exports.VertexParser = VertexParser;
85
- VertexParser.ForEntityName = 'VERTEX';
86
- //# sourceMappingURL=parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/vertex/parser.ts"],"names":[],"mappings":";;;AAAA,0CAAkD;AAGlD,kEAIsC;AACtC,sCAAiD;AAGjD,MAAM,mBAAmB,GAAG;IACxB,UAAU,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,CAAC;CACX,CAAC;AAEF,MAAM,qBAAqB,GAAuB;IAC9C;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,CAAC,GAAG,IAAA,wBAAgB,EAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACnC,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,IAAI,EAAE,uCAAuC;QACzD,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,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,OAAO;QACb,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG,EAAE,sBAAsB;KACpC;IACD,GAAG,6BAAoB;CAC1B,CAAC;AAEF,MAAa,YAAY;IAAzB;QAEY,WAAM,GAAG,IAAA,8BAAY,EAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;IAO9E,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,MAAsB,CAAC;IAClC,CAAC;;AARL,oCASC;AARU,0BAAa,GAAG,QAAQ,AAAX,CAAY"}