wip(0.S3): packages and examples migrated again from their pre-0.S sources in one run
ludic migrate state packages <every example program> packages/ludic.lab/example/plate.ludic 1804 vars into 126 states, 64 into lets; 23498 edits in 460 files Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5ffe50ed02
commit
19fcf60599
459 changed files with 17862 additions and 17603 deletions
|
|
@ -25,12 +25,12 @@ function md_parse(cond: string) -> UiMedia {
|
|||
}
|
||||
return m
|
||||
}
|
||||
function md_ok(r: UiRule) -> bool {
|
||||
function md_ok(ui_st: UiState, r: UiRule) -> bool {
|
||||
let m = r.md
|
||||
if m == null { return true }
|
||||
if m.min_w > 0.0 and ly_vp_w < m.min_w { return false }
|
||||
if m.max_w > 0.0 and ly_vp_w > m.max_w { return false }
|
||||
if m.min_h > 0.0 and ly_vp_h < m.min_h { return false }
|
||||
if m.max_h > 0.0 and ly_vp_h > m.max_h { return false }
|
||||
if m.min_w > 0.0 and ui_st.ly_vp_w < m.min_w { return false }
|
||||
if m.max_w > 0.0 and ui_st.ly_vp_w > m.max_w { return false }
|
||||
if m.min_h > 0.0 and ui_st.ly_vp_h < m.min_h { return false }
|
||||
if m.max_h > 0.0 and ui_st.ly_vp_h > m.max_h { return false }
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue