{"version":3,"file":"TransformConstraintData.mjs","sources":["../../src/core/TransformConstraintData.ts"],"sourcesContent":["import type { BoneData } from './BoneData';\nimport { ConstraintData } from './ConstraintData';\n\n/** Stores the setup pose for a {@link TransformConstraint}.\n *\n * See [Transform constraints](http://esotericsoftware.com/spine-transform-constraints) in the Spine User Guide.\n * @public\n * */\nexport class TransformConstraintData extends ConstraintData {\n    /** The bones that will be modified by this transform constraint. */\n    bones = new Array<BoneData>();\n\n    /** The target bone whose world transform will be copied to the constrained bones. */\n    private _target: BoneData | null = null;\n    public set target(boneData: BoneData) {\n        this._target = boneData;\n    }\n    public get target() {\n        if (!this._target) throw new Error('BoneData not set.');\n        else return this._target;\n    }\n\n    mixRotate = 0;\n    mixX = 0;\n    mixY = 0;\n    mixScaleX = 0;\n    mixScaleY = 0;\n    mixShearY = 0;\n\n    /** An offset added to the constrained bone rotation. */\n    offsetRotation = 0;\n\n    /** An offset added to the constrained bone X translation. */\n    offsetX = 0;\n\n    /** An offset added to the constrained bone Y translation. */\n    offsetY = 0;\n\n    /** An offset added to the constrained bone scaleX. */\n    offsetScaleX = 0;\n\n    /** An offset added to the constrained bone scaleY. */\n    offsetScaleY = 0;\n\n    /** An offset added to the constrained bone shearY. */\n    offsetShearY = 0;\n\n    relative = false;\n    local = false;\n\n    constructor(name: string) {\n        super(name, 0, false);\n    }\n}\n"],"names":[],"mappings":";;AAQO,MAAM,gCAAgC,cAAe,CAAA;AAAA,EA0CxD,YAAY,IAAc,EAAA;AACtB,IAAM,KAAA,CAAA,IAAA,EAAM,GAAG,KAAK,CAAA,CAAA;AAzCxB;AAAA,IAAA,IAAA,CAAA,KAAA,GAAQ,IAAI,KAAgB,EAAA,CAAA;AAG5B;AAAA,IAAA,IAAA,CAAQ,OAA2B,GAAA,IAAA,CAAA;AASnC,IAAY,IAAA,CAAA,SAAA,GAAA,CAAA,CAAA;AACZ,IAAO,IAAA,CAAA,IAAA,GAAA,CAAA,CAAA;AACP,IAAO,IAAA,CAAA,IA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