update comic layout generator
This commit is contained in:
parent
503c3aa2f9
commit
8f193e5983
@ -36,11 +36,15 @@ function split_types(panel) {
|
|||||||
|
|
||||||
var aspect_ratio = get_aspect_ratio(panel);
|
var aspect_ratio = get_aspect_ratio(panel);
|
||||||
if (aspect_ratio < 5) {
|
if (aspect_ratio < 5) {
|
||||||
|
splits.push(split_vertical);
|
||||||
|
splits.push(split_vertical);
|
||||||
splits.push(split_vertical);
|
splits.push(split_vertical);
|
||||||
splits.push(multisplit_vertical);
|
splits.push(multisplit_vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aspect_ratio > 0.2) {
|
if (aspect_ratio > 0.2) {
|
||||||
|
splits.push(split_horizontal);
|
||||||
|
splits.push(split_horizontal);
|
||||||
splits.push(split_horizontal);
|
splits.push(split_horizontal);
|
||||||
splits.push(multisplit_horizontal);
|
splits.push(multisplit_horizontal);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user