Skip to main content

clip_pos

Function clip_pos 

Source
fn clip_pos(s: &str, base: i32) -> i32
Expand description

circle()/ellipse()at <cx> <cy> 位置トークンを解決する。%/px/数値に 加え、left/top/right/bottom/center のキーワードにも対応する(以前は clip_len が数値/単位しか扱えず、キーワードは s.parse::<f32>() に失敗して 静かに 0 へフォールバックしていた。circle(50% at right)cx=w ではなく cx=0 になる等、位置が壊れるバグがあった)。