叠加.js 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499
  1. ht.lib = ht.lib || {};
  2. if (!ht.lib['叠加']) {
  3. ht.lib['叠加'] = function (x, y, width, height, angle, localVarObj, localDynamicVar, nodename) {
  4. _ratio = GD.getRatioWithRotation(0, ratio);
  5. ht.lib['叠加'].superClass.constructor.apply(this);
  6. this.localVarObj = localVarObj;
  7. this.localDynamicVar = localDynamicVar;
  8. this.childNodes = [];
  9. this._styleObject = {};
  10. this._originWidth = 136*_ratio.ratioX;
  11. this._originHeight = 90*_ratio.ratioY;
  12. this._baseClass = "ht.lib.叠加";
  13. this._background = new ht.Node();
  14. this._background.setWidth(this._originWidth);
  15. this._background.setHeight(this._originHeight);
  16. this._background.setPosition(this._originWidth/2, this._originHeight/2);
  17. this._background.setImage({
  18. width: width,
  19. height: height,
  20. clip: true,
  21. comps: [
  22. {
  23. type: 'rect',
  24. background: 'rgba(0,255,0,0)',
  25. rect: [0,0,width, height]
  26. }
  27. ]
  28. });
  29. this._background.__parentLib = nodename;
  30. this._background.isLibBackground = true;
  31. this.childNodes.push(this._background);
  32. dataModel.add(this._background);
  33. /*@PageBackgroundInit@*/
  34. /*@PageBeforeInit@*/
  35. var Lib_叠加Node0_0;
  36. (function () {
  37. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  38. var ratioX, ratioY;
  39. if ('Default' === 'False') {
  40. ratioX = 1;
  41. ratioY = 1;
  42. } else if ('Default' === 'X') {
  43. ratioX = ratioY = _ratio.ratioX;
  44. } else if ('Default' === 'Y') {
  45. ratioX = ratioY = _ratio.ratioY;
  46. } else {
  47. ratioX = _ratio.ratioX;
  48. ratioY = _ratio.ratioY;
  49. }
  50. ht.Default.setImage('imgimage//fjjz_red_n0.png', PAGEROOTDIR + 'image//fjjz_red_n0.png');
  51. Lib_叠加Node0_0 = new ht.Node();
  52. Lib_叠加Node0_0.setPosition(66*ratio.ratioX, 43*ratio.ratioY);
  53. Lib_叠加Node0_0.setSize(133*ratioX, 86*ratioY);
  54. Lib_叠加Node0_0.setImage('imgimage//fjjz_red_n0.png');
  55. Lib_叠加Node0_0.setRotation(0*Math.PI/180);
  56. Lib_叠加Node0_0._zoomBy = 'Default';
  57. Lib_叠加Node0_0._nodeType = 'image';
  58. Lib_叠加Node0_0._disallowEvert = true;
  59. dataModel.add(Lib_叠加Node0_0);
  60. })();
  61. var Lib_叠加Node0_1;
  62. (function () {
  63. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  64. var ratioX, ratioY;
  65. if ('Default' === 'False') {
  66. ratioX = 1;
  67. ratioY = 1;
  68. } else if ('Default' === 'X') {
  69. ratioX = ratioY = _ratio.ratioX;
  70. } else if ('Default' === 'Y') {
  71. ratioX = ratioY = _ratio.ratioY;
  72. } else {
  73. ratioX = _ratio.ratioX;
  74. ratioY = _ratio.ratioY;
  75. }
  76. ht.Default.setImage('imgimage//page_zmt_fj_red0.png', PAGEROOTDIR + 'image//page_zmt_fj_red0.png');
  77. Lib_叠加Node0_1 = new ht.Node();
  78. Lib_叠加Node0_1.setPosition(66*ratio.ratioX, 32*ratio.ratioY);
  79. Lib_叠加Node0_1.setSize(44*ratioX, 63*ratioY);
  80. Lib_叠加Node0_1.setImage('imgimage//page_zmt_fj_red0.png');
  81. Lib_叠加Node0_1.setRotation(0*Math.PI/180);
  82. Lib_叠加Node0_1._zoomBy = 'Default';
  83. Lib_叠加Node0_1._nodeType = 'image';
  84. Lib_叠加Node0_1._disallowEvert = true;
  85. dataModel.add(Lib_叠加Node0_1);
  86. })();
  87. var Lib_叠加Node1_0;
  88. (function () {
  89. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  90. var ratioX, ratioY;
  91. if ('Default' === 'False') {
  92. ratioX = 1;
  93. ratioY = 1;
  94. } else if ('Default' === 'X') {
  95. ratioX = ratioY = _ratio.ratioX;
  96. } else if ('Default' === 'Y') {
  97. ratioX = ratioY = _ratio.ratioY;
  98. } else {
  99. ratioX = _ratio.ratioX;
  100. ratioY = _ratio.ratioY;
  101. }
  102. ht.Default.setImage('imgimage//fjjz_orange_n0.png', PAGEROOTDIR + 'image//fjjz_orange_n0.png');
  103. Lib_叠加Node1_0 = new ht.Node();
  104. Lib_叠加Node1_0.setPosition(66*ratio.ratioX, 43*ratio.ratioY);
  105. Lib_叠加Node1_0.setSize(133*ratioX, 86*ratioY);
  106. Lib_叠加Node1_0.setImage('imgimage//fjjz_orange_n0.png');
  107. Lib_叠加Node1_0.setRotation(0*Math.PI/180);
  108. Lib_叠加Node1_0._zoomBy = 'Default';
  109. Lib_叠加Node1_0._nodeType = 'image';
  110. Lib_叠加Node1_0._disallowEvert = true;
  111. dataModel.add(Lib_叠加Node1_0);
  112. })();
  113. var Lib_叠加Node1_1;
  114. (function () {
  115. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  116. var ratioX, ratioY;
  117. if ('Default' === 'False') {
  118. ratioX = 1;
  119. ratioY = 1;
  120. } else if ('Default' === 'X') {
  121. ratioX = ratioY = _ratio.ratioX;
  122. } else if ('Default' === 'Y') {
  123. ratioX = ratioY = _ratio.ratioY;
  124. } else {
  125. ratioX = _ratio.ratioX;
  126. ratioY = _ratio.ratioY;
  127. }
  128. ht.Default.setImage('imgimage//page_zmt_fj_orange0.png', PAGEROOTDIR + 'image//page_zmt_fj_orange0.png');
  129. Lib_叠加Node1_1 = new ht.Node();
  130. Lib_叠加Node1_1.setPosition(66*ratio.ratioX, 32*ratio.ratioY);
  131. Lib_叠加Node1_1.setSize(44*ratioX, 63*ratioY);
  132. Lib_叠加Node1_1.setImage('imgimage//page_zmt_fj_orange0.png');
  133. Lib_叠加Node1_1.setRotation(0*Math.PI/180);
  134. Lib_叠加Node1_1._zoomBy = 'Default';
  135. Lib_叠加Node1_1._nodeType = 'image';
  136. Lib_叠加Node1_1._disallowEvert = true;
  137. dataModel.add(Lib_叠加Node1_1);
  138. })();
  139. var Lib_叠加Node2_0;
  140. (function () {
  141. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  142. var ratioX, ratioY;
  143. if ('Default' === 'False') {
  144. ratioX = 1;
  145. ratioY = 1;
  146. } else if ('Default' === 'X') {
  147. ratioX = ratioY = _ratio.ratioX;
  148. } else if ('Default' === 'Y') {
  149. ratioX = ratioY = _ratio.ratioY;
  150. } else {
  151. ratioX = _ratio.ratioX;
  152. ratioY = _ratio.ratioY;
  153. }
  154. ht.Default.setImage('imgimage//fjjz_green_n0.png', PAGEROOTDIR + 'image//fjjz_green_n0.png');
  155. Lib_叠加Node2_0 = new ht.Node();
  156. Lib_叠加Node2_0.setPosition(66*ratio.ratioX, 43*ratio.ratioY);
  157. Lib_叠加Node2_0.setSize(133*ratioX, 86*ratioY);
  158. Lib_叠加Node2_0.setImage('imgimage//fjjz_green_n0.png');
  159. Lib_叠加Node2_0.setRotation(0*Math.PI/180);
  160. Lib_叠加Node2_0._zoomBy = 'Default';
  161. Lib_叠加Node2_0._nodeType = 'image';
  162. Lib_叠加Node2_0._disallowEvert = true;
  163. dataModel.add(Lib_叠加Node2_0);
  164. })();
  165. var Lib_叠加Node2_1;
  166. (function () {
  167. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  168. var ratioX, ratioY;
  169. if ('Default' === 'False') {
  170. ratioX = 1;
  171. ratioY = 1;
  172. } else if ('Default' === 'X') {
  173. ratioX = ratioY = _ratio.ratioX;
  174. } else if ('Default' === 'Y') {
  175. ratioX = ratioY = _ratio.ratioY;
  176. } else {
  177. ratioX = _ratio.ratioX;
  178. ratioY = _ratio.ratioY;
  179. }
  180. ht.Default.setImage('imgimage//page_zmt_fj_green0.png', PAGEROOTDIR + 'image//page_zmt_fj_green0.png');
  181. Lib_叠加Node2_1 = new ht.Node();
  182. Lib_叠加Node2_1.setPosition(67*ratio.ratioX, 32*ratio.ratioY);
  183. Lib_叠加Node2_1.setSize(44*ratioX, 63*ratioY);
  184. Lib_叠加Node2_1.setImage('imgimage//page_zmt_fj_green0.png');
  185. Lib_叠加Node2_1.setRotation(0*Math.PI/180);
  186. Lib_叠加Node2_1._zoomBy = 'Default';
  187. Lib_叠加Node2_1._nodeType = 'image';
  188. Lib_叠加Node2_1._disallowEvert = true;
  189. dataModel.add(Lib_叠加Node2_1);
  190. })();
  191. var Lib_叠加Node3_0;
  192. (function () {
  193. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  194. var ratioX, ratioY;
  195. if ('Default' === 'False') {
  196. ratioX = 1;
  197. ratioY = 1;
  198. } else if ('Default' === 'X') {
  199. ratioX = ratioY = _ratio.ratioX;
  200. } else if ('Default' === 'Y') {
  201. ratioX = ratioY = _ratio.ratioY;
  202. } else {
  203. ratioX = _ratio.ratioX;
  204. ratioY = _ratio.ratioY;
  205. }
  206. ht.Default.setImage('imgimage//fjjz_pink_n0.png', PAGEROOTDIR + 'image//fjjz_pink_n0.png');
  207. Lib_叠加Node3_0 = new ht.Node();
  208. Lib_叠加Node3_0.setPosition(66*ratio.ratioX, 43*ratio.ratioY);
  209. Lib_叠加Node3_0.setSize(133*ratioX, 86*ratioY);
  210. Lib_叠加Node3_0.setImage('imgimage//fjjz_pink_n0.png');
  211. Lib_叠加Node3_0.setRotation(0*Math.PI/180);
  212. Lib_叠加Node3_0._zoomBy = 'Default';
  213. Lib_叠加Node3_0._nodeType = 'image';
  214. Lib_叠加Node3_0._disallowEvert = true;
  215. dataModel.add(Lib_叠加Node3_0);
  216. })();
  217. var Lib_叠加Node3_1;
  218. (function () {
  219. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  220. var ratioX, ratioY;
  221. if ('Default' === 'False') {
  222. ratioX = 1;
  223. ratioY = 1;
  224. } else if ('Default' === 'X') {
  225. ratioX = ratioY = _ratio.ratioX;
  226. } else if ('Default' === 'Y') {
  227. ratioX = ratioY = _ratio.ratioY;
  228. } else {
  229. ratioX = _ratio.ratioX;
  230. ratioY = _ratio.ratioY;
  231. }
  232. ht.Default.setImage('imgimage//page_zmt_fj_pink0.png', PAGEROOTDIR + 'image//page_zmt_fj_pink0.png');
  233. Lib_叠加Node3_1 = new ht.Node();
  234. Lib_叠加Node3_1.setPosition(66*ratio.ratioX, 32*ratio.ratioY);
  235. Lib_叠加Node3_1.setSize(44*ratioX, 63*ratioY);
  236. Lib_叠加Node3_1.setImage('imgimage//page_zmt_fj_pink0.png');
  237. Lib_叠加Node3_1.setRotation(0*Math.PI/180);
  238. Lib_叠加Node3_1._zoomBy = 'Default';
  239. Lib_叠加Node3_1._nodeType = 'image';
  240. Lib_叠加Node3_1._disallowEvert = true;
  241. dataModel.add(Lib_叠加Node3_1);
  242. })();
  243. var Lib_叠加Node4_0;
  244. (function () {
  245. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  246. var ratioX, ratioY;
  247. if ('Default' === 'False') {
  248. ratioX = 1;
  249. ratioY = 1;
  250. } else if ('Default' === 'X') {
  251. ratioX = ratioY = _ratio.ratioX;
  252. } else if ('Default' === 'Y') {
  253. ratioX = ratioY = _ratio.ratioY;
  254. } else {
  255. ratioX = _ratio.ratioX;
  256. ratioY = _ratio.ratioY;
  257. }
  258. ht.Default.setImage('imgimage//fjjz_black_n0.png', PAGEROOTDIR + 'image//fjjz_black_n0.png');
  259. Lib_叠加Node4_0 = new ht.Node();
  260. Lib_叠加Node4_0.setPosition(66*ratio.ratioX, 43*ratio.ratioY);
  261. Lib_叠加Node4_0.setSize(133*ratioX, 86*ratioY);
  262. Lib_叠加Node4_0.setImage('imgimage//fjjz_black_n0.png');
  263. Lib_叠加Node4_0.setRotation(0*Math.PI/180);
  264. Lib_叠加Node4_0._zoomBy = 'Default';
  265. Lib_叠加Node4_0._nodeType = 'image';
  266. Lib_叠加Node4_0._disallowEvert = true;
  267. dataModel.add(Lib_叠加Node4_0);
  268. })();
  269. var Lib_叠加Node4_1;
  270. (function () {
  271. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  272. var ratioX, ratioY;
  273. if ('Default' === 'False') {
  274. ratioX = 1;
  275. ratioY = 1;
  276. } else if ('Default' === 'X') {
  277. ratioX = ratioY = _ratio.ratioX;
  278. } else if ('Default' === 'Y') {
  279. ratioX = ratioY = _ratio.ratioY;
  280. } else {
  281. ratioX = _ratio.ratioX;
  282. ratioY = _ratio.ratioY;
  283. }
  284. ht.Default.setImage('imgimage//page_zmt_fj_gray0.png', PAGEROOTDIR + 'image//page_zmt_fj_gray0.png');
  285. Lib_叠加Node4_1 = new ht.Node();
  286. Lib_叠加Node4_1.setPosition(67*ratio.ratioX, 32*ratio.ratioY);
  287. Lib_叠加Node4_1.setSize(44*ratioX, 63*ratioY);
  288. Lib_叠加Node4_1.setImage('imgimage//page_zmt_fj_gray0.png');
  289. Lib_叠加Node4_1.setRotation(0*Math.PI/180);
  290. Lib_叠加Node4_1._zoomBy = 'Default';
  291. Lib_叠加Node4_1._nodeType = 'image';
  292. Lib_叠加Node4_1._disallowEvert = true;
  293. dataModel.add(Lib_叠加Node4_1);
  294. })();
  295. var Lib_叠加Node5_0;
  296. (function () {
  297. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  298. var ratioX, ratioY;
  299. if ('Default' === 'False') {
  300. ratioX = 1;
  301. ratioY = 1;
  302. } else if ('Default' === 'X') {
  303. ratioX = ratioY = _ratio.ratioX;
  304. } else if ('Default' === 'Y') {
  305. ratioX = ratioY = _ratio.ratioY;
  306. } else {
  307. ratioX = _ratio.ratioX;
  308. ratioY = _ratio.ratioY;
  309. }
  310. ht.Default.setImage('imgimage//fjjz_blue_n0.png', PAGEROOTDIR + 'image//fjjz_blue_n0.png');
  311. Lib_叠加Node5_0 = new ht.Node();
  312. Lib_叠加Node5_0.setPosition(66*ratio.ratioX, 45*ratio.ratioY);
  313. Lib_叠加Node5_0.setSize(133*ratioX, 86*ratioY);
  314. Lib_叠加Node5_0.setImage('imgimage//fjjz_blue_n0.png');
  315. Lib_叠加Node5_0.setRotation(0*Math.PI/180);
  316. Lib_叠加Node5_0._zoomBy = 'Default';
  317. Lib_叠加Node5_0._nodeType = 'image';
  318. Lib_叠加Node5_0._disallowEvert = true;
  319. dataModel.add(Lib_叠加Node5_0);
  320. })();
  321. var Lib_叠加Node5_1;
  322. (function () {
  323. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  324. var ratioX, ratioY;
  325. if ('Default' === 'False') {
  326. ratioX = 1;
  327. ratioY = 1;
  328. } else if ('Default' === 'X') {
  329. ratioX = ratioY = _ratio.ratioX;
  330. } else if ('Default' === 'Y') {
  331. ratioX = ratioY = _ratio.ratioY;
  332. } else {
  333. ratioX = _ratio.ratioX;
  334. ratioY = _ratio.ratioY;
  335. }
  336. ht.Default.setImage('imgimage//风机底座d0.png', PAGEROOTDIR + 'image//风机底座d0.png');
  337. Lib_叠加Node5_1 = new ht.Node();
  338. Lib_叠加Node5_1.setPosition(67*ratio.ratioX, 43*ratio.ratioY);
  339. Lib_叠加Node5_1.setSize(28*ratioX, 45*ratioY);
  340. Lib_叠加Node5_1.setImage('imgimage//风机底座d0.png');
  341. Lib_叠加Node5_1.setRotation(0*Math.PI/180);
  342. Lib_叠加Node5_1._zoomBy = 'Default';
  343. Lib_叠加Node5_1._nodeType = 'image';
  344. Lib_叠加Node5_1._disallowEvert = true;
  345. dataModel.add(Lib_叠加Node5_1);
  346. })();
  347. var Lib_叠加Node5_2;
  348. (function () {
  349. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  350. var ratioX, ratioY;
  351. if ('Default' === 'False') {
  352. ratioX = 1;
  353. ratioY = 1;
  354. } else if ('Default' === 'X') {
  355. ratioX = ratioY = _ratio.ratioX;
  356. } else if ('Default' === 'Y') {
  357. ratioX = ratioY = _ratio.ratioY;
  358. } else {
  359. ratioX = _ratio.ratioX;
  360. ratioY = _ratio.ratioY;
  361. }
  362. ht.Default.setImage('imgimage//风机叶片d0.png', PAGEROOTDIR + 'image//风机叶片d0.png');
  363. Lib_叠加Node5_2 = new ht.Node();
  364. Lib_叠加Node5_2.setPosition(67*ratio.ratioX, 28*ratio.ratioY);
  365. Lib_叠加Node5_2.setSize(56*ratioX, 56*ratioY);
  366. Lib_叠加Node5_2.setImage('imgimage//风机叶片d0.png');
  367. Lib_叠加Node5_2.setRotation(0*Math.PI/180);
  368. Lib_叠加Node5_2._zoomBy = 'Default';
  369. Lib_叠加Node5_2._nodeType = 'image';
  370. Lib_叠加Node5_2._disallowEvert = true;
  371. dataModel.add(Lib_叠加Node5_2);
  372. })();
  373. var Lib_叠加Node5_3;
  374. (function () {
  375. var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  376. var ratioX, ratioY;
  377. if ('Default' === 'False') {
  378. ratioX = 1;
  379. ratioY = 1;
  380. } else if ('Default' === 'X') {
  381. ratioX = ratioY = _ratio.ratioX;
  382. } else if ('Default' === 'Y') {
  383. ratioX = ratioY = _ratio.ratioY;
  384. } else {
  385. ratioX = _ratio.ratioX;
  386. ratioY = _ratio.ratioY;
  387. }
  388. ht.Default.setImage('imgimage//风机头d0.png', PAGEROOTDIR + 'image//风机头d0.png');
  389. Lib_叠加Node5_3 = new ht.Node();
  390. Lib_叠加Node5_3.setPosition(66*ratio.ratioX, 28*ratio.ratioY);
  391. Lib_叠加Node5_3.setSize(9*ratioX, 7*ratioY);
  392. Lib_叠加Node5_3.setImage('imgimage//风机头d0.png');
  393. Lib_叠加Node5_3.setRotation(0*Math.PI/180);
  394. Lib_叠加Node5_3._zoomBy = 'Default';
  395. Lib_叠加Node5_3._nodeType = 'image';
  396. Lib_叠加Node5_3._disallowEvert = true;
  397. dataModel.add(Lib_叠加Node5_3);
  398. })();
  399. _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  400. var Lib_叠加Node6_0 = new ht.Node();
  401. var Lib_叠加Node6_0textStart, Lib_叠加Node6_0textWidth, Lib_叠加Node6_0lineStart, Lib_叠加Node6_0align = 'left', Lib_叠加Node6_0fontSize = 15.99996*_ratio.ratioY,Lib_叠加Node6_0width = 50*_ratio.ratioX, Lib_叠加Node6_0height = 20*_ratio.ratioY;
  402. (function () {
  403. if (Lib_叠加Node6_0align === 'left') {
  404. Lib_叠加Node6_0textStart = Lib_叠加Node6_0fontSize * 0.2 > 2 ? Lib_叠加Node6_0fontSize * 0.2 - 4 : Lib_叠加Node6_0fontSize * 0.2 - 9;
  405. Lib_叠加Node6_0textWidth = Lib_叠加Node6_0width;
  406. Lib_叠加Node6_0lineStart = 1;
  407. } else if (Lib_叠加Node6_0align === 'right') {
  408. Lib_叠加Node6_0textStart = 0;
  409. Lib_叠加Node6_0textWidth =Lib_叠加Node6_0fontSize <= 8 ? Lib_叠加Node6_0width + Lib_叠加Node6_0fontSize * 0.2 + 6 : Lib_叠加Node6_0width - Lib_叠加Node6_0fontSize * 0.2;
  410. Lib_叠加Node6_0lineStart = (Lib_叠加Node6_0width - (ht.Default.getTextSize('A01', 'bold '+ Lib_叠加Node6_0fontSize + 'px "Arial"').width + 6)) * 0.5;
  411. } else if (Lib_叠加Node6_0align === 'center') {
  412. Lib_叠加Node6_0textStart = -3;
  413. Lib_叠加Node6_0textWidth = Lib_叠加Node6_0width;
  414. Lib_叠加Node6_0lineStart = Lib_叠加Node6_0width - ht.Default.getTextSize('A01', 'bold '+ Lib_叠加Node6_0fontSize + 'px "Arial"').width - 11;
  415. }
  416. })();
  417. Lib_叠加Node6_0.setImage(GD.getTextJSON(Lib_叠加Node6_0width, Lib_叠加Node6_0height, true, false, false, 'bold '+ Lib_叠加Node6_0fontSize + 'px "Arial"'))
  418. Lib_叠加Node6_0.setPosition(28*ratio.ratioX, 19*ratio.ratioY);
  419. Lib_叠加Node6_0.setWidth(Lib_叠加Node6_0width);
  420. Lib_叠加Node6_0.setHeight(Lib_叠加Node6_0height);
  421. Lib_叠加Node6_0._nodeType = 'text';
  422. Lib_叠加Node6_0._disallowEvert = true;
  423. Lib_叠加Node6_0.setRotation(0*Math.PI/180);
  424. Lib_叠加Node6_0.a('node.width', Lib_叠加Node6_0width);
  425. Lib_叠加Node6_0.a('node.height', Lib_叠加Node6_0height);
  426. Lib_叠加Node6_0.a('node.rect', [0, 0, Lib_叠加Node6_0width, Lib_叠加Node6_0height]);
  427. Lib_叠加Node6_0.a('node.bordercolor','rgba(0,0,0,1)');
  428. Lib_叠加Node6_0.a('node.borderwidth', 0);
  429. Lib_叠加Node6_0.a('node.background','' || 'rgba(0,0,0,0)');
  430. Lib_叠加Node6_0.a('node.gradient','');
  431. Lib_叠加Node6_0.a('node.gradientcolor','');
  432. Lib_叠加Node6_0.a('node.text','A01');
  433. Lib_叠加Node6_0.a('node.textalign','left');
  434. Lib_叠加Node6_0.a('node.textvAlign','middle');
  435. Lib_叠加Node6_0.a('node.textrect', [Lib_叠加Node6_0textStart, 0, Lib_叠加Node6_0textWidth, Lib_叠加Node6_0height]);
  436. Lib_叠加Node6_0.a('node.color','rgba(0,0,0,1)');
  437. Lib_叠加Node6_0.a('node.font','bold '+ Lib_叠加Node6_0fontSize + 'px "Arial"');
  438. Lib_叠加Node6_0.a('node.textvisible',true);
  439. Lib_叠加Node6_0.a('node.linefeed',false);
  440. if (false) {
  441. Lib_叠加Node6_0.a('node.textfunc',function(g) {
  442. g.beginPath();
  443. var str=Lib_叠加Node6_0.a('node.text') || 'A01';
  444. var color=Lib_叠加Node6_0.a('node.color') || 'rgba(0,0,0,1)';
  445. canvasTextAutoLine(str,0,15.99996*0.5*_ratio.ratioY,Lib_叠加Node6_0width,Lib_叠加Node6_0height,15.99996*_ratio.ratioY,"left",color,'bold '+ Lib_叠加Node6_0fontSize + 'px "Arial"', 0,g);
  446. });
  447. }
  448. if (false) {
  449. Lib_叠加Node6_0.a('node.underlinepoints',[Lib_叠加Node6_0lineStart, (20 - 15.99996) * 0.5 * _ratio.ratioY + Lib_叠加Node6_0fontSize + 2 , ht.Default.getTextSize('A01', 'bold '+ Lib_叠加Node6_0fontSize + 'px "Arial"').width + 6, (Lib_叠加Node6_0height - Lib_叠加Node6_0fontSize) * 0.5*_ratio.ratioY + Lib_叠加Node6_0fontSize + 2 ]);
  450. Lib_叠加Node6_0.a('node.underlinevisible',false);
  451. Lib_叠加Node6_0.a('node.underlineBorderWidth', 1);
  452. }
  453. dataModel.add(Lib_叠加Node6_0);
  454. zoomNodeList.push({
  455. node: Lib_叠加Node6_0,
  456. borderWidth: 0,
  457. attr: 'node.borderwidth'
  458. }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  459. var Lib_叠加Node6_1 = new ht.Node();
  460. var Lib_叠加Node6_1textStart, Lib_叠加Node6_1textWidth, Lib_叠加Node6_1lineStart, Lib_叠加Node6_1align = 'left', Lib_叠加Node6_1fontSize = 11.99997*_ratio.ratioY,Lib_叠加Node6_1width = 52*_ratio.ratioX, Lib_叠加Node6_1height = 16*_ratio.ratioY;
  461. (function () {
  462. if (Lib_叠加Node6_1align === 'left') {
  463. Lib_叠加Node6_1textStart = Lib_叠加Node6_1fontSize * 0.2 > 2 ? Lib_叠加Node6_1fontSize * 0.2 - 4 : Lib_叠加Node6_1fontSize * 0.2 - 9;
  464. Lib_叠加Node6_1textWidth = Lib_叠加Node6_1width;
  465. Lib_叠加Node6_1lineStart = 1;
  466. } else if (Lib_叠加Node6_1align === 'right') {
  467. Lib_叠加Node6_1textStart = 0;
  468. Lib_叠加Node6_1textWidth =Lib_叠加Node6_1fontSize <= 8 ? Lib_叠加Node6_1width + Lib_叠加Node6_1fontSize * 0.2 + 6 : Lib_叠加Node6_1width - Lib_叠加Node6_1fontSize * 0.2;
  469. Lib_叠加Node6_1lineStart = (Lib_叠加Node6_1width - (ht.Default.getTextSize('风速m/s', ' '+ Lib_叠加Node6_1fontSize + 'px "Arial"').width + 6)) * 0.5;
  470. } else if (Lib_叠加Node6_1align === 'center') {
  471. Lib_叠加Node6_1textStart = -3;
  472. Lib_叠加Node6_1textWidth = Lib_叠加Node6_1width;
  473. Lib_叠加Node6_1lineStart = Lib_叠加Node6_1width - ht.Default.getTextSize('风速m/s', ' '+ Lib_叠加Node6_1fontSize + 'px "Arial"').width - 11;
  474. }
  475. })();
  476. Lib_叠加Node6_1.setImage(GD.getTextJSON(Lib_叠加Node6_1width, Lib_叠加Node6_1height, true, false, false, ' '+ Lib_叠加Node6_1fontSize + 'px "Arial"'))
  477. Lib_叠加Node6_1.setPosition(26*ratio.ratioX, 61*ratio.ratioY);
  478. Lib_叠加Node6_1.setWidth(Lib_叠加Node6_1width);
  479. Lib_叠加Node6_1.setHeight(Lib_叠加Node6_1height);
  480. Lib_叠加Node6_1._nodeType = 'text';
  481. Lib_叠加Node6_1._disallowEvert = true;
  482. Lib_叠加Node6_1.setRotation(0*Math.PI/180);
  483. Lib_叠加Node6_1.a('node.width', Lib_叠加Node6_1width);
  484. Lib_叠加Node6_1.a('node.height', Lib_叠加Node6_1height);
  485. Lib_叠加Node6_1.a('node.rect', [0, 0, Lib_叠加Node6_1width, Lib_叠加Node6_1height]);
  486. Lib_叠加Node6_1.a('node.bordercolor','rgba(0,0,0,1)');
  487. Lib_叠加Node6_1.a('node.borderwidth', 0);
  488. Lib_叠加Node6_1.a('node.background','' || 'rgba(0,0,0,0)');
  489. Lib_叠加Node6_1.a('node.gradient','');
  490. Lib_叠加Node6_1.a('node.gradientcolor','');
  491. Lib_叠加Node6_1.a('node.text','风速m/s');
  492. Lib_叠加Node6_1.a('node.textalign','left');
  493. Lib_叠加Node6_1.a('node.textvAlign','middle');
  494. Lib_叠加Node6_1.a('node.textrect', [Lib_叠加Node6_1textStart, 0, Lib_叠加Node6_1textWidth, Lib_叠加Node6_1height]);
  495. Lib_叠加Node6_1.a('node.color','rgba(0,0,0,1)');
  496. Lib_叠加Node6_1.a('node.font',' '+ Lib_叠加Node6_1fontSize + 'px "Arial"');
  497. Lib_叠加Node6_1.a('node.textvisible',true);
  498. Lib_叠加Node6_1.a('node.linefeed',false);
  499. if (false) {
  500. Lib_叠加Node6_1.a('node.textfunc',function(g) {
  501. g.beginPath();
  502. var str=Lib_叠加Node6_1.a('node.text') || '风速m/s';
  503. var color=Lib_叠加Node6_1.a('node.color') || 'rgba(0,0,0,1)';
  504. canvasTextAutoLine(str,0,11.99997*0.5*_ratio.ratioY,Lib_叠加Node6_1width,Lib_叠加Node6_1height,11.99997*_ratio.ratioY,"left",color,' '+ Lib_叠加Node6_1fontSize + 'px "Arial"', 0,g);
  505. });
  506. }
  507. if (false) {
  508. Lib_叠加Node6_1.a('node.underlinepoints',[Lib_叠加Node6_1lineStart, (16 - 11.99997) * 0.5 * _ratio.ratioY + Lib_叠加Node6_1fontSize + 2 , ht.Default.getTextSize('风速m/s', ' '+ Lib_叠加Node6_1fontSize + 'px "Arial"').width + 6, (Lib_叠加Node6_1height - Lib_叠加Node6_1fontSize) * 0.5*_ratio.ratioY + Lib_叠加Node6_1fontSize + 2 ]);
  509. Lib_叠加Node6_1.a('node.underlinevisible',false);
  510. Lib_叠加Node6_1.a('node.underlineBorderWidth', 1);
  511. }
  512. dataModel.add(Lib_叠加Node6_1);
  513. zoomNodeList.push({
  514. node: Lib_叠加Node6_1,
  515. borderWidth: 0,
  516. attr: 'node.borderwidth'
  517. }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  518. var Lib_叠加Node6_2 = new ht.Node();
  519. var Lib_叠加Node6_2textStart, Lib_叠加Node6_2textWidth, Lib_叠加Node6_2lineStart, Lib_叠加Node6_2align = 'left', Lib_叠加Node6_2fontSize = 18.66662*_ratio.ratioY,Lib_叠加Node6_2width = 50*_ratio.ratioX, Lib_叠加Node6_2height = 21*_ratio.ratioY;
  520. (function () {
  521. if (Lib_叠加Node6_2align === 'left') {
  522. Lib_叠加Node6_2textStart = Lib_叠加Node6_2fontSize * 0.2 > 2 ? Lib_叠加Node6_2fontSize * 0.2 - 4 : Lib_叠加Node6_2fontSize * 0.2 - 9;
  523. Lib_叠加Node6_2textWidth = Lib_叠加Node6_2width;
  524. Lib_叠加Node6_2lineStart = 1;
  525. } else if (Lib_叠加Node6_2align === 'right') {
  526. Lib_叠加Node6_2textStart = 0;
  527. Lib_叠加Node6_2textWidth =Lib_叠加Node6_2fontSize <= 8 ? Lib_叠加Node6_2width + Lib_叠加Node6_2fontSize * 0.2 + 6 : Lib_叠加Node6_2width - Lib_叠加Node6_2fontSize * 0.2;
  528. Lib_叠加Node6_2lineStart = (Lib_叠加Node6_2width - (ht.Default.getTextSize('444', ' '+ Lib_叠加Node6_2fontSize + 'px "DS-Digital"').width + 6)) * 0.5;
  529. } else if (Lib_叠加Node6_2align === 'center') {
  530. Lib_叠加Node6_2textStart = -3;
  531. Lib_叠加Node6_2textWidth = Lib_叠加Node6_2width;
  532. Lib_叠加Node6_2lineStart = Lib_叠加Node6_2width - ht.Default.getTextSize('444', ' '+ Lib_叠加Node6_2fontSize + 'px "DS-Digital"').width - 11;
  533. }
  534. })();
  535. Lib_叠加Node6_2.setImage(GD.getTextJSON(Lib_叠加Node6_2width, Lib_叠加Node6_2height, true, false, false, ' '+ Lib_叠加Node6_2fontSize + 'px "DS-Digital"'))
  536. Lib_叠加Node6_2.setPosition(41*ratio.ratioX, 78*ratio.ratioY);
  537. Lib_叠加Node6_2.setWidth(Lib_叠加Node6_2width);
  538. Lib_叠加Node6_2.setHeight(Lib_叠加Node6_2height);
  539. Lib_叠加Node6_2._nodeType = 'text';
  540. Lib_叠加Node6_2._disallowEvert = true;
  541. Lib_叠加Node6_2.setRotation(0*Math.PI/180);
  542. Lib_叠加Node6_2.a('node.width', Lib_叠加Node6_2width);
  543. Lib_叠加Node6_2.a('node.height', Lib_叠加Node6_2height);
  544. Lib_叠加Node6_2.a('node.rect', [0, 0, Lib_叠加Node6_2width, Lib_叠加Node6_2height]);
  545. Lib_叠加Node6_2.a('node.bordercolor','rgba(0,0,0,1)');
  546. Lib_叠加Node6_2.a('node.borderwidth', 0);
  547. Lib_叠加Node6_2.a('node.background','' || 'rgba(0,0,0,0)');
  548. Lib_叠加Node6_2.a('node.gradient','');
  549. Lib_叠加Node6_2.a('node.gradientcolor','');
  550. Lib_叠加Node6_2.a('node.text','444');
  551. Lib_叠加Node6_2.a('node.textalign','left');
  552. Lib_叠加Node6_2.a('node.textvAlign','middle');
  553. Lib_叠加Node6_2.a('node.textrect', [Lib_叠加Node6_2textStart, 0, Lib_叠加Node6_2textWidth, Lib_叠加Node6_2height]);
  554. Lib_叠加Node6_2.a('node.color','rgba(0,0,0,1)');
  555. Lib_叠加Node6_2.a('node.font',' '+ Lib_叠加Node6_2fontSize + 'px "DS-Digital"');
  556. Lib_叠加Node6_2.a('node.textvisible',true);
  557. Lib_叠加Node6_2.a('node.linefeed',false);
  558. if (false) {
  559. Lib_叠加Node6_2.a('node.textfunc',function(g) {
  560. g.beginPath();
  561. var str=Lib_叠加Node6_2.a('node.text') || '444';
  562. var color=Lib_叠加Node6_2.a('node.color') || 'rgba(0,0,0,1)';
  563. canvasTextAutoLine(str,0,18.66662*0.5*_ratio.ratioY,Lib_叠加Node6_2width,Lib_叠加Node6_2height,18.66662*_ratio.ratioY,"left",color,' '+ Lib_叠加Node6_2fontSize + 'px "DS-Digital"', 0,g);
  564. });
  565. }
  566. if (false) {
  567. Lib_叠加Node6_2.a('node.underlinepoints',[Lib_叠加Node6_2lineStart, (21 - 18.66662) * 0.5 * _ratio.ratioY + Lib_叠加Node6_2fontSize + 2 , ht.Default.getTextSize('444', ' '+ Lib_叠加Node6_2fontSize + 'px "DS-Digital"').width + 6, (Lib_叠加Node6_2height - Lib_叠加Node6_2fontSize) * 0.5*_ratio.ratioY + Lib_叠加Node6_2fontSize + 2 ]);
  568. Lib_叠加Node6_2.a('node.underlinevisible',false);
  569. Lib_叠加Node6_2.a('node.underlineBorderWidth', 1);
  570. }
  571. dataModel.add(Lib_叠加Node6_2);
  572. zoomNodeList.push({
  573. node: Lib_叠加Node6_2,
  574. borderWidth: 0,
  575. attr: 'node.borderwidth'
  576. }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  577. var Lib_叠加Node6_3 = new ht.Node();
  578. var Lib_叠加Node6_3textStart, Lib_叠加Node6_3textWidth, Lib_叠加Node6_3lineStart, Lib_叠加Node6_3align = 'left', Lib_叠加Node6_3fontSize = 11.99997*_ratio.ratioY,Lib_叠加Node6_3width = 52*_ratio.ratioX, Lib_叠加Node6_3height = 16*_ratio.ratioY;
  579. (function () {
  580. if (Lib_叠加Node6_3align === 'left') {
  581. Lib_叠加Node6_3textStart = Lib_叠加Node6_3fontSize * 0.2 > 2 ? Lib_叠加Node6_3fontSize * 0.2 - 4 : Lib_叠加Node6_3fontSize * 0.2 - 9;
  582. Lib_叠加Node6_3textWidth = Lib_叠加Node6_3width;
  583. Lib_叠加Node6_3lineStart = 1;
  584. } else if (Lib_叠加Node6_3align === 'right') {
  585. Lib_叠加Node6_3textStart = 0;
  586. Lib_叠加Node6_3textWidth =Lib_叠加Node6_3fontSize <= 8 ? Lib_叠加Node6_3width + Lib_叠加Node6_3fontSize * 0.2 + 6 : Lib_叠加Node6_3width - Lib_叠加Node6_3fontSize * 0.2;
  587. Lib_叠加Node6_3lineStart = (Lib_叠加Node6_3width - (ht.Default.getTextSize('功率Kw', ' '+ Lib_叠加Node6_3fontSize + 'px "Arial"').width + 6)) * 0.5;
  588. } else if (Lib_叠加Node6_3align === 'center') {
  589. Lib_叠加Node6_3textStart = -3;
  590. Lib_叠加Node6_3textWidth = Lib_叠加Node6_3width;
  591. Lib_叠加Node6_3lineStart = Lib_叠加Node6_3width - ht.Default.getTextSize('功率Kw', ' '+ Lib_叠加Node6_3fontSize + 'px "Arial"').width - 11;
  592. }
  593. })();
  594. Lib_叠加Node6_3.setImage(GD.getTextJSON(Lib_叠加Node6_3width, Lib_叠加Node6_3height, true, false, false, ' '+ Lib_叠加Node6_3fontSize + 'px "Arial"'))
  595. Lib_叠加Node6_3.setPosition(110*ratio.ratioX, 61*ratio.ratioY);
  596. Lib_叠加Node6_3.setWidth(Lib_叠加Node6_3width);
  597. Lib_叠加Node6_3.setHeight(Lib_叠加Node6_3height);
  598. Lib_叠加Node6_3._nodeType = 'text';
  599. Lib_叠加Node6_3._disallowEvert = true;
  600. Lib_叠加Node6_3.setRotation(0*Math.PI/180);
  601. Lib_叠加Node6_3.a('node.width', Lib_叠加Node6_3width);
  602. Lib_叠加Node6_3.a('node.height', Lib_叠加Node6_3height);
  603. Lib_叠加Node6_3.a('node.rect', [0, 0, Lib_叠加Node6_3width, Lib_叠加Node6_3height]);
  604. Lib_叠加Node6_3.a('node.bordercolor','rgba(0,0,0,1)');
  605. Lib_叠加Node6_3.a('node.borderwidth', 0);
  606. Lib_叠加Node6_3.a('node.background','' || 'rgba(0,0,0,0)');
  607. Lib_叠加Node6_3.a('node.gradient','');
  608. Lib_叠加Node6_3.a('node.gradientcolor','');
  609. Lib_叠加Node6_3.a('node.text','功率Kw');
  610. Lib_叠加Node6_3.a('node.textalign','left');
  611. Lib_叠加Node6_3.a('node.textvAlign','middle');
  612. Lib_叠加Node6_3.a('node.textrect', [Lib_叠加Node6_3textStart, 0, Lib_叠加Node6_3textWidth, Lib_叠加Node6_3height]);
  613. Lib_叠加Node6_3.a('node.color','rgba(0,0,0,1)');
  614. Lib_叠加Node6_3.a('node.font',' '+ Lib_叠加Node6_3fontSize + 'px "Arial"');
  615. Lib_叠加Node6_3.a('node.textvisible',true);
  616. Lib_叠加Node6_3.a('node.linefeed',false);
  617. if (false) {
  618. Lib_叠加Node6_3.a('node.textfunc',function(g) {
  619. g.beginPath();
  620. var str=Lib_叠加Node6_3.a('node.text') || '功率Kw';
  621. var color=Lib_叠加Node6_3.a('node.color') || 'rgba(0,0,0,1)';
  622. canvasTextAutoLine(str,0,11.99997*0.5*_ratio.ratioY,Lib_叠加Node6_3width,Lib_叠加Node6_3height,11.99997*_ratio.ratioY,"left",color,' '+ Lib_叠加Node6_3fontSize + 'px "Arial"', 0,g);
  623. });
  624. }
  625. if (false) {
  626. Lib_叠加Node6_3.a('node.underlinepoints',[Lib_叠加Node6_3lineStart, (16 - 11.99997) * 0.5 * _ratio.ratioY + Lib_叠加Node6_3fontSize + 2 , ht.Default.getTextSize('功率Kw', ' '+ Lib_叠加Node6_3fontSize + 'px "Arial"').width + 6, (Lib_叠加Node6_3height - Lib_叠加Node6_3fontSize) * 0.5*_ratio.ratioY + Lib_叠加Node6_3fontSize + 2 ]);
  627. Lib_叠加Node6_3.a('node.underlinevisible',false);
  628. Lib_叠加Node6_3.a('node.underlineBorderWidth', 1);
  629. }
  630. dataModel.add(Lib_叠加Node6_3);
  631. zoomNodeList.push({
  632. node: Lib_叠加Node6_3,
  633. borderWidth: 0,
  634. attr: 'node.borderwidth'
  635. }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
  636. var Lib_叠加Node6_4 = new ht.Node();
  637. var Lib_叠加Node6_4textStart, Lib_叠加Node6_4textWidth, Lib_叠加Node6_4lineStart, Lib_叠加Node6_4align = 'center', Lib_叠加Node6_4fontSize = 18.66662*_ratio.ratioY,Lib_叠加Node6_4width = 50*_ratio.ratioX, Lib_叠加Node6_4height = 21*_ratio.ratioY;
  638. (function () {
  639. if (Lib_叠加Node6_4align === 'left') {
  640. Lib_叠加Node6_4textStart = Lib_叠加Node6_4fontSize * 0.2 > 2 ? Lib_叠加Node6_4fontSize * 0.2 - 4 : Lib_叠加Node6_4fontSize * 0.2 - 9;
  641. Lib_叠加Node6_4textWidth = Lib_叠加Node6_4width;
  642. Lib_叠加Node6_4lineStart = 1;
  643. } else if (Lib_叠加Node6_4align === 'right') {
  644. Lib_叠加Node6_4textStart = 0;
  645. Lib_叠加Node6_4textWidth =Lib_叠加Node6_4fontSize <= 8 ? Lib_叠加Node6_4width + Lib_叠加Node6_4fontSize * 0.2 + 6 : Lib_叠加Node6_4width - Lib_叠加Node6_4fontSize * 0.2;
  646. Lib_叠加Node6_4lineStart = (Lib_叠加Node6_4width - (ht.Default.getTextSize('444', ' '+ Lib_叠加Node6_4fontSize + 'px "DS-Digital"').width + 6)) * 0.5;
  647. } else if (Lib_叠加Node6_4align === 'center') {
  648. Lib_叠加Node6_4textStart = -3;
  649. Lib_叠加Node6_4textWidth = Lib_叠加Node6_4width;
  650. Lib_叠加Node6_4lineStart = Lib_叠加Node6_4width - ht.Default.getTextSize('444', ' '+ Lib_叠加Node6_4fontSize + 'px "DS-Digital"').width - 11;
  651. }
  652. })();
  653. Lib_叠加Node6_4.setImage(GD.getTextJSON(Lib_叠加Node6_4width, Lib_叠加Node6_4height, true, false, false, ' '+ Lib_叠加Node6_4fontSize + 'px "DS-Digital"'))
  654. Lib_叠加Node6_4.setPosition(102*ratio.ratioX, 79*ratio.ratioY);
  655. Lib_叠加Node6_4.setWidth(Lib_叠加Node6_4width);
  656. Lib_叠加Node6_4.setHeight(Lib_叠加Node6_4height);
  657. Lib_叠加Node6_4._nodeType = 'text';
  658. Lib_叠加Node6_4._disallowEvert = true;
  659. Lib_叠加Node6_4.setRotation(0*Math.PI/180);
  660. Lib_叠加Node6_4.a('node.width', Lib_叠加Node6_4width);
  661. Lib_叠加Node6_4.a('node.height', Lib_叠加Node6_4height);
  662. Lib_叠加Node6_4.a('node.rect', [0, 0, Lib_叠加Node6_4width, Lib_叠加Node6_4height]);
  663. Lib_叠加Node6_4.a('node.bordercolor','rgba(0,0,0,1)');
  664. Lib_叠加Node6_4.a('node.borderwidth', 0);
  665. Lib_叠加Node6_4.a('node.background','' || 'rgba(0,0,0,0)');
  666. Lib_叠加Node6_4.a('node.gradient','');
  667. Lib_叠加Node6_4.a('node.gradientcolor','');
  668. Lib_叠加Node6_4.a('node.text','444');
  669. Lib_叠加Node6_4.a('node.textalign','center');
  670. Lib_叠加Node6_4.a('node.textvAlign','middle');
  671. Lib_叠加Node6_4.a('node.textrect', [Lib_叠加Node6_4textStart, 0, Lib_叠加Node6_4textWidth, Lib_叠加Node6_4height]);
  672. Lib_叠加Node6_4.a('node.color','rgba(0,0,0,1)');
  673. Lib_叠加Node6_4.a('node.font',' '+ Lib_叠加Node6_4fontSize + 'px "DS-Digital"');
  674. Lib_叠加Node6_4.a('node.textvisible',true);
  675. Lib_叠加Node6_4.a('node.linefeed',false);
  676. if (false) {
  677. Lib_叠加Node6_4.a('node.textfunc',function(g) {
  678. g.beginPath();
  679. var str=Lib_叠加Node6_4.a('node.text') || '444';
  680. var color=Lib_叠加Node6_4.a('node.color') || 'rgba(0,0,0,1)';
  681. canvasTextAutoLine(str,0,18.66662*0.5*_ratio.ratioY,Lib_叠加Node6_4width,Lib_叠加Node6_4height,18.66662*_ratio.ratioY,"center",color,' '+ Lib_叠加Node6_4fontSize + 'px "DS-Digital"', 0,g);
  682. });
  683. }
  684. if (false) {
  685. Lib_叠加Node6_4.a('node.underlinepoints',[Lib_叠加Node6_4lineStart, (21 - 18.66662) * 0.5 * _ratio.ratioY + Lib_叠加Node6_4fontSize + 2 , ht.Default.getTextSize('444', ' '+ Lib_叠加Node6_4fontSize + 'px "DS-Digital"').width + 6, (Lib_叠加Node6_4height - Lib_叠加Node6_4fontSize) * 0.5*_ratio.ratioY + Lib_叠加Node6_4fontSize + 2 ]);
  686. Lib_叠加Node6_4.a('node.underlinevisible',false);
  687. Lib_叠加Node6_4.a('node.underlineBorderWidth', 1);
  688. }
  689. dataModel.add(Lib_叠加Node6_4);
  690. zoomNodeList.push({
  691. node: Lib_叠加Node6_4,
  692. borderWidth: 0,
  693. attr: 'node.borderwidth'
  694. });
  695. /*@GraphList@*/
  696. /*@PageInit@*/
  697. var localVarObj = this.localVarObj;
  698. var localDynamicVarObj = this.localDynamicVar();
  699. var zhuangtai= localVarObj.zhuangtai || localDynamicVarObj.zhuangtai;
  700. var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
  701. var fengsu= localVarObj.fengsu || localDynamicVarObj.fengsu;
  702. var gonglv= localVarObj.gonglv || localDynamicVarObj.gonglv;
  703. this['Lib_叠加Node0_0'] = Lib_叠加Node0_0;
  704. Lib_叠加Node0_0.__parentLib = nodename;
  705. Lib_叠加Node0_0.__parent = this;
  706. this.childNodes.push(Lib_叠加Node0_0);
  707. this['Lib_叠加Node0_1'] = Lib_叠加Node0_1;
  708. Lib_叠加Node0_1.__parentLib = nodename;
  709. Lib_叠加Node0_1.__parent = this;
  710. this.childNodes.push(Lib_叠加Node0_1);
  711. this['Lib_叠加Node1_0'] = Lib_叠加Node1_0;
  712. Lib_叠加Node1_0.__parentLib = nodename;
  713. Lib_叠加Node1_0.__parent = this;
  714. this.childNodes.push(Lib_叠加Node1_0);
  715. this['Lib_叠加Node1_1'] = Lib_叠加Node1_1;
  716. Lib_叠加Node1_1.__parentLib = nodename;
  717. Lib_叠加Node1_1.__parent = this;
  718. this.childNodes.push(Lib_叠加Node1_1);
  719. this['Lib_叠加Node2_0'] = Lib_叠加Node2_0;
  720. Lib_叠加Node2_0.__parentLib = nodename;
  721. Lib_叠加Node2_0.__parent = this;
  722. this.childNodes.push(Lib_叠加Node2_0);
  723. this['Lib_叠加Node2_1'] = Lib_叠加Node2_1;
  724. Lib_叠加Node2_1.__parentLib = nodename;
  725. Lib_叠加Node2_1.__parent = this;
  726. this.childNodes.push(Lib_叠加Node2_1);
  727. this['Lib_叠加Node3_0'] = Lib_叠加Node3_0;
  728. Lib_叠加Node3_0.__parentLib = nodename;
  729. Lib_叠加Node3_0.__parent = this;
  730. this.childNodes.push(Lib_叠加Node3_0);
  731. this['Lib_叠加Node3_1'] = Lib_叠加Node3_1;
  732. Lib_叠加Node3_1.__parentLib = nodename;
  733. Lib_叠加Node3_1.__parent = this;
  734. this.childNodes.push(Lib_叠加Node3_1);
  735. this['Lib_叠加Node4_0'] = Lib_叠加Node4_0;
  736. Lib_叠加Node4_0.__parentLib = nodename;
  737. Lib_叠加Node4_0.__parent = this;
  738. this.childNodes.push(Lib_叠加Node4_0);
  739. this['Lib_叠加Node4_1'] = Lib_叠加Node4_1;
  740. Lib_叠加Node4_1.__parentLib = nodename;
  741. Lib_叠加Node4_1.__parent = this;
  742. this.childNodes.push(Lib_叠加Node4_1);
  743. this['Lib_叠加Node5_0'] = Lib_叠加Node5_0;
  744. Lib_叠加Node5_0.__parentLib = nodename;
  745. Lib_叠加Node5_0.__parent = this;
  746. this.childNodes.push(Lib_叠加Node5_0);
  747. this['Lib_叠加Node5_1'] = Lib_叠加Node5_1;
  748. Lib_叠加Node5_1.__parentLib = nodename;
  749. Lib_叠加Node5_1.__parent = this;
  750. this.childNodes.push(Lib_叠加Node5_1);
  751. this['Lib_叠加Node5_2'] = Lib_叠加Node5_2;
  752. Lib_叠加Node5_2.__parentLib = nodename;
  753. Lib_叠加Node5_2.__parent = this;
  754. this.childNodes.push(Lib_叠加Node5_2);
  755. this['Lib_叠加Node5_3'] = Lib_叠加Node5_3;
  756. Lib_叠加Node5_3.__parentLib = nodename;
  757. Lib_叠加Node5_3.__parent = this;
  758. this.childNodes.push(Lib_叠加Node5_3);
  759. this['Lib_叠加Node6_0'] = Lib_叠加Node6_0;
  760. Lib_叠加Node6_0.__parentLib = nodename;
  761. Lib_叠加Node6_0.__parent = this;
  762. this.childNodes.push(Lib_叠加Node6_0);
  763. this['Lib_叠加Node6_1'] = Lib_叠加Node6_1;
  764. Lib_叠加Node6_1.__parentLib = nodename;
  765. Lib_叠加Node6_1.__parent = this;
  766. this.childNodes.push(Lib_叠加Node6_1);
  767. this['Lib_叠加Node6_2'] = Lib_叠加Node6_2;
  768. Lib_叠加Node6_2.__parentLib = nodename;
  769. Lib_叠加Node6_2.__parent = this;
  770. this.childNodes.push(Lib_叠加Node6_2);
  771. this['Lib_叠加Node6_3'] = Lib_叠加Node6_3;
  772. Lib_叠加Node6_3.__parentLib = nodename;
  773. Lib_叠加Node6_3.__parent = this;
  774. this.childNodes.push(Lib_叠加Node6_3);
  775. this['Lib_叠加Node6_4'] = Lib_叠加Node6_4;
  776. Lib_叠加Node6_4.__parentLib = nodename;
  777. Lib_叠加Node6_4.__parent = this;
  778. this.childNodes.push(Lib_叠加Node6_4);
  779. /*@ControlContextMenu@*/
  780. /*@Declare@*/
  781. this.init(x, y, width, height, angle);
  782. };
  783. ht.Default.def('ht.lib.叠加', Object, {
  784. refresh10ms: function () {
  785. var localVarObj = this.localVarObj;
  786. var localDynamicVarObj = this.localDynamicVar();
  787. var zhuangtai= localVarObj.zhuangtai || localDynamicVarObj.zhuangtai;
  788. var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
  789. var fengsu= localVarObj.fengsu || localDynamicVarObj.fengsu;
  790. var gonglv= localVarObj.gonglv || localDynamicVarObj.gonglv;
  791. var Lib_叠加Node0_0= this.Lib_叠加Node0_0;
  792. var Lib_叠加Node0_1= this.Lib_叠加Node0_1;
  793. var Lib_叠加Node1_0= this.Lib_叠加Node1_0;
  794. var Lib_叠加Node1_1= this.Lib_叠加Node1_1;
  795. var Lib_叠加Node2_0= this.Lib_叠加Node2_0;
  796. var Lib_叠加Node2_1= this.Lib_叠加Node2_1;
  797. var Lib_叠加Node3_0= this.Lib_叠加Node3_0;
  798. var Lib_叠加Node3_1= this.Lib_叠加Node3_1;
  799. var Lib_叠加Node4_0= this.Lib_叠加Node4_0;
  800. var Lib_叠加Node4_1= this.Lib_叠加Node4_1;
  801. var Lib_叠加Node5_0= this.Lib_叠加Node5_0;
  802. var Lib_叠加Node5_1= this.Lib_叠加Node5_1;
  803. var Lib_叠加Node5_2= this.Lib_叠加Node5_2;
  804. var Lib_叠加Node5_3= this.Lib_叠加Node5_3;
  805. var Lib_叠加Node6_0= this.Lib_叠加Node6_0;
  806. var Lib_叠加Node6_1= this.Lib_叠加Node6_1;
  807. var Lib_叠加Node6_2= this.Lib_叠加Node6_2;
  808. var Lib_叠加Node6_3= this.Lib_叠加Node6_3;
  809. var Lib_叠加Node6_4= this.Lib_叠加Node6_4;
  810. /*@refresh10ms@*/
  811. },
  812. refresh100ms: function () {
  813. var localVarObj = this.localVarObj;
  814. var localDynamicVarObj = this.localDynamicVar();
  815. var zhuangtai= localVarObj.zhuangtai || localDynamicVarObj.zhuangtai;
  816. var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
  817. var fengsu= localVarObj.fengsu || localDynamicVarObj.fengsu;
  818. var gonglv= localVarObj.gonglv || localDynamicVarObj.gonglv;
  819. var Lib_叠加Node0_0= this.Lib_叠加Node0_0;
  820. var Lib_叠加Node0_1= this.Lib_叠加Node0_1;
  821. var Lib_叠加Node1_0= this.Lib_叠加Node1_0;
  822. var Lib_叠加Node1_1= this.Lib_叠加Node1_1;
  823. var Lib_叠加Node2_0= this.Lib_叠加Node2_0;
  824. var Lib_叠加Node2_1= this.Lib_叠加Node2_1;
  825. var Lib_叠加Node3_0= this.Lib_叠加Node3_0;
  826. var Lib_叠加Node3_1= this.Lib_叠加Node3_1;
  827. var Lib_叠加Node4_0= this.Lib_叠加Node4_0;
  828. var Lib_叠加Node4_1= this.Lib_叠加Node4_1;
  829. var Lib_叠加Node5_0= this.Lib_叠加Node5_0;
  830. var Lib_叠加Node5_1= this.Lib_叠加Node5_1;
  831. var Lib_叠加Node5_2= this.Lib_叠加Node5_2;
  832. var Lib_叠加Node5_3= this.Lib_叠加Node5_3;
  833. var Lib_叠加Node6_0= this.Lib_叠加Node6_0;
  834. var Lib_叠加Node6_1= this.Lib_叠加Node6_1;
  835. var Lib_叠加Node6_2= this.Lib_叠加Node6_2;
  836. var Lib_叠加Node6_3= this.Lib_叠加Node6_3;
  837. var Lib_叠加Node6_4= this.Lib_叠加Node6_4;
  838. Lib_叠加Node5_2.setRotation(((30) )*Math.PI/180+Lib_叠加Node5_2.getRotation());
  839. Lib_叠加Node6_0.a('node.text',''+bianhao+'');
  840. Lib_叠加Node6_2.a('node.text',GetDital((getVarValue(fengsu) ),-1));
  841. Lib_叠加Node6_4.a('node.text',GetDital((getVarValue(gonglv) ),-1));
  842. /*@refresh100ms@*/
  843. },
  844. refresh500ms: function () {
  845. var localVarObj = this.localVarObj;
  846. var localDynamicVarObj = this.localDynamicVar();
  847. var zhuangtai= localVarObj.zhuangtai || localDynamicVarObj.zhuangtai;
  848. var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
  849. var fengsu= localVarObj.fengsu || localDynamicVarObj.fengsu;
  850. var gonglv= localVarObj.gonglv || localDynamicVarObj.gonglv;
  851. var Lib_叠加Node0_0= this.Lib_叠加Node0_0;
  852. var Lib_叠加Node0_1= this.Lib_叠加Node0_1;
  853. var Lib_叠加Node1_0= this.Lib_叠加Node1_0;
  854. var Lib_叠加Node1_1= this.Lib_叠加Node1_1;
  855. var Lib_叠加Node2_0= this.Lib_叠加Node2_0;
  856. var Lib_叠加Node2_1= this.Lib_叠加Node2_1;
  857. var Lib_叠加Node3_0= this.Lib_叠加Node3_0;
  858. var Lib_叠加Node3_1= this.Lib_叠加Node3_1;
  859. var Lib_叠加Node4_0= this.Lib_叠加Node4_0;
  860. var Lib_叠加Node4_1= this.Lib_叠加Node4_1;
  861. var Lib_叠加Node5_0= this.Lib_叠加Node5_0;
  862. var Lib_叠加Node5_1= this.Lib_叠加Node5_1;
  863. var Lib_叠加Node5_2= this.Lib_叠加Node5_2;
  864. var Lib_叠加Node5_3= this.Lib_叠加Node5_3;
  865. var Lib_叠加Node6_0= this.Lib_叠加Node6_0;
  866. var Lib_叠加Node6_1= this.Lib_叠加Node6_1;
  867. var Lib_叠加Node6_2= this.Lib_叠加Node6_2;
  868. var Lib_叠加Node6_3= this.Lib_叠加Node6_3;
  869. var Lib_叠加Node6_4= this.Lib_叠加Node6_4;
  870. if((1 )>0) {if(((getVarValue(zhuangtai)==2)>0 )){Lib_叠加Node0_0.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node0_0.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  871. if((1 )>0) {if(((getVarValue(zhuangtai)==2)>0 )){Lib_叠加Node0_1.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node0_1.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  872. if((1 )>0) {if(((getVarValue(zhuangtai)==4)>0 )){Lib_叠加Node1_0.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node1_0.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  873. if((1 )>0) {if(((getVarValue(zhuangtai)==4)>0 )){Lib_叠加Node1_1.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node1_1.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  874. if((1 )>0) {if(((getVarValue(zhuangtai)==0)>0 )){Lib_叠加Node2_0.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node2_0.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  875. if((1 )>0) {if(((getVarValue(zhuangtai)==0)>0 )){Lib_叠加Node2_1.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node2_1.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  876. if((1 )>0) {if(((getVarValue(zhuangtai)==5||getVarValue(zhuangtai)==6)>0 )){Lib_叠加Node3_0.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node3_0.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  877. if((1 )>0) {if(((getVarValue(zhuangtai)==5||getVarValue(zhuangtai)==6)>0 )){Lib_叠加Node3_1.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node3_1.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  878. if((1 )>0) {if(((getVarValue(zhuangtai)==3)>0 )){Lib_叠加Node4_0.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node4_0.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  879. if((1 )>0) {if(((getVarValue(zhuangtai)==3)>0 )){Lib_叠加Node4_1.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node4_1.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  880. if((1 )>0) {if(((getVarValue(zhuangtai)==1)>0 )){Lib_叠加Node5_0.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node5_0.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  881. if((1 )>0) {if(((getVarValue(zhuangtai)==1)>0 )){Lib_叠加Node5_1.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node5_1.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  882. if((1 )>0) {if(((getVarValue(zhuangtai)==1)>0 )){Lib_叠加Node5_2.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node5_2.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  883. if((1 )>0) {if(((getVarValue(zhuangtai)==1)>0 )){Lib_叠加Node5_3.s('2d.visible',true&&this.getStyle('2d.visible'));}else{Lib_叠加Node5_3.s('2d.visible',false&&this.getStyle('2d.visible'));}}
  884. /*@refresh500ms@*/
  885. },
  886. refresh1s: function () {
  887. var Counter1s = arguments[0] || 0;
  888. var localVarObj = this.localVarObj;
  889. var localDynamicVarObj = this.localDynamicVar();
  890. var zhuangtai= localVarObj.zhuangtai || localDynamicVarObj.zhuangtai;
  891. var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
  892. var fengsu= localVarObj.fengsu || localDynamicVarObj.fengsu;
  893. var gonglv= localVarObj.gonglv || localDynamicVarObj.gonglv;
  894. var Lib_叠加Node0_0= this.Lib_叠加Node0_0;
  895. var Lib_叠加Node0_1= this.Lib_叠加Node0_1;
  896. var Lib_叠加Node1_0= this.Lib_叠加Node1_0;
  897. var Lib_叠加Node1_1= this.Lib_叠加Node1_1;
  898. var Lib_叠加Node2_0= this.Lib_叠加Node2_0;
  899. var Lib_叠加Node2_1= this.Lib_叠加Node2_1;
  900. var Lib_叠加Node3_0= this.Lib_叠加Node3_0;
  901. var Lib_叠加Node3_1= this.Lib_叠加Node3_1;
  902. var Lib_叠加Node4_0= this.Lib_叠加Node4_0;
  903. var Lib_叠加Node4_1= this.Lib_叠加Node4_1;
  904. var Lib_叠加Node5_0= this.Lib_叠加Node5_0;
  905. var Lib_叠加Node5_1= this.Lib_叠加Node5_1;
  906. var Lib_叠加Node5_2= this.Lib_叠加Node5_2;
  907. var Lib_叠加Node5_3= this.Lib_叠加Node5_3;
  908. var Lib_叠加Node6_0= this.Lib_叠加Node6_0;
  909. var Lib_叠加Node6_1= this.Lib_叠加Node6_1;
  910. var Lib_叠加Node6_2= this.Lib_叠加Node6_2;
  911. var Lib_叠加Node6_3= this.Lib_叠加Node6_3;
  912. var Lib_叠加Node6_4= this.Lib_叠加Node6_4;
  913. /*@refresh1s@*/
  914. },
  915. refresh5s: function () {
  916. var localVarObj = this.localVarObj;
  917. var localDynamicVarObj = this.localDynamicVar();
  918. var zhuangtai= localVarObj.zhuangtai || localDynamicVarObj.zhuangtai;
  919. var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
  920. var fengsu= localVarObj.fengsu || localDynamicVarObj.fengsu;
  921. var gonglv= localVarObj.gonglv || localDynamicVarObj.gonglv;
  922. var Lib_叠加Node0_0= this.Lib_叠加Node0_0;
  923. var Lib_叠加Node0_1= this.Lib_叠加Node0_1;
  924. var Lib_叠加Node1_0= this.Lib_叠加Node1_0;
  925. var Lib_叠加Node1_1= this.Lib_叠加Node1_1;
  926. var Lib_叠加Node2_0= this.Lib_叠加Node2_0;
  927. var Lib_叠加Node2_1= this.Lib_叠加Node2_1;
  928. var Lib_叠加Node3_0= this.Lib_叠加Node3_0;
  929. var Lib_叠加Node3_1= this.Lib_叠加Node3_1;
  930. var Lib_叠加Node4_0= this.Lib_叠加Node4_0;
  931. var Lib_叠加Node4_1= this.Lib_叠加Node4_1;
  932. var Lib_叠加Node5_0= this.Lib_叠加Node5_0;
  933. var Lib_叠加Node5_1= this.Lib_叠加Node5_1;
  934. var Lib_叠加Node5_2= this.Lib_叠加Node5_2;
  935. var Lib_叠加Node5_3= this.Lib_叠加Node5_3;
  936. var Lib_叠加Node6_0= this.Lib_叠加Node6_0;
  937. var Lib_叠加Node6_1= this.Lib_叠加Node6_1;
  938. var Lib_叠加Node6_2= this.Lib_叠加Node6_2;
  939. var Lib_叠加Node6_3= this.Lib_叠加Node6_3;
  940. var Lib_叠加Node6_4= this.Lib_叠加Node6_4;
  941. /*@refresh5s@*/
  942. },
  943. /*@PageDynamic@*/
  944. onEvent: function (e, data, type, origin, offset, objMouseOn, ctm) {
  945. var localVarObj = this.localVarObj;
  946. var localDynamicVarObj = this.localDynamicVar();
  947. var zhuangtai= localVarObj.zhuangtai || localDynamicVarObj.zhuangtai;
  948. var bianhao= localVarObj.bianhao || localDynamicVarObj.bianhao;
  949. var fengsu= localVarObj.fengsu || localDynamicVarObj.fengsu;
  950. var gonglv= localVarObj.gonglv || localDynamicVarObj.gonglv;
  951. var Lib_叠加Node0_0= this.Lib_叠加Node0_0;
  952. var Lib_叠加Node0_1= this.Lib_叠加Node0_1;
  953. var Lib_叠加Node1_0= this.Lib_叠加Node1_0;
  954. var Lib_叠加Node1_1= this.Lib_叠加Node1_1;
  955. var Lib_叠加Node2_0= this.Lib_叠加Node2_0;
  956. var Lib_叠加Node2_1= this.Lib_叠加Node2_1;
  957. var Lib_叠加Node3_0= this.Lib_叠加Node3_0;
  958. var Lib_叠加Node3_1= this.Lib_叠加Node3_1;
  959. var Lib_叠加Node4_0= this.Lib_叠加Node4_0;
  960. var Lib_叠加Node4_1= this.Lib_叠加Node4_1;
  961. var Lib_叠加Node5_0= this.Lib_叠加Node5_0;
  962. var Lib_叠加Node5_1= this.Lib_叠加Node5_1;
  963. var Lib_叠加Node5_2= this.Lib_叠加Node5_2;
  964. var Lib_叠加Node5_3= this.Lib_叠加Node5_3;
  965. var Lib_叠加Node6_0= this.Lib_叠加Node6_0;
  966. var Lib_叠加Node6_1= this.Lib_叠加Node6_1;
  967. var Lib_叠加Node6_2= this.Lib_叠加Node6_2;
  968. var Lib_叠加Node6_3= this.Lib_叠加Node6_3;
  969. var Lib_叠加Node6_4= this.Lib_叠加Node6_4;
  970. if (type === 'click') {
  971. /*@EvnentClicked@*/
  972. } else if (type === 'mousedown') {
  973. mouseX=e.clientX;
  974. mouseY=e.clientY;
  975. /*@EvnentMouseDown@*/
  976. } else if (type === 'mouseup') {
  977. /*@EvnentMouseUp@*/
  978. } else if (type === 'mousemove') {
  979. var mouseX, mouseY, position, zoom;
  980. position=origin.getLogicalPoint(e);
  981. zoom = graphView.getZoom();
  982. if (origin === graphView) {
  983. mouseX= position.x + origin.tx();
  984. mouseY = position.y + origin.ty();
  985. } else {
  986. offset = offset || {x: 0, y: 0};
  987. mouseX = position.x / zoom + offset.x + origin.tx();
  988. mouseY = position.y / zoom + offset.y + origin.ty();
  989. }
  990. /*@EvnentMouseLeave@*/
  991. /*@EvnentMouseOver@*/
  992. } else if (type === 'keydown') {
  993. /*@EvnentKeyDown@*/
  994. } else if (type === 'contextmenu') {
  995. /*@Declare@*/
  996. /*@SetNodeContextMenu@*/
  997. /*@SetPageContextMenu@*/
  998. }
  999. /*@LibEvent@*/
  1000. },
  1001. getBaseClass: function () {
  1002. return this._baseClass;
  1003. },
  1004. getWidth: function () {
  1005. return this._width;
  1006. },
  1007. getHeight: function () {
  1008. return this._height;
  1009. },
  1010. getSize: function () {
  1011. return {
  1012. width: this._width,
  1013. height: this._height
  1014. }
  1015. },
  1016. setWidth: function (width) {
  1017. if (width === undefined || width === null || width != width) {
  1018. return ;
  1019. }
  1020. var originWidth = this._width;
  1021. var ratio = width / originWidth;
  1022. var childNodes = this.childNodes, childNode, p, op = this.getPosition(), w, cw, ox, rotation = this.getRotation();
  1023. for (var i = 0, len = childNodes.length; i < len; i++) {
  1024. childNode = childNodes[i];
  1025. p = childNode.getPosition();
  1026. cw = childNode.getWidth();
  1027. w = cw >=2 ? cw * ratio : cw;
  1028. childNode.setWidth(w);
  1029. ox = op.x + (p.x - op.x) * ratio;
  1030. childNode.setPosition(ox, p.y);
  1031. rotation = GD.calcRotation(rotation);
  1032. if (rotation === 0 || rotation === Math.PI) {
  1033. // 图元未旋转
  1034. ox = op.x + (p.x - op.x)*ratio;
  1035. childNode.setPosition(ox, p.y);
  1036. } else if (rotation === 90 * Math.PI / 180) {
  1037. // 图元旋转以后
  1038. ox = op.y + (p.y - op.y)*ratio;
  1039. childNode.setPosition(p.x, ox);
  1040. }
  1041. }
  1042. this._width = width;
  1043. this._originWidth = width;
  1044. this._ratioX = ratio;
  1045. return this;
  1046. },
  1047. setHeight: function (height) {
  1048. if (height === undefined || height === null || height != height) {
  1049. return ;
  1050. }
  1051. var originHeight = this._height;
  1052. var ratio = height / originHeight;
  1053. var childNodes = this.childNodes, childNode, p, op = this.getPosition(), h, ch, oy, rotation = this.getRotation();
  1054. for (var i = 0, len = childNodes.length; i < len; i++) {
  1055. childNode = childNodes[i];
  1056. p = childNode.getPosition();
  1057. ch = childNode.getHeight();
  1058. h = ch >=2 ? ch * ratio : ch;
  1059. childNode.setHeight(h);
  1060. rotation = GD.calcRotation(rotation);
  1061. if (rotation === 0 || rotation === Math.PI) {
  1062. // 图元未旋转
  1063. oy = op.y + (p.y - op.y)*ratio;
  1064. childNode.setPosition(p.x, oy);
  1065. } else if (rotation === 90 * Math.PI / 180) {
  1066. // 图元旋转以后
  1067. oy = op.x + (p.x - op.x)*ratio;
  1068. childNode.setPosition(oy, p.y);
  1069. }
  1070. }
  1071. this._height = height;
  1072. this._originHeight = height;
  1073. this._ratioY = ratio;
  1074. return this;
  1075. },
  1076. setSize: function (size) {
  1077. // var args = Array.prototype.slice.call(arguments, 0);
  1078. // var height, width;
  1079. // if (args.length === 0) {
  1080. // return ;
  1081. // }else if (args.length === 1) {
  1082. // height = args[0].height;
  1083. // width = args[0].width;
  1084. // } else {
  1085. // width = args[0];
  1086. // height = args[1];
  1087. // }
  1088. // var wh = GD.getRatioWithRotation(angle, wid)
  1089. // this.setHeight(height);
  1090. // this.setWidth(width);
  1091. // return this;
  1092. var args = Array.prototype.slice.call(arguments, 0);
  1093. var height, width;
  1094. if (args.length === 0) {
  1095. return ;
  1096. }else if (args.length === 1) {
  1097. height = args[0].height;
  1098. width = args[0].width;
  1099. angle = 0;
  1100. } else if (args.length === 2) {
  1101. if (typeof args[0] === 'object') {
  1102. width = args[0].width;
  1103. height = args[0].height;
  1104. angle = args[1] || 0;
  1105. } else {
  1106. width = args[0];
  1107. height = args[1];
  1108. angle = 0;
  1109. }
  1110. } else if (args.length === 3) {
  1111. width = args[0];
  1112. height = args[1];
  1113. angle = args[2] || 0;
  1114. }
  1115. var wh = GD.getRatioWithRotation(0, width, height);
  1116. this.setHeight(wh.ratioY);
  1117. this.setWidth(wh.ratioX);
  1118. return this;
  1119. },
  1120. getPosition: function () {
  1121. return {
  1122. x: this._x,
  1123. y: this._y
  1124. }
  1125. },
  1126. setPosition: function () {
  1127. var args = Array.prototype.slice.call(arguments, 0), x, y;
  1128. if (args.length === 0) {
  1129. return this;
  1130. } else if (args.length === 1) {
  1131. if (typeof args[0] != 'object') {
  1132. return this;
  1133. }
  1134. x = args[0].x;
  1135. y = args[0].y;
  1136. } else {
  1137. x = args[0];
  1138. y = args[1];
  1139. }
  1140. if ((x !== 0 && !x) || (y !== 0 && !y)) {
  1141. return this;
  1142. }
  1143. // var childNodes = this.childNodes, offset, childNode, p;
  1144. // for (var i = 0, len = childNodes.length; i < len; i++) {
  1145. // childNode = childNodes[i];
  1146. // p = childNode.getPosition();
  1147. // childNode.setPosition(x - (this._x-p.x)*this._ratioX, y - (this._y-p.y)*this._ratioY);
  1148. // }
  1149. // this._x = x;
  1150. // this._y = y;
  1151. // return this;
  1152. var childNodes, childNode, background, offset = {}, op, cp;
  1153. childNodes = this.childNodes;
  1154. background = this._background;
  1155. op = background.getPosition();
  1156. offset.x = x - op.x;
  1157. offset.y = y - op.y;
  1158. for (var i = 0, len = childNodes.length; i < len; i++) {
  1159. childNode = childNodes[i];
  1160. cp = childNode.getPosition();
  1161. childNode.setPosition(cp.x + offset.x, cp.y + offset.y);
  1162. }
  1163. this._x = x;
  1164. this._y = y;
  1165. this._position = {x: x, y: y};
  1166. return this;
  1167. },
  1168. getStyle: function (key) {
  1169. if (!key) {
  1170. return undefined;
  1171. }
  1172. return this._styleObject[key];
  1173. },
  1174. setStyle: function (key, value, force) {
  1175. var childNodes = this.childNodes, childNode;
  1176. for (var i = 0, len = childNodes.length; i < len; i++) {
  1177. childNode = childNodes[i];
  1178. if (key === '2d.visible') {
  1179. if (value === graphView.isVisible(childNode)) {
  1180. continue;
  1181. }
  1182. if (!value) {
  1183. childNode._savedIsVisible = graphView.isVisible(childNode);
  1184. childNode.s({
  1185. '2d.visible': false
  1186. })
  1187. } else {
  1188. childNode.s({
  1189. '2d.visible': childNode._savedIsVisible
  1190. })
  1191. }
  1192. continue;
  1193. }
  1194. childNode.s({
  1195. key: value
  1196. });
  1197. }
  1198. this._styleObject[key] = value;
  1199. return this;
  1200. },
  1201. calcSize: function () {
  1202. var background = this._background;
  1203. var position = background.getPosition(),
  1204. width = background.getWidth(),
  1205. height = background.getHeight();
  1206. this._width = width;
  1207. this._height = height;
  1208. this._x = position.x;
  1209. this._y = position.y;
  1210. this._position = {
  1211. x: this._x,
  1212. y: this._y
  1213. }
  1214. return this;
  1215. return this;
  1216. },
  1217. s: function (styleObj, force) {
  1218. var args = Array.prototype.slice.call(arguments, 0);
  1219. var styleObj;
  1220. if (args.length === 0) {
  1221. return this;
  1222. } else if (args.length === 1) {
  1223. styleObj = args[0];
  1224. } else {
  1225. this.setStyle(args[0], args[1]);
  1226. return this;
  1227. }
  1228. for (var key in styleObj) {
  1229. if (!styleObj.hasOwnProperty(key)) {
  1230. continue;
  1231. }
  1232. this.setStyle(key, styleObj[key], force);
  1233. }
  1234. return this;
  1235. },
  1236. init: function (x, y, width, height, angle) {
  1237. var that = this;
  1238. this.calcSize();
  1239. (function (width, height, angle) {
  1240. // that.setSize(width, height, angle);
  1241. // var wh = GD.getRatioWithRotation(angle, width, height);
  1242. // width = wh.ratioX;
  1243. // height = wh.ratioY;
  1244. var originHeight = that._height;
  1245. var originWidth = that._width;
  1246. var ratioY = height / originHeight;
  1247. var ratioX = width / originWidth;
  1248. var childNodes = that.childNodes,
  1249. childNode,p, op = that.getPosition(), h, ch, oy, w, cw, ox, name, borderRatio, borderWidth;
  1250. for (var i = 0, len = childNodes.length; i < len; i++) {
  1251. childNode = childNodes[i];
  1252. p = childNode.getPosition();
  1253. childNode.originHeight = childNode.originHeight || childNode.getHeight();
  1254. ch = childNode.getHeight();
  1255. cw = childNode.getWidth();
  1256. if (ch > 2) {
  1257. h = ch * ratioY;
  1258. childNode.setHeight(h);
  1259. }
  1260. if (cw > 2) {
  1261. w = cw * ratioX;
  1262. childNode.setWidth(w);
  1263. }
  1264. borderRatio = (ratioX + ratioY)*0.5;
  1265. if (childNode._nodeType === 'line') { // 如果是线,
  1266. if (childNode.getWidth() > childNode.getHeight()) {
  1267. borderRatio = ratioX;
  1268. } else {
  1269. borderRatio = ratioY;
  1270. }
  1271. }
  1272. name = childNode._nodename;
  1273. // if (childNode.borderWidth && name && ch > 2 && cw > 2) {
  1274. // borderWidth = childNode.borderWidth / borderRatio;
  1275. // if (borderWidth > ch*0.5 || borderWidth > cw *0.5) {
  1276. // // borderWidth = childNode.borderWidth;
  1277. // }
  1278. // childNode.borderWidth = borderWidth;
  1279. // childNode.a(name + '.borderwidth', borderWidth);
  1280. // }
  1281. }
  1282. that._height = height;
  1283. that._originHeight = height;
  1284. that._ratioY = ratioY;
  1285. that._width = width;
  1286. that._originWidth = width;
  1287. that._ratioX = ratioX;
  1288. })(width, height, angle);
  1289. that._x = width / 2;
  1290. that._y = height / 2;
  1291. that._rotation = 0;
  1292. // that.setPosition(x, y);
  1293. (function (x, y) {
  1294. var childNodes = that.childNodes, offset, childNode;
  1295. var w2 = that.getWidth() / 2, h2 = that.getHeight()/2;
  1296. for (var i = 0, len = childNodes.length; i < len; i++) {
  1297. childNode = childNodes[i];
  1298. offset = childNode.getPosition();
  1299. childNode.setPosition(x + offset.x * that._ratioX - w2, y + offset.y * that._ratioY - h2);
  1300. }
  1301. that._x = x;
  1302. that._y = y;
  1303. })(x, y);
  1304. // setTimeout(that.addEVent, 1000);
  1305. },
  1306. setRotation: function (angle) {
  1307. var that = this, _angle = that.getRotation();
  1308. if (angle!==0 && !angle || angle === _angle) {
  1309. return this;
  1310. }
  1311. var childNodes = this.childNodes, childNode, p = this.getPosition(), px = p.x, py = p.y;
  1312. for (var i = 0, len = childNodes.length; i < len; i++) {
  1313. childNode = childNodes[i];
  1314. var x = childNode.getPosition().x - px;
  1315. var y = childNode.getPosition().y - py;
  1316. childNode.setPosition(Math.cos(angle-_angle) * x - Math.sin(angle-_angle) * y + px, Math.cos(angle-_angle) * y + Math.sin(angle-_angle) * x + py);
  1317. childNode.setRotation(angle);
  1318. }
  1319. this._rotation = angle;
  1320. return this;
  1321. },
  1322. getRotation: function () {
  1323. return this._rotation;
  1324. },
  1325. setScale: function (sx, sy) {
  1326. var that = this,
  1327. childNodes = this.childNodes,
  1328. childNode;
  1329. if (sx === undefined || sx === null) return ;
  1330. if (sy === undefined || sy === null) {
  1331. sy = sx;
  1332. }
  1333. for (var i = 0, len = childNodes.length; i < len; i++) {
  1334. childNode = childNodes[i];
  1335. if (typeof childNode.setScale === 'function') {
  1336. childNode.setScale(sx, sy);
  1337. }
  1338. }
  1339. },
  1340. getScale: function () {
  1341. return this._background.getScale();
  1342. },
  1343. setScaleX: function (sx) {
  1344. if (sx === undefined || sx === null) return;
  1345. var that = this,
  1346. childNodes = this.childNodes,
  1347. childNode;
  1348. for (var i = 0, len = childNodes.length; i < len; i++) {
  1349. childNode = childNodes[i];
  1350. if (typeof childNode.setScaleX === 'function') {
  1351. childNode.setScaleX(sx);
  1352. }
  1353. }
  1354. },
  1355. setScaleY: function (sy) {
  1356. if (sy === undefined || sy === null) return;
  1357. var that = this,
  1358. childNodes = this.childNodes,
  1359. childNode;
  1360. for (var i = 0, len = childNodes.length; i < len; i++) {
  1361. childNode = childNodes[i];
  1362. if (typeof childNode.setScaleY === 'function') {
  1363. childNode.setScaleY(sy);
  1364. }
  1365. }
  1366. },
  1367. getScaleX: function () {
  1368. return this._background.getScaleX();
  1369. },
  1370. getScaleY: function () {
  1371. return this._background.getScaleY();
  1372. },
  1373. evert: function () {
  1374. var that = this,
  1375. childNodes = this.childNodes,
  1376. background = this._background,
  1377. bp = background.getPosition(),
  1378. bx = bp.x,
  1379. by = bp.y,
  1380. childNode, distanceX, distanceY, x, y, p, nx, ny;
  1381. for (var i = 0, len = childNodes.length; i < len; i++) {
  1382. childNode = childNodes[i];
  1383. p = childNode.getPosition();
  1384. x = p.x;
  1385. y = p.y;
  1386. distanceX = bx - x;
  1387. distanceY = by - y;
  1388. nx = bx + distanceX;
  1389. ny = by + distanceY;
  1390. childNode.setPosition(nx, ny);
  1391. if (typeof childNode.setScale === 'function') {
  1392. if (!(childNode._disallowEvert === true))
  1393. childNode.setScale(-1, -1);
  1394. }
  1395. }
  1396. },
  1397. evertX: function () {
  1398. var that = this,
  1399. childNodes = this.childNodes,
  1400. background = this._background,
  1401. bx = background.getPosition().x,
  1402. childNode, distance, x, p, nx;
  1403. for (var i = 0, len = childNodes.length; i < len; i++) {
  1404. childNode = childNodes[i];
  1405. p = childNode.getPosition();
  1406. x = p.x;
  1407. distance = bx - x;
  1408. nx = bx + distance;
  1409. childNode.setPosition(nx, p.y);
  1410. if (typeof childNode.setScaleX === 'function') {
  1411. if (!(childNode._disallowEvert === true))
  1412. childNode.setScaleX(-1);
  1413. }
  1414. }
  1415. },
  1416. evertY: function () {
  1417. var that = this,
  1418. childNodes = this.childNodes,
  1419. background = this._background,
  1420. by = background.getPosition().y,
  1421. childNode, distance, y, p, ny;
  1422. for (var i = 0, len = childNodes.length; i < len; i++) {
  1423. childNode = childNodes[i];
  1424. p = childNode.getPosition();
  1425. y = p.y;
  1426. distance = by - y;
  1427. ny = by + distance;
  1428. childNode.setPosition(p.x, ny);
  1429. if (typeof childNode.setScaleY === 'function') {
  1430. if (!(childNode._disallowEvert === true))
  1431. childNode.setScaleY(-1);
  1432. }
  1433. }
  1434. },
  1435. attr: function (key, value) {
  1436. var _attrObj = this._attrObj || {};
  1437. if (arguments.length === 1) {
  1438. return _attrObj[key];
  1439. }
  1440. var childNodes = this.childNodes, childNode;
  1441. _attrObj[key] = value;
  1442. for (var i = 0; childNode = childNodes[i++];) {
  1443. if (typeof childNode.a === 'function') {
  1444. childNode.a(key, value);
  1445. }
  1446. }
  1447. },
  1448. a: function () {
  1449. return this.attr.apply(this, arguments);
  1450. }
  1451. });
  1452. }