mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-30 07:03:46 +08:00
update
This commit is contained in:
parent
a7e8a5e4cf
commit
157dc9166b
@ -240,12 +240,13 @@ CustomWindow {
|
||||
ctx.save()
|
||||
if(img_cache.source.toString().length!==0){
|
||||
try{
|
||||
ctx.drawImage(img_cache, 0, 0, canvasSize.width, canvasSize.height, 0, 0, canvasSize.width, canvasSize.height)
|
||||
ctx.drawImage(img_cache.source, 0, 0, canvasSize.width, canvasSize.height, 0, 0, canvasSize.width, canvasSize.height)
|
||||
}catch(e){
|
||||
img_cache.source = ""
|
||||
}
|
||||
}
|
||||
clearArc(ctx, centerX, centerY, radius)
|
||||
canvas.unloadImage(img_cache.source)
|
||||
ctx.restore()
|
||||
}
|
||||
function clearArc(ctx,x, y, radius, startAngle, endAngle) {
|
||||
|
Loading…
Reference in New Issue
Block a user