@pixi-spine/runtime-3.8
Version:
Pixi runtime for spine 3.8 models
22 lines (18 loc) • 563 B
JavaScript
;
var Attachment = require('./Attachment.js');
var base = require('@pixi-spine/base');
class BoundingBoxAttachment extends Attachment.VertexAttachment {
constructor(name) {
super(name);
this.type = base.AttachmentType.BoundingBox;
this.color = new base.Color(1, 1, 1, 1);
}
copy() {
const copy = new BoundingBoxAttachment(this.name);
this.copyTo(copy);
copy.color.setFromColor(this.color);
return copy;
}
}
exports.BoundingBoxAttachment = BoundingBoxAttachment;
//# sourceMappingURL=BoundingBoxAttachment.js.map