mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-18 20:09:27 +08:00
feat: winskin添加边框宽度选项
This commit is contained in:
parent
1243574e32
commit
68624b0dd9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user