Commit b34683a8 authored by Chen Jiping's avatar Chen Jiping

feat:模板调整

parent 9f5f5457
{
"ver": "1.1.2",
"uuid": "cbb03934-bf88-4ed8-b203-9f9561e48c4f",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"name":"mao","version":"5.5","armature":[{"name":"Armature","slot":[{"name":"影子","color":{},"parent":"root"},{"name":"尾巴","color":{},"z":1,"parent":"尾巴2"},{"name":"右腿","color":{},"z":2,"parent":"右腿"},{"name":"左腿","color":{},"z":3,"parent":"左腿"},{"name":"右手","color":{},"z":4,"parent":"右手2"},{"name":"左手","color":{},"z":5,"parent":"左手2"},{"name":"左手伸直","color":{},"z":6,"parent":"左手"},{"name":"右手伸直","color":{},"z":7,"parent":"右手"},{"name":"身体","color":{},"z":8,"parent":"bone"},{"name":"领带","color":{},"z":9,"parent":"领带2"},{"name":"右耳","color":{},"z":10,"parent":"右耳"},{"name":"左耳","color":{},"z":11,"parent":"左耳"},{"name":"组_1","color":{},"z":12,"parent":"bone1"},{"name":"右眼","color":{},"z":13,"parent":"右眼"},{"name":"右眉毛","color":{},"z":14,"parent":"右眉毛"},{"name":"左眼","color":{},"z":15,"parent":"左眼"},{"name":"左眉毛","color":{},"z":16,"parent":"左眉毛"},{"name":"眼镜","color":{},"z":17,"parent":"眼镜"},{"name":"胡子","color":{},"z":18,"parent":"胡子1"},{"name":"鼻子","color":{},"z":19,"parent":"鼻子"},{"name":"嘴","color":{},"z":20,"parent":"嘴"},{"name":"帽子","color":{},"z":21,"parent":"帽子"}],"bone":[{"name":"root","transform":{}},{"name":"bone","transform":{"x":891.9191,"y":616.1693},"length":160,"parent":"root"},{"name":"领带","transform":{"x":0.6,"skY":-84.2569,"y":28.2,"skX":-84.2569},"length":113,"parent":"bone"},{"name":"左腿","transform":{"x":-20.0746,"skY":175.2807,"y":-25.7203,"skX":175.2807},"length":67,"parent":"领带"},{"name":"右腿","transform":{"x":-8.2206,"skY":159.7117,"y":32.1842,"skX":159.7117},"length":66,"parent":"领带"},{"name":"bone1","transform":{"x":125.7438,"skY":-19.0945,"y":19.1129,"skX":-19.0945},"length":235,"parent":"领带"},{"name":"领带1","transform":{"x":113.6488,"skY":174.2569,"y":9.7764,"skX":174.2569},"length":65,"parent":"领带"},{"name":"尾巴","transform":{"x":-17.0514,"skY":-105.4221,"y":-37.6326,"skX":-105.4221},"length":63,"parent":"领带"},{"name":"左手","transform":{"x":102.3804,"skY":-146.8359,"y":-50.8001,"skX":-146.8359},"length":50,"parent":"领带"},{"name":"右手","transform":{"x":110.3467,"skY":136.3674,"y":47.3957,"skX":136.3674},"length":69,"parent":"领带"},{"name":"鼻子","transform":{"x":59.3977,"skY":41.1099,"y":27.0986,"skX":41.1099},"length":1,"parent":"bone1"},{"name":"帽子","transform":{"x":192.6558,"skY":82.6388,"y":-5.4078,"skX":82.6388},"length":27,"parent":"bone1"},{"name":"眼镜","transform":{"x":78.9107,"skY":5.5084,"y":15.902,"skX":5.5084},"length":28,"parent":"bone1"},{"name":"左眉毛","transform":{"x":140.8962,"skY":83.9424,"y":-36.7575,"skX":83.9424},"length":10,"parent":"bone1"},{"name":"左眼","transform":{"x":96.0507,"y":-35.5301},"parent":"bone1"},{"name":"领带2","transform":{"x":65.1,"skY":1.6366,"skX":1.6366},"length":66,"parent":"领带1"},{"name":"右眼","transform":{"x":96.7167,"y":59.7489},"parent":"bone1"},{"name":"尾巴1","transform":{"x":63.0475,"skY":106.2349,"skX":106.2349},"length":63,"parent":"尾巴"},{"name":"右眉毛","transform":{"x":143.1362,"skY":103.3513,"y":60.3339,"skX":103.3513},"length":17,"parent":"bone1"},{"name":"左手1","transform":{"x":50.632,"skY":106.7395,"skX":106.7395},"length":27,"parent":"左手"},{"name":"嘴","transform":{"x":33.0885,"skY":103.3513,"y":8.4698,"skX":103.3513},"length":16,"parent":"bone1"},{"name":"右手1","transform":{"x":69.1209,"skY":97.009,"skX":97.009},"length":47,"parent":"右手"},{"name":"左耳","transform":{"x":151.1649,"skY":-24.2997,"y":-83.7051,"skX":-24.2997},"length":57,"parent":"bone1"},{"name":"右耳","transform":{"x":134.348,"skY":25.1759,"y":78.9579,"skX":25.1759},"length":64,"parent":"bone1"},{"name":"胡子","transform":{"x":-11.3223,"skY":-142.4333,"y":-14.2123,"skX":-142.4333},"length":65,"parent":"鼻子"},{"name":"胡子1","transform":{"x":10.8123,"skY":69.7025,"y":13.3506,"skX":69.7025},"length":66,"parent":"鼻子"},{"name":"尾巴2","transform":{"x":63.0624,"skY":-59.0609,"skX":-59.0609},"length":52,"parent":"尾巴1"},{"name":"左手2","transform":{"x":27.5566,"skY":-40.1087,"skX":-40.1087},"length":55,"parent":"左手1"},{"name":"右手2","transform":{"x":47.2479,"skY":-106.1572,"skX":-106.1572},"length":37,"parent":"右手1"},{"name":"bone2","transform":{"x":52.2431,"skY":-49.7262,"skX":-49.7262},"length":61,"parent":"尾巴2"}],"frameRate":24,"aabb":{"x":710.308561974626,"height":483.5647539622176,"y":285.4193106747044,"width":362.6105263157899},"canvas":{"x":0,"height":1600,"y":0,"width":2176},"animation":[{"name":"begin","frame":[],"bone":[{"name":"root","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"bone","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"领带","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":1.7096,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":1.7096,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":24},{"tweenEasing":0,"y":-2.769,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"y":-2.769,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左腿","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右腿","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"bone1","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":10.0266,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":10.0266,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-1.298,"y":-9.9228,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-1.298,"y":-9.9228,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"领带1","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-6.0264,"tweenEasing":0},{"duration":12,"rotate":-7.2656,"tweenEasing":0},{"duration":12,"rotate":-1.7867,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-6.0264,"tweenEasing":0},{"duration":12,"rotate":-7.2656,"tweenEasing":0},{"duration":12,"rotate":-1.7867,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"尾巴","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.8988,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.8988,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左手","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":27.8631,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":27.8631,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右手","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.1516,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.1516,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"眼镜","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"帽子","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.153,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.153,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"鼻子","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左眉毛","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左眼","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"领带2","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":4.3629,"tweenEasing":0},{"duration":12,"rotate":-7.231,"tweenEasing":0},{"duration":12,"rotate":-16.1684,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":4.3629,"tweenEasing":0},{"duration":12,"rotate":-7.231,"tweenEasing":0},{"duration":12,"rotate":-16.1684,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右眼","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":36,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"尾巴1","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":7.109,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":7.109,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右眉毛","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左手1","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-20.969,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-20.969,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"嘴","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"duration":0}]},{"name":"右手1","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":2.3286,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":2.3286,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左耳","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-13.8027,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-13.8027,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右耳","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":25.9315,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":25.9315,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左手2","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":6.5829,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":6.5829,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"胡子1","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"尾巴2","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-6.2263,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-6.2263,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"duration":24},{"duration":0}]},{"name":"胡子","rotateFrame":[{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右手2","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":8.6942,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":8.6942,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"bone2","rotateFrame":[{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.1888,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.1888,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]}],"playTimes":0,"ffd":[],"slot":[{"name":"尾巴","displayFrame":[],"colorFrame":[]},{"name":"右腿","displayFrame":[],"colorFrame":[]},{"name":"左腿","displayFrame":[],"colorFrame":[]},{"name":"右手","displayFrame":[],"colorFrame":[]},{"name":"左手","displayFrame":[],"colorFrame":[]},{"name":"领带","displayFrame":[],"colorFrame":[]},{"name":"右耳","displayFrame":[],"colorFrame":[]},{"name":"左耳","displayFrame":[],"colorFrame":[]},{"name":"组_1","displayFrame":[],"colorFrame":[]},{"name":"右眼","displayFrame":[],"colorFrame":[]},{"name":"右眉毛","displayFrame":[],"colorFrame":[]},{"name":"左眼","displayFrame":[],"colorFrame":[]},{"name":"左眉毛","displayFrame":[],"colorFrame":[]},{"name":"眼镜","displayFrame":[],"colorFrame":[]},{"name":"胡子","displayFrame":[],"colorFrame":[]},{"name":"鼻子","displayFrame":[],"colorFrame":[]},{"name":"嘴","displayFrame":[],"colorFrame":[]},{"name":"帽子","displayFrame":[],"colorFrame":[]},{"name":"影子","displayFrame":[],"colorFrame":[]},{"name":"身体","displayFrame":[],"colorFrame":[]},{"name":"左手伸直","displayFrame":[{"duration":96,"value":-1}],"colorFrame":[]},{"name":"右手伸直","displayFrame":[{"duration":96,"value":-1}],"colorFrame":[]}],"ik":[],"duration":96},{"name":"normal","frame":[],"bone":[{"name":"root","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"bone","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"领带","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":18},{"tweenEasing":0,"y":-2.0329,"duration":18},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"左腿","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":18},{"tweenEasing":0,"x":-3.3712,"y":0.3391,"duration":18},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"右腿","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":18},{"tweenEasing":0,"x":-3.3712,"y":0.3391,"duration":18},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"bone1","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":5.0458,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"领带1","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":4.4081,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"尾巴","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-9.2734,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"左手","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-3.9571,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"右手","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-4.1269,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"眼镜","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"帽子","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"鼻子","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"左眉毛","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"左眼","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":9},{"tweenEasing":0,"x":0.2,"duration":9},{"tweenEasing":0,"duration":18},{"duration":0}]},{"name":"领带2","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":6.5924,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"右眼","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":9},{"tweenEasing":0,"x":0.2,"duration":9},{"tweenEasing":0,"duration":18},{"duration":0}]},{"name":"尾巴1","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":5.0456,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"右眉毛","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"左手1","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"嘴","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"右手1","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-0.5975,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"左耳","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-5.8134,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"右耳","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":5.67,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"左手2","rotateFrame":[{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"胡子1","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-4.6385,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"尾巴2","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-4.7872,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"胡子","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":3.4123,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"右手2","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":7.7593,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"bone2","rotateFrame":[{"duration":18,"tweenEasing":0},{"duration":18,"rotate":-4.5584,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":36},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":36},{"duration":0}]}],"playTimes":0,"ffd":[],"slot":[{"name":"尾巴","displayFrame":[],"colorFrame":[]},{"name":"右腿","displayFrame":[],"colorFrame":[]},{"name":"左腿","displayFrame":[],"colorFrame":[]},{"name":"右手","displayFrame":[],"colorFrame":[]},{"name":"左手","displayFrame":[],"colorFrame":[]},{"name":"领带","displayFrame":[],"colorFrame":[]},{"name":"右耳","displayFrame":[],"colorFrame":[]},{"name":"左耳","displayFrame":[],"colorFrame":[]},{"name":"组_1","displayFrame":[],"colorFrame":[]},{"name":"右眼","displayFrame":[],"colorFrame":[]},{"name":"右眉毛","displayFrame":[],"colorFrame":[]},{"name":"左眼","displayFrame":[],"colorFrame":[]},{"name":"左眉毛","displayFrame":[],"colorFrame":[]},{"name":"眼镜","displayFrame":[],"colorFrame":[]},{"name":"胡子","displayFrame":[],"colorFrame":[]},{"name":"鼻子","displayFrame":[],"colorFrame":[]},{"name":"嘴","displayFrame":[],"colorFrame":[]},{"name":"帽子","displayFrame":[],"colorFrame":[]},{"name":"影子","displayFrame":[],"colorFrame":[]},{"name":"身体","displayFrame":[],"colorFrame":[]},{"name":"左手伸直","displayFrame":[{"duration":36,"value":-1}],"colorFrame":[]},{"name":"右手伸直","displayFrame":[{"duration":36,"value":-1}],"colorFrame":[]}],"ik":[],"duration":36},{"name":"finish","frame":[],"bone":[{"name":"root","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"bone","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"领带","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":-3.8619,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":1.7096,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":1.7096,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":26},{"tweenEasing":0,"y":-7.6181,"duration":24},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"y":-2.769,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"y":-2.769,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左腿","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":6.305,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":26},{"tweenEasing":0,"x":-5.4386,"y":0.1786,"duration":24},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右腿","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":6.305,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-1.656,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":26},{"tweenEasing":0,"x":-6.7031,"y":-5.1693,"duration":24},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-2.7551,"y":0.2771,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"bone1","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":9.5597,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":10.0266,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":10.0266,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-1.298,"y":-9.9228,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"x":-1.298,"y":-9.9228,"duration":24},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"领带1","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":17.3385,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-6.0264,"tweenEasing":0},{"duration":12,"rotate":-7.2656,"tweenEasing":0},{"duration":12,"rotate":-1.7867,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-6.0264,"tweenEasing":0},{"duration":12,"rotate":-7.2656,"tweenEasing":0},{"duration":12,"rotate":-1.7867,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"尾巴","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":-19.1782,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.8988,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.8988,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左手","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":-12.0712,"tweenEasing":0},{"duration":25,"tweenEasing":0},{"duration":24,"rotate":27.8631,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":27.8631,"tweenEasing":0},{"duration":9}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":49},{"tweenEasing":0,"duration":48},{"duration":9}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":49},{"tweenEasing":0,"duration":48},{"duration":9}]},{"name":"右手","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":22,"rotate":18.0014,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.1516,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.1516,"tweenEasing":0},{"duration":2}],"translateFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":2}],"scaleFrame":[{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":2}]},{"name":"眼镜","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":36,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":13.048,"y":-0.5502,"duration":6},{"tweenEasing":0,"x":0.692,"y":0.5317,"duration":24},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":14},{"tweenEasing":0,"duration":36},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"帽子","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.153,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-3.153,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":8},{"tweenEasing":0,"x":7.457,"y":1.5583,"duration":6},{"tweenEasing":0,"x":-6.6664,"y":1.1384,"duration":36},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"鼻子","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左眉毛","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":8},{"tweenEasing":0,"x":6.4728,"y":0.8607,"duration":42},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左眼","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":4},{"tweenEasing":0,"duration":16},{"tweenEasing":0,"duration":4},{"tweenEasing":0,"x":0.2,"duration":4},{"tweenEasing":0,"duration":16},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"领带2","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":20,"rotate":-13.0313,"tweenEasing":0},{"duration":16,"rotate":14.5197,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":4.3629,"tweenEasing":0},{"duration":12,"rotate":-7.231,"tweenEasing":0},{"duration":12,"rotate":-16.1684,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":4.3629,"tweenEasing":0},{"duration":12,"rotate":-7.231,"tweenEasing":0},{"duration":12,"rotate":-16.1684,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右眼","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":36,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":36,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":4},{"tweenEasing":0,"duration":16},{"tweenEasing":0,"duration":4},{"tweenEasing":0,"x":0.2,"duration":4},{"tweenEasing":0,"duration":16},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"x":0.2,"duration":6},{"tweenEasing":0,"duration":36},{"duration":0}]},{"name":"尾巴1","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":6.1561,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":7.109,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":7.109,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右眉毛","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":8},{"tweenEasing":0,"x":6.4728,"y":0.8607,"duration":42},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左手1","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":36,"rotate":-76.2623,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-20.969,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-20.969,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"嘴","rotateFrame":[{"duration":50,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":8},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"y":0.2,"duration":6},{"duration":0}]},{"name":"右手1","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":12,"rotate":-106.3868,"tweenEasing":0},{"duration":24,"rotate":-26.2264,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":2.3286,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":2.3286,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左耳","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":12,"rotate":-14.9384,"tweenEasing":0},{"duration":12,"rotate":5.3691,"tweenEasing":0},{"duration":12,"rotate":-13.3337,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-13.8027,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-13.8027,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右耳","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":12,"rotate":14.6986,"tweenEasing":0},{"duration":12,"rotate":4.7716,"tweenEasing":0},{"duration":12,"rotate":12.1816,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":25.9315,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":25.9315,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"左手2","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":12,"rotate":35.243,"tweenEasing":0},{"duration":24,"rotate":30.1214,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":6.5829,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":6.5829,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"胡子1","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":6,"rotate":4.4556,"tweenEasing":0},{"duration":6,"rotate":-19.7558,"tweenEasing":0},{"duration":8,"rotate":10.9587,"tweenEasing":0},{"duration":8,"rotate":-11.7808,"tweenEasing":0},{"duration":8,"rotate":17.3524,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"尾巴2","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":-18.3593,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-6.2263,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-6.2263,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"duration":24},{"tweenEasing":0,"duration":24},{"duration":0}]},{"name":"胡子","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":6,"rotate":-0.0026,"tweenEasing":0},{"duration":6,"rotate":13.7518,"tweenEasing":0},{"duration":8,"rotate":-4.6954,"tweenEasing":0},{"duration":8,"rotate":17.3351,"tweenEasing":0},{"duration":8,"rotate":-7.5326,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":48,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"右手2","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":12,"rotate":112.3086,"tweenEasing":0},{"duration":24,"rotate":37.7087,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":8.6942,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":8.6942,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]},{"name":"bone2","rotateFrame":[{"duration":26,"tweenEasing":0},{"duration":24,"rotate":-9.3495,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.1888,"tweenEasing":0},{"duration":24,"tweenEasing":0},{"duration":24,"rotate":-12.1888,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}],"scaleFrame":[{"tweenEasing":0,"duration":50},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":48},{"tweenEasing":0,"duration":48},{"duration":0}]}],"playTimes":0,"ffd":[],"slot":[{"name":"尾巴","displayFrame":[],"colorFrame":[]},{"name":"右腿","displayFrame":[],"colorFrame":[]},{"name":"左腿","displayFrame":[],"colorFrame":[]},{"name":"右手","displayFrame":[{"duration":3},{"duration":2,"value":-1},{"duration":45,"value":-1},{"duration":106}],"colorFrame":[]},{"name":"左手","displayFrame":[{"duration":3},{"duration":2,"value":-1},{"duration":45,"value":-1},{"duration":106}],"colorFrame":[]},{"name":"领带","displayFrame":[],"colorFrame":[]},{"name":"右耳","displayFrame":[],"colorFrame":[]},{"name":"左耳","displayFrame":[],"colorFrame":[]},{"name":"组_1","displayFrame":[],"colorFrame":[]},{"name":"右眼","displayFrame":[],"colorFrame":[]},{"name":"右眉毛","displayFrame":[],"colorFrame":[]},{"name":"左眼","displayFrame":[],"colorFrame":[]},{"name":"左眉毛","displayFrame":[],"colorFrame":[]},{"name":"眼镜","displayFrame":[],"colorFrame":[]},{"name":"胡子","displayFrame":[],"colorFrame":[]},{"name":"鼻子","displayFrame":[],"colorFrame":[]},{"name":"嘴","displayFrame":[],"colorFrame":[]},{"name":"帽子","displayFrame":[],"colorFrame":[]},{"name":"影子","displayFrame":[],"colorFrame":[]},{"name":"身体","displayFrame":[],"colorFrame":[]},{"name":"左手伸直","displayFrame":[{"duration":3,"value":-1},{"duration":2},{"duration":45},{"duration":106,"value":-1}],"colorFrame":[]},{"name":"右手伸直","displayFrame":[{"duration":3,"value":-1},{"duration":2},{"duration":45},{"duration":8,"value":-1},{"duration":98,"value":-1}],"colorFrame":[]}],"ik":[],"duration":156}],"skin":[{"name":"","slot":[{"name":"鼻子","display":[{"name":"猫01/鼻子","transform":{"x":0.6893,"skY":62.2415,"y":-0.1933,"skX":62.2415},"type":"image","path":"猫01/鼻子"}]},{"name":"身体","display":[{"bonePose":[2,0.10006862050548088,-0.9949805380961629,0.9949805380961629,0.10006862050548088,-26.4,128.95,5,-0.23092160580048127,-0.9729723593065361,0.9729723593065361,-0.23092160580048127,5.200000000000003,5.750000000000014],"userEdges":[],"slotPose":[1,0,0,1,-17,62],"weights":[1,5,1,1,5,1,2,2,0.6890456427703172,5,0.31095435722968284,2,2,0.8737792266327024,5,0.12622077336729756,2,2,0.9246026735291119,5,0.0753973264708881,2,2,0.8441279451809226,5,0.15587205481907737,2,2,0.7438188647372951,5,0.25618113526270503,2,2,0.458852511481229,5,0.541147488518771,1,5,1,1,5,1],"transform":{"x":10,"y":-38.75},"type":"mesh","width":122,"name":"猫01/身体","uvs":[0.45041,0.00556,0.12418,0.12861,0.0168,0.3625,0,0.80194,0.09139,1,0.9123,1,1,0.80194,1,0.41944,1,0.10028,0.82377,0],"height":180,"vertices":[-6.05,-89,-45.85,-66.85,-58.95,-24.75,-61,54.35,-49.85,90,50.3,90,61,54.35,61,-14.5,61,-71.95,39.5,-90],"path":"猫01/身体","triangles":[1,2,0,9,0,7,0,2,7,2,3,7,9,7,8,4,5,6,3,4,6,7,3,6],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,0]}]},{"name":"左眉毛","display":[{"name":"猫01/左眉毛","transform":{"x":3.113,"skY":19.409,"y":1.998,"skX":19.409},"type":"image","path":"猫01/左眉毛"}]},{"name":"影子","display":[{"name":"猫01/影子","transform":{"x":884.8534,"y":735.9841},"type":"image","path":"猫01/影子"}]},{"name":"眼镜","display":[{"name":"猫01/眼镜","transform":{"x":-1.5367,"skY":97.8429,"y":2.3624,"skX":97.8429},"type":"image","path":"猫01/眼镜"}]},{"name":"右耳","display":[{"name":"猫01/右耳","transform":{"x":24.8427,"skY":78.1755,"y":-7.2444,"skX":78.1755},"type":"image","path":"猫01/右耳"}]},{"name":"左耳","display":[{"name":"猫01/左耳","transform":{"x":7.2491,"skY":127.651,"y":4.5192,"skX":127.651},"type":"image","path":"猫01/左耳"}]},{"name":"组_1","display":[{"name":"猫01/组_1","transform":{"x":89.5565,"skY":103.3513,"y":0.4939,"skX":103.3513},"type":"image","path":"猫01/组_1"}]},{"name":"领带","display":[{"bonePose":[2,0.10006862050548088,-0.9949805380961629,0.9949805380961629,0.10006862050548088,-26.4,128.95,6,-3.885780586188048e-16,1,-1,-3.885780586188048e-16,-5.299999999999999,16.85000000000001,15,-0.02855977389887697,0.9995920864606948,-0.9995920864606948,-0.02855977389887697,-5.299999999999999,81.95,5,-0.23092160580048127,-0.9729723593065361,0.9729723593065361,-0.23092160580048127,5.200000000000003,5.750000000000014],"userEdges":[],"slotPose":[1.0000000000000002,6.938893903907228e-18,-6.938893903907228e-18,1.0000000000000002,-11.999999999999996,70.00000000000001],"weights":[1,2,1,1,2,1,1,2,1,1,5,1,1,5,1,1,5,1,1,2,1,1,2,1,2,15,0.5404804692408611,6,0.4595195307591388,2,15,0.9385812044988878,6,0.061418795501112136,2,15,0.9420585956610453,6,0.05794140433895465,2,15,0.5420950026535496,6,0.45790499734645035],"transform":{"x":-11.7538,"skY":-91.6366,"y":7.0386,"skX":-91.6366},"type":"mesh","width":120,"name":"猫01/领带","uvs":[0.46583,0.18397,0.25292,0.19872,0,0.15897,0,0.00288,0.57875,0,1,0,1,0.15417,0.65917,0.16891,0.6625,0.61314,0.685,1,0.39792,1,0.43375,0.61314],"height":156,"vertices":[-4.1,-49.3,-29.65,-47,-60,-53.2,-60,-77.55,9.45,-78,60,-78,60,-53.95,19.1,-51.65,19.5,17.65,22.2,78,-12.25,78,-7.95,17.65],"path":"猫01/领带","triangles":[4,7,5,5,7,6,0,11,8,0,8,7,4,0,7,8,11,9,11,10,9,1,0,4,3,1,4,3,2,1],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,0]}]},{"name":"帽子","display":[{"name":"猫01/帽子","transform":{"x":12.1614,"skY":20.7126,"y":6.1486,"skX":20.7126},"type":"image","path":"猫01/帽子"}]},{"name":"尾巴","display":[{"bonePose":[2,0.10006862050548088,-0.9949805380961629,0.9949805380961629,0.10006862050548088,-26.4,128.95,7,-0.9857652909736379,0.1681273062642085,-0.1681273062642085,-0.9857652909736379,-65.55000000000001,142.15000000000003,17,0.11417268347300655,-0.9934609193866524,0.9934609193866524,0.11417268347300655,-127.69999999999999,152.75000000000003,26,-0.793406064886026,-0.6086927108172653,0.6086927108172653,-0.793406064886026,-120.50000000000001,90.10000000000002,29,-0.9773007365750258,0.21185672113461934,-0.21185672113461934,-0.9773007365750258,-161.95000000000002,58.3],"userEdges":[],"slotPose":[1,-6.661338147750939e-16,6.661338147750939e-16,1,-133.49999999999997,108.50000000000007],"weights":[1,29,1,4,29,0.5227016984146547,26,0.43202636408426703,17,0.03465313859056454,7,0.010618798910513497,2,26,0.48,17,0.52,1,17,1,4,17,0.4911620289380977,7,0.486310553875708,26,0.015607726312633907,29,0.006919690873560398,4,17,0.4935498145297986,7,0.4918862208015806,26,0.010039731191844524,29,0.004524233476776202,1,7,1,1,7,1,1,2,1,1,2,1,1,2,1,1,7,1,1,7,1,4,7,0.7433172546809301,17,0.24222335523992874,26,0.01106360379462275,29,0.0033957862845183373,1,17,1,2,26,0.48,17,0.52,1,26,1,4,29,0.7305281686669947,26,0.2600263049428544,17,0.007092878355418108,7,0.002352648034732981,1,29,1],"transform":{"x":-0.8857,"skY":142.505,"y":-22.5117,"skX":142.505},"type":"mesh","width":175,"name":"猫01/尾巴","uvs":[0.00514,0.23853,0.31057,0.16835,0.45657,0.27477,0.50629,0.53807,0.46914,0.88945,0.52057,1,0.69714,1,0.86914,0.96422,1,0.81972,1,0.62844,0.92057,0.63899,0.82286,0.75,0.68286,0.82752,0.60543,0.82477,0.63114,0.57706,0.61057,0.2,0.45143,0,0.28571,0,0,0],"height":109,"vertices":[-86.6,-28.5,-33.15,-36.15,-7.6,-24.55,1.1,4.15,-5.4,42.45,3.6,54.5,34.5,54.5,64.6,50.6,87.5,34.85,87.5,14,73.6,15.15,56.5,27.25,32,35.7,18.45,35.4,22.95,8.4,19.35,-32.7,-8.5,-54.5,-37.5,-54.5,-87.5,-54.5],"path":"猫01/尾巴","triangles":[10,11,8,11,7,8,10,8,9,12,6,11,11,6,7,15,3,14,12,13,6,13,5,6,2,3,15,3,13,14,16,2,15,4,5,13,3,4,13,16,1,2,17,1,16,17,0,1,18,0,17],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,0]}]},{"name":"嘴","display":[{"name":"猫01/嘴","transform":{"x":2.7,"y":0.4},"type":"image","path":"猫01/嘴"}]},{"name":"左眼","display":[{"name":"猫01/左眼","transform":{"x":2.2392,"skY":103.3513,"y":5.7217,"skX":103.3513},"type":"image","path":"猫01/左眼"}]},{"name":"右手伸直","display":[{"name":"猫01伸/右手伸直","transform":{"x":-6.0558,"skY":-52.1105,"y":-53.1162,"skX":-52.1105},"type":"image","path":"猫01伸/右手伸直"}]},{"name":"左腿","display":[{"name":"猫01/左腿","transform":{"x":16.201,"skY":-91.0238,"y":2.711,"skX":-91.0238},"type":"image","path":"猫01/左腿"}]},{"name":"右眼","display":[{"name":"猫01/右眼","transform":{"x":1.7338,"skY":103.3513,"y":5.0365,"skX":103.3513},"type":"image","path":"猫01/右眼"}]},{"name":"胡子","display":[{"bonePose":[24,-0.9086924368221263,0.41746623248146225,-0.41746623248146225,-0.9086924368221263,0,-54.9,25,0.9915333108690438,0.12985258348247164,-0.12985258348247164,0.9915333108690438,34.7,-61.65],"userEdges":[],"slotPose":[0.9999999999999999,-2.498001805406602e-16,2.498001805406602e-16,0.9999999999999999,21.000000000000007,-42.499999999999986],"weights":[2,24,0.5957227179303393,25,0.4042772820696607,1,24,1,1,24,1,1,24,1,1,24,1,2,24,0.5465316356128019,25,0.4534683643871981,1,25,1,1,25,1,1,25,1,1,25,1,1,25,1],"transform":{"x":-11.0973,"skY":-7.4611,"y":20.7668,"skX":-7.4611},"type":"mesh","width":176,"name":"猫01/胡子","uvs":[0.47727,0.42941,0.14858,0.99941,0,0.99941,0,0.25294,0.16619,0.11824,0.46989,0.26824,0.62784,0.07647,0.83381,0,1,0,1,0.81412,0.76108,0.56471],"height":85,"vertices":[-4,-6,-61.85,42.45,-88,42.45,-88,-21,-58.75,-32.45,-5.3,-19.7,22.5,-36,58.75,-42.5,88,-42.5,88,26.7,45.95,5.5],"path":"猫01/胡子","triangles":[10,9,8,7,10,8,6,10,7,6,0,10,5,0,6,5,4,0,4,1,0,3,2,1,3,1,4],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,0]}]},{"name":"右腿","display":[{"name":"猫01/右腿","transform":{"x":23.5727,"skY":-75.4548,"y":-10.6202,"skX":-75.4548},"type":"image","path":"猫01/右腿"}]},{"name":"右手","display":[{"bonePose":[2,0.10006862050548088,-0.9949805380961629,0.9949805380961629,0.10006862050548088,-26.4,128.95,9,0.6141409115204024,0.7891963892447109,-0.7891963892447109,0.6141409115204024,31.80000000000001,23.89999999999999,21,-0.8582390203981698,0.5132502156511869,-0.5132502156511869,-0.8582390203981698,74.25,78.44999999999999,28,0.7318029361026762,0.6815162967321489,-0.6815162967321489,0.7318029361026762,33.70000000000001,102.69999999999999],"userEdges":[],"slotPose":[1,1.6653345369377348e-16,-1.6653345369377348e-16,1,56.49999999999999,72],"weights":[3,9,0.9332953684052754,21,0.03988697109198161,28,0.026817660502743007,1,2,1,1,2,1,1,9,1,2,9,0.56,21,0.44,1,21,1,2,28,0.55,21,0.45,1,28,1,1,28,1,1,28,1,1,28,1,1,28,1,1,28,1,1,28,1,1,28,1,1,28,1,2,28,0.55,21,0.45,1,21,1,1,21,1,3,21,0.4586177517259628,9,0.4535368207985339,28,0.0878454274755032,2,9,0.56,21,0.44,1,9,1,1,9,1,1,9,1,1,9,1],"transform":{"x":-4.2374,"skY":-42.9622,"y":-38.0049,"skX":-42.9622},"type":"mesh","width":69,"name":"猫01/右手","uvs":[0.26884,0,0,0,0,0.39918,0.1587,0.41721,0.37391,0.55164,0.16449,0.59098,0.00507,0.70041,0,0.77664,0.03116,0.8832,0.3,1,0.72101,1,0.77536,0.91557,0.71957,0.84959,0.61522,0.81107,0.46667,0.81311,0.43913,0.81557,0.42029,0.80246,0.66667,0.78443,0.90507,0.73402,1,0.65492,1,0.58811,1,0.47828,0.92319,0.34221,0.70217,0.1791,0.36522,0.02336],"height":122,"vertices":[-15.95,-61,-34.5,-61,-34.5,-12.3,-23.55,-10.1,-8.7,6.3,-23.15,11.1,-34.15,24.45,-34.5,33.75,-32.35,46.75,-13.8,61,15.25,61,19,50.7,15.15,42.65,7.95,37.95,-2.3,38.2,-4.2,38.5,-5.5,36.9,11.5,34.7,27.95,28.55,34.5,18.9,34.5,10.75,34.5,-2.65,29.2,-19.25,13.95,-39.15,-9.3,-58.15],"path":"猫01/右手","triangles":[22,4,21,17,18,20,4,17,20,21,4,20,18,19,20,23,4,22,3,4,23,12,10,11,4,16,17,13,14,10,14,9,10,13,10,12,15,9,14,24,3,23,1,3,0,0,3,24,5,6,16,8,9,16,4,5,16,16,9,15,6,7,16,7,8,16,1,2,3],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,0]}]},{"name":"左手","display":[{"bonePose":[2,0.10006862050548088,-0.9949805380961629,0.9949805380961629,0.10006862050548088,-26.4,128.95,8,-0.628061234545813,0.7781639195316045,-0.7781639195316045,-0.628061234545813,-66.7,22,19,-0.564293574788866,-0.8255742010576654,0.8255742010576654,-0.564293574788866,-98.5,61.400000000000006,27,-0.9634528338167091,-0.267878026367511,0.267878026367511,-0.9634528338167091,-114.05000000000001,38.650000000000006],"userEdges":[],"slotPose":[0.9999999999999998,4.440892098500626e-16,-4.440892098500626e-16,0.9999999999999998,-116,41.99999999999999],"weights":[1,27,1,1,27,1,2,27,0.52,19,0.48,3,19,0.5,8,0.29,27,0.21,2,19,0.53,8,0.47000000000000003,2,19,0.49,8,0.51,1,2,1,1,2,1,1,2,1,2,2,0.64,8,0.36,2,8,0.81,2,0.19,2,19,0.49,8,0.51,2,19,0.73,8,0.27,2,27,0.52,19,0.48,1,27,1,1,27,1,1,27,1],"transform":{"x":0.9813,"skY":164.462,"y":-3.7499,"skX":164.462},"type":"mesh","width":124,"name":"猫01/左手","uvs":[0,0.44257,0.07621,0.56284,0.37742,0.60135,0.41734,0.83581,0.53871,1,0.66532,1,0.87742,0.81351,1,0.36622,1,0,0.84556,0,0.70887,0.18176,0.61815,0.30878,0.59758,0.26622,0.49274,0.10338,0.37379,0.05878,0.26774,0,0,0],"height":74,"vertices":[-62,-4.25,-52.55,4.65,-15.2,7.5,-10.25,24.85,4.8,37,20.5,37,46.8,23.2,62,-9.9,62,-37,42.85,-37,25.9,-23.55,14.65,-14.15,12.1,-17.3,-0.9,-29.35,-15.65,-32.65,-28.8,-37,-62,-37],"path":"猫01/左手","triangles":[10,6,7,9,10,7,9,7,8,10,11,6,11,5,6,3,4,11,2,3,11,11,4,5,12,2,11,13,2,12,14,2,13,14,15,2,15,1,2,0,1,15,16,0,15],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,0]}]},{"name":"左手伸直","display":[{"name":"猫01伸/左手伸直","transform":{"x":-0.9077,"skY":-128.9072,"y":53.8063,"skX":-128.9072},"type":"image","path":"猫01伸/左手伸直"}]},{"name":"右眉毛","display":[{"name":"猫01/右眉毛","transform":{"x":8.65,"y":-0.05},"type":"image","path":"猫01/右眉毛"}]}]}],"defaultActions":[{"gotoAndPlay":"begin"}],"ik":[],"type":"Armature"}],"frameRate":24,"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "73029a30-648f-41d1-8646-8cdd486bfd27",
"subMetas": {}
}
\ No newline at end of file
{"name":"mao","imagePath":"mao_tex.png","SubTexture":[{"name":"猫01/影子","x":1,"height":66,"y":343,"width":337},{"name":"猫01/尾巴","x":1,"height":109,"y":188,"width":175},{"name":"猫01/右腿","x":178,"height":117,"y":188,"width":104},{"name":"猫01/左腿","x":1,"height":115,"y":569,"width":64},{"name":"猫01/右手","x":427,"height":122,"y":590,"width":69},{"name":"猫01/左手","x":301,"height":74,"y":590,"width":124},{"name":"猫01伸/左手伸直","x":299,"height":169,"y":1,"width":168},{"name":"猫01伸/右手伸直","x":299,"height":169,"y":172,"width":168},{"name":"猫01/身体","x":340,"height":180,"y":343,"width":122},{"name":"猫01/领带","x":1,"height":156,"y":411,"width":120},{"name":"猫01/右耳","x":155,"height":76,"y":602,"width":90},{"name":"猫01/左耳","x":67,"height":85,"y":602,"width":86},{"name":"猫01/组_1","x":1,"height":185,"y":1,"width":296},{"name":"猫01/右眼","x":247,"height":60,"y":666,"width":59},{"name":"猫01/右眉毛","x":67,"height":5,"y":595,"width":33},{"name":"猫01/左眼","x":1,"height":60,"y":686,"width":59},{"name":"猫01/左眉毛","x":247,"height":12,"y":602,"width":31},{"name":"猫01/眼镜","x":301,"height":63,"y":525,"width":170},{"name":"猫01/胡子","x":123,"height":85,"y":515,"width":176},{"name":"猫01/鼻子","x":67,"height":24,"y":569,"width":28},{"name":"猫01/嘴","x":1,"height":30,"y":299,"width":65},{"name":"猫01/帽子","x":123,"height":102,"y":411,"width":158}],"height":1024,"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "6f8ba9a2-235e-4cf6-a066-504005631f4e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0a4363c3-dd0a-4019-bfa9-bbf9f61be6f8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 1024,
"platformSettings": {},
"subMetas": {
"mao_tex": {
"ver": "1.0.4",
"uuid": "672de77e-64c5-46a7-82e7-91b83c5171d8",
"rawTextureUuid": "0a4363c3-dd0a-4019-bfa9-bbf9f61be6f8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -7.5,
"offsetY": 138.5,
"trimX": 1,
"trimY": 1,
"width": 495,
"height": 745,
"rawWidth": 512,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "2e7b598b-8d8b-4ee7-a11c-94f3f04479c9",
"subMetas": {}
}
\ No newline at end of file
...@@ -75,22 +75,25 @@ ...@@ -75,22 +75,25 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 7 "__id__": 11
}, },
{ {
"__id__": 14 "__id__": 25
},
{
"__id__": 30
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 52
}, },
{ {
"__id__": 25 "__id__": 53
}, },
{ {
"__id__": 26 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -246,11 +249,18 @@ ...@@ -246,11 +249,18 @@
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [
{
"__id__": 6
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 9
},
{
"__id__": 10
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -299,14 +309,79 @@ ...@@ -299,14 +309,79 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "32MJMZ2HRGF4BOf533Avyi" "_id": "034rptRj5Fz5JwtpWhZ0d7"
},
{
"__type__": "cc.Node",
"_name": "cloud",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
},
{
"__id__": 8
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 102
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-309,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1dgOZO6ExEOo/5YXfwAwfw"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 5 "__id__": 6
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -317,7 +392,7 @@ ...@@ -317,7 +392,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "8288e3d4-4c75-4b27-8f01-f7014417f4dd" "__uuid__": "340552b0-d98e-4302-8122-a5c2bec9ef1c"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -331,21 +406,113 @@ ...@@ -331,21 +406,113 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "97/S6HDq9MeqgmV1Zwnhbb" "_id": "8dXK5qo5VFXprfx/LoeibE"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 20,
"_left": 0,
"_right": -353.5,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "farhpx16VGYJHGY/kdTZrx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4ed203b6-e0b8-4ae9-9f76-d265f4e15334"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "48xP1MNOpI/Kbc0cQiVnVD"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "a1A/2idVpPwZPGkY1mbpg1"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bottomPart", "_name": "center",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 8 "__id__": 12
}, },
{ {
"__id__": 11 "__id__": 14
},
{
"__id__": 15
},
{
"__id__": 16
} }
], ],
"_active": true, "_active": true,
...@@ -373,8 +540,8 @@ ...@@ -373,8 +540,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
635.132, 0,
-356.326, 0,
0, 0,
0, 0,
0, 0,
...@@ -396,23 +563,20 @@ ...@@ -396,23 +563,20 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "8c7k8ep/ZFNpO263+1QHz9" "_id": "ca9+QGLpdFK5GC+8n1j0+n"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_left", "_name": "orange_plate",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 11
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 13
},
{
"__id__": 10
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -426,8 +590,8 @@ ...@@ -426,8 +590,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 61, "width": 1186,
"height": 67 "height": 556
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -438,8 +602,8 @@ ...@@ -438,8 +602,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-148.464, 0,
34, 0,
0, 0,
0, 0,
0, 0,
...@@ -461,14 +625,14 @@ ...@@ -461,14 +625,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "5ad2wLQLxIN5Eg7OHecSH6" "_id": "edNU6tgc5Ci4rcXyf08EgT"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 12
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -479,7 +643,7 @@ ...@@ -479,7 +643,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5" "__uuid__": "a1aa74d6-0b0f-4dd6-b103-47293138b142"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -493,91 +657,1253 @@ ...@@ -493,91 +657,1253 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "84mqOgJ3JNqZrYVTEU8CjE" "_id": "8elQ/dJN5OQZXV6MN5fP20"
}, },
{ {
"__type__": "cc.Button", "__type__": "cc.Node",
"_name": "", "_name": "pic_area",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 8 "__id__": 11
}, },
"_enabled": true, "_children": [],
"_normalMaterial": null, "_active": true,
"_grayMaterial": null, "_components": [],
"duration": 0.1, "_prefab": null,
"zoomScale": 1.2, "_opacity": 255,
"clickEvents": [], "_color": {
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 255, "g": 255,
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_N$pressedColor": { "_contentSize": {
"__type__": "cc.Color", "__type__": "cc.Size",
"r": 211, "width": 400,
"g": 211, "height": 400
"b": 211,
"a": 255
}, },
"pressedColor": { "_anchorPoint": {
"__type__": "cc.Color", "__type__": "cc.Vec2",
"r": 211, "x": 0.5,
"g": 211, "y": 0.5
"b": 211,
"a": 255
}, },
"_N$hoverColor": { "_trs": {
"__type__": "cc.Color", "__type__": "TypedArray",
"r": 255, "ctor": "Float64Array",
"g": 255, "array": [
"b": 255, 335,
"a": 255 0,
0,
0,
0,
0,
1,
1,
1,
1
]
}, },
"hoverColor": { "_eulerAngles": {
"__type__": "cc.Color", "__type__": "cc.Vec3",
"r": 255, "x": 0,
"g": 255, "y": 0,
"b": 255, "z": 0
"a": 255 },
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "22EcLxEmJB7ItwY9lhV11Y"
},
{
"__type__": "cc.Node",
"_name": "row",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 650,
"height": 124
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-210,
115,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b9j7RHcCFGyo6u98exwEzl"
},
{
"__type__": "cc.Node",
"_name": "word",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [
{
"__id__": 17
},
{
"__id__": 21
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 650,
"height": 124
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-210,
-85,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0eBtOZMfBIl5uIySw6UBoR"
},
{
"__type__": "cc.Node",
"_name": "card_3",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 18
},
{
"__id__": 19
},
{
"__id__": 20
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 317,
"height": 124
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-166.5,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e1Xo6tf/9JA7bth5JGwNIh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7d8ba7b5-49d7-4336-b3d2-0ec8980e8c96"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "42U1pzYRlGzaf5WmK6ilU6"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "e3mW9qxCFLH68UKp3AqIP9"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "e750/HU19Bw5QVGWJKqjkt"
},
{
"__type__": "cc.Node",
"_name": "card_4",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 22
},
{
"__id__": 23
},
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 443,
"height": 124
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-103.5,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "cbMpqYmFdP2YuzHP+zPPP9"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e613b588-b607-4250-9acb-dedf026fc117"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9aoEnrCH9CP7wXMAIsawpi"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "69Oq4S7AtPHrXP0PRu0RZq"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "2eDtpqx9VOuKIVyL8faaaZ"
},
{
"__type__": "cc.Node",
"_name": "cat",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 26
}
],
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 362.6105263157899,
"height": 483.5647539622176
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
140.75499999999997,
-15.14,
0,
0,
0,
0,
1,
0.45,
0.45,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "fbcwPkCYNECK/j8GXmYMy1"
},
{
"__type__": "cc.Node",
"_name": "click",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 480
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
884.892,
-505.013,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1aa4t/DkJKoLI05clKVpp8"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}, },
"_N$disabledColor": { "_N$disabledColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 124, "r": 124,
"g": 124, "g": 124,
"b": 124, "b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "8csx9+V2VBDLrc5jLMs8qW"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "73029a30-648f-41d1-8646-8cdd486bfd27#6f8ba9a2-235e-4cf6-a066-504005631f4e",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "73029a30-648f-41d1-8646-8cdd486bfd27"
},
"_N$dragonAtlasAsset": {
"__uuid__": "6f8ba9a2-235e-4cf6-a066-504005631f4e"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "f21zfCPANCVI7oHaHihRh9"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 417.6576315789473,
"_top": 0,
"_bottom": 236.05793035850104,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "08fDJVw4pLk5R12ocTuJJk"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 31
},
{
"__id__": 36
},
{
"__id__": 49
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 30
},
"_children": [
{
"__id__": 32
},
{
"__id__": 34
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 31
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255 "a": 255
}, },
"_N$normalSprite": null, "_contentSize": {
"_N$pressedSprite": null, "__type__": "cc.Size",
"pressedSprite": null, "width": 0,
"_N$hoverSprite": null, "height": 0
"hoverSprite": null, },
"_N$disabledSprite": null, "_anchorPoint": {
"_N$target": null, "__type__": "cc.Vec2",
"_id": "bcYN/4EKBJhbIAfovo9Ah1" "x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "cfMLGsq0BMhJARv+ySMAxS"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY"
},
{
"__type__": "cc.Node",
"_name": "MuliBold_YzEVy",
"_objFlags": 0,
"_parent": {
"__id__": 31
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aeAKB+FMhEP7tRqAlvYkNs"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "2e7b598b-8d8b-4ee7-a11c-94f3f04479c9"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "6dgN9PxHBKfIhkcfH/BmzZ"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 30
},
"_children": [
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_right", "_name": "card_1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 38
},
{
"__id__": 13
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -591,8 +1917,8 @@ ...@@ -591,8 +1917,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 60, "width": 124,
"height": 66 "height": 124
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -603,8 +1929,8 @@ ...@@ -603,8 +1929,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-47.164, 0,
34, 0,
0, 0,
0, 0,
0, 0,
...@@ -626,25 +1952,21 @@ ...@@ -626,25 +1952,21 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "46i3stdzpHX6zQHTGnRsNE" "_id": "dfYtAyo11NpLK2DcrcpIJM"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [],
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59" "__uuid__": "81fcb3e0-3609-45b3-ba4f-bab4e586a579"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -658,96 +1980,22 @@ ...@@ -658,96 +1980,22 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "42Sh8QS/BHn4WiGyPQPKPt" "_id": "e1k9Dz/SZAT4sRJH7H0j4C"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "1aj32fYY1IxLesa77E70Qu"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "res", "_name": "equal",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 36
},
"_children": [
{
"__id__": 15
},
{
"__id__": 18
}, },
"_children": [],
"_active": true,
"_components": [
{ {
"__id__": 21 "__id__": 40
} }
], ],
"_active": false,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -759,8 +2007,8 @@ ...@@ -759,8 +2007,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 22,
"height": 0 "height": 19
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -794,22 +2042,50 @@ ...@@ -794,22 +2042,50 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O" "_id": "0fBM9exW5L+oJriv3ZXb3R"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "49692a38-3a82-4005-86c4-29d35856ddb9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1eMaZWEjlMZrs1l+UB0+kY"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "font", "_name": "card_2",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 36
}, },
"_children": [ "_children": [],
"_active": true,
"_components": [
{ {
"__id__": 16 "__id__": 42
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -821,8 +2097,8 @@ ...@@ -821,8 +2097,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 220,
"height": 0 "height": 124
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -856,20 +2132,48 @@ ...@@ -856,20 +2132,48 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM" "_id": "95eEgXQ/FPy4LxDv8mlbsN"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "bb36de2c-c51d-4f64-88f5-2356827733b6"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a24ZbyVelLdp4HC9UoL+tg"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "BRLNSDB", "_name": "card_3",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 15 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 17 "__id__": 44
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -883,8 +2187,8 @@ ...@@ -883,8 +2187,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 317,
"height": 0 "height": 124
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -918,53 +2222,50 @@ ...@@ -918,53 +2222,50 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "cfMLGsq0BMhJARv+ySMAxS" "_id": "deI9Hn/7lKObLAvpRKjJsO"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 16 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "", "_spriteFrame": {
"_N$string": "", "__uuid__": "7d8ba7b5-49d7-4336-b3d2-0ec8980e8c96"
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1"
}, },
"_isSystemFontUsed": false, "_type": 0,
"_spacingX": 0, "_sizeMode": 1,
"_batchAsBitmap": false, "_fillType": 0,
"_styleFlags": 0, "_fillCenter": {
"_underlineHeight": 0, "__type__": "cc.Vec2",
"_N$horizontalAlign": 0, "x": 0,
"_N$verticalAlign": 0, "y": 0
"_N$fontFamily": "Arial", },
"_N$overflow": 0, "_fillStart": 0,
"_N$cacheMode": 0, "_fillRange": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY" "_isTrimmedMode": true,
"_atlas": null,
"_id": "26FlC+ze5BgIzmSmn6gqm6"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img", "_name": "card_4",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 36
}, },
"_children": [ "_children": [],
"_active": true,
"_components": [
{ {
"__id__": 19 "__id__": 46
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -976,8 +2277,8 @@ ...@@ -976,8 +2277,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 443,
"height": 0 "height": 124
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1011,20 +2312,48 @@ ...@@ -1011,20 +2312,48 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs" "_id": "57qYV+XHpCwL9HaK3OiBoT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e613b588-b607-4250-9acb-dedf026fc117"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "22xaIqwadJj5hJUmvKbVLx"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon", "_name": "plus",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 18 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1038,8 +2367,8 @@ ...@@ -1038,8 +2367,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 138, "width": 25,
"height": 141 "height": 25
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1073,21 +2402,21 @@ ...@@ -1073,21 +2402,21 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1blU2OArJIfoC9XfupGxJG" "_id": "94srRE25NMSonYA27xEFVK"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a" "__uuid__": "cf945f26-d24a-4e68-8b3a-c0569749a4d0"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1101,18 +2430,18 @@ ...@@ -1101,18 +2430,18 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "03GEWUEZJGyKormWgIWCtM" "_id": "0cgDccKfFDkYqh/9G4Z14j"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 30
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 50
} }
], ],
"_active": true, "_active": true,
...@@ -1170,13 +2499,13 @@ ...@@ -1170,13 +2499,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 49
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1232,7 +2561,7 @@ ...@@ -1232,7 +2561,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
import { Cat } from "../script/Cat";
import { PicArea } from "../script/PicArea";
import { getLetterArr, Word, WordArea, WordArea2, WordGroup } from "../script/Entites";
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
/**
* 猫咪节点
*/
cat: Cat;
picArea: PicArea;
//单词区域1
wordArea: WordArea;
/**单词区域*/
wordArea2: WordArea2;
//次数
playTimes = 0;
//最大次数
readonly MAX_PLAY_TIMES = 2;
/**是否结束 */
_end = false;
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
if (this.data.pic && this.data.pic.picUrl) {
this._imageResList.push({ url: this.data.pic.picUrl });
}
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
const add = (item, key) => {
if (!item) {
return;
}
item[key] && this._audioResList.push({ url: item[key] });
}
const addWord = (arr) => {
if (!arr) {
return;
}
for (let word of arr) {
add(word, 'audioUrl');
}
}
add(this.data, 'guideAudioUrl1');
add(this.data, 'guideAudioUrl2');
add(this.data, 'guideAudioUrl3');
if (this.data.exercises) {
let exercises = this.data.exercises;
addWord(exercises.wordArr);
addWord(exercises.wordArr2);
add(exercises, 'word');
add(exercises, 'word2');
}
}
addPreloadAnima() {
}
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
}
_cantouch = null;
initData() {
// 所有全局变量 默认都是null
this._cantouch = false;
//将“=”右边的数据添加到数组中
this.data.exercises.wordArr.push(this.data.exercises.word);
//将组合后的单词添加到数组中
this.data.exercises.wordArr2.push(this.data.exercises.word2);
}
initView() {
this.initBg();
this.initCat();
this.initPicArea();
this.initWordArea();
this.beginGame();
}
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
const canvas = cc.find('Canvas');
bgNode.scale = Math.max((canvas.width / bgNode.width), (canvas.height / bgNode.height));
}
private initCat() {
this.cat = new Cat(this);
this.cat.data = this.data;
this.cat.init();
}
private initPicArea() {
//图片区域
this.picArea = new PicArea(this.cat);
this.picArea.data = this.data.pic;
this.picArea.node = cc.find("Canvas/center/pic_area");
this.picArea.init();
this.picArea.canTouch = true;
this.picArea.node.addComponent(cc.Button);
this.picArea.node.on('click', () => {
if (!this._cantouch) {
return;
}
//设置不可点击
this._cantouch = false;
this.picArea.click(() => {
//设置可点击
this._cantouch = true;
});
})
}
private initWordArea() {
const getWord = (val, color, audioUrl) => {
let word = new Word(this.cat);
let valArr = getLetterArr(val);
word.data = valArr;
word.audioUrl = audioUrl;
word.buildWordNode(color);
word.node.addComponent(cc.Button);
word.node.opacity = 0;
return word;
}
this.wordArea = new WordArea();
this.wordArea.node = cc.find("Canvas/center/row");
this.wordArea.data = this.data.exercises;
//单词数组
let wordArr = this.wordArea.data.wordArr;
for(let i = 0; i < wordArr.length; ++ i){
let word = wordArr[i];
const node = getWord(word.val, word.fontColor, word.audioUrl);
this.wordArea.addWord(node);
}
this.wordArea2 = new WordArea2(this.cat, this.data.exercises.wordArr2);
this.wordArea2.init();
}
playLocalAudio(audioName, callback = null) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
callback && callback();
});
})
}
/**
* 开始游戏
*/
beginGame() {
const play = () => {
this.cat.playAni('normal', 0);
this.cat.canTouch = true;
//依次播放卡片
this.play(this.wordArea, 0);
}
if (this.data.guideAudioUrl1) {
//播放开始动画
this.cat.playAni('begin', 0);
//播放引导音频1
this.playAudioByUrl(this.data.guideAudioUrl1, () => {
play();
});
}
else {
play();
}
}
/**
* 播放卡片
* @param wordArea
* @param index
*/
play(wordArea: WordArea, index = 0) {
let word = wordArea.wordArr[index];
let last = wordArea.wordArr.length - 1;
if (index == 0) {
wordArea.show();
for(let i = 0 ; i < last; ++ i){
cc.tween(wordArea.wordArr[i].node).to(0.1, { opacity: 255 }).start();
}
}
if (index == last) {
wordArea.equalNode.active = true;
cc.tween(wordArea.wordArr[index].node).to(0.1, { opacity: 255 }).start();
}
word.click(() => {
if (index == last) {
this.playTimes++;
if (this.playTimes == 1) {
this.play(this.wordArea, 0);
}
else if (this.playTimes >= this.MAX_PLAY_TIMES) {
//显示下一行
this.wordArea2.show(()=>{
this.wordArea2.click(()=>{
this.showEnd();
});
});
}
}
else {
this.play(wordArea, index + 1);
}
})
}
/**
* 显示结束画
*/
showEnd() {
console.log("play end...");
this._end = true;
if (this.data.guideAudioUrl3) {
//设置屏幕不可点击
this._cantouch = false;
const state = this.cat.playAni('begin', 0);
this.playAudioByUrl(this.data.guideAudioUrl3, () => {
//设置屏幕可点击
this._cantouch = true;
state.stop();
this.cat.playAni('normal', 0);
onHomeworkFinish();
})
} else {
onHomeworkFinish();
}
//设置所有卡片可点击
for (let i = 0; i < this.wordArea.wordArr.length; ++i) {
let word = this.wordArea.wordArr[i];
word.canTouch = true;
//移除点击事件
word.node.off('click');
//绑定新事件
word.node.on('click', () => {
if (!this._cantouch) {
return;
}
this._cantouch = false;
word.click(() => {
this._cantouch = true;
});
})
}
this.wordArea2.card.on('click', ()=>{
if (!this._cantouch) {
return;
}
this._cantouch = false;
this.wordArea2.click(()=>{
this._cantouch = true;
})
})
}
}
import SceneComponent from "../scene/OP71";
import { Item } from "./Item";
export class Cat extends Item {
private _animationState: dragonBones.AnimationState;
private _scene: SceneComponent;
/**
* 是否待机状态
*/
private _standby = false;
set standby(standby: boolean) {
this._standby = standby;
}
get standby() {
return this._standby;
}
constructor(scene: SceneComponent) {
super();
this._scene = scene;
this._node = cc.find('Canvas/cat');
}
playAni(name, times = 1, cb = null) {
if (this._animationState && this._animationState.name != name) {
this._animationState.stop();
}
const cat = this.node;
var dragonDisplay = cat.getComponent(dragonBones.ArmatureDisplay);
const state = dragonDisplay.playAnimation(name, times);
dragonDisplay.on(dragonBones.EventObject.COMPLETE, () => {
if (cb) {
cb();
}
})
this._animationState = state;
return state;
}
stopAni() {
if (!this._animationState) {
return;
}
this._animationState.stop();
this._animationState = null;
}
init() {
let btn = cc.find('click', this.node);
btn.on('click', () => {
if (!this.canTouch) {
return;
}
if (this.standby) {
return;
}
this.standby = true;
this._scene._cantouch = false;
let audoUrl = this.data.guideAudioUrl2;
//播放待机音频
if (audoUrl) {
//播放待机动画
this.playAni('begin', 0);
//播放完成,停止动画
this._scene.playAudioByUrl(audoUrl, () => {
this.playAni('normal', 0);
this.standby = false;
this._scene._cantouch = true;
});
}
else {
this.playAni('normal', 0);
this.standby = false;
this._scene._cantouch = true;
}
});
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "f591ab98-1a21-487f-aecc-b13e02e4acf8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { Cat } from "./Cat";
import { Item } from "./Item";
import { delayCall, getSprNode, playAudio } from "./util";
/**
* 单词对像
*/
export class Word extends Item {
private _audioUrl: string;
private _audioClip: cc.AudioClip;
private _initScale = 1;
/**间隔 */
private _spacing = 20;
private _nodeArr = [];
private _cat: Cat;
get nodeArr() {
return this._nodeArr;
}
set audioUrl(audioUrl: string) {
this._audioUrl = audioUrl
//音频地址存在,则加载音频
if (audioUrl && audioUrl != "") {
cc.assetManager.loadRemote(this._audioUrl, (err, audioClip) => {
this._audioClip = audioClip;
});
}
}
get audioUrl() {
return this._audioUrl;
}
constructor(cat: Cat) {
super();
this._cat = cat;
}
buildWordNode(fontColor: string) {
let valArr = this.data;
let length = 0;
//计算字母总长度
for (let i = 0; i < valArr.length; ++i) {
length += valArr[i].length;
}
let resName = "";
if (length == 1) {
resName = "card_1";
}
else if (length < 4) {
resName = "card_2";
}
else {
resName = "card_3";
}
this.node = getSprNode(resName);
//设置不可点击
this.canTouch = false;
let color = new cc.Color();
color.fromHEX(fontColor);
let font = cc.find('Canvas/res/font/MuliBold_YzEVy').getComponent(cc.Label).font;
for (let i = 0; i < valArr.length; ++i) {
const labelNode = new cc.Node();
labelNode.color = color;
const label = labelNode.addComponent(cc.Label);
label.lineHeight = 90;
label.fontSize = 90;
label.font = font;
label.string = valArr[i];
labelNode.parent = this.node;
labelNode.y = 0;
this._nodeArr.push(labelNode);
}
this._initScale = this.node.scale;
}
/**
* 卡片点击事件处理
* @param callback
*/
click(callback = null) {
//动画时长
let tweenDuration = 0.6;
const twinkle = (node) => {
cc.tween(node)
.to(tweenDuration / 2, { scale: this._initScale * 1.5 })
.to(tweenDuration / 2, { scale: this._initScale })
.call(() => {
})
.start();
};
//播放动画
twinkle(this.node);
//播放音频
if (this._audioClip) {
playAudio(this._audioClip, () => {
});
}
if (callback) {
//获取音频时长
let duration = this.getAudioDuration();
//回调延迟时间
let timeout = tweenDuration;
//如果音频时长大于动画时长,则等音频播放完成后,再执行回待函数
if (duration > tweenDuration) {
timeout = duration;
}
console.log(timeout, duration)
delayCall(timeout + 1, callback);
}
}
getAudioDuration() {
//获取音频时长
let duration = this._audioClip == null ? 0 : this._audioClip.duration;
return duration;
}
resetPosition() {
let nodeArr = this._nodeArr;
let tW = 0;
for (let i = 0; i < nodeArr.length; ++i) {
tW += nodeArr[i].width;
}
tW += (nodeArr.length - 1) * this._spacing;
let startX = - tW / 2;
for (let i = 0; i < nodeArr.length; ++i) {
nodeArr[i].x = startX + nodeArr[i].width / 2;
startX += nodeArr[i].width + this._spacing;
}
}
}
export class WordGroup extends Item {
private _wordArr = [];
get wordArr() {
return this._wordArr;
}
show() {
}
}
/**
* 单词区域对象
*/
export class WordArea extends WordGroup {
private _equalNode;
get equalNode() {
return this._equalNode;
}
addWord(word: Word) {
if (word) {
this.wordArr.push(word);
word.node.parent = this.node;
}
}
/**
* 显示单词信息
* @param callback
*/
show(callback = null) {
let width = this.node.width;
let spacing = 25;
let x = -width / 2;
let len = this.wordArr.length;
if(len > 3){
spacing = 8;
}
//循环显示卡片
for (let i = 0; i < len - 1; ++i) {
let word = this.wordArr[i];
x += word.node.width / 2;
word.node.x = x;
x += word.node.width / 2 + spacing;
word.node.zIndex = 10 + i;
//不是最后一个,添加“+”号
if (i < len - 2) {
let plusNode = getSprNode("plus");
x += plusNode.width / 2;
plusNode.x = x;
plusNode.parent = this.node;
x += plusNode.width / 2 + spacing;
}
}
//获取“=”号精灵
let equal = getSprNode("equal");
x += equal.width / 2;
equal.x = x;
equal.parent = this.node;
equal.active = false;
this._equalNode = equal;
x += equal.width / 2 + spacing;
//最后一个单词
let word = this.wordArr[len - 1];
x += word.node.width / 2;
word.node.x = x;
word.node.zIndex = 99;
for (let i = 0; i < this.wordArr.length; ++i) {
this.wordArr[i].resetPosition();
}
if (callback) {
callback();
}
}
}
export class Word2 extends Item {
private _cat: Cat;
private _audioUrl: string;
private _audioClip: cc.AudioClip;
constructor(cat: Cat, data) {
super();
this._cat = cat;
this._data = data;
}
init() {
this._audioUrl = this._data.audioUrl;
//音频地址存在,则加载音频
if (this._audioUrl && this._audioUrl != "") {
cc.assetManager.loadRemote(this._audioUrl, (err, audioClip) => {
this._audioClip = audioClip;
});
}
this.buildNode();
}
private buildNode() {
let font = cc.find('Canvas/res/font/MuliBold_YzEVy').getComponent(cc.Label).font;
let color = new cc.Color();
color.fromHEX(this._data.fontColor);
console.log(this._data);
const labelNode = new cc.Node();
labelNode.active = false;
labelNode.color = color;
const label = labelNode.addComponent(cc.Label);
label.lineHeight = 90;
label.fontSize = 90;
label.font = font;
label.string = this._data.val;
label._forceUpdateRenderData(true);
labelNode.y = 0;
labelNode.x = 0;
this._node = labelNode;
}
/**
* 卡片点击事件处理
* @param callback
*/
click(callback = null) {
//动画时长
let tweenDuration = 0.6;
const twinkle = (node) => {
cc.tween(node)
.to(tweenDuration / 2, { scale: 1.5 })
.to(tweenDuration / 2, { scale: 1 })
.call(() => {
})
.start();
};
this.node.active = true;
//播放动画
twinkle(this.node);
//播放音频
if (this._audioClip) {
playAudio(this._audioClip, () => {
});
}
if (callback) {
//获取音频时长
let duration = this.getAudioDuration();
//回调延迟时间
let timeout = tweenDuration;
//如果音频时长大于动画时长,则等音频播放完成后,再执行回待函数
if (duration > tweenDuration) {
timeout = duration;
}
delayCall(timeout + 1, callback);
}
}
getAudioDuration() {
//获取音频时长
let duration = this._audioClip == null ? 0 : this._audioClip.duration;
return duration;
}
show() {
this._node.opacity = 255;
}
hide() {
this._node.opacity = 0;
}
}
export class WordArea2 extends WordGroup {
private _cat: Cat;
card: cc.Node;
constructor(cat: Cat, data) {
super();
this._cat = cat;
this._node = cc.find("Canvas/center/word");
this._data = data;
}
init() {
let word = this._data[2];
let length = word.val.length;
let path = "card_3";
if (length > 5) {
path = "card_4";
}
this.card = cc.find(path, this._node);
for (let i = 0; i < this._data.length; ++i) {
let data = this._data[i];
//如果是单词,修改字体颜色
if (i == 2) {
data.fontColor = "#231f20";
}
let word = new Word2(this._cat, data);
word.init();
word.node.parent = this.card;
this.wordArr.push(word);
}
}
show(callback = null) {
this.card.active = true;
//取最后一个单词节点的宽度
let width = this.wordArr[2].node.getBoundingBox().width;
console.log(width);
let startX = - width / 2;
for (let i = 0; i < this.wordArr.length - 1; ++i) {
let node = this.wordArr[i].node;
let width = node.getBoundingBox().width;
node.x = startX + width / 2;
startX += width;
}
callback && callback();
}
click(cb = null) {
for (let i = 0; i < this.wordArr.length; ++i) {
this.wordArr[i].hide();
}
const play2 = (index = 0) => {
let word = this.wordArr[index];
word.show();
word.click(() => {
if (index === this.wordArr.length - 1) {
cb && cb();
}
else {
word.hide();
play2(index + 1);
}
});
};
play2();
}
}
/**
* 将给定的值拆成字母数组
* @param val
* @returns
*/
export function getLetterArr(val) {
let arr = [];
if (!val) {
return arr;
}
for (let i = 0; i < val.length; ++i) {
arr.push(val.charAt(i));
}
return arr;
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "1f1747e7-323b-412f-af13-29b226a9d4d5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export class Item{
/**
* 是否可以点击或者触摸
*/
protected _canTouch = true;
/**
* 节点包含数据
*/
protected _data;
/**
* cocos节点
*/
protected _node;
set canTouch(canTouch : boolean){
this._canTouch = canTouch;
}
get canTouch(){
return this._canTouch;
}
set data(data){
this._data = data;
}
get data(){
return this._data;
}
set node(node){
this._node = node;
}
get node(){
return this._node;
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "97c29579-212e-4693-8a4f-029757b94001",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { Cat } from "./Cat";
import { Item } from "./Item";
import { delayCall, getSprNodeByUrl, playAudio } from "./util";
/**
* 图片区域对象
*/
export class PicArea extends Item {
private _picUrl: string;
private _audioUrl: string;
//晃动最大次数
readonly MAX_TIMES = 1;
private _audioClip: cc.AudioClip;
private _cat : Cat;
private _initScale = 1;
set picUrl(picUrl: string) {
this._picUrl = picUrl;
}
get picUrl() {
return this._picUrl;
}
set audioUrl(value: string) {
this._audioUrl = value;
//音频地址存在,则加载音频
if (this._audioUrl && this._audioUrl != "") {
cc.assetManager.loadRemote(this._audioUrl, (err, audioClip) => {
if(audioClip.duration === undefined) {
const audioId = cc.audioEngine.play(audioClip, false, 0.1);
setTimeout(() => {
audioClip.duration = cc.audioEngine.getDuration(audioId)
cc.audioEngine.pause(audioId)
}, 50);
}
this._audioClip = audioClip;
});
}
}
get audioUrl() {
return this._audioUrl;
}
constructor(cat: Cat){
super();
this._cat = cat;
}
/**
* 初始化
*/
init(){
this.picUrl = this.data.picUrl;
this.audioUrl = this.data.audioUrl;
getSprNodeByUrl(this.picUrl, (sprNode) => {
let pic = this.node;
const picNode = sprNode;
let scale = Math.min(pic.width / picNode.width, pic.height / picNode.height);
//如果图片需要放大,则不处理
if(scale > 1){
scale = 1;
}
picNode.scale = scale;
picNode.x = 0;
picNode.y = 0;
pic.addChild(picNode);
this._initScale = scale;
});
}
/**
* 图片点击事件
* @param callback
*/
click(callback = null) {
if (!this._canTouch) {
return;
}
this._canTouch = false;
//动画时长
let tweenDuration = 0.4;
let times = 1;
const enlarge = () => {
cc.tween(this._node)
.to(tweenDuration / 2, { scale: this._initScale * 1.5 })
.to(tweenDuration / 2, { scale: this._initScale })
.call(() => {
times += 1;
if (times > this.MAX_TIMES) {
this._canTouch = true;
return;
}
enlarge();
})
.start();
}
//放大图片
enlarge();
//播放音频
if (this._audioClip) {
//this._cat.playAni('begin', 0);
playAudio(this._audioClip, () => {
//this._cat.playAni('normal', 0);
});
}
if (callback) {
//获取音频时长
let duration = this._audioClip == null ? 0 : this._audioClip.duration;
//回调延迟时间
let timeout = tweenDuration;
//如果音频时长大于动画时长,则等音频播放完成后,再执行回待函数
if (duration > tweenDuration) {
timeout = duration;
}
delayCall(timeout, callback)
}
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "97ab62a3-5963-493b-9c18-b3c462cb2e6f",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export const defaultData = {
"guideAudioUrl1": "http://staging-teach.cdn.ireadabc.com/ec19a2c73ec4fca0bf0458c74381a702_l.mp3",
"guideAudioUrl2": "http://staging-teach.cdn.ireadabc.com/0e67aa701df18cbb5581ffb81ffa7836_l.mp3",
"guideAudioUrl3": "http://staging-teach.cdn.ireadabc.com/4c0379bc0f3bd0722874b2e11fb35336_l.mp3",
"pic": {
"picUrl": "http://staging-teach.cdn.ireadabc.com/769b451f88717daa539101a03bad980e.png",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/cc089823e40579aaece0d31e118672ae_l.mp3"
},
"exercises": {
"wordArr": [
{
"fontColor": "#F3008B",
"val": "s",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/f95fd3997cdd67abd51a1ab45efd855d_l.mp3"
},
{
"fontColor": "#02adf0",
"val": "p",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/b44fa51172b19b555fda30717c773027_l.mp3"
},
{
"fontColor": "#F3008B",
"val": "l",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/30621df106455523573e3871a5a5c598_l.mp3"
}
],
"wordArr2": [
{
"fontColor": "#F3008B",
"val": "spl",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/b62600fd1e72b54d1d1c3bc71b7361af_l.mp3"
},
{
"fontColor": "#02adf0",
"val": "ash",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/a252c069d04f8e04f91b2a1394072f30_l.mp3"
}
],
"word": {
"fontColor": "#231f20",
"val": "spl",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/607af37644501e678de6cbafee555948_l.mp3"
},
"word2": {
"fontColor": "#231f20",
"val": "splash",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/518441578f9d37076d87ef067c70a734_l.mp3"
}
}
}
\ No newline at end of file
...@@ -156,7 +156,7 @@ export function getSprNodeByUrl(url, cb) { ...@@ -156,7 +156,7 @@ export function getSprNodeByUrl(url, cb) {
getSpriteFrimeByUrl(url, (sf) => { getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf; spr.spriteFrame = sf;
if (cb) { if (cb) {
cb(spr); cb(node);
} }
}) })
} }
...@@ -464,3 +464,19 @@ export function callMiddleLayerFunction(apiName: string, data: any, callback: Fu ...@@ -464,3 +464,19 @@ export function callMiddleLayerFunction(apiName: string, data: any, callback: Fu
} }
} }
/**
* 延时操作
* @param time
* @param cb
* @returns
*/
export function delayCall(time, cb) {
return cc.tween({})
.delay(time)
.call(() => {
if (cb) {
cb();
}
})
.start();
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "e1b4d971-9876-4832-803a-5a321964a78b", "uuid": "ff53696f-e589-4140-ada3-9131af3f7054",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg": { "bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd", "uuid": "4ed203b6-e0b8-4ae9-9f76-d265f4e15334",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b", "rawTextureUuid": "ff53696f-e589-4140-ada3-9131af3f7054",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "uuid": "b8814614-adbc-4ec0-8e99-696967a6c101",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 366, "width": 124,
"height": 336, "height": 124,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"1orange": { "card_1": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa", "uuid": "81fcb3e0-3609-45b3-ba4f-bab4e586a579",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "rawTextureUuid": "b8814614-adbc-4ec0-8e99-696967a6c101",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -0.5, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 1, "trimY": 0,
"width": 366, "width": 124,
"height": 335, "height": 124,
"rawWidth": 366, "rawWidth": 124,
"rawHeight": 336, "rawHeight": 124,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "d582359e-924e-4ee9-9964-1fc4bb417e71", "uuid": "3e9f76b9-2c2a-4226-b747-ee9e54d98b91",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 61, "width": 220,
"height": 67, "height": 124,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_right": { "card_2": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59", "uuid": "bb36de2c-c51d-4f64-88f5-2356827733b6",
"rawTextureUuid": "d582359e-924e-4ee9-9964-1fc4bb417e71", "rawTextureUuid": "3e9f76b9-2c2a-4226-b747-ee9e54d98b91",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": -0.5, "offsetX": 0,
"offsetY": 0.5, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 60, "width": 220,
"height": 66, "height": 124,
"rawWidth": 61, "rawWidth": 220,
"rawHeight": 67, "rawHeight": 124,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "3b049c87-8b25-4c88-993c-1fdd81438970",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 317,
"height": 124,
"platformSettings": {},
"subMetas": {
"card_3": {
"ver": "1.0.4",
"uuid": "7d8ba7b5-49d7-4336-b3d2-0ec8980e8c96",
"rawTextureUuid": "3b049c87-8b25-4c88-993c-1fdd81438970",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 317,
"height": 124,
"rawWidth": 317,
"rawHeight": 124,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "570b176d-eff0-4ef7-804f-3ef284db9cfa",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 443,
"height": 124,
"platformSettings": {},
"subMetas": {
"card_4": {
"ver": "1.0.4",
"uuid": "e613b588-b607-4250-9acb-dedf026fc117",
"rawTextureUuid": "570b176d-eff0-4ef7-804f-3ef284db9cfa",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 443,
"height": 124,
"rawWidth": 443,
"rawHeight": 124,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "06b0f471-cd09-43ab-b570-5c710dcf335f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 102,
"platformSettings": {},
"subMetas": {
"cloud": {
"ver": "1.0.4",
"uuid": "340552b0-d98e-4302-8122-a5c2bec9ef1c",
"rawTextureUuid": "06b0f471-cd09-43ab-b570-5c710dcf335f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 102,
"rawWidth": 1280,
"rawHeight": 102,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "uuid": "500c3214-17bb-44a8-8cff-1fb2895907c4",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 61, "width": 22,
"height": 67, "height": 19,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_left": { "equal": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5", "uuid": "49692a38-3a82-4005-86c4-29d35856ddb9",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "rawTextureUuid": "500c3214-17bb-44a8-8cff-1fb2895907c4",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 61, "width": 22,
"height": 67, "height": 19,
"rawWidth": 61, "rawWidth": 22,
"rawHeight": 67, "rawHeight": 19,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "6ea76dc0-a882-4b3c-a285-a302a13af576",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1186,
"height": 556,
"platformSettings": {},
"subMetas": {
"orange_plate": {
"ver": "1.0.4",
"uuid": "a1aa74d6-0b0f-4dd6-b103-47293138b142",
"rawTextureUuid": "6ea76dc0-a882-4b3c-a285-a302a13af576",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1186,
"height": 556,
"rawWidth": 1186,
"rawHeight": 556,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "14e98c1c-402e-461b-872f-5bc412ec0cc4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 25,
"height": 25,
"platformSettings": {},
"subMetas": {
"plus": {
"ver": "1.0.4",
"uuid": "cf945f26-d24a-4e68-8b3a-c0569749a4d0",
"rawTextureUuid": "14e98c1c-402e-461b-872f-5bc412ec0cc4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 25,
"height": 25,
"rawWidth": 25,
"rawHeight": 25,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
this._audioResList.push({ url: this.data.audio_url });
}
addPreloadAnima() {
}
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
this.initListener();
}
_cantouch = null;
initData() {
// 所有全局变量 默认都是null
this._cantouch = true;
}
initView() {
this.initBg();
this.initPic();
this.initBtn();
this.initIcon();
}
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
}
pic1 = null;
pic2 = null;
initPic() {
const canvas = cc.find('Canvas');
const maxW = canvas.width * 0.7;
this.getSprNodeByUrl(this.data.pic_url, (sprNode) => {
const picNode1 = sprNode;
picNode1.scale = maxW / picNode1.width;
picNode1.baseX = picNode1.x;
canvas.addChild(picNode1);
this.pic1 = picNode1;
const labelNode = new cc.Node();
labelNode.color = cc.Color.YELLOW;
const label = labelNode.addComponent(cc.Label);
label.string = this.data.text;
label.fontSize = 60;
label.lineHeight = 60;
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent('cc.Label').font;
picNode1.addChild(labelNode);
});
this.getSprNodeByUrl(this.data.pic_url_2, (sprNode) => {
const picNode2 = sprNode;
picNode2.scale = maxW / picNode2.width;
canvas.addChild(picNode2);
picNode2.x = canvas.width;
picNode2.baseX = picNode2.x;
this.pic2 = picNode2;
const labelNode = new cc.Node();
const label = labelNode.addComponent(cc.RichText);
const size = 60
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent(cc.Label).font;
label.string = `<outline color=#751e00 width=4><size=${size}><color=#ffffff>${this.data.text}</color></size></outline>`
label.lineHeight = size;
picNode2.addChild(labelNode);
});
}
initIcon() {
const iconNode = this.getSprNode('icon');
iconNode.zIndex = 5;
iconNode.anchorX = 1;
iconNode.anchorY = 1;
iconNode.parent = cc.find('Canvas');
iconNode.x = iconNode.parent.width / 2 - 10;
iconNode.y = iconNode.parent.height / 2 - 10;
iconNode.on(cc.Node.EventType.TOUCH_START, () => {
this.playAudioByUrl(this.data.audio_url);
})
}
curPage = null;
initBtn() {
this.curPage = 0;
const bottomPart = cc.find('Canvas/bottomPart');
bottomPart.zIndex = 5; // 提高层级
bottomPart.x = bottomPart.parent.width / 2;
bottomPart.y = -bottomPart.parent.height / 2;
const leftBtnNode = bottomPart.getChildByName('btn_left');
//节点中添加了button组件 则可以添加click事件监听
leftBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 0) {
return;
}
this.curPage = 0
this.leftMove();
this.playLocalAudio('btn');
})
const rightBtnNode = bottomPart.getChildByName('btn_right');
//节点中添加了button组件 则可以添加click事件监听
rightBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 1) {
return;
}
this.curPage = 1
this.rightMove();
// 游戏结束时需要调用这个方法通知系统作业完成
onHomeworkFinish();
this.playLocalAudio('btn');
})
}
leftMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
}
rightMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX - len }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX - len }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
}
// update (dt) {},
initListener() {
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
})
}
}
export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
"text": "This is a test label.",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3"
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 144,
"height": 144,
"platformSettings": {},
"subMetas": {
"icon": {
"ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 3,
"trimY": 2,
"width": 138,
"height": 141,
"rawWidth": 144,
"rawHeight": 144,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../../lib/dom"),i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}";r.importCssString(i,"settings_menu.css",!1),n.exports.overlayPage=function(t,n,r){function o(e){e.keyCode===27&&u()}function u(){if(!i)return;document.removeEventListener("keydown",o),i.parentNode.removeChild(i),t&&t.focus(),i=null,r&&r()}function a(e){s=e,e&&(i.style.pointerEvents="none",n.style.pointerEvents="auto")}var i=document.createElement("div"),s=!1;return i.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; "+(t?"background-color: rgba(0, 0, 0, 0.3);":""),i.addEventListener("click",function(e){s||u()}),document.addEventListener("keydown",o),n.addEventListener("click",function(e){e.stopPropagation()}),i.appendChild(n),document.body.appendChild(i),t&&t.blur(),{close:u,setIgnoreFocusOut:a}}}),define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){var t=a.text,n=e.split(/[\/\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n;var r;/\^/.test(n)?r=n.replace(/\|(\^)?/g,function(e,t){return"$|"+(t?"^":"^.*\\.")})+"$":r="^.*\\.("+n+")$",this.extRe=new RegExp(r,"gi")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Alda:["alda"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],Apex:["apex|cls|trigger|tgr"],AQL:["aql"],AsciiDoc:["asciidoc|adoc"],ASL:["dsl|asl|asl.json"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],Crystal:["cr"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Edifact:["edi"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FSharp:["fsi|fs|ml|mli|fsx|fsscript"],FSL:["fsl"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|vue|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSON5:["json5"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],Latte:["latte"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MediaWiki:["wiki|mediawiki"],MEL:["mel"],MIPS:["s|asm"],MIXAL:["mixal"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nginx:["nginx|conf"],Nim:["nim"],Nix:["nix"],NSIS:["nsi|nsh"],Nunjucks:["nunjucks|nunjs|nj|njk"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],PHP_Laravel_blade:["blade.php"],Pig:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prisma:["prisma"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Puppet:["epp|pp"],Python:["py"],QML:["qml"],R:["r"],Raku:["raku|rakumod|rakutest|p6|pl6|pm6"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCAD:["scad"],Scala:["scala|sbt"],Scheme:["scm|sm|rkt|oak|scheme"],Scrypt:["scrypt"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Slim:["slim|skim"],Smarty:["smarty|tpl"],Smithy:["smithy"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Terraform:["tf","tfvars","terragrunt"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSX:["tsx"],Twig:["twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Visualforce:["vfp|component|page"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Zeek:["zeek|bro"],Django:["html"]},u={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker",PHP_Laravel_blade:"PHP (Blade Template)",Perl6:"Perl 6",AutoHotKey:"AutoHotkey / AutoIt"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g," "),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}}),define("ace/ext/themelist",["require","exports","module"],function(e,t,n){"use strict";var r=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["Xcode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Nord Dark","nord_dark","dark"],["One Dark","one_dark","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,"_").toLowerCase(),r={caption:e[0],theme:"ace/theme/"+n,isDark:e[2]=="dark",name:n};return t.themesByName[n]=r,r})}),define("ace/ext/options",["require","exports","module","ace/ext/menu_tools/overlay_page","ace/lib/dom","ace/lib/oop","ace/config","ace/lib/event_emitter","ace/ext/modelist","ace/ext/themelist"],function(e,t,n){"use strict";e("./menu_tools/overlay_page");var r=e("../lib/dom"),i=e("../lib/oop"),s=e("../config"),o=e("../lib/event_emitter").EventEmitter,u=r.buildDom,a=e("./modelist"),f=e("./themelist"),l={Bright:[],Dark:[]};f.themes.forEach(function(e){l[e.isDark?"Dark":"Bright"].push({caption:e.caption,value:e.theme})});var c=a.modes.map(function(e){return{caption:e.caption,value:e.mode}}),h={Main:{Mode:{path:"mode",type:"select",items:c},Theme:{path:"theme",type:"select",items:l},Keybinding:{type:"buttonBar",path:"keyboardHandler",items:[{caption:"Ace",value:null},{caption:"Vim",value:"ace/keyboard/vim"},{caption:"Emacs",value:"ace/keyboard/emacs"},{caption:"Sublime",value:"ace/keyboard/sublime"},{caption:"VSCode",value:"ace/keyboard/vscode"}]},"Font Size":{path:"fontSize",type:"number",defaultValue:12,defaults:[{caption:"12px",value:12},{caption:"24px",value:24}]},"Soft Wrap":{type:"buttonBar",path:"wrap",items:[{caption:"Off",value:"off"},{caption:"View",value:"free"},{caption:"margin",value:"printMargin"},{caption:"40",value:"40"}]},"Cursor Style":{path:"cursorStyle",items:[{caption:"Ace",value:"ace"},{caption:"Slim",value:"slim"},{caption:"Smooth",value:"smooth"},{caption:"Smooth And Slim",value:"smooth slim"},{caption:"Wide",value:"wide"}]},Folding:{path:"foldStyle",items:[{caption:"Manual",value:"manual"},{caption:"Mark begin",value:"markbegin"},{caption:"Mark begin and end",value:"markbeginend"}]},"Soft Tabs":[{path:"useSoftTabs"},{ariaLabel:"Tab Size",path:"tabSize",type:"number",values:[2,3,4,8,16]}],Overscroll:{type:"buttonBar",path:"scrollPastEnd",items:[{caption:"None",value:0},{caption:"Half",value:.5},{caption:"Full",value:1}]}},More:{"Atomic soft tabs":{path:"navigateWithinSoftTabs"},"Enable Behaviours":{path:"behavioursEnabled"},"Wrap with quotes":{path:"wrapBehavioursEnabled"},"Enable Auto Indent":{path:"enableAutoIndent"},"Full Line Selection":{type:"checkbox",values:"text|line",path:"selectionStyle"},"Highlight Active Line":{path:"highlightActiveLine"},"Show Invisibles":{path:"showInvisibles"},"Show Indent Guides":{path:"displayIndentGuides"},"Persistent HScrollbar":{path:"hScrollBarAlwaysVisible"},"Persistent VScrollbar":{path:"vScrollBarAlwaysVisible"},"Animate scrolling":{path:"animatedScroll"},"Show Gutter":{path:"showGutter"},"Show Line Numbers":{path:"showLineNumbers"},"Relative Line Numbers":{path:"relativeLineNumbers"},"Fixed Gutter Width":{path:"fixedWidthGutter"},"Show Print Margin":[{path:"showPrintMargin"},{ariaLabel:"Print Margin",type:"number",path:"printMarginColumn"}],"Indented Soft Wrap":{path:"indentedSoftWrap"},"Highlight selected word":{path:"highlightSelectedWord"},"Fade Fold Widgets":{path:"fadeFoldWidgets"},"Use textarea for IME":{path:"useTextareaForIME"},"Merge Undo Deltas":{path:"mergeUndoDeltas",items:[{caption:"Always",value:"always"},{caption:"Never",value:"false"},{caption:"Timed",value:"true"}]},"Elastic Tabstops":{path:"useElasticTabstops"},"Incremental Search":{path:"useIncrementalSearch"},"Read-only":{path:"readOnly"},"Copy without selection":{path:"copyWithEmptySelection"},"Live Autocompletion":{path:"enableLiveAutocompletion"}}},p=function(e,t){this.editor=e,this.container=t||document.createElement("div"),this.groups=[],this.options={}};(function(){i.implement(this,o),this.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},this.render=function(){this.container.innerHTML="",u(["table",{role:"presentation",id:"controls"},this.renderOptionGroup(h.Main),["tr",null,["td",{colspan:2},["table",{role:"presentation",id:"more-controls"},this.renderOptionGroup(h.More)]]],["tr",null,["td",{colspan:2},"version "+s.version]]],this.container)},this.renderOptionGroup=function(e){return Object.keys(e).map(function(t,n){var r=e[t];return r.position||(r.position=n/1e4),r.label||(r.label=t),r}).sort(function(e,t){return e.position-t.position}).map(function(e){return this.renderOption(e.label,e)},this)},this.renderOptionControl=function(e,t){var n=this;if(Array.isArray(t))return t.map(function(t){return n.renderOptionControl(e,t)});var r,i=n.getOption(t);t.values&&t.type!="checkbox"&&(typeof t.values=="string"&&(t.values=t.values.split("|")),t.items=t.values.map(function(e){return{value:e,name:e}}));if(t.type=="buttonBar")r=["div",{role:"group","aria-labelledby":t.path+"-label"},t.items.map(function(e){return["button",{value:e.value,ace_selected_button:i==e.value,"aria-pressed":i==e.value,onclick:function(){n.setOption(t,e.value);var r=this.parentNode.querySelectorAll("[ace_selected_button]");for(var i=0;i<r.length;i++)r[i].removeAttribute("ace_selected_button"),r[i].setAttribute("aria-pressed",!1);this.setAttribute("ace_selected_button",!0),this.setAttribute("aria-pressed",!0)}},e.desc||e.caption||e.name]})];else if(t.type=="number")r=["input",{type:"number",value:i||t.defaultValue,style:"width:3em",oninput:function(){n.setOption(t,parseInt(this.value))}}],t.ariaLabel?r[1]["aria-label"]=t.ariaLabel:r[1].id=e,t.defaults&&(r=[r,t.defaults.map(function(e){return["button",{onclick:function(){var t=this.parentNode.firstChild;t.value=e.value,t.oninput()}},e.caption]})]);else if(t.items){var s=function(e){return e.map(function(e){return["option",{value:e.value||e.name},e.desc||e.caption||e.name]})},o=Array.isArray(t.items)?s(t.items):Object.keys(t.items).map(function(e){return["optgroup",{label:e},s(t.items[e])]});r=["select",{id:e,value:i,onchange:function(){n.setOption(t,this.value)}},o]}else typeof t.values=="string"&&(t.values=t.values.split("|")),t.values&&(i=i==t.values[1]),r=["input",{type:"checkbox",id:e,checked:i||null,onchange:function(){var e=this.checked;t.values&&(e=t.values[e?1:0]),n.setOption(t,e)}}],t.type=="checkedNumber"&&(r=[r,[]]);return r},this.renderOption=function(e,t){if(t.path&&!t.onchange&&!this.editor.$options[t.path])return;var n=Array.isArray(t)?t[0].path:t.path;this.options[n]=t;var r="-"+n,i=n+"-label",s=this.renderOptionControl(r,t);return["tr",{"class":"ace_optionsMenuEntry"},["td",["label",{"for":r,id:i},e]],["td",s]]},this.setOption=function(e,t){typeof e=="string"&&(e=this.options[e]),t=="false"&&(t=!1),t=="true"&&(t=!0),t=="null"&&(t=null),t=="undefined"&&(t=undefined),typeof t=="string"&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal("setOption",{name:e.path,value:t})},this.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)}}).call(p.prototype),t.OptionPanel=p}); (function() {
window.require(["ace/ext/options"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(s,i),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=s}),define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";function a(){var e=o.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r=e.charAt(1)=="/"?2:1;if(r==1)t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++;else if(r==2&&t==this.nextState){n[1]--;if(!n[1]||n[1]<0)n.shift(),n.shift()}return[{type:"meta.tag.punctuation."+(r==1?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e+"",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),e.length==2&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,f("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function f(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,o="[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*",u=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),f("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+o+")(\\.)(prototype)(\\.)("+o+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+o+")(\\.)("+o+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+o+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+o+")(\\.)("+o+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+o+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+o+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:o},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+o+")(\\.)("+o+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:o},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),f("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:o},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]};if(!e||!e.noES6)this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){this.next=e=="{"?this.nextState:"";if(e=="{"&&n.length)n.unshift("start",t);else if(e=="}"&&n.length){n.shift(),this.next=n.shift();if(this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1)return"paren.quasi.end"}return e=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!e||e.jsx!=0)&&a.call(this);this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};r.inherits(u,s),t.JavaScriptHighlightRules=u}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,u=e("../worker/worker_client").WorkerClient,a=e("./behaviour/cstyle").CstyleBehaviour,f=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=new a,this.foldingRules=new f};r.inherits(l,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),s=i.tokens,o=i.state;if(s.length&&s[s.length-1].type=="comment")return r;if(e=="start"||e=="no_regex"){var u=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);u&&(r+=n)}else if(e=="doc-start"){if(o=="start"||o=="no_regex")return"";var u=t.match(/^\s*(\/?)\*/);u&&(u[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(l.prototype),t.Mode=l}); (function() {
window.require(["ace/mode/javascript"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(s,i),t.JsonHighlightRules=s}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./json_highlight_rules").JsonHighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,u=e("./behaviour/cstyle").CstyleBehaviour,a=e("./folding/cstyle").FoldMode,f=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=new u,this.foldingRules=new a};r.inherits(l,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if(e=="start"){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new f(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}.call(l.prototype),t.Mode=l}); (function() {
window.require(["ace/mode/json"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(s,i),t.JsonHighlightRules=s}),define("ace/mode/json5_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/json_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./json_highlight_rules").JsonHighlightRules,s=function(){i.call(this);var e=[{token:"variable",regex:/[a-zA-Z$_\u00a1-\uffff][\w$\u00a1-\uffff]*\s*(?=:)/},{token:"variable",regex:/['](?:(?:\\.)|(?:[^'\\]))*?[']\s*(?=:)/},{token:"constant.language.boolean",regex:/(?:null)\b/},{token:"string",regex:/'/,next:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,consumeLineEnd:!0},{token:"string",regex:/'|$/,next:"start"},{defaultToken:"string"}]},{token:"string",regex:/"(?![^"]*":)/,next:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,consumeLineEnd:!0},{token:"string",regex:/"|$/,next:"start"},{defaultToken:"string"}]},{token:"constant.numeric",regex:/[+-]?(?:Infinity|NaN)\b/}];for(var t in this.$rules)this.$rules[t].unshift.apply(this.$rules[t],e);this.normalizeRules()};r.inherits(s,i),t.Json5HighlightRules=s}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return/^\s+$/.test(e)?/^\s*\}/.test(t):!1},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=e.findMatchingBracket({row:t,column:s});if(!o||o.row==t)return 0;var u=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,s-1),u)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(o,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var s=i.match(this.foldingStartMarker);if(s){var o=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,o);var u=e.getCommentFoldRange(n,o+s[0].length,1);return u&&!u.isMultiLine()&&(r?u=this.getSectionRange(e,n):t!="all"&&(u=null)),u}if(t==="markbegin")return;var s=i.match(this.foldingStopMarker);if(s){var o=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,o):e.getCommentFoldRange(n,o,-1)}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),s=t,o=n.length;t+=1;var u=t,a=e.getLength();while(++t<a){n=e.getLine(t);var f=n.search(/\S/);if(f===-1)continue;if(r>f)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=s)break;if(l.isMultiLine())t=l.end.row;else if(r==f)break}u=t}return new i(s,o,u,e.getLine(u).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),s=e.getLength(),o=n,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;while(++n<s){t=e.getLine(n);var f=u.exec(t);if(!f)continue;f[1]?a--:a++;if(!a)break}var l=n;if(l>o)return new i(o,r,l,t.length)}}.call(o.prototype)}),define("ace/mode/json5",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json5_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./json5_highlight_rules").Json5HighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,u=e("./behaviour/cstyle").CstyleBehaviour,a=e("./folding/cstyle").FoldMode,f=function(){this.HighlightRules=s,this.$outdent=new o,this.$behaviour=new u,this.foldingRules=new a};r.inherits(f,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id="ace/mode/json5"}.call(f.prototype),t.Mode=f}); (function() {
window.require(["ace/mode/json5"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/snippets/javascript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n ${4:// body...}\n };\n# Function\nsnippet fun\n function ${1?:function_name}(${2:argument}) {\n ${3:// body...}\n }\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n function${M1?: ${1:functionName}}($2) {\n ${0:$TM_SELECTED_TEXT}\n }${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n (function(${1}) {\n ${0:${TM_SELECTED_TEXT:/* code */}}\n }(${1}));\n# if\nsnippet if\n if (${1:true}) {\n ${0}\n }\n# if ... else\nsnippet ife\n if (${1:true}) {\n ${2}\n } else {\n ${0}\n }\n# tertiary conditional\nsnippet ter\n ${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n switch (${1:expression}) {\n case \'${3:case}\':\n ${4:// code}\n break;\n ${5}\n default:\n ${2:// code}\n }\n# case\nsnippet case\n case \'${1:case}\':\n ${2:// code}\n break;\n ${3}\n\n# while (...) {...}\nsnippet wh\n while (${1:/* condition */}) {\n ${0:/* code */}\n }\n# try\nsnippet try\n try {\n ${0:/* code */}\n } catch (e) {}\n# do...while\nsnippet do\n do {\n ${2:/* code */}\n } while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n ${1:method_name}: function(${2:attribute}) {\n ${0}\n }${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n setTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n getElementsBy${1:TagName}(\'${2}\')${3}\n# Get Element\nsnippet get\n getElementBy${1:Id}(\'${2}\')${3}\n# console.log (Firebug)\nsnippet cl\n console.log(${1});\n# return\nsnippet ret\n return ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n for (var ${1:prop} in ${2:Things}) {\n ${0:$2[$1]}\n }\n# hasOwnProperty\nsnippet has\n hasOwnProperty(${1})\n# docstring\nsnippet /**\n /**\n * ${1:description}\n *\n */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n @param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n @return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n JSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n JSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n var ${1:function_name} = function(${2:argument}) {\n ${3:// initial code ...}\n\n $1 = function($2) {\n ${4:// main code}\n };\n }\n# singleton\nsnippet sing\n function ${1:Singleton} (${2:argument}) {\n // the cached instance\n var instance;\n\n // rewrite the constructor\n $1 = function $1($2) {\n return instance;\n };\n \n // carry over the prototype properties\n $1.prototype = this;\n\n // the instance\n instance = new $1();\n\n // reset the constructor pointer\n instance.constructor = $1;\n\n ${3:// code ...}\n\n return instance;\n }\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n var ${1:class} = function(${20}) {\n $40$0\n };\n \n (function() {\n ${60:this.prop = ""}\n }).call(${1:class}.prototype);\n \n exports.${1:class} = ${1:class};\n# \nsnippet for-\n for (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n ${0:${2:Things}[${1:i}];}\n }\n# for (...) {...}\nsnippet for\n for (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n ${3:$2[$1]}$0\n }\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n for (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n ${3:$2[$1]}$0\n }\n\n\n#modules\nsnippet def\n define(function(require, exports, module) {\n "use strict";\n var ${1/.*\\///} = require("${1}");\n \n $TM_SELECTED_TEXT\n });\nsnippet req\nguard ^\\s*\n var ${1/.*\\///} = require("${1}");\n $0\nsnippet requ\nguard ^\\s*\n var ${1/.*\\/(.)/\\u$1/} = require("${1}").${1/.*\\/(.)/\\u$1/};\n $0\n',t.scope="javascript"}); (function() {
window.require(["ace/snippets/javascript"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
; (function() {
window.require(["ace/snippets/json"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
; (function() {
window.require(["ace/snippets/json5"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
define("ace/theme/chrome",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-chrome",t.cssText='.ace-chrome .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-chrome .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-chrome {background-color: #FFFFFF;color: black;}.ace-chrome .ace_cursor {color: black;}.ace-chrome .ace_invisible {color: rgb(191, 191, 191);}.ace-chrome .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-chrome .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-chrome .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-chrome .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-chrome .ace_fold {}.ace-chrome .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-chrome .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other {color: rgb(109, 121, 222);}.ace-chrome .ace_variable.ace_parameter {font-style:italic;color:#FD971F;}.ace-chrome .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-chrome .ace_comment {color: #236e24;}.ace-chrome .ace_comment.ace_doc {color: #236e24;}.ace-chrome .ace_comment.ace_doc.ace_tag {color: #236e24;}.ace-chrome .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-chrome .ace_variable {color: rgb(49, 132, 149);}.ace-chrome .ace_xml-pe {color: rgb(104, 104, 91);}.ace-chrome .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-chrome .ace_heading {color: rgb(12, 7, 255);}.ace-chrome .ace_list {color:rgb(185, 6, 144);}.ace-chrome .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-chrome .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-chrome .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-chrome .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-chrome .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-chrome .ace_gutter-active-line {background-color : #dcdcdc;}.ace-chrome .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag {color: rgb(147, 15, 128);}.ace-chrome .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-chrome .ace_string {color: #1A1AA6;}.ace-chrome .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-chrome .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass,!1)}); (function() {
window.require(["ace/theme/chrome"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
"no use strict";!function(e){function t(e,t){var n=e,r="";while(n){var i=t[n];if(typeof i=="string")return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(i===!1)return"";var s=n.lastIndexOf("/");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!="undefined"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:"error",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf("!")!==-1){var r=n.split("!");return e.normalizeModule(t,r[0])+"!"+e.normalizeModule(t,r[1])}if(n.charAt(0)=="."){var i=t.split("/").slice(0,-1).join("/");n=(i?i+"/":"")+n;while(n.indexOf(".")!==-1&&s!=n){var s=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log("unable to load "+i);var o=t(i,e.require.tlns);return o.slice(-3)!=".js"&&(o+=".js"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!="string"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!="function"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=["require","exports","module"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case"require":return i;case"exports":return e.exports;case"module":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require("ace/lib/event_emitter").EventEmitter,r=e.require("ace/lib/oop"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:"call",id:t,data:e})},this.emit=function(e,t){postMessage({type:"event",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define("ace/lib/oop",[],function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define("ace/range",[],function(e,t,n){"use strict";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e=="object"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e=="object"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define("ace/apply_delta",[],function(e,t,n){"use strict";function r(e,t){throw console.log("Invalid Delta:",e),"Invalid Delta: "+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!="insert"&&t.action!="remove"&&r(t,"delta.action must be 'insert' or 'remove'"),t.lines instanceof Array||r(t,"delta.lines must be an Array"),(!t.start||!t.end)&&r(t,"delta.start/end must be an present");var n=t.start;i(e,t.start)||r(t,"delta.start must be contained in document");var s=t.end;t.action=="remove"&&!i(e,s)&&r(t,"delta.end must contained in document for 'remove' actions");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,"delta.range must match delta lines")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||"";switch(t.action){case"insert":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case"remove":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define("ace/lib/event_emitter",[],function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!="object"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define("ace/anchor",[],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n=="undefined"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action=="insert",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define("ace/document",[],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,o=e("./range").Range,u=e("./anchor").Anchor,a=function(e){this.$lines=[""],e.length===0?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},"aaa".split(/a/).length===0?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal("changeNewLineMode")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e=="\r\n"||e=="\r"||e=="\n"},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:"remove",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action=="insert";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action=="remove"&&e.start.row<t&&e.end.row<t||e.action=="insert"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(""),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action=="insert"?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define("ace/lib/lang",[],function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){var n="";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]=="object"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!="object"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!=="[object Object]")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define("ace/worker/mirror",[],function(e,t,n){"use strict";var r=e("../range").Range,i=e("../document").Document,s=e("../lib/lang"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(""),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on("change",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:"insert",start:i[s],lines:i[s+1]};else var o={action:"remove",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define("ace/mode/json/json_parse",[],function(e,t,n){"use strict";var r,i,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},o,u=function(e){throw{name:"SyntaxError",message:e,at:r,text:o}},a=function(e){return e&&e!==i&&u("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(r),r+=1,i},f=function(){var e,t="";i==="-"&&(t="-",a("-"));while(i>="0"&&i<="9")t+=i,a();if(i==="."){t+=".";while(a()&&i>="0"&&i<="9")t+=i}if(i==="e"||i==="E"){t+=i,a();if(i==="-"||i==="+")t+=i,a();while(i>="0"&&i<="9")t+=i,a()}e=+t;if(!isNaN(e))return e;u("Bad number")},l=function(){var e,t,n="",r;if(i==='"')while(a()){if(i==='"')return a(),n;if(i==="\\"){a();if(i==="u"){r=0;for(t=0;t<4;t+=1){e=parseInt(a(),16);if(!isFinite(e))break;r=r*16+e}n+=String.fromCharCode(r)}else{if(typeof s[i]!="string")break;n+=s[i]}}else{if(i=="\n"||i=="\r")break;n+=i}}u("Bad string")},c=function(){while(i&&i<=" ")a()},h=function(){switch(i){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}u("Unexpected '"+i+"'")},p,d=function(){var e=[];if(i==="["){a("["),c();if(i==="]")return a("]"),e;while(i){e.push(p()),c();if(i==="]")return a("]"),e;a(","),c()}}u("Bad array")},v=function(){var e,t={};if(i==="{"){a("{"),c();if(i==="}")return a("}"),t;while(i){e=l(),c(),a(":"),Object.hasOwnProperty.call(t,e)&&u('Duplicate key "'+e+'"'),t[e]=p(),c();if(i==="}")return a("}"),t;a(","),c()}}u("Bad object")};return p=function(){c();switch(i){case"{":return v();case"[":return d();case'"':return l();case"-":return f();default:return i>="0"&&i<="9"?f():h()}},function(e,t){var n;return o=e,r=0,i=" ",n=p(),c(),i&&u("Syntax error"),typeof t=="function"?function s(e,n){var r,i,o=e[n];if(o&&typeof o=="object")for(r in o)Object.hasOwnProperty.call(o,r)&&(i=s(o,r),i!==undefined?o[r]=i:delete o[r]);return t.call(e,n,o)}({"":n},""):n}}),define("ace/mode/json_worker",[],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../worker/mirror").Mirror,s=e("./json/json_parse"),o=t.JsonWorker=function(e){i.call(this,e),this.setTimeout(200)};r.inherits(o,i),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{e&&s(e)}catch(n){var r=this.doc.indexToPosition(n.at-1);t.push({row:r.row,column:r.column,text:n.message,type:"error"})}this.sender.emit("annotate",t)}}.call(o.prototype)})
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NgOne</title>
<!-- <base href="/"> -->
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script>
<style>
#saveDataTextarea {
margin: 0;
position: absolute;
top: 0;
left: 0;
right: 180px;
height: 100%;
}
.upload-container {
width: 100px;
height: 40px;
position: absolute;
right: 40px;
border-radius: 2px;
border: 1px solid #dcdfe6;
line-height: 100px;
margin: 10px;
text-align: center;
display:flex;
align-items:center;
justify-content:center;
}
.hide-fileinput {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
</style>
</head>
<body onload="loadData();" style="background-color: white;">
<pre id="saveDataTextarea"></pre>
<div class="upload-container">
<div class="upload-file">上传文件</div>
<input class="hide-fileinput" type="file" name="file" onchange="uploadFile()">
</div>
</body>
<script>
var editor = ace.edit("saveDataTextarea");
editor.setTheme("ace/theme/chrome");
editor.session.setMode("ace/mode/json");
editor.session.on('change', function(delta) {
try {
const data = JSON.parse(editor.getValue());
window.courseware.setData(data, null, "cocos_001");
} catch (error) {}
});
let saveDataStr = '';
function loadData() {
window.courseware.getData((data) => {
try {
editor.setValue(JSON.stringify(data, null, 2));
editor.gotoLine(editor.session.getLength());
} catch (error) {}
}, "cocos_001");
}
function uploadFile(){
const dom = document.querySelector(".hide-fileinput");
const file = dom.files[0];
dom.setAttribute("disabled", true);
document.querySelector(".upload-file").innerHTML = "上传中...";
commonUploadFile(file, (data) => {
try {
const d = JSON.parse(data);
const protocolStr = document.location.protocol;
const url = d.url
.replace(/http:/g, protocolStr)
.replace(/https:/g, protocolStr);
editor.insert(url);
} catch (error) {}
dom.removeAttribute("disabled");
document.querySelector(".upload-file").innerHTML = "上传文件";
});
}
function commonUploadFile(file, callback) {
const uploadUrl = window.courseware.uploadUrl(); //上传文件的路径
const uploadData = window.courseware.uploadData(); //上传文件必须要的参数
const formData = new FormData();
formData.append("file", file);
for (const key in uploadData) {
formData.append(key, uploadData[key]);
}
var xhr = new XMLHttpRequest();
xhr.open("post",uploadUrl);
//回调
xhr.onreadystatechange = function () {
if (xhr.readyState==4 && xhr.status==200){
callback && callback(xhr.responseText);
}
}
//获取上传的进度
xhr.upload.onprogress = function (event) {
if(event.lengthComputable){
var percent = event.loaded/event.total *100;
document.querySelector(".upload-file").innerHTML = Math.floor(percent)+"%";
}
}
//将formdata上传
xhr.send(formData);
}
</script>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
"@angular/platform-browser-dynamic": "~9.0.2", "@angular/platform-browser-dynamic": "~9.0.2",
"@angular/router": "~9.0.2", "@angular/router": "~9.0.2",
"@fortawesome/angular-fontawesome": "^0.6.0", "@fortawesome/angular-fontawesome": "^0.6.0",
"@fortawesome/fontawesome-svg-core": "^1.2.27", "@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-regular-svg-icons": "^5.12.1", "@fortawesome/free-regular-svg-icons": "5.15.4",
"@fortawesome/free-solid-svg-icons": "^5.12.1", "@fortawesome/free-solid-svg-icons": "5.15.4",
"@tweenjs/tween.js": "~18.5.0", "@tweenjs/tween.js": "~18.5.0",
"ali-oss": "^6.5.1", "ali-oss": "^6.5.1",
"compressing": "^1.5.0", "compressing": "^1.5.0",
......
...@@ -33,8 +33,8 @@ export class ComponentBase { ...@@ -33,8 +33,8 @@ export class ComponentBase {
* 储存图片数据 * 储存图片数据
* @param e * @param e
*/ */
onAssetUploadSuccess(e: any, ...key: Array<string>) { onAssetUploadSuccess(e: any, item, ...key: Array<string>) {
let item = this.item;
for (let i = 0; i < key.length; i++) { for (let i = 0; i < key.length; i++) {
if (i + 1 == key.length) { if (i + 1 == key.length) {
item[key[i]] = e.url; item[key[i]] = e.url;
...@@ -43,6 +43,8 @@ export class ComponentBase { ...@@ -43,6 +43,8 @@ export class ComponentBase {
} }
item = item[key[i]]; item = item[key[i]];
} }
this.save();
} }
save() { save() {
......
import { Title } from "@angular/platform-browser";
export class Obj {
/**音频材料 */
audioUrl: String;
/**图片材料 */
picUrl: String;
val: String;
}
export class Exercises extends Obj{
//单词数组
wordArr = [];
//单词
word:Word;
//单词数组2
wordArr2 = [];
//单词2
word2: Word;
}
export class Word extends Obj{
//字体颜色
fontColor = "#231f20";
}
export function getDefExercises(){
let exercises = new Exercises();
exercises.word = getDefWord();
exercises.word2 = getDefWord();
return exercises;
}
export function getDefWord(){
let word = new Word();
return word;
}
export function getDefPic(){
let pic = new Obj();
return pic;
}
\ No newline at end of file
<div class="model-content">
<div nz-row>
<div nz-col [nzSpan]="22" [nzOffset]="1">
<div class="border" style="width: 1000px;">
<textarea style="width: 955px; height: 300px;" (blur)="load()" #itemTextarea>{{itemStr}}</textarea>
<button (click)="copyData();">Copy</button>
</div>
</div>
</div>
<!--练习题-->
<div nz-row>
<div nz-col [nzSpan]="18" nzOffset="1">
<nz-divider nzText="内容编辑" nzOrientation="left"></nz-divider>
<nz-form-item>
<nz-form-label [nzSpan]="2" nzFor="guideAudioUrl1">开始音频</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-audio-recorder [audioUrl]="item.guideAudioUrl1" id="guideAudioUrl1"
(audioUploaded)="onAssetUploadSuccess($event, item, 'guideAudioUrl1')">
</app-audio-recorder>
</nz-form-control>
<nz-form-control [nzSpan]="2">
<button nz-button nzType="danger" (click)="deleteAudio(item, 'guideAudioUrl1')">
<i nz-icon nzType="delete" nzTheme="outline"></i>清除
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2" nzFor="guideAudioUrl2">待机音频</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-audio-recorder [audioUrl]="item.guideAudioUrl2" id="guideAudioUrl2"
(audioUploaded)="onAssetUploadSuccess($event, item, 'guideAudioUrl2')">
</app-audio-recorder>
</nz-form-control>
<nz-form-control [nzSpan]="2">
<button nz-button nzType="danger" (click)="deleteAudio(item, 'guideAudioUrl2')">
<i nz-icon nzType="delete" nzTheme="outline"></i>清除
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2" nzFor="guideAudioUrl3">结束音频</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-audio-recorder [audioUrl]="item.guideAudioUrl3" id="guideAudioUrl3"
(audioUploaded)="onAssetUploadSuccess($event, item, 'guideAudioUrl3')">
</app-audio-recorder>
</nz-form-control>
<nz-form-control [nzSpan]="2">
<button nz-button nzType="danger" (click)="deleteAudio(item, 'guideAudioUrl3')">
<i nz-icon nzType="delete" nzTheme="outline"></i>清除
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">图片</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-upload-image-with-preview style="width: 100%" [picUrl]="item.pic.picUrl"
(imageUploaded)="onAssetUploadSuccess($event, item.pic, 'picUrl')">
</app-upload-image-with-preview>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">图片音频</nz-form-label>
<nz-form-control [nzSpan]="4">
<app-audio-recorder [audioUrl]="item.pic.audioUrl"
(audioUploaded)="onAssetUploadSuccess($event, item.pic, 'audioUrl')">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
</div>
</div>
<div nz-row>
<div nz-col [nzSpan]="18" [nzOffset]="1">
<nz-card nzTitle="词根" [nzHoverable]="true" [nzExtra]="actionAdd">
<div *ngFor="let data of item.exercises.wordArr; let i=index">
<nz-divider nzText="卡片{{i + 1}}" nzOrientation="left"></nz-divider>
<nz-form-item>
<nz-form-label [nzSpan]="2">内容</nz-form-label>
<nz-form-control [nzSpan]="3">
<input type="text" nz-input [(ngModel)]="data.val" (blur)="saveWord(item.exercises, 'wordArr', 'word')">
</nz-form-control>
<nz-form-control [nzSpan]="4" nzOffset="1">
<nz-radio-group [(ngModel)]="data.fontColor" (ngModelChange)="save()">
<label nz-radio nzValue="#F3008B" style="color: #F3008B;">红色</label>
<label nz-radio nzValue="#231f20" style="color: #231f20;">黑色</label>
<label nz-radio nzValue="#02adf0" style="color: #02adf0;">蓝色</label>
</nz-radio-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">音频</nz-form-label>
<nz-form-control [nzSpan]="3">
<app-audio-recorder [audioUrl]="data.audioUrl"
(audioUploaded)="onAssetUploadSuccess($event, data, 'audioUrl')">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
<button nz-button nzType="danger" [disabled]="item.exercises.wordArr.length == min ? true : false"
(click)="deleteWord(item.exercises,'wordArr',i, 'word')">
<i nz-icon nzType="delete" nzTheme="outline"></i>删除
</button>
</div>
<nz-divider nzText="等号右边" nzOrientation="left"></nz-divider>
<nz-form-item>
<nz-form-label [nzSpan]="2">内容</nz-form-label>
<nz-form-control [nzSpan]="3">
<label [ngStyle]="{'float': 'left','font-size': '21px', 'margin-right': '2px'}">
{{item.exercises.word.val}}
</label>
</nz-form-control>
<nz-form-control [nzSpan]="4" nzOffset="1">
<nz-radio-group [(ngModel)]="item.exercises.word.fontColor" (ngModelChange)="save()">
<label nz-radio nzValue="#F3008B" style="color: #F3008B;">红色</label>
<label nz-radio nzValue="#231f20" style="color: #231f20;">黑色</label>
<label nz-radio nzValue="#02adf0" style="color: #02adf0;">蓝色</label>
</nz-radio-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">音频</nz-form-label>
<nz-form-control [nzSpan]="3">
<app-audio-recorder [audioUrl]="item.exercises.word.audioUrl"
(audioUploaded)="onAssetUploadSuccess($event, item.exercises.word, 'audioUrl')">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
</nz-card>
<ng-template #actionAdd>
<button nz-button nzType="dashed" [disabled]="item.exercises.wordArr.length== max ? true : false"
class="add-btn" id="add-btn" (click)="addWord(item.exercises, 'wordArr', 'word')">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>添加
</button>
</ng-template>
<br>
<nz-card nzTitle="单词" [nzHoverable]="true">
<div *ngFor="let data of item.exercises.wordArr2; let i=index">
<nz-divider nzText="第{{i + 1}}部分" nzOrientation="left"></nz-divider>
<nz-form-item>
<nz-form-label [nzSpan]="2">内容</nz-form-label>
<nz-form-control [nzSpan]="3">
<input type="text" nz-input [(ngModel)]="data.val" (blur)="saveWord(item.exercises, 'wordArr2', 'word2')">
</nz-form-control>
<nz-form-control [nzSpan]="4" nzOffset="1">
<nz-radio-group [(ngModel)]="data.fontColor" (ngModelChange)="save()">
<label nz-radio nzValue="#F3008B" style="color: #F3008B;">红色</label>
<label nz-radio nzValue="#02adf0" style="color: #02adf0;">蓝色</label>
</nz-radio-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">音频</nz-form-label>
<nz-form-control [nzSpan]="3">
<app-audio-recorder [audioUrl]="data.audioUrl"
(audioUploaded)="onAssetUploadSuccess($event, data, 'audioUrl')">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
</div>
<nz-divider nzText="单词" nzOrientation="left"></nz-divider>
<nz-form-item>
<nz-form-label [nzSpan]="2">内容</nz-form-label>
<nz-form-control [nzSpan]="3">
<label [ngStyle]="{'float': 'left','font-size': '21px', 'margin-right': '2px'}">
{{item.exercises.word2.val}}
</label>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="2">音频</nz-form-label>
<nz-form-control [nzSpan]="3">
<app-audio-recorder [audioUrl]="item.exercises.word2.audioUrl"
(audioUploaded)="onAssetUploadSuccess($event, item.exercises.word2, 'audioUrl')">
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
</nz-card>
</div>
</div>
</div>
\ No newline at end of file
import { Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef } from '@angular/core';
import { JsonPipe } from '@angular/common';
import { ComponentBase } from './ComponentBase';
import { getDefExercises, getDefPic, getDefWord } from './beans';
@Component({
selector: 'app-form',
templateUrl: './form.component.html',
styleUrls: ['./form.component.css']
})
export class FormComponent extends ComponentBase implements OnInit, OnChanges, OnDestroy {
// 储存数据用
saveKey = "OP71_1";
// 储存对象
item: any = {
guideAudioUrl1:'',
guideAudioUrl2:'',
guideAudioUrl3:'',
pic:{
picUrl:'',
audioUrl:''
}
};
/**最小卡片数量 */
min = 2;
/***最大卡片数量 */
max = 3;
init(){
//练习
this.item.exercises = this.initExercises(this.item.exercises);
if(!this.item.pic){
this.item.pic = getDefPic();
}
}
private initExercises(item){
let exercises = item;
if(!exercises){
exercises = getDefExercises();
}
if(!exercises.wordArr){
exercises.wordArr = [];
}
//最小卡片数量
const min = 2;
//设置最小数量
for(let i = exercises.wordArr.length; i < min; ++ i){
let word = getDefWord();
exercises.wordArr.push(word);
}
this.saveWord(exercises, 'wordArr', 'word')
if(!exercises.wordArr2){
exercises.wordArr2 = [];
}
for(let i = exercises.wordArr2.length; i < min; ++ i){
let word = getDefWord();
exercises.wordArr2.push(word);
}
this.saveWord(exercises, 'wordArr2', 'word2')
return exercises;
}
deleteAudio(item, key){
item[key] = null;
this.save();
}
saveWord(exercises, key, wordKey){
let wordArr = exercises[key];
if(!wordArr){
return;
}
let val = "";
for(let i = 0; i < wordArr.length; ++ i){
let temp = wordArr[i].val;
val += temp ? temp : "";
}
let word = exercises[wordKey];
if(!word){
word = getDefWord()
exercises[wordKey] = word;
}
word.val = val;
this.save();
}
deleteWord(item, key, i, wordKey){
let arr = item[key];
arr.splice(i, 1);
item[key] = [...arr];
this.save();
this.saveWord(item, key, wordKey);
}
addWord(item, key, wordKey){
let word = getDefWord();
item[key].push(word);
this.save();
this.saveWord(item, key, wordKey);
}
}
\ No newline at end of file
<div class="model-content">
<div style="padding: 10px;">
<div class="border" style="width: 1000px;">
<textarea style="width: 955px; height: 300px;" (blur)="load()" #itemTextarea>{{itemStr}}</textarea>
<button (click)="copyData();">Copy</button>
</div>
<div class="border" style="width: 1000px;">
<span style="font-size: 20px;">标题: </span>
<input type="text" nz-input [(ngModel)]="item.title" (blur)="save()">
<span style="font-size: 20px;">题目说明: </span>
<input type="text" nz-input [(ngModel)]="item.questionText" (blur)="save()">
<span style="font-size: 20px;">题目说明音频: </span>
<app-audio-recorder
[audioUrl]="item.questionTextAudio"
(audioUploaded)="onAssetUploadSuccess($event, 'questionTextAudio')"
[_audioName]="item.audioFileName"
(audioName)="saveAudioFileName($event)"
></app-audio-recorder>
</div>
<div class="border" style="width: 1000px;">
<div *ngFor="let question of item.questions; let i = index">
<div class="border" style="width: 950px;">
<span style="font-size: 20px;">选项类型: </span>
<div *ngIf="question.type=='img'">
<button class="button-right">图片</button>
&nbsp;
<button class="button-disable" (click)="question.type='txt'; save();">文字</button>
</div>
<div *ngIf="question.type=='txt'">
<button class="button-disable" (click)="question.type='img'; save();">图片</button>
&nbsp;
<button class="button-right">文字</button>
</div>
<div *ngIf="question.type=='img'">
图片:
<div style="width: 300px;">
<app-upload-image-with-preview [picUrl]="question.image"
(imageUploaded)="onAssetUploadSuccess($event, 'questions', i, 'image')">
</app-upload-image-with-preview>
</div>
</div>
<span>音频: </span>
<app-audio-recorder [audioUrl]="question.audio"
(audioUploaded)="onAssetUploadSuccess($event, 'questions', i, 'audio')">
</app-audio-recorder>
<div *ngIf="question.type=='txt'">
<span>文本: </span>
<input type="text" nz-input [(ngModel)]="question.text" (blur)="save()">
</div>
<br>
<button style="width: 900px; height: 30px; color: red;" (click)="removeQuestion(i)">删除题目</button>
</div>
</div>
<div class="border" style="width: 950px;">
<button style="width: 900px; height: 100px;" (click)="addQuestion()">增加题目</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
import { Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef } from '@angular/core';
import { JsonPipe } from '@angular/common';
import { ComponentBase } from './ComponentBase';
@Component({
selector: 'app-form',
templateUrl: './form.component.html',
styleUrls: ['./form.component.css']
})
export class FormComponent extends ComponentBase implements OnInit, OnChanges, OnDestroy {
// 储存数据用
saveKey = "card_machine";
// 储存对象
item: any = {
title: '',
questionText: '',
questionTextAudio: '',
audioFileName: '',
questions: [],
};
addQuestion() {
this.item.questions.push({
type: 'img',
audio: '',
text: '',
image: ''
});
this.save();
}
removeQuestion(idx) {
this.item.questions.splice(idx, 1);
this.save();
}
saveAudioFileName(name) {
this.item.audioFileName=name;
this.save();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment