Skip to content

Commit

Permalink
Add box\cuboid_with_square_section_a3 and _bat\*.*
Browse files Browse the repository at this point in the history
  • Loading branch information
anqisoft committed Sep 25, 2023
1 parent 437fc08 commit 78aba14
Show file tree
Hide file tree
Showing 37 changed files with 872 additions and 96 deletions.
94 changes: 94 additions & 0 deletions _bat/_common/createJson.core.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
@ECHO OFF
chcp 65001
:: %1: server, local, %2: min, %3: fileName, %4: subFolderName

set langSet=en zh_cn zh_tw
set landscapeSet=false true

set htmFilename=%3%

:: echo %4%
set subFolderName=
if "%4%" neq "" (
echo %%4%% is defined.
set subFolderName=%4%
)
set subFolderName=%subFolderName:\=\\%
:: echo subFolderName: %subFolderName%
:: pause & exit

if "%2%" == "min" (
set minSeg=.min
) else (
set minSeg=
)

set htmlPath=%cd%
call set htmlPath=%%htmlPath:_bat\box\%htmFilename%=%%
:: echo %htmlPath%

if "%1%" == "server" (
set url=https://anqisoft.github.io/
set goal=%CD%\server%minSeg%.json
) else (
set url=file:///%htmlPath:\=/%
set goal=%CD%\local%minSeg%.json
)
set url=%url%box/%htmFilename%%minSeg%.htm

:: https://www.codenong.com/37071353/
if "%subFolderName%" neq "" (
set pdfPath=%htmlPath:\=\\%box\\%htmFilename%\\%subFolderName%\\pdfs\\
) else (
set pdfPath=%htmlPath:\=\\%box\\%htmFilename%\\pdfs\\
)
set pdfPath=%pdfPath:\\\\=\\%
:: echo %pdfPath% && pause
:: echo %url%

echo [>%goal%

title "Create json config file for local"

setlocal enabledelayedexpansion
for %%l in (!langSet!) do (
set lang=%%l
rem echo !lang!

for /L %%n in (1, 1, 2) do (
set no=%%n
rem echo !no!

for %%d in (!landscapeSet!) do (
set landscape=%%d
rem echo !lang! !no! !landscape!

if "!landscape!" == "true" (
set pdfFile=landscape_!no!
) else (
set pdfFile=portrait
)
rem echo !pdfFile!

set ok=0
if "!landscape!" == "true" (
set ok=1
) else (
if "!no!" == "1" (
set ok=1
)
)

if "!ok!" == "1" (
set endChar=,
if "!lang!:!no!:!landscape!" == "zh_tw:2:true" (
set endChar=
)
echo { "url": "!url!?lang=!lang!&landscape=!landscape!&no=!no!", "pdf": "!pdfPath!!lang!\\!pdfFile!.pdf", "params": { } }!endChar!>>%goal%
)
)
)
)

echo ]>>%goal%
:: PAUSE & exit
18 changes: 18 additions & 0 deletions _bat/_common/run.core.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@ECHO OFF

SET json=%cd%\%1%
if "%2%" == "min" (
set json=%json%.min
)
SET json=%json%.json
:: ECHO %json%

title "%json%"
:: setlocal enabledelayedexpansion

SET PYTHONPATH=P:\anqi\Desktop\tech\python\projects\tools\dev\tools\

call %PYTHONPATH%venv\Scripts\activate.bat
python %PYTHONPATH%main.py -F openUrlAndExportPdf -I %json%

