10 __coverage__['build/resize-base/resize-base.js'] = {"path":"build/resize-base/resize-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"230":0,"231":0,"232":0,"233":0,"234":0,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0,0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":78,"loc":{"start":{"line":78,"column":13},"end":{"line":78,"column":24}}},"3":{"name":"(anonymous_3)","line":83,"loc":{"start":{"line":83,"column":20},"end":{"line":83,"column":34}}},"4":{"name":"(anonymous_4)","line":87,"loc":{"start":{"line":87,"column":19},"end":{"line":87,"column":39}}},"5":{"name":"(anonymous_5)","line":91,"loc":{"start":{"line":91,"column":21},"end":{"line":91,"column":38}}},"6":{"name":"(anonymous_6)","line":95,"loc":{"start":{"line":95,"column":13},"end":{"line":95,"column":25}}},"7":{"name":"(anonymous_7)","line":100,"loc":{"start":{"line":100,"column":8},"end":{"line":100,"column":22}}},"8":{"name":"(anonymous_8)","line":105,"loc":{"start":{"line":105,"column":26},"end":{"line":105,"column":37}}},"9":{"name":"(anonymous_9)","line":109,"loc":{"start":{"line":109,"column":26},"end":{"line":109,"column":44}}},"10":{"name":"Resize","line":165,"loc":{"start":{"line":165,"column":0},"end":{"line":165,"column":18}}},"11":{"name":"(anonymous_11)","line":198,"loc":{"start":{"line":198,"column":23},"end":{"line":198,"column":35}}},"12":{"name":"(anonymous_12)","line":349,"loc":{"start":{"line":349,"column":11},"end":{"line":349,"column":38}}},"13":{"name":"(anonymous_13)","line":356,"loc":{"start":{"line":356,"column":11},"end":{"line":356,"column":34}}},"14":{"name":"(anonymous_14)","line":364,"loc":{"start":{"line":364,"column":11},"end":{"line":364,"column":34}}},"15":{"name":"(anonymous_15)","line":371,"loc":{"start":{"line":371,"column":11},"end":{"line":371,"column":38}}},"16":{"name":"(anonymous_16)","line":379,"loc":{"start":{"line":379,"column":12},"end":{"line":379,"column":23}}},"17":{"name":"(anonymous_17)","line":384,"loc":{"start":{"line":384,"column":12},"end":{"line":384,"column":23}}},"18":{"name":"(anonymous_18)","line":389,"loc":{"start":{"line":389,"column":12},"end":{"line":389,"column":23}}},"19":{"name":"(anonymous_19)","line":394,"loc":{"start":{"line":394,"column":12},"end":{"line":394,"column":23}}},"20":{"name":"(anonymous_20)","line":603,"loc":{"start":{"line":603,"column":21},"end":{"line":603,"column":32}}},"21":{"name":"(anonymous_21)","line":615,"loc":{"start":{"line":615,"column":18},"end":{"line":615,"column":29}}},"22":{"name":"(anonymous_22)","line":627,"loc":{"start":{"line":627,"column":16},"end":{"line":627,"column":27}}},"23":{"name":"(anonymous_23)","line":641,"loc":{"start":{"line":641,"column":16},"end":{"line":641,"column":27}}},"24":{"name":"(anonymous_24)","line":659,"loc":{"start":{"line":659,"column":20},"end":{"line":659,"column":31}}},"25":{"name":"(anonymous_25)","line":667,"loc":{"start":{"line":667,"column":16},"end":{"line":667,"column":33}}},"26":{"name":"(anonymous_26)","line":675,"loc":{"start":{"line":675,"column":32},"end":{"line":675,"column":51}}},"27":{"name":"(anonymous_27)","line":707,"loc":{"start":{"line":707,"column":18},"end":{"line":707,"column":29}}},"28":{"name":"(anonymous_28)","line":723,"loc":{"start":{"line":723,"column":20},"end":{"line":723,"column":33}}},"29":{"name":"(anonymous_29)","line":728,"loc":{"start":{"line":728,"column":16},"end":{"line":728,"column":36}}},"30":{"name":"(anonymous_30)","line":744,"loc":{"start":{"line":744,"column":17},"end":{"line":744,"column":28}}},"31":{"name":"(anonymous_31)","line":776,"loc":{"start":{"line":776,"column":21},"end":{"line":776,"column":32}}},"32":{"name":"(anonymous_32)","line":794,"loc":{"start":{"line":794,"column":23},"end":{"line":794,"column":34}}},"33":{"name":"(anonymous_33)","line":797,"loc":{"start":{"line":797,"column":26},"end":{"line":797,"column":45}}},"34":{"name":"(anonymous_34)","line":873,"loc":{"start":{"line":873,"column":24},"end":{"line":873,"column":35}}},"35":{"name":"(anonymous_35)","line":878,"loc":{"start":{"line":878,"column":32},"end":{"line":878,"column":51}}},"36":{"name":"(anonymous_36)","line":893,"loc":{"start":{"line":893,"column":22},"end":{"line":893,"column":39}}},"37":{"name":"(anonymous_37)","line":909,"loc":{"start":{"line":909,"column":21},"end":{"line":909,"column":32}}},"38":{"name":"(anonymous_38)","line":935,"loc":{"start":{"line":935,"column":20},"end":{"line":935,"column":43}}},"39":{"name":"(anonymous_39)","line":962,"loc":{"start":{"line":962,"column":21},"end":{"line":962,"column":45}}},"40":{"name":"(anonymous_40)","line":995,"loc":{"start":{"line":995,"column":12},"end":{"line":995,"column":27}}},"41":{"name":"(anonymous_41)","line":1018,"loc":{"start":{"line":1018,"column":18},"end":{"line":1018,"column":40}}},"42":{"name":"(anonymous_42)","line":1055,"loc":{"start":{"line":1055,"column":32},"end":{"line":1055,"column":47}}},"43":{"name":"(anonymous_43)","line":1063,"loc":{"start":{"line":1063,"column":53},"end":{"line":1063,"column":67}}},"44":{"name":"(anonymous_44)","line":1093,"loc":{"start":{"line":1093,"column":17},"end":{"line":1093,"column":28}}},"45":{"name":"(anonymous_45)","line":1130,"loc":{"start":{"line":1130,"column":33},"end":{"line":1130,"column":50}}},"46":{"name":"(anonymous_46)","line":1145,"loc":{"start":{"line":1145,"column":21},"end":{"line":1145,"column":37}}},"47":{"name":"(anonymous_47)","line":1161,"loc":{"start":{"line":1161,"column":32},"end":{"line":1161,"column":43}}},"48":{"name":"(anonymous_48)","line":1182,"loc":{"start":{"line":1182,"column":29},"end":{"line":1182,"column":43}}},"49":{"name":"(anonymous_49)","line":1190,"loc":{"start":{"line":1190,"column":24},"end":{"line":1190,"column":43}}},"50":{"name":"(anonymous_50)","line":1210,"loc":{"start":{"line":1210,"column":21},"end":{"line":1210,"column":35}}},"51":{"name":"(anonymous_51)","line":1227,"loc":{"start":{"line":1227,"column":24},"end":{"line":1227,"column":39}}},"52":{"name":"(anonymous_52)","line":1249,"loc":{"start":{"line":1249,"column":27},"end":{"line":1249,"column":41}}},"53":{"name":"(anonymous_53)","line":1270,"loc":{"start":{"line":1270,"column":18},"end":{"line":1270,"column":32}}},"54":{"name":"(anonymous_54)","line":1291,"loc":{"start":{"line":1291,"column":23},"end":{"line":1291,"column":34}}},"55":{"name":"(anonymous_55)","line":1304,"loc":{"start":{"line":1304,"column":22},"end":{"line":1304,"column":38}}},"56":{"name":"(anonymous_56)","line":1317,"loc":{"start":{"line":1317,"column":17},"end":{"line":1317,"column":33}}},"57":{"name":"(anonymous_57)","line":1333,"loc":{"start":{"line":1333,"column":27},"end":{"line":1333,"column":43}}},"58":{"name":"(anonymous_58)","line":1346,"loc":{"start":{"line":1346,"column":22},"end":{"line":1346,"column":38}}},"59":{"name":"(anonymous_59)","line":1384,"loc":{"start":{"line":1384,"column":25},"end":{"line":1384,"column":41}}},"60":{"name":"(anonymous_60)","line":1397,"loc":{"start":{"line":1397,"column":20},"end":{"line":1397,"column":36}}},"61":{"name":"(anonymous_61)","line":1422,"loc":{"start":{"line":1422,"column":27},"end":{"line":1422,"column":43}}},"62":{"name":"(anonymous_62)","line":1435,"loc":{"start":{"line":1435,"column":22},"end":{"line":1435,"column":38}}},"63":{"name":"(anonymous_63)","line":1458,"loc":{"start":{"line":1458,"column":29},"end":{"line":1458,"column":45}}},"64":{"name":"(anonymous_64)","line":1469,"loc":{"start":{"line":1469,"column":28},"end":{"line":1469,"column":44}}},"65":{"name":"(anonymous_65)","line":1480,"loc":{"start":{"line":1480,"column":33},"end":{"line":1480,"column":49}}},"66":{"name":"(anonymous_66)","line":1491,"loc":{"start":{"line":1491,"column":31},"end":{"line":1491,"column":47}}},"67":{"name":"(anonymous_67)","line":1502,"loc":{"start":{"line":1502,"column":33},"end":{"line":1502,"column":49}}},"68":{"name":"(anonymous_68)","line":1517,"loc":{"start":{"line":1517,"column":30},"end":{"line":1517,"column":41}}},"69":{"name":"(anonymous_69)","line":1532,"loc":{"start":{"line":1532,"column":30},"end":{"line":1532,"column":41}}},"70":{"name":"(anonymous_70)","line":1547,"loc":{"start":{"line":1547,"column":28},"end":{"line":1547,"column":43}}},"71":{"name":"(anonymous_71)","line":1567,"loc":{"start":{"line":1567,"column":29},"end":{"line":1567,"column":45}}},"72":{"name":"(anonymous_72)","line":1578,"loc":{"start":{"line":1578,"column":29},"end":{"line":1578,"column":40}}},"73":{"name":"(anonymous_73)","line":1593,"loc":{"start":{"line":1593,"column":30},"end":{"line":1593,"column":41}}},"74":{"name":"(anonymous_74)","line":1604,"loc":{"start":{"line":1604,"column":23},"end":{"line":1604,"column":34}}},"75":{"name":"(anonymous_75)","line":1636,"loc":{"start":{"line":1636,"column":39},"end":{"line":1636,"column":56}}},"76":{"name":"(anonymous_76)","line":1639,"loc":{"start":{"line":1639,"column":16},"end":{"line":1639,"column":27}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1648,"column":119}},"2":{"start":{"line":9,"column":0},"end":{"line":129,"column":48}},"3":{"start":{"line":79,"column":8},"end":{"line":79,"column":65}},"4":{"start":{"line":84,"column":8},"end":{"line":84,"column":48}},"5":{"start":{"line":88,"column":8},"end":{"line":88,"column":42}},"6":{"start":{"line":92,"column":8},"end":{"line":92,"column":45}},"7":{"start":{"line":96,"column":8},"end":{"line":96,"column":37}},"8":{"start":{"line":101,"column":12},"end":{"line":101,"column":72}},"9":{"start":{"line":106,"column":8},"end":{"line":107,"column":46}},"10":{"start":{"line":109,"column":8},"end":{"line":114,"column":11}},"11":{"start":{"line":110,"column":12},"end":{"line":112,"column":13}},"12":{"start":{"line":111,"column":16},"end":{"line":111,"column":42}},"13":{"start":{"line":113,"column":12},"end":{"line":113,"column":27}},"14":{"start":{"line":116,"column":8},"end":{"line":116,"column":35}},"15":{"start":{"line":165,"column":0},"end":{"line":167,"column":1}},"16":{"start":{"line":166,"column":4},"end":{"line":166,"column":57}},"17":{"start":{"line":169,"column":0},"end":{"line":401,"column":3}},"18":{"start":{"line":199,"column":16},"end":{"line":199,"column":62}},"19":{"start":{"line":350,"column":12},"end":{"line":351,"column":53}},"20":{"start":{"line":353,"column":12},"end":{"line":353,"column":63}},"21":{"start":{"line":357,"column":12},"end":{"line":358,"column":53}},"22":{"start":{"line":360,"column":12},"end":{"line":360,"column":47}},"23":{"start":{"line":361,"column":12},"end":{"line":361,"column":61}},"24":{"start":{"line":365,"column":12},"end":{"line":366,"column":53}},"25":{"start":{"line":368,"column":12},"end":{"line":368,"column":61}},"26":{"start":{"line":372,"column":12},"end":{"line":373,"column":53}},"27":{"start":{"line":375,"column":12},"end":{"line":375,"column":45}},"28":{"start":{"line":376,"column":12},"end":{"line":376,"column":63}},"29":{"start":{"line":380,"column":12},"end":{"line":380,"column":42}},"30":{"start":{"line":381,"column":12},"end":{"line":381,"column":42}},"31":{"start":{"line":385,"column":12},"end":{"line":385,"column":42}},"32":{"start":{"line":386,"column":12},"end":{"line":386,"column":42}},"33":{"start":{"line":390,"column":12},"end":{"line":390,"column":42}},"34":{"start":{"line":391,"column":12},"end":{"line":391,"column":42}},"35":{"start":{"line":395,"column":12},"end":{"line":395,"column":42}},"36":{"start":{"line":396,"column":12},"end":{"line":396,"column":42}},"37":{"start":{"line":403,"column":0},"end":{"line":1634,"column":2}},"38":{"start":{"line":604,"column":12},"end":{"line":604,"column":36}},"39":{"start":{"line":606,"column":12},"end":{"line":606,"column":28}},"40":{"start":{"line":616,"column":12},"end":{"line":616,"column":32}},"41":{"start":{"line":618,"column":12},"end":{"line":618,"column":38}},"42":{"start":{"line":628,"column":12},"end":{"line":628,"column":32}},"43":{"start":{"line":630,"column":12},"end":{"line":630,"column":37}},"44":{"start":{"line":631,"column":12},"end":{"line":631,"column":31}},"45":{"start":{"line":632,"column":12},"end":{"line":632,"column":35}},"46":{"start":{"line":642,"column":12},"end":{"line":642,"column":32}},"47":{"start":{"line":644,"column":12},"end":{"line":644,"column":48}},"48":{"start":{"line":647,"column":12},"end":{"line":649,"column":14}},"49":{"start":{"line":660,"column":12},"end":{"line":663,"column":49}},"50":{"start":{"line":665,"column":12},"end":{"line":670,"column":14}},"51":{"start":{"line":668,"column":20},"end":{"line":668,"column":36}},"52":{"start":{"line":672,"column":12},"end":{"line":672,"column":46}},"53":{"start":{"line":675,"column":12},"end":{"line":680,"column":15}},"54":{"start":{"line":676,"column":16},"end":{"line":676,"column":47}},"55":{"start":{"line":679,"column":16},"end":{"line":679,"column":38}},"56":{"start":{"line":682,"column":12},"end":{"line":682,"column":40}},"57":{"start":{"line":685,"column":12},"end":{"line":693,"column":13}},"58":{"start":{"line":686,"column":16},"end":{"line":686,"column":52}},"59":{"start":{"line":688,"column":16},"end":{"line":690,"column":17}},"60":{"start":{"line":689,"column":20},"end":{"line":689,"column":54}},"61":{"start":{"line":692,"column":16},"end":{"line":692,"column":37}},"62":{"start":{"line":695,"column":12},"end":{"line":695,"column":41}},"63":{"start":{"line":696,"column":12},"end":{"line":696,"column":56}},"64":{"start":{"line":708,"column":12},"end":{"line":708,"column":28}},"65":{"start":{"line":709,"column":12},"end":{"line":709,"column":26}},"66":{"start":{"line":710,"column":12},"end":{"line":710,"column":26}},"67":{"start":{"line":724,"column":12},"end":{"line":724,"column":32}},"68":{"start":{"line":726,"column":12},"end":{"line":735,"column":14}},"69":{"start":{"line":729,"column":20},"end":{"line":731,"column":22}},"70":{"start":{"line":733,"column":20},"end":{"line":733,"column":62}},"71":{"start":{"line":745,"column":12},"end":{"line":745,"column":32}},"72":{"start":{"line":747,"column":12},"end":{"line":760,"column":14}},"73":{"start":{"line":762,"column":12},"end":{"line":767,"column":14}},"74":{"start":{"line":777,"column":12},"end":{"line":778,"column":48}},"75":{"start":{"line":780,"column":12},"end":{"line":785,"column":14}},"76":{"start":{"line":795,"column":12},"end":{"line":805,"column":18}},"77":{"start":{"line":798,"column":20},"end":{"line":804,"column":23}},"78":{"start":{"line":817,"column":12},"end":{"line":817,"column":61}},"79":{"start":{"line":829,"column":12},"end":{"line":829,"column":50}},"80":{"start":{"line":840,"column":12},"end":{"line":840,"column":61}},"81":{"start":{"line":852,"column":12},"end":{"line":852,"column":57}},"82":{"start":{"line":864,"column":12},"end":{"line":864,"column":53}},"83":{"start":{"line":874,"column":12},"end":{"line":876,"column":63}},"84":{"start":{"line":878,"column":12},"end":{"line":880,"column":15}},"85":{"start":{"line":879,"column":16},"end":{"line":879,"column":48}},"86":{"start":{"line":882,"column":12},"end":{"line":882,"column":43}},"87":{"start":{"line":894,"column":12},"end":{"line":894,"column":32}},"88":{"start":{"line":896,"column":12},"end":{"line":900,"column":14}},"89":{"start":{"line":910,"column":12},"end":{"line":916,"column":59}},"90":{"start":{"line":918,"column":12},"end":{"line":922,"column":13}},"91":{"start":{"line":919,"column":16},"end":{"line":919,"column":57}},"92":{"start":{"line":936,"column":12},"end":{"line":939,"column":63}},"93":{"start":{"line":942,"column":12},"end":{"line":942,"column":32}},"94":{"start":{"line":946,"column":12},"end":{"line":950,"column":13}},"95":{"start":{"line":949,"column":16},"end":{"line":949,"column":78}},"96":{"start":{"line":963,"column":12},"end":{"line":965,"column":29}},"97":{"start":{"line":968,"column":12},"end":{"line":970,"column":13}},"98":{"start":{"line":969,"column":16},"end":{"line":969,"column":36}},"99":{"start":{"line":972,"column":12},"end":{"line":976,"column":14}},"100":{"start":{"line":978,"column":12},"end":{"line":978,"column":52}},"101":{"start":{"line":979,"column":12},"end":{"line":979,"column":52}},"102":{"start":{"line":981,"column":12},"end":{"line":981,"column":44}},"103":{"start":{"line":984,"column":12},"end":{"line":984,"column":53}},"104":{"start":{"line":986,"column":12},"end":{"line":989,"column":14}},"105":{"start":{"line":996,"column":16},"end":{"line":1002,"column":22}},"106":{"start":{"line":1004,"column":16},"end":{"line":1004,"column":47}},"107":{"start":{"line":1019,"column":12},"end":{"line":1025,"column":53}},"108":{"start":{"line":1027,"column":12},"end":{"line":1030,"column":13}},"109":{"start":{"line":1029,"column":16},"end":{"line":1029,"column":71}},"110":{"start":{"line":1032,"column":12},"end":{"line":1040,"column":14}},"111":{"start":{"line":1056,"column":12},"end":{"line":1060,"column":14}},"112":{"start":{"line":1062,"column":12},"end":{"line":1076,"column":13}},"113":{"start":{"line":1063,"column":16},"end":{"line":1075,"column":19}},"114":{"start":{"line":1064,"column":20},"end":{"line":1068,"column":77}},"115":{"start":{"line":1070,"column":20},"end":{"line":1070,"column":95}},"116":{"start":{"line":1071,"column":20},"end":{"line":1071,"column":95}},"117":{"start":{"line":1072,"column":20},"end":{"line":1072,"column":95}},"118":{"start":{"line":1073,"column":20},"end":{"line":1073,"column":85}},"119":{"start":{"line":1074,"column":20},"end":{"line":1074,"column":88}},"120":{"start":{"line":1078,"column":12},"end":{"line":1078,"column":123}},"121":{"start":{"line":1079,"column":12},"end":{"line":1079,"column":118}},"122":{"start":{"line":1080,"column":12},"end":{"line":1080,"column":123}},"123":{"start":{"line":1081,"column":12},"end":{"line":1081,"column":118}},"124":{"start":{"line":1083,"column":12},"end":{"line":1083,"column":24}},"125":{"start":{"line":1094,"column":12},"end":{"line":1098,"column":42}},"126":{"start":{"line":1100,"column":12},"end":{"line":1100,"column":64}},"127":{"start":{"line":1102,"column":12},"end":{"line":1104,"column":13}},"128":{"start":{"line":1103,"column":16},"end":{"line":1103,"column":53}},"129":{"start":{"line":1107,"column":12},"end":{"line":1114,"column":13}},"130":{"start":{"line":1110,"column":16},"end":{"line":1113,"column":18}},"131":{"start":{"line":1117,"column":12},"end":{"line":1119,"column":13}},"132":{"start":{"line":1118,"column":16},"end":{"line":1118,"column":44}},"133":{"start":{"line":1131,"column":12},"end":{"line":1131,"column":32}},"134":{"start":{"line":1133,"column":12},"end":{"line":1133,"column":85}},"135":{"start":{"line":1134,"column":12},"end":{"line":1134,"column":81}},"136":{"start":{"line":1135,"column":12},"end":{"line":1135,"column":79}},"137":{"start":{"line":1136,"column":12},"end":{"line":1136,"column":83}},"138":{"start":{"line":1146,"column":12},"end":{"line":1146,"column":32}},"139":{"start":{"line":1148,"column":12},"end":{"line":1148,"column":76}},"140":{"start":{"line":1162,"column":12},"end":{"line":1166,"column":78}},"141":{"start":{"line":1168,"column":12},"end":{"line":1168,"column":55}},"142":{"start":{"line":1169,"column":12},"end":{"line":1169,"column":61}},"143":{"start":{"line":1171,"column":12},"end":{"line":1171,"column":107}},"144":{"start":{"line":1172,"column":12},"end":{"line":1172,"column":107}},"145":{"start":{"line":1183,"column":12},"end":{"line":1184,"column":68}},"146":{"start":{"line":1186,"column":12},"end":{"line":1200,"column":13}},"147":{"start":{"line":1187,"column":16},"end":{"line":1199,"column":17}},"148":{"start":{"line":1189,"column":20},"end":{"line":1193,"column":22}},"149":{"start":{"line":1191,"column":28},"end":{"line":1191,"column":75}},"150":{"start":{"line":1195,"column":20},"end":{"line":1195,"column":72}},"151":{"start":{"line":1198,"column":20},"end":{"line":1198,"column":75}},"152":{"start":{"line":1211,"column":12},"end":{"line":1212,"column":29}},"153":{"start":{"line":1215,"column":12},"end":{"line":1237,"column":13}},"154":{"start":{"line":1216,"column":16},"end":{"line":1216,"column":30}},"155":{"start":{"line":1218,"column":17},"end":{"line":1237,"column":13}},"156":{"start":{"line":1220,"column":16},"end":{"line":1236,"column":17}},"157":{"start":{"line":1221,"column":20},"end":{"line":1221,"column":51}},"158":{"start":{"line":1225,"column":20},"end":{"line":1235,"column":22}},"159":{"start":{"line":1228,"column":28},"end":{"line":1228,"column":52}},"160":{"start":{"line":1231,"column":28},"end":{"line":1233,"column":29}},"161":{"start":{"line":1232,"column":32},"end":{"line":1232,"column":53}},"162":{"start":{"line":1239,"column":12},"end":{"line":1239,"column":27}},"163":{"start":{"line":1250,"column":12},"end":{"line":1251,"column":48}},"164":{"start":{"line":1253,"column":12},"end":{"line":1260,"column":13}},"165":{"start":{"line":1254,"column":16},"end":{"line":1259,"column":17}},"166":{"start":{"line":1255,"column":20},"end":{"line":1255,"column":64}},"167":{"start":{"line":1258,"column":20},"end":{"line":1258,"column":67}},"168":{"start":{"line":1271,"column":12},"end":{"line":1274,"column":53}},"169":{"start":{"line":1277,"column":12},"end":{"line":1279,"column":13}},"170":{"start":{"line":1278,"column":16},"end":{"line":1278,"column":27}},"171":{"start":{"line":1281,"column":12},"end":{"line":1281,"column":23}},"172":{"start":{"line":1292,"column":12},"end":{"line":1292,"column":32}},"173":{"start":{"line":1294,"column":12},"end":{"line":1294,"column":42}},"174":{"start":{"line":1305,"column":12},"end":{"line":1305,"column":32}},"175":{"start":{"line":1307,"column":12},"end":{"line":1307,"column":36}},"176":{"start":{"line":1318,"column":12},"end":{"line":1318,"column":32}},"177":{"start":{"line":1320,"column":12},"end":{"line":1320,"column":62}},"178":{"start":{"line":1323,"column":12},"end":{"line":1323,"column":31}},"179":{"start":{"line":1334,"column":12},"end":{"line":1334,"column":32}},"180":{"start":{"line":1336,"column":12},"end":{"line":1336,"column":41}},"181":{"start":{"line":1347,"column":12},"end":{"line":1350,"column":28}},"182":{"start":{"line":1352,"column":12},"end":{"line":1352,"column":46}},"183":{"start":{"line":1355,"column":12},"end":{"line":1355,"column":40}},"184":{"start":{"line":1357,"column":12},"end":{"line":1357,"column":33}},"185":{"start":{"line":1360,"column":12},"end":{"line":1360,"column":35}},"186":{"start":{"line":1363,"column":12},"end":{"line":1374,"column":13}},"187":{"start":{"line":1364,"column":16},"end":{"line":1364,"column":91}},"188":{"start":{"line":1365,"column":16},"end":{"line":1365,"column":89}},"189":{"start":{"line":1367,"column":16},"end":{"line":1369,"column":17}},"190":{"start":{"line":1368,"column":20},"end":{"line":1368,"column":69}},"191":{"start":{"line":1371,"column":16},"end":{"line":1373,"column":17}},"192":{"start":{"line":1372,"column":20},"end":{"line":1372,"column":67}},"193":{"start":{"line":1385,"column":12},"end":{"line":1385,"column":32}},"194":{"start":{"line":1387,"column":12},"end":{"line":1387,"column":39}},"195":{"start":{"line":1398,"column":12},"end":{"line":1399,"column":46}},"196":{"start":{"line":1402,"column":12},"end":{"line":1402,"column":28}},"197":{"start":{"line":1405,"column":12},"end":{"line":1405,"column":31}},"198":{"start":{"line":1407,"column":12},"end":{"line":1407,"column":48}},"199":{"start":{"line":1409,"column":12},"end":{"line":1409,"column":46}},"200":{"start":{"line":1410,"column":12},"end":{"line":1410,"column":51}},"201":{"start":{"line":1412,"column":12},"end":{"line":1412,"column":35}},"202":{"start":{"line":1423,"column":12},"end":{"line":1423,"column":32}},"203":{"start":{"line":1425,"column":12},"end":{"line":1425,"column":41}},"204":{"start":{"line":1436,"column":12},"end":{"line":1437,"column":48}},"205":{"start":{"line":1439,"column":12},"end":{"line":1439,"column":58}},"206":{"start":{"line":1441,"column":12},"end":{"line":1441,"column":41}},"207":{"start":{"line":1443,"column":12},"end":{"line":1443,"column":46}},"208":{"start":{"line":1446,"column":12},"end":{"line":1446,"column":70}},"209":{"start":{"line":1448,"column":12},"end":{"line":1448,"column":40}},"210":{"start":{"line":1459,"column":12},"end":{"line":1459,"column":74}},"211":{"start":{"line":1470,"column":12},"end":{"line":1470,"column":72}},"212":{"start":{"line":1481,"column":12},"end":{"line":1481,"column":78}},"213":{"start":{"line":1492,"column":12},"end":{"line":1492,"column":76}},"214":{"start":{"line":1503,"column":12},"end":{"line":1506,"column":13}},"215":{"start":{"line":1505,"column":16},"end":{"line":1505,"column":66}},"216":{"start":{"line":1507,"column":12},"end":{"line":1507,"column":78}},"217":{"start":{"line":1518,"column":12},"end":{"line":1518,"column":32}},"218":{"start":{"line":1520,"column":12},"end":{"line":1522,"column":13}},"219":{"start":{"line":1521,"column":16},"end":{"line":1521,"column":50}},"220":{"start":{"line":1533,"column":12},"end":{"line":1533,"column":32}},"221":{"start":{"line":1535,"column":12},"end":{"line":1537,"column":13}},"222":{"start":{"line":1536,"column":16},"end":{"line":1536,"column":49}},"223":{"start":{"line":1548,"column":12},"end":{"line":1549,"column":59}},"224":{"start":{"line":1551,"column":12},"end":{"line":1557,"column":13}},"225":{"start":{"line":1552,"column":16},"end":{"line":1552,"column":52}},"226":{"start":{"line":1553,"column":16},"end":{"line":1553,"column":55}},"227":{"start":{"line":1555,"column":16},"end":{"line":1555,"column":51}},"228":{"start":{"line":1556,"column":16},"end":{"line":1556,"column":57}},"229":{"start":{"line":1568,"column":12},"end":{"line":1568,"column":57}},"230":{"start":{"line":1579,"column":12},"end":{"line":1579,"column":32}},"231":{"start":{"line":1581,"column":12},"end":{"line":1583,"column":13}},"232":{"start":{"line":1582,"column":16},"end":{"line":1582,"column":52}},"233":{"start":{"line":1594,"column":12},"end":{"line":1594,"column":61}},"234":{"start":{"line":1605,"column":12},"end":{"line":1609,"column":31}},"235":{"start":{"line":1612,"column":12},"end":{"line":1629,"column":13}},"236":{"start":{"line":1613,"column":16},"end":{"line":1613,"column":64}},"237":{"start":{"line":1615,"column":16},"end":{"line":1617,"column":17}},"238":{"start":{"line":1616,"column":20},"end":{"line":1616,"column":54}},"239":{"start":{"line":1619,"column":16},"end":{"line":1619,"column":37}},"240":{"start":{"line":1621,"column":16},"end":{"line":1621,"column":52}},"241":{"start":{"line":1624,"column":16},"end":{"line":1628,"column":19}},"242":{"start":{"line":1631,"column":12},"end":{"line":1631,"column":27}},"243":{"start":{"line":1636,"column":0},"end":{"line":1645,"column":3}},"244":{"start":{"line":1638,"column":4},"end":{"line":1644,"column":6}},"245":{"start":{"line":1640,"column":12},"end":{"line":1640,"column":45}}},"branchMap":{"1":{"line":84,"type":"binary-expr","locations":[{"start":{"line":84,"column":15},"end":{"line":84,"column":42}},{"start":{"line":84,"column":46},"end":{"line":84,"column":47}}]},"2":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":12},"end":{"line":110,"column":12}},{"start":{"line":110,"column":12},"end":{"line":110,"column":12}}]},"3":{"line":199,"type":"binary-expr","locations":[{"start":{"line":199,"column":23},"end":{"line":199,"column":41}},{"start":{"line":199,"column":45},"end":{"line":199,"column":61}}]},"4":{"line":685,"type":"if","locations":[{"start":{"line":685,"column":12},"end":{"line":685,"column":12}},{"start":{"line":685,"column":12},"end":{"line":685,"column":12}}]},"5":{"line":688,"type":"if","locations":[{"start":{"line":688,"column":16},"end":{"line":688,"column":16}},{"start":{"line":688,"column":16},"end":{"line":688,"column":16}}]},"6":{"line":918,"type":"if","locations":[{"start":{"line":918,"column":12},"end":{"line":918,"column":12}},{"start":{"line":918,"column":12},"end":{"line":918,"column":12}}]},"7":{"line":918,"type":"binary-expr","locations":[{"start":{"line":918,"column":16},"end":{"line":918,"column":22}},{"start":{"line":918,"column":26},"end":{"line":918,"column":48}}]},"8":{"line":939,"type":"cond-expr","locations":[{"start":{"line":939,"column":52},"end":{"line":939,"column":55}},{"start":{"line":939,"column":58},"end":{"line":939,"column":62}}]},"9":{"line":946,"type":"if","locations":[{"start":{"line":946,"column":12},"end":{"line":946,"column":12}},{"start":{"line":946,"column":12},"end":{"line":946,"column":12}}]},"10":{"line":946,"type":"binary-expr","locations":[{"start":{"line":946,"column":18},"end":{"line":946,"column":31}},{"start":{"line":946,"column":36},"end":{"line":946,"column":62}},{"start":{"line":947,"column":18},"end":{"line":947,"column":30}},{"start":{"line":947,"column":35},"end":{"line":947,"column":60}}]},"11":{"line":968,"type":"if","locations":[{"start":{"line":968,"column":12},"end":{"line":968,"column":12}},{"start":{"line":968,"column":12},"end":{"line":968,"column":12}}]},"12":{"line":1004,"type":"cond-expr","locations":[{"start":{"line":1004,"column":31},"end":{"line":1004,"column":39}},{"start":{"line":1004,"column":42},"end":{"line":1004,"column":46}}]},"13":{"line":1027,"type":"if","locations":[{"start":{"line":1027,"column":12},"end":{"line":1027,"column":12}},{"start":{"line":1027,"column":12},"end":{"line":1027,"column":12}}]},"14":{"line":1029,"type":"cond-expr","locations":[{"start":{"line":1029,"column":45},"end":{"line":1029,"column":55}},{"start":{"line":1029,"column":58},"end":{"line":1029,"column":69}}]},"15":{"line":1062,"type":"if","locations":[{"start":{"line":1062,"column":12},"end":{"line":1062,"column":12}},{"start":{"line":1062,"column":12},"end":{"line":1062,"column":12}}]},"16":{"line":1102,"type":"if","locations":[{"start":{"line":1102,"column":12},"end":{"line":1102,"column":12}},{"start":{"line":1102,"column":12},"end":{"line":1102,"column":12}}]},"17":{"line":1102,"type":"binary-expr","locations":[{"start":{"line":1102,"column":16},"end":{"line":1102,"column":42}},{"start":{"line":1102,"column":46},"end":{"line":1102,"column":71}}]},"18":{"line":1107,"type":"if","locations":[{"start":{"line":1107,"column":12},"end":{"line":1107,"column":12}},{"start":{"line":1107,"column":12},"end":{"line":1107,"column":12}}]},"19":{"line":1117,"type":"if","locations":[{"start":{"line":1117,"column":12},"end":{"line":1117,"column":12}},{"start":{"line":1117,"column":12},"end":{"line":1117,"column":12}}]},"20":{"line":1186,"type":"if","locations":[{"start":{"line":1186,"column":12},"end":{"line":1186,"column":12}},{"start":{"line":1186,"column":12},"end":{"line":1186,"column":12}}]},"21":{"line":1187,"type":"if","locations":[{"start":{"line":1187,"column":16},"end":{"line":1187,"column":16}},{"start":{"line":1187,"column":16},"end":{"line":1187,"column":16}}]},"22":{"line":1215,"type":"if","locations":[{"start":{"line":1215,"column":12},"end":{"line":1215,"column":12}},{"start":{"line":1215,"column":12},"end":{"line":1215,"column":12}}]},"23":{"line":1218,"type":"if","locations":[{"start":{"line":1218,"column":17},"end":{"line":1218,"column":17}},{"start":{"line":1218,"column":17},"end":{"line":1218,"column":17}}]},"24":{"line":1220,"type":"if","locations":[{"start":{"line":1220,"column":16},"end":{"line":1220,"column":16}},{"start":{"line":1220,"column":16},"end":{"line":1220,"column":16}}]},"25":{"line":1231,"type":"if","locations":[{"start":{"line":1231,"column":28},"end":{"line":1231,"column":28}},{"start":{"line":1231,"column":28},"end":{"line":1231,"column":28}}]},"26":{"line":1253,"type":"if","locations":[{"start":{"line":1253,"column":12},"end":{"line":1253,"column":12}},{"start":{"line":1253,"column":12},"end":{"line":1253,"column":12}}]},"27":{"line":1254,"type":"if","locations":[{"start":{"line":1254,"column":16},"end":{"line":1254,"column":16}},{"start":{"line":1254,"column":16},"end":{"line":1254,"column":16}}]},"28":{"line":1277,"type":"if","locations":[{"start":{"line":1277,"column":12},"end":{"line":1277,"column":12}},{"start":{"line":1277,"column":12},"end":{"line":1277,"column":12}}]},"29":{"line":1363,"type":"if","locations":[{"start":{"line":1363,"column":12},"end":{"line":1363,"column":12}},{"start":{"line":1363,"column":12},"end":{"line":1363,"column":12}}]},"30":{"line":1367,"type":"if","locations":[{"start":{"line":1367,"column":16},"end":{"line":1367,"column":16}},{"start":{"line":1367,"column":16},"end":{"line":1367,"column":16}}]},"31":{"line":1371,"type":"if","locations":[{"start":{"line":1371,"column":16},"end":{"line":1371,"column":16}},{"start":{"line":1371,"column":16},"end":{"line":1371,"column":16}}]},"32":{"line":1503,"type":"if","locations":[{"start":{"line":1503,"column":12},"end":{"line":1503,"column":12}},{"start":{"line":1503,"column":12},"end":{"line":1503,"column":12}}]},"33":{"line":1520,"type":"if","locations":[{"start":{"line":1520,"column":12},"end":{"line":1520,"column":12}},{"start":{"line":1520,"column":12},"end":{"line":1520,"column":12}}]},"34":{"line":1535,"type":"if","locations":[{"start":{"line":1535,"column":12},"end":{"line":1535,"column":12}},{"start":{"line":1535,"column":12},"end":{"line":1535,"column":12}}]},"35":{"line":1551,"type":"if","locations":[{"start":{"line":1551,"column":12},"end":{"line":1551,"column":12}},{"start":{"line":1551,"column":12},"end":{"line":1551,"column":12}}]},"36":{"line":1581,"type":"if","locations":[{"start":{"line":1581,"column":12},"end":{"line":1581,"column":12}},{"start":{"line":1581,"column":12},"end":{"line":1581,"column":12}}]},"37":{"line":1612,"type":"if","locations":[{"start":{"line":1612,"column":12},"end":{"line":1612,"column":12}},{"start":{"line":1612,"column":12},"end":{"line":1612,"column":12}}]},"38":{"line":1615,"type":"if","locations":[{"start":{"line":1615,"column":16},"end":{"line":1615,"column":16}},{"start":{"line":1615,"column":16},"end":{"line":1615,"column":16}}]}},"code":["(function () { YUI.add('resize-base', function (Y, NAME) {","","/**"," * The Resize Utility allows you to make an HTML element resizable."," * @module resize"," * @main resize"," */","","var Lang = Y.Lang,"," isArray = Lang.isArray,"," isBoolean = Lang.isBoolean,"," isNumber = Lang.isNumber,"," isString = Lang.isString,",""," yArray = Y.Array,"," trim = Lang.trim,"," indexOf = yArray.indexOf,",""," COMMA = ',',"," DOT = '.',"," EMPTY_STR = '',"," HANDLE_SUB = '{handle}',"," SPACE = ' ',",""," ACTIVE = 'active',"," ACTIVE_HANDLE = 'activeHandle',"," ACTIVE_HANDLE_NODE = 'activeHandleNode',"," ALL = 'all',"," AUTO_HIDE = 'autoHide',"," BORDER = 'border',"," BOTTOM = 'bottom',"," CLASS_NAME = 'className',"," COLOR = 'color',"," DEF_MIN_HEIGHT = 'defMinHeight',"," DEF_MIN_WIDTH = 'defMinWidth',"," HANDLE = 'handle',"," HANDLES = 'handles',"," HANDLES_WRAPPER = 'handlesWrapper',"," HIDDEN = 'hidden',"," INNER = 'inner',"," LEFT = 'left',"," MARGIN = 'margin',"," NODE = 'node',"," NODE_NAME = 'nodeName',"," NONE = 'none',"," OFFSET_HEIGHT = 'offsetHeight',"," OFFSET_WIDTH = 'offsetWidth',"," PADDING = 'padding',"," PARENT_NODE = 'parentNode',"," POSITION = 'position',"," RELATIVE = 'relative',"," RESIZE = 'resize',"," RESIZING = 'resizing',"," RIGHT = 'right',"," STATIC = 'static',"," STYLE = 'style',"," TOP = 'top',"," WIDTH = 'width',"," WRAP = 'wrap',"," WRAPPER = 'wrapper',"," WRAP_TYPES = 'wrapTypes',",""," EV_MOUSE_UP = 'resize:mouseUp',"," EV_RESIZE = 'resize:resize',"," EV_RESIZE_ALIGN = 'resize:align',"," EV_RESIZE_END = 'resize:end',"," EV_RESIZE_START = 'resize:start',",""," T = 't',"," TR = 'tr',"," R = 'r',"," BR = 'br',"," B = 'b',"," BL = 'bl',"," L = 'l',"," TL = 'tl',",""," concat = function() {"," return Array.prototype.slice.call(arguments).join(SPACE);"," },",""," // round the passed number to get rid of pixel-flickering"," toRoundNumber = function(num) {"," return Math.round(parseFloat(num)) || 0;"," },",""," getCompStyle = function(node, val) {"," return node.getComputedStyle(val);"," },",""," handleAttrName = function(handle) {"," return HANDLE + handle.toUpperCase();"," },",""," isNode = function(v) {"," return (v instanceof Y.Node);"," },",""," toInitialCap = Y.cached("," function(str) {"," return str.substring(0, 1).toUpperCase() + str.substring(1);"," }"," ),",""," capitalize = Y.cached(function() {"," var out = [],"," args = yArray(arguments, 0, true);",""," yArray.each(args, function(part, i) {"," if (i > 0) {"," part = toInitialCap(part);"," }"," out.push(part);"," });",""," return out.join(EMPTY_STR);"," }),",""," getCN = Y.ClassNameManager.getClassName,",""," CSS_RESIZE = getCN(RESIZE),"," CSS_RESIZE_HANDLE = getCN(RESIZE, HANDLE),"," CSS_RESIZE_HANDLE_ACTIVE = getCN(RESIZE, HANDLE, ACTIVE),"," CSS_RESIZE_HANDLE_INNER = getCN(RESIZE, HANDLE, INNER),"," CSS_RESIZE_HANDLE_INNER_PLACEHOLDER = getCN(RESIZE, HANDLE, INNER, HANDLE_SUB),"," CSS_RESIZE_HANDLE_PLACEHOLDER = getCN(RESIZE, HANDLE, HANDLE_SUB),"," CSS_RESIZE_HIDDEN_HANDLES = getCN(RESIZE, HIDDEN, HANDLES),"," CSS_RESIZE_HANDLES_WRAPPER = getCN(RESIZE, HANDLES, WRAPPER),"," CSS_RESIZE_WRAPPER = getCN(RESIZE, WRAPPER);","","/**","A base class for Resize, providing:",""," * Basic Lifecycle (initializer, renderUI, bindUI, syncUI, destructor)"," * Applies drag handles to an element to make it resizable"," * Here is the list of valid resize handles:"," `[ 't', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl' ]`. You can"," read this list as top, top-right, right, bottom-right, bottom,"," bottom-left, left, top-left."," * The drag handles are inserted into the element and positioned"," absolute. Some elements, such as a textarea or image, don't support"," children. To overcome that, set wrap:true in your config and the"," element willbe wrapped for you automatically.","","Quick Example:",""," var instance = new Y.Resize({"," node: '#resize1',"," preserveRatio: true,"," wrap: true,"," maxHeight: 170,"," maxWidth: 400,"," handles: 't, tr, r, br, b, bl, l, tl'"," });","","Check the list of <a href=\"Resize.html#attrs\">Configuration Attributes</a> available for","Resize.","","@class Resize","@param config {Object} Object literal specifying widget configuration properties.","@constructor","@extends Base","*/","","function Resize() {"," Resize.superclass.constructor.apply(this, arguments);","}","","Y.mix(Resize, {"," /**"," * Static property provides a string to identify the class."," *"," * @property NAME"," * @type String"," * @static"," */"," NAME: RESIZE,",""," /**"," * Static property used to define the default attribute"," * configuration for the Resize."," *"," * @property ATTRS"," * @type Object"," * @static"," */"," ATTRS: {"," /**"," * Stores the active handle during the resize."," *"," * @attribute activeHandle"," * @default null"," * @private"," * @type String"," */"," activeHandle: {"," value: null,"," validator: function(v) {"," return Y.Lang.isString(v) || Y.Lang.isNull(v);"," }"," },",""," /**"," * Stores the active handle element during the resize."," *"," * @attribute activeHandleNode"," * @default null"," * @private"," * @type Node"," */"," activeHandleNode: {"," value: null,"," validator: isNode"," },",""," /**"," * False to ensure that the resize handles are always visible, true to"," * display them only when the user mouses over the resizable borders."," *"," * @attribute autoHide"," * @default false"," * @type boolean"," */"," autoHide: {"," value: false,"," validator: isBoolean"," },",""," /**"," * The default minimum height of the element. Only used when"," * ResizeConstrained is not plugged."," *"," * @attribute defMinHeight"," * @default 15"," * @type Number"," */"," defMinHeight: {"," value: 15,"," validator: isNumber"," },",""," /**"," * The default minimum width of the element. Only used when"," * ResizeConstrained is not plugged."," *"," * @attribute defMinWidth"," * @default 15"," * @type Number"," */"," defMinWidth: {"," value: 15,"," validator: isNumber"," },",""," /**"," * The handles to use (any combination of): 't', 'b', 'r', 'l', 'bl',"," * 'br', 'tl', 'tr'. Can use a shortcut of All."," *"," * @attribute handles"," * @default all"," * @type Array | String"," */"," handles: {"," setter: '_setHandles',"," value: ALL"," },",""," /**"," * Node to wrap the resize handles."," *"," * @attribute handlesWrapper"," * @type Node"," */"," handlesWrapper: {"," readOnly: true,"," setter: Y.one,"," valueFn: '_valueHandlesWrapper'"," },",""," /**"," * The selector or element to resize. Required."," *"," * @attribute node"," * @type Node"," */"," node: {"," setter: Y.one"," },",""," /**"," * True when the element is being Resized."," *"," * @attribute resizing"," * @default false"," * @type boolean"," */"," resizing: {"," value: false,"," validator: isBoolean"," },",""," /**"," * True to wrap an element with a div if needed (required for textareas"," * and images, defaults to false) in favor of the handles config option."," * The wrapper element type (default div) could be over-riden passing the"," * <code>wrapper</code> attribute."," *"," * @attribute wrap"," * @default false"," * @type boolean"," */"," wrap: {"," setter: '_setWrap',"," value: false,"," validator: isBoolean"," },",""," /**"," * Elements that requires a wrapper by default. Normally are elements"," * which cannot have children elements."," *"," * @attribute wrapTypes"," * @default /canvas|textarea|input|select|button|img/i"," * @readOnly"," * @type Regex"," */"," wrapTypes: {"," readOnly: true,"," value: /^canvas|textarea|input|select|button|img|iframe|table|embed$/i"," },",""," /**"," * Element to wrap the <code>wrapTypes</code>. This element will house"," * the handles elements."," *"," * @attribute wrapper"," * @default div"," * @type String | Node"," * @writeOnce"," */"," wrapper: {"," readOnly: true,"," valueFn: '_valueWrapper',"," writeOnce: true"," }"," },",""," RULES: {"," b: function(instance, dx, dy) {"," var info = instance.info,"," originalInfo = instance.originalInfo;",""," info.offsetHeight = originalInfo.offsetHeight + dy;"," },",""," l: function(instance, dx) {"," var info = instance.info,"," originalInfo = instance.originalInfo;",""," info.left = originalInfo.left + dx;"," info.offsetWidth = originalInfo.offsetWidth - dx;"," },",""," r: function(instance, dx) {"," var info = instance.info,"," originalInfo = instance.originalInfo;",""," info.offsetWidth = originalInfo.offsetWidth + dx;"," },",""," t: function(instance, dx, dy) {"," var info = instance.info,"," originalInfo = instance.originalInfo;",""," info.top = originalInfo.top + dy;"," info.offsetHeight = originalInfo.offsetHeight - dy;"," },",""," tr: function() {"," this.t.apply(this, arguments);"," this.r.apply(this, arguments);"," },",""," bl: function() {"," this.b.apply(this, arguments);"," this.l.apply(this, arguments);"," },",""," br: function() {"," this.b.apply(this, arguments);"," this.r.apply(this, arguments);"," },",""," tl: function() {"," this.t.apply(this, arguments);"," this.l.apply(this, arguments);"," }"," },",""," capitalize: capitalize","});","","Y.Resize = Y.extend("," Resize,"," Y.Base,"," {"," /**"," * Array containing all possible resizable handles."," *"," * @property ALL_HANDLES"," * @type {String}"," */"," ALL_HANDLES: [ T, TR, R, BR, B, BL, L, TL ],",""," /**"," * Regex which matches with the handles that could change the height of"," * the resizable element."," *"," * @property REGEX_CHANGE_HEIGHT"," * @type {String}"," */"," REGEX_CHANGE_HEIGHT: /^(t|tr|b|bl|br|tl)$/i,",""," /**"," * Regex which matches with the handles that could change the left of"," * the resizable element."," *"," * @property REGEX_CHANGE_LEFT"," * @type {String}"," */"," REGEX_CHANGE_LEFT: /^(tl|l|bl)$/i,",""," /**"," * Regex which matches with the handles that could change the top of"," * the resizable element."," *"," * @property REGEX_CHANGE_TOP"," * @type {String}"," */"," REGEX_CHANGE_TOP: /^(tl|t|tr)$/i,",""," /**"," * Regex which matches with the handles that could change the width of"," * the resizable element."," *"," * @property REGEX_CHANGE_WIDTH"," * @type {String}"," */"," REGEX_CHANGE_WIDTH: /^(bl|br|l|r|tl|tr)$/i,",""," /**"," * Template used to create the resize wrapper for the handles."," *"," * @property HANDLES_WRAP_TEMPLATE"," * @type {String}"," */"," HANDLES_WRAP_TEMPLATE: '<div class=\"'+CSS_RESIZE_HANDLES_WRAPPER+'\"></div>',",""," /**"," * Template used to create the resize wrapper node when needed."," *"," * @property WRAP_TEMPLATE"," * @type {String}"," */"," WRAP_TEMPLATE: '<div class=\"'+CSS_RESIZE_WRAPPER+'\"></div>',",""," /**"," * Template used to create each resize handle."," *"," * @property HANDLE_TEMPLATE"," * @type {String}"," */"," HANDLE_TEMPLATE: '<div class=\"'+concat(CSS_RESIZE_HANDLE, CSS_RESIZE_HANDLE_PLACEHOLDER)+'\">' +"," '<div class=\"'+concat(CSS_RESIZE_HANDLE_INNER, CSS_RESIZE_HANDLE_INNER_PLACEHOLDER)+'\"> </div>' +"," '</div>',","",""," /**"," * Each box has a content area and optional surrounding padding and"," * border areas. This property stores the sum of all horizontal"," * surrounding * information needed to adjust the node height."," *"," * @property totalHSurrounding"," * @default 0"," * @type number"," */"," totalHSurrounding: 0,",""," /**"," * Each box has a content area and optional surrounding padding and"," * border areas. This property stores the sum of all vertical"," * surrounding * information needed to adjust the node height."," *"," * @property totalVSurrounding"," * @default 0"," * @type number"," */"," totalVSurrounding: 0,",""," /**"," * Stores the <a href=\"Resize.html#attr_node\">node</a>"," * surrounding information retrieved from"," * <a href=\"Resize.html#method__getBoxSurroundingInfo\">_getBoxSurroundingInfo</a>."," *"," * @property nodeSurrounding"," * @type Object"," * @default null"," */"," nodeSurrounding: null,",""," /**"," * Stores the <a href=\"Resize.html#attr_wrapper\">wrapper</a>"," * surrounding information retrieved from"," * <a href=\"Resize.html#method__getBoxSurroundingInfo\">_getBoxSurroundingInfo</a>."," *"," * @property wrapperSurrounding"," * @type Object"," * @default null"," */"," wrapperSurrounding: null,",""," /**"," * Whether the handle being dragged can change the height."," *"," * @property changeHeightHandles"," * @default false"," * @type boolean"," */"," changeHeightHandles: false,",""," /**"," * Whether the handle being dragged can change the left."," *"," * @property changeLeftHandles"," * @default false"," * @type boolean"," */"," changeLeftHandles: false,",""," /**"," * Whether the handle being dragged can change the top."," *"," * @property changeTopHandles"," * @default false"," * @type boolean"," */"," changeTopHandles: false,",""," /**"," * Whether the handle being dragged can change the width."," *"," * @property changeWidthHandles"," * @default false"," * @type boolean"," */"," changeWidthHandles: false,",""," /**"," * Store DD.Delegate reference for the respective Resize instance."," *"," * @property delegate"," * @default null"," * @type Object"," */"," delegate: null,",""," /**"," * Stores the current values for the height, width, top and left. You are"," * able to manipulate these values on resize in order to change the resize"," * behavior."," *"," * @property info"," * @type Object"," * @protected"," */"," info: null,",""," /**"," * Stores the last values for the height, width, top and left."," *"," * @property lastInfo"," * @type Object"," * @protected"," */"," lastInfo: null,",""," /**"," * Stores the original values for the height, width, top and left, stored"," * on resize start."," *"," * @property originalInfo"," * @type Object"," * @protected"," */"," originalInfo: null,",""," /**"," * Construction logic executed during Resize instantiation. Lifecycle."," *"," * @method initializer"," * @protected"," */"," initializer: function() {"," this._eventHandles = [];",""," this.renderer();"," },",""," /**"," * Create the DOM structure for the Resize. Lifecycle."," *"," * @method renderUI"," * @protected"," */"," renderUI: function() {"," var instance = this;",""," instance._renderHandles();"," },",""," /**"," * Bind the events on the Resize UI. Lifecycle."," *"," * @method bindUI"," * @protected"," */"," bindUI: function() {"," var instance = this;",""," instance._createEvents();"," instance._bindDD();"," instance._bindHandle();"," },",""," /**"," * Sync the Resize UI."," *"," * @method syncUI"," * @protected"," */"," syncUI: function() {"," var instance = this;",""," this.get(NODE).addClass(CSS_RESIZE);",""," // hide handles if AUTO_HIDE is true"," instance._setHideHandlesUI("," instance.get(AUTO_HIDE)"," );"," },",""," /**"," * Destructor lifecycle implementation for the Resize class."," * Detaches all previously attached listeners and removes the Resize handles."," *"," * @method destructor"," * @protected"," */"," destructor: function() {"," var instance = this,"," node = instance.get(NODE),"," wrapper = instance.get(WRAPPER),"," pNode = wrapper.get(PARENT_NODE);",""," Y.each("," instance._eventHandles,"," function(handle) {"," handle.detach();"," }"," );",""," instance._eventHandles.length = 0;",""," // destroy handles dd and remove them from the dom"," instance.eachHandle(function(handleEl) {"," instance.delegate.dd.destroy();",""," // remove handle"," handleEl.remove(true);"," });",""," instance.delegate.destroy();",""," // unwrap node"," if (instance.get(WRAP)) {"," instance._copyStyles(wrapper, node);",""," if (pNode) {"," pNode.insertBefore(node, wrapper);"," }",""," wrapper.remove(true);"," }",""," node.removeClass(CSS_RESIZE);"," node.removeClass(CSS_RESIZE_HIDDEN_HANDLES);"," },",""," /**"," * Creates DOM (or manipulates DOM for progressive enhancement)"," * This method is invoked by initializer(). It's chained automatically for"," * subclasses if required."," *"," * @method renderer"," * @protected"," */"," renderer: function() {"," this.renderUI();"," this.bindUI();"," this.syncUI();"," },",""," /**"," * <p>Loop through each handle which is being used and executes a callback.</p>"," * <p>Example:</p>"," * <pre><code>instance.eachHandle("," * function(handleName, index) { ... }"," * );</code></pre>"," *"," * @method eachHandle"," * @param {function} fn Callback function to be executed for each handle."," */"," eachHandle: function(fn) {"," var instance = this;",""," Y.each("," instance.get(HANDLES),"," function(handle, i) {"," var handleEl = instance.get("," handleAttrName(handle)"," );",""," fn.apply(instance, [handleEl, handle, i]);"," }"," );"," },",""," /**"," * Bind the handles DragDrop events to the Resize instance."," *"," * @method _bindDD"," * @private"," */"," _bindDD: function() {"," var instance = this;",""," instance.delegate = new Y.DD.Delegate("," {"," bubbleTargets: instance,"," container: instance.get(HANDLES_WRAPPER),"," dragConfig: {"," clickPixelThresh: 0,"," clickTimeThresh: 0,"," useShim: true,"," move: false"," },"," nodes: DOT+CSS_RESIZE_HANDLE,"," target: false"," }"," );",""," instance._eventHandles.push("," instance.on('drag:drag', instance._handleResizeEvent),"," instance.on('drag:dropmiss', instance._handleMouseUpEvent),"," instance.on('drag:end', instance._handleResizeEndEvent),"," instance.on('drag:start', instance._handleResizeStartEvent)"," );"," },",""," /**"," * Bind the events related to the handles (_onHandleMouseEnter, _onHandleMouseLeave)."," *"," * @method _bindHandle"," * @private"," */"," _bindHandle: function() {"," var instance = this,"," wrapper = instance.get(WRAPPER);",""," instance._eventHandles.push("," wrapper.on('mouseenter', Y.bind(instance._onWrapperMouseEnter, instance)),"," wrapper.on('mouseleave', Y.bind(instance._onWrapperMouseLeave, instance)),"," wrapper.delegate('mouseenter', Y.bind(instance._onHandleMouseEnter, instance), DOT+CSS_RESIZE_HANDLE),"," wrapper.delegate('mouseleave', Y.bind(instance._onHandleMouseLeave, instance), DOT+CSS_RESIZE_HANDLE)"," );"," },",""," /**"," * Create the custom events used on the Resize."," *"," * @method _createEvents"," * @private"," */"," _createEvents: function() {"," var instance = this,"," // create publish function for kweight optimization"," publish = function(name, fn) {"," instance.publish(name, {"," defaultFn: fn,"," queuable: false,"," emitFacade: true,"," bubbles: true,"," prefix: RESIZE"," });"," };",""," /**"," * Handles the resize start event. Fired when a handle starts to be"," * dragged."," *"," * @event resize:start"," * @preventable _defResizeStartFn"," * @param {Event.Facade} event The resize start event."," * @bubbles Resize"," * @type {Event.Custom}"," */"," publish(EV_RESIZE_START, this._defResizeStartFn);",""," /**"," * Handles the resize event. Fired on each pixel when the handle is"," * being dragged."," *"," * @event resize:resize"," * @preventable _defResizeFn"," * @param {Event.Facade} event The resize event."," * @bubbles Resize"," * @type {Event.Custom}"," */"," publish(EV_RESIZE, this._defResizeFn);",""," /**"," * Handles the resize align event."," *"," * @event resize:align"," * @preventable _defResizeAlignFn"," * @param {Event.Facade} event The resize align event."," * @bubbles Resize"," * @type {Event.Custom}"," */"," publish(EV_RESIZE_ALIGN, this._defResizeAlignFn);",""," /**"," * Handles the resize end event. Fired when a handle stop to be"," * dragged."," *"," * @event resize:end"," * @preventable _defResizeEndFn"," * @param {Event.Facade} event The resize end event."," * @bubbles Resize"," * @type {Event.Custom}"," */"," publish(EV_RESIZE_END, this._defResizeEndFn);",""," /**"," * Handles the resize mouseUp event. Fired when a mouseUp event happens on a"," * handle."," *"," * @event resize:mouseUp"," * @preventable _defMouseUpFn"," * @param {Event.Facade} event The resize mouseUp event."," * @bubbles Resize"," * @type {Event.Custom}"," */"," publish(EV_MOUSE_UP, this._defMouseUpFn);"," },",""," /**"," * Responsible for loop each handle element and append to the wrapper."," *"," * @method _renderHandles"," * @protected"," */"," _renderHandles: function() {"," var instance = this,"," wrapper = instance.get(WRAPPER),"," handlesWrapper = instance.get(HANDLES_WRAPPER);",""," instance.eachHandle(function(handleEl) {"," handlesWrapper.append(handleEl);"," });",""," wrapper.append(handlesWrapper);"," },",""," /**"," * Creates the handle element based on the handle name and initialize the"," * DragDrop on it."," *"," * @method _buildHandle"," * @param {String} handle Handle name ('t', 'tr', 'b', ...)."," * @protected"," */"," _buildHandle: function(handle) {"," var instance = this;",""," return Y.Node.create("," Y.Lang.sub(instance.HANDLE_TEMPLATE, {"," handle: handle"," })"," );"," },",""," /**"," * Basic resize calculations."," *"," * @method _calcResize"," * @protected"," */"," _calcResize: function() {"," var instance = this,"," handle = instance.handle,"," info = instance.info,"," originalInfo = instance.originalInfo,",""," dx = info.actXY[0] - originalInfo.actXY[0],"," dy = info.actXY[1] - originalInfo.actXY[1];",""," if (handle && Y.Resize.RULES[handle]) {"," Y.Resize.RULES[handle](instance, dx, dy);"," }"," else {"," }"," },",""," /**"," * Helper method to update the current size value on"," * <a href=\"Resize.html#property_info\">info</a> to respect the"," * min/max values and fix the top/left calculations."," *"," * @method _checkSize"," * @param {String} offset 'offsetHeight' or 'offsetWidth'"," * @param {number} size Size to restrict the offset"," * @protected"," */"," _checkSize: function(offset, size) {"," var instance = this,"," info = instance.info,"," originalInfo = instance.originalInfo,"," axis = (offset === OFFSET_HEIGHT) ? TOP : LEFT;",""," // forcing the offsetHeight/offsetWidth to be the passed size"," info[offset] = size;",""," // predicting, based on the original information, the last left valid in case of reach the min/max dimension"," // this calculation avoid browser event leaks when user interact very fast"," if (((axis === LEFT) && instance.changeLeftHandles) ||"," ((axis === TOP) && instance.changeTopHandles)) {",""," info[axis] = originalInfo[axis] + originalInfo[offset] - size;"," }"," },",""," /**"," * Copy relevant styles of the <a href=\"Resize.html#attr_node\">node</a>"," * to the <a href=\"Resize.html#attr_wrapper\">wrapper</a>."," *"," * @method _copyStyles"," * @param {Node} node Node from."," * @param {Node} wrapper Node to."," * @protected"," */"," _copyStyles: function(node, wrapper) {"," var position = node.getStyle(POSITION).toLowerCase(),"," surrounding = this._getBoxSurroundingInfo(node),"," wrapperStyle;",""," // resizable wrapper should be positioned"," if (position === STATIC) {"," position = RELATIVE;"," }",""," wrapperStyle = {"," position: position,"," left: getCompStyle(node, LEFT),"," top: getCompStyle(node, TOP)"," };",""," Y.mix(wrapperStyle, surrounding.margin);"," Y.mix(wrapperStyle, surrounding.border);",""," wrapper.setStyles(wrapperStyle);",""," // remove margin and border from the internal node"," node.setStyles({ border: 0, margin: 0 });",""," wrapper.sizeTo("," node.get(OFFSET_WIDTH) + surrounding.totalHBorder,"," node.get(OFFSET_HEIGHT) + surrounding.totalVBorder"," );"," },",""," // extract handle name from a string"," // using Y.cached to memoize the function for performance"," _extractHandleName: Y.cached("," function(node) {"," var className = node.get(CLASS_NAME),",""," match = className.match("," new RegExp("," getCN(RESIZE, HANDLE, '(\\\\w{1,2})\\\\b')"," )"," );",""," return match ? match[1] : null;"," }"," ),",""," /**"," * <p>Generates metadata to the <a href=\"Resize.html#property_info\">info</a>"," * and <a href=\"Resize.html#property_originalInfo\">originalInfo</a></p>"," * <pre><code>bottom, actXY, left, top, offsetHeight, offsetWidth, right</code></pre>"," *"," * @method _getInfo"," * @param {Node} node"," * @param {EventFacade} event"," * @private"," */"," _getInfo: function(node, event) {"," var actXY = [0,0],"," drag = event.dragEvent.target,"," nodeXY = node.getXY(),"," nodeX = nodeXY[0],"," nodeY = nodeXY[1],"," offsetHeight = node.get(OFFSET_HEIGHT),"," offsetWidth = node.get(OFFSET_WIDTH);",""," if (event) {"," // the xy that the node will be set to. Changing this will alter the position as it's dragged."," actXY = (drag.actXY.length ? drag.actXY : drag.lastXY);"," }",""," return {"," actXY: actXY,"," bottom: (nodeY + offsetHeight),"," left: nodeX,"," offsetHeight: offsetHeight,"," offsetWidth: offsetWidth,"," right: (nodeX + offsetWidth),"," top: nodeY"," };"," },",""," /**"," * Each box has a content area and optional surrounding margin,"," * padding and * border areas. This method get all this information from"," * the passed node. For more reference see"," * <a href=\"http://www.w3.org/TR/CSS21/box.html#box-dimensions\">"," * http://www.w3.org/TR/CSS21/box.html#box-dimensions</a>."," *"," * @method _getBoxSurroundingInfo"," * @param {Node} node"," * @private"," * @return {Object}"," */"," _getBoxSurroundingInfo: function(node) {"," var info = {"," padding: {},"," margin: {},"," border: {}"," };",""," if (isNode(node)) {"," Y.each([ TOP, RIGHT, BOTTOM, LEFT ], function(dir) {"," var paddingProperty = capitalize(PADDING, dir),"," marginProperty = capitalize(MARGIN, dir),"," borderWidthProperty = capitalize(BORDER, dir, WIDTH),"," borderColorProperty = capitalize(BORDER, dir, COLOR),"," borderStyleProperty = capitalize(BORDER, dir, STYLE);",""," info.border[borderColorProperty] = getCompStyle(node, borderColorProperty);"," info.border[borderStyleProperty] = getCompStyle(node, borderStyleProperty);"," info.border[borderWidthProperty] = getCompStyle(node, borderWidthProperty);"," info.margin[marginProperty] = getCompStyle(node, marginProperty);"," info.padding[paddingProperty] = getCompStyle(node, paddingProperty);"," });"," }",""," info.totalHBorder = (toRoundNumber(info.border.borderLeftWidth) + toRoundNumber(info.border.borderRightWidth));"," info.totalHPadding = (toRoundNumber(info.padding.paddingLeft) + toRoundNumber(info.padding.paddingRight));"," info.totalVBorder = (toRoundNumber(info.border.borderBottomWidth) + toRoundNumber(info.border.borderTopWidth));"," info.totalVPadding = (toRoundNumber(info.padding.paddingBottom) + toRoundNumber(info.padding.paddingTop));",""," return info;"," },",""," /**"," * Sync the Resize UI with internal values from"," * <a href=\"Resize.html#property_info\">info</a>."," *"," * @method _syncUI"," * @protected"," */"," _syncUI: function() {"," var instance = this,"," info = instance.info,"," wrapperSurrounding = instance.wrapperSurrounding,"," wrapper = instance.get(WRAPPER),"," node = instance.get(NODE);",""," wrapper.sizeTo(info.offsetWidth, info.offsetHeight);",""," if (instance.changeLeftHandles || instance.changeTopHandles) {"," wrapper.setXY([info.left, info.top]);"," }",""," // if a wrap node is being used"," if (!wrapper.compareTo(node)) {"," // the original internal node borders were copied to the wrapper on"," // _copyStyles, to compensate that subtract the borders from the internal node"," node.sizeTo("," info.offsetWidth - wrapperSurrounding.totalHBorder,"," info.offsetHeight - wrapperSurrounding.totalVBorder"," );"," }",""," // prevent webkit textarea resize"," if (Y.UA.webkit) {"," node.setStyle(RESIZE, NONE);"," }"," },",""," /**"," * Update <code>instance.changeHeightHandles,"," * instance.changeLeftHandles, instance.changeTopHandles,"," * instance.changeWidthHandles</code> information."," *"," * @method _updateChangeHandleInfo"," * @private"," */"," _updateChangeHandleInfo: function(handle) {"," var instance = this;",""," instance.changeHeightHandles = instance.REGEX_CHANGE_HEIGHT.test(handle);"," instance.changeLeftHandles = instance.REGEX_CHANGE_LEFT.test(handle);"," instance.changeTopHandles = instance.REGEX_CHANGE_TOP.test(handle);"," instance.changeWidthHandles = instance.REGEX_CHANGE_WIDTH.test(handle);"," },",""," /**"," * Update <a href=\"Resize.html#property_info\">info</a> values (bottom, actXY, left, top, offsetHeight, offsetWidth, right)."," *"," * @method _updateInfo"," * @private"," */"," _updateInfo: function(event) {"," var instance = this;",""," instance.info = instance._getInfo(instance.get(WRAPPER), event);"," },",""," /**"," * Update properties"," * <a href=\"Resize.html#property_nodeSurrounding\">nodeSurrounding</a>,"," * <a href=\"Resize.html#property_nodeSurrounding\">wrapperSurrounding</a>,"," * <a href=\"Resize.html#property_nodeSurrounding\">totalVSurrounding</a>,"," * <a href=\"Resize.html#property_nodeSurrounding\">totalHSurrounding</a>."," *"," * @method _updateSurroundingInfo"," * @private"," */"," _updateSurroundingInfo: function() {"," var instance = this,"," node = instance.get(NODE),"," wrapper = instance.get(WRAPPER),"," nodeSurrounding = instance._getBoxSurroundingInfo(node),"," wrapperSurrounding = instance._getBoxSurroundingInfo(wrapper);",""," instance.nodeSurrounding = nodeSurrounding;"," instance.wrapperSurrounding = wrapperSurrounding;",""," instance.totalVSurrounding = (nodeSurrounding.totalVPadding + wrapperSurrounding.totalVBorder);"," instance.totalHSurrounding = (nodeSurrounding.totalHPadding + wrapperSurrounding.totalHBorder);"," },",""," /**"," * Set the active state of the handles."," *"," * @method _setActiveHandlesUI"," * @param {boolean} val True to activate the handles, false to deactivate."," * @protected"," */"," _setActiveHandlesUI: function(val) {"," var instance = this,"," activeHandleNode = instance.get(ACTIVE_HANDLE_NODE);",""," if (activeHandleNode) {"," if (val) {"," // remove CSS_RESIZE_HANDLE_ACTIVE from all handles before addClass on the active"," instance.eachHandle("," function(handleEl) {"," handleEl.removeClass(CSS_RESIZE_HANDLE_ACTIVE);"," }"," );",""," activeHandleNode.addClass(CSS_RESIZE_HANDLE_ACTIVE);"," }"," else {"," activeHandleNode.removeClass(CSS_RESIZE_HANDLE_ACTIVE);"," }"," }"," },",""," /**"," * Setter for the handles attribute"," *"," * @method _setHandles"," * @protected"," * @param {String} val"," */"," _setHandles: function(val) {"," var instance = this,"," handles = [];",""," // handles attr accepts both array or string"," if (isArray(val)) {"," handles = val;"," }"," else if (isString(val)) {"," // if the handles attr passed in is an ALL string..."," if (val.toLowerCase() === ALL) {"," handles = instance.ALL_HANDLES;"," }"," // otherwise, split the string to extract the handles"," else {"," Y.each("," val.split(COMMA),"," function(node) {"," var handle = trim(node);",""," // if its a valid handle, add it to the handles output"," if (indexOf(instance.ALL_HANDLES, handle) > -1) {"," handles.push(handle);"," }"," }"," );"," }"," }",""," return handles;"," },",""," /**"," * Set the visibility of the handles."," *"," * @method _setHideHandlesUI"," * @param {boolean} val True to hide the handles, false to show."," * @protected"," */"," _setHideHandlesUI: function(val) {"," var instance = this,"," wrapper = instance.get(WRAPPER);",""," if (!instance.get(RESIZING)) {"," if (val) {"," wrapper.addClass(CSS_RESIZE_HIDDEN_HANDLES);"," }"," else {"," wrapper.removeClass(CSS_RESIZE_HIDDEN_HANDLES);"," }"," }"," },",""," /**"," * Setter for the wrap attribute"," *"," * @method _setWrap"," * @protected"," * @param {boolean} val"," */"," _setWrap: function(val) {"," var instance = this,"," node = instance.get(NODE),"," nodeName = node.get(NODE_NAME),"," typeRegex = instance.get(WRAP_TYPES);",""," // if nodeName is listed on WRAP_TYPES force use the wrapper"," if (typeRegex.test(nodeName)) {"," val = true;"," }",""," return val;"," },",""," /**"," * Default resize:mouseUp handler"," *"," * @method _defMouseUpFn"," * @param {EventFacade} event The Event object"," * @protected"," */"," _defMouseUpFn: function() {"," var instance = this;",""," instance.set(RESIZING, false);"," },",""," /**"," * Default resize:resize handler"," *"," * @method _defResizeFn"," * @param {EventFacade} event The Event object"," * @protected"," */"," _defResizeFn: function(event) {"," var instance = this;",""," instance._resize(event);"," },",""," /**"," * Logic method for _defResizeFn. Allow AOP."," *"," * @method _resize"," * @param {EventFacade} event The Event object"," * @protected"," */"," _resize: function(event) {"," var instance = this;",""," instance._handleResizeAlignEvent(event.dragEvent);",""," // _syncUI of the wrapper, not using proxy"," instance._syncUI();"," },",""," /**"," * Default resize:align handler"," *"," * @method _defResizeAlignFn"," * @param {EventFacade} event The Event object"," * @protected"," */"," _defResizeAlignFn: function(event) {"," var instance = this;",""," instance._resizeAlign(event);"," },",""," /**"," * Logic method for _defResizeAlignFn. Allow AOP."," *"," * @method _resizeAlign"," * @param {EventFacade} event The Event object"," * @protected"," */"," _resizeAlign: function(event) {"," var instance = this,"," info,"," defMinHeight,"," defMinWidth;",""," instance.lastInfo = instance.info;",""," // update the instance.info values"," instance._updateInfo(event);",""," info = instance.info;",""," // basic resize calculations"," instance._calcResize();",""," // if Y.Plugin.ResizeConstrained is not plugged, check for min dimension"," if (!instance.con) {"," defMinHeight = (instance.get(DEF_MIN_HEIGHT) + instance.totalVSurrounding);"," defMinWidth = (instance.get(DEF_MIN_WIDTH) + instance.totalHSurrounding);",""," if (info.offsetHeight <= defMinHeight) {"," instance._checkSize(OFFSET_HEIGHT, defMinHeight);"," }",""," if (info.offsetWidth <= defMinWidth) {"," instance._checkSize(OFFSET_WIDTH, defMinWidth);"," }"," }"," },",""," /**"," * Default resize:end handler"," *"," * @method _defResizeEndFn"," * @param {EventFacade} event The Event object"," * @protected"," */"," _defResizeEndFn: function(event) {"," var instance = this;",""," instance._resizeEnd(event);"," },",""," /**"," * Logic method for _defResizeEndFn. Allow AOP."," *"," * @method _resizeEnd"," * @param {EventFacade} event The Event object"," * @protected"," */"," _resizeEnd: function(event) {"," var instance = this,"," drag = event.dragEvent.target;",""," // reseting actXY from drag when drag end"," drag.actXY = [];",""," // syncUI when resize end"," instance._syncUI();",""," instance._setActiveHandlesUI(false);",""," instance.set(ACTIVE_HANDLE, null);"," instance.set(ACTIVE_HANDLE_NODE, null);",""," instance.handle = null;"," },",""," /**"," * Default resize:start handler"," *"," * @method _defResizeStartFn"," * @param {EventFacade} event The Event object"," * @protected"," */"," _defResizeStartFn: function(event) {"," var instance = this;",""," instance._resizeStart(event);"," },",""," /**"," * Logic method for _defResizeStartFn. Allow AOP."," *"," * @method _resizeStart"," * @param {EventFacade} event The Event object"," * @protected"," */"," _resizeStart: function(event) {"," var instance = this,"," wrapper = instance.get(WRAPPER);",""," instance.handle = instance.get(ACTIVE_HANDLE);",""," instance.set(RESIZING, true);",""," instance._updateSurroundingInfo();",""," // create an originalInfo information for reference"," instance.originalInfo = instance._getInfo(wrapper, event);",""," instance._updateInfo(event);"," },",""," /**"," * Fires the resize:mouseUp event."," *"," * @method _handleMouseUpEvent"," * @param {EventFacade} event resize:mouseUp event facade"," * @protected"," */"," _handleMouseUpEvent: function(event) {"," this.fire(EV_MOUSE_UP, { dragEvent: event, info: this.info });"," },",""," /**"," * Fires the resize:resize event."," *"," * @method _handleResizeEvent"," * @param {EventFacade} event resize:resize event facade"," * @protected"," */"," _handleResizeEvent: function(event) {"," this.fire(EV_RESIZE, { dragEvent: event, info: this.info });"," },",""," /**"," * Fires the resize:align event."," *"," * @method _handleResizeAlignEvent"," * @param {EventFacade} event resize:resize event facade"," * @protected"," */"," _handleResizeAlignEvent: function(event) {"," this.fire(EV_RESIZE_ALIGN, { dragEvent: event, info: this.info });"," },",""," /**"," * Fires the resize:end event."," *"," * @method _handleResizeEndEvent"," * @param {EventFacade} event resize:end event facade"," * @protected"," */"," _handleResizeEndEvent: function(event) {"," this.fire(EV_RESIZE_END, { dragEvent: event, info: this.info });"," },",""," /**"," * Fires the resize:start event."," *"," * @method _handleResizeStartEvent"," * @param {EventFacade} event resize:start event facade"," * @protected"," */"," _handleResizeStartEvent: function(event) {"," if (!this.get(ACTIVE_HANDLE)) {"," //This handles the \"touch\" case"," this._setHandleFromNode(event.target.get('node'));"," }"," this.fire(EV_RESIZE_START, { dragEvent: event, info: this.info });"," },",""," /**"," * Mouseenter event handler for the <a href=\"Resize.html#attr_wrapper\">wrapper</a>."," *"," * @method _onWrapperMouseEnter"," * @param {EventFacade} event"," * @protected"," */"," _onWrapperMouseEnter: function() {"," var instance = this;",""," if (instance.get(AUTO_HIDE)) {"," instance._setHideHandlesUI(false);"," }"," },",""," /**"," * Mouseleave event handler for the <a href=\"Resize.html#attr_wrapper\">wrapper</a>."," *"," * @method _onWrapperMouseLeave"," * @param {EventFacade} event"," * @protected"," */"," _onWrapperMouseLeave: function() {"," var instance = this;",""," if (instance.get(AUTO_HIDE)) {"," instance._setHideHandlesUI(true);"," }"," },",""," /**"," * Handles setting the activeHandle from a node, used from startDrag (for touch) and mouseenter (for mouse)."," *"," * @method _setHandleFromNode"," * @param {Node} node"," * @protected"," */"," _setHandleFromNode: function(node) {"," var instance = this,"," handle = instance._extractHandleName(node);",""," if (!instance.get(RESIZING)) {"," instance.set(ACTIVE_HANDLE, handle);"," instance.set(ACTIVE_HANDLE_NODE, node);",""," instance._setActiveHandlesUI(true);"," instance._updateChangeHandleInfo(handle);"," }"," },",""," /**"," * Mouseenter event handler for the handles."," *"," * @method _onHandleMouseEnter"," * @param {EventFacade} event"," * @protected"," */"," _onHandleMouseEnter: function(event) {"," this._setHandleFromNode(event.currentTarget);"," },",""," /**"," * Mouseout event handler for the handles."," *"," * @method _onHandleMouseLeave"," * @param {EventFacade} event"," * @protected"," */"," _onHandleMouseLeave: function() {"," var instance = this;",""," if (!instance.get(RESIZING)) {"," instance._setActiveHandlesUI(false);"," }"," },",""," /**"," * Default value for the wrapper handles node attribute"," *"," * @method _valueHandlesWrapper"," * @protected"," * @readOnly"," */"," _valueHandlesWrapper: function() {"," return Y.Node.create(this.HANDLES_WRAP_TEMPLATE);"," },",""," /**"," * Default value for the wrapper attribute"," *"," * @method _valueWrapper"," * @protected"," * @readOnly"," */"," _valueWrapper: function() {"," var instance = this,"," node = instance.get(NODE),"," pNode = node.get(PARENT_NODE),"," // by deafult the wrapper is always the node"," wrapper = node;",""," // if the node is listed on the wrapTypes or wrap is set to true, create another wrapper"," if (instance.get(WRAP)) {"," wrapper = Y.Node.create(instance.WRAP_TEMPLATE);",""," if (pNode) {"," pNode.insertBefore(wrapper, node);"," }",""," wrapper.append(node);",""," instance._copyStyles(node, wrapper);",""," // remove positioning of wrapped node, the WRAPPER take care about positioning"," node.setStyles({"," position: STATIC,"," left: 0,"," top: 0"," });"," }",""," return wrapper;"," }"," }",");","","Y.each(Y.Resize.prototype.ALL_HANDLES, function(handle) {"," // creating ATTRS with the handles elements"," Y.Resize.ATTRS[handleAttrName(handle)] = {"," setter: function() {"," return this._buildHandle(handle);"," },"," value: null,"," writeOnce: true"," };","});","","","}, '3.13.0', {\"requires\": [\"base\", \"widget\", \"event\", \"oop\", \"dd-drag\", \"dd-delegate\", \"dd-drop\"], \"skinnable\": true});","","}());"]};