UNPKG

@pixi-spine/runtime-3.8

Version:

Pixi runtime for spine 3.8 models

20 lines (17 loc) 533 B
import { VertexAttachment } from './Attachment.mjs'; import { AttachmentType, Color } from '@pixi-spine/base'; class BoundingBoxAttachment extends VertexAttachment { constructor(name) { super(name); this.type = AttachmentType.BoundingBox; this.color = new Color(1, 1, 1, 1); } copy() { const copy = new BoundingBoxAttachment(this.name); this.copyTo(copy); copy.color.setFromColor(this.color); return copy; } } export { BoundingBoxAttachment }; //# sourceMappingURL=BoundingBoxAttachment.mjs.map