Draw negated math with a diagonal rule
This commit is contained in:
1 parent
f88fa7fd9d
commit
7376acffb2
2 files changed
+87
-1
No files matched your search
@@ -80,6 +80,22 @@ fn page_content(list: &DisplayList, height: i64, image_names: &BTreeMap<usize, S
|
||||
pt(*rule_height)
|
||||
));
|
||||
}
|
||||
DisplayItem::Line {
|
||||
x1,
|
||||
y1,
|
||||
x2,
|
||||
y2,
|
||||
width: line_width,
|
||||
} => {
|
||||
content.push_str(&format!(
|
||||
"{} w {} {} m {} {} l S\n",
|
||||
pt(*line_width),
|
||||
pt(*x1),
|
||||
pt(height - *y1),
|
||||
pt(*x2),
|
||||
pt(height - *y2)
|
||||
));
|
||||
}
|
||||
DisplayItem::Image {
|
||||
x,
|
||||
y,
|
||||
|
||||
Reference in new issue
Block a user