@r_masseater/tako 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/package.json +1 -1
- package/skills/draw-infographic/SKILL.md +30 -11
- package/skills/draw-infographic/assets/annotated.dark.svg +81 -0
- package/skills/draw-infographic/assets/annotated.light.svg +81 -0
- package/skills/draw-infographic/assets/annotated.typ +16 -0
- package/skills/draw-infographic/assets/bars.dark.svg +81 -0
- package/skills/draw-infographic/assets/bars.light.svg +81 -0
- package/skills/draw-infographic/assets/bars.typ +6 -0
- package/skills/draw-infographic/assets/cycle.dark.svg +81 -0
- package/skills/draw-infographic/assets/cycle.light.svg +81 -0
- package/skills/draw-infographic/assets/cycle.typ +12 -0
- package/skills/draw-infographic/assets/flow.dark.svg +81 -0
- package/skills/draw-infographic/assets/flow.light.svg +81 -0
- package/skills/draw-infographic/assets/flow.typ +11 -0
- package/skills/draw-infographic/assets/fork.dark.svg +81 -0
- package/skills/draw-infographic/assets/fork.light.svg +81 -0
- package/skills/draw-infographic/assets/fork.typ +9 -0
- package/skills/draw-infographic/assets/funnel.dark.svg +81 -0
- package/skills/draw-infographic/assets/funnel.light.svg +81 -0
- package/skills/draw-infographic/assets/funnel.typ +4 -0
- package/skills/draw-infographic/assets/isotype.dark.svg +81 -0
- package/skills/draw-infographic/assets/isotype.light.svg +81 -0
- package/skills/draw-infographic/assets/isotype.typ +3 -0
- package/skills/draw-infographic/assets/nested.dark.svg +81 -0
- package/skills/draw-infographic/assets/nested.light.svg +81 -0
- package/skills/draw-infographic/assets/nested.typ +6 -0
- package/skills/draw-infographic/assets/quadrant.dark.svg +81 -0
- package/skills/draw-infographic/assets/quadrant.light.svg +81 -0
- package/skills/draw-infographic/assets/quadrant.typ +11 -0
- package/skills/draw-infographic/assets/sankey.dark.svg +81 -0
- package/skills/draw-infographic/assets/sankey.light.svg +81 -0
- package/skills/draw-infographic/assets/sankey.typ +7 -0
- package/skills/draw-infographic/assets/stacked.dark.svg +81 -0
- package/skills/draw-infographic/assets/stacked.light.svg +81 -0
- package/skills/draw-infographic/assets/stacked.typ +7 -0
- package/skills/draw-infographic/assets/sysmap.dark.svg +81 -0
- package/skills/draw-infographic/assets/sysmap.light.svg +81 -0
- package/skills/draw-infographic/assets/sysmap.typ +20 -0
- package/skills/draw-infographic/assets/threshold.dark.svg +81 -0
- package/skills/draw-infographic/assets/threshold.light.svg +81 -0
- package/skills/draw-infographic/assets/threshold.typ +7 -0
- package/skills/draw-infographic/assets/timeline.dark.svg +81 -0
- package/skills/draw-infographic/assets/timeline.light.svg +81 -0
- package/skills/draw-infographic/assets/timeline.typ +8 -0
- package/skills/draw-infographic/assets/tree.dark.svg +81 -0
- package/skills/draw-infographic/assets/tree.light.svg +81 -0
- package/skills/draw-infographic/assets/tree.typ +9 -0
- package/skills/draw-infographic/assets/trend.dark.svg +81 -0
- package/skills/draw-infographic/assets/trend.light.svg +81 -0
- package/skills/draw-infographic/assets/trend.typ +7 -0
- package/typ/annotated.typ +30 -0
- package/typ/charts.typ +65 -0
- package/typ/isotype.typ +27 -0
- package/typ/quadrant.typ +33 -0
- package/typ/sysmap.typ +91 -0
- package/typ/tako.typ +4 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<svg style="overflow: visible;" class="typst-doc" viewBox="0 0 594.000 354.000" width="594.000" height="354.000" data-width="594.000" data-height="354.000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:h5="http://www.w3.org/1999/xhtml"><style type="text/css">.typst-text {
|
|
2
|
+
pointer-events: bounding-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.tsel span,
|
|
6
|
+
.tsel {
|
|
7
|
+
left: 0;
|
|
8
|
+
position: fixed;
|
|
9
|
+
text-align: justify;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
text-align-last: justify;
|
|
14
|
+
color: transparent;
|
|
15
|
+
white-space: pre;
|
|
16
|
+
}
|
|
17
|
+
.tsel span::-moz-selection,
|
|
18
|
+
.tsel::-moz-selection {
|
|
19
|
+
color: transparent;
|
|
20
|
+
background: #7db9dea0;
|
|
21
|
+
}
|
|
22
|
+
.tsel span::selection,
|
|
23
|
+
.tsel::selection {
|
|
24
|
+
color: transparent;
|
|
25
|
+
background: #7db9dea0;
|
|
26
|
+
}
|
|
27
|
+
.pseudo-link {
|
|
28
|
+
fill: transparent;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
pointer-events: all;
|
|
31
|
+
}
|
|
32
|
+
svg {
|
|
33
|
+
fill: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.outline_glyph path,
|
|
37
|
+
path.outline_glyph {
|
|
38
|
+
fill: var(--glyph_fill);
|
|
39
|
+
stroke: var(--glyph_stroke);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.outline_glyph path,
|
|
43
|
+
path.outline_glyph {
|
|
44
|
+
transition: 0.2s fill stroke;
|
|
45
|
+
}
|
|
46
|
+
.hover .typst-text {
|
|
47
|
+
--glyph_fill: #66bab7;
|
|
48
|
+
--glyph_stroke: #66bab7;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.typst-jump-ripple,
|
|
52
|
+
.typst-debug-react-ripple {
|
|
53
|
+
width: 0;
|
|
54
|
+
height: 0;
|
|
55
|
+
background-color: transparent;
|
|
56
|
+
position: absolute;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
}
|
|
59
|
+
.typst-jump-ripple {
|
|
60
|
+
border: 1px solid #66bab7;
|
|
61
|
+
}
|
|
62
|
+
.typst-debug-react-ripple {
|
|
63
|
+
border: 1px solid #cb1b45;
|
|
64
|
+
}
|
|
65
|
+
@keyframes typst-jump-ripple-effect {
|
|
66
|
+
to {
|
|
67
|
+
width: 10vw;
|
|
68
|
+
height: 10vw;
|
|
69
|
+
opacity: 0.01;
|
|
70
|
+
margin: -5vw;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@keyframes typst-debug-react-ripple-effect {
|
|
74
|
+
to {
|
|
75
|
+
width: 3vw;
|
|
76
|
+
height: 3vw;
|
|
77
|
+
opacity: 0.01;
|
|
78
|
+
margin: -1.5vw;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style><defs class="glyph"><path id="giF3BfQ8" class="outline_glyph" d="M 139 -13 C 175 -13 205 15 205 56 C 205 98 175 126 139 126 C 102 126 73 98 73 56 C 73 15 102 -13 139 -13 Z "/><path id="giF3BfRE" class="outline_glyph" d="M 278 -13 C 417 -13 506 113 506 369 C 506 623 417 746 278 746 C 138 746 50 623 50 369 C 50 113 138 -13 278 -13 Z M 278 61 C 195 61 138 154 138 369 C 138 583 195 674 278 674 C 361 674 418 583 418 369 C 418 154 361 61 278 61 Z "/><path id="giF3BfRI" class="outline_glyph" d="M 88 0 L 490 0 L 490 76 L 343 76 L 343 733 L 273 733 C 233 710 186 693 121 681 L 121 623 L 252 623 L 252 76 L 88 76 Z "/><path id="giF3BfRM" class="outline_glyph" d="M 44 0 L 505 0 L 505 79 L 302 79 C 265 79 220 75 182 72 C 354 235 470 384 470 531 C 470 661 387 746 256 746 C 163 746 99 704 40 639 L 93 587 C 134 636 185 672 245 672 C 336 672 380 611 380 527 C 380 401 274 255 44 54 Z "/><path id="giF3BfRQ" class="outline_glyph" d="M 263 -13 C 394 -13 499 65 499 196 C 499 297 430 361 344 382 L 344 387 C 422 414 474 474 474 563 C 474 679 384 746 260 746 C 176 746 111 709 56 659 L 105 601 C 147 643 198 672 257 672 C 334 672 381 626 381 556 C 381 477 330 416 178 416 L 178 346 C 348 346 406 288 406 199 C 406 115 345 63 257 63 C 174 63 119 103 76 147 L 29 88 C 77 35 149 -13 263 -13 Z "/><path id="giF3BfRU" class="outline_glyph" d="M 340 0 L 426 0 L 426 202 L 524 202 L 524 275 L 426 275 L 426 733 L 325 733 L 20 262 L 20 202 L 340 202 Z M 340 275 L 115 275 L 282 525 C 303 561 323 598 341 633 L 345 633 C 343 596 340 536 340 500 Z "/><path id="giF3BfRY" class="outline_glyph" d="M 262 -13 C 385 -13 502 78 502 238 C 502 400 402 472 281 472 C 237 472 204 461 171 443 L 190 655 L 466 655 L 466 733 L 110 733 L 86 391 L 135 360 C 177 388 208 403 257 403 C 349 403 409 341 409 236 C 409 129 340 63 253 63 C 168 63 114 102 73 144 L 27 84 C 77 35 147 -13 262 -13 Z "/><path id="giF3BfRg" class="outline_glyph" d="M 198 0 L 293 0 C 305 287 336 458 508 678 L 508 733 L 49 733 L 49 655 L 405 655 C 261 455 211 278 198 0 Z "/><path id="giF3BfRk" class="outline_glyph" d="M 280 -13 C 417 -13 509 70 509 176 C 509 277 450 332 386 369 L 386 374 C 429 408 483 474 483 551 C 483 664 407 744 282 744 C 168 744 81 669 81 558 C 81 481 127 426 180 389 L 180 385 C 113 349 46 280 46 182 C 46 69 144 -13 280 -13 Z M 330 398 C 243 432 164 471 164 558 C 164 629 213 676 281 676 C 359 676 405 619 405 546 C 405 492 379 442 330 398 Z M 281 55 C 193 55 127 112 127 190 C 127 260 169 318 228 356 C 332 314 422 278 422 179 C 422 106 366 55 281 55 Z "/></defs><defs class="clip-path"></defs><style type="text/css"></style><g class="typst-page" transform="translate(0, 0)" data-tid="phsNv8vIM4Yc835o3DTUwv0" data-page-width="594" data-page-height="354"><g data-tid="ghsNv8vIM4Yc835o3DTUwv0" class="typst-group"><g transform="translate(0.000,0.000)" data-tid="pI1wqNx18LM0JRbAWiyulH4"><g data-tid="gI1wqNx18LM0JRbAWiyulH4"><path class="typst-shape" d="M 0 0 L 0 353.44012 L 593.4401 353.44012 L 593.4401 0 Z " fill-rule="nonzero" fill="#14181c" /></g></g><g transform="translate(24.000,24.000)" data-tid="pj/1GwZXM9HMUZjOSfcCYyM"><g data-tid="gj/1GwZXM9HMUZjOSfcCYyM" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pgS0RHm/b0qUwawpFRHWGz0"><g data-tid="ggS0RHm/b0qUwawpFRHWGz0"><path class="typst-shape" d="M 0 0 L 0 305.44012 L 545.4401 305.44012 L 545.4401 0 Z " fill-rule="nonzero" fill="#14181c" /></g></g><g transform="translate(12.720,12.720)" data-tid="pJaetKFWlmq80O/2DcRs0Z8"><g data-tid="gJaetKFWlmq80O/2DcRs0Z8" class="typst-group"><g transform="translate(0.000,0.000)" data-tid="pCYtmUCKl95s2J+hN4sA7xg"><g data-tid="gCYtmUCKl95s2J+hN4sA7xg" class="typst-group"><g transform="translate(0.000,0.000)" data-tid="pvqDrCfp5qaAu1qTCp61SVA"><g data-tid="gvqDrCfp5qaAu1qTCp61SVA"><path class="typst-shape" d="M 0 0 M 37.999096 249.15411 L 153.16205 231.19699 L 268.325 208.75056 L 383.48795 142.90775 L 498.6509 32.172096 " stroke-width="2.8125" stroke-miterlimit="4" stroke-linecap="round" stroke-linejoin="round" fill-rule="nonzero" fill="none" stroke="#ed7940" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(35.999,247.154)" data-tid="pkVfI2tOEwPIqyD/UQ2xVBQ"><g data-tid="gkVfI2tOEwPIqyD/UQ2xVBQ" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pII7Gx5isdVo7yA4X57eIUY"><g data-tid="gII7Gx5isdVo7yA4X57eIUY"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#ed7940" stroke="#14181c" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(-19.582,239.293)" data-tid="pXkmybRb5t1QIFxduBz+TTo"><g data-tid="gXkmybRb5t1QIFxduBz+TTo" class="typst-group"><g transform="translate(44.340,0.000)" data-tid="pEau7hj9rMIQ4nESqanOyDs"><g data-tid="gEau7hj9rMIQ4nESqanOyDs" class="typst-text" fill="#e8ecef" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRE"/><use x="555" y="0" href="#giF3BfQ8"/><use x="833" y="0" href="#giF3BfRQ"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="86.75" height="62.50"><h5:div class="tsel" style="font-size: 62px">0.3</h5:div></foreignObject></g></g></g></g></g><g transform="translate(151.162,229.197)" data-tid="pkVfI2tOEwPIqyD/UQ2xVBQ"><g data-tid="gkVfI2tOEwPIqyD/UQ2xVBQ" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pII7Gx5isdVo7yA4X57eIUY"><g data-tid="gII7Gx5isdVo7yA4X57eIUY"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#ed7940" stroke="#14181c" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(95.581,221.335)" data-tid="pX1T5VQ/V8cExsLziBVYSmg"><g data-tid="gX1T5VQ/V8cExsLziBVYSmg" class="typst-group"><g transform="translate(44.340,0.000)" data-tid="pTgnDoah16tQQJwDrmYWfC0"><g data-tid="gTgnDoah16tQQJwDrmYWfC0" class="typst-text" fill="#e8ecef" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfQ8"/><use x="833" y="0" href="#giF3BfRY"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="86.75" height="62.50"><h5:div class="tsel" style="font-size: 62px">1.5</h5:div></foreignObject></g></g></g></g></g><g transform="translate(266.325,206.751)" data-tid="pkVfI2tOEwPIqyD/UQ2xVBQ"><g data-tid="gkVfI2tOEwPIqyD/UQ2xVBQ" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pII7Gx5isdVo7yA4X57eIUY"><g data-tid="gII7Gx5isdVo7yA4X57eIUY"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#ed7940" stroke="#14181c" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(210.744,198.889)" data-tid="pv0G3CnljPasH6hmlFFM8W4"><g data-tid="gv0G3CnljPasH6hmlFFM8W4" class="typst-group"><g transform="translate(52.287,0.000)" data-tid="pI6gviWOUw2AxTsw5I3Ml/c"><g data-tid="gI6gviWOUw2AxTsw5I3Ml/c" class="typst-text" fill="#e8ecef" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRQ"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="34.69" height="62.50"><h5:div class="tsel" style="font-size: 62px">3</h5:div></foreignObject></g></g></g></g></g><g transform="translate(381.488,140.908)" data-tid="pkVfI2tOEwPIqyD/UQ2xVBQ"><g data-tid="gkVfI2tOEwPIqyD/UQ2xVBQ" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pII7Gx5isdVo7yA4X57eIUY"><g data-tid="gII7Gx5isdVo7yA4X57eIUY"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#ed7940" stroke="#14181c" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(325.906,133.046)" data-tid="py3R4gTmt1g8wDu7Yzxd144"><g data-tid="gy3R4gTmt1g8wDu7Yzxd144" class="typst-group"><g transform="translate(44.340,0.000)" data-tid="pEEhZgKR0VAoDCp0gkXkpq0"><g data-tid="gEEhZgKR0VAoDCp0gkXkpq0" class="typst-text" fill="#e8ecef" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRg"/><use x="555" y="0" href="#giF3BfQ8"/><use x="833" y="0" href="#giF3BfRU"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="86.75" height="62.50"><h5:div class="tsel" style="font-size: 62px">7.4</h5:div></foreignObject></g></g></g></g></g><g transform="translate(496.651,30.172)" data-tid="pkVfI2tOEwPIqyD/UQ2xVBQ"><g data-tid="gkVfI2tOEwPIqyD/UQ2xVBQ" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pII7Gx5isdVo7yA4X57eIUY"><g data-tid="gII7Gx5isdVo7yA4X57eIUY"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#ed7940" stroke="#14181c" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(441.069,22.310)" data-tid="p42fbGJ49anARv3WkiV/acY"><g data-tid="g42fbGJ49anARv3WkiV/acY" class="typst-group"><g transform="translate(39.045,0.000)" data-tid="pepYEXmuZJ3Az7+WoaOxqXg"><g data-tid="gepYEXmuZJ3Az7+WoaOxqXg" class="typst-text" fill="#e8ecef" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRU"/><use x="1110" y="0" href="#giF3BfQ8"/><use x="1388" y="0" href="#giF3BfRk"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="121.44" height="62.50"><h5:div class="tsel" style="font-size: 62px">14.8</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,0.000)" data-tid="pTjubf4uvnPkmKwhpR3KlHg"><g data-tid="gTjubf4uvnPkmKwhpR3KlHg" class="typst-group"><g transform="translate(24.512,256.643)" data-tid="pPtmJbrTAh5wHlmjHP0JrGU"><g data-tid="gPtmJbrTAh5wHlmjHP0JrGU"><path class="typst-shape" d="M 0 0 L 487.6268 0 " stroke-width="1" stroke-miterlimit="4" fill-rule="nonzero" fill="none" stroke="#3a444e" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(0.000,0.000)" data-tid="pPKx7gLwHAicS6UM/EsYY2Y"><g data-tid="gPKx7gLwHAicS6UM/EsYY2Y" class="typst-group"><g transform="translate(24.512,26.179)" data-tid="pEMBuFOB0DbIuBwtXv4+JIo"><g data-tid="gEMBuFOB0DbIuBwtXv4+JIo"><path class="typst-shape" d="M 0 0 L 0 230.46416 " stroke-width="1" stroke-miterlimit="4" fill-rule="nonzero" fill="none" stroke="#3a444e" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(0.000,253.643)" data-tid="pi1UGPbaJWBwSWXZ3yzkz9Y"><g data-tid="gi1UGPbaJWBwSWXZ3yzkz9Y" class="typst-group"><g transform="translate(8.325,5.497)" data-tid="pdMHGIYlbyrUnS8dTaXK6sc"><g data-tid="gdMHGIYlbyrUnS8dTaXK6sc" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="34.69" height="62.50"><h5:div class="tsel" style="font-size: 62px">0</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,178.822)" data-tid="pN/GsAt5iPD4+8lhXaq/tgk"><g data-tid="gN/GsAt5iPD4+8lhXaq/tgk" class="typst-group"><g transform="translate(8.325,5.497)" data-tid="pVuKryEK48SgSDds6ffBK40"><g data-tid="gVuKryEK48SgSDds6ffBK40" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRY"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="34.69" height="62.50"><h5:div class="tsel" style="font-size: 62px">5</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,104.001)" data-tid="pQqtkbwXOnBs43AaFvxesjw"><g data-tid="gQqtkbwXOnBs43AaFvxesjw" class="typst-group"><g transform="translate(0.000,5.497)" data-tid="poN73wpzejGYDjrHCvkuZao"><g data-tid="goN73wpzejGYDjrHCvkuZao" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">10</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,29.179)" data-tid="ptlxFakeTuDgLGhQLuQkbYs"><g data-tid="gtlxFakeTuDgLGhQLuQkbYs" class="typst-group"><g transform="translate(0.000,5.497)" data-tid="p2UXQq2aUs6IkWDbKcMnFYg"><g data-tid="g2UXQq2aUs6IkWDbKcMnFYg" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRY"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">15</h5:div></foreignObject></g></g></g></g></g><g transform="translate(29.674,264.505)" data-tid="pF5lWiOUSu+M9Cw3YycHmSE"><g data-tid="gF5lWiOUSu+M9Cw3YycHmSE" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="poN73wpzejGYDjrHCvkuZao"><g data-tid="goN73wpzejGYDjrHCvkuZao" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">10</h5:div></foreignObject></g></g></g></g></g><g transform="translate(144.837,264.505)" data-tid="pGRPhDsV2e0IWjoNRAKrDks"><g data-tid="gGRPhDsV2e0IWjoNRAKrDks" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="pTMFVwx8KnwUtf7oyUR8qkQ"><g data-tid="gTMFVwx8KnwUtf7oyUR8qkQ" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRY"/><use x="555" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">50</h5:div></foreignObject></g></g></g></g></g><g transform="translate(255.837,264.505)" data-tid="piSf5uztNlogXhUtUWA0vHE"><g data-tid="giSf5uztNlogXhUtUWA0vHE" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="pyvnI45Xkl7UwVY7iCcUmcA"><g data-tid="gyvnI45Xkl7UwVY7iCcUmcA" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRE"/><use x="1110" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="104.06" height="62.50"><h5:div class="tsel" style="font-size: 62px">100</h5:div></foreignObject></g></g></g></g></g><g transform="translate(371.000,264.505)" data-tid="pZ6abC/Ptqtk08yVTdyFk50"><g data-tid="gZ6abC/Ptqtk08yVTdyFk50" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="p+57NvvvfqIcOEj/vC922HI"><g data-tid="g+57NvvvfqIcOEj/vC922HI" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRM"/><use x="555" y="0" href="#giF3BfRY"/><use x="1110" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="104.06" height="62.50"><h5:div class="tsel" style="font-size: 62px">250</h5:div></foreignObject></g></g></g></g></g><g transform="translate(486.163,264.505)" data-tid="pYZiH9NmvvDg19Lw5w2Mr30"><g data-tid="gYZiH9NmvvDg19Lw5w2Mr30" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="pEkG+LgTtNEorpnXhtamzvs"><g data-tid="gEkG+LgTtNEorpnXhtamzvs" class="typst-text" fill="#e8ecef" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRY"/><use x="555" y="0" href="#giF3BfRE"/><use x="1110" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="104.06" height="62.50"><h5:div class="tsel" style="font-size: 62px">500</h5:div></foreignObject></g></g></g></g></g></g></g></g></g></g></g></svg>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<svg style="overflow: visible;" class="typst-doc" viewBox="0 0 594.000 354.000" width="594.000" height="354.000" data-width="594.000" data-height="354.000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:h5="http://www.w3.org/1999/xhtml"><style type="text/css">.typst-text {
|
|
2
|
+
pointer-events: bounding-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.tsel span,
|
|
6
|
+
.tsel {
|
|
7
|
+
left: 0;
|
|
8
|
+
position: fixed;
|
|
9
|
+
text-align: justify;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
text-align-last: justify;
|
|
14
|
+
color: transparent;
|
|
15
|
+
white-space: pre;
|
|
16
|
+
}
|
|
17
|
+
.tsel span::-moz-selection,
|
|
18
|
+
.tsel::-moz-selection {
|
|
19
|
+
color: transparent;
|
|
20
|
+
background: #7db9dea0;
|
|
21
|
+
}
|
|
22
|
+
.tsel span::selection,
|
|
23
|
+
.tsel::selection {
|
|
24
|
+
color: transparent;
|
|
25
|
+
background: #7db9dea0;
|
|
26
|
+
}
|
|
27
|
+
.pseudo-link {
|
|
28
|
+
fill: transparent;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
pointer-events: all;
|
|
31
|
+
}
|
|
32
|
+
svg {
|
|
33
|
+
fill: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.outline_glyph path,
|
|
37
|
+
path.outline_glyph {
|
|
38
|
+
fill: var(--glyph_fill);
|
|
39
|
+
stroke: var(--glyph_stroke);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.outline_glyph path,
|
|
43
|
+
path.outline_glyph {
|
|
44
|
+
transition: 0.2s fill stroke;
|
|
45
|
+
}
|
|
46
|
+
.hover .typst-text {
|
|
47
|
+
--glyph_fill: #66bab7;
|
|
48
|
+
--glyph_stroke: #66bab7;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.typst-jump-ripple,
|
|
52
|
+
.typst-debug-react-ripple {
|
|
53
|
+
width: 0;
|
|
54
|
+
height: 0;
|
|
55
|
+
background-color: transparent;
|
|
56
|
+
position: absolute;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
}
|
|
59
|
+
.typst-jump-ripple {
|
|
60
|
+
border: 1px solid #66bab7;
|
|
61
|
+
}
|
|
62
|
+
.typst-debug-react-ripple {
|
|
63
|
+
border: 1px solid #cb1b45;
|
|
64
|
+
}
|
|
65
|
+
@keyframes typst-jump-ripple-effect {
|
|
66
|
+
to {
|
|
67
|
+
width: 10vw;
|
|
68
|
+
height: 10vw;
|
|
69
|
+
opacity: 0.01;
|
|
70
|
+
margin: -5vw;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@keyframes typst-debug-react-ripple-effect {
|
|
74
|
+
to {
|
|
75
|
+
width: 3vw;
|
|
76
|
+
height: 3vw;
|
|
77
|
+
opacity: 0.01;
|
|
78
|
+
margin: -1.5vw;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style><defs class="glyph"><path id="giF3BfQ8" class="outline_glyph" d="M 139 -13 C 175 -13 205 15 205 56 C 205 98 175 126 139 126 C 102 126 73 98 73 56 C 73 15 102 -13 139 -13 Z "/><path id="giF3BfRE" class="outline_glyph" d="M 278 -13 C 417 -13 506 113 506 369 C 506 623 417 746 278 746 C 138 746 50 623 50 369 C 50 113 138 -13 278 -13 Z M 278 61 C 195 61 138 154 138 369 C 138 583 195 674 278 674 C 361 674 418 583 418 369 C 418 154 361 61 278 61 Z "/><path id="giF3BfRI" class="outline_glyph" d="M 88 0 L 490 0 L 490 76 L 343 76 L 343 733 L 273 733 C 233 710 186 693 121 681 L 121 623 L 252 623 L 252 76 L 88 76 Z "/><path id="giF3BfRM" class="outline_glyph" d="M 44 0 L 505 0 L 505 79 L 302 79 C 265 79 220 75 182 72 C 354 235 470 384 470 531 C 470 661 387 746 256 746 C 163 746 99 704 40 639 L 93 587 C 134 636 185 672 245 672 C 336 672 380 611 380 527 C 380 401 274 255 44 54 Z "/><path id="giF3BfRQ" class="outline_glyph" d="M 263 -13 C 394 -13 499 65 499 196 C 499 297 430 361 344 382 L 344 387 C 422 414 474 474 474 563 C 474 679 384 746 260 746 C 176 746 111 709 56 659 L 105 601 C 147 643 198 672 257 672 C 334 672 381 626 381 556 C 381 477 330 416 178 416 L 178 346 C 348 346 406 288 406 199 C 406 115 345 63 257 63 C 174 63 119 103 76 147 L 29 88 C 77 35 149 -13 263 -13 Z "/><path id="giF3BfRU" class="outline_glyph" d="M 340 0 L 426 0 L 426 202 L 524 202 L 524 275 L 426 275 L 426 733 L 325 733 L 20 262 L 20 202 L 340 202 Z M 340 275 L 115 275 L 282 525 C 303 561 323 598 341 633 L 345 633 C 343 596 340 536 340 500 Z "/><path id="giF3BfRY" class="outline_glyph" d="M 262 -13 C 385 -13 502 78 502 238 C 502 400 402 472 281 472 C 237 472 204 461 171 443 L 190 655 L 466 655 L 466 733 L 110 733 L 86 391 L 135 360 C 177 388 208 403 257 403 C 349 403 409 341 409 236 C 409 129 340 63 253 63 C 168 63 114 102 73 144 L 27 84 C 77 35 147 -13 262 -13 Z "/><path id="giF3BfRg" class="outline_glyph" d="M 198 0 L 293 0 C 305 287 336 458 508 678 L 508 733 L 49 733 L 49 655 L 405 655 C 261 455 211 278 198 0 Z "/><path id="giF3BfRk" class="outline_glyph" d="M 280 -13 C 417 -13 509 70 509 176 C 509 277 450 332 386 369 L 386 374 C 429 408 483 474 483 551 C 483 664 407 744 282 744 C 168 744 81 669 81 558 C 81 481 127 426 180 389 L 180 385 C 113 349 46 280 46 182 C 46 69 144 -13 280 -13 Z M 330 398 C 243 432 164 471 164 558 C 164 629 213 676 281 676 C 359 676 405 619 405 546 C 405 492 379 442 330 398 Z M 281 55 C 193 55 127 112 127 190 C 127 260 169 318 228 356 C 332 314 422 278 422 179 C 422 106 366 55 281 55 Z "/></defs><defs class="clip-path"></defs><style type="text/css"></style><g class="typst-page" transform="translate(0, 0)" data-tid="paBua1normqkbMw3+ZGUKtg" data-page-width="594" data-page-height="354"><g data-tid="gaBua1normqkbMw3+ZGUKtg" class="typst-group"><g transform="translate(0.000,0.000)" data-tid="pxrp0nFQ27uI2mMJHj4YarM"><g data-tid="gxrp0nFQ27uI2mMJHj4YarM"><path class="typst-shape" d="M 0 0 L 0 353.44012 L 593.4401 353.44012 L 593.4401 0 Z " fill-rule="nonzero" fill="#fff" /></g></g><g transform="translate(24.000,24.000)" data-tid="p/79DFC8A62obvS4778FyTU"><g data-tid="g/79DFC8A62obvS4778FyTU" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pQ4ixicESdykNfvBO+7GG5s"><g data-tid="gQ4ixicESdykNfvBO+7GG5s"><path class="typst-shape" d="M 0 0 L 0 305.44012 L 545.4401 305.44012 L 545.4401 0 Z " fill-rule="nonzero" fill="#fff" /></g></g><g transform="translate(12.720,12.720)" data-tid="pAQ9Z+yH8wKg330Yv6U73OM"><g data-tid="gAQ9Z+yH8wKg330Yv6U73OM" class="typst-group"><g transform="translate(0.000,0.000)" data-tid="pNN8szSu/kn8aibIngGkSuo"><g data-tid="gNN8szSu/kn8aibIngGkSuo" class="typst-group"><g transform="translate(0.000,0.000)" data-tid="pPjw2eRl5fCYFTrXdHNvihQ"><g data-tid="gPjw2eRl5fCYFTrXdHNvihQ"><path class="typst-shape" d="M 0 0 M 37.999096 249.15411 L 153.16205 231.19699 L 268.325 208.75056 L 383.48795 142.90775 L 498.6509 32.172096 " stroke-width="2.8125" stroke-miterlimit="4" stroke-linecap="round" stroke-linejoin="round" fill-rule="nonzero" fill="none" stroke="#d16022" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(35.999,247.154)" data-tid="pvfDWY8R/nucM8ARVvdsOY4"><g data-tid="gvfDWY8R/nucM8ARVvdsOY4" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pTEXpnnishJk1BSD63kcF2I"><g data-tid="gTEXpnnishJk1BSD63kcF2I"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#d16022" stroke="#fff" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(-19.582,239.293)" data-tid="pjb0DEDE5kaYynHpnmwkGhA"><g data-tid="gjb0DEDE5kaYynHpnmwkGhA" class="typst-group"><g transform="translate(44.340,0.000)" data-tid="pkZwoZgQrfvY8BNqYsA8dnk"><g data-tid="gkZwoZgQrfvY8BNqYsA8dnk" class="typst-text" fill="#1f2933" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRE"/><use x="555" y="0" href="#giF3BfQ8"/><use x="833" y="0" href="#giF3BfRQ"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="86.75" height="62.50"><h5:div class="tsel" style="font-size: 62px">0.3</h5:div></foreignObject></g></g></g></g></g><g transform="translate(151.162,229.197)" data-tid="pvfDWY8R/nucM8ARVvdsOY4"><g data-tid="gvfDWY8R/nucM8ARVvdsOY4" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pTEXpnnishJk1BSD63kcF2I"><g data-tid="gTEXpnnishJk1BSD63kcF2I"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#d16022" stroke="#fff" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(95.581,221.335)" data-tid="p3nKgXyjQ+5ksK6scgo+mRg"><g data-tid="g3nKgXyjQ+5ksK6scgo+mRg" class="typst-group"><g transform="translate(44.340,0.000)" data-tid="pqEs3ugaO+po5XbZMmRGBmw"><g data-tid="gqEs3ugaO+po5XbZMmRGBmw" class="typst-text" fill="#1f2933" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfQ8"/><use x="833" y="0" href="#giF3BfRY"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="86.75" height="62.50"><h5:div class="tsel" style="font-size: 62px">1.5</h5:div></foreignObject></g></g></g></g></g><g transform="translate(266.325,206.751)" data-tid="pvfDWY8R/nucM8ARVvdsOY4"><g data-tid="gvfDWY8R/nucM8ARVvdsOY4" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pTEXpnnishJk1BSD63kcF2I"><g data-tid="gTEXpnnishJk1BSD63kcF2I"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#d16022" stroke="#fff" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(210.744,198.889)" data-tid="pPLitnRBhAU84S7oNyqhCPU"><g data-tid="gPLitnRBhAU84S7oNyqhCPU" class="typst-group"><g transform="translate(52.287,0.000)" data-tid="p5HeZWkB3U+4yXRJtK038NQ"><g data-tid="g5HeZWkB3U+4yXRJtK038NQ" class="typst-text" fill="#1f2933" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRQ"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="34.69" height="62.50"><h5:div class="tsel" style="font-size: 62px">3</h5:div></foreignObject></g></g></g></g></g><g transform="translate(381.488,140.908)" data-tid="pvfDWY8R/nucM8ARVvdsOY4"><g data-tid="gvfDWY8R/nucM8ARVvdsOY4" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pTEXpnnishJk1BSD63kcF2I"><g data-tid="gTEXpnnishJk1BSD63kcF2I"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#d16022" stroke="#fff" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(325.906,133.046)" data-tid="pVggf02jkLwQ4Gj4m4Vjx34"><g data-tid="gVggf02jkLwQ4Gj4m4Vjx34" class="typst-group"><g transform="translate(44.340,0.000)" data-tid="pHondprTWS90MBl3b5TeUyY"><g data-tid="gHondprTWS90MBl3b5TeUyY" class="typst-text" fill="#1f2933" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRg"/><use x="555" y="0" href="#giF3BfQ8"/><use x="833" y="0" href="#giF3BfRU"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="86.75" height="62.50"><h5:div class="tsel" style="font-size: 62px">7.4</h5:div></foreignObject></g></g></g></g></g><g transform="translate(496.651,30.172)" data-tid="pvfDWY8R/nucM8ARVvdsOY4"><g data-tid="gvfDWY8R/nucM8ARVvdsOY4" class="typst-group"><g transform="translate(-0.000,-0.000)" data-tid="pTEXpnnishJk1BSD63kcF2I"><g data-tid="gTEXpnnishJk1BSD63kcF2I"><path class="typst-shape" d="M 0 0 M 0 2 C 0 0.896432 0.896432 0 2 0 C 3.103568 0 4 0.896432 4 2 C 4 3.103568 3.103568 4 2 4 C 0.896432 4 0 3.103568 0 2 " stroke-width="2" stroke-miterlimit="4" fill-rule="nonzero" fill="#d16022" stroke="#fff" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(441.069,22.310)" data-tid="p3GGsdcXm5bgWOMQ2KKAmao"><g data-tid="g3GGsdcXm5bgWOMQ2KKAmao" class="typst-group"><g transform="translate(39.045,0.000)" data-tid="pu0T9Uwm862QoAfRVy/+ZhA"><g data-tid="gu0T9Uwm862QoAfRVy/+ZhA" class="typst-text" fill="#1f2933" transform="scale(0.019080095,-0.019080095)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRU"/><use x="1110" y="0" href="#giF3BfQ8"/><use x="1388" y="0" href="#giF3BfRk"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="121.44" height="62.50"><h5:div class="tsel" style="font-size: 62px">14.8</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,0.000)" data-tid="p+WU+BhvzP+kGBVHJ46xwYE"><g data-tid="g+WU+BhvzP+kGBVHJ46xwYE" class="typst-group"><g transform="translate(24.512,256.643)" data-tid="pZaIyceMIMKQA6qpE+Fa8qE"><g data-tid="gZaIyceMIMKQA6qpE+Fa8qE"><path class="typst-shape" d="M 0 0 L 487.6268 0 " stroke-width="1" stroke-miterlimit="4" fill-rule="nonzero" fill="none" stroke="#c7d0d9" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(0.000,0.000)" data-tid="pH8JSd895zjoC7W2IflgG8E"><g data-tid="gH8JSd895zjoC7W2IflgG8E" class="typst-group"><g transform="translate(24.512,26.179)" data-tid="paNpGaegpGQAyqUo+0aobAU"><g data-tid="gaNpGaegpGQAyqUo+0aobAU"><path class="typst-shape" d="M 0 0 L 0 230.46416 " stroke-width="1" stroke-miterlimit="4" fill-rule="nonzero" fill="none" stroke="#c7d0d9" /></g></g><g transform="translate(0.000,0.000)" data-tid="p+nF9nphQ3U0gANvmKrhITw"><g data-tid="g+nF9nphQ3U0gANvmKrhITw" class="typst-content-hint" data-hint="a"></g></g></g></g><g transform="translate(0.000,253.643)" data-tid="pWUZagtL2UhEcDTlR8HMf+g"><g data-tid="gWUZagtL2UhEcDTlR8HMf+g" class="typst-group"><g transform="translate(8.325,5.497)" data-tid="psZT+s6Z0NnInZ4mZejbWVA"><g data-tid="gsZT+s6Z0NnInZ4mZejbWVA" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="34.69" height="62.50"><h5:div class="tsel" style="font-size: 62px">0</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,178.822)" data-tid="pbyDWu28i2GM+cmDg0p5cSI"><g data-tid="gbyDWu28i2GM+cmDg0p5cSI" class="typst-group"><g transform="translate(8.325,5.497)" data-tid="pQyY0tH0GSbo9Kjx66e3FbQ"><g data-tid="gQyY0tH0GSbo9Kjx66e3FbQ" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRY"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="34.69" height="62.50"><h5:div class="tsel" style="font-size: 62px">5</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,104.001)" data-tid="pv+aePKA4nLcVCEohpv44dw"><g data-tid="gv+aePKA4nLcVCEohpv44dw" class="typst-group"><g transform="translate(0.000,5.497)" data-tid="pVLOmNDG7+aMcTHn+ZYoqcw"><g data-tid="gVLOmNDG7+aMcTHn+ZYoqcw" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">10</h5:div></foreignObject></g></g></g></g></g><g transform="translate(0.000,29.179)" data-tid="pc4m3qs5gS/MhtvhKck4ecI"><g data-tid="gc4m3qs5gS/MhtvhKck4ecI" class="typst-group"><g transform="translate(0.000,5.497)" data-tid="pv/TF/9TODQkHBilc3a+9Po"><g data-tid="gv/TF/9TODQkHBilc3a+9Po" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRY"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">15</h5:div></foreignObject></g></g></g></g></g><g transform="translate(29.674,264.505)" data-tid="pbyRIxJauvGU0nwusdRkyxI"><g data-tid="gbyRIxJauvGU0nwusdRkyxI" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="pVLOmNDG7+aMcTHn+ZYoqcw"><g data-tid="gVLOmNDG7+aMcTHn+ZYoqcw" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">10</h5:div></foreignObject></g></g></g></g></g><g transform="translate(144.837,264.505)" data-tid="p9MY3FKpoDzMr8Z25L0+/7Y"><g data-tid="g9MY3FKpoDzMr8Z25L0+/7Y" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="pf9KASxipx9cczIs/IKtzCk"><g data-tid="gf9KASxipx9cczIs/IKtzCk" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRY"/><use x="555" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="69.38" height="62.50"><h5:div class="tsel" style="font-size: 62px">50</h5:div></foreignObject></g></g></g></g></g><g transform="translate(255.837,264.505)" data-tid="p4+62uwMM85kzMyeyRY/b4k"><g data-tid="g4+62uwMM85kzMyeyRY/b4k" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="puzF5+ohXXbs3oOXSnbCPHs"><g data-tid="guzF5+ohXXbs3oOXSnbCPHs" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRI"/><use x="555" y="0" href="#giF3BfRE"/><use x="1110" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="104.06" height="62.50"><h5:div class="tsel" style="font-size: 62px">100</h5:div></foreignObject></g></g></g></g></g><g transform="translate(371.000,264.505)" data-tid="pRxJ8zaOQ9PojZjjsg086Wc"><g data-tid="gRxJ8zaOQ9PojZjjsg086Wc" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="pgt4/9LdHM2MIPk7/n2CrjU"><g data-tid="ggt4/9LdHM2MIPk7/n2CrjU" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRM"/><use x="555" y="0" href="#giF3BfRY"/><use x="1110" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="104.06" height="62.50"><h5:div class="tsel" style="font-size: 62px">250</h5:div></foreignObject></g></g></g></g></g><g transform="translate(486.163,264.505)" data-tid="pA0sbbpEwH8EctQarj7rTLI"><g data-tid="gA0sbbpEwH8EctQarj7rTLI" class="typst-group"><g transform="translate(0.000,10.995)" data-tid="pnxUj7Z0CZkkVbEfxysdGUE"><g data-tid="gnxUj7Z0CZkkVbEfxysdGUE" class="typst-text" fill="#1f2933" transform="scale(0.015,-0.015)"><use x="0" y="0" href="#giF3BfRY"/><use x="555" y="0" href="#giF3BfRE"/><use x="1110" y="0" href="#giF3BfRE"/><g transform="scale(16,-16)"><foreignObject x="0" y="-55.00" width="104.06" height="62.50"><h5:div class="tsel" style="font-size: 62px">500</h5:div></foreignObject></g></g></g></g></g></g></g></g></g></g></g></svg>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#import "theme.typ": tokens, kinds
|
|
2
|
+
|
|
3
|
+
#let annotated(picture: none, notes: (), gap: 56pt, note-width: 220pt) = context {
|
|
4
|
+
let m = measure(picture)
|
|
5
|
+
let left-notes = notes.filter(n => n.side == "left")
|
|
6
|
+
let right-notes = notes.filter(n => n.side == "right")
|
|
7
|
+
let lead = if left-notes.len() == 0 { 0pt } else { note-width + gap }
|
|
8
|
+
let tail = if right-notes.len() == 0 { 0pt } else { note-width + gap }
|
|
9
|
+
let stroke = 2pt + tokens.sub
|
|
10
|
+
box(width: lead + m.width + tail, height: m.height, {
|
|
11
|
+
place(top + left, dx: lead, picture)
|
|
12
|
+
for (side, group) in (("left", left-notes), ("right", right-notes)) {
|
|
13
|
+
for n in group {
|
|
14
|
+
let tx = lead + n.x * m.width
|
|
15
|
+
let ty = n.y * m.height
|
|
16
|
+
let nx = if side == "left" { lead - gap } else { lead + m.width + gap }
|
|
17
|
+
place(top + left, curve(stroke: stroke, curve.move((nx, ty)), curve.quad(((nx + tx) / 2, ty), (tx, ty))))
|
|
18
|
+
place(top + left, dx: tx - 5pt, dy: ty - 5pt, circle(radius: 5pt, fill: tokens.sub, stroke: none))
|
|
19
|
+
let text-box = box(width: note-width, {
|
|
20
|
+
align(if side == "left" { right } else { left }, text(size: 18pt, weight: "bold", fill: tokens.ink, n.name))
|
|
21
|
+
if n.at("note", default: none) != none {
|
|
22
|
+
align(if side == "left" { right } else { left }, text(size: 15pt, fill: tokens.sub, n.note))
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
let size = measure(text-box)
|
|
26
|
+
place(top + left, dx: if side == "left" { lead - gap - note-width - 8pt } else { nx + 8pt }, dy: ty - size.height / 2, text-box)
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
}
|
package/typ/charts.typ
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#import "@preview/primaviz:0.12.1" as viz
|
|
2
|
+
#import "theme.typ": tokens, kinds
|
|
3
|
+
|
|
4
|
+
#let base-theme = (
|
|
5
|
+
text-color: tokens.ink,
|
|
6
|
+
text-color-light: tokens.sub,
|
|
7
|
+
text-color-inverse: tokens.bg,
|
|
8
|
+
background: tokens.bg,
|
|
9
|
+
axis-stroke: 1pt + tokens.line,
|
|
10
|
+
grid-stroke: 1pt + tokens.line,
|
|
11
|
+
marker-stroke: 2pt + tokens.bg,
|
|
12
|
+
base-size: 15pt,
|
|
13
|
+
base-gap: 10pt,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
#let with-palette(colors) = (..base-theme, palette: colors)
|
|
17
|
+
|
|
18
|
+
#let shades(color, count) = range(count).map(i => color.lighten(i * 55% / calc.max(count - 1, 1)))
|
|
19
|
+
|
|
20
|
+
#let trend(labels: (), series: (), kind: "amount", width: 520pt, height: 280pt) = {
|
|
21
|
+
let stroke = kinds.at(kind).stroke
|
|
22
|
+
let colors = if series.len() == 1 { (stroke,) } else { (stroke, kinds.system.stroke, kinds.data.stroke, kinds.person.stroke) }
|
|
23
|
+
let theme = with-palette(colors)
|
|
24
|
+
if series.len() == 1 {
|
|
25
|
+
viz.line-chart((labels: labels, values: series.at(0).values), width: width, height: height, theme: theme, show-values: true)
|
|
26
|
+
} else {
|
|
27
|
+
viz.multi-line-chart((labels: labels, series: series), width: width, height: height, theme: theme)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#let stacked(labels: (), series: (), kind: "amount", width: 520pt, height: 300pt) = {
|
|
32
|
+
let colors = shades(kinds.at(kind).stroke, series.len())
|
|
33
|
+
let notes = series.enumerate().map(((i, s)) => {
|
|
34
|
+
let below = series.slice(0, i).map(p => p.values.at(0)).sum(default: 0)
|
|
35
|
+
(type: "content", x: 0, y: below + s.values.at(0) / 2, body: text(size: 14pt, fill: tokens.bg, weight: "bold", s.name), anchor: "center")
|
|
36
|
+
})
|
|
37
|
+
viz.stacked-bar-chart(
|
|
38
|
+
(labels: labels, series: series),
|
|
39
|
+
width: width,
|
|
40
|
+
height: height,
|
|
41
|
+
show-legend: false,
|
|
42
|
+
annotations: notes,
|
|
43
|
+
theme: with-palette(colors),
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#let funnel(stages: (), kind: "amount", width: 520pt, height: 300pt) = viz.funnel-chart(
|
|
48
|
+
stages,
|
|
49
|
+
width: width,
|
|
50
|
+
height: height,
|
|
51
|
+
theme: with-palette((kinds.at(kind).stroke,)),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
#let sankey(nodes: (), flows: (), width: 560pt, height: 320pt) = {
|
|
55
|
+
let names = nodes.map(n => if type(n) == str { n } else { n.name })
|
|
56
|
+
let colors = nodes.map(n => if type(n) == str { kinds.system.stroke } else { kinds.at(n.at("kind", default: "system")).stroke })
|
|
57
|
+
let at = name => names.position(n => n == name)
|
|
58
|
+
viz.sankey-chart(
|
|
59
|
+
(nodes: names, flows: flows.map(f => (from: at(f.from), to: at(f.to), value: f.value))),
|
|
60
|
+
width: width,
|
|
61
|
+
height: height,
|
|
62
|
+
show-values: true,
|
|
63
|
+
theme: with-palette(colors),
|
|
64
|
+
)
|
|
65
|
+
}
|
package/typ/isotype.typ
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#import "theme.typ": tokens, kinds
|
|
2
|
+
#import "node.typ": icon-of
|
|
3
|
+
|
|
4
|
+
#let isotype(rows: (), icon: "person", kind: "amount", per: 1, group: 5, unit: "", size: 30pt) = context {
|
|
5
|
+
let color = kinds.at(kind).stroke
|
|
6
|
+
let labels = rows.map(r => measure(text(size: 17pt, r.label)).width)
|
|
7
|
+
let label-width = calc.max(..labels) + 16pt
|
|
8
|
+
let row-height = size + 22pt
|
|
9
|
+
let count-of = r => int(calc.round(r.value / per))
|
|
10
|
+
let widest = calc.max(..rows.map(count-of))
|
|
11
|
+
let pitch = size + 6pt
|
|
12
|
+
let groups = calc.ceil(widest / group)
|
|
13
|
+
let span = widest * pitch + (groups - 1) * 14pt
|
|
14
|
+
box(width: label-width + span + 110pt, height: row-height * rows.len(), {
|
|
15
|
+
for (i, r) in rows.enumerate() {
|
|
16
|
+
let y = row-height * i
|
|
17
|
+
place(top + left, dy: y + size / 2 - 12pt, box(width: label-width - 12pt, align(right, text(size: 17pt, fill: tokens.ink, r.label))))
|
|
18
|
+
let n = count-of(r)
|
|
19
|
+
for k in range(n) {
|
|
20
|
+
let gap = calc.quo(k, group) * 14pt
|
|
21
|
+
place(top + left, dx: label-width + k * pitch + gap, dy: y, icon-of(icon, color, size))
|
|
22
|
+
}
|
|
23
|
+
let end = label-width + n * pitch + calc.quo(calc.max(n - 1, 0), group) * 14pt
|
|
24
|
+
place(top + left, dx: end + 10pt, dy: y + size / 2 - 14pt, text(size: 20pt, weight: "bold", fill: tokens.ink, str(r.value) + unit))
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
}
|
package/typ/quadrant.typ
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#import "theme.typ": tokens, kinds
|
|
2
|
+
#import "node.typ": link
|
|
3
|
+
|
|
4
|
+
#let quadrant(points: (), x-axis: (), y-axis: (), size: 420pt) = context {
|
|
5
|
+
let pad = 120pt
|
|
6
|
+
let plot = size
|
|
7
|
+
let dot = 11pt
|
|
8
|
+
box(width: plot + pad * 2, height: plot + 80pt, {
|
|
9
|
+
let ox = pad
|
|
10
|
+
let oy = 20pt
|
|
11
|
+
place(top + left, curve(stroke: 2pt + tokens.line, curve.move((ox, oy + plot / 2)), curve.line((ox + plot, oy + plot / 2))))
|
|
12
|
+
place(top + left, curve(stroke: 2pt + tokens.line, curve.move((ox + plot / 2, oy)), curve.line((ox + plot / 2, oy + plot))))
|
|
13
|
+
place(top + left, dx: ox, dy: oy + plot + 12pt, box(width: plot, {
|
|
14
|
+
place(left, text(size: 16pt, fill: tokens.sub, x-axis.low))
|
|
15
|
+
place(right, text(size: 16pt, fill: tokens.sub, x-axis.high))
|
|
16
|
+
align(center, text(size: 17pt, weight: "bold", fill: tokens.ink, x-axis.name))
|
|
17
|
+
}))
|
|
18
|
+
place(top + left, dx: 0pt, dy: oy, box(width: pad - 14pt, height: plot, {
|
|
19
|
+
place(top + right, text(size: 16pt, fill: tokens.sub, y-axis.high))
|
|
20
|
+
place(bottom + right, text(size: 16pt, fill: tokens.sub, y-axis.low))
|
|
21
|
+
place(horizon + right, text(size: 17pt, weight: "bold", fill: tokens.ink, y-axis.name))
|
|
22
|
+
}))
|
|
23
|
+
for p in points {
|
|
24
|
+
let spec = kinds.at(p.at("kind", default: "system"))
|
|
25
|
+
let big = p.at("hero", default: false)
|
|
26
|
+
let d = if big { dot * 1.7 } else { dot }
|
|
27
|
+
let cx = ox + p.x * plot
|
|
28
|
+
let cy = oy + (1 - p.y) * plot
|
|
29
|
+
place(top + left, dx: cx - d / 2, dy: cy - d / 2, circle(radius: d / 2, fill: spec.fill, stroke: 2.5pt + spec.stroke))
|
|
30
|
+
place(top + left, dx: cx + d / 2 + 8pt, dy: cy - 12pt, text(size: if big { 20pt } else { 17pt }, weight: if big { "bold" } else { "regular" }, fill: tokens.ink, p.label))
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
}
|
package/typ/sysmap.typ
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
#import "theme.typ": tokens, kinds
|
|
2
|
+
#import "shapes.typ": shape, outer-width
|
|
3
|
+
#import "node.typ": *
|
|
4
|
+
|
|
5
|
+
#let layers-of(nodes, links) = {
|
|
6
|
+
let layer = (:)
|
|
7
|
+
for n in nodes {
|
|
8
|
+
layer.insert(n.id, 0)
|
|
9
|
+
}
|
|
10
|
+
for _ in nodes {
|
|
11
|
+
for l in links {
|
|
12
|
+
let next = layer.at(l.from) + 1
|
|
13
|
+
if next > layer.at(l.to) and next < nodes.len() {
|
|
14
|
+
layer.insert(l.to, next)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
layer
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#let sysmap(nodes: (), links: (), gap-x: 110pt, gap-y: 40pt) = context {
|
|
22
|
+
let layer = layers-of(nodes, links)
|
|
23
|
+
let by-id = (:)
|
|
24
|
+
for n in nodes {
|
|
25
|
+
by-id.insert(n.id, n)
|
|
26
|
+
}
|
|
27
|
+
let sized = uniform(nodes)
|
|
28
|
+
let h = sized.height
|
|
29
|
+
let width-of = (:)
|
|
30
|
+
for (i, n) in nodes.enumerate() {
|
|
31
|
+
width-of.insert(n.id, sized.widths.at(i))
|
|
32
|
+
}
|
|
33
|
+
let depth = calc.max(..layer.values()) + 1
|
|
34
|
+
let center = (:)
|
|
35
|
+
let col-widths = ()
|
|
36
|
+
let x = 0pt
|
|
37
|
+
let tallest = 0pt
|
|
38
|
+
let rows-of = range(depth).map(d => nodes.filter(n => layer.at(n.id) == d))
|
|
39
|
+
for rows in rows-of {
|
|
40
|
+
tallest = calc.max(tallest, rows.len() * (h + gap-y) - gap-y)
|
|
41
|
+
}
|
|
42
|
+
for (d, members) in rows-of.enumerate() {
|
|
43
|
+
let ranked = members.enumerate().map(((i, n)) => {
|
|
44
|
+
let heads = links.filter(l => l.to == n.id and center.keys().contains(l.from)).map(l => center.at(l.from).at(1))
|
|
45
|
+
let key = if heads.len() == 0 { i * 1pt } else { heads.sum() / heads.len() }
|
|
46
|
+
(key: key, node: n)
|
|
47
|
+
}).sorted(key: r => r.key / 1pt).map(r => r.node)
|
|
48
|
+
let w = calc.max(..ranked.map(n => width-of.at(n.id)))
|
|
49
|
+
let column = ranked.len() * (h + gap-y) - gap-y
|
|
50
|
+
let top = (tallest - column) / 2
|
|
51
|
+
for (i, n) in ranked.enumerate() {
|
|
52
|
+
center.insert(n.id, (x + w / 2, top + i * (h + gap-y) + h / 2))
|
|
53
|
+
}
|
|
54
|
+
x += w + gap-x
|
|
55
|
+
}
|
|
56
|
+
let total = x - gap-x
|
|
57
|
+
box(width: total, height: tallest, {
|
|
58
|
+
for n in nodes {
|
|
59
|
+
let c = center.at(n.id)
|
|
60
|
+
at-center(c, width-of.at(n.id), h, build(n, h, width-of.at(n.id)))
|
|
61
|
+
}
|
|
62
|
+
for l in links {
|
|
63
|
+
let a = center.at(l.from)
|
|
64
|
+
let b = center.at(l.to)
|
|
65
|
+
let from-box = (width-of.at(l.from), h)
|
|
66
|
+
let to-box = (width-of.at(l.to), h)
|
|
67
|
+
let start = edge-point(a, ..from-box, b)
|
|
68
|
+
let end = edge-point(b, ..to-box, a)
|
|
69
|
+
let dx = (end.at(0) - start.at(0)) / 1pt
|
|
70
|
+
let dy = (end.at(1) - start.at(1)) / 1pt
|
|
71
|
+
let length = calc.sqrt(dx * dx + dy * dy)
|
|
72
|
+
let middle = ((a.at(1) + b.at(1)) / 2)
|
|
73
|
+
let between = nodes.filter(n => layer.at(n.id) > calc.min(layer.at(l.from), layer.at(l.to)) and layer.at(n.id) < calc.max(layer.at(l.from), layer.at(l.to)))
|
|
74
|
+
let blocked = between.filter(n => calc.abs((center.at(n.id).at(1) - middle) / 1pt) < h / 1pt)
|
|
75
|
+
let bend = if blocked.len() == 0 { calc.min(length * 0.14, 30) * 1pt } else {
|
|
76
|
+
let below = blocked.map(n => center.at(n.id).at(1)).sum() / blocked.len() > middle
|
|
77
|
+
let sign = if (b.at(0) > a.at(0)) == below { 1 } else { -1 }
|
|
78
|
+
sign * h * 1.5
|
|
79
|
+
}
|
|
80
|
+
let conditional = l.at("condition", default: false)
|
|
81
|
+
link(
|
|
82
|
+
start,
|
|
83
|
+
end,
|
|
84
|
+
color: if conditional { kinds.condition.stroke } else { tokens.sub },
|
|
85
|
+
dashed: conditional,
|
|
86
|
+
bend: bend,
|
|
87
|
+
label: l.at("label", default: none),
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
}
|