Skip to content

Commit 4e3bb3a

Browse files
committed
5% buffer on mortises
1 parent 940120c commit 4e3bb3a

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/TestParts.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ export default class TestParts extends SVGComponent<TestPartsProps> {
1515
pathstr += `L ${material * 3} 0`
1616
pathstr += `L ${material * 3} ${thickness}`
1717
pathstr += `L ${material * 2} ${thickness}`
18-
pathstr += `L ${material * 2} ${thickness / 2}`
19-
pathstr += `L ${material} ${thickness / 2}`
18+
pathstr += `L ${material * 2} ${(thickness / 2) - (thickness / 50)}`
19+
pathstr += `L ${material} ${(thickness / 2) - (thickness / 50)}`
2020
pathstr += `L ${material} ${thickness}`
2121
pathstr += `L 0 ${thickness}`
2222
pathstr += 'z'
2323

2424
pathstr += `M ${material * 3.5} 0`
2525
pathstr += `L ${material * 4.5} 0`
26-
pathstr += `L ${material * 4.5} ${thickness / 2}`
27-
pathstr += `L ${material * 5.5} ${thickness / 2}`
26+
pathstr += `L ${material * 4.5} ${(thickness / 2) + (thickness / 50)}`
27+
pathstr += `L ${material * 5.5} ${(thickness / 2) + (thickness / 50)}`
2828
pathstr += `L ${material * 5.5} 0`
2929
pathstr += `L ${material * 6.5} 0`
3030
pathstr += `L ${material * 6.5} ${thickness}`
@@ -33,4 +33,4 @@ export default class TestParts extends SVGComponent<TestPartsProps> {
3333

3434
return SVG().path(pathstr).fill("none").attr('vector-effect', 'non-scaling-stroke');
3535
}
36-
}
36+
}

src/components/XSpar.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ export default class XSpar extends SVGComponent<XSparProps> {
2020
const overhang = this.props.table.overhang;
2121
const yGap = this.props.table.ySparGap;
2222

23-
2423
let pathstr = '';
2524
const start = flatBuffer + flatOutsideBuffer + overhang - (xShrink / 2);
2625
if (start == 0) {
27-
pathstr += `M 0 ${thickness / 2}`;
26+
pathstr += `M 0 ${(thickness / 2) + (thickness / 50)}`;
2827
} else {
2928
pathstr += `M 0 0`;
3029
}
@@ -34,8 +33,8 @@ export default class XSpar extends SVGComponent<XSparProps> {
3433
if (x != 0) {
3534
pathstr += `L ${x} 0`;
3635
}
37-
pathstr += `L ${x} ${thickness / 2}`;
38-
pathstr += `L ${x + material} ${thickness / 2}`;
36+
pathstr += `L ${x} ${(thickness / 2) + (thickness / 50)}`;
37+
pathstr += `L ${x + material} ${(thickness / 2) + (thickness / 50)}`;
3938

4039
if (x + material != xCut) {
4140
pathstr += `L ${x + material} 0`;
@@ -52,4 +51,4 @@ export default class XSpar extends SVGComponent<XSparProps> {
5251

5352
return SVG().path(pathstr).fill("none").attr('vector-effect', 'non-scaling-stroke');
5453
}
55-
}
54+
}

src/components/YSpar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ export default class YSpar extends SVGComponent<YSparProps> {
1616
const xGap = this.props.table.xSparGap;
1717

1818
let pathstr = `M 0 0`
19-
pathstr += `L 0 ${thickness / 2}`;
19+
pathstr += `L 0 ${(thickness / 2) - (thickness / 50)}`;
2020
for (let mortise = 0; mortise < xMortises; mortise++) {
2121
const x = (mortise * xGap);
22-
pathstr += `L ${x + material} ${thickness / 2}`;
22+
pathstr += `L ${x + material} ${(thickness / 2) - (thickness / 50)}`;
2323
pathstr += `L ${x + material} ${thickness}`;
2424
pathstr += `L ${x + xGap} ${thickness}`;
25-
pathstr += `L ${x + xGap} ${thickness / 2}`;
25+
pathstr += `L ${x + xGap} ${(thickness / 2) - (thickness / 50)}`;
2626
}
27-
pathstr += `L ${yCut} ${thickness / 2}`
27+
pathstr += `L ${yCut} ${(thickness / 2) - (thickness / 50)}`
2828
pathstr += `L ${yCut} 0`
2929
pathstr += 'z'
3030

3131
return SVG().path(pathstr).fill("none").attr('vector-effect', 'non-scaling-stroke');
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)