dxf-json 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (468) hide show
  1. package/.github/workflows/npm-publish.yml +1 -1
  2. package/dist/bundle.js +2 -0
  3. package/dist/bundle.js.LICENSE.txt +5 -0
  4. package/dist/consts/block.d.ts +10 -0
  5. package/dist/consts/block.js +22 -0
  6. package/dist/consts/block.js.map +1 -0
  7. package/dist/consts/color.d.ts +5 -0
  8. package/dist/consts/color.js +10 -0
  9. package/dist/consts/color.js.map +1 -0
  10. package/dist/consts/config.d.ts +2 -0
  11. package/dist/consts/config.js +6 -0
  12. package/dist/consts/config.js.map +1 -0
  13. package/dist/consts/dimension.d.ts +61 -0
  14. package/dist/consts/dimension.js +74 -0
  15. package/dist/consts/dimension.js.map +1 -0
  16. package/dist/consts/hatch.d.ts +44 -0
  17. package/dist/consts/hatch.js +57 -0
  18. package/dist/consts/hatch.js.map +1 -0
  19. package/dist/consts/header.d.ts +9 -0
  20. package/dist/consts/header.js +13 -0
  21. package/dist/consts/header.js.map +1 -0
  22. package/dist/consts/index.d.ts +9 -0
  23. package/dist/consts/index.js +26 -0
  24. package/dist/consts/index.js.map +1 -0
  25. package/dist/consts/lineweight.d.ts +5 -0
  26. package/dist/consts/lineweight.js +10 -0
  27. package/dist/consts/lineweight.js.map +1 -0
  28. package/dist/consts/measurement.d.ts +4 -0
  29. package/dist/consts/measurement.js +9 -0
  30. package/dist/consts/measurement.js.map +1 -0
  31. package/dist/consts/obscuredLineTypes.d.ts +21 -0
  32. package/dist/consts/obscuredLineTypes.js +26 -0
  33. package/dist/consts/obscuredLineTypes.js.map +1 -0
  34. package/dist/consts/scene.d.ts +2 -0
  35. package/dist/consts/scene.js +6 -0
  36. package/dist/consts/scene.js.map +1 -0
  37. package/dist/consts/viewport.d.ts +56 -0
  38. package/dist/consts/viewport.js +67 -0
  39. package/dist/consts/viewport.js.map +1 -0
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +9 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/parser/AutoCadColorIndex.d.ts +8 -0
  44. package/dist/parser/AutoCadColorIndex.js +267 -0
  45. package/dist/parser/AutoCadColorIndex.js.map +1 -0
  46. package/dist/parser/DxfArrayScanner.d.ts +38 -0
  47. package/dist/parser/DxfArrayScanner.js +159 -0
  48. package/dist/parser/DxfArrayScanner.js.map +1 -0
  49. package/dist/parser/DxfParser.d.ts +9 -0
  50. package/dist/parser/DxfParser.js +108 -0
  51. package/dist/parser/DxfParser.js.map +1 -0
  52. package/dist/parser/ParseHelpers.d.ts +21 -0
  53. package/dist/parser/ParseHelpers.js +129 -0
  54. package/dist/parser/ParseHelpers.js.map +1 -0
  55. package/dist/parser/blocks/blocks.test.d.ts +1 -0
  56. package/dist/parser/blocks/blocks.test.js +86 -0
  57. package/dist/parser/blocks/blocks.test.js.map +1 -0
  58. package/dist/parser/blocks/index.d.ts +4 -0
  59. package/dist/parser/blocks/index.js +83 -0
  60. package/dist/parser/blocks/index.js.map +1 -0
  61. package/dist/parser/blocks/types.d.ts +14 -0
  62. package/dist/parser/blocks/types.js +3 -0
  63. package/dist/parser/blocks/types.js.map +1 -0
  64. package/dist/parser/entities/3dface.js +106 -0
  65. package/dist/parser/entities/3dface.js.map +1 -0
  66. package/dist/parser/entities/arc/index.d.ts +2 -0
  67. package/dist/parser/entities/arc/index.js +19 -0
  68. package/dist/parser/entities/arc/index.js.map +1 -0
  69. package/dist/parser/entities/arc/parser.d.ts +7 -0
  70. package/dist/parser/entities/arc/parser.js +63 -0
  71. package/dist/parser/entities/arc/parser.js.map +1 -0
  72. package/dist/parser/entities/arc/types.d.ts +12 -0
  73. package/dist/parser/entities/arc/types.js +3 -0
  74. package/dist/parser/entities/arc/types.js.map +1 -0
  75. package/dist/parser/entities/attdef/consts.d.ts +11 -0
  76. package/dist/parser/entities/attdef/consts.js +17 -0
  77. package/dist/parser/entities/attdef/consts.js.map +1 -0
  78. package/dist/parser/entities/attdef/index.d.ts +3 -0
  79. package/dist/parser/entities/attdef/index.js +20 -0
  80. package/dist/parser/entities/attdef/index.js.map +1 -0
  81. package/dist/parser/entities/attdef/parser.d.ts +8 -0
  82. package/dist/parser/entities/attdef/parser.js +108 -0
  83. package/dist/parser/entities/attdef/parser.js.map +1 -0
  84. package/dist/parser/entities/attdef/types.d.ts +17 -0
  85. package/dist/parser/entities/attdef/types.js +3 -0
  86. package/dist/parser/entities/attdef/types.js.map +1 -0
  87. package/dist/parser/entities/attribute/consts.d.ts +6 -0
  88. package/dist/parser/entities/attribute/consts.js +11 -0
  89. package/dist/parser/entities/attribute/consts.js.map +1 -0
  90. package/dist/parser/entities/attribute/index.d.ts +3 -0
  91. package/dist/parser/entities/attribute/index.js +20 -0
  92. package/dist/parser/entities/attribute/index.js.map +1 -0
  93. package/dist/parser/entities/attribute/parser.d.ts +8 -0
  94. package/dist/parser/entities/attribute/parser.js +185 -0
  95. package/dist/parser/entities/attribute/parser.js.map +1 -0
  96. package/dist/parser/entities/attribute/types.d.ts +30 -0
  97. package/dist/parser/entities/attribute/types.js +3 -0
  98. package/dist/parser/entities/attribute/types.js.map +1 -0
  99. package/dist/parser/entities/circle/index.d.ts +2 -0
  100. package/dist/parser/entities/circle/index.js +19 -0
  101. package/dist/parser/entities/circle/index.js.map +1 -0
  102. package/dist/parser/entities/circle/parser.d.ts +8 -0
  103. package/dist/parser/entities/circle/parser.js +50 -0
  104. package/dist/parser/entities/circle/parser.js.map +1 -0
  105. package/dist/parser/entities/circle/types.d.ts +10 -0
  106. package/dist/parser/entities/circle/types.js +3 -0
  107. package/dist/parser/entities/circle/types.js.map +1 -0
  108. package/dist/parser/entities/dimension/common.d.ts +6 -0
  109. package/dist/parser/entities/dimension/common.js +122 -0
  110. package/dist/parser/entities/dimension/common.js.map +1 -0
  111. package/dist/parser/entities/dimension/index.d.ts +6 -0
  112. package/dist/parser/entities/dimension/index.js +21 -0
  113. package/dist/parser/entities/dimension/index.js.map +1 -0
  114. package/dist/parser/entities/dimension/types.d.ts +48 -0
  115. package/dist/parser/entities/dimension/types.js +3 -0
  116. package/dist/parser/entities/dimension/types.js.map +1 -0
  117. package/dist/parser/entities/ellipse/index.d.ts +2 -0
  118. package/dist/parser/entities/ellipse/index.js +19 -0
  119. package/dist/parser/entities/ellipse/index.js.map +1 -0
  120. package/dist/parser/entities/ellipse/parser.d.ts +7 -0
  121. package/dist/parser/entities/ellipse/parser.js +59 -0
  122. package/dist/parser/entities/ellipse/parser.js.map +1 -0
  123. package/dist/parser/entities/ellipse/types.d.ts +12 -0
  124. package/dist/parser/entities/ellipse/types.js +3 -0
  125. package/dist/parser/entities/ellipse/types.js.map +1 -0
  126. package/dist/parser/entities/entities.test.d.ts +1 -0
  127. package/dist/parser/entities/entities.test.js +81 -0
  128. package/dist/parser/entities/entities.test.js.map +1 -0
  129. package/dist/parser/entities/hatch/boundaryPathData/edge.d.ts +6 -0
  130. package/dist/parser/entities/hatch/boundaryPathData/edge.js +178 -0
  131. package/dist/parser/entities/hatch/boundaryPathData/edge.js.map +1 -0
  132. package/dist/parser/entities/hatch/boundaryPathData/index.d.ts +5 -0
  133. package/dist/parser/entities/hatch/boundaryPathData/index.js +23 -0
  134. package/dist/parser/entities/hatch/boundaryPathData/index.js.map +1 -0
  135. package/dist/parser/entities/hatch/boundaryPathData/polyline.d.ts +2 -0
  136. package/dist/parser/entities/hatch/boundaryPathData/polyline.js +41 -0
  137. package/dist/parser/entities/hatch/boundaryPathData/polyline.js.map +1 -0
  138. package/dist/parser/entities/hatch/boundaryPathData/shared.d.ts +2 -0
  139. package/dist/parser/entities/hatch/boundaryPathData/shared.js +19 -0
  140. package/dist/parser/entities/hatch/boundaryPathData/shared.js.map +1 -0
  141. package/dist/parser/entities/hatch/index.d.ts +8 -0
  142. package/dist/parser/entities/hatch/index.js +183 -0
  143. package/dist/parser/entities/hatch/index.js.map +1 -0
  144. package/dist/parser/entities/hatch/patternData.d.ts +3 -0
  145. package/dist/parser/entities/hatch/patternData.js +54 -0
  146. package/dist/parser/entities/hatch/patternData.js.map +1 -0
  147. package/dist/parser/entities/hatch/types/boundaryPath.d.ts +59 -0
  148. package/dist/parser/entities/hatch/types/boundaryPath.js +3 -0
  149. package/dist/parser/entities/hatch/types/boundaryPath.js.map +1 -0
  150. package/dist/parser/entities/hatch/types/definitionLine.d.ts +8 -0
  151. package/dist/parser/entities/hatch/types/definitionLine.js +3 -0
  152. package/dist/parser/entities/hatch/types/definitionLine.js.map +1 -0
  153. package/dist/parser/entities/hatch/types/hatch.d.ts +38 -0
  154. package/dist/parser/entities/hatch/types/hatch.js +3 -0
  155. package/dist/parser/entities/hatch/types/hatch.js.map +1 -0
  156. package/dist/parser/entities/hatch/types/index.d.ts +3 -0
  157. package/dist/parser/entities/hatch/types/index.js +20 -0
  158. package/dist/parser/entities/hatch/types/index.js.map +1 -0
  159. package/dist/parser/entities/index.d.ts +8 -0
  160. package/dist/parser/entities/index.js +81 -0
  161. package/dist/parser/entities/index.js.map +1 -0
  162. package/dist/parser/entities/insert/index.d.ts +2 -0
  163. package/dist/parser/entities/insert/index.js +19 -0
  164. package/dist/parser/entities/insert/index.js.map +1 -0
  165. package/dist/parser/entities/insert/parser.d.ts +8 -0
  166. package/dist/parser/entities/insert/parser.js +97 -0
  167. package/dist/parser/entities/insert/parser.js.map +1 -0
  168. package/dist/parser/entities/insert/types.d.ts +18 -0
  169. package/dist/parser/entities/insert/types.js +3 -0
  170. package/dist/parser/entities/insert/types.js.map +1 -0
  171. package/dist/parser/entities/leader/consts.d.ts +6 -0
  172. package/dist/parser/entities/leader/consts.js +11 -0
  173. package/dist/parser/entities/leader/consts.js.map +1 -0
  174. package/dist/parser/entities/leader/index.d.ts +3 -0
  175. package/dist/parser/entities/leader/index.js +20 -0
  176. package/dist/parser/entities/leader/index.js.map +1 -0
  177. package/dist/parser/entities/leader/parser.d.ts +8 -0
  178. package/dist/parser/entities/leader/parser.js +110 -0
  179. package/dist/parser/entities/leader/parser.js.map +1 -0
  180. package/dist/parser/entities/leader/types.d.ts +23 -0
  181. package/dist/parser/entities/leader/types.js +3 -0
  182. package/dist/parser/entities/leader/types.js.map +1 -0
  183. package/dist/parser/entities/line/index.d.ts +2 -0
  184. package/dist/parser/entities/line/index.js +19 -0
  185. package/dist/parser/entities/line/index.js.map +1 -0
  186. package/dist/parser/entities/line/parser.d.ts +8 -0
  187. package/dist/parser/entities/line/parser.js +50 -0
  188. package/dist/parser/entities/line/parser.js.map +1 -0
  189. package/dist/parser/entities/line/types.d.ts +10 -0
  190. package/dist/parser/entities/line/types.js +3 -0
  191. package/dist/parser/entities/line/types.js.map +1 -0
  192. package/dist/parser/entities/lwpolyline/consts.d.ts +4 -0
  193. package/dist/parser/entities/lwpolyline/consts.js +9 -0
  194. package/dist/parser/entities/lwpolyline/consts.js.map +1 -0
  195. package/dist/parser/entities/lwpolyline/index.d.ts +3 -0
  196. package/dist/parser/entities/lwpolyline/index.js +20 -0
  197. package/dist/parser/entities/lwpolyline/index.js.map +1 -0
  198. package/dist/parser/entities/lwpolyline/parser.d.ts +7 -0
  199. package/dist/parser/entities/lwpolyline/parser.js +105 -0
  200. package/dist/parser/entities/lwpolyline/parser.js.map +1 -0
  201. package/dist/parser/entities/lwpolyline/types.d.ts +19 -0
  202. package/dist/parser/entities/lwpolyline/types.js +3 -0
  203. package/dist/parser/entities/lwpolyline/types.js.map +1 -0
  204. package/dist/parser/entities/mtext/consts.d.ts +5 -0
  205. package/dist/parser/entities/mtext/consts.js +10 -0
  206. package/dist/parser/entities/mtext/consts.js.map +1 -0
  207. package/dist/parser/entities/mtext/index.d.ts +3 -0
  208. package/dist/parser/entities/mtext/index.js +20 -0
  209. package/dist/parser/entities/mtext/index.js.map +1 -0
  210. package/dist/parser/entities/mtext/parser.d.ts +10 -0
  211. package/dist/parser/entities/mtext/parser.js +188 -0
  212. package/dist/parser/entities/mtext/parser.js.map +1 -0
  213. package/dist/parser/entities/mtext/types.d.ts +33 -0
  214. package/dist/parser/entities/mtext/types.js +3 -0
  215. package/dist/parser/entities/mtext/types.js.map +1 -0
  216. package/dist/parser/entities/point/index.d.ts +2 -0
  217. package/dist/parser/entities/point/index.js +19 -0
  218. package/dist/parser/entities/point/index.js.map +1 -0
  219. package/dist/parser/entities/point/parser.d.ts +6 -0
  220. package/dist/parser/entities/point/parser.js +54 -0
  221. package/dist/parser/entities/point/parser.js.map +1 -0
  222. package/dist/parser/entities/point/types.d.ts +9 -0
  223. package/dist/parser/entities/point/types.js +3 -0
  224. package/dist/parser/entities/point/types.js.map +1 -0
  225. package/dist/parser/entities/polyline/consts.d.ts +16 -0
  226. package/dist/parser/entities/polyline/consts.js +22 -0
  227. package/dist/parser/entities/polyline/consts.js.map +1 -0
  228. package/dist/parser/entities/polyline/index.d.ts +3 -0
  229. package/dist/parser/entities/polyline/index.js +20 -0
  230. package/dist/parser/entities/polyline/index.js.map +1 -0
  231. package/dist/parser/entities/polyline/parser.d.ts +7 -0
  232. package/dist/parser/entities/polyline/parser.js +118 -0
  233. package/dist/parser/entities/polyline/parser.js.map +1 -0
  234. package/dist/parser/entities/polyline/types.d.ts +19 -0
  235. package/dist/parser/entities/polyline/types.js +3 -0
  236. package/dist/parser/entities/polyline/types.js.map +1 -0
  237. package/dist/parser/entities/section/index.d.ts +2 -0
  238. package/dist/parser/entities/section/index.js +19 -0
  239. package/dist/parser/entities/section/index.js.map +1 -0
  240. package/dist/parser/entities/section/parser.d.ts +7 -0
  241. package/dist/parser/entities/section/parser.js +97 -0
  242. package/dist/parser/entities/section/parser.js.map +1 -0
  243. package/dist/parser/entities/section/types.d.ts +19 -0
  244. package/dist/parser/entities/section/types.js +3 -0
  245. package/dist/parser/entities/section/types.js.map +1 -0
  246. package/dist/parser/entities/shared.d.ts +35 -0
  247. package/dist/parser/entities/shared.js +136 -0
  248. package/dist/parser/entities/shared.js.map +1 -0
  249. package/dist/parser/entities/solid/index.d.ts +2 -0
  250. package/dist/parser/entities/solid/index.js +19 -0
  251. package/dist/parser/entities/solid/index.js.map +1 -0
  252. package/dist/parser/entities/solid/parser.d.ts +8 -0
  253. package/dist/parser/entities/solid/parser.js +48 -0
  254. package/dist/parser/entities/solid/parser.js.map +1 -0
  255. package/dist/parser/entities/solid/types.d.ts +9 -0
  256. package/dist/parser/entities/solid/types.js +3 -0
  257. package/dist/parser/entities/solid/types.js.map +1 -0
  258. package/dist/parser/entities/spline/consts.d.ts +8 -0
  259. package/dist/parser/entities/spline/consts.js +13 -0
  260. package/dist/parser/entities/spline/consts.js.map +1 -0
  261. package/dist/parser/entities/spline/index.d.ts +3 -0
  262. package/dist/parser/entities/spline/index.js +20 -0
  263. package/dist/parser/entities/spline/index.js.map +1 -0
  264. package/dist/parser/entities/spline/parser.d.ts +8 -0
  265. package/dist/parser/entities/spline/parser.js +113 -0
  266. package/dist/parser/entities/spline/parser.js.map +1 -0
  267. package/dist/parser/entities/spline/types.d.ts +21 -0
  268. package/dist/parser/entities/spline/types.js +3 -0
  269. package/dist/parser/entities/spline/types.js.map +1 -0
  270. package/dist/parser/entities/text/consts.d.ts +19 -0
  271. package/dist/parser/entities/text/consts.js +26 -0
  272. package/dist/parser/entities/text/consts.js.map +1 -0
  273. package/dist/parser/entities/text/index.d.ts +3 -0
  274. package/dist/parser/entities/text/index.js +20 -0
  275. package/dist/parser/entities/text/index.js.map +1 -0
  276. package/dist/parser/entities/text/parser.d.ts +26 -0
  277. package/dist/parser/entities/text/parser.js +112 -0
  278. package/dist/parser/entities/text/parser.js.map +1 -0
  279. package/dist/parser/entities/text/types.d.ts +20 -0
  280. package/dist/parser/entities/text/types.js +3 -0
  281. package/dist/parser/entities/text/types.js.map +1 -0
  282. package/dist/parser/entities/vertex/consts.d.ts +10 -0
  283. package/dist/parser/entities/vertex/consts.js +15 -0
  284. package/dist/parser/entities/vertex/consts.js.map +1 -0
  285. package/dist/parser/entities/vertex/index.d.ts +3 -0
  286. package/dist/parser/entities/vertex/index.js +20 -0
  287. package/dist/parser/entities/vertex/index.js.map +1 -0
  288. package/dist/parser/entities/vertex/parser.d.ts +8 -0
  289. package/dist/parser/entities/vertex/parser.js +86 -0
  290. package/dist/parser/entities/vertex/parser.js.map +1 -0
  291. package/dist/parser/entities/vertex/types.d.ts +16 -0
  292. package/dist/parser/entities/vertex/types.js +3 -0
  293. package/dist/parser/entities/vertex/types.js.map +1 -0
  294. package/dist/parser/entities/viewport/index.d.ts +5 -0
  295. package/dist/parser/entities/viewport/index.js +195 -0
  296. package/dist/parser/entities/viewport/index.js.map +1 -0
  297. package/dist/parser/entities/viewport/types.d.ts +51 -0
  298. package/dist/parser/entities/viewport/types.js +3 -0
  299. package/dist/parser/entities/viewport/types.js.map +1 -0
  300. package/dist/parser/filterDummyBlocks.d.ts +2 -0
  301. package/dist/parser/filterDummyBlocks.js +37 -0
  302. package/dist/parser/filterDummyBlocks.js.map +1 -0
  303. package/dist/parser/header/index.d.ts +3 -0
  304. package/dist/parser/header/index.js +32 -0
  305. package/dist/parser/header/index.js.map +1 -0
  306. package/dist/parser/objects/common.d.ts +8 -0
  307. package/dist/parser/objects/common.js +51 -0
  308. package/dist/parser/objects/common.js.map +1 -0
  309. package/dist/parser/objects/dictionary.d.ts +20 -0
  310. package/dist/parser/objects/dictionary.js +50 -0
  311. package/dist/parser/objects/dictionary.js.map +1 -0
  312. package/dist/parser/objects/index.d.ts +6 -0
  313. package/dist/parser/objects/index.js +43 -0
  314. package/dist/parser/objects/index.js.map +1 -0
  315. package/dist/parser/objects/layout.d.ts +30 -0
  316. package/dist/parser/objects/layout.js +110 -0
  317. package/dist/parser/objects/layout.js.map +1 -0
  318. package/dist/parser/objects/plotSettings.d.ts +64 -0
  319. package/dist/parser/objects/plotSettings.js +198 -0
  320. package/dist/parser/objects/plotSettings.js.map +1 -0
  321. package/dist/parser/objects/treefy.d.ts +2 -0
  322. package/dist/parser/objects/treefy.js +37 -0
  323. package/dist/parser/objects/treefy.js.map +1 -0
  324. package/dist/parser/objects/types.d.ts +15 -0
  325. package/dist/parser/objects/types.js +3 -0
  326. package/dist/parser/objects/types.js.map +1 -0
  327. package/dist/parser/shared/index.d.ts +7 -0
  328. package/dist/parser/shared/index.js +22 -0
  329. package/dist/parser/shared/index.js.map +1 -0
  330. package/dist/parser/shared/parsePoint.d.ts +7 -0
  331. package/dist/parser/shared/parsePoint.js +33 -0
  332. package/dist/parser/shared/parsePoint.js.map +1 -0
  333. package/dist/parser/shared/parserGenerator.d.ts +15 -0
  334. package/dist/parser/shared/parserGenerator.js +114 -0
  335. package/dist/parser/shared/parserGenerator.js.map +1 -0
  336. package/dist/parser/shared/parserGenerator.test.d.ts +1 -0
  337. package/dist/parser/shared/parserGenerator.test.js +153 -0
  338. package/dist/parser/shared/parserGenerator.test.js.map +1 -0
  339. package/dist/parser/shared/xdata/index.d.ts +3 -0
  340. package/dist/parser/shared/xdata/index.js +20 -0
  341. package/dist/parser/shared/xdata/index.js.map +1 -0
  342. package/dist/parser/shared/xdata/interpreter.d.ts +20 -0
  343. package/dist/parser/shared/xdata/interpreter.js +43 -0
  344. package/dist/parser/shared/xdata/interpreter.js.map +1 -0
  345. package/dist/parser/shared/xdata/interpreter.test.d.ts +1 -0
  346. package/dist/parser/shared/xdata/interpreter.test.js +83 -0
  347. package/dist/parser/shared/xdata/interpreter.test.js.map +1 -0
  348. package/dist/parser/shared/xdata/parser.d.ts +6 -0
  349. package/dist/parser/shared/xdata/parser.js +133 -0
  350. package/dist/parser/shared/xdata/parser.js.map +1 -0
  351. package/dist/parser/shared/xdata/parser.test.d.ts +1 -0
  352. package/dist/parser/shared/xdata/parser.test.js +64 -0
  353. package/dist/parser/shared/xdata/parser.test.js.map +1 -0
  354. package/dist/parser/shared/xdata/types.d.ts +9 -0
  355. package/dist/parser/shared/xdata/types.js +3 -0
  356. package/dist/parser/shared/xdata/types.js.map +1 -0
  357. package/dist/parser/tables/blockRecord/index.d.ts +2 -0
  358. package/dist/parser/tables/blockRecord/index.js +19 -0
  359. package/dist/parser/tables/blockRecord/index.js.map +1 -0
  360. package/dist/parser/tables/blockRecord/parser.d.ts +1 -0
  361. package/dist/parser/tables/blockRecord/parser.js +45 -0
  362. package/dist/parser/tables/blockRecord/parser.js.map +1 -0
  363. package/dist/parser/tables/blockRecord/types.d.ts +10 -0
  364. package/dist/parser/tables/blockRecord/types.js +3 -0
  365. package/dist/parser/tables/blockRecord/types.js.map +1 -0
  366. package/dist/parser/tables/dimStyle/consts.d.ts +2 -0
  367. package/dist/parser/tables/dimStyle/consts.js +424 -0
  368. package/dist/parser/tables/dimStyle/consts.js.map +1 -0
  369. package/dist/parser/tables/dimStyle/index.d.ts +3 -0
  370. package/dist/parser/tables/dimStyle/index.js +20 -0
  371. package/dist/parser/tables/dimStyle/index.js.map +1 -0
  372. package/dist/parser/tables/dimStyle/parser.d.ts +1 -0
  373. package/dist/parser/tables/dimStyle/parser.js +35 -0
  374. package/dist/parser/tables/dimStyle/parser.js.map +1 -0
  375. package/dist/parser/tables/dimStyle/types.d.ts +83 -0
  376. package/dist/parser/tables/dimStyle/types.js +3 -0
  377. package/dist/parser/tables/dimStyle/types.js.map +1 -0
  378. package/dist/parser/tables/index.d.ts +2 -0
  379. package/dist/parser/tables/index.js +19 -0
  380. package/dist/parser/tables/index.js.map +1 -0
  381. package/dist/parser/tables/layer/index.d.ts +2 -0
  382. package/dist/parser/tables/layer/index.js +19 -0
  383. package/dist/parser/tables/layer/index.js.map +1 -0
  384. package/dist/parser/tables/layer/parser.d.ts +1 -0
  385. package/dist/parser/tables/layer/parser.js +55 -0
  386. package/dist/parser/tables/layer/parser.js.map +1 -0
  387. package/dist/parser/tables/layer/types.d.ts +13 -0
  388. package/dist/parser/tables/layer/types.js +3 -0
  389. package/dist/parser/tables/layer/types.js.map +1 -0
  390. package/dist/parser/tables/ltype/consts.d.ts +6 -0
  391. package/dist/parser/tables/ltype/consts.js +11 -0
  392. package/dist/parser/tables/ltype/consts.js.map +1 -0
  393. package/dist/parser/tables/ltype/index.d.ts +3 -0
  394. package/dist/parser/tables/ltype/index.js +20 -0
  395. package/dist/parser/tables/ltype/index.js.map +1 -0
  396. package/dist/parser/tables/ltype/parser.d.ts +1 -0
  397. package/dist/parser/tables/ltype/parser.js +105 -0
  398. package/dist/parser/tables/ltype/parser.js.map +1 -0
  399. package/dist/parser/tables/ltype/types.d.ts +21 -0
  400. package/dist/parser/tables/ltype/types.js +3 -0
  401. package/dist/parser/tables/ltype/types.js.map +1 -0
  402. package/dist/parser/tables/parser.d.ts +2 -0
  403. package/dist/parser/tables/parser.js +90 -0
  404. package/dist/parser/tables/parser.js.map +1 -0
  405. package/dist/parser/tables/shared.d.ts +2 -0
  406. package/dist/parser/tables/shared.js +32 -0
  407. package/dist/parser/tables/shared.js.map +1 -0
  408. package/dist/parser/tables/style/index.d.ts +2 -0
  409. package/dist/parser/tables/style/index.js +19 -0
  410. package/dist/parser/tables/style/index.js.map +1 -0
  411. package/dist/parser/tables/style/parser.d.ts +1 -0
  412. package/dist/parser/tables/style/parser.js +68 -0
  413. package/dist/parser/tables/style/parser.js.map +1 -0
  414. package/dist/parser/tables/style/types.d.ts +14 -0
  415. package/dist/parser/tables/style/types.js +3 -0
  416. package/dist/parser/tables/style/types.js.map +1 -0
  417. package/dist/parser/tables/types.d.ts +14 -0
  418. package/dist/parser/tables/types.js +3 -0
  419. package/dist/parser/tables/types.js.map +1 -0
  420. package/dist/parser/tables/vport/index.d.ts +2 -0
  421. package/dist/parser/tables/vport/index.js +19 -0
  422. package/dist/parser/tables/vport/index.js.map +1 -0
  423. package/dist/parser/tables/vport/parser.d.ts +1 -0
  424. package/dist/parser/tables/vport/parser.js +201 -0
  425. package/dist/parser/tables/vport/parser.js.map +1 -0
  426. package/dist/parser/tables/vport/types.d.ts +43 -0
  427. package/dist/parser/tables/vport/types.js +3 -0
  428. package/dist/parser/tables/vport/types.js.map +1 -0
  429. package/dist/parser/types.d.ts +29 -0
  430. package/dist/parser/types.js +3 -0
  431. package/dist/parser/types.js.map +1 -0
  432. package/dist/types/color.d.ts +3 -0
  433. package/dist/types/color.js +3 -0
  434. package/dist/types/color.js.map +1 -0
  435. package/dist/types/dxfHeader.d.ts +16 -0
  436. package/dist/types/dxfHeader.js +3 -0
  437. package/dist/types/dxfHeader.js.map +1 -0
  438. package/dist/types/entity.d.ts +6 -0
  439. package/dist/types/entity.js +3 -0
  440. package/dist/types/entity.js.map +1 -0
  441. package/dist/types/index.d.ts +24 -0
  442. package/dist/types/index.js +20 -0
  443. package/dist/types/index.js.map +1 -0
  444. package/dist/utils/binarySearch.d.ts +1 -0
  445. package/dist/utils/binarySearch.js +23 -0
  446. package/dist/utils/binarySearch.js.map +1 -0
  447. package/dist/utils/disjointSet.d.ts +6 -0
  448. package/dist/utils/disjointSet.js +52 -0
  449. package/dist/utils/disjointSet.js.map +1 -0
  450. package/dist/utils/flooding.d.ts +8 -0
  451. package/dist/utils/flooding.js +26 -0
  452. package/dist/utils/flooding.js.map +1 -0
  453. package/dist/utils/functional.d.ts +17 -0
  454. package/dist/utils/functional.js +111 -0
  455. package/dist/utils/functional.js.map +1 -0
  456. package/dist/utils/graph.d.ts +19 -0
  457. package/dist/utils/graph.js +47 -0
  458. package/dist/utils/graph.js.map +1 -0
  459. package/dist/utils/index.d.ts +30 -0
  460. package/dist/utils/index.js +106 -0
  461. package/dist/utils/index.js.map +1 -0
  462. package/dist/utils/queue.d.ts +19 -0
  463. package/dist/utils/queue.js +71 -0
  464. package/dist/utils/queue.js.map +1 -0
  465. package/dist/utils/triangle.d.ts +2 -0
  466. package/dist/utils/triangle.js +19 -0
  467. package/dist/utils/triangle.js.map +1 -0
  468. package/package.json +2 -2
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2010-2023 Three.js Authors
4
+ * SPDX-License-Identifier: MIT
5
+ */
@@ -0,0 +1,10 @@
1
+ export declare enum BlockTypeFlag {
2
+ None = 0,
3
+ Anonymous = 1,
4
+ NonConstant = 2,
5
+ Xref = 4,
6
+ XrefOverlay = 8,
7
+ ExternallyDependent = 16,
8
+ ResolvedOrDependent = 32,
9
+ ReferencedXref = 64
10
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlockTypeFlag = void 0;
4
+ var BlockTypeFlag;
5
+ (function (BlockTypeFlag) {
6
+ BlockTypeFlag[BlockTypeFlag["None"] = 0] = "None";
7
+ // anonymous block generated by hatching, associative dimensioning,
8
+ // other internal operations, or an application
9
+ BlockTypeFlag[BlockTypeFlag["Anonymous"] = 1] = "Anonymous";
10
+ // this bit is not set if the block has any attribute definitions that
11
+ // are constant, or has no attribute definitions at all
12
+ BlockTypeFlag[BlockTypeFlag["NonConstant"] = 2] = "NonConstant";
13
+ // external referenced
14
+ BlockTypeFlag[BlockTypeFlag["Xref"] = 4] = "Xref";
15
+ BlockTypeFlag[BlockTypeFlag["XrefOverlay"] = 8] = "XrefOverlay";
16
+ BlockTypeFlag[BlockTypeFlag["ExternallyDependent"] = 16] = "ExternallyDependent";
17
+ // resolved external reference, or dependent of an external reference
18
+ BlockTypeFlag[BlockTypeFlag["ResolvedOrDependent"] = 32] = "ResolvedOrDependent";
19
+ // referenced external reference
20
+ BlockTypeFlag[BlockTypeFlag["ReferencedXref"] = 64] = "ReferencedXref";
21
+ })(BlockTypeFlag || (exports.BlockTypeFlag = BlockTypeFlag = {}));
22
+ //# sourceMappingURL=block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.js","sourceRoot":"","sources":["../../src/consts/block.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAqBX;AArBD,WAAY,aAAa;IACrB,iDAAQ,CAAA;IAER,mEAAmE;IACnE,+CAA+C;IAC/C,2DAAa,CAAA;IAEb,sEAAsE;IACtE,uDAAuD;IACvD,+DAAe,CAAA;IAEf,sBAAsB;IACtB,iDAAQ,CAAA;IACR,+DAAe,CAAA;IACf,gFAAwB,CAAA;IAExB,qEAAqE;IACrE,gFAAwB,CAAA;IAExB,gCAAgC;IAChC,sEAAmB,CAAA;AACvB,CAAC,EArBW,aAAa,6BAAb,aAAa,QAqBxB"}
@@ -0,0 +1,5 @@
1
+ export declare enum ColorCode {
2
+ BYBLOCK = 0,
3
+ BYLAYER = 256
4
+ }
5
+ export declare const UndeterminedBlockColor = -1;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UndeterminedBlockColor = exports.ColorCode = void 0;
4
+ var ColorCode;
5
+ (function (ColorCode) {
6
+ ColorCode[ColorCode["BYBLOCK"] = 0] = "BYBLOCK";
7
+ ColorCode[ColorCode["BYLAYER"] = 256] = "BYLAYER";
8
+ })(ColorCode || (exports.ColorCode = ColorCode = {}));
9
+ exports.UndeterminedBlockColor = -1;
10
+ //# sourceMappingURL=color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/consts/color.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,+CAAW,CAAA;IACX,iDAAa,CAAA;AACjB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAEY,QAAA,sBAAsB,GAAG,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SPLINE_SUBDIVISION = 4;
2
+ export declare const TESSELLATION_ANGLE: number;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TESSELLATION_ANGLE = exports.SPLINE_SUBDIVISION = void 0;
4
+ exports.SPLINE_SUBDIVISION = 4;
5
+ exports.TESSELLATION_ANGLE = Math.PI / 24;
6
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/consts/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACvB,QAAA,kBAAkB,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC"}
@@ -0,0 +1,61 @@
1
+ export declare enum DimensionType {
2
+ Rotated = 0,
3
+ Aligned = 1,
4
+ Angular = 2,
5
+ Diameter = 3,
6
+ Radius = 4,
7
+ Angular3Point = 5,
8
+ Ordinate = 6,
9
+ ReferenceIsExclusive = 32,
10
+ IsOrdinateXTypeFlag = 64,
11
+ IsCustomTextPositionFlag = 128
12
+ }
13
+ export declare enum AttachmentPoint {
14
+ TopLeft = 1,
15
+ TopCenter = 2,
16
+ TopRight = 3,
17
+ MiddleLeft = 4,
18
+ MiddleCenter = 5,
19
+ MiddleRight = 6,
20
+ BottomLeft = 7,
21
+ BottomCenter = 8,
22
+ BottomRight = 9
23
+ }
24
+ export declare enum DimensionTextLineSpacing {
25
+ AtLeast = 1,
26
+ Exact = 2
27
+ }
28
+ export declare enum DimensionTextVertical {
29
+ Center = 0,
30
+ Above = 1,
31
+ Outside = 2,
32
+ JIS = 3,
33
+ Below = 4
34
+ }
35
+ export declare enum DimensionZeroSuppression {
36
+ Feet = 0,
37
+ None = 1,
38
+ Inch = 2,
39
+ FeetAndInch = 3,
40
+ Leading = 4,
41
+ Trailing = 8,
42
+ LeadingAndTrailing = 12
43
+ }
44
+ export declare enum DimensionZeroSuppressionAngular {
45
+ None = 0,
46
+ Leading = 1,
47
+ Trailing = 2,
48
+ LeadingAndTrailing = 3
49
+ }
50
+ export declare enum DimensionTextHorizontal {
51
+ Center = 0,
52
+ Left = 1,
53
+ Right = 2,
54
+ OverFirst = 3,
55
+ OverSecond = 4
56
+ }
57
+ export declare enum DimensionToleranceTextVertical {
58
+ Bottom = 0,
59
+ Center = 1,
60
+ Top = 2
61
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DimensionToleranceTextVertical = exports.DimensionTextHorizontal = exports.DimensionZeroSuppressionAngular = exports.DimensionZeroSuppression = exports.DimensionTextVertical = exports.DimensionTextLineSpacing = exports.AttachmentPoint = exports.DimensionType = void 0;
4
+ // https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-EDD54EAC-A339-4EBA-AEA6-EC8066505E2B
5
+ var DimensionType;
6
+ (function (DimensionType) {
7
+ DimensionType[DimensionType["Rotated"] = 0] = "Rotated";
8
+ DimensionType[DimensionType["Aligned"] = 1] = "Aligned";
9
+ DimensionType[DimensionType["Angular"] = 2] = "Angular";
10
+ DimensionType[DimensionType["Diameter"] = 3] = "Diameter";
11
+ DimensionType[DimensionType["Radius"] = 4] = "Radius";
12
+ DimensionType[DimensionType["Angular3Point"] = 5] = "Angular3Point";
13
+ DimensionType[DimensionType["Ordinate"] = 6] = "Ordinate";
14
+ DimensionType[DimensionType["ReferenceIsExclusive"] = 32] = "ReferenceIsExclusive";
15
+ DimensionType[DimensionType["IsOrdinateXTypeFlag"] = 64] = "IsOrdinateXTypeFlag";
16
+ DimensionType[DimensionType["IsCustomTextPositionFlag"] = 128] = "IsCustomTextPositionFlag";
17
+ })(DimensionType || (exports.DimensionType = DimensionType = {}));
18
+ var AttachmentPoint;
19
+ (function (AttachmentPoint) {
20
+ AttachmentPoint[AttachmentPoint["TopLeft"] = 1] = "TopLeft";
21
+ AttachmentPoint[AttachmentPoint["TopCenter"] = 2] = "TopCenter";
22
+ AttachmentPoint[AttachmentPoint["TopRight"] = 3] = "TopRight";
23
+ AttachmentPoint[AttachmentPoint["MiddleLeft"] = 4] = "MiddleLeft";
24
+ AttachmentPoint[AttachmentPoint["MiddleCenter"] = 5] = "MiddleCenter";
25
+ AttachmentPoint[AttachmentPoint["MiddleRight"] = 6] = "MiddleRight";
26
+ AttachmentPoint[AttachmentPoint["BottomLeft"] = 7] = "BottomLeft";
27
+ AttachmentPoint[AttachmentPoint["BottomCenter"] = 8] = "BottomCenter";
28
+ AttachmentPoint[AttachmentPoint["BottomRight"] = 9] = "BottomRight";
29
+ })(AttachmentPoint || (exports.AttachmentPoint = AttachmentPoint = {}));
30
+ var DimensionTextLineSpacing;
31
+ (function (DimensionTextLineSpacing) {
32
+ DimensionTextLineSpacing[DimensionTextLineSpacing["AtLeast"] = 1] = "AtLeast";
33
+ DimensionTextLineSpacing[DimensionTextLineSpacing["Exact"] = 2] = "Exact";
34
+ })(DimensionTextLineSpacing || (exports.DimensionTextLineSpacing = DimensionTextLineSpacing = {}));
35
+ var DimensionTextVertical;
36
+ (function (DimensionTextVertical) {
37
+ DimensionTextVertical[DimensionTextVertical["Center"] = 0] = "Center";
38
+ DimensionTextVertical[DimensionTextVertical["Above"] = 1] = "Above";
39
+ DimensionTextVertical[DimensionTextVertical["Outside"] = 2] = "Outside";
40
+ DimensionTextVertical[DimensionTextVertical["JIS"] = 3] = "JIS";
41
+ DimensionTextVertical[DimensionTextVertical["Below"] = 4] = "Below";
42
+ })(DimensionTextVertical || (exports.DimensionTextVertical = DimensionTextVertical = {}));
43
+ var DimensionZeroSuppression;
44
+ (function (DimensionZeroSuppression) {
45
+ DimensionZeroSuppression[DimensionZeroSuppression["Feet"] = 0] = "Feet";
46
+ DimensionZeroSuppression[DimensionZeroSuppression["None"] = 1] = "None";
47
+ DimensionZeroSuppression[DimensionZeroSuppression["Inch"] = 2] = "Inch";
48
+ DimensionZeroSuppression[DimensionZeroSuppression["FeetAndInch"] = 3] = "FeetAndInch";
49
+ DimensionZeroSuppression[DimensionZeroSuppression["Leading"] = 4] = "Leading";
50
+ DimensionZeroSuppression[DimensionZeroSuppression["Trailing"] = 8] = "Trailing";
51
+ DimensionZeroSuppression[DimensionZeroSuppression["LeadingAndTrailing"] = 12] = "LeadingAndTrailing";
52
+ })(DimensionZeroSuppression || (exports.DimensionZeroSuppression = DimensionZeroSuppression = {}));
53
+ var DimensionZeroSuppressionAngular;
54
+ (function (DimensionZeroSuppressionAngular) {
55
+ DimensionZeroSuppressionAngular[DimensionZeroSuppressionAngular["None"] = 0] = "None";
56
+ DimensionZeroSuppressionAngular[DimensionZeroSuppressionAngular["Leading"] = 1] = "Leading";
57
+ DimensionZeroSuppressionAngular[DimensionZeroSuppressionAngular["Trailing"] = 2] = "Trailing";
58
+ DimensionZeroSuppressionAngular[DimensionZeroSuppressionAngular["LeadingAndTrailing"] = 3] = "LeadingAndTrailing";
59
+ })(DimensionZeroSuppressionAngular || (exports.DimensionZeroSuppressionAngular = DimensionZeroSuppressionAngular = {}));
60
+ var DimensionTextHorizontal;
61
+ (function (DimensionTextHorizontal) {
62
+ DimensionTextHorizontal[DimensionTextHorizontal["Center"] = 0] = "Center";
63
+ DimensionTextHorizontal[DimensionTextHorizontal["Left"] = 1] = "Left";
64
+ DimensionTextHorizontal[DimensionTextHorizontal["Right"] = 2] = "Right";
65
+ DimensionTextHorizontal[DimensionTextHorizontal["OverFirst"] = 3] = "OverFirst";
66
+ DimensionTextHorizontal[DimensionTextHorizontal["OverSecond"] = 4] = "OverSecond";
67
+ })(DimensionTextHorizontal || (exports.DimensionTextHorizontal = DimensionTextHorizontal = {}));
68
+ var DimensionToleranceTextVertical;
69
+ (function (DimensionToleranceTextVertical) {
70
+ DimensionToleranceTextVertical[DimensionToleranceTextVertical["Bottom"] = 0] = "Bottom";
71
+ DimensionToleranceTextVertical[DimensionToleranceTextVertical["Center"] = 1] = "Center";
72
+ DimensionToleranceTextVertical[DimensionToleranceTextVertical["Top"] = 2] = "Top";
73
+ })(DimensionToleranceTextVertical || (exports.DimensionToleranceTextVertical = DimensionToleranceTextVertical = {}));
74
+ //# sourceMappingURL=dimension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dimension.js","sourceRoot":"","sources":["../../src/consts/dimension.ts"],"names":[],"mappings":";;;AAAA,+FAA+F;AAC/F,IAAY,aAWX;AAXD,WAAY,aAAa;IACrB,uDAAW,CAAA;IACX,uDAAW,CAAA;IACX,uDAAW,CAAA;IACX,yDAAY,CAAA;IACZ,qDAAU,CAAA;IACV,mEAAiB,CAAA;IACjB,yDAAY,CAAA;IACZ,kFAAyB,CAAA;IACzB,gFAAwB,CAAA;IACxB,2FAA8B,CAAA;AAClC,CAAC,EAXW,aAAa,6BAAb,aAAa,QAWxB;AAED,IAAY,eAUX;AAVD,WAAY,eAAe;IACvB,2DAAW,CAAA;IACX,+DAAa,CAAA;IACb,6DAAY,CAAA;IACZ,iEAAc,CAAA;IACd,qEAAgB,CAAA;IAChB,mEAAe,CAAA;IACf,iEAAc,CAAA;IACd,qEAAgB,CAAA;IAChB,mEAAe,CAAA;AACnB,CAAC,EAVW,eAAe,+BAAf,eAAe,QAU1B;AAED,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,6EAAW,CAAA;IACX,yEAAS,CAAA;AACb,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,qEAAU,CAAA;IACV,mEAAS,CAAA;IACT,uEAAW,CAAA;IACX,+DAAO,CAAA;IACP,mEAAS,CAAA;AACb,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AAED,IAAY,wBAQX;AARD,WAAY,wBAAwB;IAChC,uEAAQ,CAAA;IACR,uEAAQ,CAAA;IACR,uEAAQ,CAAA;IACR,qFAAe,CAAA;IACf,6EAAW,CAAA;IACX,+EAAY,CAAA;IACZ,oGAAuB,CAAA;AAC3B,CAAC,EARW,wBAAwB,wCAAxB,wBAAwB,QAQnC;AAED,IAAY,+BAKX;AALD,WAAY,+BAA+B;IACvC,qFAAQ,CAAA;IACR,2FAAW,CAAA;IACX,6FAAY,CAAA;IACZ,iHAAsB,CAAA;AAC1B,CAAC,EALW,+BAA+B,+CAA/B,+BAA+B,QAK1C;AAED,IAAY,uBAMX;AAND,WAAY,uBAAuB;IAC/B,yEAAU,CAAA;IACV,qEAAQ,CAAA;IACR,uEAAS,CAAA;IACT,+EAAa,CAAA;IACb,iFAAc,CAAA;AAClB,CAAC,EANW,uBAAuB,uCAAvB,uBAAuB,QAMlC;AAED,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACtC,uFAAU,CAAA;IACV,uFAAU,CAAA;IACV,iFAAO,CAAA;AACX,CAAC,EAJW,8BAA8B,8CAA9B,8BAA8B,QAIzC"}
@@ -0,0 +1,44 @@
1
+ export declare enum HatchSolidFill {
2
+ PatternFill = 0,
3
+ SolidFill = 1
4
+ }
5
+ export declare enum HatchAssociativity {
6
+ NonAssociative = 0,// For MPolygon LacksSolidFill
7
+ Associative = 1
8
+ }
9
+ export declare enum HatchStyle {
10
+ Normal = 0,// Odd parity area
11
+ Outer = 1,// Outermost area
12
+ Ignore = 2
13
+ }
14
+ export declare enum HatchPatternType {
15
+ UserDefined = 0,
16
+ Predefined = 1,
17
+ Custom = 2
18
+ }
19
+ export declare enum HatchBoundaryAnnotation {
20
+ NotAnnotated = 0,
21
+ Annotated = 1
22
+ }
23
+ export declare enum HatchGradientFlag {
24
+ Solid = 0,
25
+ Gradient = 1
26
+ }
27
+ export declare enum HatchGradientColorFlag {
28
+ TwoColor = 0,
29
+ OneColor = 1
30
+ }
31
+ export declare enum BoundaryPathTypeFlag {
32
+ Default = 0,
33
+ External = 1,
34
+ Polyline = 2,
35
+ Derived = 4,
36
+ Textbox = 8,
37
+ Outermost = 16
38
+ }
39
+ export declare enum BoundaryPathEdgeType {
40
+ Line = 1,
41
+ Circular = 2,
42
+ Elliptic = 3,
43
+ Spline = 4
44
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoundaryPathEdgeType = exports.BoundaryPathTypeFlag = exports.HatchGradientColorFlag = exports.HatchGradientFlag = exports.HatchBoundaryAnnotation = exports.HatchPatternType = exports.HatchStyle = exports.HatchAssociativity = exports.HatchSolidFill = void 0;
4
+ var HatchSolidFill;
5
+ (function (HatchSolidFill) {
6
+ HatchSolidFill[HatchSolidFill["PatternFill"] = 0] = "PatternFill";
7
+ HatchSolidFill[HatchSolidFill["SolidFill"] = 1] = "SolidFill";
8
+ })(HatchSolidFill || (exports.HatchSolidFill = HatchSolidFill = {}));
9
+ var HatchAssociativity;
10
+ (function (HatchAssociativity) {
11
+ HatchAssociativity[HatchAssociativity["NonAssociative"] = 0] = "NonAssociative";
12
+ HatchAssociativity[HatchAssociativity["Associative"] = 1] = "Associative";
13
+ })(HatchAssociativity || (exports.HatchAssociativity = HatchAssociativity = {}));
14
+ var HatchStyle;
15
+ (function (HatchStyle) {
16
+ HatchStyle[HatchStyle["Normal"] = 0] = "Normal";
17
+ HatchStyle[HatchStyle["Outer"] = 1] = "Outer";
18
+ HatchStyle[HatchStyle["Ignore"] = 2] = "Ignore";
19
+ })(HatchStyle || (exports.HatchStyle = HatchStyle = {}));
20
+ var HatchPatternType;
21
+ (function (HatchPatternType) {
22
+ HatchPatternType[HatchPatternType["UserDefined"] = 0] = "UserDefined";
23
+ HatchPatternType[HatchPatternType["Predefined"] = 1] = "Predefined";
24
+ HatchPatternType[HatchPatternType["Custom"] = 2] = "Custom";
25
+ })(HatchPatternType || (exports.HatchPatternType = HatchPatternType = {}));
26
+ var HatchBoundaryAnnotation;
27
+ (function (HatchBoundaryAnnotation) {
28
+ HatchBoundaryAnnotation[HatchBoundaryAnnotation["NotAnnotated"] = 0] = "NotAnnotated";
29
+ HatchBoundaryAnnotation[HatchBoundaryAnnotation["Annotated"] = 1] = "Annotated";
30
+ })(HatchBoundaryAnnotation || (exports.HatchBoundaryAnnotation = HatchBoundaryAnnotation = {}));
31
+ var HatchGradientFlag;
32
+ (function (HatchGradientFlag) {
33
+ HatchGradientFlag[HatchGradientFlag["Solid"] = 0] = "Solid";
34
+ HatchGradientFlag[HatchGradientFlag["Gradient"] = 1] = "Gradient";
35
+ })(HatchGradientFlag || (exports.HatchGradientFlag = HatchGradientFlag = {}));
36
+ var HatchGradientColorFlag;
37
+ (function (HatchGradientColorFlag) {
38
+ HatchGradientColorFlag[HatchGradientColorFlag["TwoColor"] = 0] = "TwoColor";
39
+ HatchGradientColorFlag[HatchGradientColorFlag["OneColor"] = 1] = "OneColor";
40
+ })(HatchGradientColorFlag || (exports.HatchGradientColorFlag = HatchGradientColorFlag = {}));
41
+ var BoundaryPathTypeFlag;
42
+ (function (BoundaryPathTypeFlag) {
43
+ BoundaryPathTypeFlag[BoundaryPathTypeFlag["Default"] = 0] = "Default";
44
+ BoundaryPathTypeFlag[BoundaryPathTypeFlag["External"] = 1] = "External";
45
+ BoundaryPathTypeFlag[BoundaryPathTypeFlag["Polyline"] = 2] = "Polyline";
46
+ BoundaryPathTypeFlag[BoundaryPathTypeFlag["Derived"] = 4] = "Derived";
47
+ BoundaryPathTypeFlag[BoundaryPathTypeFlag["Textbox"] = 8] = "Textbox";
48
+ BoundaryPathTypeFlag[BoundaryPathTypeFlag["Outermost"] = 16] = "Outermost";
49
+ })(BoundaryPathTypeFlag || (exports.BoundaryPathTypeFlag = BoundaryPathTypeFlag = {}));
50
+ var BoundaryPathEdgeType;
51
+ (function (BoundaryPathEdgeType) {
52
+ BoundaryPathEdgeType[BoundaryPathEdgeType["Line"] = 1] = "Line";
53
+ BoundaryPathEdgeType[BoundaryPathEdgeType["Circular"] = 2] = "Circular";
54
+ BoundaryPathEdgeType[BoundaryPathEdgeType["Elliptic"] = 3] = "Elliptic";
55
+ BoundaryPathEdgeType[BoundaryPathEdgeType["Spline"] = 4] = "Spline";
56
+ })(BoundaryPathEdgeType || (exports.BoundaryPathEdgeType = BoundaryPathEdgeType = {}));
57
+ //# sourceMappingURL=hatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hatch.js","sourceRoot":"","sources":["../../src/consts/hatch.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,iEAAe,CAAA;IACf,6DAAa,CAAA;AACjB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,+EAAkB,CAAA;IAClB,yEAAe,CAAA;AACnB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,+CAAU,CAAA;IACV,6CAAS,CAAA;IACT,+CAAU,CAAA;AACd,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,qEAAe,CAAA;IACf,mEAAc,CAAA;IACd,2DAAU,CAAA;AACd,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAED,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,qFAAgB,CAAA;IAChB,+EAAa,CAAA;AACjB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,2DAAS,CAAA;IACT,iEAAY,CAAA;AAChB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,2EAAY,CAAA;IACZ,2EAAY,CAAA;AAChB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC5B,qEAAW,CAAA;IACX,uEAAY,CAAA;IACZ,uEAAY,CAAA;IACZ,qEAAW,CAAA;IACX,qEAAW,CAAA;IACX,0EAAc,CAAA;AAClB,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B;AAED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,+DAAQ,CAAA;IACR,uEAAY,CAAA;IACZ,uEAAY,CAAA;IACZ,mEAAU,CAAA;AACd,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
@@ -0,0 +1,9 @@
1
+ import { ObscuredLineTypes } from './obscuredLineTypes';
2
+ export declare const DefaultDxfHeaderVariables: {
3
+ DRAGVS: string;
4
+ INTERFERECOLOR: number;
5
+ INTERFEREOBJVS: string;
6
+ INTERFEREVPVS: string;
7
+ OBSLTYPE: ObscuredLineTypes;
8
+ SHADEDIF: number;
9
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DefaultDxfHeaderVariables = void 0;
4
+ const obscuredLineTypes_1 = require("./obscuredLineTypes");
5
+ exports.DefaultDxfHeaderVariables = {
6
+ DRAGVS: 'NULL',
7
+ INTERFERECOLOR: 1,
8
+ INTERFEREOBJVS: 'Conceptual',
9
+ INTERFEREVPVS: '3d Wireframe',
10
+ OBSLTYPE: obscuredLineTypes_1.ObscuredLineTypes.Off,
11
+ SHADEDIF: 70,
12
+ };
13
+ //# sourceMappingURL=header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.js","sourceRoot":"","sources":["../../src/consts/header.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAE3C,QAAA,yBAAyB,GAAG;IACrC,MAAM,EAAE,MAAM;IACd,cAAc,EAAE,CAAC;IACjB,cAAc,EAAE,YAAY;IAC5B,aAAa,EAAE,cAAc;IAC7B,QAAQ,EAAE,qCAAiB,CAAC,GAAG;IAC/B,QAAQ,EAAE,EAAE;CACf,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './color';
2
+ export * from './config';
3
+ export * from './dimension';
4
+ export * from './hatch';
5
+ export * from './measurement';
6
+ export * from './obscuredLineTypes';
7
+ export * from './lineweight';
8
+ export * from './scene';
9
+ export * from './viewport';
@@ -0,0 +1,26 @@
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("./color"), exports);
18
+ __exportStar(require("./config"), exports);
19
+ __exportStar(require("./dimension"), exports);
20
+ __exportStar(require("./hatch"), exports);
21
+ __exportStar(require("./measurement"), exports);
22
+ __exportStar(require("./obscuredLineTypes"), exports);
23
+ __exportStar(require("./lineweight"), exports);
24
+ __exportStar(require("./scene"), exports);
25
+ __exportStar(require("./viewport"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,gDAA8B;AAC9B,sDAAoC;AACpC,+CAA6B;AAC7B,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,5 @@
1
+ export declare enum ReservedLineweight {
2
+ Standard = -3,
3
+ ByLayer = -2,
4
+ ByBlock = -1
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReservedLineweight = void 0;
4
+ var ReservedLineweight;
5
+ (function (ReservedLineweight) {
6
+ ReservedLineweight[ReservedLineweight["Standard"] = -3] = "Standard";
7
+ ReservedLineweight[ReservedLineweight["ByLayer"] = -2] = "ByLayer";
8
+ ReservedLineweight[ReservedLineweight["ByBlock"] = -1] = "ByBlock";
9
+ })(ReservedLineweight || (exports.ReservedLineweight = ReservedLineweight = {}));
10
+ //# sourceMappingURL=lineweight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lineweight.js","sourceRoot":"","sources":["../../src/consts/lineweight.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,oEAAa,CAAA;IACb,kEAAY,CAAA;IACZ,kEAAY,CAAA;AAChB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
@@ -0,0 +1,4 @@
1
+ export declare enum Measurement {
2
+ English = 0,
3
+ Metric = 1
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Measurement = void 0;
4
+ var Measurement;
5
+ (function (Measurement) {
6
+ Measurement[Measurement["English"] = 0] = "English";
7
+ Measurement[Measurement["Metric"] = 1] = "Metric";
8
+ })(Measurement || (exports.Measurement = Measurement = {}));
9
+ //# sourceMappingURL=measurement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measurement.js","sourceRoot":"","sources":["../../src/consts/measurement.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,mDAAW,CAAA;IACX,iDAAU,CAAA;AACd,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Specifies the linetype of obscured lines.
3
+ * Obscured linetypes are independent of zoom level,
4
+ * unlike standard object linetypes.
5
+ *
6
+ * Value 0 turns off display of obscured lines and is the default
7
+ * */
8
+ export declare enum ObscuredLineTypes {
9
+ Off = 0,
10
+ Solid = 1,
11
+ Dashed = 2,
12
+ Dotted = 3,
13
+ ShotDash = 4,
14
+ MediumDash = 5,
15
+ LongDash = 6,
16
+ DoubleShortDash = 7,
17
+ DoubleMediumDash = 8,
18
+ DoubleLongDash = 9,
19
+ DoubleMediumLongDash = 10,
20
+ SparseDot = 11
21
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObscuredLineTypes = void 0;
4
+ /**
5
+ * Specifies the linetype of obscured lines.
6
+ * Obscured linetypes are independent of zoom level,
7
+ * unlike standard object linetypes.
8
+ *
9
+ * Value 0 turns off display of obscured lines and is the default
10
+ * */
11
+ var ObscuredLineTypes;
12
+ (function (ObscuredLineTypes) {
13
+ ObscuredLineTypes[ObscuredLineTypes["Off"] = 0] = "Off";
14
+ ObscuredLineTypes[ObscuredLineTypes["Solid"] = 1] = "Solid";
15
+ ObscuredLineTypes[ObscuredLineTypes["Dashed"] = 2] = "Dashed";
16
+ ObscuredLineTypes[ObscuredLineTypes["Dotted"] = 3] = "Dotted";
17
+ ObscuredLineTypes[ObscuredLineTypes["ShotDash"] = 4] = "ShotDash";
18
+ ObscuredLineTypes[ObscuredLineTypes["MediumDash"] = 5] = "MediumDash";
19
+ ObscuredLineTypes[ObscuredLineTypes["LongDash"] = 6] = "LongDash";
20
+ ObscuredLineTypes[ObscuredLineTypes["DoubleShortDash"] = 7] = "DoubleShortDash";
21
+ ObscuredLineTypes[ObscuredLineTypes["DoubleMediumDash"] = 8] = "DoubleMediumDash";
22
+ ObscuredLineTypes[ObscuredLineTypes["DoubleLongDash"] = 9] = "DoubleLongDash";
23
+ ObscuredLineTypes[ObscuredLineTypes["DoubleMediumLongDash"] = 10] = "DoubleMediumLongDash";
24
+ ObscuredLineTypes[ObscuredLineTypes["SparseDot"] = 11] = "SparseDot";
25
+ })(ObscuredLineTypes || (exports.ObscuredLineTypes = ObscuredLineTypes = {}));
26
+ //# sourceMappingURL=obscuredLineTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"obscuredLineTypes.js","sourceRoot":"","sources":["../../src/consts/obscuredLineTypes.ts"],"names":[],"mappings":";;;AAAA;;;;;;KAMK;AACL,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IACzB,uDAAO,CAAA;IACP,2DAAS,CAAA;IACT,6DAAU,CAAA;IACV,6DAAU,CAAA;IACV,iEAAY,CAAA;IACZ,qEAAc,CAAA;IACd,iEAAY,CAAA;IACZ,+EAAmB,CAAA;IACnB,iFAAoB,CAAA;IACpB,6EAAkB,CAAA;IAClB,0FAAyB,CAAA;IACzB,oEAAc,CAAA;AAClB,CAAC,EAbW,iBAAiB,iCAAjB,iBAAiB,QAa5B"}
@@ -0,0 +1,2 @@
1
+ /** Use 16-bit indices for indexed geometry. */
2
+ export declare const INDEXED_CHUNK_SIZE = 65536;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INDEXED_CHUNK_SIZE = void 0;
4
+ /** Use 16-bit indices for indexed geometry. */
5
+ exports.INDEXED_CHUNK_SIZE = 0x10000;
6
+ //# sourceMappingURL=scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scene.js","sourceRoot":"","sources":["../../src/consts/scene.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAClC,QAAA,kBAAkB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,56 @@
1
+ export declare enum ViewportStatusFlag {
2
+ PERSPECTIVE_MODE = 1,
3
+ FRONT_CLIPPING = 2,
4
+ BACK_CLIPPING = 4,
5
+ UCS_FOLLOW = 8,
6
+ FRONT_CLIP_NOT_AT_EYE = 16,
7
+ UCS_ICON_VISIBILITY = 32,
8
+ UCS_ICON_AT_ORIGIN = 64,
9
+ FAST_ZOOM = 128,
10
+ SNAP_MODE = 256,
11
+ GRID_MODE = 512,
12
+ ISOMETRIC_SNAP_STYLE = 1024,
13
+ HIDE_PLOT_MODE = 2048,
14
+ K_ISO_PAIR_TOP = 4096,
15
+ K_ISO_PAIR_RIGHT = 8192,
16
+ VIEWPORT_ZOOM_LOCKING = 16384,
17
+ UNUSED = 32768,
18
+ NON_RECTANGULAR_CLIPPING = 65536,
19
+ VIEWPORT_OFF = 131072,
20
+ GRID_BEYOND_DRAWING_LIMITS = 262144,
21
+ ADAPTIVE_GRID_DISPLAY = 524288,
22
+ SUBDIVISION_BELOW_SPACING = 1048576,
23
+ GRID_FOLLOWS_WORKPLANE = 2097152
24
+ }
25
+ export declare enum RenderMode {
26
+ OPTIMIZED_2D = 0,// classic 2D
27
+ WIREFRAME = 1,
28
+ HIDDEN_LINE = 2,
29
+ FLAT_SHADED = 3,
30
+ GOURAUD_SHADED = 4,
31
+ FLAT_SHADED_WITH_WIREFRAME = 5,
32
+ GOURAUD_SHADED_WITH_WIREFRAME = 6
33
+ }
34
+ export declare enum UCSPerViewport {
35
+ UCS_UNCHANGED = 0,
36
+ HAS_OWN_UCS = 1
37
+ }
38
+ export declare enum OrthographicType {
39
+ NON_ORTHOGRAPHIC = 0,
40
+ TOP = 1,
41
+ BOTTOM = 2,
42
+ FRONT = 3,
43
+ BACK = 4,
44
+ LEFT = 5,
45
+ RIGHT = 6
46
+ }
47
+ export declare enum ShadePlotMode {
48
+ AS_DISPLAYED = 0,
49
+ WIREFRAME = 1,
50
+ HIDDEN = 2,
51
+ RENDERED = 3
52
+ }
53
+ export declare enum DefaultLightingType {
54
+ ONE_DISTANT_LIGHT = 0,
55
+ TWO_DISTANT_LIGHTS = 1
56
+ }