You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/__test__/dxf/__snapshots__/dxf_el.test.ts.snap

834 lines
17 KiB

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`任意轴坐标系椭圆 1`] = `
Ellipse {
"center": Vector3 {
"x": 337.7892030848327,
"y": 0,
"z": 558.6118251930241,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 1.4405998558833164e-14,
"y": 0,
"z": 235.26781058609194,
},
"extrusion": Vector3 {
"x": 0,
"y": -1,
"z": 0,
},
"handle": "1A",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.7670523412708661,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 2`] = `
Ellipse {
"center": Vector3 {
"x": 971.2021372138901,
"y": 9.979027876158327,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 275.9734486574838,
"y": 23.17334301704065,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": 1,
},
"handle": "1B",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.6161522212677439,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 3`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": 376.2787636521916,
"z": 553.5769614228184,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": 2.510042659685116e-14,
"z": -409.9210746204874,
},
"extrusion": Vector3 {
"x": 1,
"y": 0,
"z": 0,
},
"handle": "1C",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.401639344262295,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 4`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": -418.67323531214146,
"z": 679.4023475206053,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": -248.01477883417138,
"z": 0,
},
"extrusion": Vector3 {
"x": -1,
"y": 0,
"z": 0,
},
"handle": "1D",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.7751306897594087,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 5`] = `
Ellipse {
"center": Vector3 {
"x": -722.7831100972741,
"y": 34.28543499417401,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -1.5022200263096847e-14,
"y": -245.33114810826905,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": -1,
},
"handle": "1E",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.5416666666666666,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 6`] = `
Ellipse {
"center": Vector3 {
"x": -919.2452469445237,
"y": 0,
"z": 575.1871269736582,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -95.85067346221922,
"y": 0,
"z": -95.8506734622192,
},
"extrusion": Vector3 {
"x": 0,
"y": 1,
"z": 0,
},
"handle": "1F",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.49497474683058007,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 7`] = `
Ellipse {
"center": Vector3 {
"x": 2881.606171887065,
"y": 0,
"z": 765.5826058907224,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 3.540091155142779e-14,
"y": 0,
"z": -578.140759867666,
},
"extrusion": Vector3 {
"x": 0,
"y": -1,
"z": 0,
},
"handle": "20",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.6885245901639341,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 8`] = `
Ellipse {
"center": Vector3 {
"x": 4383.718724957772,
"y": 0,
"z": 844.4497602985355,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -426.44462463359486,
"y": 0,
"z": -426.44462463345724,
},
"extrusion": Vector3 {
"x": 0,
"y": -1,
"z": 0,
},
"handle": "21",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.7543403674554563,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 9`] = `
Ellipse {
"center": Vector3 {
"x": 6149.580932239946,
"y": 83.56987103451945,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 4.1822165799927475e-14,
"y": -683.0077999476371,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": 1,
},
"handle": "22",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.4659548315532864,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 10`] = `
Ellipse {
"center": Vector3 {
"x": 7216.19585270612,
"y": -66.13046868003096,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 645.5827150189998,
"y": -93.56271232159429,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": 1,
},
"handle": "23",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.32454294289918767,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 11`] = `
Ellipse {
"center": Vector3 {
"x": 8709.485094419037,
"y": 403.402459189384,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 422.7808171726939,
"y": -200.26459760807333,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": 1,
},
"handle": "24",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.5946427498927404,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 12`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": 1495.2977034058104,
"z": 726.4288182666232,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": 2.446907750249149e-14,
"z": -399.6103614450765,
},
"extrusion": Vector3 {
"x": 1,
"y": 0,
"z": 0,
},
"handle": "25",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.5452389638064711,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 13`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": 2509.463837080227,
"z": 561.0221982778894,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": 170.22120265677353,
"z": 170.2212026567464,
},
"extrusion": Vector3 {
"x": 1,
"y": 0,
"z": 0,
},
"handle": "26",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.4240000000000008,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 14`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": 3221.3069695705594,
"z": 610.5992739202115,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": -219.77641229869542,
"z": -36.13773222361086,
},
"extrusion": Vector3 {
"x": 1,
"y": 0,
"z": 0,
},
"handle": "27",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.9015135457999485,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 15`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": -2723.1925840252115,
"z": 693.593787999137,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": -271.1615781729098,
"z": -665.5784191516864,
},
"extrusion": Vector3 {
"x": -1,
"y": 0,
"z": 0,
},
"handle": "28",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.6790997501017327,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 16`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": -4510.393894710296,
"z": 1396.1487859925833,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": -6.792487338297232e-14,
"z": -1109.2973652528103,
},
"extrusion": Vector3 {
"x": -1,
"y": 0,
"z": 0,
},
"handle": "29",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.41290898169026763,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 17`] = `
Ellipse {
"center": Vector3 {
"x": 0,
"y": -6777.627322824062,
"z": 1001.2810781689377,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 0,
"y": -875.4594949976998,
"z": 875.4594949974189,
},
"extrusion": Vector3 {
"x": -1,
"y": 0,
"z": 0,
},
"handle": "2A",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.5574968834215821,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 18`] = `
Ellipse {
"center": Vector3 {
"x": -9289.971667863443,
"y": 23.107584966108334,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -786.4355366765559,
"y": -2801.6765994102425,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": -1,
},
"handle": "2B",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.4391666339583543,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 19`] = `
Ellipse {
"center": Vector3 {
"x": -17722.52670987782,
"y": -5399.365440418747,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -1.7081238850234282e-13,
"y": 2789.578001122757,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": -1,
},
"handle": "2C",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.6871779960544495,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 20`] = `
Ellipse {
"center": Vector3 {
"x": -23357.383671828775,
"y": -1064.7201708014763,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -2085.352128566476,
"y": -3058.516455222906,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": -1,
},
"handle": "2D",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.3567799889397346,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 21`] = `
Ellipse {
"center": Vector3 {
"x": -32145.254657867412,
"y": 0,
"z": 1725.386311696919,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -1001.4528225657303,
"y": 0,
"z": -3543.6022952325666,
},
"extrusion": Vector3 {
"x": 0,
"y": 1,
"z": 0,
},
"handle": "2E",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.6212854606633754,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 22`] = `
Ellipse {
"center": Vector3 {
"x": -38539.145755787045,
"y": 0,
"z": 1879.4559767070298,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -3620.637127737617,
"y": 0,
"z": -1540.696650101115,
},
"extrusion": Vector3 {
"x": 0,
"y": 1,
"z": 0,
},
"handle": "2F",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.3322455740903174,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 23`] = `
Ellipse {
"center": Vector3 {
"x": -48884.69243769194,
"y": 0,
"z": 2324.1640588586815,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": -1833.4332286094595,
"y": 0,
"z": 6906.789198131889,
},
"extrusion": Vector3 {
"x": 0,
"y": 1,
"z": 0,
},
"handle": "30",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.5282270566323839,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 24`] = `
Ellipse {
"center": Vector3 {
"x": 20865.625435287715,
"y": -9648.578071219148,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 6109.921296799555,
"y": 0,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": 1,
},
"handle": "31",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.8301886788654536,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`任意轴坐标系椭圆 25`] = `
Ellipse {
"center": Vector3 {
"x": 33318.935082427575,
"y": -17029.50021392631,
"z": 0,
},
"colorNumber": 7,
"endParameter": 6.283185307179586,
"endPointOfMajorAxis": Vector3 {
"x": 5648.795158756198,
"y": 0,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": 1,
},
"handle": "32",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.8172028554313208,
"startParameter": 0,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;
exports[`测试椭圆导出 1`] = `
Ellipse {
"center": Vector3 {
"x": 1125.3161763730257,
"y": 534.314974743387,
"z": 0,
},
"colorNumber": 8,
"endParameter": 0.9625506967082142,
"endPointOfMajorAxis": Vector3 {
"x": -17.49999999993635,
"y": 1.6708856520547834e-12,
"z": 0,
},
"extrusion": Vector3 {
"x": 0,
"y": 0,
"z": -1,
},
"handle": "1A",
"layerName": undefined,
"lineType": undefined,
"lineTypeScale": undefined,
"ratioOfMinorAxisToMajorAxis": 0.827936422528518,
"startParameter": 2.1790418545093813,
"subclassMarker": "AcDbEllipse",
"trueColor": undefined,
"type": "ELLIPSE",
"visible": undefined,
}
`;