PAUSE
1 change: 1 addition & 0 deletions _bat/box/cuboid_with_square_section_a3/_run_local.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@call ..\..\_common\run.core.bat local ""
1 change: 1 addition & 0 deletions _bat/box/cuboid_with_square_section_a3/_run_local.min.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@call ..\..\_common\run.core.bat local min
1 change: 1 addition & 0 deletions _bat/box/cuboid_with_square_section_a3/_run_server.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@call ..\..\_common\run.core.bat server ""
1 change: 1 addition & 0 deletions _bat/box/cuboid_with_square_section_a3/_run_server.min.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@call ..\..\_common\run.core.bat server min
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
call ..\..\_common\createJson.core.bat local "" cuboid_with_square_section_a3 local
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
call ..\..\_common\createJson.core.bat local min cuboid_with_square_section_a3 local.min
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
call ..\..\_common\createJson.core.bat server "" cuboid_with_square_section_a3 server
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
call ..\..\_common\createJson.core.bat server min cuboid_with_square_section_a3 server.min
11 changes: 11 additions & 0 deletions _bat/box/cuboid_with_square_section_a3/local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=en&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\en\\portrait.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=en&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\en\\landscape_1.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=en&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\en\\landscape_2.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_cn&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\zh_cn\\portrait.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_cn&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\zh_cn\\landscape_1.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_cn&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\zh_cn\\landscape_2.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_tw&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\zh_tw\\portrait.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_tw&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\zh_tw\\landscape_1.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_tw&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local\\pdfs\\zh_tw\\landscape_2.pdf", "params": { } }
]
11 changes: 11 additions & 0 deletions _bat/box/cuboid_with_square_section_a3/local.min.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=en&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\en\\portrait.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=en&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\en\\landscape_1.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=en&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\en\\landscape_2.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_cn&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\zh_cn\\portrait.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_cn&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\zh_cn\\landscape_1.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_cn&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\zh_cn\\landscape_2.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_tw&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\zh_tw\\portrait.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_tw&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\zh_tw\\landscape_1.pdf", "params": { } },
{ "url": "file:///P:/ecs_person/websites/anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_tw&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\local.min\\pdfs\\zh_tw\\landscape_2.pdf", "params": { } }
]
11 changes: 11 additions & 0 deletions _bat/box/cuboid_with_square_section_a3/server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=en&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\en\\portrait.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=en&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\en\\landscape_1.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=en&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\en\\landscape_2.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_cn&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\zh_cn\\portrait.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_cn&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\zh_cn\\landscape_1.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_cn&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\zh_cn\\landscape_2.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_tw&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\zh_tw\\portrait.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_tw&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\zh_tw\\landscape_1.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.htm?lang=zh_tw&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server\\pdfs\\zh_tw\\landscape_2.pdf", "params": { } }
]
11 changes: 11 additions & 0 deletions _bat/box/cuboid_with_square_section_a3/server.min.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=en&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\en\\portrait.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=en&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\en\\landscape_1.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=en&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\en\\landscape_2.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_cn&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\zh_cn\\portrait.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_cn&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\zh_cn\\landscape_1.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_cn&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\zh_cn\\landscape_2.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_tw&landscape=false&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\zh_tw\\portrait.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_tw&landscape=true&no=1", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\zh_tw\\landscape_1.pdf", "params": { } },
{ "url": "https://anqisoft.github.io/box/cuboid_with_square_section_a3.min.htm?lang=zh_tw&landscape=true&no=2", "pdf": "P:\\ecs_person\\websites\\anqisoft.github.io\\box\\cuboid_with_square_section_a3\\server.min\\pdfs\\zh_tw\\landscape_2.pdf", "params": { } }
]
2 changes: 2 additions & 0 deletions _bat/clearMinCss.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
@del /s/q "%CD%\..\css\*.min.css"
2 changes: 2 additions & 0 deletions _bat/clearMinJs.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
@del /s/q "%CD%\..\js\*.min.js"
25 changes: 25 additions & 0 deletions _bat/compressCss.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@echo off
:: https://www.npmjs.com/package/uglifycss uglifycss - npm
:: http://www.symfonychina.com/doc/current/assetic/uglifyjs.html
:: http://camnpr.com/archives/1007.html

:: npm i -g uglifycss
:: git clone git://github.com/fmarcia/UglifyCSS.git
:: uglifycss [options] [filename] [...] > output

set CSS_FOLDE=%CD%\..\css\
chdir /d "%CSS_FOLDE%"
title "Compressing the css files of %CSS_FOLDER%"

setlocal enabledelayedexpansion

for /r . %%a in (*.css) do (
set src=%%~fa

REM Use "!src:~-8!", not !src:~-8!
if "!src:~-8!" neq ".min.css" (
echo !src!
set goal=!src:.css=.min.css!
start /B "" uglifycss !src! > !goal!
)
)
27 changes: 27 additions & 0 deletions _bat/compressJs.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@echo off

:: npm install uglify-js -g
:: git clone git://github.com/mishoo/UglifyJS2.git
:: uglifyjs --help
:: * -o, ¨Coutput [string]
:: * -b, ¨Cbeautify [string]
:: * -m, ¨Cmangle [string]
:: uglifyjs lazyLoad.js -m -o lazyLoad.min.js

set JS_FOLDER="%CD%\..\js\"
chdir /d %JS_FOLDER%

setlocal enabledelayedexpansion

title "Compressing the js files of %JS_FOLDER%"

for /r . %%a in (*.js) do (
set src=%%~fa

REM Use "!src:~-7!", not !src:~-7!
if "!src:~-7!" neq ".min.js" (
echo !src!
set goal=!src:.js=.min.js!
start /B "" uglifyjs !src! -m -o !goal!
)
)
1 change: 1 addition & 0 deletions _bat/compressJs_anqi_cuboid_with_square_section.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@call compressJs_onlyOne anqi_cuboid_with_square_section.js
1 change: 1 addition & 0 deletions _bat/compressJs_anqi_express_box.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@call compressJs_onlyOne anqi_express_box.js
1 change: 1 addition & 0 deletions _bat/compressJs_anqi_mini_poker.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@call compressJs_onlyOne anqi_mini_poker.js
14 changes: 14 additions & 0 deletions _bat/compressJs_onlyOne.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:: %1: The file name of js before compressing.

