feat: winskin添加边框宽度选项

This commit is contained in:
unanmed 2024-12-10 19:53:11 +08:00
parent 1243574e32
commit 68624b0dd9

View File

@ -253,6 +253,8 @@ export interface EWinskinEvent extends ERenderItemEvent {}
export class Winskin extends RenderItem<EWinskinEvent> {
image: SizedCanvasImageSource;
/** 边框宽度 */
borderSize: number = 32;
constructor(
image: SizedCanvasImageSource,
@ -267,6 +269,18 @@ export class Winskin extends RenderItem<EWinskinEvent> {
transform: Transform
): void {}
/**
* winskin图片
* @param image winskin图片
*/
setImage(image: SizedCanvasImageSource) {}
/**
*
* @param size
*/
setBorderSize(size: number) {}
patchProp(
key: string,
prevValue: any,