Initial
This commit is contained in:
20
resources/app/node_modules/@pixi/graphics/lib/styles/LineStyle.mjs
generated
vendored
Normal file
20
resources/app/node_modules/@pixi/graphics/lib/styles/LineStyle.mjs
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { LINE_CAP, LINE_JOIN } from "../const.mjs";
|
||||
import { FillStyle } from "./FillStyle.mjs";
|
||||
class LineStyle extends FillStyle {
|
||||
constructor() {
|
||||
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = LINE_CAP.BUTT, this.join = LINE_JOIN.MITER, this.miterLimit = 10;
|
||||
}
|
||||
/** Clones the object. */
|
||||
clone() {
|
||||
const obj = new LineStyle();
|
||||
return obj.color = this.color, obj.alpha = this.alpha, obj.texture = this.texture, obj.matrix = this.matrix, obj.visible = this.visible, obj.width = this.width, obj.alignment = this.alignment, obj.native = this.native, obj.cap = this.cap, obj.join = this.join, obj.miterLimit = this.miterLimit, obj;
|
||||
}
|
||||
/** Reset the line style to default. */
|
||||
reset() {
|
||||
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = LINE_CAP.BUTT, this.join = LINE_JOIN.MITER, this.miterLimit = 10;
|
||||
}
|
||||
}
|
||||
export {
|
||||
LineStyle
|
||||
};
|
||||
//# sourceMappingURL=LineStyle.mjs.map
|
||||
Reference in New Issue
Block a user