mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +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> {
|
export class Winskin extends RenderItem<EWinskinEvent> {
|
||||||
image: SizedCanvasImageSource;
|
image: SizedCanvasImageSource;
|
||||||
|
/** 边框宽度 */
|
||||||
|
borderSize: number = 32;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
image: SizedCanvasImageSource,
|
image: SizedCanvasImageSource,
|
||||||
@ -267,6 +269,18 @@ export class Winskin extends RenderItem<EWinskinEvent> {
|
|||||||
transform: Transform
|
transform: Transform
|
||||||
): void {}
|
): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置winskin图片
|
||||||
|
* @param image winskin图片
|
||||||
|
*/
|
||||||
|
setImage(image: SizedCanvasImageSource) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置边框大小
|
||||||
|
* @param size 边框大小
|
||||||
|
*/
|
||||||
|
setBorderSize(size: number) {}
|
||||||
|
|
||||||
patchProp(
|
patchProp(
|
||||||
key: string,
|
key: string,
|
||||||
prevValue: any,
|
prevValue: any,
|
||||||
|
Loading…
Reference in New Issue
Block a user