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,