Merge branch 'pen-plotter' of inno-js/multy-stub into master

This commit is contained in:
grinikita 2023-12-08 14:27:08 +00:00 committed by Gogs
commit 2cfc6956aa
7 changed files with 7 additions and 4 deletions

View File

@ -0,0 +1 @@
<g xmlns="http://www.w3.org/2000/svg" width="77" height="68"><path stroke="#000000" stroke-width="3" fill="none" d="M 3 37 L 3 37 L 7 38 L 22 41 L 49 41 L 62 37 L 71 31 L 73 25 L 74 18 L 73 10 L 71 6 L 69 4 L 63 3 L 58 3 L 49 3 L 39 5 L 33 9 L 28 13 L 24 18 L 21 29 L 21 37 L 21 43 L 29 53 L 33 58 L 37 61 L 39 63 L 41 65 L 44 65 L 46 63 L 49 61 L 52 59 L 53 58 L 53 58"/></g>

View File

@ -0,0 +1 @@
<g xmlns="http://www.w3.org/2000/svg" width="86" height="88"><path stroke="#000000" stroke-width="3" fill="none" d="M 13 3 L 13 3 L 14 7 L 16 30 L 18 44 L 20 59 L 21 63 L 21 66 L 21 68 L 22 69 L 23 67 L 27 55 L 31 43 L 36 33 L 40 25 L 43 18 L 46 16 L 46 15 L 46 15 L 46 15"/><path stroke="#000000" stroke-width="3" fill="none" d="M 44 42 L 44 42 L 44 42"/><path stroke="#000000" stroke-width="3" fill="none" d="M 44 42 L 44 42 L 44 42 L 42 42 L 35 42 L 29 42 L 22 41 L 18 39 L 12 36 L 8 35 L 4 31 L 3 31 L 3 31 L 3 31"/><path stroke="#000000" stroke-width="3" fill="none" d="M 3 31 L 3 31 L 7 33 L 29 43 L 63 60 L 75 69 L 81 76 L 83 79 L 83 82 L 83 84 L 82 85 L 80 85 L 78 84 L 78 84"/></g>

View File

@ -0,0 +1 @@
<g xmlns="http://www.w3.org/2000/svg" width="70" height="125"><path stroke="#000000" stroke-width="3" fill="none" d="M 3 27 L 3 27 L 3 31 L 9 38 L 15 43 L 21 46 L 27 46 L 31 42 L 35 35 L 39 23 L 41 15 L 41 9 L 41 4 L 42 3 L 42 3 L 43 5 L 44 10 L 45 14 L 46 23 L 47 32 L 48 40 L 49 51 L 50 69 L 50 84 L 50 99 L 46 112 L 44 115 L 40 119 L 33 122 L 27 122 L 22 121 L 16 118 L 15 115 L 15 110 L 15 103 L 22 91 L 31 85 L 39 79 L 45 76 L 52 71 L 55 70 L 59 68 L 59 66 L 62 63 L 64 62 L 66 59 L 67 58 L 67 58 L 67 57 L 67 57"/></g>

View File

@ -0,0 +1 @@
<g xmlns="http://www.w3.org/2000/svg" width="37.20001220703125" height="80.4000244140625"><path stroke="#000000" stroke-width="3" fill="none" d="M 7 7.79998779296875 L 7 7.79998779296875 L 7 18.20001220703125 L 7 22.20001220703125 L 7 26.20001220703125 L 6.20001220703125 29.4000244140625 L 6.20001220703125 31 L 6.20001220703125 31.79998779296875 L 6.20001220703125 33.4000244140625 L 6.20001220703125 34.20001220703125 L 6.20001220703125 35 L 6.20001220703125 35.79998779296875 L 6.20001220703125 36.60003662109375 L 5.399993896484375 37.4000244140625 L 5.399993896484375 38.20001220703125 L 4.600006103515625 38.20001220703125 L 4.600006103515625 38.20001220703125"/><path stroke="#000000" stroke-width="3" fill="none" d="M 3.79998779296875 29.4000244140625 L 3.79998779296875 29.4000244140625 L 13.399993896484375 30.20001220703125 L 17.399993896484375 30.20001220703125 L 20.600006103515625 30.20001220703125 L 23.79998779296875 31 L 25.399993896484375 31 L 27.79998779296875 31 L 28.600006103515625 31 L 30.20001220703125 31 L 31 31 L 31.79998779296875 31 L 32.600006103515625 31.79998779296875 L 33.399993896484375 31.79998779296875 L 34.20001220703125 32.60003662109375 L 34.20001220703125 32.60003662109375"/><path stroke="#000000" stroke-width="3" fill="none" d="M 34.20001220703125 3 L 34.20001220703125 3 L 34.20001220703125 12.60003662109375 L 34.20001220703125 24.60003662109375 L 34.20001220703125 31.79998779296875 L 34.20001220703125 39.79998779296875 L 33.399993896484375 46.20001220703125 L 33.399993896484375 54.20001220703125 L 33.399993896484375 59.79998779296875 L 31.79998779296875 65.4000244140625 L 31.79998779296875 69.4000244140625 L 31.79998779296875 71.79998779296875 L 31 74.20001220703125 L 31 75 L 31 75.79998779296875 L 31 76.60003662109375 L 31 77.4000244140625 L 31 77.4000244140625"/><path stroke="#000000" stroke-width="3" fill="none" d="M 3 29.4000244140625 L 3 29.4000244140625 L 3 39 L 3 43 L 3 47 L 3 50.20001220703125 L 3 53.4000244140625 L 3 55.79998779296875 L 3 56.60003662109375 L 3 58.20001220703125 L 3 59 L 3 59.79998779296875 L 3 60.60003662109375 L 3 61.4000244140625 L 3 61.4000244140625"/></g>

View File

@ -0,0 +1 @@
<g xmlns="http://www.w3.org/2000/svg" width="59" height="61"><path stroke="#000000" stroke-width="3" fill="none" d="M 3 47 L 3 47 L 4 36 L 4 24 L 5 17 L 5 9 L 5 7 L 5 5 L 5 4 L 5 3 L 6 3 L 7 4 L 9 8 L 14 15 L 16 20 L 21 26 L 23 27 L 26 29 L 28 30 L 33 29 L 37 27 L 40 23 L 46 18 L 48 14 L 50 11 L 52 10 L 54 9 L 54 8 L 54 7 L 54 10 L 55 16 L 55 23 L 56 37 L 56 46 L 56 50 L 55 53 L 55 56 L 55 57 L 55 58 L 55 58"/></g>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -720,10 +720,8 @@ const writeSVG = (svgContent, totalHeight, totalWidth) => __awaiter(void 0, void
const svgFilePath = `${paths_1.STATIC_PATH}/generated.svg`; // Change this to your desired file path
fs_1.default.writeFileSync(svgFilePath, outputFile);
// Return the SVG file path
const basePath = `${process.env.BASE_URL || "http://localhost"}`;
const port = process.env.PORT || "5000";
// Date.now() is used to prevent caching (cache busting)
const serverFilePath = `${basePath}:${port}/static/generated.svg?v=${Date.now()}`;
const serverFilePath = `https://b2.inno-js.ru/ms/epja-2023-2/pen-plotter/static/generated.svg?v=${Date.now()}`;
return serverFilePath;
});
const generateSvg = (options) => __awaiter(void 0, void 0, void 0, function* () {