Skip to content

Commit 91450b8

Browse files
committed
make pretty
1 parent 7c49647 commit 91450b8

File tree

3 files changed

+36
-35
lines changed

3 files changed

+36
-35
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public/nopaste

src/components/BlogPicture.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Props {
1212
const { src, alt, description } = Astro.props;
1313
1414
const assets = import.meta.glob<{ default: ImageMetadata }>(
15-
"/src/assets/**/*.{jpg,webp,png,jped}"
15+
"/src/assets/**/*.{jpg,webp,png,jped}",
1616
);
1717
if (!assets[src]) {
1818
throw new Error(`Could not find image at ${src}`);

src/components/watercolor_box_generator/WatercolorBoxGenerator.astro

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,19 @@ import SvgPreviewDiv from "./SvgPreviewDiv.astro";
221221

222222
linesToSvgImage(
223223
watercolorBoxPreviewSide,
224-
createSideMulti(params, counts.side)
224+
createSideMulti(params, counts.side),
225225
);
226226
linesToSvgImage(
227227
watercolorBoxPreviewFront,
228-
createFrontMulti(params, counts.front)
228+
createFrontMulti(params, counts.front),
229229
);
230230
linesToSvgImage(
231231
watercolorBoxPreviewBottom,
232-
createBottomMulti(params, counts.bottom)
232+
createBottomMulti(params, counts.bottom),
233233
);
234234
linesToSvgImage(
235235
watercolorBoxPreviewRow,
236-
createSampleRowMulti(params, counts.row)
236+
createSampleRowMulti(params, counts.row),
237237
);
238238
}
239239

@@ -260,7 +260,7 @@ import SvgPreviewDiv from "./SvgPreviewDiv.astro";
260260
svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
261261
svg.setAttribute(
262262
"viewBox",
263-
`-${margin} -${margin} ${width + 2 * margin} ${height + 2 * margin}`
263+
`-${margin} -${margin} ${width + 2 * margin} ${height + 2 * margin}`,
264264
);
265265
svg.setAttribute("width", `${width}mm`);
266266
svg.setAttribute("height", `${height}mm`);
@@ -638,7 +638,7 @@ import SvgPreviewDiv from "./SvgPreviewDiv.astro";
638638
function createCutLine(line: Line) {
639639
const svgLine = document.createElementNS(
640640
"http://www.w3.org/2000/svg",
641-
"line"
641+
"line",
642642
);
643643
svgLine.setAttribute("x1", line.a.x.toString());
644644
svgLine.setAttribute("y1", line.a.y.toString());
@@ -649,92 +649,92 @@ import SvgPreviewDiv from "./SvgPreviewDiv.astro";
649649
}
650650

651651
const thicknessWoodElem = document.getElementById(
652-
"watercolor-box-generator-material-thickness-wood"
652+
"watercolor-box-generator-material-thickness-wood",
653653
)! as HTMLInputElement;
654654
const thicknessGlassElem = document.getElementById(
655-
"watercolor-box-generator-material-thickness-glass"
655+
"watercolor-box-generator-material-thickness-glass",
656656
)! as HTMLInputElement;
657657
const rowsElem = document.getElementById(
658-
"watercolor-box-generator-rows"
658+
"watercolor-box-generator-rows",
659659
)! as HTMLInputElement;
660660
const sampleWidthElem = document.getElementById(
661-
"watercolor-box-generator-sample-width"
661+
"watercolor-box-generator-sample-width",
662662
)! as HTMLInputElement;
663663
const rowLengthElem = document.getElementById(
664-
"watercolor-box-generator-row-length"
664+
"watercolor-box-generator-row-length",
665665
)! as HTMLInputElement;
666666
const rowWidthElem = document.getElementById(
667-
"watercolor-box-generator-row-width"
667+
"watercolor-box-generator-row-width",
668668
)! as HTMLInputElement;
669669
const holderWidthElem = document.getElementById(
670-
"watercolor-box-generator-holder-width"
670+
"watercolor-box-generator-holder-width",
671671
)! as HTMLInputElement;
672672
const overshootElem = document.getElementById(
673-
"watercolor-box-generator-overshoot"
673+
"watercolor-box-generator-overshoot",
674674
)! as HTMLInputElement;
675675
const innerStabilityWidthElem = document.getElementById(
676-
"watercolor-box-generator-inner-stability-width"
676+
"watercolor-box-generator-inner-stability-width",
677677
)! as HTMLInputElement;
678678
const floorSliceWidthElem = document.getElementById(
679-
"watercolor-box-generator-floor-slice-width"
679+
"watercolor-box-generator-floor-slice-width",
680680
)! as HTMLInputElement;
681681
const frontSliceWidthElem = document.getElementById(
682-
"watercolor-box-generator-front-slice-width"
682+
"watercolor-box-generator-front-slice-width",
683683
)! as HTMLInputElement;
684684
const heightElem = document.getElementById(
685-
"watercolor-box-generator-height"
685+
"watercolor-box-generator-height",
686686
)! as HTMLInputElement;
687687
const heightOverlapElem = document.getElementById(
688-
"watercolor-box-generator-height-overlap"
688+
"watercolor-box-generator-height-overlap",
689689
)! as HTMLInputElement;
690690
const verticalHolderElem = document.getElementById(
691-
"watercolor-box-generator-vertical-holder"
691+
"watercolor-box-generator-vertical-holder",
692692
)! as HTMLInputElement;
693693
const floorClearanceElem = document.getElementById(
694-
"watercolor-box-generator-floor-clearance"
694+
"watercolor-box-generator-floor-clearance",
695695
)! as HTMLInputElement;
696696

697697
const watercolorBoxSideCount = document.getElementById(
698-
"watercolor-box-side-count"
698+
"watercolor-box-side-count",
699699
)! as HTMLInputElement;
700700
const watercolorBoxFrontCount = document.getElementById(
701-
"watercolor-box-front-count"
701+
"watercolor-box-front-count",
702702
)! as HTMLInputElement;
703703
const watercolorBoxBottomCount = document.getElementById(
704-
"watercolor-box-bottom-count"
704+
"watercolor-box-bottom-count",
705705
)! as HTMLInputElement;
706706
const watercolorBoxRowCount = document.getElementById(
707-
"watercolor-box-row-count"
707+
"watercolor-box-row-count",
708708
)! as HTMLInputElement;
709709

710710
const watercolorBoxPreviewSide = document.getElementById(
711-
"watercolor-box-preview-side"
711+
"watercolor-box-preview-side",
712712
)! as HTMLDivElement;
713713
const watercolorBoxPreviewFront = document.getElementById(
714-
"watercolor-box-preview-front"
714+
"watercolor-box-preview-front",
715715
)! as HTMLDivElement;
716716
const watercolorBoxPreviewBottom = document.getElementById(
717-
"watercolor-box-preview-bottom"
717+
"watercolor-box-preview-bottom",
718718
)! as HTMLDivElement;
719719
const watercolorBoxPreviewRow = document.getElementById(
720-
"watercolor-box-preview-row"
720+
"watercolor-box-preview-row",
721721
)! as HTMLDivElement;
722722

723723
const watercolorBoxResetAll = document.getElementById(
724-
"watercolor-box-reset-all"
724+
"watercolor-box-reset-all",
725725
)! as HTMLButtonElement;
726726

727727
const watercolorBoxDownloadSide = document.getElementById(
728-
"watercolor-box-download-side"
728+
"watercolor-box-download-side",
729729
)! as HTMLButtonElement;
730730
const watercolorBoxDownloadFront = document.getElementById(
731-
"watercolor-box-download-front"
731+
"watercolor-box-download-front",
732732
)! as HTMLButtonElement;
733733
const watercolorBoxDownloadBottom = document.getElementById(
734-
"watercolor-box-download-bottom"
734+
"watercolor-box-download-bottom",
735735
)! as HTMLButtonElement;
736736
const watercolorBoxDownloadRow = document.getElementById(
737-
"watercolor-box-download-row"
737+
"watercolor-box-download-row",
738738
)! as HTMLButtonElement;
739739

740740
const inputElements = [

0 commit comments

Comments
 (0)