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
|
|
@ -1,6 +1,6 @@
|
|||
# attr_fit.ludic - aspect-ratio (16 / 9, or 1.5), object-fit (fill, contain, cover, none, scale-down)
|
||||
# for pictures and natives, zoom (zoom.ludic), and a list split at its top-level commas
|
||||
function el_fit_props(n: UiNode, key: string, s: string) -> bool {
|
||||
function el_fit_props(ui_st: mut UiState, n: UiNode, key: string, s: string) -> bool {
|
||||
if key == "aspect-ratio" {
|
||||
let parts = lss_split(s, 47)
|
||||
var r = el_num(tpl_words(parts[0]))
|
||||
|
|
@ -12,7 +12,7 @@ function el_fit_props(n: UiNode, key: string, s: string) -> bool {
|
|||
var k = 0
|
||||
if w == "contain" { k = 1 } else if w == "cover" { k = 2 } else if w == "none" { k = 3 } else if w == "scale-down" { k = 4 }
|
||||
nx(n).fit_obj = k
|
||||
} else if key == "zoom" { el_zoom(n, s) } else { return false }
|
||||
} else if key == "zoom" { el_zoom(ui_st, n, s) } else { return false }
|
||||
return true
|
||||
}
|
||||
# "a, rgba(1, 2, 3, 0.5) 40%, b" -> its three parts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue