UNPKG

pixi-dragonbones-runtime

Version:
3 lines (2 loc) 839 B
import{BaseObject as t}from"../core/BaseObject.mjs";import"../core/DragonBones.mjs";import{Matrix as r}from"../geom/Matrix.mjs";import{Point as o}from"../geom/Point.mjs";import{Transform as i}from"../geom/Transform.mjs";class a extends t{constructor(){super(...arguments),this.globalTransformMatrix=new r,this.global=new i,this.offset=new i}_onClear(){this.globalTransformMatrix.identity(),this.global.identity(),this.offset.identity(),this.origin=null,this.userData=null,this._globalDirty=!1,this._alpha=1,this._globalAlpha=1,this._armature=null}updateGlobalTransform(){this._globalDirty&&(this._globalDirty=!1,this.global.fromMatrix(this.globalTransformMatrix))}get armature(){return this._armature}}a._helpMatrix=new r,a._helpTransform=new i,a._helpPoint=new o;export{a as TransformObject}; //# sourceMappingURL=TransformObject.mjs.map