mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +08:00
feat: Graphic Props Base Comment
This commit is contained in:
parent
fc511dbf29
commit
1883e381fe
@ -91,12 +91,18 @@ export interface DamageProps extends BaseProps {
|
|||||||
strokeWidth?: number;
|
strokeWidth?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface GraphicPropsBase extends BaseProps, Partial<ILineProperty> {
|
export interface GraphicPropsBase extends BaseProps, Partial<ILineProperty> {
|
||||||
|
/** 是否填充,若填写 {@link stroke},那么表现为先填充后描边 */
|
||||||
fill?: boolean;
|
fill?: boolean;
|
||||||
|
/** 是否描边,若填写 {@link fill},那么表现为先填充后描边 */
|
||||||
stroke?: boolean;
|
stroke?: boolean;
|
||||||
|
/** 是否先描边后填充,优先级最高,若设置,则 {@link fill} 与 {@link stroke} 无效。 */
|
||||||
strokeAndFill?: boolean;
|
strokeAndFill?: boolean;
|
||||||
|
/** 填充原则,比如 `nonzero` 表示非零环绕原则,默认为奇偶环绕原则 `evenodd` */
|
||||||
fillRule?: CanvasFillRule;
|
fillRule?: CanvasFillRule;
|
||||||
|
/** 填充样式 */
|
||||||
fillStyle?: CanvasStyle;
|
fillStyle?: CanvasStyle;
|
||||||
|
/** 描边样式 */
|
||||||
strokeStyle?: CanvasStyle;
|
strokeStyle?: CanvasStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user