mirror of https://gitee.com/cf-fz/WebCAD.git
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.
383 lines
6.2 KiB
383 lines
6.2 KiB
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 1`] = `"420668.28959"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 2`] = `"421170.51803"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 3`] = `"5"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 4`] = `"5"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 5`] = `"5"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 6`] = `"173013.57414"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 7`] = `"175223.47125"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 8`] = `"6"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 9`] = `"5"`;
|
|
|
|
exports[`圆弧连接,连接失败了强行连接 10`] = `"5"`;
|
|
|
|
exports[`封边 1`] = `"3274.96050"`;
|
|
|
|
exports[`封边 2`] = `"3282.89002"`;
|
|
|
|
exports[`封边 3`] = `"33.00000"`;
|
|
|
|
exports[`封边 4`] = `"36.00000"`;
|
|
|
|
exports[`封边 5`] = `"6.00000"`;
|
|
|
|
exports[`小圆弧封边 1`] = `"284040.62619"`;
|
|
|
|
exports[`小圆弧封边 2`] = `"286176.63189"`;
|
|
|
|
exports[`小圆弧封边 3`] = `"4"`;
|
|
|
|
exports[`小圆弧封边 4`] = `"5"`;
|
|
|
|
exports[`小圆弧封边 5`] = `"5"`;
|
|
|
|
exports[`无法计算封边 1`] = `"4166.00000"`;
|
|
|
|
exports[`正方形造型走刀点重复 1`] = `
|
|
Array [
|
|
Array [
|
|
Object {
|
|
"buls": Array [
|
|
-0,
|
|
-0,
|
|
-0,
|
|
-0,
|
|
0,
|
|
0,
|
|
],
|
|
"pts": Array [
|
|
Vector2 {
|
|
"x": 87.90793650793671,
|
|
"y": 269.57777777786595,
|
|
},
|
|
Vector2 {
|
|
"x": 87.90793650793671,
|
|
"y": 309.57777777786595,
|
|
},
|
|
Vector2 {
|
|
"x": 127.90793650793671,
|
|
"y": 309.57777777786595,
|
|
},
|
|
Vector2 {
|
|
"x": 127.90793650793671,
|
|
"y": 269.57777777786595,
|
|
},
|
|
Vector2 {
|
|
"x": 87.90793650793671,
|
|
"y": 269.57777777786595,
|
|
},
|
|
Vector2 {
|
|
"x": 107.90793650793671,
|
|
"y": 289.57777777786595,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
]
|
|
`;
|
|
|
|
exports[`每段封边对应 1`] = `
|
|
Array [
|
|
1,
|
|
0,
|
|
0,
|
|
0,
|
|
2,
|
|
2,
|
|
2,
|
|
]
|
|
`;
|
|
|
|
exports[`每段封边对应 2`] = `
|
|
Object {
|
|
"buls": Array [
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0.41421356237309503,
|
|
0,
|
|
],
|
|
"pts": Array [
|
|
Vector2 {
|
|
"x": 597,
|
|
"y": 1.1368683772161603e-13,
|
|
},
|
|
Vector2 {
|
|
"x": 597.0000000000001,
|
|
"y": 1066.1313131313123,
|
|
},
|
|
Vector2 {
|
|
"x": 275.28282828282823,
|
|
"y": 1066.1313131313123,
|
|
},
|
|
Vector2 {
|
|
"x": 275.2828282828282,
|
|
"y": 1198,
|
|
},
|
|
Vector2 {
|
|
"x": 2.1316282072803006e-13,
|
|
"y": 1198,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 239.74048459379708,
|
|
},
|
|
Vector2 {
|
|
"x": 239.74048459379694,
|
|
"y": 2.842170943040401e-14,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`每段封边对应 3`] = `
|
|
Array [
|
|
1,
|
|
2,
|
|
1,
|
|
1,
|
|
]
|
|
`;
|
|
|
|
exports[`每段封边对应 4`] = `
|
|
Object {
|
|
"buls": Array [
|
|
-0,
|
|
0.5761636686505207,
|
|
-0,
|
|
-0,
|
|
],
|
|
"pts": Array [
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 5.684341886080802e-14,
|
|
},
|
|
Vector2 {
|
|
"x": 196.74752165480933,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 196.74752165480942,
|
|
"y": 348.00000000000006,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 348.00000000000006,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`特殊链接 圆弧间 1`] = `"187815.39618"`;
|
|
|
|
exports[`特殊链接 圆弧间 2`] = `"190259.30510"`;
|
|
|
|
exports[`特殊链接 圆弧间 3`] = `"6"`;
|
|
|
|
exports[`特殊链接 圆弧间 4`] = `"6"`;
|
|
|
|
exports[`特殊链接 圆弧间 5`] = `"6"`;
|
|
|
|
exports[`矩形板拆单的时候,给一个原始矩形轮廓 1`] = `
|
|
Object {
|
|
"buls": Array [
|
|
-0,
|
|
-0,
|
|
-0,
|
|
-0,
|
|
],
|
|
"pts": Array [
|
|
Vector2 {
|
|
"x": 317.5,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 317.5,
|
|
"y": 1830,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 1830,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 0,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`补圆错误导致的局部偏移错误 1`] = `
|
|
Object {
|
|
"buls": Array [
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
],
|
|
"pts": Array [
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 104.28333333333332,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 104.28333333333332,
|
|
"y": 73.75000000000185,
|
|
},
|
|
Vector2 {
|
|
"x": 122.78333333333332,
|
|
"y": 73.75000000000185,
|
|
},
|
|
Vector2 {
|
|
"x": 122.78333333333332,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 227.81666666666663,
|
|
"y": 1.4210854715202004e-14,
|
|
},
|
|
Vector2 {
|
|
"x": 227.81666666666663,
|
|
"y": 73.75000000000185,
|
|
},
|
|
Vector2 {
|
|
"x": 246.31666666666663,
|
|
"y": 73.75000000000185,
|
|
},
|
|
Vector2 {
|
|
"x": 246.31666666666663,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 350.59999999999997,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 350.5999999999999,
|
|
"y": 141.5000000000037,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 141.5000000000037,
|
|
},
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`镜像保证封边结果正确性 1`] = `
|
|
Array [
|
|
"1",
|
|
"4",
|
|
"3",
|
|
"2",
|
|
Array [
|
|
"二合一",
|
|
"三合一",
|
|
"轨道引孔",
|
|
"木销",
|
|
],
|
|
]
|
|
`;
|
|
|
|
exports[`镜像保证封边结果正确性 2`] = `
|
|
Object {
|
|
"oout": Object {
|
|
"buls": Array [
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
],
|
|
"pts": Array [
|
|
Vector2 {
|
|
"x": 1174.0000000000002,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 1174.0000000000002,
|
|
"y": 1894,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 1894,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 0,
|
|
},
|
|
],
|
|
},
|
|
"out": Object {
|
|
"buls": Array [
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
],
|
|
"pts": Array [
|
|
Vector2 {
|
|
"x": 1169.0000000000002,
|
|
"y": 0,
|
|
},
|
|
Vector2 {
|
|
"x": 1169.0000000000002,
|
|
"y": 1889,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 1889,
|
|
},
|
|
Vector2 {
|
|
"x": 0,
|
|
"y": 0,
|
|
},
|
|
],
|
|
},
|
|
"seal": Array [
|
|
Object {
|
|
"length": 1894,
|
|
"sealColor": "",
|
|
"size": 2,
|
|
},
|
|
Object {
|
|
"length": 1174.0000000000002,
|
|
"sealColor": "",
|
|
"size": 1,
|
|
},
|
|
Object {
|
|
"length": 1894,
|
|
"sealColor": "",
|
|
"size": 3,
|
|
},
|
|
Object {
|
|
"length": 1174.0000000000002,
|
|
"sealColor": "",
|
|
"size": 4,
|
|
},
|
|
],
|
|
}
|
|
`;
|