mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-18 23:23:29 +00:00
chore: generate
This commit is contained in:
parent
550e9cc636
commit
3125f67708
1 changed files with 11 additions and 1 deletions
|
|
@ -149,7 +149,17 @@ function drawFramePeek(context: SKRSContext2D, frame: Canvas) {
|
|||
context.beginPath()
|
||||
context.roundRect(Pad, top, width, visible + radius, radius)
|
||||
context.clip()
|
||||
context.drawImage(frame, 0, 0, frame.width, Math.min(frame.height, (visible + radius) / scale), Pad, top, width, Math.min(frame.height * scale, visible + radius))
|
||||
context.drawImage(
|
||||
frame,
|
||||
0,
|
||||
0,
|
||||
frame.width,
|
||||
Math.min(frame.height, (visible + radius) / scale),
|
||||
Pad,
|
||||
top,
|
||||
width,
|
||||
Math.min(frame.height * scale, visible + radius),
|
||||
)
|
||||
context.restore()
|
||||
|
||||
context.strokeStyle = "#2c2c2c"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue