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,CAAA;IAhCG;QADC,QAAQ;qDACS;IAElB;QADC,QAAQ;yDACa;IAEtB;QADC,QAAQ;yDACa;IAEtB;QADC,QAAQ;yDACa;IAEtB;QADC,QAAQ;yDACa;IAXL,kBAAkB;QADtC,OAAO;OACa,kBAAkB,CAmCtC;IAAD,yBAAC;KAAA;kBAnCoB,kBAAkB","file":"","sourceRoot":"/","sourcesContent":["\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class ScaleDisplayAction extends cc.Component {\n\n @property\n speed: number = 1;\n @property\n scaleXMax: number = 1;\n @property\n scaleXMin: number = 0;\n @property\n scaleYMax: number = 1;\n @property\n scaleYMin: number = 0;\n\n private readonly _baseTime: number = 1;\n\n onLoad() { }\n\n start() {\n\n }\n\n onEnable() {\n this.node.scaleX = this.scaleXMin;\n this.node.scaleY = this.scaleYMin;\n let actTime: number = this._baseTime / this.speed;\n let scaleAct = cc.scaleTo(actTime, this.scaleXMax, this.scaleYMax);\n this.node.stopAllActions();\n this.node.runAction(scaleAct.easing(cc.easeSineOut()));\n }\n\n onDisable() {\n this.node.stopAllActions();\n this.node.scaleX = this.scaleXMin;\n this.node.scaleY = this.scaleYMin;\n }\n}\n"]}