UNPKG

dxf-viewer

Version:
218 lines (216 loc) 12.3 kB
import { Pattern, RegisterPattern } from "../../Pattern.js" RegisterPattern(Pattern.ParsePatFile(` *LEAF-01,LEAF-01 ;By John Hyslop, Using AutoCAD Lisp Tool ;Developed in inch as imperial QCAD3 pattern 83.659808,0.9,0.2,0.99388373,0.11043153,0.09055385,-8.96483129 26.565051,0.88,0.19,1.34164079,0.4472136,0.02236068,-2.2137073 14.036243,0.84,0.18,3.15296313,0.24253563,0.04123106,-4.08187457 315,0.84,0.18,0.70710678,0.70710678,0.05656854,-1.35764502 83.659808,0.84,0.18,0.99388373,0.11043153,0.09055385,-8.96483129 0,0.79,0.18,0,1,0.05,-0.95 345.963757,0.82,0.12,0.9701425,0.24253563,0.04123106,-4.08187457 326.309932,0.79,0.14,2.21880078,0.2773501,0.03605551,-3.56949576 303.690068,0.77,0.17,1.38675049,0.2773501,0.03605551,-3.56949576 18.434949,0.74,0.16,2.21359436,0.31622777,0.03162278,-3.13065488 288.434949,0.73,0.19,2.21359436,0.31622777,0.03162278,-3.13065488 180,0.77,0.19,0,1,0.04,-0.96 258.690068,0.78,0.24,0.98058068,0.19611614,0.0509902,-5.04802932 243.434949,0.79,0.26,0.89442719,0.4472136,0.02236068,-2.2137073 225,0.82,0.29,0.70710678,0.70710678,0.04242641,-1.37178716 213.690068,0.85,0.31,1.38675049,0.2773501,0.03605551,-3.56949576 191.309932,0.9,0.32,4.11843884,0.19611614,0.0509902,-5.04802932 128.659808,0.3,0.42,1.40556386,0.15617376,0.06403124,-6.339093 143.130102,0.34,0.39,3.6,0.2,0.05,-4.95 153.434949,0.38,0.37,0.89442719,0.4472136,0.04472136,-2.19134662 192.528808,0.38,0.37,4.1216787,0.10846523,0.09219544,-9.12734901 105.945396,0.38,0.37,3.15929297,0.13736056,0.0728011,-7.20730879 153.434949,0.42,0.35,0.89442719,0.4472136,0.04472136,-2.19134662 149.036243,0.47,0.32,2.22948161,0.17149859,0.05830952,-5.77264238 95.710593,0.47,0.32,9.05483843,0.09950372,0.10049876,-9.94937686 194.931417,0.47,0.32,11.40157229,0.06441566,0.15524175,-15.36893295 135,0.51,0.28,0.70710678,0.70710678,0.05656854,-1.35764502 123.690068,0.53,0.25,1.38675049,0.2773501,0.03605551,-3.56949576 199.653824,0.53,0.25,11.70450662,0.06726728,0.14866069,-14.71740806 71.565051,0.53,0.25,0.9486833,0.31622777,0.09486833,-3.06740933 119.054604,0.58,0.16,8.06167266,0.09712859,0.1029563,-10.19267384 288.434949,0.58,0.14,2.21359436,0.31622777,0.06324555,-3.09903211 21.801409,0.53,0.12,2.22834406,0.18569534,0.05385165,-5.33131316 11.309932,0.48,0.11,4.11843884,0.19611614,0.0509902,-5.04802932 0,0.45,0.11,0,1,0.03,-0.97 341.565051,0.39,0.13,0.9486833,0.31622777,0.06324555,-3.09903211 326.309932,0.33,0.17,2.21880078,0.2773501,0.07211103,-3.53344025 308.659808,0.29,0.22,1.40556386,0.15617376,0.06403124,-6.339093 300.963757,0.26,0.27,3.60147029,0.17149859,0.05830952,-5.77264238 285.945396,0.24,0.34,3.15929297,0.13736056,0.0728011,-7.20730879 270,0.24,0.41,0,1,0.07,-0.93 279.462322,0.23,0.47,5.09636861,0.16439899,0.06082763,-6.0219349 285.945396,0.21,0.54,3.15929297,0.13736056,0.0728011,-7.20730879 123.690068,0.23,0.51,1.38675049,0.2773501,0.03605551,-3.56949576 161.565051,0.26,0.5,0.9486833,0.31622777,0.03162278,-3.13065488 171.869898,0.33,0.49,0.98994949,0.14142136,0.07071068,-7.00035713 171.869898,0.4,0.48,0.98994949,0.14142136,0.07071068,-7.00035713 161.565051,0.46,0.46,0.9486833,0.31622777,0.06324555,-3.09903211 161.565051,0.52,0.44,0.9486833,0.31622777,0.06324555,-3.09903211 146.309932,0.58,0.4,2.21880078,0.2773501,0.07211103,-3.53344025 119.744881,0.62,0.33,5.82963253,0.12403473,0.08062258,-7.98163517 111.801409,0.64,0.28,2.22834406,0.18569534,0.05385165,-5.33131316 90,0.64,0.24,0,1,0.04,-0.96 75.963757,0.63,0.2,0.9701425,0.24253563,0.04123106,-4.08187457 56.309932,0.61,0.17,2.21880078,0.2773501,0.03605551,-3.56949576 63.434949,0.6,0.15,0.89442719,0.4472136,0.02236068,-2.2137073 126.869898,0.63,0.11,1.4,0.2,0.05,-4.95 45,0.6,0.08,0.70710678,0.70710678,0.04242641,-1.37178716 233.130102,0.89,0.04,3.6,0.2,0.05,-4.95 258.690068,0.07,0.05,0.98058068,0.19611614,0.0509902,-5.04802932 258.690068,0.14,0.05,0.98058068,0.19611614,0.0509902,-5.04802932 198.434949,0.26,0.02,2.21359436,0.31622777,0.06324555,-3.09903211 225,0.31,0.02,0.70710678,0.70710678,0.02828427,-1.38592929 198.434949,0.34,0.03,2.21359436,0.31622777,0.03162278,-3.13065488 348.690068,0.29,0.04,0.98058068,0.19611614,0.0509902,-5.04802932 345.963757,0.25,0.05,0.9701425,0.24253563,0.04123106,-4.08187457 333.434949,0.21,0.07,0.89442719,0.4472136,0.04472136,-2.19134662 333.434949,0.15,0.1,0.89442719,0.4472136,0.06708204,-2.16898594 348.690068,0.1,0.11,0.98058068,0.19611614,0.0509902,-5.04802932 0,0.07,0.11,0,1,0.03,-0.97 8.130102,0,0.1,6.08111832,0.14142136,0.07071068,-7.00035713 236.309932,0.02,0.23,2.21880078,0.2773501,0.03605551,-3.56949576 236.309932,0.04,0.26,2.21880078,0.2773501,0.03605551,-3.56949576 213.690068,0.07,0.28,1.38675049,0.2773501,0.03605551,-3.56949576 0,0.03,0.28,0,1,0.04,-0.96 326.309932,0,0.3,2.21880078,0.2773501,0.03605551,-3.56949576 18.434949,0,0.26,2.21359436,0.31622777,0.03162278,-3.13065488 0,0,0.55,0,1,0.07,-0.93 14.036243,0.1,0.61,3.15296313,0.24253563,0.04123106,-4.08187457 21.801409,0.05,0.59,2.22834406,0.18569534,0.05385165,-5.33131316 30.963757,0,0.56,3.60147029,0.17149859,0.05830952,-5.77264238 254.054604,0.02,0.66,4.12081692,0.13736056,0.0728011,-7.20730879 158.198591,0.05,0.69,3.15682075,0.18569534,0.05385165,-5.33131316 153.434949,0.11,0.66,0.89442719,0.4472136,0.06708204,-2.16898594 158.198591,0.16,0.64,3.15682075,0.18569534,0.05385165,-5.33131316 180,0.21,0.64,0,1,0.05,-0.95 33.690068,0.18,0.62,1.38675049,0.2773501,0.03605551,-3.56949576 45,0.16,0.6,0.70710678,0.70710678,0.02828427,-1.38592929 53.130102,0.13,0.56,3.6,0.2,0.05,-4.95 56.309932,0.09,0.5,2.21880078,0.2773501,0.07211103,-3.53344025 51.340192,0.05,0.45,4.99756038,0.15617376,0.06403124,-6.339093 38.659808,0,0.41,1.40556386,0.15617376,0.06403124,-6.339093 180,0.82,0.48,0,1,0.1,-0.9 310.601295,0.82,0.48,1.41004798,0.10846523,0.09219544,-9.12734901 82.405357,0.82,0.48,8.06198693,0.06608186,0.15132746,-14.98141849 180,0.84,0.48,0,1,0.02,-0.98 194.036243,0.88,0.49,3.15296313,0.24253563,0.04123106,-4.08187457 198.434949,0.91,0.5,2.21359436,0.31622777,0.03162278,-3.13065488 0,0.83,0.37,0,1,0.08,-0.92 348.690068,0.78,0.38,0.98058068,0.19611614,0.0509902,-5.04802932 321.340192,0.73,0.42,4.99756038,0.15617376,0.06403124,-6.339093 300.963757,0.7,0.47,3.60147029,0.17149859,0.05830952,-5.77264238 21.801409,0.65,0.45,2.22834406,0.18569534,0.05385165,-5.33131316 284.036243,0.64,0.49,3.15296313,0.24253563,0.04123106,-4.08187457 180,0.7,0.49,0,1,0.06,-0.94 261.869898,0.71,0.56,0.98994949,0.14142136,0.07071068,-7.00035713 248.198591,0.73,0.61,3.15682075,0.18569534,0.05385165,-5.33131316 225,0.77,0.65,0.70710678,0.70710678,0.05656854,-1.35764502 216.869898,0.81,0.68,1.4,0.2,0.05,-4.95 198.434949,0.9,0.71,2.21359436,0.31622777,0.09486833,-3.06740933 153.434949,0.36,0.65,0.89442719,0.4472136,0.06708204,-2.16898594 170.537678,0.42,0.64,0.98639392,0.16439899,0.06082763,-6.0219349 188.130102,0.49,0.65,6.08111832,0.14142136,0.07071068,-7.00035713 201.801409,0.54,0.67,2.22834406,0.18569534,0.05385165,-5.33131316 219.805571,0.6,0.72,1.40840568,0.12803688,0.0781025,-7.73214718 18.434949,0.97,0.25,2.21359436,0.31622777,0.03162278,-3.13065488 33.690068,0.94,0.23,1.38675049,0.2773501,0.03605551,-3.56949576 0,0.94,0.23,0,1,0.04,-0.96 80.537678,0.94,0.23,0.98639392,0.16439899,0.06082763,-6.0219349 36.869898,0.9,0.2,1.4,0.2,0.05,-4.95 341.565051,0.9,0.2,0.9486833,0.31622777,0.06324555,-3.09903211 53.130102,0.97,0.16,3.6,0.2,0.05,-4.95 38.659808,0.92,0.12,1.40556386,0.15617376,0.06403124,-6.339093 9.462322,0.86,0.11,5.09636861,0.16439899,0.06082763,-6.0219349 180,0.95,0.32,0,1,0.05,-0.95 158.198591,1,0.3,3.15682075,0.18569534,0.05385165,-5.33131316 216.869898,0.93,0.07,1.4,0.2,0.05,-4.95 206.565051,0.97,0.09,1.34164079,0.4472136,0.04472136,-2.19134662 198.434949,1,0.1,2.21359436,0.31622777,0.03162278,-3.13065488 90,0.97,0,0,1,0.02,-0.98 26.565051,0.96,0.53,1.34164079,0.4472136,0.04472136,-2.19134662 56.309932,0.96,0.53,2.21880078,0.2773501,0.07211103,-3.53344025 36.869898,0.96,0.53,1.4,0.2,0.05,-4.95 30.963757,0.91,0.5,3.60147029,0.17149859,0.05830952,-5.77264238 78.690068,0.91,0.5,0.98058068,0.19611614,0.15297059,-4.94604893 156.037511,1,0.46,7.61509624,0.10153462,0.09848858,-9.75036922 30.963757,0.95,0.38,3.60147029,0.17149859,0.05830952,-5.77264238 14.036243,0.91,0.37,3.15296313,0.24253563,0.04123106,-4.08187457 180,1,0.71,0,1,0.1,-0.9 0,0.86,0.87,0,1,0.09,-0.91 11.309932,0.95,0.87,4.11843884,0.19611614,0.0509902,-5.04802932 135,1,0.82,0.70710678,0.70710678,0.07071068,-1.34350288 0,0.96,0.76,0,1,0.04,-0.96 345.963757,0.92,0.77,0.9701425,0.24253563,0.04123106,-4.08187457 333.434949,0.88,0.79,0.89442719,0.4472136,0.04472136,-2.19134662 315,0.86,0.81,0.70710678,0.70710678,0.02828427,-1.38592929 306.869898,0.83,0.85,1.4,0.2,0.05,-4.95 11.309932,0.78,0.84,4.11843884,0.19611614,0.0509902,-5.04802932 284.036243,0.77,0.88,3.15296313,0.24253563,0.04123106,-4.08187457 180,0.83,0.88,0,1,0.06,-0.94 14.036243,0.65,0.89,3.15296313,0.24253563,0.04123106,-4.08187457 18.434949,0.62,0.88,2.21359436,0.31622777,0.03162278,-3.13065488 33.690068,0.59,0.86,1.38675049,0.2773501,0.03605551,-3.56949576 230.194429,0.65,0.78,6.401844,0.12803688,0.0781025,-7.73214718 239.036243,0.68,0.83,2.22948161,0.17149859,0.05830952,-5.77264238 236.309932,0.72,0.89,2.21880078,0.2773501,0.07211103,-3.53344025 213.690068,0.75,0.91,1.38675049,0.2773501,0.03605551,-3.56949576 198.434949,0.78,0.92,2.21359436,0.31622777,0.03162278,-3.13065488 0,0.74,0.92,0,1,0.04,-0.96 345.963757,0.7,0.93,0.9701425,0.24253563,0.04123106,-4.08187457 261.869898,0.84,0.95,0.98994949,0.14142136,0.07071068,-7.00035713 248.198591,0.86,1,3.15682075,0.18569534,0.05385165,-5.33131316 36.869898,0.55,0.83,1.4,0.2,0.05,-4.95 0,0.55,0.83,0,1,0.08,-0.92 78.690068,0.55,0.83,0.98058068,0.19611614,0.10198039,-4.99703912 33.690068,0.52,0.81,1.38675049,0.2773501,0.03605551,-3.56949576 30.963757,0.47,0.78,3.60147029,0.17149859,0.05830952,-5.77264238 336.037511,0.47,0.78,7.61509624,0.10153462,0.09848858,-9.75036922 79.380345,0.47,0.78,11.18017113,0.06142951,0.16278821,-16.11603239 26.565051,0.43,0.76,1.34164079,0.4472136,0.04472136,-2.19134662 9.462322,0.37,0.75,5.09636861,0.16439899,0.06082763,-6.0219349 318.814075,0.37,0.75,9.21906451,0.09407209,0.10630146,-10.52384435 82.405357,0.37,0.75,8.06198693,0.06608186,0.15132746,-14.98141849 0,0.33,0.75,0,1,0.04,-0.96 0,0.29,0.75,0,1,0.04,-0.96 0,0.2,0.76,0,1,0.06,-0.94 104.036243,0.21,0.72,3.15296313,0.24253563,0.04123106,-4.08187457 201.801409,0.26,0.74,2.22834406,0.18569534,0.05385165,-5.33131316 123.690068,0.3,0.68,1.38675049,0.2773501,0.07211103,-3.53344025 338.198591,0.65,0.95,3.15682075,0.18569534,0.05385165,-5.33131316 333.434949,0.59,0.98,0.89442719,0.4472136,0.06708204,-2.16898594 348.690068,0.54,0.99,0.98058068,0.19611614,0.0509902,-5.04802932 0,0.46,0.99,0,1,0.08,-0.92 18.434949,0.4,0.97,2.21359436,0.31622777,0.06324555,-3.09903211 26.565051,0.34,0.94,1.34164079,0.4472136,0.06708204,-2.16898594 45,0.29,0.89,0.70710678,0.70710678,0.07071068,-1.34350288 71.565051,0.27,0.83,0.9486833,0.31622777,0.06324555,-3.09903211 81.869898,0.26,0.76,0.98994949,0.14142136,0.07071068,-7.00035713 ;0,0.2,0.76,0,1,0.06,-0.94 315,0,0.82,0.70710678,0.70710678,0.02828427,-1.38592929 198.434949,0.03,0.89,2.21359436,0.31622777,0.03162278,-3.13065488 343.300756,0.03,0.89,7.27947977,0.09578263,0.10440307,-10.33590344 74.744881,0.03,0.89,4.12217269,0.0877058,0.11401754,-11.28773671 206.565051,0.05,0.9,1.34164079,0.4472136,0.02236068,-2.2137073 213.690068,0.08,0.92,1.38675049,0.2773501,0.03605551,-3.56949576 216.869898,0.12,0.95,1.4,0.2,0.05,-4.95 352.874984,0.12,0.95,0.99227788,0.12403473,0.08062258,-7.98163517 78.690068,0.12,0.95,0.98058068,0.19611614,0.0509902,-5.04802932 213.690068,0.15,0.97,1.38675049,0.2773501,0.03605551,-3.56949576 213.690068,0.18,0.99,1.38675049,0.2773501,0.03605551,-3.56949576 206.565051,0.2,1,1.34164079,0.4472136,0.02236068,-2.2137073 45,0.28,0.99,0.70710678,0.70710678,0.01414214,-1.40007143 56.309932,0.26,0.96,2.21880078,0.2773501,0.03605551,-3.56949576 56.309932,0.22,0.9,2.21880078,0.2773501,0.07211103,-3.53344025 53.130102,0.19,0.86,3.6,0.2,0.05,-4.95 45,0.14,0.81,0.70710678,0.70710678,0.07071068,-1.34350288 36.869898,0.1,0.78,1.4,0.2,0.05,-4.95 18.434949,0.04,0.76,2.21359436,0.31622777,0.06324555,-3.09903211 0,0,0.76,0,1,0.04,-0.96 81.253838,0.95,0.87,7.07065907,0.07602859,0.13152946,-13.02141697 `), false)