@echo off
:: npm i -g uglify-js

cd ..\js\

set src=%cd%\%1
set goal=%src:.js=.min.js%
:: echo %src% %goal%
:: start /B "" uglifyjs %src% -m -o %goal%
(
uglifyjs %src% -m -o %goal%
)
6 changes: 6 additions & 0 deletions _bat/getHelp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off

start /B "" uglifyjs -help >uglifyjs.help.txt
start /B "" uglifycss >uglifycss.help.txt

exit
11 changes: 11 additions & 0 deletions _bat/uglifycss.help.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Usage: uglifycss [options] file1.css [file2.css [...]] > output
options:
--max-line-len n add a newline every n characters
--expand-vars expand variables
--ugly-comments remove newlines within preserved comments
--cute-comments preserve newlines within and around preserved comments
--convert-urls d convert relative urls using the d directory as location target
--debug print full error stack on error
--output f put the result in f file
--help show this help
--version display version number
40 changes: 40 additions & 0 deletions _bat/uglifyjs.help.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Usage: uglifyjs [files...] [options]

Options:
-h, --help Print usage information.
`--help options` for details on available options.
-v, -V, --version Print version number.
-p, --parse <options> Specify parser options.
-c, --compress [options] Enable compressor/specify compressor options.
-m, --mangle [options] Mangle names/specify mangler options.
--mangle-props [options] Mangle properties/specify mangler options.
-b, --beautify [options] Beautify output/specify output options.
-O, --output-opts <options> Output options (beautify disabled).
-o, --output <file> Output file (default STDOUT).
--annotations Process and preserve comment annotations.
--no-annotations Ignore and discard comment annotations.
--comments [filter] Preserve copyright comments in the output.
--config-file <file> Read minify() options from JSON file.
-d, --define <expr>[=value] Global definitions.
-e, --enclose [arg[,...][:value[,...]]] Embed everything in a big function, with configurable argument(s) & value(s).
--ie Support non-standard Internet Explorer.
--keep-fargs Do not mangle/drop function arguments.
--keep-fnames Do not mangle/drop function names. Useful for code relying on Function.prototype.name.
--module Process input as ES module (implies --toplevel)
--name-cache <file> File to hold mangled name mappings.
--rename Force symbol expansion.
--no-rename Disable symbol expansion.
--self Build UglifyJS as a library (implies --wrap UglifyJS)
--source-map [options] Enable source map/specify source map options.
--timings Display operations run time on STDERR.
--toplevel Compress and/or mangle variables in toplevel scope.
--v8 Support non-standard Chrome & Node.js.
--validate Perform validation during AST manipulations.
--verbose Print diagnostic messages.
--warn Print warning messages.
--webkit Support non-standard Safari/Webkit.
--wrap <name> Embed everything as a function with “exports” corresponding to “name” globally.

(internal debug use only)
--in-situ Warning: replaces original source files with minified output.
--reduce-test Reduce a standalone test case (assumes cloned repository).
8 changes: 4 additions & 4 deletions box/box_single_file.htm
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
const SVG_WIDTH = LONG + HEIGHT * 4 + EXTEND * 2;
const SVG_HEIGHT = HEIGHT * 3 + WIDTH * 2;

const HELF_LONG = LONG * 0.5;
const CENTER_X = HELF_LONG + HEIGHT * 2 + EXTEND * 1;
const HALF_LONG = LONG * 0.5;
const CENTER_X = HALF_LONG + HEIGHT * 2 + EXTEND * 1;

const LONG_PX = mmToPxScale * LONG;
const WIDTH_PX = mmToPxScale * WIDTH;
Expand Down Expand Up @@ -124,12 +124,12 @@
const Y4_OFFSET = Y4 + THICKESS;
const Y5_OFFSET = Y5 - THICKESS;

const X4 = CENTER_X - HELF_LONG;
const X4 = CENTER_X - HALF_LONG;
const X3 = X4 - HEIGHT;
const X2 = X3 - HEIGHT;
const X1 = X2 - EXTEND;

const X5 = CENTER_X + HELF_LONG;
const X5 = CENTER_X + HALF_LONG;
const X6 = X5 + HEIGHT;
const X7 = X6 + HEIGHT;
const X8 = X7 + EXTEND;
Expand Down
Loading

0 comments on commit 78aba14

Please sign in to comment.