Красивая вставка картинок

This commit is contained in:
2026-05-26 20:49:06 +03:00
parent e997f9ec84
commit 04f7e998ff
10 changed files with 20 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 933 KiB

After

Width:  |  Height:  |  Size: 560 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -201,7 +201,11 @@
#let pz-fig(path, caption, lbl) = [
#figure(
image("../images/" + path, width: 100%),
image(
"../images/" + path,
width: 100%,
fit: "contain",
),
caption: caption,
)
#label(lbl)

View File

@@ -1,5 +1,5 @@
@startuml fig_03_navigation_hub
scale 3
scale 2
title
Wallenc — навигация от главного экрана
и связь с фоновой синхронизацией (проект)

View File

@@ -1,9 +1,12 @@
@startuml fig_04_domain_class
scale 2
scale 1.15
skinparam shadowing false
skinparam classFontSize 11
skinparam classFontSize 10
skinparam packageStyle rectangle
skinparam nodesep 12
skinparam ranksep 18
' PNG (лимит растра по умолчанию 4096): PLANTUML_LIMIT_SIZE=8192 java -Xmx2g -jar plantuml.jar -charset UTF-8 -tpng …
' render_puml.sh: PLANTUML_LIMIT_SIZE=16384
package usecases {
class ManageStoragesEncryptionUseCase {

View File

@@ -1,5 +1,5 @@
@startuml fig_15_bpmn_vault
scale 3
scale 2
title BPMN: жизненный цикл vault
skinparam defaultFontName "DejaVu Sans"
skinparam activity {

View File

@@ -1,5 +1,5 @@
@startuml fig_16_dfd_level0
scale 3
scale 2
title DFD уровень 0: Wallenc
skinparam defaultFontName "DejaVu Sans"

View File

@@ -33,8 +33,12 @@ if ((${#PUML_FILES[@]} == 0)); then
exit 1
fi
export PLANTUML_LIMIT_SIZE=8192
"$JAVA_BIN" -Djava.awt.headless=true -jar "$JAR" \
# Лимит растра PlantUML (по умолчанию 4096); fig_04_domain_class упирался в 8192.
export PLANTUML_LIMIT_SIZE="${PLANTUML_LIMIT_SIZE:-16384}"
"$JAVA_BIN" -Djava.awt.headless=true \
-DPLANTUML_LIMIT_SIZE="$PLANTUML_LIMIT_SIZE" \
-Xmx3g \
-jar "$JAR" \
-charset UTF-8 -tpng -o "$IMG_DIR" "${PUML_FILES[@]}"
echo "Done. $(ls -1 "$IMG_DIR"/fig_*.png 2>/dev/null | wc -l) PNG in images/"