This commit is contained in:
parent
afe956180f
commit
21c2a58f3c
2 changed files with 348 additions and 181 deletions
|
|
@ -230,7 +230,8 @@
|
|||
let height = big_icon_size + small_icon_size /2 + arrow_gap
|
||||
let width = 6.5 * small_icon_size + 2 * big_icon_size
|
||||
let app1 = apk(
|
||||
height: small_icon_size
|
||||
height: small_icon_size,
|
||||
fill: red,
|
||||
)
|
||||
let app2 = apk(
|
||||
height: small_icon_size,
|
||||
|
|
@ -305,6 +306,24 @@
|
|||
dy: patcher_pos.at(1),
|
||||
patcher,
|
||||
)
|
||||
{
|
||||
set text(weight: "semibold", fill: luma(30%))
|
||||
place(
|
||||
left+top,
|
||||
dx: analyser_pos.at(0) + 0.5em,
|
||||
dy: analyser_pos.at(1) - 1.5em,
|
||||
)[Static Analysis]
|
||||
place(
|
||||
left+top,
|
||||
dx: rprt_pos.at(0) - 1em,
|
||||
dy: rprt_pos.at(1) - 2.5em,
|
||||
)[#set align(center); Reflection \ Data]
|
||||
place(
|
||||
left+top,
|
||||
dx: patcher_pos.at(0) + 0.5em,
|
||||
dy: patcher_pos.at(1) - 1.5em,
|
||||
)[Patching]
|
||||
}
|
||||
arrow(
|
||||
stroke: arrow_width + black,
|
||||
(
|
||||
|
|
@ -376,6 +395,8 @@
|
|||
small_icon_size: 60pt,
|
||||
big_icon_size: 90pt,
|
||||
stage: "theseus",
|
||||
labels: false,
|
||||
rasta: false,
|
||||
) = context {
|
||||
let stages = (
|
||||
"static-only",
|
||||
|
|
@ -515,6 +536,43 @@
|
|||
height: height,
|
||||
//stroke: black,
|
||||
{
|
||||
if labels {
|
||||
set text(weight: "semibold", fill: luma(30%))
|
||||
if stage != "static-only" {
|
||||
place(
|
||||
left+bottom,
|
||||
dx: rprt_pos2.at(0) - 1.4em,
|
||||
dy: rprt_pos2.at(1) - rprt_size.height - 0.5em,
|
||||
)[#set align(center); Reflection \ Data]
|
||||
place(
|
||||
left+bottom,
|
||||
dx: dex_pos0.at(0) - 4em,
|
||||
dy: dex_pos0.at(1) + 0.8em,
|
||||
)[Dyn Loaded Code]
|
||||
place(
|
||||
left+bottom,
|
||||
dx: patcher_pos.at(0) - 0.5em,
|
||||
dy: patcher_pos.at(1) - patcher_size.height - 0.5em,
|
||||
)[Patching]
|
||||
place(
|
||||
left+bottom,
|
||||
dx: phone_pos.at(0) - 1em,
|
||||
dy: phone_pos.at(1) - phone_size.height - 0.5em,
|
||||
)[#set align(center); Dynamic \ Analysis]
|
||||
}
|
||||
if stage in (
|
||||
"theseus",
|
||||
"static-vs-dyn",
|
||||
"theseus-vs-static",
|
||||
"static-only"
|
||||
) {
|
||||
place(
|
||||
left+bottom,
|
||||
dx: analyser_pos.at(0) - 1.5em,
|
||||
dy: analyser_pos.at(1) + 1em,
|
||||
)[Static Analysis]
|
||||
}
|
||||
}
|
||||
if stage == "static-only" {
|
||||
place(
|
||||
left+bottom,
|
||||
|
|
@ -725,6 +783,7 @@
|
|||
if stage in (
|
||||
"theseus",
|
||||
"theseus-vs-static",
|
||||
"theseus-no-static"
|
||||
) {
|
||||
arrow(
|
||||
stroke: arrow_width + black,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue