From 68624b0dd925056c64429f7384a87bf9d02e84a1 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 10 Dec 2024 19:53:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20winskin=E6=B7=BB=E5=8A=A0=E8=BE=B9?= =?UTF-8?q?=E6=A1=86=E5=AE=BD=E5=BA=A6=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/render/preset/misc.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/core/render/preset/misc.ts b/src/core/render/preset/misc.ts index bdedeac..fcb3847 100644 --- a/src/core/render/preset/misc.ts +++ b/src/core/render/preset/misc.ts @@ -253,6 +253,8 @@ export interface EWinskinEvent extends ERenderItemEvent {} export class Winskin extends RenderItem { image: SizedCanvasImageSource; + /** 边框宽度 */ + borderSize: number = 32; constructor( image: SizedCanvasImageSource, @@ -267,6 +269,18 @@ export class Winskin extends RenderItem { transform: Transform ): void {} + /** + * 设置winskin图片 + * @param image winskin图片 + */ + setImage(image: SizedCanvasImageSource) {} + + /** + * 设置边框大小 + * @param size 边框大小 + */ + setBorderSize(size: number) {} + patchProp( key: string, prevValue: any,