From 641d62ac5f916d76bd7d2d3d94f46b7455c05c17 Mon Sep 17 00:00:00 2001 From: Maxim Dolgolyov Date: Thu, 28 May 2026 21:50:10 +0300 Subject: [PATCH] =?UTF-8?q?fix(geometry8):=20exhaustive=20SVG=20correctnes?= =?UTF-8?q?s=20audit=20=E2=80=94=2012=20fixes=20in=20=C2=A71-=C2=A77?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes applied (§1-§7 buildP1-buildP7 only): §1.1 (Fix 11): Pentagon viewBox 170→185; C/D vertex labels at y=176 and side label 'c' at y=174 were clipped — now visible. §1.3 (Fix 1): Hexagon — added 3 missing diagonals (only 6 of 9 drawn); expanded viewBox 160→175; caption moved from y=170 (clipped) to y=171. §1.5 (Fix 2): Octagon — stray vertex circle and diagonal endpoints at (140,16) replaced with actual 8th vertex (74,26); corrected two diagonal endpoints accordingly. §2.1 (Fix 12): Pentagon triangulation viewBox 165→178; A₃/A₄ vertex labels at y=166 clipped → moved to y=172; caption moved y=156→y=174. §2.2 (Fix 9): Equilateral triangle was isosceles (sides ~70,66,70); replaced points to make all sides ≈62.4. §2.3 (Fix 3): Nonagon viewBox 160→185; bottom vertices at y=170 were clipped; caption moved to y=180. §3.1 (Fix 10): Fixed misleading comment ("beyond A" → "beyond B"). §3.2 (Fix 4): Hexagon external angle extension line and arc were outside viewBox width=280; redesigned to extend upward within bounds; viewBox height expanded to 172. §4.2 (Fix 5): Parallelogram angle arcs — C and D arcs were completely swapped (drawn at each other's vertices); recalculated all arc endpoints from unit vectors along polygon sides. §4.3 (Fix 6): Side labels 8 and 5 swapped on example parallelogram (AB=CD=8, BC=DA=5); corrected positions. §4.3 (Fix 7): Angle arcs at A and C misplaced; recalculated endpoints to correctly span each corner angle. §6.1 (Fix 8): Признак 2 SVG used undefined marker #arr causing invisible arrows; replaced with inline tick + polyline chevron marks. Co-Authored-By: Claude Sonnet 4.6 --- frontend/textbooks/geometry_8_ch1.html | 89 ++++++++++++++------------ 1 file changed, 48 insertions(+), 41 deletions(-) diff --git a/frontend/textbooks/geometry_8_ch1.html b/frontend/textbooks/geometry_8_ch1.html index 3970685..995fc2c 100644 --- a/frontend/textbooks/geometry_8_ch1.html +++ b/frontend/textbooks/geometry_8_ch1.html @@ -757,7 +757,7 @@ function buildP1(){

Многоугольник — это замкнутая ломаная без самопересечений. Она делит плоскость на внутреннюю часть (многоугольник) и внешнюю.

Элементы: вершины (точки излома), стороны (звенья ломаной), углы (при каждой вершине).

Названия: 3 стороны — треугольник, 4 — четырёхугольник, 5 — пятиугольник, 6 — шестиугольник, …, n — n-угольник.

-
+
@@ -812,20 +812,23 @@ function buildP1(){
$n$34567810
Диагоналей0259142035
-
+
- + + + + - n=6: D=6(6-3)/2=9 диагоналей + n=6: D=6(6-3)/2=9 диагоналей
`); html += makeCard('rule','Периметр','1.4',` @@ -861,17 +864,17 @@ function buildP1(){
- - - + + + - + - + @@ -1217,7 +1220,7 @@ function buildP2(){
$n$34567810
Сумма углов$180°$$360°$$540°$$720°$$900°$$1080°$$1440°$
-
+
@@ -1240,10 +1243,10 @@ function buildP2(){ A₁ A₂ - A₃ - A₄ + A₃ + A₄ A₅ - n=5: (5-2)·180°=540° + n=5: (5-2)·180°=540°
`); html += makeCard('rule','Правильный многоугольник','2.2',` @@ -1263,7 +1266,7 @@ function buildP2(){
- + 60°
@@ -1283,7 +1286,7 @@ function buildP2(){ html += makeCard('example','Примеры','2.3',`

Один угол девятиугольника. $n=9$: сумма $= (9-2)\\cdot 180°=7\\cdot 180°=1260°$. Один угол правильного 9-угольника: $1260°/9=140°$.

Найти n по сумме углов. Сумма $=1440°$: $(n-2)\\cdot 180°=1440° \\Rightarrow n-2=8 \\Rightarrow n=10$. Ответ: десятиугольник.

-
+
@@ -1293,7 +1296,7 @@ function buildP2(){ A - n=9: (9-2)·180°/9 = 140° + n=9: (9-2)·180°/9 = 140°
`); /* --- INTERACTIVE 1: Анимация триангуляции --- */ @@ -1512,7 +1515,7 @@ function buildP3(){
- + @@ -1538,15 +1541,15 @@ function buildP3(){ \\[\\beta = \\dfrac{360^{\\circ}}{n}\\]

Внутренний угол: $\\alpha = 180° - \\dfrac{360°}{n} = \\dfrac{(n-2)\\cdot 180°}{n}$.

Отсюда: зная внешний угол $\\beta$, можно найти $n = \\dfrac{360°}{\\beta}$.

-
+
- - - - - - 60° + + + + + + 60° @@ -1555,7 +1558,7 @@ function buildP3(){ - n=6: β=360°/6=60° + n=6: β=360°/6=60°
`); html += makeCard('example','Примеры','3.3',` @@ -1879,14 +1882,14 @@ function buildP4(){ - - α - - α + + α + + α β - - β + + β @@ -1907,19 +1910,19 @@ function buildP4(){
- 8 - 8 - 5 - 5 + 8 + 5 + 8 + 5 P=26
AB=8, BC=5
- - 65° - - 65° + + 65° + + 65° ∠A=∠C=65°
∠B=∠D=115°
@@ -2601,8 +2604,12 @@ function buildP6(){
- - + + + + + + Признак 2