1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513 |
- /*@WebApiFunc@*/
- var varList = ['HTS_DQ.SX_GD_PLF_DQ_P1_L1_001_AI0013','GL_FJ.SX_GD_GLF_FJ_P1_L1_001_AI0006','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0077','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0132','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0026','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0186','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0185','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0126','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0128','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0127','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0183','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0184','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0089','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0085','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0116','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0093','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0100','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0144','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0140','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0168','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0148','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0152','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0038','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0034','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0065','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0061','GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0046','demo.DEMO_AI009'];
- var varListObj = {};
- var tagInfoDic={};
- // 用于保存所有的lib
- var mouseX=0,mouseY=0;
- var zoomNodeList = zoomNodeList || [];
- zoomNodeList.length = 0;
- var contextMenuOnViewList = contextMenuOnViewList || [];
- var globalVarNameList = globalVarNameList || [];
- var ratio = {ratioX: 1, ratioY: 1};
- // 保存加上图形旋转之后的缩放比例
- var _ratio = {ratioX: 1, ratioY: 1};
- var autoAdaptive = '@autoAdaptive@';
- var browserSize = {
- width: window.innerWidth || $window.innerWidth(),
- height: window.innerHeight || $window.innerHeight()
- }
- var globalVarObj = {};
- var globarParamsObj = {};
- var globalAliasObj = {};
- var pageSizeRatioValue;
- var PAGESCALABLE; // 页面是否可通过滚轮缩放
- var PageAdaptMode = {
- value: 'originSize',
- minWidth: 1366,
- minHeight: 768
- };
- function calcRatio (backSize, browserSize, ratio) {
- var value = GD.getParams('pageSizeRatioValue') || {}, rt;
- function cr(adaptMode) {
- var rx=1, ry=1, w, h;
- switch (adaptMode) {
- case 'adaptWidth':
- rx = ry = browserSize.width / backSize.width;
- break;
- case 'adaptHeight':
- rx = ry = browserSize.width / backSize.width;
- break;
- case 'adaptBrowser':
- rx = browserSize.width / backSize.width;
- ry = browserSize.height / backSize.height;
- break;
- case 'originSize':
- rx = ry = 1;
- break;
- case 'autoResize':
- w = browserSize.width < PageAdaptMode.minWidth ? PageAdaptMode.minWidth : browserSize.width;
- h = browserSize.height < PageAdaptMode.minHeight ? PageAdaptMode.minHeight : browserSize.height;
- rx = w / backSize.width;
- ry = h / backSize.height;
- rx > ry ? rx = ry : ry = rx;
- break;
- }
- return {rx: rx,ry: ry}
- }
-
- value = value.value || PageAdaptMode.value;
- pageSizeRatioValue = value;
-
- if ($.isNumeric(value)) {
- rt = cr(PageAdaptMode.value);
- ratio.ratioX = value*rt.rx;
- ratio.ratioY = value*rt.ry;
- } else {
- rt = cr(value);
- ratio.ratioX = rt.rx;
- ratio.ratioY = rt.ry;
- }
- ratio.originRatioX = rt.rx;
- ratio.originRatioY = rt.ry;
- window.backSize = backSize;
- }
- // 页面的依赖
- (function (W, GD) {
- W.GD = GD = GD || {};
- GD.relationship = {
- // hash: ['a.js', 'b.js', 'c.js'],
- '1234/ztjs2': ['lib/风场信息.js'],
- }
- })(window, window.GD);
- (function () {
- for (var i = 0, len = varList.length; i < len; i++) {
- var varStr = varList[i];
- varStr = varStr && varStr.toLowerCase && varStr.toLowerCase();
- varStr && (varListObj[varStr] = 0);
- }
- })();
- jQuery.support.cors = true;
- ht.Default.appendTimeStamp = function(url) { return url };
- function init() {
- initPage();
- // dataModel._libModel = _libModel;
- try {
- VarValue = JSON.parse(sessionStorage.getItem(location.pathname)) || VarValue;
- } catch (err) {}
- for(var i=0;i< 28 ;i++){VarValue[i] =0;}
- graphView.handleScroll = function () {}; graphView.setPannable(false); graphView.setMovableFunc(function(data){return false});PAGESCALABLE = false
- view.style.background = 'rgba(255,255,255,1)';
- sy=0;
- ldjsc=0;
- ztjs=0;
- sbjz=0;
- xnfx=0;
- pjgl=0;
- zbph=0;
- dbgl=0;
- bjzx=0;
- jrjs=0;
- sxxny=0;
- yygjb=0;
- plhts=0;
- tqwns=0;
- gljf=0;
- hyfy=0;
- llbts=0;
- ygcls=0;
- VIS=0;
- VIS2=0;
- VIS3=0;
- VIS4=0;
- VIS5=0;
- VIS6=0;
- VIS7=0;
- Node173_fengjitaishu="xx";
- Node173_zhuangjirongliang="xx";
- Node173_pingjunfengsu="xx";
- Node173_rifadianliang="xx";
- Node173_yougonggonglv="xx";
- Node174_fengjitaishu="xx";
- Node174_zhuangjirongliang="xx";
- Node174_pingjunfengsu="xx";
- Node174_rifadianliang="xx";
- Node174_yougonggonglv="xx";
- Node175_fengjitaishu="xx";
- Node175_zhuangjirongliang="xx";
- Node175_pingjunfengsu="xx";
- Node175_rifadianliang="xx";
- Node175_yougonggonglv="xx";
- Node176_fengjitaishu="xx";
- Node176_zhuangjirongliang="xx";
- Node176_pingjunfengsu="xx";
- Node176_rifadianliang="xx";
- Node176_yougonggonglv="xx";
- Node177_fengjitaishu="xx";
- Node177_zhuangjirongliang="xx";
- Node177_pingjunfengsu="xx";
- Node177_rifadianliang="xx";
- Node177_yougonggonglv="xx";
- Node178_fengjitaishu="xx";
- Node178_zhuangjirongliang="xx";
- Node178_pingjunfengsu="xx";
- Node178_rifadianliang="xx";
- Node178_yougonggonglv="xx";
- Node179_fengjitaishu="xx";
- Node179_zhuangjirongliang="xx";
- Node179_pingjunfengsu="xx";
- Node179_rifadianliang="xx";
- Node179_yougonggonglv="xx";
- Node180_41GroupVarName=[{'Tag':'demo.day01','Name':'demo.day01','displayName':'1'},{'Tag':'demo.day02','Name':'demo.day02','displayName':'2'},{'Tag':'demo.day03','Name':'demo.day03','displayName':'3'},{'Tag':'demo.day04','Name':'demo.day04','displayName':'4'},{'Tag':'demo.day05','Name':'demo.day05','displayName':'5'},{'Tag':'demo.day06','Name':'demo.day06','displayName':'6'},{'Tag':'demo.day07','Name':'demo.day07','displayName':'7'},{'Tag':'demo.day08','Name':'demo.day08','displayName':'8'},{'Tag':'demo.day09','Name':'demo.day09','displayName':'9'},{'Tag':'demo.day10','Name':'demo.day10','displayName':'10'},{'Tag':'demo.day11','Name':'demo.day11','displayName':'11'},{'Tag':'demo.day12','Name':'demo.day12','displayName':'12'},{'Tag':'demo.day13','Name':'demo.day13','displayName':'13'},{'Tag':'demo.day14','Name':'demo.day14','displayName':'14'},{'Tag':'demo.day15','Name':'demo.day15','displayName':'15'},{'Tag':'6emo.day16','Name':'6emo.day16','displayName':'16'},{'Tag':'demo.day17','Name':'demo.day17','displayName':'17'},{'Tag':'demo.day18','Name':'demo.day18','displayName':'18'},{'Tag':'demo.day19','Name':'demo.day19','displayName':'19'},{'Tag':'demo.day20','Name':'demo.day20','displayName':'20'},{'Tag':'demo.day21','Name':'demo.day21','displayName':'21'},{'Tag':'demo.day22','Name':'demo.day22','displayName':'22'},{'Tag':'demo.day23','Name':'demo.day23','displayName':'23'},{'Tag':'demo.day24','Name':'demo.day24','displayName':'24'},{'Tag':'demo.day25','Name':'demo.day25','displayName':'25'},{'Tag':'demo.day26','Name':'demo.day26','displayName':'26'},{'Tag':'demo.day27','Name':'demo.day27','displayName':'27'},{'Tag':'demo.day28','Name':'demo.day28','displayName':'28'},{'Tag':'demo.day29','Name':'demo.day29','displayName':'29'},{'Tag':'demo.day30','Name':'demo.day30','displayName':'30'}];
- Node180_41GroupInVarName=[{'statisticsType':'Avg','Tag':'speed','Name':'speed','displayName':'','Col':'0, 191, 255','DrawType':0,'StaType':0,'color':'#00bfff'},{'statisticsType':'Avg','Tag':'power','Name':'power','displayName':'','Col':'255, 99, 71','DrawType':1,'StaType':0,'color':'#ff6347'}];
- Node180_51GroupVarName=[{'Tag':'demo.day01','Name':'demo.day01','displayName':'一月'},{'Tag':'demo.day02','Name':'demo.day02','displayName':'二月'},{'Tag':'demo.day03','Name':'demo.day03','displayName':'三月'},{'Tag':'demo.day04','Name':'demo.day04','displayName':'四月'},{'Tag':'demo.day05','Name':'demo.day05','displayName':''},{'Tag':'demo.day06','Name':'demo.day06','displayName':''},{'Tag':'demo.day07','Name':'demo.day07','displayName':''},{'Tag':'demo.day08','Name':'demo.day08','displayName':''},{'Tag':'demo.day09','Name':'demo.day09','displayName':''},{'Tag':'demo.day10','Name':'demo.day10','displayName':''},{'Tag':'demo.day11','Name':'demo.day11','displayName':''},{'Tag':'demo.day12','Name':'demo.day12','displayName':''}];
- Node180_51GroupInVarName=[{'statisticsType':'Avg','Tag':'speed','Name':'speed','displayName':'','Col':'64, 224, 208','DrawType':0,'StaType':0,'color':'#40e0d0'},{'statisticsType':'Avg','Tag':'power','Name':'power','displayName':'','Col':'255, 128, 0','DrawType':0,'StaType':0,'color':'#ff8000'},{'statisticsType':'Avg','Tag':'quick','Name':'quick','displayName':'','Col':'0, 255, 0','DrawType':0,'StaType':0,'color':'#00ff00'}];
- Node180_54RowVarName=[];
- /*@PageBeforeInit@*/
- ;(function () {
- var GD = window.GD;
- if (!GD || typeof GD.useParams !== 'function') return ;
- GD.useParams();
- })();
- var backSize = {width: 1899, height: 980};calcRatio(backSize, browserSize, ratio);_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var PageBackgroundtype = 'rect';
- var PageBackground = new ht.Node(),
- PageBackgroundBorderWidth = 0*2;
- if (PageBackgroundtype === 'arc') {
- PageBackgroundBorderWidth *= 0;
- }
- PageBackground.setImage(GD.getRectJSON(1899*_ratio.ratioX, 980*_ratio.ratioY, PageBackgroundtype, '@arcFrom@', '@arcTo@', '@arcClose@'));
- PageBackground.setPosition(949*ratio.ratioX, 490*ratio.ratioY);
- PageBackground.setSize(1899*_ratio.ratioX, 980*_ratio.ratioY);
- PageBackground.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- PageBackground.a('node.width', 1899*_ratio.ratioX);
- PageBackground.a('node.height', 980*_ratio.ratioY);
- PageBackground.a('node.type', PageBackgroundtype);
- PageBackground.a('node.rect', [0, 0, 1899*_ratio.ratioX, 980*_ratio.ratioY]);
- PageBackground.a('node.background', 'rgba(255,255,255,1)');
- PageBackground.a('node.gradientcolor', 'rgba(255,255,255,1)');
- PageBackground.a('node.gradient', '');
- PageBackground.a('node.borderwidth', PageBackgroundBorderWidth);
- PageBackground.a('node.color', 'rgba(0,0,0,1)');
- PageBackground.a('node.fillrect', [0,0,0,0]);
- PageBackground.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- PageBackground.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- PageBackground.a('node.fillgradient', '');
- if (PageBackgroundtype !== 'rect') {
- PageBackground.a('node.arcFrom', parseFloat('@arcFrom@'));
- PageBackground.a('node.arcTo', parseFloat('@arcTo@'));
- PageBackground.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (PageBackgroundtype === 'arc') {
- PageBackground.a('node.arcOval', true);
- }
- PageBackground.setRotation(0*Math.PI/180);
- PageBackground.borderWidth = PageBackgroundBorderWidth;
- PageBackground.borderFillwidth = PageBackgroundBorderWidth;
- dataModel.add(PageBackground);
- PageBackground._nodename = 'PageBackground'
- PageBackground._nodeType = 'rect';
- zoomNodeList.push({
- node: PageBackground,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(PageBackground, PageBackground.getImage());PageBackground.s({'2d.selectable': false,'2d.movable': false});_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node0type = 'rect';
- var Node0 = new ht.Node(),
- Node0BorderWidth = 1*2;
- if (Node0type === 'arc') {
- Node0BorderWidth *= 1;
- }
- Node0.setImage(GD.getRectJSON(280.7278*_ratio.ratioX, 122*_ratio.ratioY, Node0type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node0.setPosition(618*ratio.ratioX, 98*ratio.ratioY);
- Node0.setSize(280.7278*_ratio.ratioX, 122*_ratio.ratioY);
- Node0.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node0.a('node.width', 280.7278*_ratio.ratioX);
- Node0.a('node.height', 122*_ratio.ratioY);
- Node0.a('node.type', Node0type);
- Node0.a('node.rect', [0, 0, 280.7278*_ratio.ratioX, 122*_ratio.ratioY]);
- Node0.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node0.a('node.gradientcolor', '');
- Node0.a('node.gradient', '');
- Node0.a('node.borderwidth', Node0BorderWidth);
- Node0.a('node.color', 'rgba(220,220,220,1)');
- Node0.a('node.fillrect', [0,0,0,0]);
- Node0.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node0.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node0.a('node.fillgradient', '');
- if (Node0type !== 'rect') {
- Node0.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node0.a('node.arcTo', parseFloat('@arcTo@'));
- Node0.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node0type === 'arc') {
- Node0.a('node.arcOval', true);
- }
- Node0.setRotation(0*Math.PI/180);
- Node0.borderWidth = Node0BorderWidth;
- Node0.borderFillwidth = Node0BorderWidth;
- dataModel.add(Node0);
- Node0._nodename = 'Node0'
- Node0._nodeType = 'rect';
- zoomNodeList.push({
- node: Node0,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node0, Node0.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node1type = 'rect';
- var Node1 = new ht.Node(),
- Node1BorderWidth = 1*2;
- if (Node1type === 'arc') {
- Node1BorderWidth *= 1;
- }
- Node1.setImage(GD.getRectJSON(1711.689*_ratio.ratioX, 122*_ratio.ratioY, Node1type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node1.setPosition(1050*ratio.ratioX, 98*ratio.ratioY);
- Node1.setSize(1711.689*_ratio.ratioX, 122*_ratio.ratioY);
- Node1.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node1.a('node.width', 1711.689*_ratio.ratioX);
- Node1.a('node.height', 122*_ratio.ratioY);
- Node1.a('node.type', Node1type);
- Node1.a('node.rect', [0, 0, 1711.689*_ratio.ratioX, 122*_ratio.ratioY]);
- Node1.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node1.a('node.gradientcolor', '');
- Node1.a('node.gradient', '');
- Node1.a('node.borderwidth', Node1BorderWidth);
- Node1.a('node.color', 'rgba(220,220,220,1)');
- Node1.a('node.fillrect', [0,0,0,0]);
- Node1.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node1.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node1.a('node.fillgradient', '');
- if (Node1type !== 'rect') {
- Node1.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node1.a('node.arcTo', parseFloat('@arcTo@'));
- Node1.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node1type === 'arc') {
- Node1.a('node.arcOval', true);
- }
- Node1.setRotation(0*Math.PI/180);
- Node1.borderWidth = Node1BorderWidth;
- Node1.borderFillwidth = Node1BorderWidth;
- dataModel.add(Node1);
- Node1._nodename = 'Node1'
- Node1._nodeType = 'rect';
- zoomNodeList.push({
- node: Node1,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node1, Node1.getImage());_ratio = GD.getRatioWithRotation(0, ratio);
- var Node2 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 68*ratio.ratioX, 19*ratio.ratioY, 0, {text:'山西新能源',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node3 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 68*ratio.ratioX, 19*ratio.ratioY, 0, {text:'山西新能源',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node4type = 'rect';
- var Node4 = new ht.Node(),
- Node4BorderWidth = 1*2;
- if (Node4type === 'arc') {
- Node4BorderWidth *= 1;
- }
- Node4.setImage(GD.getRectJSON(120*_ratio.ratioX, 120*_ratio.ratioY, Node4type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node4.setPosition(255*ratio.ratioX, 98*ratio.ratioY);
- Node4.setSize(120*_ratio.ratioX, 120*_ratio.ratioY);
- Node4.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node4.a('node.width', 120*_ratio.ratioX);
- Node4.a('node.height', 120*_ratio.ratioY);
- Node4.a('node.type', Node4type);
- Node4.a('node.rect', [0, 0, 120*_ratio.ratioX, 120*_ratio.ratioY]);
- Node4.a('node.background', 'rgba(245,245,245,1)');
- Node4.a('node.gradientcolor', 'rgba(245,245,245,1)');
- Node4.a('node.gradient', '');
- Node4.a('node.borderwidth', Node4BorderWidth);
- Node4.a('node.color', 'rgba(220,220,220,1)');
- Node4.a('node.fillrect', [0,0,0,0]);
- Node4.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node4.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node4.a('node.fillgradient', '');
- if (Node4type !== 'rect') {
- Node4.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node4.a('node.arcTo', parseFloat('@arcTo@'));
- Node4.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node4type === 'arc') {
- Node4.a('node.arcOval', true);
- }
- Node4.setRotation(0*Math.PI/180);
- Node4.borderWidth = Node4BorderWidth;
- Node4.borderFillwidth = Node4BorderWidth;
- dataModel.add(Node4);
- Node4._nodename = 'Node4'
- Node4._nodeType = 'rect';
- zoomNodeList.push({
- node: Node4,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node4, Node4.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node5type = 'rect';
- var Node5 = new ht.Node(),
- Node5BorderWidth = 1*2;
- if (Node5type === 'arc') {
- Node5BorderWidth *= 1;
- }
- Node5.setImage(GD.getRectJSON(280.7278*_ratio.ratioX, 122*_ratio.ratioY, Node5type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node5.setPosition(334*ratio.ratioX, 98*ratio.ratioY);
- Node5.setSize(280.7278*_ratio.ratioX, 122*_ratio.ratioY);
- Node5.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node5.a('node.width', 280.7278*_ratio.ratioX);
- Node5.a('node.height', 122*_ratio.ratioY);
- Node5.a('node.type', Node5type);
- Node5.a('node.rect', [0, 0, 280.7278*_ratio.ratioX, 122*_ratio.ratioY]);
- Node5.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node5.a('node.gradientcolor', '');
- Node5.a('node.gradient', '');
- Node5.a('node.borderwidth', Node5BorderWidth);
- Node5.a('node.color', 'rgba(220,220,220,1)');
- Node5.a('node.fillrect', [0,0,0,0]);
- Node5.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node5.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node5.a('node.fillgradient', '');
- if (Node5type !== 'rect') {
- Node5.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node5.a('node.arcTo', parseFloat('@arcTo@'));
- Node5.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node5type === 'arc') {
- Node5.a('node.arcOval', true);
- }
- Node5.setRotation(0*Math.PI/180);
- Node5.borderWidth = Node5BorderWidth;
- Node5.borderFillwidth = Node5BorderWidth;
- dataModel.add(Node5);
- Node5._nodename = 'Node5'
- Node5._nodeType = 'rect';
- zoomNodeList.push({
- node: Node5,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node5, Node5.getImage());var Node6points=[385, 38,385, 158],
- Node6rect=ht.Default.unionPoint([{x:385,y:38},{x:385,y:158}]),
- Node6compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Node6points.length;i++){
- if(i%2==0){
- Node6compspts.push(Node6points[i]-Node6rect.x);
- }else{
- Node6compspts.push(Node6points[i]-Node6rect.y);
- }
- }
- var Node6ptslength=Node6compspts.length;
- if (Node6rect.height === 0) {
- Node6compspts[0] -= 0;
- Node6compspts[Node6ptslength-2] += 0;
- } else if (Node6rect.width === 0){
- Node6compspts[1] -= 0;
- Node6compspts[Node6ptslength-1] += 0;
- } else {
- Node6compspts[0] -= 0;
- Node6compspts[1] -= 0;
- Node6compspts[Node6ptslength-2] += 0;
- Node6compspts[Node6ptslength-1] += 0;
- }
- Node6 = new ht.Node();
- Node6.borderWidth = 1;
- Node6rect.width = Node6rect.width === 0 ? 0.0001 : Node6rect.width;
- Node6rect.height = Node6rect.height === 0 ? 0.0001 : Node6rect.height;
- var Node6endCompspts = [Node6compspts[Node6ptslength-2],Node6compspts[Node6ptslength-1],0,0];
- var Node6startCompspts = [Node6compspts[0],Node6compspts[1],0,0];
- Node6.setImage(GD.getPolyLineJSON());
- Node6.setPosition(Node6rect.x+Node6rect.width/2,Node6rect.y+Node6rect.height/2);
- Node6.setSize(Node6rect.width,Node6rect.height);
- Node6.setStyle("opacity",1);
- Node6.s({'pixelPerfect':true});
- Node6borderwidth=1;
- Node6.setRotation(0);
- dataModel.add(Node6);
- Node6.a('node.points',Node6compspts);
- Node6.a('node.segments',[1,2]);
- Node6.a('node.color','rgba(220,220,220,1)');
- Node6.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node6.a('node.borderColor','rgba(220,220,220,1)');
- Node6.a('node.background','rgba(220,220,220,1)');
- Node6.a('node.gradient','');
- Node6.a('node.gradientcolor','rgba(220,220,220,1)');
- Node6.a('node.endCompspts',Node6endCompspts);
- Node6.a('node.startCompspts',Node6startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node6';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node6, Node6.getImage(), Node6compspts, Node6endCompspts, Node6startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node7 = new ht.Node();
- var Node7textStart, Node7textWidth, Node7lineStart, Node7align = 'left', Node7fontSize = 13.3333*_ratio.ratioY,Node7width = 64*_ratio.ratioX, Node7height = 16*_ratio.ratioY;
- (function () {
- if (Node7align === 'left') {
- Node7textStart = Node7fontSize * 0.2 > 2 ? Node7fontSize * 0.2 - 4 : Node7fontSize * 0.2 - 9;
- Node7textWidth = Node7width;
- Node7lineStart = 1;
- } else if (Node7align === 'right') {
- Node7textStart = 0;
- Node7textWidth =Node7fontSize <= 8 ? Node7width + Node7fontSize * 0.2 + 6 : Node7width - Node7fontSize * 0.2;
- Node7lineStart = (Node7width - (ht.Default.getTextSize('装机容量', ' '+ Node7fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node7align === 'center') {
- Node7textStart = -3;
- Node7textWidth = Node7width;
- Node7lineStart = Node7width - ht.Default.getTextSize('装机容量', ' '+ Node7fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node7.setImage(GD.getTextJSON(Node7width, Node7height, true, false, false, ' '+ Node7fontSize + 'px "Arial"'))
- Node7.setPosition(231*ratio.ratioX, 52*ratio.ratioY);
- Node7.setWidth(Node7width);
- Node7.setHeight(Node7height);
- Node7._nodeType = 'text';
- Node7._disallowEvert = true;
- Node7.setRotation(0*Math.PI/180);
- Node7.a('node.width', Node7width);
- Node7.a('node.height', Node7height);
- Node7.a('node.rect', [0, 0, Node7width, Node7height]);
- Node7.a('node.bordercolor','rgba(0,0,0,1)');
- Node7.a('node.borderwidth', 0);
- Node7.a('node.background','' || 'rgba(0,0,0,0)');
- Node7.a('node.gradient','');
- Node7.a('node.gradientcolor','');
- Node7.a('node.text','装机容量');
- Node7.a('node.textalign','left');
- Node7.a('node.textvAlign','middle');
- Node7.a('node.textrect', [Node7textStart, 0, Node7textWidth, Node7height]);
- Node7.a('node.color','rgba(0,0,0,1)');
- Node7.a('node.font',' '+ Node7fontSize + 'px "Arial"');
- Node7.a('node.textvisible',true);
- Node7.a('node.linefeed',false);
- if (false) {
- Node7.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node7.a('node.text') || '装机容量';
- var color=Node7.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node7width,Node7height,13.3333*_ratio.ratioY,"left",color,' '+ Node7fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node7.a('node.underlinepoints',[Node7lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node7fontSize + 2 , ht.Default.getTextSize('装机容量', ' '+ Node7fontSize + 'px "Arial"').width + 6, (Node7height - Node7fontSize) * 0.5*_ratio.ratioY + Node7fontSize + 2 ]);
- Node7.a('node.underlinevisible',false);
- Node7.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node7);
- zoomNodeList.push({
- node: Node7,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node8 = new ht.Node();
- var Node8textStart, Node8textWidth, Node8lineStart, Node8align = 'left', Node8fontSize = 13.3333*_ratio.ratioY,Node8width = 79*_ratio.ratioX, Node8height = 16*_ratio.ratioY;
- (function () {
- if (Node8align === 'left') {
- Node8textStart = Node8fontSize * 0.2 > 2 ? Node8fontSize * 0.2 - 4 : Node8fontSize * 0.2 - 9;
- Node8textWidth = Node8width;
- Node8lineStart = 1;
- } else if (Node8align === 'right') {
- Node8textStart = 0;
- Node8textWidth =Node8fontSize <= 8 ? Node8width + Node8fontSize * 0.2 + 6 : Node8width - Node8fontSize * 0.2;
- Node8lineStart = (Node8width - (ht.Default.getTextSize('月利用小时', ' '+ Node8fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node8align === 'center') {
- Node8textStart = -3;
- Node8textWidth = Node8width;
- Node8lineStart = Node8width - ht.Default.getTextSize('月利用小时', ' '+ Node8fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node8.setImage(GD.getTextJSON(Node8width, Node8height, true, false, false, ' '+ Node8fontSize + 'px "Arial"'))
- Node8.setPosition(238*ratio.ratioX, 74*ratio.ratioY);
- Node8.setWidth(Node8width);
- Node8.setHeight(Node8height);
- Node8._nodeType = 'text';
- Node8._disallowEvert = true;
- Node8.setRotation(0*Math.PI/180);
- Node8.a('node.width', Node8width);
- Node8.a('node.height', Node8height);
- Node8.a('node.rect', [0, 0, Node8width, Node8height]);
- Node8.a('node.bordercolor','rgba(0,0,0,1)');
- Node8.a('node.borderwidth', 0);
- Node8.a('node.background','' || 'rgba(0,0,0,0)');
- Node8.a('node.gradient','');
- Node8.a('node.gradientcolor','');
- Node8.a('node.text','月利用小时');
- Node8.a('node.textalign','left');
- Node8.a('node.textvAlign','middle');
- Node8.a('node.textrect', [Node8textStart, 0, Node8textWidth, Node8height]);
- Node8.a('node.color','rgba(0,0,0,1)');
- Node8.a('node.font',' '+ Node8fontSize + 'px "Arial"');
- Node8.a('node.textvisible',true);
- Node8.a('node.linefeed',false);
- if (false) {
- Node8.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node8.a('node.text') || '月利用小时';
- var color=Node8.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node8width,Node8height,13.3333*_ratio.ratioY,"left",color,' '+ Node8fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node8.a('node.underlinepoints',[Node8lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node8fontSize + 2 , ht.Default.getTextSize('月利用小时', ' '+ Node8fontSize + 'px "Arial"').width + 6, (Node8height - Node8fontSize) * 0.5*_ratio.ratioY + Node8fontSize + 2 ]);
- Node8.a('node.underlinevisible',false);
- Node8.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node8);
- zoomNodeList.push({
- node: Node8,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node9 = new ht.Node();
- var Node9textStart, Node9textWidth, Node9lineStart, Node9align = 'left', Node9fontSize = 13.3333*_ratio.ratioY,Node9width = 79*_ratio.ratioX, Node9height = 16*_ratio.ratioY;
- (function () {
- if (Node9align === 'left') {
- Node9textStart = Node9fontSize * 0.2 > 2 ? Node9fontSize * 0.2 - 4 : Node9fontSize * 0.2 - 9;
- Node9textWidth = Node9width;
- Node9lineStart = 1;
- } else if (Node9align === 'right') {
- Node9textStart = 0;
- Node9textWidth =Node9fontSize <= 8 ? Node9width + Node9fontSize * 0.2 + 6 : Node9width - Node9fontSize * 0.2;
- Node9lineStart = (Node9width - (ht.Default.getTextSize('年利用小时', ' '+ Node9fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node9align === 'center') {
- Node9textStart = -3;
- Node9textWidth = Node9width;
- Node9lineStart = Node9width - ht.Default.getTextSize('年利用小时', ' '+ Node9fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node9.setImage(GD.getTextJSON(Node9width, Node9height, true, false, false, ' '+ Node9fontSize + 'px "Arial"'))
- Node9.setPosition(238*ratio.ratioX, 98*ratio.ratioY);
- Node9.setWidth(Node9width);
- Node9.setHeight(Node9height);
- Node9._nodeType = 'text';
- Node9._disallowEvert = true;
- Node9.setRotation(0*Math.PI/180);
- Node9.a('node.width', Node9width);
- Node9.a('node.height', Node9height);
- Node9.a('node.rect', [0, 0, Node9width, Node9height]);
- Node9.a('node.bordercolor','rgba(0,0,0,1)');
- Node9.a('node.borderwidth', 0);
- Node9.a('node.background','' || 'rgba(0,0,0,0)');
- Node9.a('node.gradient','');
- Node9.a('node.gradientcolor','');
- Node9.a('node.text','年利用小时');
- Node9.a('node.textalign','left');
- Node9.a('node.textvAlign','middle');
- Node9.a('node.textrect', [Node9textStart, 0, Node9textWidth, Node9height]);
- Node9.a('node.color','rgba(0,0,0,1)');
- Node9.a('node.font',' '+ Node9fontSize + 'px "Arial"');
- Node9.a('node.textvisible',true);
- Node9.a('node.linefeed',false);
- if (false) {
- Node9.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node9.a('node.text') || '年利用小时';
- var color=Node9.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node9width,Node9height,13.3333*_ratio.ratioY,"left",color,' '+ Node9fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node9.a('node.underlinepoints',[Node9lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node9fontSize + 2 , ht.Default.getTextSize('年利用小时', ' '+ Node9fontSize + 'px "Arial"').width + 6, (Node9height - Node9fontSize) * 0.5*_ratio.ratioY + Node9fontSize + 2 ]);
- Node9.a('node.underlinevisible',false);
- Node9.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node9);
- zoomNodeList.push({
- node: Node9,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node10 = new ht.Node();
- var Node10textStart, Node10textWidth, Node10lineStart, Node10align = 'left', Node10fontSize = 13.3333*_ratio.ratioY,Node10width = 110*_ratio.ratioX, Node10height = 16*_ratio.ratioY;
- (function () {
- if (Node10align === 'left') {
- Node10textStart = Node10fontSize * 0.2 > 2 ? Node10fontSize * 0.2 - 4 : Node10fontSize * 0.2 - 9;
- Node10textWidth = Node10width;
- Node10lineStart = 1;
- } else if (Node10align === 'right') {
- Node10textStart = 0;
- Node10textWidth =Node10fontSize <= 8 ? Node10width + Node10fontSize * 0.2 + 6 : Node10width - Node10fontSize * 0.2;
- Node10lineStart = (Node10width - (ht.Default.getTextSize('月设备可利用率', ' '+ Node10fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node10align === 'center') {
- Node10textStart = -3;
- Node10textWidth = Node10width;
- Node10lineStart = Node10width - ht.Default.getTextSize('月设备可利用率', ' '+ Node10fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node10.setImage(GD.getTextJSON(Node10width, Node10height, true, false, false, ' '+ Node10fontSize + 'px "Arial"'))
- Node10.setPosition(254*ratio.ratioX, 124*ratio.ratioY);
- Node10.setWidth(Node10width);
- Node10.setHeight(Node10height);
- Node10._nodeType = 'text';
- Node10._disallowEvert = true;
- Node10.setRotation(0*Math.PI/180);
- Node10.a('node.width', Node10width);
- Node10.a('node.height', Node10height);
- Node10.a('node.rect', [0, 0, Node10width, Node10height]);
- Node10.a('node.bordercolor','rgba(0,0,0,1)');
- Node10.a('node.borderwidth', 0);
- Node10.a('node.background','' || 'rgba(0,0,0,0)');
- Node10.a('node.gradient','');
- Node10.a('node.gradientcolor','');
- Node10.a('node.text','月设备可利用率');
- Node10.a('node.textalign','left');
- Node10.a('node.textvAlign','middle');
- Node10.a('node.textrect', [Node10textStart, 0, Node10textWidth, Node10height]);
- Node10.a('node.color','rgba(0,0,0,1)');
- Node10.a('node.font',' '+ Node10fontSize + 'px "Arial"');
- Node10.a('node.textvisible',true);
- Node10.a('node.linefeed',false);
- if (false) {
- Node10.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node10.a('node.text') || '月设备可利用率';
- var color=Node10.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node10width,Node10height,13.3333*_ratio.ratioY,"left",color,' '+ Node10fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node10.a('node.underlinepoints',[Node10lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node10fontSize + 2 , ht.Default.getTextSize('月设备可利用率', ' '+ Node10fontSize + 'px "Arial"').width + 6, (Node10height - Node10fontSize) * 0.5*_ratio.ratioY + Node10fontSize + 2 ]);
- Node10.a('node.underlinevisible',false);
- Node10.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node10);
- zoomNodeList.push({
- node: Node10,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node11 = new ht.Node();
- var Node11textStart, Node11textWidth, Node11lineStart, Node11align = 'left', Node11fontSize = 13.3333*_ratio.ratioY,Node11width = 125*_ratio.ratioX, Node11height = 16*_ratio.ratioY;
- (function () {
- if (Node11align === 'left') {
- Node11textStart = Node11fontSize * 0.2 > 2 ? Node11fontSize * 0.2 - 4 : Node11fontSize * 0.2 - 9;
- Node11textWidth = Node11width;
- Node11lineStart = 1;
- } else if (Node11align === 'right') {
- Node11textStart = 0;
- Node11textWidth =Node11fontSize <= 8 ? Node11width + Node11fontSize * 0.2 + 6 : Node11width - Node11fontSize * 0.2;
- Node11lineStart = (Node11width - (ht.Default.getTextSize('月等效可利用系数', ' '+ Node11fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node11align === 'center') {
- Node11textStart = -3;
- Node11textWidth = Node11width;
- Node11lineStart = Node11width - ht.Default.getTextSize('月等效可利用系数', ' '+ Node11fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node11.setImage(GD.getTextJSON(Node11width, Node11height, true, false, false, ' '+ Node11fontSize + 'px "Arial"'))
- Node11.setPosition(261*ratio.ratioX, 149*ratio.ratioY);
- Node11.setWidth(Node11width);
- Node11.setHeight(Node11height);
- Node11._nodeType = 'text';
- Node11._disallowEvert = true;
- Node11.setRotation(0*Math.PI/180);
- Node11.a('node.width', Node11width);
- Node11.a('node.height', Node11height);
- Node11.a('node.rect', [0, 0, Node11width, Node11height]);
- Node11.a('node.bordercolor','rgba(0,0,0,1)');
- Node11.a('node.borderwidth', 0);
- Node11.a('node.background','' || 'rgba(0,0,0,0)');
- Node11.a('node.gradient','');
- Node11.a('node.gradientcolor','');
- Node11.a('node.text','月等效可利用系数');
- Node11.a('node.textalign','left');
- Node11.a('node.textvAlign','middle');
- Node11.a('node.textrect', [Node11textStart, 0, Node11textWidth, Node11height]);
- Node11.a('node.color','rgba(0,0,0,1)');
- Node11.a('node.font',' '+ Node11fontSize + 'px "Arial"');
- Node11.a('node.textvisible',true);
- Node11.a('node.linefeed',false);
- if (false) {
- Node11.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node11.a('node.text') || '月等效可利用系数';
- var color=Node11.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node11width,Node11height,13.3333*_ratio.ratioY,"left",color,' '+ Node11fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node11.a('node.underlinepoints',[Node11lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node11fontSize + 2 , ht.Default.getTextSize('月等效可利用系数', ' '+ Node11fontSize + 'px "Arial"').width + 6, (Node11height - Node11fontSize) * 0.5*_ratio.ratioY + Node11fontSize + 2 ]);
- Node11.a('node.underlinevisible',false);
- Node11.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node11);
- zoomNodeList.push({
- node: Node11,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node12 = new ht.Node();
- var Node12textStart, Node12textWidth, Node12lineStart, Node12align = 'left', Node12fontSize = 13.3333*_ratio.ratioY,Node12width = 32*_ratio.ratioX, Node12height = 16*_ratio.ratioY;
- (function () {
- if (Node12align === 'left') {
- Node12textStart = Node12fontSize * 0.2 > 2 ? Node12fontSize * 0.2 - 4 : Node12fontSize * 0.2 - 9;
- Node12textWidth = Node12width;
- Node12lineStart = 1;
- } else if (Node12align === 'right') {
- Node12textStart = 0;
- Node12textWidth =Node12fontSize <= 8 ? Node12width + Node12fontSize * 0.2 + 6 : Node12width - Node12fontSize * 0.2;
- Node12lineStart = (Node12width - (ht.Default.getTextSize('0', 'bold '+ Node12fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node12align === 'center') {
- Node12textStart = -3;
- Node12textWidth = Node12width;
- Node12lineStart = Node12width - ht.Default.getTextSize('0', 'bold '+ Node12fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node12.setImage(GD.getTextJSON(Node12width, Node12height, true, false, false, 'bold '+ Node12fontSize + 'px "Arial"'))
- Node12.setPosition(342*ratio.ratioX, 50*ratio.ratioY);
- Node12.setWidth(Node12width);
- Node12.setHeight(Node12height);
- Node12._nodeType = 'text';
- Node12._disallowEvert = true;
- Node12.setRotation(0*Math.PI/180);
- Node12.a('node.width', Node12width);
- Node12.a('node.height', Node12height);
- Node12.a('node.rect', [0, 0, Node12width, Node12height]);
- Node12.a('node.bordercolor','rgba(0,0,0,1)');
- Node12.a('node.borderwidth', 0);
- Node12.a('node.background','' || 'rgba(0,0,0,0)');
- Node12.a('node.gradient','');
- Node12.a('node.gradientcolor','');
- Node12.a('node.text','0');
- Node12.a('node.textalign','left');
- Node12.a('node.textvAlign','middle');
- Node12.a('node.textrect', [Node12textStart, 0, Node12textWidth, Node12height]);
- Node12.a('node.color','rgba(0,0,0,1)');
- Node12.a('node.font','bold '+ Node12fontSize + 'px "Arial"');
- Node12.a('node.textvisible',true);
- Node12.a('node.linefeed',false);
- if (false) {
- Node12.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node12.a('node.text') || '0';
- var color=Node12.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node12width,Node12height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node12fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node12.a('node.underlinepoints',[Node12lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node12fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node12fontSize + 'px "Arial"').width + 6, (Node12height - Node12fontSize) * 0.5*_ratio.ratioY + Node12fontSize + 2 ]);
- Node12.a('node.underlinevisible',false);
- Node12.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node12);
- zoomNodeList.push({
- node: Node12,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node13 = new ht.Node();
- var Node13textStart, Node13textWidth, Node13lineStart, Node13align = 'left', Node13fontSize = 13.3333*_ratio.ratioY,Node13width = 22*_ratio.ratioX, Node13height = 16*_ratio.ratioY;
- (function () {
- if (Node13align === 'left') {
- Node13textStart = Node13fontSize * 0.2 > 2 ? Node13fontSize * 0.2 - 4 : Node13fontSize * 0.2 - 9;
- Node13textWidth = Node13width;
- Node13lineStart = 1;
- } else if (Node13align === 'right') {
- Node13textStart = 0;
- Node13textWidth =Node13fontSize <= 8 ? Node13width + Node13fontSize * 0.2 + 6 : Node13width - Node13fontSize * 0.2;
- Node13lineStart = (Node13width - (ht.Default.getTextSize('0', 'bold '+ Node13fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node13align === 'center') {
- Node13textStart = -3;
- Node13textWidth = Node13width;
- Node13lineStart = Node13width - ht.Default.getTextSize('0', 'bold '+ Node13fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node13.setImage(GD.getTextJSON(Node13width, Node13height, true, false, false, 'bold '+ Node13fontSize + 'px "Arial"'))
- Node13.setPosition(338*ratio.ratioX, 75*ratio.ratioY);
- Node13.setWidth(Node13width);
- Node13.setHeight(Node13height);
- Node13._nodeType = 'text';
- Node13._disallowEvert = true;
- Node13.setRotation(0*Math.PI/180);
- Node13.a('node.width', Node13width);
- Node13.a('node.height', Node13height);
- Node13.a('node.rect', [0, 0, Node13width, Node13height]);
- Node13.a('node.bordercolor','rgba(0,0,0,1)');
- Node13.a('node.borderwidth', 0);
- Node13.a('node.background','' || 'rgba(0,0,0,0)');
- Node13.a('node.gradient','');
- Node13.a('node.gradientcolor','');
- Node13.a('node.text','0');
- Node13.a('node.textalign','left');
- Node13.a('node.textvAlign','middle');
- Node13.a('node.textrect', [Node13textStart, 0, Node13textWidth, Node13height]);
- Node13.a('node.color','rgba(0,0,0,1)');
- Node13.a('node.font','bold '+ Node13fontSize + 'px "Arial"');
- Node13.a('node.textvisible',true);
- Node13.a('node.linefeed',false);
- if (false) {
- Node13.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node13.a('node.text') || '0';
- var color=Node13.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node13width,Node13height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node13fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node13.a('node.underlinepoints',[Node13lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node13fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node13fontSize + 'px "Arial"').width + 6, (Node13height - Node13fontSize) * 0.5*_ratio.ratioY + Node13fontSize + 2 ]);
- Node13.a('node.underlinevisible',false);
- Node13.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node13);
- zoomNodeList.push({
- node: Node13,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node14 = new ht.Node();
- var Node14textStart, Node14textWidth, Node14lineStart, Node14align = 'left', Node14fontSize = 13.3333*_ratio.ratioY,Node14width = 32*_ratio.ratioX, Node14height = 16*_ratio.ratioY;
- (function () {
- if (Node14align === 'left') {
- Node14textStart = Node14fontSize * 0.2 > 2 ? Node14fontSize * 0.2 - 4 : Node14fontSize * 0.2 - 9;
- Node14textWidth = Node14width;
- Node14lineStart = 1;
- } else if (Node14align === 'right') {
- Node14textStart = 0;
- Node14textWidth =Node14fontSize <= 8 ? Node14width + Node14fontSize * 0.2 + 6 : Node14width - Node14fontSize * 0.2;
- Node14lineStart = (Node14width - (ht.Default.getTextSize('0', 'bold '+ Node14fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node14align === 'center') {
- Node14textStart = -3;
- Node14textWidth = Node14width;
- Node14lineStart = Node14width - ht.Default.getTextSize('0', 'bold '+ Node14fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node14.setImage(GD.getTextJSON(Node14width, Node14height, true, false, false, 'bold '+ Node14fontSize + 'px "Arial"'))
- Node14.setPosition(344*ratio.ratioX, 101*ratio.ratioY);
- Node14.setWidth(Node14width);
- Node14.setHeight(Node14height);
- Node14._nodeType = 'text';
- Node14._disallowEvert = true;
- Node14.setRotation(0*Math.PI/180);
- Node14.a('node.width', Node14width);
- Node14.a('node.height', Node14height);
- Node14.a('node.rect', [0, 0, Node14width, Node14height]);
- Node14.a('node.bordercolor','rgba(0,0,0,1)');
- Node14.a('node.borderwidth', 0);
- Node14.a('node.background','' || 'rgba(0,0,0,0)');
- Node14.a('node.gradient','');
- Node14.a('node.gradientcolor','');
- Node14.a('node.text','0');
- Node14.a('node.textalign','left');
- Node14.a('node.textvAlign','middle');
- Node14.a('node.textrect', [Node14textStart, 0, Node14textWidth, Node14height]);
- Node14.a('node.color','rgba(0,0,0,1)');
- Node14.a('node.font','bold '+ Node14fontSize + 'px "Arial"');
- Node14.a('node.textvisible',true);
- Node14.a('node.linefeed',false);
- if (false) {
- Node14.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node14.a('node.text') || '0';
- var color=Node14.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node14width,Node14height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node14fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node14.a('node.underlinepoints',[Node14lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node14fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node14fontSize + 'px "Arial"').width + 6, (Node14height - Node14fontSize) * 0.5*_ratio.ratioY + Node14fontSize + 2 ]);
- Node14.a('node.underlinevisible',false);
- Node14.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node14);
- zoomNodeList.push({
- node: Node14,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node15 = new ht.Node();
- var Node15textStart, Node15textWidth, Node15lineStart, Node15align = 'left', Node15fontSize = 13.3333*_ratio.ratioY,Node15width = 9*_ratio.ratioX, Node15height = 16*_ratio.ratioY;
- (function () {
- if (Node15align === 'left') {
- Node15textStart = Node15fontSize * 0.2 > 2 ? Node15fontSize * 0.2 - 4 : Node15fontSize * 0.2 - 9;
- Node15textWidth = Node15width;
- Node15lineStart = 1;
- } else if (Node15align === 'right') {
- Node15textStart = 0;
- Node15textWidth =Node15fontSize <= 8 ? Node15width + Node15fontSize * 0.2 + 6 : Node15width - Node15fontSize * 0.2;
- Node15lineStart = (Node15width - (ht.Default.getTextSize('-', 'bold '+ Node15fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node15align === 'center') {
- Node15textStart = -3;
- Node15textWidth = Node15width;
- Node15lineStart = Node15width - ht.Default.getTextSize('-', 'bold '+ Node15fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node15.setImage(GD.getTextJSON(Node15width, Node15height, true, false, false, 'bold '+ Node15fontSize + 'px "Arial"'))
- Node15.setPosition(336*ratio.ratioX, 121*ratio.ratioY);
- Node15.setWidth(Node15width);
- Node15.setHeight(Node15height);
- Node15._nodeType = 'text';
- Node15._disallowEvert = true;
- Node15.setRotation(0*Math.PI/180);
- Node15.a('node.width', Node15width);
- Node15.a('node.height', Node15height);
- Node15.a('node.rect', [0, 0, Node15width, Node15height]);
- Node15.a('node.bordercolor','rgba(0,0,0,1)');
- Node15.a('node.borderwidth', 0);
- Node15.a('node.background','' || 'rgba(0,0,0,0)');
- Node15.a('node.gradient','');
- Node15.a('node.gradientcolor','');
- Node15.a('node.text','-');
- Node15.a('node.textalign','left');
- Node15.a('node.textvAlign','middle');
- Node15.a('node.textrect', [Node15textStart, 0, Node15textWidth, Node15height]);
- Node15.a('node.color','rgba(0,0,0,1)');
- Node15.a('node.font','bold '+ Node15fontSize + 'px "Arial"');
- Node15.a('node.textvisible',true);
- Node15.a('node.linefeed',false);
- if (false) {
- Node15.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node15.a('node.text') || '-';
- var color=Node15.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node15width,Node15height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node15fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node15.a('node.underlinepoints',[Node15lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node15fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node15fontSize + 'px "Arial"').width + 6, (Node15height - Node15fontSize) * 0.5*_ratio.ratioY + Node15fontSize + 2 ]);
- Node15.a('node.underlinevisible',false);
- Node15.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node15);
- zoomNodeList.push({
- node: Node15,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node16 = new ht.Node();
- var Node16textStart, Node16textWidth, Node16lineStart, Node16align = 'left', Node16fontSize = 13.3333*_ratio.ratioY,Node16width = 39*_ratio.ratioX, Node16height = 16*_ratio.ratioY;
- (function () {
- if (Node16align === 'left') {
- Node16textStart = Node16fontSize * 0.2 > 2 ? Node16fontSize * 0.2 - 4 : Node16fontSize * 0.2 - 9;
- Node16textWidth = Node16width;
- Node16lineStart = 1;
- } else if (Node16align === 'right') {
- Node16textStart = 0;
- Node16textWidth =Node16fontSize <= 8 ? Node16width + Node16fontSize * 0.2 + 6 : Node16width - Node16fontSize * 0.2;
- Node16lineStart = (Node16width - (ht.Default.getTextSize('万kW', ' '+ Node16fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node16align === 'center') {
- Node16textStart = -3;
- Node16textWidth = Node16width;
- Node16lineStart = Node16width - ht.Default.getTextSize('万kW', ' '+ Node16fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node16.setImage(GD.getTextJSON(Node16width, Node16height, true, false, false, ' '+ Node16fontSize + 'px "Arial"'))
- Node16.setPosition(414*ratio.ratioX, 47*ratio.ratioY);
- Node16.setWidth(Node16width);
- Node16.setHeight(Node16height);
- Node16._nodeType = 'text';
- Node16._disallowEvert = true;
- Node16.setRotation(0*Math.PI/180);
- Node16.a('node.width', Node16width);
- Node16.a('node.height', Node16height);
- Node16.a('node.rect', [0, 0, Node16width, Node16height]);
- Node16.a('node.bordercolor','rgba(169,169,169,1)');
- Node16.a('node.borderwidth', 0);
- Node16.a('node.background','' || 'rgba(0,0,0,0)');
- Node16.a('node.gradient','');
- Node16.a('node.gradientcolor','');
- Node16.a('node.text','万kW');
- Node16.a('node.textalign','left');
- Node16.a('node.textvAlign','middle');
- Node16.a('node.textrect', [Node16textStart, 0, Node16textWidth, Node16height]);
- Node16.a('node.color','rgba(169,169,169,1)');
- Node16.a('node.font',' '+ Node16fontSize + 'px "Arial"');
- Node16.a('node.textvisible',true);
- Node16.a('node.linefeed',false);
- if (false) {
- Node16.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node16.a('node.text') || '万kW';
- var color=Node16.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node16width,Node16height,13.3333*_ratio.ratioY,"left",color,' '+ Node16fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node16.a('node.underlinepoints',[Node16lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node16fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node16fontSize + 'px "Arial"').width + 6, (Node16height - Node16fontSize) * 0.5*_ratio.ratioY + Node16fontSize + 2 ]);
- Node16.a('node.underlinevisible',false);
- Node16.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node16);
- zoomNodeList.push({
- node: Node16,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node17type = 'rect';
- var Node17 = new ht.Node(),
- Node17BorderWidth = 0*2;
- if (Node17type === 'arc') {
- Node17BorderWidth *= 0;
- }
- Node17.setImage(GD.getRectJSON(29*_ratio.ratioX, 122*_ratio.ratioY, Node17type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node17.setPosition(25*ratio.ratioX, 98*ratio.ratioY);
- Node17.setSize(29*_ratio.ratioX, 122*_ratio.ratioY);
- Node17.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node17.a('node.width', 29*_ratio.ratioX);
- Node17.a('node.height', 122*_ratio.ratioY);
- Node17.a('node.type', Node17type);
- Node17.a('node.rect', [0, 0, 29*_ratio.ratioX, 122*_ratio.ratioY]);
- Node17.a('node.background', 'rgba(0,132,255,1)');
- Node17.a('node.gradientcolor', 'rgba(0,132,255,1)');
- Node17.a('node.gradient', '');
- Node17.a('node.borderwidth', Node17BorderWidth);
- Node17.a('node.color', 'rgba(0,0,0,0)');
- Node17.a('node.fillrect', [0,0,0,0]);
- Node17.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node17.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node17.a('node.fillgradient', '');
- if (Node17type !== 'rect') {
- Node17.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node17.a('node.arcTo', parseFloat('@arcTo@'));
- Node17.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node17type === 'arc') {
- Node17.a('node.arcOval', true);
- }
- Node17.setRotation(0*Math.PI/180);
- Node17.borderWidth = Node17BorderWidth;
- Node17.borderFillwidth = Node17BorderWidth;
- dataModel.add(Node17);
- Node17._nodename = 'Node17'
- Node17._nodeType = 'rect';
- zoomNodeList.push({
- node: Node17,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node17, Node17.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node18 = new ht.Node();
- var Node18textStart, Node18textWidth, Node18lineStart, Node18align = 'center', Node18fontSize = 13.3333*_ratio.ratioY,Node18width = 13*_ratio.ratioX, Node18height = 98*_ratio.ratioY;
- (function () {
- if (Node18align === 'left') {
- Node18textStart = Node18fontSize * 0.2 > 2 ? Node18fontSize * 0.2 - 4 : Node18fontSize * 0.2 - 9;
- Node18textWidth = Node18width;
- Node18lineStart = 1;
- } else if (Node18align === 'right') {
- Node18textStart = 0;
- Node18textWidth =Node18fontSize <= 8 ? Node18width + Node18fontSize * 0.2 + 6 : Node18width - Node18fontSize * 0.2;
- Node18lineStart = (Node18width - (ht.Default.getTextSize('综合指标', 'bold '+ Node18fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node18align === 'center') {
- Node18textStart = -3;
- Node18textWidth = Node18width;
- Node18lineStart = Node18width - ht.Default.getTextSize('综合指标', 'bold '+ Node18fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node18.setImage(GD.getTextJSON(Node18width, Node18height, false, true, false, 'bold '+ Node18fontSize + 'px "Arial"'))
- Node18.setPosition(25*ratio.ratioX, 95*ratio.ratioY);
- Node18.setWidth(Node18width);
- Node18.setHeight(Node18height);
- Node18._nodeType = 'text';
- Node18._disallowEvert = true;
- Node18.setRotation(0*Math.PI/180);
- Node18.a('node.width', Node18width);
- Node18.a('node.height', Node18height);
- Node18.a('node.rect', [0, 0, Node18width, Node18height]);
- Node18.a('node.bordercolor','rgba(255,255,255,1)');
- Node18.a('node.borderwidth', 0);
- Node18.a('node.background','' || 'rgba(0,0,0,0)');
- Node18.a('node.gradient','');
- Node18.a('node.gradientcolor','');
- Node18.a('node.text','综合指标');
- Node18.a('node.textalign','center');
- Node18.a('node.textvAlign','middle');
- Node18.a('node.textrect', [Node18textStart, 0, Node18textWidth, Node18height]);
- Node18.a('node.color','rgba(255,255,255,1)');
- Node18.a('node.font','bold '+ Node18fontSize + 'px "Arial"');
- Node18.a('node.textvisible',false);
- Node18.a('node.linefeed',true);
- if (true) {
- Node18.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node18.a('node.text') || '综合指标';
- var color=Node18.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node18width,Node18height,13.3333*_ratio.ratioY,"center",color,'bold '+ Node18fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node18.a('node.underlinepoints',[Node18lineStart, (98 - 13.3333) * 0.5 * _ratio.ratioY + Node18fontSize + 2 , ht.Default.getTextSize('综合指标', 'bold '+ Node18fontSize + 'px "Arial"').width + 6, (Node18height - Node18fontSize) * 0.5*_ratio.ratioY + Node18fontSize + 2 ]);
- Node18.a('node.underlinevisible',false);
- Node18.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node18);
- zoomNodeList.push({
- node: Node18,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node19type = 'rect';
- var Node19 = new ht.Node(),
- Node19BorderWidth = 1*2;
- if (Node19type === 'arc') {
- Node19BorderWidth *= 1;
- }
- Node19.setImage(GD.getRectJSON(155*_ratio.ratioX, 122*_ratio.ratioY, Node19type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node19.setPosition(118*ratio.ratioX, 98*ratio.ratioY);
- Node19.setSize(155*_ratio.ratioX, 122*_ratio.ratioY);
- Node19.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node19.a('node.width', 155*_ratio.ratioX);
- Node19.a('node.height', 122*_ratio.ratioY);
- Node19.a('node.type', Node19type);
- Node19.a('node.rect', [0, 0, 155*_ratio.ratioX, 122*_ratio.ratioY]);
- Node19.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node19.a('node.gradientcolor', '');
- Node19.a('node.gradient', '');
- Node19.a('node.borderwidth', Node19BorderWidth);
- Node19.a('node.color', 'rgba(220,220,220,1)');
- Node19.a('node.fillrect', [0,0,0,0]);
- Node19.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node19.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node19.a('node.fillgradient', '');
- if (Node19type !== 'rect') {
- Node19.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node19.a('node.arcTo', parseFloat('@arcTo@'));
- Node19.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node19type === 'arc') {
- Node19.a('node.arcOval', true);
- }
- Node19.setRotation(0*Math.PI/180);
- Node19.borderWidth = Node19BorderWidth;
- Node19.borderFillwidth = Node19BorderWidth;
- dataModel.add(Node19);
- Node19._nodename = 'Node19'
- Node19._nodeType = 'rect';
- zoomNodeList.push({
- node: Node19,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node19, Node19.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node20type = 'rect';
- var Node20 = new ht.Node(),
- Node20BorderWidth = 0*2;
- if (Node20type === 'arc') {
- Node20BorderWidth *= 0;
- }
- Node20.setImage(GD.getRectJSON(145*_ratio.ratioX, 24*_ratio.ratioY, Node20type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node20.setPosition(117*ratio.ratioX, 49*ratio.ratioY);
- Node20.setSize(145*_ratio.ratioX, 24*_ratio.ratioY);
- Node20.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node20.a('node.width', 145*_ratio.ratioX);
- Node20.a('node.height', 24*_ratio.ratioY);
- Node20.a('node.type', Node20type);
- Node20.a('node.rect', [0, 0, 145*_ratio.ratioX, 24*_ratio.ratioY]);
- Node20.a('node.background', 'rgba(211,211,211,1)');
- Node20.a('node.gradientcolor', 'rgba(211,211,211,1)');
- Node20.a('node.gradient', '');
- Node20.a('node.borderwidth', Node20BorderWidth);
- Node20.a('node.color', 'rgba(0,0,0,0)');
- Node20.a('node.fillrect', [0,0,0,0]);
- Node20.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node20.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node20.a('node.fillgradient', '');
- if (Node20type !== 'rect') {
- Node20.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node20.a('node.arcTo', parseFloat('@arcTo@'));
- Node20.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node20type === 'arc') {
- Node20.a('node.arcOval', true);
- }
- Node20.setRotation(0*Math.PI/180);
- Node20.borderWidth = Node20BorderWidth;
- Node20.borderFillwidth = Node20BorderWidth;
- dataModel.add(Node20);
- Node20._nodename = 'Node20'
- Node20._nodeType = 'rect';
- zoomNodeList.push({
- node: Node20,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node20, Node20.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node21 = new ht.Node();
- var Node21textStart, Node21textWidth, Node21lineStart, Node21align = 'left', Node21fontSize = 15.99996*_ratio.ratioY,Node21width = 77*_ratio.ratioX, Node21height = 20*_ratio.ratioY;
- (function () {
- if (Node21align === 'left') {
- Node21textStart = Node21fontSize * 0.2 > 2 ? Node21fontSize * 0.2 - 4 : Node21fontSize * 0.2 - 9;
- Node21textWidth = Node21width;
- Node21lineStart = 1;
- } else if (Node21align === 'right') {
- Node21textStart = 0;
- Node21textWidth =Node21fontSize <= 8 ? Node21width + Node21fontSize * 0.2 + 6 : Node21width - Node21fontSize * 0.2;
- Node21lineStart = (Node21width - (ht.Default.getTextSize('安全天数', ' '+ Node21fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node21align === 'center') {
- Node21textStart = -3;
- Node21textWidth = Node21width;
- Node21lineStart = Node21width - ht.Default.getTextSize('安全天数', ' '+ Node21fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node21.setImage(GD.getTextJSON(Node21width, Node21height, true, false, false, ' '+ Node21fontSize + 'px "Arial"'))
- Node21.setPosition(102*ratio.ratioX, 49*ratio.ratioY);
- Node21.setWidth(Node21width);
- Node21.setHeight(Node21height);
- Node21._nodeType = 'text';
- Node21._disallowEvert = true;
- Node21.setRotation(0*Math.PI/180);
- Node21.a('node.width', Node21width);
- Node21.a('node.height', Node21height);
- Node21.a('node.rect', [0, 0, Node21width, Node21height]);
- Node21.a('node.bordercolor','rgba(0,0,0,1)');
- Node21.a('node.borderwidth', 0);
- Node21.a('node.background','' || 'rgba(0,0,0,0)');
- Node21.a('node.gradient','');
- Node21.a('node.gradientcolor','');
- Node21.a('node.text','安全天数');
- Node21.a('node.textalign','left');
- Node21.a('node.textvAlign','middle');
- Node21.a('node.textrect', [Node21textStart, 0, Node21textWidth, Node21height]);
- Node21.a('node.color','rgba(0,0,0,1)');
- Node21.a('node.font',' '+ Node21fontSize + 'px "Arial"');
- Node21.a('node.textvisible',true);
- Node21.a('node.linefeed',false);
- if (false) {
- Node21.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node21.a('node.text') || '安全天数';
- var color=Node21.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,15.99996*0.5*_ratio.ratioY,Node21width,Node21height,15.99996*_ratio.ratioY,"left",color,' '+ Node21fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node21.a('node.underlinepoints',[Node21lineStart, (20 - 15.99996) * 0.5 * _ratio.ratioY + Node21fontSize + 2 , ht.Default.getTextSize('安全天数', ' '+ Node21fontSize + 'px "Arial"').width + 6, (Node21height - Node21fontSize) * 0.5*_ratio.ratioY + Node21fontSize + 2 ]);
- Node21.a('node.underlinevisible',false);
- Node21.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node21);
- zoomNodeList.push({
- node: Node21,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node22type = 'rect';
- var Node22 = new ht.Node(),
- Node22BorderWidth = 0*2;
- if (Node22type === 'arc') {
- Node22BorderWidth *= 0;
- }
- Node22.setImage(GD.getRectJSON(32*_ratio.ratioX, 32*_ratio.ratioY, Node22type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node22.setPosition(174*ratio.ratioX, 142*ratio.ratioY);
- Node22.setSize(32*_ratio.ratioX, 32*_ratio.ratioY);
- Node22.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node22.a('node.width', 32*_ratio.ratioX);
- Node22.a('node.height', 32*_ratio.ratioY);
- Node22.a('node.type', Node22type);
- Node22.a('node.rect', [0, 0, 32*_ratio.ratioX, 32*_ratio.ratioY]);
- Node22.a('node.background', 'rgba(255,128,0,1)');
- Node22.a('node.gradientcolor', 'rgba(255,128,0,1)');
- Node22.a('node.gradient', '');
- Node22.a('node.borderwidth', Node22BorderWidth);
- Node22.a('node.color', 'rgba(0,0,0,0)');
- Node22.a('node.fillrect', [0,0,0,0]);
- Node22.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node22.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node22.a('node.fillgradient', '');
- if (Node22type !== 'rect') {
- Node22.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node22.a('node.arcTo', parseFloat('@arcTo@'));
- Node22.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node22type === 'arc') {
- Node22.a('node.arcOval', true);
- }
- Node22.setRotation(0*Math.PI/180);
- Node22.borderWidth = Node22BorderWidth;
- Node22.borderFillwidth = Node22BorderWidth;
- dataModel.add(Node22);
- Node22._nodename = 'Node22'
- Node22._nodeType = 'rect';
- zoomNodeList.push({
- node: Node22,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node22, Node22.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node23 = new ht.Node();
- var Node23textStart, Node23textWidth, Node23lineStart, Node23align = 'left', Node23fontSize = 15.99996*_ratio.ratioY,Node23width = 23*_ratio.ratioX, Node23height = 20*_ratio.ratioY;
- (function () {
- if (Node23align === 'left') {
- Node23textStart = Node23fontSize * 0.2 > 2 ? Node23fontSize * 0.2 - 4 : Node23fontSize * 0.2 - 9;
- Node23textWidth = Node23width;
- Node23lineStart = 1;
- } else if (Node23align === 'right') {
- Node23textStart = 0;
- Node23textWidth =Node23fontSize <= 8 ? Node23width + Node23fontSize * 0.2 + 6 : Node23width - Node23fontSize * 0.2;
- Node23lineStart = (Node23width - (ht.Default.getTextSize('天', ' '+ Node23fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node23align === 'center') {
- Node23textStart = -3;
- Node23textWidth = Node23width;
- Node23lineStart = Node23width - ht.Default.getTextSize('天', ' '+ Node23fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node23.setImage(GD.getTextJSON(Node23width, Node23height, true, false, false, ' '+ Node23fontSize + 'px "Arial"'))
- Node23.setPosition(172*ratio.ratioX, 142*ratio.ratioY);
- Node23.setWidth(Node23width);
- Node23.setHeight(Node23height);
- Node23._nodeType = 'text';
- Node23._disallowEvert = true;
- Node23.setRotation(0*Math.PI/180);
- Node23.a('node.width', Node23width);
- Node23.a('node.height', Node23height);
- Node23.a('node.rect', [0, 0, Node23width, Node23height]);
- Node23.a('node.bordercolor','rgba(255,255,255,1)');
- Node23.a('node.borderwidth', 0);
- Node23.a('node.background','' || 'rgba(0,0,0,0)');
- Node23.a('node.gradient','');
- Node23.a('node.gradientcolor','');
- Node23.a('node.text','天');
- Node23.a('node.textalign','left');
- Node23.a('node.textvAlign','middle');
- Node23.a('node.textrect', [Node23textStart, 0, Node23textWidth, Node23height]);
- Node23.a('node.color','rgba(255,255,255,1)');
- Node23.a('node.font',' '+ Node23fontSize + 'px "Arial"');
- Node23.a('node.textvisible',true);
- Node23.a('node.linefeed',false);
- if (false) {
- Node23.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node23.a('node.text') || '天';
- var color=Node23.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,15.99996*0.5*_ratio.ratioY,Node23width,Node23height,15.99996*_ratio.ratioY,"left",color,' '+ Node23fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node23.a('node.underlinepoints',[Node23lineStart, (20 - 15.99996) * 0.5 * _ratio.ratioY + Node23fontSize + 2 , ht.Default.getTextSize('天', ' '+ Node23fontSize + 'px "Arial"').width + 6, (Node23height - Node23fontSize) * 0.5*_ratio.ratioY + Node23fontSize + 2 ]);
- Node23.a('node.underlinevisible',false);
- Node23.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node23);
- zoomNodeList.push({
- node: Node23,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node24 = new ht.Node();
- var Node24textStart, Node24textWidth, Node24lineStart, Node24align = 'left', Node24fontSize = 29.33326*_ratio.ratioY,Node24width = 65*_ratio.ratioX, Node24height = 36*_ratio.ratioY;
- (function () {
- if (Node24align === 'left') {
- Node24textStart = Node24fontSize * 0.2 > 2 ? Node24fontSize * 0.2 - 4 : Node24fontSize * 0.2 - 9;
- Node24textWidth = Node24width;
- Node24lineStart = 1;
- } else if (Node24align === 'right') {
- Node24textStart = 0;
- Node24textWidth =Node24fontSize <= 8 ? Node24width + Node24fontSize * 0.2 + 6 : Node24width - Node24fontSize * 0.2;
- Node24lineStart = (Node24width - (ht.Default.getTextSize('2974', ' '+ Node24fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node24align === 'center') {
- Node24textStart = -3;
- Node24textWidth = Node24width;
- Node24lineStart = Node24width - ht.Default.getTextSize('2974', ' '+ Node24fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node24.setImage(GD.getTextJSON(Node24width, Node24height, true, false, false, ' '+ Node24fontSize + 'px "UniDreamLED"'))
- Node24.setPosition(96*ratio.ratioX, 101*ratio.ratioY);
- Node24.setWidth(Node24width);
- Node24.setHeight(Node24height);
- Node24._nodeType = 'text';
- Node24._disallowEvert = true;
- Node24.setRotation(0*Math.PI/180);
- Node24.a('node.width', Node24width);
- Node24.a('node.height', Node24height);
- Node24.a('node.rect', [0, 0, Node24width, Node24height]);
- Node24.a('node.bordercolor','rgba(0,0,0,1)');
- Node24.a('node.borderwidth', 0);
- Node24.a('node.background','' || 'rgba(0,0,0,0)');
- Node24.a('node.gradient','');
- Node24.a('node.gradientcolor','');
- Node24.a('node.text','2974');
- Node24.a('node.textalign','left');
- Node24.a('node.textvAlign','middle');
- Node24.a('node.textrect', [Node24textStart, 0, Node24textWidth, Node24height]);
- Node24.a('node.color','rgba(0,0,0,1)');
- Node24.a('node.font',' '+ Node24fontSize + 'px "UniDreamLED"');
- Node24.a('node.textvisible',true);
- Node24.a('node.linefeed',false);
- if (false) {
- Node24.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node24.a('node.text') || '2974';
- var color=Node24.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,29.33326*0.5*_ratio.ratioY,Node24width,Node24height,29.33326*_ratio.ratioY,"left",color,' '+ Node24fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node24.a('node.underlinepoints',[Node24lineStart, (36 - 29.33326) * 0.5 * _ratio.ratioY + Node24fontSize + 2 , ht.Default.getTextSize('2974', ' '+ Node24fontSize + 'px "UniDreamLED"').width + 6, (Node24height - Node24fontSize) * 0.5*_ratio.ratioY + Node24fontSize + 2 ]);
- Node24.a('node.underlinevisible',false);
- Node24.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node24);
- zoomNodeList.push({
- node: Node24,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node25 = new ht.Node();
- var Node25textStart, Node25textWidth, Node25lineStart, Node25align = 'left', Node25fontSize = 13.3333*_ratio.ratioY,Node25width = 9*_ratio.ratioX, Node25height = 16*_ratio.ratioY;
- (function () {
- if (Node25align === 'left') {
- Node25textStart = Node25fontSize * 0.2 > 2 ? Node25fontSize * 0.2 - 4 : Node25fontSize * 0.2 - 9;
- Node25textWidth = Node25width;
- Node25lineStart = 1;
- } else if (Node25align === 'right') {
- Node25textStart = 0;
- Node25textWidth =Node25fontSize <= 8 ? Node25width + Node25fontSize * 0.2 + 6 : Node25width - Node25fontSize * 0.2;
- Node25lineStart = (Node25width - (ht.Default.getTextSize('-', 'bold '+ Node25fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node25align === 'center') {
- Node25textStart = -3;
- Node25textWidth = Node25width;
- Node25lineStart = Node25width - ht.Default.getTextSize('-', 'bold '+ Node25fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node25.setImage(GD.getTextJSON(Node25width, Node25height, true, false, false, 'bold '+ Node25fontSize + 'px "Arial"'))
- Node25.setPosition(336*ratio.ratioX, 146*ratio.ratioY);
- Node25.setWidth(Node25width);
- Node25.setHeight(Node25height);
- Node25._nodeType = 'text';
- Node25._disallowEvert = true;
- Node25.setRotation(0*Math.PI/180);
- Node25.a('node.width', Node25width);
- Node25.a('node.height', Node25height);
- Node25.a('node.rect', [0, 0, Node25width, Node25height]);
- Node25.a('node.bordercolor','rgba(0,0,0,1)');
- Node25.a('node.borderwidth', 0);
- Node25.a('node.background','' || 'rgba(0,0,0,0)');
- Node25.a('node.gradient','');
- Node25.a('node.gradientcolor','');
- Node25.a('node.text','-');
- Node25.a('node.textalign','left');
- Node25.a('node.textvAlign','middle');
- Node25.a('node.textrect', [Node25textStart, 0, Node25textWidth, Node25height]);
- Node25.a('node.color','rgba(0,0,0,1)');
- Node25.a('node.font','bold '+ Node25fontSize + 'px "Arial"');
- Node25.a('node.textvisible',true);
- Node25.a('node.linefeed',false);
- if (false) {
- Node25.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node25.a('node.text') || '-';
- var color=Node25.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node25width,Node25height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node25fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node25.a('node.underlinepoints',[Node25lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node25fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node25fontSize + 'px "Arial"').width + 6, (Node25height - Node25fontSize) * 0.5*_ratio.ratioY + Node25fontSize + 2 ]);
- Node25.a('node.underlinevisible',false);
- Node25.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node25);
- zoomNodeList.push({
- node: Node25,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node26 = new ht.Node();
- var Node26textStart, Node26textWidth, Node26lineStart, Node26align = 'left', Node26fontSize = 13.3333*_ratio.ratioY,Node26width = 34*_ratio.ratioX, Node26height = 16*_ratio.ratioY;
- (function () {
- if (Node26align === 'left') {
- Node26textStart = Node26fontSize * 0.2 > 2 ? Node26fontSize * 0.2 - 4 : Node26fontSize * 0.2 - 9;
- Node26textWidth = Node26width;
- Node26lineStart = 1;
- } else if (Node26align === 'right') {
- Node26textStart = 0;
- Node26textWidth =Node26fontSize <= 8 ? Node26width + Node26fontSize * 0.2 + 6 : Node26width - Node26fontSize * 0.2;
- Node26lineStart = (Node26width - (ht.Default.getTextSize('小时', ' '+ Node26fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node26align === 'center') {
- Node26textStart = -3;
- Node26textWidth = Node26width;
- Node26lineStart = Node26width - ht.Default.getTextSize('小时', ' '+ Node26fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node26.setImage(GD.getTextJSON(Node26width, Node26height, true, false, false, ' '+ Node26fontSize + 'px "Arial"'))
- Node26.setPosition(412*ratio.ratioX, 73*ratio.ratioY);
- Node26.setWidth(Node26width);
- Node26.setHeight(Node26height);
- Node26._nodeType = 'text';
- Node26._disallowEvert = true;
- Node26.setRotation(0*Math.PI/180);
- Node26.a('node.width', Node26width);
- Node26.a('node.height', Node26height);
- Node26.a('node.rect', [0, 0, Node26width, Node26height]);
- Node26.a('node.bordercolor','rgba(169,169,169,1)');
- Node26.a('node.borderwidth', 0);
- Node26.a('node.background','' || 'rgba(0,0,0,0)');
- Node26.a('node.gradient','');
- Node26.a('node.gradientcolor','');
- Node26.a('node.text','小时');
- Node26.a('node.textalign','left');
- Node26.a('node.textvAlign','middle');
- Node26.a('node.textrect', [Node26textStart, 0, Node26textWidth, Node26height]);
- Node26.a('node.color','rgba(169,169,169,1)');
- Node26.a('node.font',' '+ Node26fontSize + 'px "Arial"');
- Node26.a('node.textvisible',true);
- Node26.a('node.linefeed',false);
- if (false) {
- Node26.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node26.a('node.text') || '小时';
- var color=Node26.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node26width,Node26height,13.3333*_ratio.ratioY,"left",color,' '+ Node26fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node26.a('node.underlinepoints',[Node26lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node26fontSize + 2 , ht.Default.getTextSize('小时', ' '+ Node26fontSize + 'px "Arial"').width + 6, (Node26height - Node26fontSize) * 0.5*_ratio.ratioY + Node26fontSize + 2 ]);
- Node26.a('node.underlinevisible',false);
- Node26.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node26);
- zoomNodeList.push({
- node: Node26,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node27 = new ht.Node();
- var Node27textStart, Node27textWidth, Node27lineStart, Node27align = 'left', Node27fontSize = 13.3333*_ratio.ratioY,Node27width = 34*_ratio.ratioX, Node27height = 16*_ratio.ratioY;
- (function () {
- if (Node27align === 'left') {
- Node27textStart = Node27fontSize * 0.2 > 2 ? Node27fontSize * 0.2 - 4 : Node27fontSize * 0.2 - 9;
- Node27textWidth = Node27width;
- Node27lineStart = 1;
- } else if (Node27align === 'right') {
- Node27textStart = 0;
- Node27textWidth =Node27fontSize <= 8 ? Node27width + Node27fontSize * 0.2 + 6 : Node27width - Node27fontSize * 0.2;
- Node27lineStart = (Node27width - (ht.Default.getTextSize('小时', ' '+ Node27fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node27align === 'center') {
- Node27textStart = -3;
- Node27textWidth = Node27width;
- Node27lineStart = Node27width - ht.Default.getTextSize('小时', ' '+ Node27fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node27.setImage(GD.getTextJSON(Node27width, Node27height, true, false, false, ' '+ Node27fontSize + 'px "Arial"'))
- Node27.setPosition(412*ratio.ratioX, 98*ratio.ratioY);
- Node27.setWidth(Node27width);
- Node27.setHeight(Node27height);
- Node27._nodeType = 'text';
- Node27._disallowEvert = true;
- Node27.setRotation(0*Math.PI/180);
- Node27.a('node.width', Node27width);
- Node27.a('node.height', Node27height);
- Node27.a('node.rect', [0, 0, Node27width, Node27height]);
- Node27.a('node.bordercolor','rgba(169,169,169,1)');
- Node27.a('node.borderwidth', 0);
- Node27.a('node.background','' || 'rgba(0,0,0,0)');
- Node27.a('node.gradient','');
- Node27.a('node.gradientcolor','');
- Node27.a('node.text','小时');
- Node27.a('node.textalign','left');
- Node27.a('node.textvAlign','middle');
- Node27.a('node.textrect', [Node27textStart, 0, Node27textWidth, Node27height]);
- Node27.a('node.color','rgba(169,169,169,1)');
- Node27.a('node.font',' '+ Node27fontSize + 'px "Arial"');
- Node27.a('node.textvisible',true);
- Node27.a('node.linefeed',false);
- if (false) {
- Node27.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node27.a('node.text') || '小时';
- var color=Node27.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node27width,Node27height,13.3333*_ratio.ratioY,"left",color,' '+ Node27fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node27.a('node.underlinepoints',[Node27lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node27fontSize + 2 , ht.Default.getTextSize('小时', ' '+ Node27fontSize + 'px "Arial"').width + 6, (Node27height - Node27fontSize) * 0.5*_ratio.ratioY + Node27fontSize + 2 ]);
- Node27.a('node.underlinevisible',false);
- Node27.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node27);
- zoomNodeList.push({
- node: Node27,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node28 = new ht.Node();
- var Node28textStart, Node28textWidth, Node28lineStart, Node28align = 'left', Node28fontSize = 13.3333*_ratio.ratioY,Node28width = 16*_ratio.ratioX, Node28height = 16*_ratio.ratioY;
- (function () {
- if (Node28align === 'left') {
- Node28textStart = Node28fontSize * 0.2 > 2 ? Node28fontSize * 0.2 - 4 : Node28fontSize * 0.2 - 9;
- Node28textWidth = Node28width;
- Node28lineStart = 1;
- } else if (Node28align === 'right') {
- Node28textStart = 0;
- Node28textWidth =Node28fontSize <= 8 ? Node28width + Node28fontSize * 0.2 + 6 : Node28width - Node28fontSize * 0.2;
- Node28lineStart = (Node28width - (ht.Default.getTextSize('%', ' '+ Node28fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node28align === 'center') {
- Node28textStart = -3;
- Node28textWidth = Node28width;
- Node28lineStart = Node28width - ht.Default.getTextSize('%', ' '+ Node28fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node28.setImage(GD.getTextJSON(Node28width, Node28height, true, false, false, ' '+ Node28fontSize + 'px "Arial"'))
- Node28.setPosition(403*ratio.ratioX, 125*ratio.ratioY);
- Node28.setWidth(Node28width);
- Node28.setHeight(Node28height);
- Node28._nodeType = 'text';
- Node28._disallowEvert = true;
- Node28.setRotation(0*Math.PI/180);
- Node28.a('node.width', Node28width);
- Node28.a('node.height', Node28height);
- Node28.a('node.rect', [0, 0, Node28width, Node28height]);
- Node28.a('node.bordercolor','rgba(169,169,169,1)');
- Node28.a('node.borderwidth', 0);
- Node28.a('node.background','' || 'rgba(0,0,0,0)');
- Node28.a('node.gradient','');
- Node28.a('node.gradientcolor','');
- Node28.a('node.text','%');
- Node28.a('node.textalign','left');
- Node28.a('node.textvAlign','middle');
- Node28.a('node.textrect', [Node28textStart, 0, Node28textWidth, Node28height]);
- Node28.a('node.color','rgba(169,169,169,1)');
- Node28.a('node.font',' '+ Node28fontSize + 'px "Arial"');
- Node28.a('node.textvisible',true);
- Node28.a('node.linefeed',false);
- if (false) {
- Node28.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node28.a('node.text') || '%';
- var color=Node28.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node28width,Node28height,13.3333*_ratio.ratioY,"left",color,' '+ Node28fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node28.a('node.underlinepoints',[Node28lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node28fontSize + 2 , ht.Default.getTextSize('%', ' '+ Node28fontSize + 'px "Arial"').width + 6, (Node28height - Node28fontSize) * 0.5*_ratio.ratioY + Node28fontSize + 2 ]);
- Node28.a('node.underlinevisible',false);
- Node28.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node28);
- zoomNodeList.push({
- node: Node28,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node29 = new ht.Node();
- var Node29textStart, Node29textWidth, Node29lineStart, Node29align = 'left', Node29fontSize = 13.3333*_ratio.ratioY,Node29width = 16*_ratio.ratioX, Node29height = 16*_ratio.ratioY;
- (function () {
- if (Node29align === 'left') {
- Node29textStart = Node29fontSize * 0.2 > 2 ? Node29fontSize * 0.2 - 4 : Node29fontSize * 0.2 - 9;
- Node29textWidth = Node29width;
- Node29lineStart = 1;
- } else if (Node29align === 'right') {
- Node29textStart = 0;
- Node29textWidth =Node29fontSize <= 8 ? Node29width + Node29fontSize * 0.2 + 6 : Node29width - Node29fontSize * 0.2;
- Node29lineStart = (Node29width - (ht.Default.getTextSize('%', ' '+ Node29fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node29align === 'center') {
- Node29textStart = -3;
- Node29textWidth = Node29width;
- Node29lineStart = Node29width - ht.Default.getTextSize('%', ' '+ Node29fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node29.setImage(GD.getTextJSON(Node29width, Node29height, true, false, false, ' '+ Node29fontSize + 'px "Arial"'))
- Node29.setPosition(403*ratio.ratioX, 147*ratio.ratioY);
- Node29.setWidth(Node29width);
- Node29.setHeight(Node29height);
- Node29._nodeType = 'text';
- Node29._disallowEvert = true;
- Node29.setRotation(0*Math.PI/180);
- Node29.a('node.width', Node29width);
- Node29.a('node.height', Node29height);
- Node29.a('node.rect', [0, 0, Node29width, Node29height]);
- Node29.a('node.bordercolor','rgba(169,169,169,1)');
- Node29.a('node.borderwidth', 0);
- Node29.a('node.background','' || 'rgba(0,0,0,0)');
- Node29.a('node.gradient','');
- Node29.a('node.gradientcolor','');
- Node29.a('node.text','%');
- Node29.a('node.textalign','left');
- Node29.a('node.textvAlign','middle');
- Node29.a('node.textrect', [Node29textStart, 0, Node29textWidth, Node29height]);
- Node29.a('node.color','rgba(169,169,169,1)');
- Node29.a('node.font',' '+ Node29fontSize + 'px "Arial"');
- Node29.a('node.textvisible',true);
- Node29.a('node.linefeed',false);
- if (false) {
- Node29.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node29.a('node.text') || '%';
- var color=Node29.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node29width,Node29height,13.3333*_ratio.ratioY,"left",color,' '+ Node29fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node29.a('node.underlinepoints',[Node29lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node29fontSize + 2 , ht.Default.getTextSize('%', ' '+ Node29fontSize + 'px "Arial"').width + 6, (Node29height - Node29fontSize) * 0.5*_ratio.ratioY + Node29fontSize + 2 ]);
- Node29.a('node.underlinevisible',false);
- Node29.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node29);
- zoomNodeList.push({
- node: Node29,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node30points=[197, 62,474, 62],
- Node30rect=ht.Default.unionPoint([{x:197,y:62},{x:474,y:62}]),
- Node30compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node30points.length;i++){
- if(i%2==0){
- Node30compspts.push(Node30points[i]-Node30rect.x);
- }else{
- Node30compspts.push(Node30points[i]-Node30rect.y);
- }
- }
- var Node30ptslength=Node30compspts.length;
- if (Node30rect.height === 0) {
- Node30compspts[0] -= 0;
- Node30compspts[Node30ptslength-2] += 0;
- } else if (Node30rect.width === 0){
- Node30compspts[1] -= 0;
- Node30compspts[Node30ptslength-1] += 0;
- } else {
- Node30compspts[0] -= 0;
- Node30compspts[1] -= 0;
- Node30compspts[Node30ptslength-2] += 0;
- Node30compspts[Node30ptslength-1] += 0;
- }
- Node30 = new ht.Node();
- Node30.borderWidth = 1;
- Node30rect.width = Node30rect.width === 0 ? 0.0001 : Node30rect.width;
- Node30rect.height = Node30rect.height === 0 ? 0.0001 : Node30rect.height;
- var Node30endCompspts = [Node30compspts[Node30ptslength-2],Node30compspts[Node30ptslength-1],0,0];
- var Node30startCompspts = [Node30compspts[0],Node30compspts[1],0,0];
- Node30.setImage(GD.getPolyLineJSON());
- Node30.setPosition(Node30rect.x+Node30rect.width/2,Node30rect.y+Node30rect.height/2);
- Node30.setSize(Node30rect.width,Node30rect.height);
- Node30.setStyle("opacity",1);
- Node30.s({'pixelPerfect':true});
- Node30borderwidth=1;
- Node30.setRotation(0);
- dataModel.add(Node30);
- Node30.a('node.points',Node30compspts);
- Node30.a('node.segments',[1,2]);
- Node30.a('node.color','rgba(220,220,220,1)');
- Node30.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node30.a('node.borderColor','rgba(220,220,220,1)');
- Node30.a('node.background','rgba(220,220,220,1)');
- Node30.a('node.gradient','');
- Node30.a('node.gradientcolor','rgba(220,220,220,1)');
- Node30.a('node.endCompspts',Node30endCompspts);
- Node30.a('node.startCompspts',Node30startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node30';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node30, Node30.getImage(), Node30compspts, Node30endCompspts, Node30startCompspts);
- var Node31points=[195, 88,472, 88],
- Node31rect=ht.Default.unionPoint([{x:195,y:88},{x:472,y:88}]),
- Node31compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node31points.length;i++){
- if(i%2==0){
- Node31compspts.push(Node31points[i]-Node31rect.x);
- }else{
- Node31compspts.push(Node31points[i]-Node31rect.y);
- }
- }
- var Node31ptslength=Node31compspts.length;
- if (Node31rect.height === 0) {
- Node31compspts[0] -= 0;
- Node31compspts[Node31ptslength-2] += 0;
- } else if (Node31rect.width === 0){
- Node31compspts[1] -= 0;
- Node31compspts[Node31ptslength-1] += 0;
- } else {
- Node31compspts[0] -= 0;
- Node31compspts[1] -= 0;
- Node31compspts[Node31ptslength-2] += 0;
- Node31compspts[Node31ptslength-1] += 0;
- }
- Node31 = new ht.Node();
- Node31.borderWidth = 1;
- Node31rect.width = Node31rect.width === 0 ? 0.0001 : Node31rect.width;
- Node31rect.height = Node31rect.height === 0 ? 0.0001 : Node31rect.height;
- var Node31endCompspts = [Node31compspts[Node31ptslength-2],Node31compspts[Node31ptslength-1],0,0];
- var Node31startCompspts = [Node31compspts[0],Node31compspts[1],0,0];
- Node31.setImage(GD.getPolyLineJSON());
- Node31.setPosition(Node31rect.x+Node31rect.width/2,Node31rect.y+Node31rect.height/2);
- Node31.setSize(Node31rect.width,Node31rect.height);
- Node31.setStyle("opacity",1);
- Node31.s({'pixelPerfect':true});
- Node31borderwidth=1;
- Node31.setRotation(0);
- dataModel.add(Node31);
- Node31.a('node.points',Node31compspts);
- Node31.a('node.segments',[1,2]);
- Node31.a('node.color','rgba(220,220,220,1)');
- Node31.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node31.a('node.borderColor','rgba(220,220,220,1)');
- Node31.a('node.background','rgba(220,220,220,1)');
- Node31.a('node.gradient','');
- Node31.a('node.gradientcolor','rgba(220,220,220,1)');
- Node31.a('node.endCompspts',Node31endCompspts);
- Node31.a('node.startCompspts',Node31startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node31';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node31, Node31.getImage(), Node31compspts, Node31endCompspts, Node31startCompspts);
- var Node32points=[197, 112,474, 112],
- Node32rect=ht.Default.unionPoint([{x:197,y:112},{x:474,y:112}]),
- Node32compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node32points.length;i++){
- if(i%2==0){
- Node32compspts.push(Node32points[i]-Node32rect.x);
- }else{
- Node32compspts.push(Node32points[i]-Node32rect.y);
- }
- }
- var Node32ptslength=Node32compspts.length;
- if (Node32rect.height === 0) {
- Node32compspts[0] -= 0;
- Node32compspts[Node32ptslength-2] += 0;
- } else if (Node32rect.width === 0){
- Node32compspts[1] -= 0;
- Node32compspts[Node32ptslength-1] += 0;
- } else {
- Node32compspts[0] -= 0;
- Node32compspts[1] -= 0;
- Node32compspts[Node32ptslength-2] += 0;
- Node32compspts[Node32ptslength-1] += 0;
- }
- Node32 = new ht.Node();
- Node32.borderWidth = 1;
- Node32rect.width = Node32rect.width === 0 ? 0.0001 : Node32rect.width;
- Node32rect.height = Node32rect.height === 0 ? 0.0001 : Node32rect.height;
- var Node32endCompspts = [Node32compspts[Node32ptslength-2],Node32compspts[Node32ptslength-1],0,0];
- var Node32startCompspts = [Node32compspts[0],Node32compspts[1],0,0];
- Node32.setImage(GD.getPolyLineJSON());
- Node32.setPosition(Node32rect.x+Node32rect.width/2,Node32rect.y+Node32rect.height/2);
- Node32.setSize(Node32rect.width,Node32rect.height);
- Node32.setStyle("opacity",1);
- Node32.s({'pixelPerfect':true});
- Node32borderwidth=1;
- Node32.setRotation(0);
- dataModel.add(Node32);
- Node32.a('node.points',Node32compspts);
- Node32.a('node.segments',[1,2]);
- Node32.a('node.color','rgba(220,220,220,1)');
- Node32.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node32.a('node.borderColor','rgba(220,220,220,1)');
- Node32.a('node.background','rgba(220,220,220,1)');
- Node32.a('node.gradient','');
- Node32.a('node.gradientcolor','rgba(220,220,220,1)');
- Node32.a('node.endCompspts',Node32endCompspts);
- Node32.a('node.startCompspts',Node32startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node32';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node32, Node32.getImage(), Node32compspts, Node32endCompspts, Node32startCompspts);
- var Node33points=[197, 135,474, 135],
- Node33rect=ht.Default.unionPoint([{x:197,y:135},{x:474,y:135}]),
- Node33compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node33points.length;i++){
- if(i%2==0){
- Node33compspts.push(Node33points[i]-Node33rect.x);
- }else{
- Node33compspts.push(Node33points[i]-Node33rect.y);
- }
- }
- var Node33ptslength=Node33compspts.length;
- if (Node33rect.height === 0) {
- Node33compspts[0] -= 0;
- Node33compspts[Node33ptslength-2] += 0;
- } else if (Node33rect.width === 0){
- Node33compspts[1] -= 0;
- Node33compspts[Node33ptslength-1] += 0;
- } else {
- Node33compspts[0] -= 0;
- Node33compspts[1] -= 0;
- Node33compspts[Node33ptslength-2] += 0;
- Node33compspts[Node33ptslength-1] += 0;
- }
- Node33 = new ht.Node();
- Node33.borderWidth = 1;
- Node33rect.width = Node33rect.width === 0 ? 0.0001 : Node33rect.width;
- Node33rect.height = Node33rect.height === 0 ? 0.0001 : Node33rect.height;
- var Node33endCompspts = [Node33compspts[Node33ptslength-2],Node33compspts[Node33ptslength-1],0,0];
- var Node33startCompspts = [Node33compspts[0],Node33compspts[1],0,0];
- Node33.setImage(GD.getPolyLineJSON());
- Node33.setPosition(Node33rect.x+Node33rect.width/2,Node33rect.y+Node33rect.height/2);
- Node33.setSize(Node33rect.width,Node33rect.height);
- Node33.setStyle("opacity",1);
- Node33.s({'pixelPerfect':true});
- Node33borderwidth=1;
- Node33.setRotation(0);
- dataModel.add(Node33);
- Node33.a('node.points',Node33compspts);
- Node33.a('node.segments',[1,2]);
- Node33.a('node.color','rgba(220,220,220,1)');
- Node33.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node33.a('node.borderColor','rgba(220,220,220,1)');
- Node33.a('node.background','rgba(220,220,220,1)');
- Node33.a('node.gradient','');
- Node33.a('node.gradientcolor','rgba(220,220,220,1)');
- Node33.a('node.endCompspts',Node33endCompspts);
- Node33.a('node.startCompspts',Node33startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node33';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node33, Node33.getImage(), Node33compspts, Node33endCompspts, Node33startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node34type = 'rect';
- var Node34 = new ht.Node(),
- Node34BorderWidth = 1*2;
- if (Node34type === 'arc') {
- Node34BorderWidth *= 1;
- }
- Node34.setImage(GD.getRectJSON(120*_ratio.ratioX, 120*_ratio.ratioY, Node34type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node34.setPosition(539*ratio.ratioX, 98*ratio.ratioY);
- Node34.setSize(120*_ratio.ratioX, 120*_ratio.ratioY);
- Node34.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node34.a('node.width', 120*_ratio.ratioX);
- Node34.a('node.height', 120*_ratio.ratioY);
- Node34.a('node.type', Node34type);
- Node34.a('node.rect', [0, 0, 120*_ratio.ratioX, 120*_ratio.ratioY]);
- Node34.a('node.background', 'rgba(245,245,245,1)');
- Node34.a('node.gradientcolor', 'rgba(245,245,245,1)');
- Node34.a('node.gradient', '');
- Node34.a('node.borderwidth', Node34BorderWidth);
- Node34.a('node.color', 'rgba(220,220,220,1)');
- Node34.a('node.fillrect', [0,0,0,0]);
- Node34.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node34.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node34.a('node.fillgradient', '');
- if (Node34type !== 'rect') {
- Node34.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node34.a('node.arcTo', parseFloat('@arcTo@'));
- Node34.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node34type === 'arc') {
- Node34.a('node.arcOval', true);
- }
- Node34.setRotation(0*Math.PI/180);
- Node34.borderWidth = Node34BorderWidth;
- Node34.borderFillwidth = Node34BorderWidth;
- dataModel.add(Node34);
- Node34._nodename = 'Node34'
- Node34._nodeType = 'rect';
- zoomNodeList.push({
- node: Node34,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node34, Node34.getImage());var Node35points=[669, 38,669, 158],
- Node35rect=ht.Default.unionPoint([{x:669,y:38},{x:669,y:158}]),
- Node35compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Node35points.length;i++){
- if(i%2==0){
- Node35compspts.push(Node35points[i]-Node35rect.x);
- }else{
- Node35compspts.push(Node35points[i]-Node35rect.y);
- }
- }
- var Node35ptslength=Node35compspts.length;
- if (Node35rect.height === 0) {
- Node35compspts[0] -= 0;
- Node35compspts[Node35ptslength-2] += 0;
- } else if (Node35rect.width === 0){
- Node35compspts[1] -= 0;
- Node35compspts[Node35ptslength-1] += 0;
- } else {
- Node35compspts[0] -= 0;
- Node35compspts[1] -= 0;
- Node35compspts[Node35ptslength-2] += 0;
- Node35compspts[Node35ptslength-1] += 0;
- }
- Node35 = new ht.Node();
- Node35.borderWidth = 1;
- Node35rect.width = Node35rect.width === 0 ? 0.0001 : Node35rect.width;
- Node35rect.height = Node35rect.height === 0 ? 0.0001 : Node35rect.height;
- var Node35endCompspts = [Node35compspts[Node35ptslength-2],Node35compspts[Node35ptslength-1],0,0];
- var Node35startCompspts = [Node35compspts[0],Node35compspts[1],0,0];
- Node35.setImage(GD.getPolyLineJSON());
- Node35.setPosition(Node35rect.x+Node35rect.width/2,Node35rect.y+Node35rect.height/2);
- Node35.setSize(Node35rect.width,Node35rect.height);
- Node35.setStyle("opacity",1);
- Node35.s({'pixelPerfect':true});
- Node35borderwidth=1;
- Node35.setRotation(0);
- dataModel.add(Node35);
- Node35.a('node.points',Node35compspts);
- Node35.a('node.segments',[1,2]);
- Node35.a('node.color','rgba(220,220,220,1)');
- Node35.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node35.a('node.borderColor','rgba(220,220,220,1)');
- Node35.a('node.background','rgba(220,220,220,1)');
- Node35.a('node.gradient','');
- Node35.a('node.gradientcolor','rgba(220,220,220,1)');
- Node35.a('node.endCompspts',Node35endCompspts);
- Node35.a('node.startCompspts',Node35startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node35';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node35, Node35.getImage(), Node35compspts, Node35endCompspts, Node35startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node36 = new ht.Node();
- var Node36textStart, Node36textWidth, Node36lineStart, Node36align = 'left', Node36fontSize = 13.3333*_ratio.ratioY,Node36width = 64*_ratio.ratioX, Node36height = 16*_ratio.ratioY;
- (function () {
- if (Node36align === 'left') {
- Node36textStart = Node36fontSize * 0.2 > 2 ? Node36fontSize * 0.2 - 4 : Node36fontSize * 0.2 - 9;
- Node36textWidth = Node36width;
- Node36lineStart = 1;
- } else if (Node36align === 'right') {
- Node36textStart = 0;
- Node36textWidth =Node36fontSize <= 8 ? Node36width + Node36fontSize * 0.2 + 6 : Node36width - Node36fontSize * 0.2;
- Node36lineStart = (Node36width - (ht.Default.getTextSize('日发电量', ' '+ Node36fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node36align === 'center') {
- Node36textStart = -3;
- Node36textWidth = Node36width;
- Node36lineStart = Node36width - ht.Default.getTextSize('日发电量', ' '+ Node36fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node36.setImage(GD.getTextJSON(Node36width, Node36height, true, false, false, ' '+ Node36fontSize + 'px "Arial"'))
- Node36.setPosition(515*ratio.ratioX, 48*ratio.ratioY);
- Node36.setWidth(Node36width);
- Node36.setHeight(Node36height);
- Node36._nodeType = 'text';
- Node36._disallowEvert = true;
- Node36.setRotation(0*Math.PI/180);
- Node36.a('node.width', Node36width);
- Node36.a('node.height', Node36height);
- Node36.a('node.rect', [0, 0, Node36width, Node36height]);
- Node36.a('node.bordercolor','rgba(0,0,0,1)');
- Node36.a('node.borderwidth', 0);
- Node36.a('node.background','' || 'rgba(0,0,0,0)');
- Node36.a('node.gradient','');
- Node36.a('node.gradientcolor','');
- Node36.a('node.text','日发电量');
- Node36.a('node.textalign','left');
- Node36.a('node.textvAlign','middle');
- Node36.a('node.textrect', [Node36textStart, 0, Node36textWidth, Node36height]);
- Node36.a('node.color','rgba(0,0,0,1)');
- Node36.a('node.font',' '+ Node36fontSize + 'px "Arial"');
- Node36.a('node.textvisible',true);
- Node36.a('node.linefeed',false);
- if (false) {
- Node36.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node36.a('node.text') || '日发电量';
- var color=Node36.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node36width,Node36height,13.3333*_ratio.ratioY,"left",color,' '+ Node36fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node36.a('node.underlinepoints',[Node36lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node36fontSize + 2 , ht.Default.getTextSize('日发电量', ' '+ Node36fontSize + 'px "Arial"').width + 6, (Node36height - Node36fontSize) * 0.5*_ratio.ratioY + Node36fontSize + 2 ]);
- Node36.a('node.underlinevisible',false);
- Node36.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node36);
- zoomNodeList.push({
- node: Node36,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node37 = new ht.Node();
- var Node37textStart, Node37textWidth, Node37lineStart, Node37align = 'left', Node37fontSize = 13.3333*_ratio.ratioY,Node37width = 64*_ratio.ratioX, Node37height = 16*_ratio.ratioY;
- (function () {
- if (Node37align === 'left') {
- Node37textStart = Node37fontSize * 0.2 > 2 ? Node37fontSize * 0.2 - 4 : Node37fontSize * 0.2 - 9;
- Node37textWidth = Node37width;
- Node37lineStart = 1;
- } else if (Node37align === 'right') {
- Node37textStart = 0;
- Node37textWidth =Node37fontSize <= 8 ? Node37width + Node37fontSize * 0.2 + 6 : Node37width - Node37fontSize * 0.2;
- Node37lineStart = (Node37width - (ht.Default.getTextSize('月发电量', ' '+ Node37fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node37align === 'center') {
- Node37textStart = -3;
- Node37textWidth = Node37width;
- Node37lineStart = Node37width - ht.Default.getTextSize('月发电量', ' '+ Node37fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node37.setImage(GD.getTextJSON(Node37width, Node37height, true, false, false, ' '+ Node37fontSize + 'px "Arial"'))
- Node37.setPosition(515*ratio.ratioX, 74*ratio.ratioY);
- Node37.setWidth(Node37width);
- Node37.setHeight(Node37height);
- Node37._nodeType = 'text';
- Node37._disallowEvert = true;
- Node37.setRotation(0*Math.PI/180);
- Node37.a('node.width', Node37width);
- Node37.a('node.height', Node37height);
- Node37.a('node.rect', [0, 0, Node37width, Node37height]);
- Node37.a('node.bordercolor','rgba(0,0,0,1)');
- Node37.a('node.borderwidth', 0);
- Node37.a('node.background','' || 'rgba(0,0,0,0)');
- Node37.a('node.gradient','');
- Node37.a('node.gradientcolor','');
- Node37.a('node.text','月发电量');
- Node37.a('node.textalign','left');
- Node37.a('node.textvAlign','middle');
- Node37.a('node.textrect', [Node37textStart, 0, Node37textWidth, Node37height]);
- Node37.a('node.color','rgba(0,0,0,1)');
- Node37.a('node.font',' '+ Node37fontSize + 'px "Arial"');
- Node37.a('node.textvisible',true);
- Node37.a('node.linefeed',false);
- if (false) {
- Node37.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node37.a('node.text') || '月发电量';
- var color=Node37.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node37width,Node37height,13.3333*_ratio.ratioY,"left",color,' '+ Node37fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node37.a('node.underlinepoints',[Node37lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node37fontSize + 2 , ht.Default.getTextSize('月发电量', ' '+ Node37fontSize + 'px "Arial"').width + 6, (Node37height - Node37fontSize) * 0.5*_ratio.ratioY + Node37fontSize + 2 ]);
- Node37.a('node.underlinevisible',false);
- Node37.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node37);
- zoomNodeList.push({
- node: Node37,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node38 = new ht.Node();
- var Node38textStart, Node38textWidth, Node38lineStart, Node38align = 'left', Node38fontSize = 13.3333*_ratio.ratioY,Node38width = 64*_ratio.ratioX, Node38height = 16*_ratio.ratioY;
- (function () {
- if (Node38align === 'left') {
- Node38textStart = Node38fontSize * 0.2 > 2 ? Node38fontSize * 0.2 - 4 : Node38fontSize * 0.2 - 9;
- Node38textWidth = Node38width;
- Node38lineStart = 1;
- } else if (Node38align === 'right') {
- Node38textStart = 0;
- Node38textWidth =Node38fontSize <= 8 ? Node38width + Node38fontSize * 0.2 + 6 : Node38width - Node38fontSize * 0.2;
- Node38lineStart = (Node38width - (ht.Default.getTextSize('年发电量', ' '+ Node38fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node38align === 'center') {
- Node38textStart = -3;
- Node38textWidth = Node38width;
- Node38lineStart = Node38width - ht.Default.getTextSize('年发电量', ' '+ Node38fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node38.setImage(GD.getTextJSON(Node38width, Node38height, true, false, false, ' '+ Node38fontSize + 'px "Arial"'))
- Node38.setPosition(515*ratio.ratioX, 98*ratio.ratioY);
- Node38.setWidth(Node38width);
- Node38.setHeight(Node38height);
- Node38._nodeType = 'text';
- Node38._disallowEvert = true;
- Node38.setRotation(0*Math.PI/180);
- Node38.a('node.width', Node38width);
- Node38.a('node.height', Node38height);
- Node38.a('node.rect', [0, 0, Node38width, Node38height]);
- Node38.a('node.bordercolor','rgba(0,0,0,1)');
- Node38.a('node.borderwidth', 0);
- Node38.a('node.background','' || 'rgba(0,0,0,0)');
- Node38.a('node.gradient','');
- Node38.a('node.gradientcolor','');
- Node38.a('node.text','年发电量');
- Node38.a('node.textalign','left');
- Node38.a('node.textvAlign','middle');
- Node38.a('node.textrect', [Node38textStart, 0, Node38textWidth, Node38height]);
- Node38.a('node.color','rgba(0,0,0,1)');
- Node38.a('node.font',' '+ Node38fontSize + 'px "Arial"');
- Node38.a('node.textvisible',true);
- Node38.a('node.linefeed',false);
- if (false) {
- Node38.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node38.a('node.text') || '年发电量';
- var color=Node38.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node38width,Node38height,13.3333*_ratio.ratioY,"left",color,' '+ Node38fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node38.a('node.underlinepoints',[Node38lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node38fontSize + 2 , ht.Default.getTextSize('年发电量', ' '+ Node38fontSize + 'px "Arial"').width + 6, (Node38height - Node38fontSize) * 0.5*_ratio.ratioY + Node38fontSize + 2 ]);
- Node38.a('node.underlinevisible',false);
- Node38.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node38);
- zoomNodeList.push({
- node: Node38,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node39 = new ht.Node();
- var Node39textStart, Node39textWidth, Node39lineStart, Node39align = 'left', Node39fontSize = 13.3333*_ratio.ratioY,Node39width = 95*_ratio.ratioX, Node39height = 16*_ratio.ratioY;
- (function () {
- if (Node39align === 'left') {
- Node39textStart = Node39fontSize * 0.2 > 2 ? Node39fontSize * 0.2 - 4 : Node39fontSize * 0.2 - 9;
- Node39textWidth = Node39width;
- Node39lineStart = 1;
- } else if (Node39align === 'right') {
- Node39textStart = 0;
- Node39textWidth =Node39fontSize <= 8 ? Node39width + Node39fontSize * 0.2 + 6 : Node39width - Node39fontSize * 0.2;
- Node39lineStart = (Node39width - (ht.Default.getTextSize('减排二氧化碳', ' '+ Node39fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node39align === 'center') {
- Node39textStart = -3;
- Node39textWidth = Node39width;
- Node39lineStart = Node39width - ht.Default.getTextSize('减排二氧化碳', ' '+ Node39fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node39.setImage(GD.getTextJSON(Node39width, Node39height, true, false, false, ' '+ Node39fontSize + 'px "Arial"'))
- Node39.setPosition(530*ratio.ratioX, 124*ratio.ratioY);
- Node39.setWidth(Node39width);
- Node39.setHeight(Node39height);
- Node39._nodeType = 'text';
- Node39._disallowEvert = true;
- Node39.setRotation(0*Math.PI/180);
- Node39.a('node.width', Node39width);
- Node39.a('node.height', Node39height);
- Node39.a('node.rect', [0, 0, Node39width, Node39height]);
- Node39.a('node.bordercolor','rgba(0,0,0,1)');
- Node39.a('node.borderwidth', 0);
- Node39.a('node.background','' || 'rgba(0,0,0,0)');
- Node39.a('node.gradient','');
- Node39.a('node.gradientcolor','');
- Node39.a('node.text','减排二氧化碳');
- Node39.a('node.textalign','left');
- Node39.a('node.textvAlign','middle');
- Node39.a('node.textrect', [Node39textStart, 0, Node39textWidth, Node39height]);
- Node39.a('node.color','rgba(0,0,0,1)');
- Node39.a('node.font',' '+ Node39fontSize + 'px "Arial"');
- Node39.a('node.textvisible',true);
- Node39.a('node.linefeed',false);
- if (false) {
- Node39.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node39.a('node.text') || '减排二氧化碳';
- var color=Node39.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node39width,Node39height,13.3333*_ratio.ratioY,"left",color,' '+ Node39fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node39.a('node.underlinepoints',[Node39lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node39fontSize + 2 , ht.Default.getTextSize('减排二氧化碳', ' '+ Node39fontSize + 'px "Arial"').width + 6, (Node39height - Node39fontSize) * 0.5*_ratio.ratioY + Node39fontSize + 2 ]);
- Node39.a('node.underlinevisible',false);
- Node39.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node39);
- zoomNodeList.push({
- node: Node39,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node40 = new ht.Node();
- var Node40textStart, Node40textWidth, Node40lineStart, Node40align = 'left', Node40fontSize = 13.3333*_ratio.ratioY,Node40width = 95*_ratio.ratioX, Node40height = 16*_ratio.ratioY;
- (function () {
- if (Node40align === 'left') {
- Node40textStart = Node40fontSize * 0.2 > 2 ? Node40fontSize * 0.2 - 4 : Node40fontSize * 0.2 - 9;
- Node40textWidth = Node40width;
- Node40lineStart = 1;
- } else if (Node40align === 'right') {
- Node40textStart = 0;
- Node40textWidth =Node40fontSize <= 8 ? Node40width + Node40fontSize * 0.2 + 6 : Node40width - Node40fontSize * 0.2;
- Node40lineStart = (Node40width - (ht.Default.getTextSize('减排二氧化硫', ' '+ Node40fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node40align === 'center') {
- Node40textStart = -3;
- Node40textWidth = Node40width;
- Node40lineStart = Node40width - ht.Default.getTextSize('减排二氧化硫', ' '+ Node40fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node40.setImage(GD.getTextJSON(Node40width, Node40height, true, false, false, ' '+ Node40fontSize + 'px "Arial"'))
- Node40.setPosition(530*ratio.ratioX, 149*ratio.ratioY);
- Node40.setWidth(Node40width);
- Node40.setHeight(Node40height);
- Node40._nodeType = 'text';
- Node40._disallowEvert = true;
- Node40.setRotation(0*Math.PI/180);
- Node40.a('node.width', Node40width);
- Node40.a('node.height', Node40height);
- Node40.a('node.rect', [0, 0, Node40width, Node40height]);
- Node40.a('node.bordercolor','rgba(0,0,0,1)');
- Node40.a('node.borderwidth', 0);
- Node40.a('node.background','' || 'rgba(0,0,0,0)');
- Node40.a('node.gradient','');
- Node40.a('node.gradientcolor','');
- Node40.a('node.text','减排二氧化硫');
- Node40.a('node.textalign','left');
- Node40.a('node.textvAlign','middle');
- Node40.a('node.textrect', [Node40textStart, 0, Node40textWidth, Node40height]);
- Node40.a('node.color','rgba(0,0,0,1)');
- Node40.a('node.font',' '+ Node40fontSize + 'px "Arial"');
- Node40.a('node.textvisible',true);
- Node40.a('node.linefeed',false);
- if (false) {
- Node40.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node40.a('node.text') || '减排二氧化硫';
- var color=Node40.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node40width,Node40height,13.3333*_ratio.ratioY,"left",color,' '+ Node40fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node40.a('node.underlinepoints',[Node40lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node40fontSize + 2 , ht.Default.getTextSize('减排二氧化硫', ' '+ Node40fontSize + 'px "Arial"').width + 6, (Node40height - Node40fontSize) * 0.5*_ratio.ratioY + Node40fontSize + 2 ]);
- Node40.a('node.underlinevisible',false);
- Node40.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node40);
- zoomNodeList.push({
- node: Node40,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node41 = new ht.Node();
- var Node41textStart, Node41textWidth, Node41lineStart, Node41align = 'left', Node41fontSize = 13.3333*_ratio.ratioY,Node41width = 11*_ratio.ratioX, Node41height = 16*_ratio.ratioY;
- (function () {
- if (Node41align === 'left') {
- Node41textStart = Node41fontSize * 0.2 > 2 ? Node41fontSize * 0.2 - 4 : Node41fontSize * 0.2 - 9;
- Node41textWidth = Node41width;
- Node41lineStart = 1;
- } else if (Node41align === 'right') {
- Node41textStart = 0;
- Node41textWidth =Node41fontSize <= 8 ? Node41width + Node41fontSize * 0.2 + 6 : Node41width - Node41fontSize * 0.2;
- Node41lineStart = (Node41width - (ht.Default.getTextSize('0', 'bold '+ Node41fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node41align === 'center') {
- Node41textStart = -3;
- Node41textWidth = Node41width;
- Node41lineStart = Node41width - ht.Default.getTextSize('0', 'bold '+ Node41fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node41.setImage(GD.getTextJSON(Node41width, Node41height, true, false, false, 'bold '+ Node41fontSize + 'px "UniDreamLED"'))
- Node41.setPosition(621*ratio.ratioX, 48*ratio.ratioY);
- Node41.setWidth(Node41width);
- Node41.setHeight(Node41height);
- Node41._nodeType = 'text';
- Node41._disallowEvert = true;
- Node41.setRotation(0*Math.PI/180);
- Node41.a('node.width', Node41width);
- Node41.a('node.height', Node41height);
- Node41.a('node.rect', [0, 0, Node41width, Node41height]);
- Node41.a('node.bordercolor','rgba(0,0,0,1)');
- Node41.a('node.borderwidth', 0);
- Node41.a('node.background','' || 'rgba(0,0,0,0)');
- Node41.a('node.gradient','');
- Node41.a('node.gradientcolor','');
- Node41.a('node.text','0');
- Node41.a('node.textalign','left');
- Node41.a('node.textvAlign','middle');
- Node41.a('node.textrect', [Node41textStart, 0, Node41textWidth, Node41height]);
- Node41.a('node.color','rgba(0,0,0,1)');
- Node41.a('node.font','bold '+ Node41fontSize + 'px "UniDreamLED"');
- Node41.a('node.textvisible',true);
- Node41.a('node.linefeed',false);
- if (false) {
- Node41.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node41.a('node.text') || '0';
- var color=Node41.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node41width,Node41height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node41fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node41.a('node.underlinepoints',[Node41lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node41fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node41fontSize + 'px "UniDreamLED"').width + 6, (Node41height - Node41fontSize) * 0.5*_ratio.ratioY + Node41fontSize + 2 ]);
- Node41.a('node.underlinevisible',false);
- Node41.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node41);
- zoomNodeList.push({
- node: Node41,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node42 = new ht.Node();
- var Node42textStart, Node42textWidth, Node42lineStart, Node42align = 'left', Node42fontSize = 13.3333*_ratio.ratioY,Node42width = 11*_ratio.ratioX, Node42height = 16*_ratio.ratioY;
- (function () {
- if (Node42align === 'left') {
- Node42textStart = Node42fontSize * 0.2 > 2 ? Node42fontSize * 0.2 - 4 : Node42fontSize * 0.2 - 9;
- Node42textWidth = Node42width;
- Node42lineStart = 1;
- } else if (Node42align === 'right') {
- Node42textStart = 0;
- Node42textWidth =Node42fontSize <= 8 ? Node42width + Node42fontSize * 0.2 + 6 : Node42width - Node42fontSize * 0.2;
- Node42lineStart = (Node42width - (ht.Default.getTextSize('0', 'bold '+ Node42fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node42align === 'center') {
- Node42textStart = -3;
- Node42textWidth = Node42width;
- Node42lineStart = Node42width - ht.Default.getTextSize('0', 'bold '+ Node42fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node42.setImage(GD.getTextJSON(Node42width, Node42height, true, false, false, 'bold '+ Node42fontSize + 'px "UniDreamLED"'))
- Node42.setPosition(621*ratio.ratioX, 72*ratio.ratioY);
- Node42.setWidth(Node42width);
- Node42.setHeight(Node42height);
- Node42._nodeType = 'text';
- Node42._disallowEvert = true;
- Node42.setRotation(0*Math.PI/180);
- Node42.a('node.width', Node42width);
- Node42.a('node.height', Node42height);
- Node42.a('node.rect', [0, 0, Node42width, Node42height]);
- Node42.a('node.bordercolor','rgba(0,0,0,1)');
- Node42.a('node.borderwidth', 0);
- Node42.a('node.background','' || 'rgba(0,0,0,0)');
- Node42.a('node.gradient','');
- Node42.a('node.gradientcolor','');
- Node42.a('node.text','0');
- Node42.a('node.textalign','left');
- Node42.a('node.textvAlign','middle');
- Node42.a('node.textrect', [Node42textStart, 0, Node42textWidth, Node42height]);
- Node42.a('node.color','rgba(0,0,0,1)');
- Node42.a('node.font','bold '+ Node42fontSize + 'px "UniDreamLED"');
- Node42.a('node.textvisible',true);
- Node42.a('node.linefeed',false);
- if (false) {
- Node42.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node42.a('node.text') || '0';
- var color=Node42.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node42width,Node42height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node42fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node42.a('node.underlinepoints',[Node42lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node42fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node42fontSize + 'px "UniDreamLED"').width + 6, (Node42height - Node42fontSize) * 0.5*_ratio.ratioY + Node42fontSize + 2 ]);
- Node42.a('node.underlinevisible',false);
- Node42.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node42);
- zoomNodeList.push({
- node: Node42,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node43 = new ht.Node();
- var Node43textStart, Node43textWidth, Node43lineStart, Node43align = 'left', Node43fontSize = 13.3333*_ratio.ratioY,Node43width = 11*_ratio.ratioX, Node43height = 16*_ratio.ratioY;
- (function () {
- if (Node43align === 'left') {
- Node43textStart = Node43fontSize * 0.2 > 2 ? Node43fontSize * 0.2 - 4 : Node43fontSize * 0.2 - 9;
- Node43textWidth = Node43width;
- Node43lineStart = 1;
- } else if (Node43align === 'right') {
- Node43textStart = 0;
- Node43textWidth =Node43fontSize <= 8 ? Node43width + Node43fontSize * 0.2 + 6 : Node43width - Node43fontSize * 0.2;
- Node43lineStart = (Node43width - (ht.Default.getTextSize('0', 'bold '+ Node43fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node43align === 'center') {
- Node43textStart = -3;
- Node43textWidth = Node43width;
- Node43lineStart = Node43width - ht.Default.getTextSize('0', 'bold '+ Node43fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node43.setImage(GD.getTextJSON(Node43width, Node43height, true, false, false, 'bold '+ Node43fontSize + 'px "UniDreamLED"'))
- Node43.setPosition(621*ratio.ratioX, 97*ratio.ratioY);
- Node43.setWidth(Node43width);
- Node43.setHeight(Node43height);
- Node43._nodeType = 'text';
- Node43._disallowEvert = true;
- Node43.setRotation(0*Math.PI/180);
- Node43.a('node.width', Node43width);
- Node43.a('node.height', Node43height);
- Node43.a('node.rect', [0, 0, Node43width, Node43height]);
- Node43.a('node.bordercolor','rgba(0,0,0,1)');
- Node43.a('node.borderwidth', 0);
- Node43.a('node.background','' || 'rgba(0,0,0,0)');
- Node43.a('node.gradient','');
- Node43.a('node.gradientcolor','');
- Node43.a('node.text','0');
- Node43.a('node.textalign','left');
- Node43.a('node.textvAlign','middle');
- Node43.a('node.textrect', [Node43textStart, 0, Node43textWidth, Node43height]);
- Node43.a('node.color','rgba(0,0,0,1)');
- Node43.a('node.font','bold '+ Node43fontSize + 'px "UniDreamLED"');
- Node43.a('node.textvisible',true);
- Node43.a('node.linefeed',false);
- if (false) {
- Node43.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node43.a('node.text') || '0';
- var color=Node43.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node43width,Node43height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node43fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node43.a('node.underlinepoints',[Node43lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node43fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node43fontSize + 'px "UniDreamLED"').width + 6, (Node43height - Node43fontSize) * 0.5*_ratio.ratioY + Node43fontSize + 2 ]);
- Node43.a('node.underlinevisible',false);
- Node43.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node43);
- zoomNodeList.push({
- node: Node43,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node44 = new ht.Node();
- var Node44textStart, Node44textWidth, Node44lineStart, Node44align = 'left', Node44fontSize = 13.3333*_ratio.ratioY,Node44width = 9*_ratio.ratioX, Node44height = 16*_ratio.ratioY;
- (function () {
- if (Node44align === 'left') {
- Node44textStart = Node44fontSize * 0.2 > 2 ? Node44fontSize * 0.2 - 4 : Node44fontSize * 0.2 - 9;
- Node44textWidth = Node44width;
- Node44lineStart = 1;
- } else if (Node44align === 'right') {
- Node44textStart = 0;
- Node44textWidth =Node44fontSize <= 8 ? Node44width + Node44fontSize * 0.2 + 6 : Node44width - Node44fontSize * 0.2;
- Node44lineStart = (Node44width - (ht.Default.getTextSize('-', 'bold '+ Node44fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node44align === 'center') {
- Node44textStart = -3;
- Node44textWidth = Node44width;
- Node44lineStart = Node44width - ht.Default.getTextSize('-', 'bold '+ Node44fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node44.setImage(GD.getTextJSON(Node44width, Node44height, true, false, false, 'bold '+ Node44fontSize + 'px "UniDreamLED"'))
- Node44.setPosition(620*ratio.ratioX, 121*ratio.ratioY);
- Node44.setWidth(Node44width);
- Node44.setHeight(Node44height);
- Node44._nodeType = 'text';
- Node44._disallowEvert = true;
- Node44.setRotation(0*Math.PI/180);
- Node44.a('node.width', Node44width);
- Node44.a('node.height', Node44height);
- Node44.a('node.rect', [0, 0, Node44width, Node44height]);
- Node44.a('node.bordercolor','rgba(0,0,0,1)');
- Node44.a('node.borderwidth', 0);
- Node44.a('node.background','' || 'rgba(0,0,0,0)');
- Node44.a('node.gradient','');
- Node44.a('node.gradientcolor','');
- Node44.a('node.text','-');
- Node44.a('node.textalign','left');
- Node44.a('node.textvAlign','middle');
- Node44.a('node.textrect', [Node44textStart, 0, Node44textWidth, Node44height]);
- Node44.a('node.color','rgba(0,0,0,1)');
- Node44.a('node.font','bold '+ Node44fontSize + 'px "UniDreamLED"');
- Node44.a('node.textvisible',true);
- Node44.a('node.linefeed',false);
- if (false) {
- Node44.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node44.a('node.text') || '-';
- var color=Node44.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node44width,Node44height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node44fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node44.a('node.underlinepoints',[Node44lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node44fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node44fontSize + 'px "UniDreamLED"').width + 6, (Node44height - Node44fontSize) * 0.5*_ratio.ratioY + Node44fontSize + 2 ]);
- Node44.a('node.underlinevisible',false);
- Node44.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node44);
- zoomNodeList.push({
- node: Node44,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node45 = new ht.Node();
- var Node45textStart, Node45textWidth, Node45lineStart, Node45align = 'left', Node45fontSize = 13.3333*_ratio.ratioY,Node45width = 39*_ratio.ratioX, Node45height = 16*_ratio.ratioY;
- (function () {
- if (Node45align === 'left') {
- Node45textStart = Node45fontSize * 0.2 > 2 ? Node45fontSize * 0.2 - 4 : Node45fontSize * 0.2 - 9;
- Node45textWidth = Node45width;
- Node45lineStart = 1;
- } else if (Node45align === 'right') {
- Node45textStart = 0;
- Node45textWidth =Node45fontSize <= 8 ? Node45width + Node45fontSize * 0.2 + 6 : Node45width - Node45fontSize * 0.2;
- Node45lineStart = (Node45width - (ht.Default.getTextSize('万kW', ' '+ Node45fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node45align === 'center') {
- Node45textStart = -3;
- Node45textWidth = Node45width;
- Node45lineStart = Node45width - ht.Default.getTextSize('万kW', ' '+ Node45fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node45.setImage(GD.getTextJSON(Node45width, Node45height, true, false, false, ' '+ Node45fontSize + 'px "Arial"'))
- Node45.setPosition(698*ratio.ratioX, 47*ratio.ratioY);
- Node45.setWidth(Node45width);
- Node45.setHeight(Node45height);
- Node45._nodeType = 'text';
- Node45._disallowEvert = true;
- Node45.setRotation(0*Math.PI/180);
- Node45.a('node.width', Node45width);
- Node45.a('node.height', Node45height);
- Node45.a('node.rect', [0, 0, Node45width, Node45height]);
- Node45.a('node.bordercolor','rgba(169,169,169,1)');
- Node45.a('node.borderwidth', 0);
- Node45.a('node.background','' || 'rgba(0,0,0,0)');
- Node45.a('node.gradient','');
- Node45.a('node.gradientcolor','');
- Node45.a('node.text','万kW');
- Node45.a('node.textalign','left');
- Node45.a('node.textvAlign','middle');
- Node45.a('node.textrect', [Node45textStart, 0, Node45textWidth, Node45height]);
- Node45.a('node.color','rgba(169,169,169,1)');
- Node45.a('node.font',' '+ Node45fontSize + 'px "Arial"');
- Node45.a('node.textvisible',true);
- Node45.a('node.linefeed',false);
- if (false) {
- Node45.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node45.a('node.text') || '万kW';
- var color=Node45.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node45width,Node45height,13.3333*_ratio.ratioY,"left",color,' '+ Node45fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node45.a('node.underlinepoints',[Node45lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node45fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node45fontSize + 'px "Arial"').width + 6, (Node45height - Node45fontSize) * 0.5*_ratio.ratioY + Node45fontSize + 2 ]);
- Node45.a('node.underlinevisible',false);
- Node45.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node45);
- zoomNodeList.push({
- node: Node45,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node46 = new ht.Node();
- var Node46textStart, Node46textWidth, Node46lineStart, Node46align = 'left', Node46fontSize = 13.3333*_ratio.ratioY,Node46width = 9*_ratio.ratioX, Node46height = 16*_ratio.ratioY;
- (function () {
- if (Node46align === 'left') {
- Node46textStart = Node46fontSize * 0.2 > 2 ? Node46fontSize * 0.2 - 4 : Node46fontSize * 0.2 - 9;
- Node46textWidth = Node46width;
- Node46lineStart = 1;
- } else if (Node46align === 'right') {
- Node46textStart = 0;
- Node46textWidth =Node46fontSize <= 8 ? Node46width + Node46fontSize * 0.2 + 6 : Node46width - Node46fontSize * 0.2;
- Node46lineStart = (Node46width - (ht.Default.getTextSize('-', 'bold '+ Node46fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node46align === 'center') {
- Node46textStart = -3;
- Node46textWidth = Node46width;
- Node46lineStart = Node46width - ht.Default.getTextSize('-', 'bold '+ Node46fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node46.setImage(GD.getTextJSON(Node46width, Node46height, true, false, false, 'bold '+ Node46fontSize + 'px "UniDreamLED"'))
- Node46.setPosition(620*ratio.ratioX, 146*ratio.ratioY);
- Node46.setWidth(Node46width);
- Node46.setHeight(Node46height);
- Node46._nodeType = 'text';
- Node46._disallowEvert = true;
- Node46.setRotation(0*Math.PI/180);
- Node46.a('node.width', Node46width);
- Node46.a('node.height', Node46height);
- Node46.a('node.rect', [0, 0, Node46width, Node46height]);
- Node46.a('node.bordercolor','rgba(0,0,0,1)');
- Node46.a('node.borderwidth', 0);
- Node46.a('node.background','' || 'rgba(0,0,0,0)');
- Node46.a('node.gradient','');
- Node46.a('node.gradientcolor','');
- Node46.a('node.text','-');
- Node46.a('node.textalign','left');
- Node46.a('node.textvAlign','middle');
- Node46.a('node.textrect', [Node46textStart, 0, Node46textWidth, Node46height]);
- Node46.a('node.color','rgba(0,0,0,1)');
- Node46.a('node.font','bold '+ Node46fontSize + 'px "UniDreamLED"');
- Node46.a('node.textvisible',true);
- Node46.a('node.linefeed',false);
- if (false) {
- Node46.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node46.a('node.text') || '-';
- var color=Node46.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node46width,Node46height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node46fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node46.a('node.underlinepoints',[Node46lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node46fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node46fontSize + 'px "UniDreamLED"').width + 6, (Node46height - Node46fontSize) * 0.5*_ratio.ratioY + Node46fontSize + 2 ]);
- Node46.a('node.underlinevisible',false);
- Node46.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node46);
- zoomNodeList.push({
- node: Node46,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node47 = new ht.Node();
- var Node47textStart, Node47textWidth, Node47lineStart, Node47align = 'left', Node47fontSize = 13.3333*_ratio.ratioY,Node47width = 39*_ratio.ratioX, Node47height = 16*_ratio.ratioY;
- (function () {
- if (Node47align === 'left') {
- Node47textStart = Node47fontSize * 0.2 > 2 ? Node47fontSize * 0.2 - 4 : Node47fontSize * 0.2 - 9;
- Node47textWidth = Node47width;
- Node47lineStart = 1;
- } else if (Node47align === 'right') {
- Node47textStart = 0;
- Node47textWidth =Node47fontSize <= 8 ? Node47width + Node47fontSize * 0.2 + 6 : Node47width - Node47fontSize * 0.2;
- Node47lineStart = (Node47width - (ht.Default.getTextSize('万kW', ' '+ Node47fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node47align === 'center') {
- Node47textStart = -3;
- Node47textWidth = Node47width;
- Node47lineStart = Node47width - ht.Default.getTextSize('万kW', ' '+ Node47fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node47.setImage(GD.getTextJSON(Node47width, Node47height, true, false, false, ' '+ Node47fontSize + 'px "Arial"'))
- Node47.setPosition(698*ratio.ratioX, 73*ratio.ratioY);
- Node47.setWidth(Node47width);
- Node47.setHeight(Node47height);
- Node47._nodeType = 'text';
- Node47._disallowEvert = true;
- Node47.setRotation(0*Math.PI/180);
- Node47.a('node.width', Node47width);
- Node47.a('node.height', Node47height);
- Node47.a('node.rect', [0, 0, Node47width, Node47height]);
- Node47.a('node.bordercolor','rgba(169,169,169,1)');
- Node47.a('node.borderwidth', 0);
- Node47.a('node.background','' || 'rgba(0,0,0,0)');
- Node47.a('node.gradient','');
- Node47.a('node.gradientcolor','');
- Node47.a('node.text','万kW');
- Node47.a('node.textalign','left');
- Node47.a('node.textvAlign','middle');
- Node47.a('node.textrect', [Node47textStart, 0, Node47textWidth, Node47height]);
- Node47.a('node.color','rgba(169,169,169,1)');
- Node47.a('node.font',' '+ Node47fontSize + 'px "Arial"');
- Node47.a('node.textvisible',true);
- Node47.a('node.linefeed',false);
- if (false) {
- Node47.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node47.a('node.text') || '万kW';
- var color=Node47.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node47width,Node47height,13.3333*_ratio.ratioY,"left",color,' '+ Node47fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node47.a('node.underlinepoints',[Node47lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node47fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node47fontSize + 'px "Arial"').width + 6, (Node47height - Node47fontSize) * 0.5*_ratio.ratioY + Node47fontSize + 2 ]);
- Node47.a('node.underlinevisible',false);
- Node47.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node47);
- zoomNodeList.push({
- node: Node47,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node48 = new ht.Node();
- var Node48textStart, Node48textWidth, Node48lineStart, Node48align = 'left', Node48fontSize = 13.3333*_ratio.ratioY,Node48width = 39*_ratio.ratioX, Node48height = 16*_ratio.ratioY;
- (function () {
- if (Node48align === 'left') {
- Node48textStart = Node48fontSize * 0.2 > 2 ? Node48fontSize * 0.2 - 4 : Node48fontSize * 0.2 - 9;
- Node48textWidth = Node48width;
- Node48lineStart = 1;
- } else if (Node48align === 'right') {
- Node48textStart = 0;
- Node48textWidth =Node48fontSize <= 8 ? Node48width + Node48fontSize * 0.2 + 6 : Node48width - Node48fontSize * 0.2;
- Node48lineStart = (Node48width - (ht.Default.getTextSize('万kW', ' '+ Node48fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node48align === 'center') {
- Node48textStart = -3;
- Node48textWidth = Node48width;
- Node48lineStart = Node48width - ht.Default.getTextSize('万kW', ' '+ Node48fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node48.setImage(GD.getTextJSON(Node48width, Node48height, true, false, false, ' '+ Node48fontSize + 'px "Arial"'))
- Node48.setPosition(698*ratio.ratioX, 98*ratio.ratioY);
- Node48.setWidth(Node48width);
- Node48.setHeight(Node48height);
- Node48._nodeType = 'text';
- Node48._disallowEvert = true;
- Node48.setRotation(0*Math.PI/180);
- Node48.a('node.width', Node48width);
- Node48.a('node.height', Node48height);
- Node48.a('node.rect', [0, 0, Node48width, Node48height]);
- Node48.a('node.bordercolor','rgba(169,169,169,1)');
- Node48.a('node.borderwidth', 0);
- Node48.a('node.background','' || 'rgba(0,0,0,0)');
- Node48.a('node.gradient','');
- Node48.a('node.gradientcolor','');
- Node48.a('node.text','万kW');
- Node48.a('node.textalign','left');
- Node48.a('node.textvAlign','middle');
- Node48.a('node.textrect', [Node48textStart, 0, Node48textWidth, Node48height]);
- Node48.a('node.color','rgba(169,169,169,1)');
- Node48.a('node.font',' '+ Node48fontSize + 'px "Arial"');
- Node48.a('node.textvisible',true);
- Node48.a('node.linefeed',false);
- if (false) {
- Node48.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node48.a('node.text') || '万kW';
- var color=Node48.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node48width,Node48height,13.3333*_ratio.ratioY,"left",color,' '+ Node48fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node48.a('node.underlinepoints',[Node48lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node48fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node48fontSize + 'px "Arial"').width + 6, (Node48height - Node48fontSize) * 0.5*_ratio.ratioY + Node48fontSize + 2 ]);
- Node48.a('node.underlinevisible',false);
- Node48.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node48);
- zoomNodeList.push({
- node: Node48,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node49 = new ht.Node();
- var Node49textStart, Node49textWidth, Node49lineStart, Node49align = 'left', Node49fontSize = 13.3333*_ratio.ratioY,Node49width = 19*_ratio.ratioX, Node49height = 16*_ratio.ratioY;
- (function () {
- if (Node49align === 'left') {
- Node49textStart = Node49fontSize * 0.2 > 2 ? Node49fontSize * 0.2 - 4 : Node49fontSize * 0.2 - 9;
- Node49textWidth = Node49width;
- Node49lineStart = 1;
- } else if (Node49align === 'right') {
- Node49textStart = 0;
- Node49textWidth =Node49fontSize <= 8 ? Node49width + Node49fontSize * 0.2 + 6 : Node49width - Node49fontSize * 0.2;
- Node49lineStart = (Node49width - (ht.Default.getTextSize('吨', ' '+ Node49fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node49align === 'center') {
- Node49textStart = -3;
- Node49textWidth = Node49width;
- Node49lineStart = Node49width - ht.Default.getTextSize('吨', ' '+ Node49fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node49.setImage(GD.getTextJSON(Node49width, Node49height, true, false, false, ' '+ Node49fontSize + 'px "Arial"'))
- Node49.setPosition(688*ratio.ratioX, 125*ratio.ratioY);
- Node49.setWidth(Node49width);
- Node49.setHeight(Node49height);
- Node49._nodeType = 'text';
- Node49._disallowEvert = true;
- Node49.setRotation(0*Math.PI/180);
- Node49.a('node.width', Node49width);
- Node49.a('node.height', Node49height);
- Node49.a('node.rect', [0, 0, Node49width, Node49height]);
- Node49.a('node.bordercolor','rgba(169,169,169,1)');
- Node49.a('node.borderwidth', 0);
- Node49.a('node.background','' || 'rgba(0,0,0,0)');
- Node49.a('node.gradient','');
- Node49.a('node.gradientcolor','');
- Node49.a('node.text','吨');
- Node49.a('node.textalign','left');
- Node49.a('node.textvAlign','middle');
- Node49.a('node.textrect', [Node49textStart, 0, Node49textWidth, Node49height]);
- Node49.a('node.color','rgba(169,169,169,1)');
- Node49.a('node.font',' '+ Node49fontSize + 'px "Arial"');
- Node49.a('node.textvisible',true);
- Node49.a('node.linefeed',false);
- if (false) {
- Node49.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node49.a('node.text') || '吨';
- var color=Node49.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node49width,Node49height,13.3333*_ratio.ratioY,"left",color,' '+ Node49fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node49.a('node.underlinepoints',[Node49lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node49fontSize + 2 , ht.Default.getTextSize('吨', ' '+ Node49fontSize + 'px "Arial"').width + 6, (Node49height - Node49fontSize) * 0.5*_ratio.ratioY + Node49fontSize + 2 ]);
- Node49.a('node.underlinevisible',false);
- Node49.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node49);
- zoomNodeList.push({
- node: Node49,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node50 = new ht.Node();
- var Node50textStart, Node50textWidth, Node50lineStart, Node50align = 'left', Node50fontSize = 13.3333*_ratio.ratioY,Node50width = 19*_ratio.ratioX, Node50height = 16*_ratio.ratioY;
- (function () {
- if (Node50align === 'left') {
- Node50textStart = Node50fontSize * 0.2 > 2 ? Node50fontSize * 0.2 - 4 : Node50fontSize * 0.2 - 9;
- Node50textWidth = Node50width;
- Node50lineStart = 1;
- } else if (Node50align === 'right') {
- Node50textStart = 0;
- Node50textWidth =Node50fontSize <= 8 ? Node50width + Node50fontSize * 0.2 + 6 : Node50width - Node50fontSize * 0.2;
- Node50lineStart = (Node50width - (ht.Default.getTextSize('吨', ' '+ Node50fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node50align === 'center') {
- Node50textStart = -3;
- Node50textWidth = Node50width;
- Node50lineStart = Node50width - ht.Default.getTextSize('吨', ' '+ Node50fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node50.setImage(GD.getTextJSON(Node50width, Node50height, true, false, false, ' '+ Node50fontSize + 'px "Arial"'))
- Node50.setPosition(688*ratio.ratioX, 147*ratio.ratioY);
- Node50.setWidth(Node50width);
- Node50.setHeight(Node50height);
- Node50._nodeType = 'text';
- Node50._disallowEvert = true;
- Node50.setRotation(0*Math.PI/180);
- Node50.a('node.width', Node50width);
- Node50.a('node.height', Node50height);
- Node50.a('node.rect', [0, 0, Node50width, Node50height]);
- Node50.a('node.bordercolor','rgba(169,169,169,1)');
- Node50.a('node.borderwidth', 0);
- Node50.a('node.background','' || 'rgba(0,0,0,0)');
- Node50.a('node.gradient','');
- Node50.a('node.gradientcolor','');
- Node50.a('node.text','吨');
- Node50.a('node.textalign','left');
- Node50.a('node.textvAlign','middle');
- Node50.a('node.textrect', [Node50textStart, 0, Node50textWidth, Node50height]);
- Node50.a('node.color','rgba(169,169,169,1)');
- Node50.a('node.font',' '+ Node50fontSize + 'px "Arial"');
- Node50.a('node.textvisible',true);
- Node50.a('node.linefeed',false);
- if (false) {
- Node50.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node50.a('node.text') || '吨';
- var color=Node50.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node50width,Node50height,13.3333*_ratio.ratioY,"left",color,' '+ Node50fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node50.a('node.underlinepoints',[Node50lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node50fontSize + 2 , ht.Default.getTextSize('吨', ' '+ Node50fontSize + 'px "Arial"').width + 6, (Node50height - Node50fontSize) * 0.5*_ratio.ratioY + Node50fontSize + 2 ]);
- Node50.a('node.underlinevisible',false);
- Node50.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node50);
- zoomNodeList.push({
- node: Node50,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node51points=[481, 62,758, 62],
- Node51rect=ht.Default.unionPoint([{x:481,y:62},{x:758,y:62}]),
- Node51compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node51points.length;i++){
- if(i%2==0){
- Node51compspts.push(Node51points[i]-Node51rect.x);
- }else{
- Node51compspts.push(Node51points[i]-Node51rect.y);
- }
- }
- var Node51ptslength=Node51compspts.length;
- if (Node51rect.height === 0) {
- Node51compspts[0] -= 0;
- Node51compspts[Node51ptslength-2] += 0;
- } else if (Node51rect.width === 0){
- Node51compspts[1] -= 0;
- Node51compspts[Node51ptslength-1] += 0;
- } else {
- Node51compspts[0] -= 0;
- Node51compspts[1] -= 0;
- Node51compspts[Node51ptslength-2] += 0;
- Node51compspts[Node51ptslength-1] += 0;
- }
- Node51 = new ht.Node();
- Node51.borderWidth = 1;
- Node51rect.width = Node51rect.width === 0 ? 0.0001 : Node51rect.width;
- Node51rect.height = Node51rect.height === 0 ? 0.0001 : Node51rect.height;
- var Node51endCompspts = [Node51compspts[Node51ptslength-2],Node51compspts[Node51ptslength-1],0,0];
- var Node51startCompspts = [Node51compspts[0],Node51compspts[1],0,0];
- Node51.setImage(GD.getPolyLineJSON());
- Node51.setPosition(Node51rect.x+Node51rect.width/2,Node51rect.y+Node51rect.height/2);
- Node51.setSize(Node51rect.width,Node51rect.height);
- Node51.setStyle("opacity",1);
- Node51.s({'pixelPerfect':true});
- Node51borderwidth=1;
- Node51.setRotation(0);
- dataModel.add(Node51);
- Node51.a('node.points',Node51compspts);
- Node51.a('node.segments',[1,2]);
- Node51.a('node.color','rgba(220,220,220,1)');
- Node51.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node51.a('node.borderColor','rgba(220,220,220,1)');
- Node51.a('node.background','rgba(220,220,220,1)');
- Node51.a('node.gradient','');
- Node51.a('node.gradientcolor','rgba(220,220,220,1)');
- Node51.a('node.endCompspts',Node51endCompspts);
- Node51.a('node.startCompspts',Node51startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node51';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node51, Node51.getImage(), Node51compspts, Node51endCompspts, Node51startCompspts);
- var Node52points=[479, 88,756, 88],
- Node52rect=ht.Default.unionPoint([{x:479,y:88},{x:756,y:88}]),
- Node52compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node52points.length;i++){
- if(i%2==0){
- Node52compspts.push(Node52points[i]-Node52rect.x);
- }else{
- Node52compspts.push(Node52points[i]-Node52rect.y);
- }
- }
- var Node52ptslength=Node52compspts.length;
- if (Node52rect.height === 0) {
- Node52compspts[0] -= 0;
- Node52compspts[Node52ptslength-2] += 0;
- } else if (Node52rect.width === 0){
- Node52compspts[1] -= 0;
- Node52compspts[Node52ptslength-1] += 0;
- } else {
- Node52compspts[0] -= 0;
- Node52compspts[1] -= 0;
- Node52compspts[Node52ptslength-2] += 0;
- Node52compspts[Node52ptslength-1] += 0;
- }
- Node52 = new ht.Node();
- Node52.borderWidth = 1;
- Node52rect.width = Node52rect.width === 0 ? 0.0001 : Node52rect.width;
- Node52rect.height = Node52rect.height === 0 ? 0.0001 : Node52rect.height;
- var Node52endCompspts = [Node52compspts[Node52ptslength-2],Node52compspts[Node52ptslength-1],0,0];
- var Node52startCompspts = [Node52compspts[0],Node52compspts[1],0,0];
- Node52.setImage(GD.getPolyLineJSON());
- Node52.setPosition(Node52rect.x+Node52rect.width/2,Node52rect.y+Node52rect.height/2);
- Node52.setSize(Node52rect.width,Node52rect.height);
- Node52.setStyle("opacity",1);
- Node52.s({'pixelPerfect':true});
- Node52borderwidth=1;
- Node52.setRotation(0);
- dataModel.add(Node52);
- Node52.a('node.points',Node52compspts);
- Node52.a('node.segments',[1,2]);
- Node52.a('node.color','rgba(220,220,220,1)');
- Node52.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node52.a('node.borderColor','rgba(220,220,220,1)');
- Node52.a('node.background','rgba(220,220,220,1)');
- Node52.a('node.gradient','');
- Node52.a('node.gradientcolor','rgba(220,220,220,1)');
- Node52.a('node.endCompspts',Node52endCompspts);
- Node52.a('node.startCompspts',Node52startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node52';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node52, Node52.getImage(), Node52compspts, Node52endCompspts, Node52startCompspts);
- var Node53points=[481, 112,758, 112],
- Node53rect=ht.Default.unionPoint([{x:481,y:112},{x:758,y:112}]),
- Node53compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node53points.length;i++){
- if(i%2==0){
- Node53compspts.push(Node53points[i]-Node53rect.x);
- }else{
- Node53compspts.push(Node53points[i]-Node53rect.y);
- }
- }
- var Node53ptslength=Node53compspts.length;
- if (Node53rect.height === 0) {
- Node53compspts[0] -= 0;
- Node53compspts[Node53ptslength-2] += 0;
- } else if (Node53rect.width === 0){
- Node53compspts[1] -= 0;
- Node53compspts[Node53ptslength-1] += 0;
- } else {
- Node53compspts[0] -= 0;
- Node53compspts[1] -= 0;
- Node53compspts[Node53ptslength-2] += 0;
- Node53compspts[Node53ptslength-1] += 0;
- }
- Node53 = new ht.Node();
- Node53.borderWidth = 1;
- Node53rect.width = Node53rect.width === 0 ? 0.0001 : Node53rect.width;
- Node53rect.height = Node53rect.height === 0 ? 0.0001 : Node53rect.height;
- var Node53endCompspts = [Node53compspts[Node53ptslength-2],Node53compspts[Node53ptslength-1],0,0];
- var Node53startCompspts = [Node53compspts[0],Node53compspts[1],0,0];
- Node53.setImage(GD.getPolyLineJSON());
- Node53.setPosition(Node53rect.x+Node53rect.width/2,Node53rect.y+Node53rect.height/2);
- Node53.setSize(Node53rect.width,Node53rect.height);
- Node53.setStyle("opacity",1);
- Node53.s({'pixelPerfect':true});
- Node53borderwidth=1;
- Node53.setRotation(0);
- dataModel.add(Node53);
- Node53.a('node.points',Node53compspts);
- Node53.a('node.segments',[1,2]);
- Node53.a('node.color','rgba(220,220,220,1)');
- Node53.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node53.a('node.borderColor','rgba(220,220,220,1)');
- Node53.a('node.background','rgba(220,220,220,1)');
- Node53.a('node.gradient','');
- Node53.a('node.gradientcolor','rgba(220,220,220,1)');
- Node53.a('node.endCompspts',Node53endCompspts);
- Node53.a('node.startCompspts',Node53startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node53';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node53, Node53.getImage(), Node53compspts, Node53endCompspts, Node53startCompspts);
- var Node54points=[481, 135,758, 135],
- Node54rect=ht.Default.unionPoint([{x:481,y:135},{x:758,y:135}]),
- Node54compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node54points.length;i++){
- if(i%2==0){
- Node54compspts.push(Node54points[i]-Node54rect.x);
- }else{
- Node54compspts.push(Node54points[i]-Node54rect.y);
- }
- }
- var Node54ptslength=Node54compspts.length;
- if (Node54rect.height === 0) {
- Node54compspts[0] -= 0;
- Node54compspts[Node54ptslength-2] += 0;
- } else if (Node54rect.width === 0){
- Node54compspts[1] -= 0;
- Node54compspts[Node54ptslength-1] += 0;
- } else {
- Node54compspts[0] -= 0;
- Node54compspts[1] -= 0;
- Node54compspts[Node54ptslength-2] += 0;
- Node54compspts[Node54ptslength-1] += 0;
- }
- Node54 = new ht.Node();
- Node54.borderWidth = 1;
- Node54rect.width = Node54rect.width === 0 ? 0.0001 : Node54rect.width;
- Node54rect.height = Node54rect.height === 0 ? 0.0001 : Node54rect.height;
- var Node54endCompspts = [Node54compspts[Node54ptslength-2],Node54compspts[Node54ptslength-1],0,0];
- var Node54startCompspts = [Node54compspts[0],Node54compspts[1],0,0];
- Node54.setImage(GD.getPolyLineJSON());
- Node54.setPosition(Node54rect.x+Node54rect.width/2,Node54rect.y+Node54rect.height/2);
- Node54.setSize(Node54rect.width,Node54rect.height);
- Node54.setStyle("opacity",1);
- Node54.s({'pixelPerfect':true});
- Node54borderwidth=1;
- Node54.setRotation(0);
- dataModel.add(Node54);
- Node54.a('node.points',Node54compspts);
- Node54.a('node.segments',[1,2]);
- Node54.a('node.color','rgba(220,220,220,1)');
- Node54.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node54.a('node.borderColor','rgba(220,220,220,1)');
- Node54.a('node.background','rgba(220,220,220,1)');
- Node54.a('node.gradient','');
- Node54.a('node.gradientcolor','rgba(220,220,220,1)');
- Node54.a('node.endCompspts',Node54endCompspts);
- Node54.a('node.startCompspts',Node54startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node54';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node54, Node54.getImage(), Node54compspts, Node54endCompspts, Node54startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node55type = 'rect';
- var Node55 = new ht.Node(),
- Node55BorderWidth = 1*2;
- if (Node55type === 'arc') {
- Node55BorderWidth *= 1;
- }
- Node55.setImage(GD.getRectJSON(120*_ratio.ratioX, 120*_ratio.ratioY, Node55type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node55.setPosition(824*ratio.ratioX, 98*ratio.ratioY);
- Node55.setSize(120*_ratio.ratioX, 120*_ratio.ratioY);
- Node55.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node55.a('node.width', 120*_ratio.ratioX);
- Node55.a('node.height', 120*_ratio.ratioY);
- Node55.a('node.type', Node55type);
- Node55.a('node.rect', [0, 0, 120*_ratio.ratioX, 120*_ratio.ratioY]);
- Node55.a('node.background', 'rgba(245,245,245,1)');
- Node55.a('node.gradientcolor', 'rgba(245,245,245,1)');
- Node55.a('node.gradient', '');
- Node55.a('node.borderwidth', Node55BorderWidth);
- Node55.a('node.color', 'rgba(220,220,220,1)');
- Node55.a('node.fillrect', [0,0,0,0]);
- Node55.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node55.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node55.a('node.fillgradient', '');
- if (Node55type !== 'rect') {
- Node55.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node55.a('node.arcTo', parseFloat('@arcTo@'));
- Node55.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node55type === 'arc') {
- Node55.a('node.arcOval', true);
- }
- Node55.setRotation(0*Math.PI/180);
- Node55.borderWidth = Node55BorderWidth;
- Node55.borderFillwidth = Node55BorderWidth;
- dataModel.add(Node55);
- Node55._nodename = 'Node55'
- Node55._nodeType = 'rect';
- zoomNodeList.push({
- node: Node55,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node55, Node55.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node56type = 'rect';
- var Node56 = new ht.Node(),
- Node56BorderWidth = 1*2;
- if (Node56type === 'arc') {
- Node56BorderWidth *= 1;
- }
- Node56.setImage(GD.getRectJSON(280.7278*_ratio.ratioX, 122*_ratio.ratioY, Node56type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node56.setPosition(904*ratio.ratioX, 98*ratio.ratioY);
- Node56.setSize(280.7278*_ratio.ratioX, 122*_ratio.ratioY);
- Node56.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node56.a('node.width', 280.7278*_ratio.ratioX);
- Node56.a('node.height', 122*_ratio.ratioY);
- Node56.a('node.type', Node56type);
- Node56.a('node.rect', [0, 0, 280.7278*_ratio.ratioX, 122*_ratio.ratioY]);
- Node56.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node56.a('node.gradientcolor', '');
- Node56.a('node.gradient', '');
- Node56.a('node.borderwidth', Node56BorderWidth);
- Node56.a('node.color', 'rgba(220,220,220,1)');
- Node56.a('node.fillrect', [0,0,0,0]);
- Node56.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node56.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node56.a('node.fillgradient', '');
- if (Node56type !== 'rect') {
- Node56.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node56.a('node.arcTo', parseFloat('@arcTo@'));
- Node56.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node56type === 'arc') {
- Node56.a('node.arcOval', true);
- }
- Node56.setRotation(0*Math.PI/180);
- Node56.borderWidth = Node56BorderWidth;
- Node56.borderFillwidth = Node56BorderWidth;
- dataModel.add(Node56);
- Node56._nodename = 'Node56'
- Node56._nodeType = 'rect';
- zoomNodeList.push({
- node: Node56,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node56, Node56.getImage());var Node57points=[954, 38,954, 158],
- Node57rect=ht.Default.unionPoint([{x:954,y:38},{x:954,y:158}]),
- Node57compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Node57points.length;i++){
- if(i%2==0){
- Node57compspts.push(Node57points[i]-Node57rect.x);
- }else{
- Node57compspts.push(Node57points[i]-Node57rect.y);
- }
- }
- var Node57ptslength=Node57compspts.length;
- if (Node57rect.height === 0) {
- Node57compspts[0] -= 0;
- Node57compspts[Node57ptslength-2] += 0;
- } else if (Node57rect.width === 0){
- Node57compspts[1] -= 0;
- Node57compspts[Node57ptslength-1] += 0;
- } else {
- Node57compspts[0] -= 0;
- Node57compspts[1] -= 0;
- Node57compspts[Node57ptslength-2] += 0;
- Node57compspts[Node57ptslength-1] += 0;
- }
- Node57 = new ht.Node();
- Node57.borderWidth = 1;
- Node57rect.width = Node57rect.width === 0 ? 0.0001 : Node57rect.width;
- Node57rect.height = Node57rect.height === 0 ? 0.0001 : Node57rect.height;
- var Node57endCompspts = [Node57compspts[Node57ptslength-2],Node57compspts[Node57ptslength-1],0,0];
- var Node57startCompspts = [Node57compspts[0],Node57compspts[1],0,0];
- Node57.setImage(GD.getPolyLineJSON());
- Node57.setPosition(Node57rect.x+Node57rect.width/2,Node57rect.y+Node57rect.height/2);
- Node57.setSize(Node57rect.width,Node57rect.height);
- Node57.setStyle("opacity",1);
- Node57.s({'pixelPerfect':true});
- Node57borderwidth=1;
- Node57.setRotation(0);
- dataModel.add(Node57);
- Node57.a('node.points',Node57compspts);
- Node57.a('node.segments',[1,2]);
- Node57.a('node.color','rgba(220,220,220,1)');
- Node57.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node57.a('node.borderColor','rgba(220,220,220,1)');
- Node57.a('node.background','rgba(220,220,220,1)');
- Node57.a('node.gradient','');
- Node57.a('node.gradientcolor','rgba(220,220,220,1)');
- Node57.a('node.endCompspts',Node57endCompspts);
- Node57.a('node.startCompspts',Node57startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node57';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node57, Node57.getImage(), Node57compspts, Node57endCompspts, Node57startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node58 = new ht.Node();
- var Node58textStart, Node58textWidth, Node58lineStart, Node58align = 'left', Node58fontSize = 13.3333*_ratio.ratioY,Node58width = 79*_ratio.ratioX, Node58height = 16*_ratio.ratioY;
- (function () {
- if (Node58align === 'left') {
- Node58textStart = Node58fontSize * 0.2 > 2 ? Node58fontSize * 0.2 - 4 : Node58fontSize * 0.2 - 9;
- Node58textWidth = Node58width;
- Node58lineStart = 1;
- } else if (Node58align === 'right') {
- Node58textStart = 0;
- Node58textWidth =Node58fontSize <= 8 ? Node58width + Node58fontSize * 0.2 + 6 : Node58width - Node58fontSize * 0.2;
- Node58lineStart = (Node58width - (ht.Default.getTextSize('日上网电量', ' '+ Node58fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node58align === 'center') {
- Node58textStart = -3;
- Node58textWidth = Node58width;
- Node58lineStart = Node58width - ht.Default.getTextSize('日上网电量', ' '+ Node58fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node58.setImage(GD.getTextJSON(Node58width, Node58height, true, false, false, ' '+ Node58fontSize + 'px "Arial"'))
- Node58.setPosition(808*ratio.ratioX, 49*ratio.ratioY);
- Node58.setWidth(Node58width);
- Node58.setHeight(Node58height);
- Node58._nodeType = 'text';
- Node58._disallowEvert = true;
- Node58.setRotation(0*Math.PI/180);
- Node58.a('node.width', Node58width);
- Node58.a('node.height', Node58height);
- Node58.a('node.rect', [0, 0, Node58width, Node58height]);
- Node58.a('node.bordercolor','rgba(0,0,0,1)');
- Node58.a('node.borderwidth', 0);
- Node58.a('node.background','' || 'rgba(0,0,0,0)');
- Node58.a('node.gradient','');
- Node58.a('node.gradientcolor','');
- Node58.a('node.text','日上网电量');
- Node58.a('node.textalign','left');
- Node58.a('node.textvAlign','middle');
- Node58.a('node.textrect', [Node58textStart, 0, Node58textWidth, Node58height]);
- Node58.a('node.color','rgba(0,0,0,1)');
- Node58.a('node.font',' '+ Node58fontSize + 'px "Arial"');
- Node58.a('node.textvisible',true);
- Node58.a('node.linefeed',false);
- if (false) {
- Node58.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node58.a('node.text') || '日上网电量';
- var color=Node58.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node58width,Node58height,13.3333*_ratio.ratioY,"left",color,' '+ Node58fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node58.a('node.underlinepoints',[Node58lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node58fontSize + 2 , ht.Default.getTextSize('日上网电量', ' '+ Node58fontSize + 'px "Arial"').width + 6, (Node58height - Node58fontSize) * 0.5*_ratio.ratioY + Node58fontSize + 2 ]);
- Node58.a('node.underlinevisible',false);
- Node58.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node58);
- zoomNodeList.push({
- node: Node58,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node59 = new ht.Node();
- var Node59textStart, Node59textWidth, Node59lineStart, Node59align = 'left', Node59fontSize = 13.3333*_ratio.ratioY,Node59width = 79*_ratio.ratioX, Node59height = 16*_ratio.ratioY;
- (function () {
- if (Node59align === 'left') {
- Node59textStart = Node59fontSize * 0.2 > 2 ? Node59fontSize * 0.2 - 4 : Node59fontSize * 0.2 - 9;
- Node59textWidth = Node59width;
- Node59lineStart = 1;
- } else if (Node59align === 'right') {
- Node59textStart = 0;
- Node59textWidth =Node59fontSize <= 8 ? Node59width + Node59fontSize * 0.2 + 6 : Node59width - Node59fontSize * 0.2;
- Node59lineStart = (Node59width - (ht.Default.getTextSize('月上网电量', ' '+ Node59fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node59align === 'center') {
- Node59textStart = -3;
- Node59textWidth = Node59width;
- Node59lineStart = Node59width - ht.Default.getTextSize('月上网电量', ' '+ Node59fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node59.setImage(GD.getTextJSON(Node59width, Node59height, true, false, false, ' '+ Node59fontSize + 'px "Arial"'))
- Node59.setPosition(808*ratio.ratioX, 75*ratio.ratioY);
- Node59.setWidth(Node59width);
- Node59.setHeight(Node59height);
- Node59._nodeType = 'text';
- Node59._disallowEvert = true;
- Node59.setRotation(0*Math.PI/180);
- Node59.a('node.width', Node59width);
- Node59.a('node.height', Node59height);
- Node59.a('node.rect', [0, 0, Node59width, Node59height]);
- Node59.a('node.bordercolor','rgba(0,0,0,1)');
- Node59.a('node.borderwidth', 0);
- Node59.a('node.background','' || 'rgba(0,0,0,0)');
- Node59.a('node.gradient','');
- Node59.a('node.gradientcolor','');
- Node59.a('node.text','月上网电量');
- Node59.a('node.textalign','left');
- Node59.a('node.textvAlign','middle');
- Node59.a('node.textrect', [Node59textStart, 0, Node59textWidth, Node59height]);
- Node59.a('node.color','rgba(0,0,0,1)');
- Node59.a('node.font',' '+ Node59fontSize + 'px "Arial"');
- Node59.a('node.textvisible',true);
- Node59.a('node.linefeed',false);
- if (false) {
- Node59.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node59.a('node.text') || '月上网电量';
- var color=Node59.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node59width,Node59height,13.3333*_ratio.ratioY,"left",color,' '+ Node59fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node59.a('node.underlinepoints',[Node59lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node59fontSize + 2 , ht.Default.getTextSize('月上网电量', ' '+ Node59fontSize + 'px "Arial"').width + 6, (Node59height - Node59fontSize) * 0.5*_ratio.ratioY + Node59fontSize + 2 ]);
- Node59.a('node.underlinevisible',false);
- Node59.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node59);
- zoomNodeList.push({
- node: Node59,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node60 = new ht.Node();
- var Node60textStart, Node60textWidth, Node60lineStart, Node60align = 'left', Node60fontSize = 13.3333*_ratio.ratioY,Node60width = 79*_ratio.ratioX, Node60height = 16*_ratio.ratioY;
- (function () {
- if (Node60align === 'left') {
- Node60textStart = Node60fontSize * 0.2 > 2 ? Node60fontSize * 0.2 - 4 : Node60fontSize * 0.2 - 9;
- Node60textWidth = Node60width;
- Node60lineStart = 1;
- } else if (Node60align === 'right') {
- Node60textStart = 0;
- Node60textWidth =Node60fontSize <= 8 ? Node60width + Node60fontSize * 0.2 + 6 : Node60width - Node60fontSize * 0.2;
- Node60lineStart = (Node60width - (ht.Default.getTextSize('年上网电量', ' '+ Node60fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node60align === 'center') {
- Node60textStart = -3;
- Node60textWidth = Node60width;
- Node60lineStart = Node60width - ht.Default.getTextSize('年上网电量', ' '+ Node60fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node60.setImage(GD.getTextJSON(Node60width, Node60height, true, false, false, ' '+ Node60fontSize + 'px "Arial"'))
- Node60.setPosition(808*ratio.ratioX, 99*ratio.ratioY);
- Node60.setWidth(Node60width);
- Node60.setHeight(Node60height);
- Node60._nodeType = 'text';
- Node60._disallowEvert = true;
- Node60.setRotation(0*Math.PI/180);
- Node60.a('node.width', Node60width);
- Node60.a('node.height', Node60height);
- Node60.a('node.rect', [0, 0, Node60width, Node60height]);
- Node60.a('node.bordercolor','rgba(0,0,0,1)');
- Node60.a('node.borderwidth', 0);
- Node60.a('node.background','' || 'rgba(0,0,0,0)');
- Node60.a('node.gradient','');
- Node60.a('node.gradientcolor','');
- Node60.a('node.text','年上网电量');
- Node60.a('node.textalign','left');
- Node60.a('node.textvAlign','middle');
- Node60.a('node.textrect', [Node60textStart, 0, Node60textWidth, Node60height]);
- Node60.a('node.color','rgba(0,0,0,1)');
- Node60.a('node.font',' '+ Node60fontSize + 'px "Arial"');
- Node60.a('node.textvisible',true);
- Node60.a('node.linefeed',false);
- if (false) {
- Node60.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node60.a('node.text') || '年上网电量';
- var color=Node60.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node60width,Node60height,13.3333*_ratio.ratioY,"left",color,' '+ Node60fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node60.a('node.underlinepoints',[Node60lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node60fontSize + 2 , ht.Default.getTextSize('年上网电量', ' '+ Node60fontSize + 'px "Arial"').width + 6, (Node60height - Node60fontSize) * 0.5*_ratio.ratioY + Node60fontSize + 2 ]);
- Node60.a('node.underlinevisible',false);
- Node60.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node60);
- zoomNodeList.push({
- node: Node60,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node61 = new ht.Node();
- var Node61textStart, Node61textWidth, Node61lineStart, Node61align = 'left', Node61fontSize = 13.3333*_ratio.ratioY,Node61width = 64*_ratio.ratioX, Node61height = 16*_ratio.ratioY;
- (function () {
- if (Node61align === 'left') {
- Node61textStart = Node61fontSize * 0.2 > 2 ? Node61fontSize * 0.2 - 4 : Node61fontSize * 0.2 - 9;
- Node61textWidth = Node61width;
- Node61lineStart = 1;
- } else if (Node61align === 'right') {
- Node61textStart = 0;
- Node61textWidth =Node61fontSize <= 8 ? Node61width + Node61fontSize * 0.2 + 6 : Node61width - Node61fontSize * 0.2;
- Node61lineStart = (Node61width - (ht.Default.getTextSize('节约标煤', ' '+ Node61fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node61align === 'center') {
- Node61textStart = -3;
- Node61textWidth = Node61width;
- Node61lineStart = Node61width - ht.Default.getTextSize('节约标煤', ' '+ Node61fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node61.setImage(GD.getTextJSON(Node61width, Node61height, true, false, false, ' '+ Node61fontSize + 'px "Arial"'))
- Node61.setPosition(801*ratio.ratioX, 122*ratio.ratioY);
- Node61.setWidth(Node61width);
- Node61.setHeight(Node61height);
- Node61._nodeType = 'text';
- Node61._disallowEvert = true;
- Node61.setRotation(0*Math.PI/180);
- Node61.a('node.width', Node61width);
- Node61.a('node.height', Node61height);
- Node61.a('node.rect', [0, 0, Node61width, Node61height]);
- Node61.a('node.bordercolor','rgba(0,0,0,1)');
- Node61.a('node.borderwidth', 0);
- Node61.a('node.background','' || 'rgba(0,0,0,0)');
- Node61.a('node.gradient','');
- Node61.a('node.gradientcolor','');
- Node61.a('node.text','节约标煤');
- Node61.a('node.textalign','left');
- Node61.a('node.textvAlign','middle');
- Node61.a('node.textrect', [Node61textStart, 0, Node61textWidth, Node61height]);
- Node61.a('node.color','rgba(0,0,0,1)');
- Node61.a('node.font',' '+ Node61fontSize + 'px "Arial"');
- Node61.a('node.textvisible',true);
- Node61.a('node.linefeed',false);
- if (false) {
- Node61.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node61.a('node.text') || '节约标煤';
- var color=Node61.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node61width,Node61height,13.3333*_ratio.ratioY,"left",color,' '+ Node61fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node61.a('node.underlinepoints',[Node61lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node61fontSize + 2 , ht.Default.getTextSize('节约标煤', ' '+ Node61fontSize + 'px "Arial"').width + 6, (Node61height - Node61fontSize) * 0.5*_ratio.ratioY + Node61fontSize + 2 ]);
- Node61.a('node.underlinevisible',false);
- Node61.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node61);
- zoomNodeList.push({
- node: Node61,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node62 = new ht.Node();
- var Node62textStart, Node62textWidth, Node62lineStart, Node62align = 'left', Node62fontSize = 13.3333*_ratio.ratioY,Node62width = 64*_ratio.ratioX, Node62height = 16*_ratio.ratioY;
- (function () {
- if (Node62align === 'left') {
- Node62textStart = Node62fontSize * 0.2 > 2 ? Node62fontSize * 0.2 - 4 : Node62fontSize * 0.2 - 9;
- Node62textWidth = Node62width;
- Node62lineStart = 1;
- } else if (Node62align === 'right') {
- Node62textStart = 0;
- Node62textWidth =Node62fontSize <= 8 ? Node62width + Node62fontSize * 0.2 + 6 : Node62width - Node62fontSize * 0.2;
- Node62lineStart = (Node62width - (ht.Default.getTextSize('节约用水', ' '+ Node62fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node62align === 'center') {
- Node62textStart = -3;
- Node62textWidth = Node62width;
- Node62lineStart = Node62width - ht.Default.getTextSize('节约用水', ' '+ Node62fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node62.setImage(GD.getTextJSON(Node62width, Node62height, true, false, false, ' '+ Node62fontSize + 'px "Arial"'))
- Node62.setPosition(801*ratio.ratioX, 146*ratio.ratioY);
- Node62.setWidth(Node62width);
- Node62.setHeight(Node62height);
- Node62._nodeType = 'text';
- Node62._disallowEvert = true;
- Node62.setRotation(0*Math.PI/180);
- Node62.a('node.width', Node62width);
- Node62.a('node.height', Node62height);
- Node62.a('node.rect', [0, 0, Node62width, Node62height]);
- Node62.a('node.bordercolor','rgba(0,0,0,1)');
- Node62.a('node.borderwidth', 0);
- Node62.a('node.background','' || 'rgba(0,0,0,0)');
- Node62.a('node.gradient','');
- Node62.a('node.gradientcolor','');
- Node62.a('node.text','节约用水');
- Node62.a('node.textalign','left');
- Node62.a('node.textvAlign','middle');
- Node62.a('node.textrect', [Node62textStart, 0, Node62textWidth, Node62height]);
- Node62.a('node.color','rgba(0,0,0,1)');
- Node62.a('node.font',' '+ Node62fontSize + 'px "Arial"');
- Node62.a('node.textvisible',true);
- Node62.a('node.linefeed',false);
- if (false) {
- Node62.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node62.a('node.text') || '节约用水';
- var color=Node62.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node62width,Node62height,13.3333*_ratio.ratioY,"left",color,' '+ Node62fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node62.a('node.underlinepoints',[Node62lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node62fontSize + 2 , ht.Default.getTextSize('节约用水', ' '+ Node62fontSize + 'px "Arial"').width + 6, (Node62height - Node62fontSize) * 0.5*_ratio.ratioY + Node62fontSize + 2 ]);
- Node62.a('node.underlinevisible',false);
- Node62.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node62);
- zoomNodeList.push({
- node: Node62,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node63 = new ht.Node();
- var Node63textStart, Node63textWidth, Node63lineStart, Node63align = 'left', Node63fontSize = 13.3333*_ratio.ratioY,Node63width = 11*_ratio.ratioX, Node63height = 16*_ratio.ratioY;
- (function () {
- if (Node63align === 'left') {
- Node63textStart = Node63fontSize * 0.2 > 2 ? Node63fontSize * 0.2 - 4 : Node63fontSize * 0.2 - 9;
- Node63textWidth = Node63width;
- Node63lineStart = 1;
- } else if (Node63align === 'right') {
- Node63textStart = 0;
- Node63textWidth =Node63fontSize <= 8 ? Node63width + Node63fontSize * 0.2 + 6 : Node63width - Node63fontSize * 0.2;
- Node63lineStart = (Node63width - (ht.Default.getTextSize('0', 'bold '+ Node63fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node63align === 'center') {
- Node63textStart = -3;
- Node63textWidth = Node63width;
- Node63lineStart = Node63width - ht.Default.getTextSize('0', 'bold '+ Node63fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node63.setImage(GD.getTextJSON(Node63width, Node63height, true, false, false, 'bold '+ Node63fontSize + 'px "UniDreamLED"'))
- Node63.setPosition(907*ratio.ratioX, 48*ratio.ratioY);
- Node63.setWidth(Node63width);
- Node63.setHeight(Node63height);
- Node63._nodeType = 'text';
- Node63._disallowEvert = true;
- Node63.setRotation(0*Math.PI/180);
- Node63.a('node.width', Node63width);
- Node63.a('node.height', Node63height);
- Node63.a('node.rect', [0, 0, Node63width, Node63height]);
- Node63.a('node.bordercolor','rgba(0,0,0,1)');
- Node63.a('node.borderwidth', 0);
- Node63.a('node.background','' || 'rgba(0,0,0,0)');
- Node63.a('node.gradient','');
- Node63.a('node.gradientcolor','');
- Node63.a('node.text','0');
- Node63.a('node.textalign','left');
- Node63.a('node.textvAlign','middle');
- Node63.a('node.textrect', [Node63textStart, 0, Node63textWidth, Node63height]);
- Node63.a('node.color','rgba(0,0,0,1)');
- Node63.a('node.font','bold '+ Node63fontSize + 'px "UniDreamLED"');
- Node63.a('node.textvisible',true);
- Node63.a('node.linefeed',false);
- if (false) {
- Node63.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node63.a('node.text') || '0';
- var color=Node63.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node63width,Node63height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node63fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node63.a('node.underlinepoints',[Node63lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node63fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node63fontSize + 'px "UniDreamLED"').width + 6, (Node63height - Node63fontSize) * 0.5*_ratio.ratioY + Node63fontSize + 2 ]);
- Node63.a('node.underlinevisible',false);
- Node63.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node63);
- zoomNodeList.push({
- node: Node63,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node64 = new ht.Node();
- var Node64textStart, Node64textWidth, Node64lineStart, Node64align = 'left', Node64fontSize = 13.3333*_ratio.ratioY,Node64width = 11*_ratio.ratioX, Node64height = 16*_ratio.ratioY;
- (function () {
- if (Node64align === 'left') {
- Node64textStart = Node64fontSize * 0.2 > 2 ? Node64fontSize * 0.2 - 4 : Node64fontSize * 0.2 - 9;
- Node64textWidth = Node64width;
- Node64lineStart = 1;
- } else if (Node64align === 'right') {
- Node64textStart = 0;
- Node64textWidth =Node64fontSize <= 8 ? Node64width + Node64fontSize * 0.2 + 6 : Node64width - Node64fontSize * 0.2;
- Node64lineStart = (Node64width - (ht.Default.getTextSize('0', 'bold '+ Node64fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node64align === 'center') {
- Node64textStart = -3;
- Node64textWidth = Node64width;
- Node64lineStart = Node64width - ht.Default.getTextSize('0', 'bold '+ Node64fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node64.setImage(GD.getTextJSON(Node64width, Node64height, true, false, false, 'bold '+ Node64fontSize + 'px "UniDreamLED"'))
- Node64.setPosition(907*ratio.ratioX, 72*ratio.ratioY);
- Node64.setWidth(Node64width);
- Node64.setHeight(Node64height);
- Node64._nodeType = 'text';
- Node64._disallowEvert = true;
- Node64.setRotation(0*Math.PI/180);
- Node64.a('node.width', Node64width);
- Node64.a('node.height', Node64height);
- Node64.a('node.rect', [0, 0, Node64width, Node64height]);
- Node64.a('node.bordercolor','rgba(0,0,0,1)');
- Node64.a('node.borderwidth', 0);
- Node64.a('node.background','' || 'rgba(0,0,0,0)');
- Node64.a('node.gradient','');
- Node64.a('node.gradientcolor','');
- Node64.a('node.text','0');
- Node64.a('node.textalign','left');
- Node64.a('node.textvAlign','middle');
- Node64.a('node.textrect', [Node64textStart, 0, Node64textWidth, Node64height]);
- Node64.a('node.color','rgba(0,0,0,1)');
- Node64.a('node.font','bold '+ Node64fontSize + 'px "UniDreamLED"');
- Node64.a('node.textvisible',true);
- Node64.a('node.linefeed',false);
- if (false) {
- Node64.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node64.a('node.text') || '0';
- var color=Node64.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node64width,Node64height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node64fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node64.a('node.underlinepoints',[Node64lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node64fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node64fontSize + 'px "UniDreamLED"').width + 6, (Node64height - Node64fontSize) * 0.5*_ratio.ratioY + Node64fontSize + 2 ]);
- Node64.a('node.underlinevisible',false);
- Node64.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node64);
- zoomNodeList.push({
- node: Node64,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node65 = new ht.Node();
- var Node65textStart, Node65textWidth, Node65lineStart, Node65align = 'left', Node65fontSize = 13.3333*_ratio.ratioY,Node65width = 11*_ratio.ratioX, Node65height = 16*_ratio.ratioY;
- (function () {
- if (Node65align === 'left') {
- Node65textStart = Node65fontSize * 0.2 > 2 ? Node65fontSize * 0.2 - 4 : Node65fontSize * 0.2 - 9;
- Node65textWidth = Node65width;
- Node65lineStart = 1;
- } else if (Node65align === 'right') {
- Node65textStart = 0;
- Node65textWidth =Node65fontSize <= 8 ? Node65width + Node65fontSize * 0.2 + 6 : Node65width - Node65fontSize * 0.2;
- Node65lineStart = (Node65width - (ht.Default.getTextSize('0', 'bold '+ Node65fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node65align === 'center') {
- Node65textStart = -3;
- Node65textWidth = Node65width;
- Node65lineStart = Node65width - ht.Default.getTextSize('0', 'bold '+ Node65fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node65.setImage(GD.getTextJSON(Node65width, Node65height, true, false, false, 'bold '+ Node65fontSize + 'px "UniDreamLED"'))
- Node65.setPosition(907*ratio.ratioX, 97*ratio.ratioY);
- Node65.setWidth(Node65width);
- Node65.setHeight(Node65height);
- Node65._nodeType = 'text';
- Node65._disallowEvert = true;
- Node65.setRotation(0*Math.PI/180);
- Node65.a('node.width', Node65width);
- Node65.a('node.height', Node65height);
- Node65.a('node.rect', [0, 0, Node65width, Node65height]);
- Node65.a('node.bordercolor','rgba(0,0,0,1)');
- Node65.a('node.borderwidth', 0);
- Node65.a('node.background','' || 'rgba(0,0,0,0)');
- Node65.a('node.gradient','');
- Node65.a('node.gradientcolor','');
- Node65.a('node.text','0');
- Node65.a('node.textalign','left');
- Node65.a('node.textvAlign','middle');
- Node65.a('node.textrect', [Node65textStart, 0, Node65textWidth, Node65height]);
- Node65.a('node.color','rgba(0,0,0,1)');
- Node65.a('node.font','bold '+ Node65fontSize + 'px "UniDreamLED"');
- Node65.a('node.textvisible',true);
- Node65.a('node.linefeed',false);
- if (false) {
- Node65.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node65.a('node.text') || '0';
- var color=Node65.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node65width,Node65height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node65fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node65.a('node.underlinepoints',[Node65lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node65fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node65fontSize + 'px "UniDreamLED"').width + 6, (Node65height - Node65fontSize) * 0.5*_ratio.ratioY + Node65fontSize + 2 ]);
- Node65.a('node.underlinevisible',false);
- Node65.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node65);
- zoomNodeList.push({
- node: Node65,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node66 = new ht.Node();
- var Node66textStart, Node66textWidth, Node66lineStart, Node66align = 'left', Node66fontSize = 13.3333*_ratio.ratioY,Node66width = 9*_ratio.ratioX, Node66height = 16*_ratio.ratioY;
- (function () {
- if (Node66align === 'left') {
- Node66textStart = Node66fontSize * 0.2 > 2 ? Node66fontSize * 0.2 - 4 : Node66fontSize * 0.2 - 9;
- Node66textWidth = Node66width;
- Node66lineStart = 1;
- } else if (Node66align === 'right') {
- Node66textStart = 0;
- Node66textWidth =Node66fontSize <= 8 ? Node66width + Node66fontSize * 0.2 + 6 : Node66width - Node66fontSize * 0.2;
- Node66lineStart = (Node66width - (ht.Default.getTextSize('-', 'bold '+ Node66fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node66align === 'center') {
- Node66textStart = -3;
- Node66textWidth = Node66width;
- Node66lineStart = Node66width - ht.Default.getTextSize('-', 'bold '+ Node66fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node66.setImage(GD.getTextJSON(Node66width, Node66height, true, false, false, 'bold '+ Node66fontSize + 'px "UniDreamLED"'))
- Node66.setPosition(906*ratio.ratioX, 121*ratio.ratioY);
- Node66.setWidth(Node66width);
- Node66.setHeight(Node66height);
- Node66._nodeType = 'text';
- Node66._disallowEvert = true;
- Node66.setRotation(0*Math.PI/180);
- Node66.a('node.width', Node66width);
- Node66.a('node.height', Node66height);
- Node66.a('node.rect', [0, 0, Node66width, Node66height]);
- Node66.a('node.bordercolor','rgba(0,0,0,1)');
- Node66.a('node.borderwidth', 0);
- Node66.a('node.background','' || 'rgba(0,0,0,0)');
- Node66.a('node.gradient','');
- Node66.a('node.gradientcolor','');
- Node66.a('node.text','-');
- Node66.a('node.textalign','left');
- Node66.a('node.textvAlign','middle');
- Node66.a('node.textrect', [Node66textStart, 0, Node66textWidth, Node66height]);
- Node66.a('node.color','rgba(0,0,0,1)');
- Node66.a('node.font','bold '+ Node66fontSize + 'px "UniDreamLED"');
- Node66.a('node.textvisible',true);
- Node66.a('node.linefeed',false);
- if (false) {
- Node66.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node66.a('node.text') || '-';
- var color=Node66.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node66width,Node66height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node66fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node66.a('node.underlinepoints',[Node66lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node66fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node66fontSize + 'px "UniDreamLED"').width + 6, (Node66height - Node66fontSize) * 0.5*_ratio.ratioY + Node66fontSize + 2 ]);
- Node66.a('node.underlinevisible',false);
- Node66.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node66);
- zoomNodeList.push({
- node: Node66,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node67 = new ht.Node();
- var Node67textStart, Node67textWidth, Node67lineStart, Node67align = 'left', Node67fontSize = 13.3333*_ratio.ratioY,Node67width = 39*_ratio.ratioX, Node67height = 16*_ratio.ratioY;
- (function () {
- if (Node67align === 'left') {
- Node67textStart = Node67fontSize * 0.2 > 2 ? Node67fontSize * 0.2 - 4 : Node67fontSize * 0.2 - 9;
- Node67textWidth = Node67width;
- Node67lineStart = 1;
- } else if (Node67align === 'right') {
- Node67textStart = 0;
- Node67textWidth =Node67fontSize <= 8 ? Node67width + Node67fontSize * 0.2 + 6 : Node67width - Node67fontSize * 0.2;
- Node67lineStart = (Node67width - (ht.Default.getTextSize('万kW', ' '+ Node67fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node67align === 'center') {
- Node67textStart = -3;
- Node67textWidth = Node67width;
- Node67lineStart = Node67width - ht.Default.getTextSize('万kW', ' '+ Node67fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node67.setImage(GD.getTextJSON(Node67width, Node67height, true, false, false, ' '+ Node67fontSize + 'px "Arial"'))
- Node67.setPosition(984*ratio.ratioX, 47*ratio.ratioY);
- Node67.setWidth(Node67width);
- Node67.setHeight(Node67height);
- Node67._nodeType = 'text';
- Node67._disallowEvert = true;
- Node67.setRotation(0*Math.PI/180);
- Node67.a('node.width', Node67width);
- Node67.a('node.height', Node67height);
- Node67.a('node.rect', [0, 0, Node67width, Node67height]);
- Node67.a('node.bordercolor','rgba(169,169,169,1)');
- Node67.a('node.borderwidth', 0);
- Node67.a('node.background','' || 'rgba(0,0,0,0)');
- Node67.a('node.gradient','');
- Node67.a('node.gradientcolor','');
- Node67.a('node.text','万kW');
- Node67.a('node.textalign','left');
- Node67.a('node.textvAlign','middle');
- Node67.a('node.textrect', [Node67textStart, 0, Node67textWidth, Node67height]);
- Node67.a('node.color','rgba(169,169,169,1)');
- Node67.a('node.font',' '+ Node67fontSize + 'px "Arial"');
- Node67.a('node.textvisible',true);
- Node67.a('node.linefeed',false);
- if (false) {
- Node67.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node67.a('node.text') || '万kW';
- var color=Node67.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node67width,Node67height,13.3333*_ratio.ratioY,"left",color,' '+ Node67fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node67.a('node.underlinepoints',[Node67lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node67fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node67fontSize + 'px "Arial"').width + 6, (Node67height - Node67fontSize) * 0.5*_ratio.ratioY + Node67fontSize + 2 ]);
- Node67.a('node.underlinevisible',false);
- Node67.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node67);
- zoomNodeList.push({
- node: Node67,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node68 = new ht.Node();
- var Node68textStart, Node68textWidth, Node68lineStart, Node68align = 'left', Node68fontSize = 13.3333*_ratio.ratioY,Node68width = 9*_ratio.ratioX, Node68height = 16*_ratio.ratioY;
- (function () {
- if (Node68align === 'left') {
- Node68textStart = Node68fontSize * 0.2 > 2 ? Node68fontSize * 0.2 - 4 : Node68fontSize * 0.2 - 9;
- Node68textWidth = Node68width;
- Node68lineStart = 1;
- } else if (Node68align === 'right') {
- Node68textStart = 0;
- Node68textWidth =Node68fontSize <= 8 ? Node68width + Node68fontSize * 0.2 + 6 : Node68width - Node68fontSize * 0.2;
- Node68lineStart = (Node68width - (ht.Default.getTextSize('-', 'bold '+ Node68fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node68align === 'center') {
- Node68textStart = -3;
- Node68textWidth = Node68width;
- Node68lineStart = Node68width - ht.Default.getTextSize('-', 'bold '+ Node68fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node68.setImage(GD.getTextJSON(Node68width, Node68height, true, false, false, 'bold '+ Node68fontSize + 'px "Arial"'))
- Node68.setPosition(906*ratio.ratioX, 146*ratio.ratioY);
- Node68.setWidth(Node68width);
- Node68.setHeight(Node68height);
- Node68._nodeType = 'text';
- Node68._disallowEvert = true;
- Node68.setRotation(0*Math.PI/180);
- Node68.a('node.width', Node68width);
- Node68.a('node.height', Node68height);
- Node68.a('node.rect', [0, 0, Node68width, Node68height]);
- Node68.a('node.bordercolor','rgba(0,0,0,1)');
- Node68.a('node.borderwidth', 0);
- Node68.a('node.background','' || 'rgba(0,0,0,0)');
- Node68.a('node.gradient','');
- Node68.a('node.gradientcolor','');
- Node68.a('node.text','-');
- Node68.a('node.textalign','left');
- Node68.a('node.textvAlign','middle');
- Node68.a('node.textrect', [Node68textStart, 0, Node68textWidth, Node68height]);
- Node68.a('node.color','rgba(0,0,0,1)');
- Node68.a('node.font','bold '+ Node68fontSize + 'px "Arial"');
- Node68.a('node.textvisible',true);
- Node68.a('node.linefeed',false);
- if (false) {
- Node68.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node68.a('node.text') || '-';
- var color=Node68.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node68width,Node68height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node68fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node68.a('node.underlinepoints',[Node68lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node68fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node68fontSize + 'px "Arial"').width + 6, (Node68height - Node68fontSize) * 0.5*_ratio.ratioY + Node68fontSize + 2 ]);
- Node68.a('node.underlinevisible',false);
- Node68.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node68);
- zoomNodeList.push({
- node: Node68,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node69 = new ht.Node();
- var Node69textStart, Node69textWidth, Node69lineStart, Node69align = 'left', Node69fontSize = 13.3333*_ratio.ratioY,Node69width = 39*_ratio.ratioX, Node69height = 16*_ratio.ratioY;
- (function () {
- if (Node69align === 'left') {
- Node69textStart = Node69fontSize * 0.2 > 2 ? Node69fontSize * 0.2 - 4 : Node69fontSize * 0.2 - 9;
- Node69textWidth = Node69width;
- Node69lineStart = 1;
- } else if (Node69align === 'right') {
- Node69textStart = 0;
- Node69textWidth =Node69fontSize <= 8 ? Node69width + Node69fontSize * 0.2 + 6 : Node69width - Node69fontSize * 0.2;
- Node69lineStart = (Node69width - (ht.Default.getTextSize('万kW', ' '+ Node69fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node69align === 'center') {
- Node69textStart = -3;
- Node69textWidth = Node69width;
- Node69lineStart = Node69width - ht.Default.getTextSize('万kW', ' '+ Node69fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node69.setImage(GD.getTextJSON(Node69width, Node69height, true, false, false, ' '+ Node69fontSize + 'px "Arial"'))
- Node69.setPosition(984*ratio.ratioX, 73*ratio.ratioY);
- Node69.setWidth(Node69width);
- Node69.setHeight(Node69height);
- Node69._nodeType = 'text';
- Node69._disallowEvert = true;
- Node69.setRotation(0*Math.PI/180);
- Node69.a('node.width', Node69width);
- Node69.a('node.height', Node69height);
- Node69.a('node.rect', [0, 0, Node69width, Node69height]);
- Node69.a('node.bordercolor','rgba(169,169,169,1)');
- Node69.a('node.borderwidth', 0);
- Node69.a('node.background','' || 'rgba(0,0,0,0)');
- Node69.a('node.gradient','');
- Node69.a('node.gradientcolor','');
- Node69.a('node.text','万kW');
- Node69.a('node.textalign','left');
- Node69.a('node.textvAlign','middle');
- Node69.a('node.textrect', [Node69textStart, 0, Node69textWidth, Node69height]);
- Node69.a('node.color','rgba(169,169,169,1)');
- Node69.a('node.font',' '+ Node69fontSize + 'px "Arial"');
- Node69.a('node.textvisible',true);
- Node69.a('node.linefeed',false);
- if (false) {
- Node69.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node69.a('node.text') || '万kW';
- var color=Node69.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node69width,Node69height,13.3333*_ratio.ratioY,"left",color,' '+ Node69fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node69.a('node.underlinepoints',[Node69lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node69fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node69fontSize + 'px "Arial"').width + 6, (Node69height - Node69fontSize) * 0.5*_ratio.ratioY + Node69fontSize + 2 ]);
- Node69.a('node.underlinevisible',false);
- Node69.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node69);
- zoomNodeList.push({
- node: Node69,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node70 = new ht.Node();
- var Node70textStart, Node70textWidth, Node70lineStart, Node70align = 'left', Node70fontSize = 13.3333*_ratio.ratioY,Node70width = 39*_ratio.ratioX, Node70height = 16*_ratio.ratioY;
- (function () {
- if (Node70align === 'left') {
- Node70textStart = Node70fontSize * 0.2 > 2 ? Node70fontSize * 0.2 - 4 : Node70fontSize * 0.2 - 9;
- Node70textWidth = Node70width;
- Node70lineStart = 1;
- } else if (Node70align === 'right') {
- Node70textStart = 0;
- Node70textWidth =Node70fontSize <= 8 ? Node70width + Node70fontSize * 0.2 + 6 : Node70width - Node70fontSize * 0.2;
- Node70lineStart = (Node70width - (ht.Default.getTextSize('万kW', ' '+ Node70fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node70align === 'center') {
- Node70textStart = -3;
- Node70textWidth = Node70width;
- Node70lineStart = Node70width - ht.Default.getTextSize('万kW', ' '+ Node70fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node70.setImage(GD.getTextJSON(Node70width, Node70height, true, false, false, ' '+ Node70fontSize + 'px "Arial"'))
- Node70.setPosition(984*ratio.ratioX, 98*ratio.ratioY);
- Node70.setWidth(Node70width);
- Node70.setHeight(Node70height);
- Node70._nodeType = 'text';
- Node70._disallowEvert = true;
- Node70.setRotation(0*Math.PI/180);
- Node70.a('node.width', Node70width);
- Node70.a('node.height', Node70height);
- Node70.a('node.rect', [0, 0, Node70width, Node70height]);
- Node70.a('node.bordercolor','rgba(169,169,169,1)');
- Node70.a('node.borderwidth', 0);
- Node70.a('node.background','' || 'rgba(0,0,0,0)');
- Node70.a('node.gradient','');
- Node70.a('node.gradientcolor','');
- Node70.a('node.text','万kW');
- Node70.a('node.textalign','left');
- Node70.a('node.textvAlign','middle');
- Node70.a('node.textrect', [Node70textStart, 0, Node70textWidth, Node70height]);
- Node70.a('node.color','rgba(169,169,169,1)');
- Node70.a('node.font',' '+ Node70fontSize + 'px "Arial"');
- Node70.a('node.textvisible',true);
- Node70.a('node.linefeed',false);
- if (false) {
- Node70.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node70.a('node.text') || '万kW';
- var color=Node70.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node70width,Node70height,13.3333*_ratio.ratioY,"left",color,' '+ Node70fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node70.a('node.underlinepoints',[Node70lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node70fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node70fontSize + 'px "Arial"').width + 6, (Node70height - Node70fontSize) * 0.5*_ratio.ratioY + Node70fontSize + 2 ]);
- Node70.a('node.underlinevisible',false);
- Node70.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node70);
- zoomNodeList.push({
- node: Node70,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node71 = new ht.Node();
- var Node71textStart, Node71textWidth, Node71lineStart, Node71align = 'left', Node71fontSize = 13.3333*_ratio.ratioY,Node71width = 19*_ratio.ratioX, Node71height = 16*_ratio.ratioY;
- (function () {
- if (Node71align === 'left') {
- Node71textStart = Node71fontSize * 0.2 > 2 ? Node71fontSize * 0.2 - 4 : Node71fontSize * 0.2 - 9;
- Node71textWidth = Node71width;
- Node71lineStart = 1;
- } else if (Node71align === 'right') {
- Node71textStart = 0;
- Node71textWidth =Node71fontSize <= 8 ? Node71width + Node71fontSize * 0.2 + 6 : Node71width - Node71fontSize * 0.2;
- Node71lineStart = (Node71width - (ht.Default.getTextSize('吨', ' '+ Node71fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node71align === 'center') {
- Node71textStart = -3;
- Node71textWidth = Node71width;
- Node71lineStart = Node71width - ht.Default.getTextSize('吨', ' '+ Node71fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node71.setImage(GD.getTextJSON(Node71width, Node71height, true, false, false, ' '+ Node71fontSize + 'px "Arial"'))
- Node71.setPosition(974*ratio.ratioX, 125*ratio.ratioY);
- Node71.setWidth(Node71width);
- Node71.setHeight(Node71height);
- Node71._nodeType = 'text';
- Node71._disallowEvert = true;
- Node71.setRotation(0*Math.PI/180);
- Node71.a('node.width', Node71width);
- Node71.a('node.height', Node71height);
- Node71.a('node.rect', [0, 0, Node71width, Node71height]);
- Node71.a('node.bordercolor','rgba(169,169,169,1)');
- Node71.a('node.borderwidth', 0);
- Node71.a('node.background','' || 'rgba(0,0,0,0)');
- Node71.a('node.gradient','');
- Node71.a('node.gradientcolor','');
- Node71.a('node.text','吨');
- Node71.a('node.textalign','left');
- Node71.a('node.textvAlign','middle');
- Node71.a('node.textrect', [Node71textStart, 0, Node71textWidth, Node71height]);
- Node71.a('node.color','rgba(169,169,169,1)');
- Node71.a('node.font',' '+ Node71fontSize + 'px "Arial"');
- Node71.a('node.textvisible',true);
- Node71.a('node.linefeed',false);
- if (false) {
- Node71.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node71.a('node.text') || '吨';
- var color=Node71.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node71width,Node71height,13.3333*_ratio.ratioY,"left",color,' '+ Node71fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node71.a('node.underlinepoints',[Node71lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node71fontSize + 2 , ht.Default.getTextSize('吨', ' '+ Node71fontSize + 'px "Arial"').width + 6, (Node71height - Node71fontSize) * 0.5*_ratio.ratioY + Node71fontSize + 2 ]);
- Node71.a('node.underlinevisible',false);
- Node71.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node71);
- zoomNodeList.push({
- node: Node71,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node72 = new ht.Node();
- var Node72textStart, Node72textWidth, Node72lineStart, Node72align = 'left', Node72fontSize = 13.3333*_ratio.ratioY,Node72width = 19*_ratio.ratioX, Node72height = 16*_ratio.ratioY;
- (function () {
- if (Node72align === 'left') {
- Node72textStart = Node72fontSize * 0.2 > 2 ? Node72fontSize * 0.2 - 4 : Node72fontSize * 0.2 - 9;
- Node72textWidth = Node72width;
- Node72lineStart = 1;
- } else if (Node72align === 'right') {
- Node72textStart = 0;
- Node72textWidth =Node72fontSize <= 8 ? Node72width + Node72fontSize * 0.2 + 6 : Node72width - Node72fontSize * 0.2;
- Node72lineStart = (Node72width - (ht.Default.getTextSize('吨', ' '+ Node72fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node72align === 'center') {
- Node72textStart = -3;
- Node72textWidth = Node72width;
- Node72lineStart = Node72width - ht.Default.getTextSize('吨', ' '+ Node72fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node72.setImage(GD.getTextJSON(Node72width, Node72height, true, false, false, ' '+ Node72fontSize + 'px "Arial"'))
- Node72.setPosition(974*ratio.ratioX, 147*ratio.ratioY);
- Node72.setWidth(Node72width);
- Node72.setHeight(Node72height);
- Node72._nodeType = 'text';
- Node72._disallowEvert = true;
- Node72.setRotation(0*Math.PI/180);
- Node72.a('node.width', Node72width);
- Node72.a('node.height', Node72height);
- Node72.a('node.rect', [0, 0, Node72width, Node72height]);
- Node72.a('node.bordercolor','rgba(169,169,169,1)');
- Node72.a('node.borderwidth', 0);
- Node72.a('node.background','' || 'rgba(0,0,0,0)');
- Node72.a('node.gradient','');
- Node72.a('node.gradientcolor','');
- Node72.a('node.text','吨');
- Node72.a('node.textalign','left');
- Node72.a('node.textvAlign','middle');
- Node72.a('node.textrect', [Node72textStart, 0, Node72textWidth, Node72height]);
- Node72.a('node.color','rgba(169,169,169,1)');
- Node72.a('node.font',' '+ Node72fontSize + 'px "Arial"');
- Node72.a('node.textvisible',true);
- Node72.a('node.linefeed',false);
- if (false) {
- Node72.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node72.a('node.text') || '吨';
- var color=Node72.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node72width,Node72height,13.3333*_ratio.ratioY,"left",color,' '+ Node72fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node72.a('node.underlinepoints',[Node72lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node72fontSize + 2 , ht.Default.getTextSize('吨', ' '+ Node72fontSize + 'px "Arial"').width + 6, (Node72height - Node72fontSize) * 0.5*_ratio.ratioY + Node72fontSize + 2 ]);
- Node72.a('node.underlinevisible',false);
- Node72.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node72);
- zoomNodeList.push({
- node: Node72,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node73points=[766, 62,1043, 62],
- Node73rect=ht.Default.unionPoint([{x:766,y:62},{x:1043,y:62}]),
- Node73compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node73points.length;i++){
- if(i%2==0){
- Node73compspts.push(Node73points[i]-Node73rect.x);
- }else{
- Node73compspts.push(Node73points[i]-Node73rect.y);
- }
- }
- var Node73ptslength=Node73compspts.length;
- if (Node73rect.height === 0) {
- Node73compspts[0] -= 0;
- Node73compspts[Node73ptslength-2] += 0;
- } else if (Node73rect.width === 0){
- Node73compspts[1] -= 0;
- Node73compspts[Node73ptslength-1] += 0;
- } else {
- Node73compspts[0] -= 0;
- Node73compspts[1] -= 0;
- Node73compspts[Node73ptslength-2] += 0;
- Node73compspts[Node73ptslength-1] += 0;
- }
- Node73 = new ht.Node();
- Node73.borderWidth = 1;
- Node73rect.width = Node73rect.width === 0 ? 0.0001 : Node73rect.width;
- Node73rect.height = Node73rect.height === 0 ? 0.0001 : Node73rect.height;
- var Node73endCompspts = [Node73compspts[Node73ptslength-2],Node73compspts[Node73ptslength-1],0,0];
- var Node73startCompspts = [Node73compspts[0],Node73compspts[1],0,0];
- Node73.setImage(GD.getPolyLineJSON());
- Node73.setPosition(Node73rect.x+Node73rect.width/2,Node73rect.y+Node73rect.height/2);
- Node73.setSize(Node73rect.width,Node73rect.height);
- Node73.setStyle("opacity",1);
- Node73.s({'pixelPerfect':true});
- Node73borderwidth=1;
- Node73.setRotation(0);
- dataModel.add(Node73);
- Node73.a('node.points',Node73compspts);
- Node73.a('node.segments',[1,2]);
- Node73.a('node.color','rgba(220,220,220,1)');
- Node73.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node73.a('node.borderColor','rgba(220,220,220,1)');
- Node73.a('node.background','rgba(220,220,220,1)');
- Node73.a('node.gradient','');
- Node73.a('node.gradientcolor','rgba(220,220,220,1)');
- Node73.a('node.endCompspts',Node73endCompspts);
- Node73.a('node.startCompspts',Node73startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node73';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node73, Node73.getImage(), Node73compspts, Node73endCompspts, Node73startCompspts);
- var Node74points=[764, 88,1041, 88],
- Node74rect=ht.Default.unionPoint([{x:764,y:88},{x:1041,y:88}]),
- Node74compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node74points.length;i++){
- if(i%2==0){
- Node74compspts.push(Node74points[i]-Node74rect.x);
- }else{
- Node74compspts.push(Node74points[i]-Node74rect.y);
- }
- }
- var Node74ptslength=Node74compspts.length;
- if (Node74rect.height === 0) {
- Node74compspts[0] -= 0;
- Node74compspts[Node74ptslength-2] += 0;
- } else if (Node74rect.width === 0){
- Node74compspts[1] -= 0;
- Node74compspts[Node74ptslength-1] += 0;
- } else {
- Node74compspts[0] -= 0;
- Node74compspts[1] -= 0;
- Node74compspts[Node74ptslength-2] += 0;
- Node74compspts[Node74ptslength-1] += 0;
- }
- Node74 = new ht.Node();
- Node74.borderWidth = 1;
- Node74rect.width = Node74rect.width === 0 ? 0.0001 : Node74rect.width;
- Node74rect.height = Node74rect.height === 0 ? 0.0001 : Node74rect.height;
- var Node74endCompspts = [Node74compspts[Node74ptslength-2],Node74compspts[Node74ptslength-1],0,0];
- var Node74startCompspts = [Node74compspts[0],Node74compspts[1],0,0];
- Node74.setImage(GD.getPolyLineJSON());
- Node74.setPosition(Node74rect.x+Node74rect.width/2,Node74rect.y+Node74rect.height/2);
- Node74.setSize(Node74rect.width,Node74rect.height);
- Node74.setStyle("opacity",1);
- Node74.s({'pixelPerfect':true});
- Node74borderwidth=1;
- Node74.setRotation(0);
- dataModel.add(Node74);
- Node74.a('node.points',Node74compspts);
- Node74.a('node.segments',[1,2]);
- Node74.a('node.color','rgba(220,220,220,1)');
- Node74.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node74.a('node.borderColor','rgba(220,220,220,1)');
- Node74.a('node.background','rgba(220,220,220,1)');
- Node74.a('node.gradient','');
- Node74.a('node.gradientcolor','rgba(220,220,220,1)');
- Node74.a('node.endCompspts',Node74endCompspts);
- Node74.a('node.startCompspts',Node74startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node74';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node74, Node74.getImage(), Node74compspts, Node74endCompspts, Node74startCompspts);
- var Node75points=[766, 108,1043, 108],
- Node75rect=ht.Default.unionPoint([{x:766,y:108},{x:1043,y:108}]),
- Node75compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node75points.length;i++){
- if(i%2==0){
- Node75compspts.push(Node75points[i]-Node75rect.x);
- }else{
- Node75compspts.push(Node75points[i]-Node75rect.y);
- }
- }
- var Node75ptslength=Node75compspts.length;
- if (Node75rect.height === 0) {
- Node75compspts[0] -= 0;
- Node75compspts[Node75ptslength-2] += 0;
- } else if (Node75rect.width === 0){
- Node75compspts[1] -= 0;
- Node75compspts[Node75ptslength-1] += 0;
- } else {
- Node75compspts[0] -= 0;
- Node75compspts[1] -= 0;
- Node75compspts[Node75ptslength-2] += 0;
- Node75compspts[Node75ptslength-1] += 0;
- }
- Node75 = new ht.Node();
- Node75.borderWidth = 1;
- Node75rect.width = Node75rect.width === 0 ? 0.0001 : Node75rect.width;
- Node75rect.height = Node75rect.height === 0 ? 0.0001 : Node75rect.height;
- var Node75endCompspts = [Node75compspts[Node75ptslength-2],Node75compspts[Node75ptslength-1],0,0];
- var Node75startCompspts = [Node75compspts[0],Node75compspts[1],0,0];
- Node75.setImage(GD.getPolyLineJSON());
- Node75.setPosition(Node75rect.x+Node75rect.width/2,Node75rect.y+Node75rect.height/2);
- Node75.setSize(Node75rect.width,Node75rect.height);
- Node75.setStyle("opacity",1);
- Node75.s({'pixelPerfect':true});
- Node75borderwidth=1;
- Node75.setRotation(0);
- dataModel.add(Node75);
- Node75.a('node.points',Node75compspts);
- Node75.a('node.segments',[1,2]);
- Node75.a('node.color','rgba(220,220,220,1)');
- Node75.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node75.a('node.borderColor','rgba(220,220,220,1)');
- Node75.a('node.background','rgba(220,220,220,1)');
- Node75.a('node.gradient','');
- Node75.a('node.gradientcolor','rgba(220,220,220,1)');
- Node75.a('node.endCompspts',Node75endCompspts);
- Node75.a('node.startCompspts',Node75startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node75';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node75, Node75.getImage(), Node75compspts, Node75endCompspts, Node75startCompspts);
- var Node76points=[766, 135,1043, 135],
- Node76rect=ht.Default.unionPoint([{x:766,y:135},{x:1043,y:135}]),
- Node76compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node76points.length;i++){
- if(i%2==0){
- Node76compspts.push(Node76points[i]-Node76rect.x);
- }else{
- Node76compspts.push(Node76points[i]-Node76rect.y);
- }
- }
- var Node76ptslength=Node76compspts.length;
- if (Node76rect.height === 0) {
- Node76compspts[0] -= 0;
- Node76compspts[Node76ptslength-2] += 0;
- } else if (Node76rect.width === 0){
- Node76compspts[1] -= 0;
- Node76compspts[Node76ptslength-1] += 0;
- } else {
- Node76compspts[0] -= 0;
- Node76compspts[1] -= 0;
- Node76compspts[Node76ptslength-2] += 0;
- Node76compspts[Node76ptslength-1] += 0;
- }
- Node76 = new ht.Node();
- Node76.borderWidth = 1;
- Node76rect.width = Node76rect.width === 0 ? 0.0001 : Node76rect.width;
- Node76rect.height = Node76rect.height === 0 ? 0.0001 : Node76rect.height;
- var Node76endCompspts = [Node76compspts[Node76ptslength-2],Node76compspts[Node76ptslength-1],0,0];
- var Node76startCompspts = [Node76compspts[0],Node76compspts[1],0,0];
- Node76.setImage(GD.getPolyLineJSON());
- Node76.setPosition(Node76rect.x+Node76rect.width/2,Node76rect.y+Node76rect.height/2);
- Node76.setSize(Node76rect.width,Node76rect.height);
- Node76.setStyle("opacity",1);
- Node76.s({'pixelPerfect':true});
- Node76borderwidth=1;
- Node76.setRotation(0);
- dataModel.add(Node76);
- Node76.a('node.points',Node76compspts);
- Node76.a('node.segments',[1,2]);
- Node76.a('node.color','rgba(220,220,220,1)');
- Node76.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node76.a('node.borderColor','rgba(220,220,220,1)');
- Node76.a('node.background','rgba(220,220,220,1)');
- Node76.a('node.gradient','');
- Node76.a('node.gradientcolor','rgba(220,220,220,1)');
- Node76.a('node.endCompspts',Node76endCompspts);
- Node76.a('node.startCompspts',Node76startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node76';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node76, Node76.getImage(), Node76compspts, Node76endCompspts, Node76startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node77type = 'rect';
- var Node77 = new ht.Node(),
- Node77BorderWidth = 1*2;
- if (Node77type === 'arc') {
- Node77BorderWidth *= 1;
- }
- Node77.setImage(GD.getRectJSON(120*_ratio.ratioX, 120*_ratio.ratioY, Node77type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node77.setPosition(1111*ratio.ratioX, 98*ratio.ratioY);
- Node77.setSize(120*_ratio.ratioX, 120*_ratio.ratioY);
- Node77.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node77.a('node.width', 120*_ratio.ratioX);
- Node77.a('node.height', 120*_ratio.ratioY);
- Node77.a('node.type', Node77type);
- Node77.a('node.rect', [0, 0, 120*_ratio.ratioX, 120*_ratio.ratioY]);
- Node77.a('node.background', 'rgba(245,245,245,1)');
- Node77.a('node.gradientcolor', 'rgba(245,245,245,1)');
- Node77.a('node.gradient', '');
- Node77.a('node.borderwidth', Node77BorderWidth);
- Node77.a('node.color', 'rgba(220,220,220,1)');
- Node77.a('node.fillrect', [0,0,0,0]);
- Node77.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node77.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node77.a('node.fillgradient', '');
- if (Node77type !== 'rect') {
- Node77.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node77.a('node.arcTo', parseFloat('@arcTo@'));
- Node77.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node77type === 'arc') {
- Node77.a('node.arcOval', true);
- }
- Node77.setRotation(0*Math.PI/180);
- Node77.borderWidth = Node77BorderWidth;
- Node77.borderFillwidth = Node77BorderWidth;
- dataModel.add(Node77);
- Node77._nodename = 'Node77'
- Node77._nodeType = 'rect';
- zoomNodeList.push({
- node: Node77,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node77, Node77.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node78type = 'rect';
- var Node78 = new ht.Node(),
- Node78BorderWidth = 1*2;
- if (Node78type === 'arc') {
- Node78BorderWidth *= 1;
- }
- Node78.setImage(GD.getRectJSON(280.7278*_ratio.ratioX, 122*_ratio.ratioY, Node78type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node78.setPosition(1190*ratio.ratioX, 98*ratio.ratioY);
- Node78.setSize(280.7278*_ratio.ratioX, 122*_ratio.ratioY);
- Node78.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node78.a('node.width', 280.7278*_ratio.ratioX);
- Node78.a('node.height', 122*_ratio.ratioY);
- Node78.a('node.type', Node78type);
- Node78.a('node.rect', [0, 0, 280.7278*_ratio.ratioX, 122*_ratio.ratioY]);
- Node78.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node78.a('node.gradientcolor', '');
- Node78.a('node.gradient', '');
- Node78.a('node.borderwidth', Node78BorderWidth);
- Node78.a('node.color', 'rgba(220,220,220,1)');
- Node78.a('node.fillrect', [0,0,0,0]);
- Node78.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node78.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node78.a('node.fillgradient', '');
- if (Node78type !== 'rect') {
- Node78.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node78.a('node.arcTo', parseFloat('@arcTo@'));
- Node78.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node78type === 'arc') {
- Node78.a('node.arcOval', true);
- }
- Node78.setRotation(0*Math.PI/180);
- Node78.borderWidth = Node78BorderWidth;
- Node78.borderFillwidth = Node78BorderWidth;
- dataModel.add(Node78);
- Node78._nodename = 'Node78'
- Node78._nodeType = 'rect';
- zoomNodeList.push({
- node: Node78,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node78, Node78.getImage());var Node79points=[1241, 38,1241, 158],
- Node79rect=ht.Default.unionPoint([{x:1241,y:38},{x:1241,y:158}]),
- Node79compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Node79points.length;i++){
- if(i%2==0){
- Node79compspts.push(Node79points[i]-Node79rect.x);
- }else{
- Node79compspts.push(Node79points[i]-Node79rect.y);
- }
- }
- var Node79ptslength=Node79compspts.length;
- if (Node79rect.height === 0) {
- Node79compspts[0] -= 0;
- Node79compspts[Node79ptslength-2] += 0;
- } else if (Node79rect.width === 0){
- Node79compspts[1] -= 0;
- Node79compspts[Node79ptslength-1] += 0;
- } else {
- Node79compspts[0] -= 0;
- Node79compspts[1] -= 0;
- Node79compspts[Node79ptslength-2] += 0;
- Node79compspts[Node79ptslength-1] += 0;
- }
- Node79 = new ht.Node();
- Node79.borderWidth = 1;
- Node79rect.width = Node79rect.width === 0 ? 0.0001 : Node79rect.width;
- Node79rect.height = Node79rect.height === 0 ? 0.0001 : Node79rect.height;
- var Node79endCompspts = [Node79compspts[Node79ptslength-2],Node79compspts[Node79ptslength-1],0,0];
- var Node79startCompspts = [Node79compspts[0],Node79compspts[1],0,0];
- Node79.setImage(GD.getPolyLineJSON());
- Node79.setPosition(Node79rect.x+Node79rect.width/2,Node79rect.y+Node79rect.height/2);
- Node79.setSize(Node79rect.width,Node79rect.height);
- Node79.setStyle("opacity",1);
- Node79.s({'pixelPerfect':true});
- Node79borderwidth=1;
- Node79.setRotation(0);
- dataModel.add(Node79);
- Node79.a('node.points',Node79compspts);
- Node79.a('node.segments',[1,2]);
- Node79.a('node.color','rgba(220,220,220,1)');
- Node79.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node79.a('node.borderColor','rgba(220,220,220,1)');
- Node79.a('node.background','rgba(220,220,220,1)');
- Node79.a('node.gradient','');
- Node79.a('node.gradientcolor','rgba(220,220,220,1)');
- Node79.a('node.endCompspts',Node79endCompspts);
- Node79.a('node.startCompspts',Node79startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node79';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node79, Node79.getImage(), Node79compspts, Node79endCompspts, Node79startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node80 = new ht.Node();
- var Node80textStart, Node80textWidth, Node80lineStart, Node80align = 'left', Node80fontSize = 13.3333*_ratio.ratioY,Node80width = 110*_ratio.ratioX, Node80height = 16*_ratio.ratioY;
- (function () {
- if (Node80align === 'left') {
- Node80textStart = Node80fontSize * 0.2 > 2 ? Node80fontSize * 0.2 - 4 : Node80fontSize * 0.2 - 9;
- Node80textWidth = Node80width;
- Node80lineStart = 1;
- } else if (Node80align === 'right') {
- Node80textStart = 0;
- Node80textWidth =Node80fontSize <= 8 ? Node80width + Node80fontSize * 0.2 + 6 : Node80width - Node80fontSize * 0.2;
- Node80lineStart = (Node80width - (ht.Default.getTextSize('日维护损失电量', ' '+ Node80fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node80align === 'center') {
- Node80textStart = -3;
- Node80textWidth = Node80width;
- Node80lineStart = Node80width - ht.Default.getTextSize('日维护损失电量', ' '+ Node80fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node80.setImage(GD.getTextJSON(Node80width, Node80height, true, false, false, ' '+ Node80fontSize + 'px "Arial"'))
- Node80.setPosition(1110*ratio.ratioX, 49*ratio.ratioY);
- Node80.setWidth(Node80width);
- Node80.setHeight(Node80height);
- Node80._nodeType = 'text';
- Node80._disallowEvert = true;
- Node80.setRotation(0*Math.PI/180);
- Node80.a('node.width', Node80width);
- Node80.a('node.height', Node80height);
- Node80.a('node.rect', [0, 0, Node80width, Node80height]);
- Node80.a('node.bordercolor','rgba(0,0,0,1)');
- Node80.a('node.borderwidth', 0);
- Node80.a('node.background','' || 'rgba(0,0,0,0)');
- Node80.a('node.gradient','');
- Node80.a('node.gradientcolor','');
- Node80.a('node.text','日维护损失电量');
- Node80.a('node.textalign','left');
- Node80.a('node.textvAlign','middle');
- Node80.a('node.textrect', [Node80textStart, 0, Node80textWidth, Node80height]);
- Node80.a('node.color','rgba(0,0,0,1)');
- Node80.a('node.font',' '+ Node80fontSize + 'px "Arial"');
- Node80.a('node.textvisible',true);
- Node80.a('node.linefeed',false);
- if (false) {
- Node80.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node80.a('node.text') || '日维护损失电量';
- var color=Node80.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node80width,Node80height,13.3333*_ratio.ratioY,"left",color,' '+ Node80fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node80.a('node.underlinepoints',[Node80lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node80fontSize + 2 , ht.Default.getTextSize('日维护损失电量', ' '+ Node80fontSize + 'px "Arial"').width + 6, (Node80height - Node80fontSize) * 0.5*_ratio.ratioY + Node80fontSize + 2 ]);
- Node80.a('node.underlinevisible',false);
- Node80.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node80);
- zoomNodeList.push({
- node: Node80,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node81 = new ht.Node();
- var Node81textStart, Node81textWidth, Node81lineStart, Node81align = 'left', Node81fontSize = 13.3333*_ratio.ratioY,Node81width = 110*_ratio.ratioX, Node81height = 16*_ratio.ratioY;
- (function () {
- if (Node81align === 'left') {
- Node81textStart = Node81fontSize * 0.2 > 2 ? Node81fontSize * 0.2 - 4 : Node81fontSize * 0.2 - 9;
- Node81textWidth = Node81width;
- Node81lineStart = 1;
- } else if (Node81align === 'right') {
- Node81textStart = 0;
- Node81textWidth =Node81fontSize <= 8 ? Node81width + Node81fontSize * 0.2 + 6 : Node81width - Node81fontSize * 0.2;
- Node81lineStart = (Node81width - (ht.Default.getTextSize('日故障损失电量', ' '+ Node81fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node81align === 'center') {
- Node81textStart = -3;
- Node81textWidth = Node81width;
- Node81lineStart = Node81width - ht.Default.getTextSize('日故障损失电量', ' '+ Node81fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node81.setImage(GD.getTextJSON(Node81width, Node81height, true, false, false, ' '+ Node81fontSize + 'px "Arial"'))
- Node81.setPosition(1110*ratio.ratioX, 75*ratio.ratioY);
- Node81.setWidth(Node81width);
- Node81.setHeight(Node81height);
- Node81._nodeType = 'text';
- Node81._disallowEvert = true;
- Node81.setRotation(0*Math.PI/180);
- Node81.a('node.width', Node81width);
- Node81.a('node.height', Node81height);
- Node81.a('node.rect', [0, 0, Node81width, Node81height]);
- Node81.a('node.bordercolor','rgba(0,0,0,1)');
- Node81.a('node.borderwidth', 0);
- Node81.a('node.background','' || 'rgba(0,0,0,0)');
- Node81.a('node.gradient','');
- Node81.a('node.gradientcolor','');
- Node81.a('node.text','日故障损失电量');
- Node81.a('node.textalign','left');
- Node81.a('node.textvAlign','middle');
- Node81.a('node.textrect', [Node81textStart, 0, Node81textWidth, Node81height]);
- Node81.a('node.color','rgba(0,0,0,1)');
- Node81.a('node.font',' '+ Node81fontSize + 'px "Arial"');
- Node81.a('node.textvisible',true);
- Node81.a('node.linefeed',false);
- if (false) {
- Node81.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node81.a('node.text') || '日故障损失电量';
- var color=Node81.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node81width,Node81height,13.3333*_ratio.ratioY,"left",color,' '+ Node81fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node81.a('node.underlinepoints',[Node81lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node81fontSize + 2 , ht.Default.getTextSize('日故障损失电量', ' '+ Node81fontSize + 'px "Arial"').width + 6, (Node81height - Node81fontSize) * 0.5*_ratio.ratioY + Node81fontSize + 2 ]);
- Node81.a('node.underlinevisible',false);
- Node81.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node81);
- zoomNodeList.push({
- node: Node81,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node82 = new ht.Node();
- var Node82textStart, Node82textWidth, Node82lineStart, Node82align = 'left', Node82fontSize = 13.3333*_ratio.ratioY,Node82width = 110*_ratio.ratioX, Node82height = 16*_ratio.ratioY;
- (function () {
- if (Node82align === 'left') {
- Node82textStart = Node82fontSize * 0.2 > 2 ? Node82fontSize * 0.2 - 4 : Node82fontSize * 0.2 - 9;
- Node82textWidth = Node82width;
- Node82lineStart = 1;
- } else if (Node82align === 'right') {
- Node82textStart = 0;
- Node82textWidth =Node82fontSize <= 8 ? Node82width + Node82fontSize * 0.2 + 6 : Node82width - Node82fontSize * 0.2;
- Node82lineStart = (Node82width - (ht.Default.getTextSize('日限电损失电量', ' '+ Node82fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node82align === 'center') {
- Node82textStart = -3;
- Node82textWidth = Node82width;
- Node82lineStart = Node82width - ht.Default.getTextSize('日限电损失电量', ' '+ Node82fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node82.setImage(GD.getTextJSON(Node82width, Node82height, true, false, false, ' '+ Node82fontSize + 'px "Arial"'))
- Node82.setPosition(1110*ratio.ratioX, 99*ratio.ratioY);
- Node82.setWidth(Node82width);
- Node82.setHeight(Node82height);
- Node82._nodeType = 'text';
- Node82._disallowEvert = true;
- Node82.setRotation(0*Math.PI/180);
- Node82.a('node.width', Node82width);
- Node82.a('node.height', Node82height);
- Node82.a('node.rect', [0, 0, Node82width, Node82height]);
- Node82.a('node.bordercolor','rgba(0,0,0,1)');
- Node82.a('node.borderwidth', 0);
- Node82.a('node.background','' || 'rgba(0,0,0,0)');
- Node82.a('node.gradient','');
- Node82.a('node.gradientcolor','');
- Node82.a('node.text','日限电损失电量');
- Node82.a('node.textalign','left');
- Node82.a('node.textvAlign','middle');
- Node82.a('node.textrect', [Node82textStart, 0, Node82textWidth, Node82height]);
- Node82.a('node.color','rgba(0,0,0,1)');
- Node82.a('node.font',' '+ Node82fontSize + 'px "Arial"');
- Node82.a('node.textvisible',true);
- Node82.a('node.linefeed',false);
- if (false) {
- Node82.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node82.a('node.text') || '日限电损失电量';
- var color=Node82.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node82width,Node82height,13.3333*_ratio.ratioY,"left",color,' '+ Node82fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node82.a('node.underlinepoints',[Node82lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node82fontSize + 2 , ht.Default.getTextSize('日限电损失电量', ' '+ Node82fontSize + 'px "Arial"').width + 6, (Node82height - Node82fontSize) * 0.5*_ratio.ratioY + Node82fontSize + 2 ]);
- Node82.a('node.underlinevisible',false);
- Node82.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node82);
- zoomNodeList.push({
- node: Node82,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node83 = new ht.Node();
- var Node83textStart, Node83textWidth, Node83lineStart, Node83align = 'left', Node83fontSize = 13.3333*_ratio.ratioY,Node83width = 110*_ratio.ratioX, Node83height = 16*_ratio.ratioY;
- (function () {
- if (Node83align === 'left') {
- Node83textStart = Node83fontSize * 0.2 > 2 ? Node83fontSize * 0.2 - 4 : Node83fontSize * 0.2 - 9;
- Node83textWidth = Node83width;
- Node83lineStart = 1;
- } else if (Node83align === 'right') {
- Node83textStart = 0;
- Node83textWidth =Node83fontSize <= 8 ? Node83width + Node83fontSize * 0.2 + 6 : Node83width - Node83fontSize * 0.2;
- Node83lineStart = (Node83width - (ht.Default.getTextSize('日受累损失电量', ' '+ Node83fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node83align === 'center') {
- Node83textStart = -3;
- Node83textWidth = Node83width;
- Node83lineStart = Node83width - ht.Default.getTextSize('日受累损失电量', ' '+ Node83fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node83.setImage(GD.getTextJSON(Node83width, Node83height, true, false, false, ' '+ Node83fontSize + 'px "Arial"'))
- Node83.setPosition(1110*ratio.ratioX, 122*ratio.ratioY);
- Node83.setWidth(Node83width);
- Node83.setHeight(Node83height);
- Node83._nodeType = 'text';
- Node83._disallowEvert = true;
- Node83.setRotation(0*Math.PI/180);
- Node83.a('node.width', Node83width);
- Node83.a('node.height', Node83height);
- Node83.a('node.rect', [0, 0, Node83width, Node83height]);
- Node83.a('node.bordercolor','rgba(0,0,0,1)');
- Node83.a('node.borderwidth', 0);
- Node83.a('node.background','' || 'rgba(0,0,0,0)');
- Node83.a('node.gradient','');
- Node83.a('node.gradientcolor','');
- Node83.a('node.text','日受累损失电量');
- Node83.a('node.textalign','left');
- Node83.a('node.textvAlign','middle');
- Node83.a('node.textrect', [Node83textStart, 0, Node83textWidth, Node83height]);
- Node83.a('node.color','rgba(0,0,0,1)');
- Node83.a('node.font',' '+ Node83fontSize + 'px "Arial"');
- Node83.a('node.textvisible',true);
- Node83.a('node.linefeed',false);
- if (false) {
- Node83.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node83.a('node.text') || '日受累损失电量';
- var color=Node83.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node83width,Node83height,13.3333*_ratio.ratioY,"left",color,' '+ Node83fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node83.a('node.underlinepoints',[Node83lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node83fontSize + 2 , ht.Default.getTextSize('日受累损失电量', ' '+ Node83fontSize + 'px "Arial"').width + 6, (Node83height - Node83fontSize) * 0.5*_ratio.ratioY + Node83fontSize + 2 ]);
- Node83.a('node.underlinevisible',false);
- Node83.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node83);
- zoomNodeList.push({
- node: Node83,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node84 = new ht.Node();
- var Node84textStart, Node84textWidth, Node84lineStart, Node84align = 'left', Node84fontSize = 13.3333*_ratio.ratioY,Node84width = 110*_ratio.ratioX, Node84height = 16*_ratio.ratioY;
- (function () {
- if (Node84align === 'left') {
- Node84textStart = Node84fontSize * 0.2 > 2 ? Node84fontSize * 0.2 - 4 : Node84fontSize * 0.2 - 9;
- Node84textWidth = Node84width;
- Node84lineStart = 1;
- } else if (Node84align === 'right') {
- Node84textStart = 0;
- Node84textWidth =Node84fontSize <= 8 ? Node84width + Node84fontSize * 0.2 + 6 : Node84width - Node84fontSize * 0.2;
- Node84lineStart = (Node84width - (ht.Default.getTextSize('日性能损失电量', ' '+ Node84fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node84align === 'center') {
- Node84textStart = -3;
- Node84textWidth = Node84width;
- Node84lineStart = Node84width - ht.Default.getTextSize('日性能损失电量', ' '+ Node84fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node84.setImage(GD.getTextJSON(Node84width, Node84height, true, false, false, ' '+ Node84fontSize + 'px "Arial"'))
- Node84.setPosition(1110*ratio.ratioX, 147*ratio.ratioY);
- Node84.setWidth(Node84width);
- Node84.setHeight(Node84height);
- Node84._nodeType = 'text';
- Node84._disallowEvert = true;
- Node84.setRotation(0*Math.PI/180);
- Node84.a('node.width', Node84width);
- Node84.a('node.height', Node84height);
- Node84.a('node.rect', [0, 0, Node84width, Node84height]);
- Node84.a('node.bordercolor','rgba(0,0,0,1)');
- Node84.a('node.borderwidth', 0);
- Node84.a('node.background','' || 'rgba(0,0,0,0)');
- Node84.a('node.gradient','');
- Node84.a('node.gradientcolor','');
- Node84.a('node.text','日性能损失电量');
- Node84.a('node.textalign','left');
- Node84.a('node.textvAlign','middle');
- Node84.a('node.textrect', [Node84textStart, 0, Node84textWidth, Node84height]);
- Node84.a('node.color','rgba(0,0,0,1)');
- Node84.a('node.font',' '+ Node84fontSize + 'px "Arial"');
- Node84.a('node.textvisible',true);
- Node84.a('node.linefeed',false);
- if (false) {
- Node84.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node84.a('node.text') || '日性能损失电量';
- var color=Node84.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node84width,Node84height,13.3333*_ratio.ratioY,"left",color,' '+ Node84fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node84.a('node.underlinepoints',[Node84lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node84fontSize + 2 , ht.Default.getTextSize('日性能损失电量', ' '+ Node84fontSize + 'px "Arial"').width + 6, (Node84height - Node84fontSize) * 0.5*_ratio.ratioY + Node84fontSize + 2 ]);
- Node84.a('node.underlinevisible',false);
- Node84.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node84);
- zoomNodeList.push({
- node: Node84,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node85 = new ht.Node();
- var Node85textStart, Node85textWidth, Node85lineStart, Node85align = 'left', Node85fontSize = 13.3333*_ratio.ratioY,Node85width = 11*_ratio.ratioX, Node85height = 16*_ratio.ratioY;
- (function () {
- if (Node85align === 'left') {
- Node85textStart = Node85fontSize * 0.2 > 2 ? Node85fontSize * 0.2 - 4 : Node85fontSize * 0.2 - 9;
- Node85textWidth = Node85width;
- Node85lineStart = 1;
- } else if (Node85align === 'right') {
- Node85textStart = 0;
- Node85textWidth =Node85fontSize <= 8 ? Node85width + Node85fontSize * 0.2 + 6 : Node85width - Node85fontSize * 0.2;
- Node85lineStart = (Node85width - (ht.Default.getTextSize('0', 'bold '+ Node85fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node85align === 'center') {
- Node85textStart = -3;
- Node85textWidth = Node85width;
- Node85lineStart = Node85width - ht.Default.getTextSize('0', 'bold '+ Node85fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node85.setImage(GD.getTextJSON(Node85width, Node85height, true, false, false, 'bold '+ Node85fontSize + 'px "UniDreamLED"'))
- Node85.setPosition(1193*ratio.ratioX, 48*ratio.ratioY);
- Node85.setWidth(Node85width);
- Node85.setHeight(Node85height);
- Node85._nodeType = 'text';
- Node85._disallowEvert = true;
- Node85.setRotation(0*Math.PI/180);
- Node85.a('node.width', Node85width);
- Node85.a('node.height', Node85height);
- Node85.a('node.rect', [0, 0, Node85width, Node85height]);
- Node85.a('node.bordercolor','rgba(0,0,0,1)');
- Node85.a('node.borderwidth', 0);
- Node85.a('node.background','' || 'rgba(0,0,0,0)');
- Node85.a('node.gradient','');
- Node85.a('node.gradientcolor','');
- Node85.a('node.text','0');
- Node85.a('node.textalign','left');
- Node85.a('node.textvAlign','middle');
- Node85.a('node.textrect', [Node85textStart, 0, Node85textWidth, Node85height]);
- Node85.a('node.color','rgba(0,0,0,1)');
- Node85.a('node.font','bold '+ Node85fontSize + 'px "UniDreamLED"');
- Node85.a('node.textvisible',true);
- Node85.a('node.linefeed',false);
- if (false) {
- Node85.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node85.a('node.text') || '0';
- var color=Node85.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node85width,Node85height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node85fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node85.a('node.underlinepoints',[Node85lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node85fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node85fontSize + 'px "UniDreamLED"').width + 6, (Node85height - Node85fontSize) * 0.5*_ratio.ratioY + Node85fontSize + 2 ]);
- Node85.a('node.underlinevisible',false);
- Node85.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node85);
- zoomNodeList.push({
- node: Node85,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node86 = new ht.Node();
- var Node86textStart, Node86textWidth, Node86lineStart, Node86align = 'left', Node86fontSize = 13.3333*_ratio.ratioY,Node86width = 11*_ratio.ratioX, Node86height = 16*_ratio.ratioY;
- (function () {
- if (Node86align === 'left') {
- Node86textStart = Node86fontSize * 0.2 > 2 ? Node86fontSize * 0.2 - 4 : Node86fontSize * 0.2 - 9;
- Node86textWidth = Node86width;
- Node86lineStart = 1;
- } else if (Node86align === 'right') {
- Node86textStart = 0;
- Node86textWidth =Node86fontSize <= 8 ? Node86width + Node86fontSize * 0.2 + 6 : Node86width - Node86fontSize * 0.2;
- Node86lineStart = (Node86width - (ht.Default.getTextSize('0', 'bold '+ Node86fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node86align === 'center') {
- Node86textStart = -3;
- Node86textWidth = Node86width;
- Node86lineStart = Node86width - ht.Default.getTextSize('0', 'bold '+ Node86fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node86.setImage(GD.getTextJSON(Node86width, Node86height, true, false, false, 'bold '+ Node86fontSize + 'px "UniDreamLED"'))
- Node86.setPosition(1193*ratio.ratioX, 72*ratio.ratioY);
- Node86.setWidth(Node86width);
- Node86.setHeight(Node86height);
- Node86._nodeType = 'text';
- Node86._disallowEvert = true;
- Node86.setRotation(0*Math.PI/180);
- Node86.a('node.width', Node86width);
- Node86.a('node.height', Node86height);
- Node86.a('node.rect', [0, 0, Node86width, Node86height]);
- Node86.a('node.bordercolor','rgba(0,0,0,1)');
- Node86.a('node.borderwidth', 0);
- Node86.a('node.background','' || 'rgba(0,0,0,0)');
- Node86.a('node.gradient','');
- Node86.a('node.gradientcolor','');
- Node86.a('node.text','0');
- Node86.a('node.textalign','left');
- Node86.a('node.textvAlign','middle');
- Node86.a('node.textrect', [Node86textStart, 0, Node86textWidth, Node86height]);
- Node86.a('node.color','rgba(0,0,0,1)');
- Node86.a('node.font','bold '+ Node86fontSize + 'px "UniDreamLED"');
- Node86.a('node.textvisible',true);
- Node86.a('node.linefeed',false);
- if (false) {
- Node86.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node86.a('node.text') || '0';
- var color=Node86.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node86width,Node86height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node86fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node86.a('node.underlinepoints',[Node86lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node86fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node86fontSize + 'px "UniDreamLED"').width + 6, (Node86height - Node86fontSize) * 0.5*_ratio.ratioY + Node86fontSize + 2 ]);
- Node86.a('node.underlinevisible',false);
- Node86.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node86);
- zoomNodeList.push({
- node: Node86,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node87 = new ht.Node();
- var Node87textStart, Node87textWidth, Node87lineStart, Node87align = 'left', Node87fontSize = 13.3333*_ratio.ratioY,Node87width = 11*_ratio.ratioX, Node87height = 16*_ratio.ratioY;
- (function () {
- if (Node87align === 'left') {
- Node87textStart = Node87fontSize * 0.2 > 2 ? Node87fontSize * 0.2 - 4 : Node87fontSize * 0.2 - 9;
- Node87textWidth = Node87width;
- Node87lineStart = 1;
- } else if (Node87align === 'right') {
- Node87textStart = 0;
- Node87textWidth =Node87fontSize <= 8 ? Node87width + Node87fontSize * 0.2 + 6 : Node87width - Node87fontSize * 0.2;
- Node87lineStart = (Node87width - (ht.Default.getTextSize('0', 'bold '+ Node87fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node87align === 'center') {
- Node87textStart = -3;
- Node87textWidth = Node87width;
- Node87lineStart = Node87width - ht.Default.getTextSize('0', 'bold '+ Node87fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node87.setImage(GD.getTextJSON(Node87width, Node87height, true, false, false, 'bold '+ Node87fontSize + 'px "UniDreamLED"'))
- Node87.setPosition(1193*ratio.ratioX, 97*ratio.ratioY);
- Node87.setWidth(Node87width);
- Node87.setHeight(Node87height);
- Node87._nodeType = 'text';
- Node87._disallowEvert = true;
- Node87.setRotation(0*Math.PI/180);
- Node87.a('node.width', Node87width);
- Node87.a('node.height', Node87height);
- Node87.a('node.rect', [0, 0, Node87width, Node87height]);
- Node87.a('node.bordercolor','rgba(0,0,0,1)');
- Node87.a('node.borderwidth', 0);
- Node87.a('node.background','' || 'rgba(0,0,0,0)');
- Node87.a('node.gradient','');
- Node87.a('node.gradientcolor','');
- Node87.a('node.text','0');
- Node87.a('node.textalign','left');
- Node87.a('node.textvAlign','middle');
- Node87.a('node.textrect', [Node87textStart, 0, Node87textWidth, Node87height]);
- Node87.a('node.color','rgba(0,0,0,1)');
- Node87.a('node.font','bold '+ Node87fontSize + 'px "UniDreamLED"');
- Node87.a('node.textvisible',true);
- Node87.a('node.linefeed',false);
- if (false) {
- Node87.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node87.a('node.text') || '0';
- var color=Node87.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node87width,Node87height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node87fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node87.a('node.underlinepoints',[Node87lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node87fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node87fontSize + 'px "UniDreamLED"').width + 6, (Node87height - Node87fontSize) * 0.5*_ratio.ratioY + Node87fontSize + 2 ]);
- Node87.a('node.underlinevisible',false);
- Node87.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node87);
- zoomNodeList.push({
- node: Node87,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node88 = new ht.Node();
- var Node88textStart, Node88textWidth, Node88lineStart, Node88align = 'left', Node88fontSize = 13.3333*_ratio.ratioY,Node88width = 9*_ratio.ratioX, Node88height = 16*_ratio.ratioY;
- (function () {
- if (Node88align === 'left') {
- Node88textStart = Node88fontSize * 0.2 > 2 ? Node88fontSize * 0.2 - 4 : Node88fontSize * 0.2 - 9;
- Node88textWidth = Node88width;
- Node88lineStart = 1;
- } else if (Node88align === 'right') {
- Node88textStart = 0;
- Node88textWidth =Node88fontSize <= 8 ? Node88width + Node88fontSize * 0.2 + 6 : Node88width - Node88fontSize * 0.2;
- Node88lineStart = (Node88width - (ht.Default.getTextSize('-', 'bold '+ Node88fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node88align === 'center') {
- Node88textStart = -3;
- Node88textWidth = Node88width;
- Node88lineStart = Node88width - ht.Default.getTextSize('-', 'bold '+ Node88fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node88.setImage(GD.getTextJSON(Node88width, Node88height, true, false, false, 'bold '+ Node88fontSize + 'px "UniDreamLED"'))
- Node88.setPosition(1192*ratio.ratioX, 121*ratio.ratioY);
- Node88.setWidth(Node88width);
- Node88.setHeight(Node88height);
- Node88._nodeType = 'text';
- Node88._disallowEvert = true;
- Node88.setRotation(0*Math.PI/180);
- Node88.a('node.width', Node88width);
- Node88.a('node.height', Node88height);
- Node88.a('node.rect', [0, 0, Node88width, Node88height]);
- Node88.a('node.bordercolor','rgba(0,0,0,1)');
- Node88.a('node.borderwidth', 0);
- Node88.a('node.background','' || 'rgba(0,0,0,0)');
- Node88.a('node.gradient','');
- Node88.a('node.gradientcolor','');
- Node88.a('node.text','-');
- Node88.a('node.textalign','left');
- Node88.a('node.textvAlign','middle');
- Node88.a('node.textrect', [Node88textStart, 0, Node88textWidth, Node88height]);
- Node88.a('node.color','rgba(0,0,0,1)');
- Node88.a('node.font','bold '+ Node88fontSize + 'px "UniDreamLED"');
- Node88.a('node.textvisible',true);
- Node88.a('node.linefeed',false);
- if (false) {
- Node88.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node88.a('node.text') || '-';
- var color=Node88.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node88width,Node88height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node88fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node88.a('node.underlinepoints',[Node88lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node88fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node88fontSize + 'px "UniDreamLED"').width + 6, (Node88height - Node88fontSize) * 0.5*_ratio.ratioY + Node88fontSize + 2 ]);
- Node88.a('node.underlinevisible',false);
- Node88.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node88);
- zoomNodeList.push({
- node: Node88,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node89 = new ht.Node();
- var Node89textStart, Node89textWidth, Node89lineStart, Node89align = 'left', Node89fontSize = 13.3333*_ratio.ratioY,Node89width = 39*_ratio.ratioX, Node89height = 16*_ratio.ratioY;
- (function () {
- if (Node89align === 'left') {
- Node89textStart = Node89fontSize * 0.2 > 2 ? Node89fontSize * 0.2 - 4 : Node89fontSize * 0.2 - 9;
- Node89textWidth = Node89width;
- Node89lineStart = 1;
- } else if (Node89align === 'right') {
- Node89textStart = 0;
- Node89textWidth =Node89fontSize <= 8 ? Node89width + Node89fontSize * 0.2 + 6 : Node89width - Node89fontSize * 0.2;
- Node89lineStart = (Node89width - (ht.Default.getTextSize('万kW', ' '+ Node89fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node89align === 'center') {
- Node89textStart = -3;
- Node89textWidth = Node89width;
- Node89lineStart = Node89width - ht.Default.getTextSize('万kW', ' '+ Node89fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node89.setImage(GD.getTextJSON(Node89width, Node89height, true, false, false, ' '+ Node89fontSize + 'px "Arial"'))
- Node89.setPosition(1270*ratio.ratioX, 48*ratio.ratioY);
- Node89.setWidth(Node89width);
- Node89.setHeight(Node89height);
- Node89._nodeType = 'text';
- Node89._disallowEvert = true;
- Node89.setRotation(0*Math.PI/180);
- Node89.a('node.width', Node89width);
- Node89.a('node.height', Node89height);
- Node89.a('node.rect', [0, 0, Node89width, Node89height]);
- Node89.a('node.bordercolor','rgba(169,169,169,1)');
- Node89.a('node.borderwidth', 0);
- Node89.a('node.background','' || 'rgba(0,0,0,0)');
- Node89.a('node.gradient','');
- Node89.a('node.gradientcolor','');
- Node89.a('node.text','万kW');
- Node89.a('node.textalign','left');
- Node89.a('node.textvAlign','middle');
- Node89.a('node.textrect', [Node89textStart, 0, Node89textWidth, Node89height]);
- Node89.a('node.color','rgba(169,169,169,1)');
- Node89.a('node.font',' '+ Node89fontSize + 'px "Arial"');
- Node89.a('node.textvisible',true);
- Node89.a('node.linefeed',false);
- if (false) {
- Node89.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node89.a('node.text') || '万kW';
- var color=Node89.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node89width,Node89height,13.3333*_ratio.ratioY,"left",color,' '+ Node89fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node89.a('node.underlinepoints',[Node89lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node89fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node89fontSize + 'px "Arial"').width + 6, (Node89height - Node89fontSize) * 0.5*_ratio.ratioY + Node89fontSize + 2 ]);
- Node89.a('node.underlinevisible',false);
- Node89.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node89);
- zoomNodeList.push({
- node: Node89,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node90 = new ht.Node();
- var Node90textStart, Node90textWidth, Node90lineStart, Node90align = 'left', Node90fontSize = 13.3333*_ratio.ratioY,Node90width = 9*_ratio.ratioX, Node90height = 16*_ratio.ratioY;
- (function () {
- if (Node90align === 'left') {
- Node90textStart = Node90fontSize * 0.2 > 2 ? Node90fontSize * 0.2 - 4 : Node90fontSize * 0.2 - 9;
- Node90textWidth = Node90width;
- Node90lineStart = 1;
- } else if (Node90align === 'right') {
- Node90textStart = 0;
- Node90textWidth =Node90fontSize <= 8 ? Node90width + Node90fontSize * 0.2 + 6 : Node90width - Node90fontSize * 0.2;
- Node90lineStart = (Node90width - (ht.Default.getTextSize('-', 'bold '+ Node90fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node90align === 'center') {
- Node90textStart = -3;
- Node90textWidth = Node90width;
- Node90lineStart = Node90width - ht.Default.getTextSize('-', 'bold '+ Node90fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node90.setImage(GD.getTextJSON(Node90width, Node90height, true, false, false, 'bold '+ Node90fontSize + 'px "UniDreamLED"'))
- Node90.setPosition(1192*ratio.ratioX, 146*ratio.ratioY);
- Node90.setWidth(Node90width);
- Node90.setHeight(Node90height);
- Node90._nodeType = 'text';
- Node90._disallowEvert = true;
- Node90.setRotation(0*Math.PI/180);
- Node90.a('node.width', Node90width);
- Node90.a('node.height', Node90height);
- Node90.a('node.rect', [0, 0, Node90width, Node90height]);
- Node90.a('node.bordercolor','rgba(0,0,0,1)');
- Node90.a('node.borderwidth', 0);
- Node90.a('node.background','' || 'rgba(0,0,0,0)');
- Node90.a('node.gradient','');
- Node90.a('node.gradientcolor','');
- Node90.a('node.text','-');
- Node90.a('node.textalign','left');
- Node90.a('node.textvAlign','middle');
- Node90.a('node.textrect', [Node90textStart, 0, Node90textWidth, Node90height]);
- Node90.a('node.color','rgba(0,0,0,1)');
- Node90.a('node.font','bold '+ Node90fontSize + 'px "UniDreamLED"');
- Node90.a('node.textvisible',true);
- Node90.a('node.linefeed',false);
- if (false) {
- Node90.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node90.a('node.text') || '-';
- var color=Node90.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node90width,Node90height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node90fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node90.a('node.underlinepoints',[Node90lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node90fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node90fontSize + 'px "UniDreamLED"').width + 6, (Node90height - Node90fontSize) * 0.5*_ratio.ratioY + Node90fontSize + 2 ]);
- Node90.a('node.underlinevisible',false);
- Node90.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node90);
- zoomNodeList.push({
- node: Node90,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node91 = new ht.Node();
- var Node91textStart, Node91textWidth, Node91lineStart, Node91align = 'left', Node91fontSize = 13.3333*_ratio.ratioY,Node91width = 39*_ratio.ratioX, Node91height = 16*_ratio.ratioY;
- (function () {
- if (Node91align === 'left') {
- Node91textStart = Node91fontSize * 0.2 > 2 ? Node91fontSize * 0.2 - 4 : Node91fontSize * 0.2 - 9;
- Node91textWidth = Node91width;
- Node91lineStart = 1;
- } else if (Node91align === 'right') {
- Node91textStart = 0;
- Node91textWidth =Node91fontSize <= 8 ? Node91width + Node91fontSize * 0.2 + 6 : Node91width - Node91fontSize * 0.2;
- Node91lineStart = (Node91width - (ht.Default.getTextSize('万kW', ' '+ Node91fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node91align === 'center') {
- Node91textStart = -3;
- Node91textWidth = Node91width;
- Node91lineStart = Node91width - ht.Default.getTextSize('万kW', ' '+ Node91fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node91.setImage(GD.getTextJSON(Node91width, Node91height, true, false, false, ' '+ Node91fontSize + 'px "Arial"'))
- Node91.setPosition(1270*ratio.ratioX, 74*ratio.ratioY);
- Node91.setWidth(Node91width);
- Node91.setHeight(Node91height);
- Node91._nodeType = 'text';
- Node91._disallowEvert = true;
- Node91.setRotation(0*Math.PI/180);
- Node91.a('node.width', Node91width);
- Node91.a('node.height', Node91height);
- Node91.a('node.rect', [0, 0, Node91width, Node91height]);
- Node91.a('node.bordercolor','rgba(169,169,169,1)');
- Node91.a('node.borderwidth', 0);
- Node91.a('node.background','' || 'rgba(0,0,0,0)');
- Node91.a('node.gradient','');
- Node91.a('node.gradientcolor','');
- Node91.a('node.text','万kW');
- Node91.a('node.textalign','left');
- Node91.a('node.textvAlign','middle');
- Node91.a('node.textrect', [Node91textStart, 0, Node91textWidth, Node91height]);
- Node91.a('node.color','rgba(169,169,169,1)');
- Node91.a('node.font',' '+ Node91fontSize + 'px "Arial"');
- Node91.a('node.textvisible',true);
- Node91.a('node.linefeed',false);
- if (false) {
- Node91.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node91.a('node.text') || '万kW';
- var color=Node91.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node91width,Node91height,13.3333*_ratio.ratioY,"left",color,' '+ Node91fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node91.a('node.underlinepoints',[Node91lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node91fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node91fontSize + 'px "Arial"').width + 6, (Node91height - Node91fontSize) * 0.5*_ratio.ratioY + Node91fontSize + 2 ]);
- Node91.a('node.underlinevisible',false);
- Node91.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node91);
- zoomNodeList.push({
- node: Node91,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node92 = new ht.Node();
- var Node92textStart, Node92textWidth, Node92lineStart, Node92align = 'left', Node92fontSize = 13.3333*_ratio.ratioY,Node92width = 39*_ratio.ratioX, Node92height = 16*_ratio.ratioY;
- (function () {
- if (Node92align === 'left') {
- Node92textStart = Node92fontSize * 0.2 > 2 ? Node92fontSize * 0.2 - 4 : Node92fontSize * 0.2 - 9;
- Node92textWidth = Node92width;
- Node92lineStart = 1;
- } else if (Node92align === 'right') {
- Node92textStart = 0;
- Node92textWidth =Node92fontSize <= 8 ? Node92width + Node92fontSize * 0.2 + 6 : Node92width - Node92fontSize * 0.2;
- Node92lineStart = (Node92width - (ht.Default.getTextSize('万kW', ' '+ Node92fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node92align === 'center') {
- Node92textStart = -3;
- Node92textWidth = Node92width;
- Node92lineStart = Node92width - ht.Default.getTextSize('万kW', ' '+ Node92fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node92.setImage(GD.getTextJSON(Node92width, Node92height, true, false, false, ' '+ Node92fontSize + 'px "Arial"'))
- Node92.setPosition(1270*ratio.ratioX, 99*ratio.ratioY);
- Node92.setWidth(Node92width);
- Node92.setHeight(Node92height);
- Node92._nodeType = 'text';
- Node92._disallowEvert = true;
- Node92.setRotation(0*Math.PI/180);
- Node92.a('node.width', Node92width);
- Node92.a('node.height', Node92height);
- Node92.a('node.rect', [0, 0, Node92width, Node92height]);
- Node92.a('node.bordercolor','rgba(169,169,169,1)');
- Node92.a('node.borderwidth', 0);
- Node92.a('node.background','' || 'rgba(0,0,0,0)');
- Node92.a('node.gradient','');
- Node92.a('node.gradientcolor','');
- Node92.a('node.text','万kW');
- Node92.a('node.textalign','left');
- Node92.a('node.textvAlign','middle');
- Node92.a('node.textrect', [Node92textStart, 0, Node92textWidth, Node92height]);
- Node92.a('node.color','rgba(169,169,169,1)');
- Node92.a('node.font',' '+ Node92fontSize + 'px "Arial"');
- Node92.a('node.textvisible',true);
- Node92.a('node.linefeed',false);
- if (false) {
- Node92.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node92.a('node.text') || '万kW';
- var color=Node92.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node92width,Node92height,13.3333*_ratio.ratioY,"left",color,' '+ Node92fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node92.a('node.underlinepoints',[Node92lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node92fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node92fontSize + 'px "Arial"').width + 6, (Node92height - Node92fontSize) * 0.5*_ratio.ratioY + Node92fontSize + 2 ]);
- Node92.a('node.underlinevisible',false);
- Node92.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node92);
- zoomNodeList.push({
- node: Node92,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node93 = new ht.Node();
- var Node93textStart, Node93textWidth, Node93lineStart, Node93align = 'left', Node93fontSize = 13.3333*_ratio.ratioY,Node93width = 39*_ratio.ratioX, Node93height = 16*_ratio.ratioY;
- (function () {
- if (Node93align === 'left') {
- Node93textStart = Node93fontSize * 0.2 > 2 ? Node93fontSize * 0.2 - 4 : Node93fontSize * 0.2 - 9;
- Node93textWidth = Node93width;
- Node93lineStart = 1;
- } else if (Node93align === 'right') {
- Node93textStart = 0;
- Node93textWidth =Node93fontSize <= 8 ? Node93width + Node93fontSize * 0.2 + 6 : Node93width - Node93fontSize * 0.2;
- Node93lineStart = (Node93width - (ht.Default.getTextSize('万kW', ' '+ Node93fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node93align === 'center') {
- Node93textStart = -3;
- Node93textWidth = Node93width;
- Node93lineStart = Node93width - ht.Default.getTextSize('万kW', ' '+ Node93fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node93.setImage(GD.getTextJSON(Node93width, Node93height, true, false, false, ' '+ Node93fontSize + 'px "Arial"'))
- Node93.setPosition(1270*ratio.ratioX, 126*ratio.ratioY);
- Node93.setWidth(Node93width);
- Node93.setHeight(Node93height);
- Node93._nodeType = 'text';
- Node93._disallowEvert = true;
- Node93.setRotation(0*Math.PI/180);
- Node93.a('node.width', Node93width);
- Node93.a('node.height', Node93height);
- Node93.a('node.rect', [0, 0, Node93width, Node93height]);
- Node93.a('node.bordercolor','rgba(169,169,169,1)');
- Node93.a('node.borderwidth', 0);
- Node93.a('node.background','' || 'rgba(0,0,0,0)');
- Node93.a('node.gradient','');
- Node93.a('node.gradientcolor','');
- Node93.a('node.text','万kW');
- Node93.a('node.textalign','left');
- Node93.a('node.textvAlign','middle');
- Node93.a('node.textrect', [Node93textStart, 0, Node93textWidth, Node93height]);
- Node93.a('node.color','rgba(169,169,169,1)');
- Node93.a('node.font',' '+ Node93fontSize + 'px "Arial"');
- Node93.a('node.textvisible',true);
- Node93.a('node.linefeed',false);
- if (false) {
- Node93.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node93.a('node.text') || '万kW';
- var color=Node93.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node93width,Node93height,13.3333*_ratio.ratioY,"left",color,' '+ Node93fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node93.a('node.underlinepoints',[Node93lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node93fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node93fontSize + 'px "Arial"').width + 6, (Node93height - Node93fontSize) * 0.5*_ratio.ratioY + Node93fontSize + 2 ]);
- Node93.a('node.underlinevisible',false);
- Node93.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node93);
- zoomNodeList.push({
- node: Node93,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node94 = new ht.Node();
- var Node94textStart, Node94textWidth, Node94lineStart, Node94align = 'left', Node94fontSize = 13.3333*_ratio.ratioY,Node94width = 39*_ratio.ratioX, Node94height = 16*_ratio.ratioY;
- (function () {
- if (Node94align === 'left') {
- Node94textStart = Node94fontSize * 0.2 > 2 ? Node94fontSize * 0.2 - 4 : Node94fontSize * 0.2 - 9;
- Node94textWidth = Node94width;
- Node94lineStart = 1;
- } else if (Node94align === 'right') {
- Node94textStart = 0;
- Node94textWidth =Node94fontSize <= 8 ? Node94width + Node94fontSize * 0.2 + 6 : Node94width - Node94fontSize * 0.2;
- Node94lineStart = (Node94width - (ht.Default.getTextSize('万kW', ' '+ Node94fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node94align === 'center') {
- Node94textStart = -3;
- Node94textWidth = Node94width;
- Node94lineStart = Node94width - ht.Default.getTextSize('万kW', ' '+ Node94fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node94.setImage(GD.getTextJSON(Node94width, Node94height, true, false, false, ' '+ Node94fontSize + 'px "Arial"'))
- Node94.setPosition(1269*ratio.ratioX, 148*ratio.ratioY);
- Node94.setWidth(Node94width);
- Node94.setHeight(Node94height);
- Node94._nodeType = 'text';
- Node94._disallowEvert = true;
- Node94.setRotation(0*Math.PI/180);
- Node94.a('node.width', Node94width);
- Node94.a('node.height', Node94height);
- Node94.a('node.rect', [0, 0, Node94width, Node94height]);
- Node94.a('node.bordercolor','rgba(169,169,169,1)');
- Node94.a('node.borderwidth', 0);
- Node94.a('node.background','' || 'rgba(0,0,0,0)');
- Node94.a('node.gradient','');
- Node94.a('node.gradientcolor','');
- Node94.a('node.text','万kW');
- Node94.a('node.textalign','left');
- Node94.a('node.textvAlign','middle');
- Node94.a('node.textrect', [Node94textStart, 0, Node94textWidth, Node94height]);
- Node94.a('node.color','rgba(169,169,169,1)');
- Node94.a('node.font',' '+ Node94fontSize + 'px "Arial"');
- Node94.a('node.textvisible',true);
- Node94.a('node.linefeed',false);
- if (false) {
- Node94.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node94.a('node.text') || '万kW';
- var color=Node94.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node94width,Node94height,13.3333*_ratio.ratioY,"left",color,' '+ Node94fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node94.a('node.underlinepoints',[Node94lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node94fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node94fontSize + 'px "Arial"').width + 6, (Node94height - Node94fontSize) * 0.5*_ratio.ratioY + Node94fontSize + 2 ]);
- Node94.a('node.underlinevisible',false);
- Node94.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node94);
- zoomNodeList.push({
- node: Node94,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node95points=[1053, 62,1330, 62],
- Node95rect=ht.Default.unionPoint([{x:1053,y:62},{x:1330,y:62}]),
- Node95compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node95points.length;i++){
- if(i%2==0){
- Node95compspts.push(Node95points[i]-Node95rect.x);
- }else{
- Node95compspts.push(Node95points[i]-Node95rect.y);
- }
- }
- var Node95ptslength=Node95compspts.length;
- if (Node95rect.height === 0) {
- Node95compspts[0] -= 0;
- Node95compspts[Node95ptslength-2] += 0;
- } else if (Node95rect.width === 0){
- Node95compspts[1] -= 0;
- Node95compspts[Node95ptslength-1] += 0;
- } else {
- Node95compspts[0] -= 0;
- Node95compspts[1] -= 0;
- Node95compspts[Node95ptslength-2] += 0;
- Node95compspts[Node95ptslength-1] += 0;
- }
- Node95 = new ht.Node();
- Node95.borderWidth = 1;
- Node95rect.width = Node95rect.width === 0 ? 0.0001 : Node95rect.width;
- Node95rect.height = Node95rect.height === 0 ? 0.0001 : Node95rect.height;
- var Node95endCompspts = [Node95compspts[Node95ptslength-2],Node95compspts[Node95ptslength-1],0,0];
- var Node95startCompspts = [Node95compspts[0],Node95compspts[1],0,0];
- Node95.setImage(GD.getPolyLineJSON());
- Node95.setPosition(Node95rect.x+Node95rect.width/2,Node95rect.y+Node95rect.height/2);
- Node95.setSize(Node95rect.width,Node95rect.height);
- Node95.setStyle("opacity",1);
- Node95.s({'pixelPerfect':true});
- Node95borderwidth=1;
- Node95.setRotation(0);
- dataModel.add(Node95);
- Node95.a('node.points',Node95compspts);
- Node95.a('node.segments',[1,2]);
- Node95.a('node.color','rgba(220,220,220,1)');
- Node95.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node95.a('node.borderColor','rgba(220,220,220,1)');
- Node95.a('node.background','rgba(220,220,220,1)');
- Node95.a('node.gradient','');
- Node95.a('node.gradientcolor','rgba(220,220,220,1)');
- Node95.a('node.endCompspts',Node95endCompspts);
- Node95.a('node.startCompspts',Node95startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node95';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node95, Node95.getImage(), Node95compspts, Node95endCompspts, Node95startCompspts);
- var Node96points=[1051, 88,1328, 88],
- Node96rect=ht.Default.unionPoint([{x:1051,y:88},{x:1328,y:88}]),
- Node96compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node96points.length;i++){
- if(i%2==0){
- Node96compspts.push(Node96points[i]-Node96rect.x);
- }else{
- Node96compspts.push(Node96points[i]-Node96rect.y);
- }
- }
- var Node96ptslength=Node96compspts.length;
- if (Node96rect.height === 0) {
- Node96compspts[0] -= 0;
- Node96compspts[Node96ptslength-2] += 0;
- } else if (Node96rect.width === 0){
- Node96compspts[1] -= 0;
- Node96compspts[Node96ptslength-1] += 0;
- } else {
- Node96compspts[0] -= 0;
- Node96compspts[1] -= 0;
- Node96compspts[Node96ptslength-2] += 0;
- Node96compspts[Node96ptslength-1] += 0;
- }
- Node96 = new ht.Node();
- Node96.borderWidth = 1;
- Node96rect.width = Node96rect.width === 0 ? 0.0001 : Node96rect.width;
- Node96rect.height = Node96rect.height === 0 ? 0.0001 : Node96rect.height;
- var Node96endCompspts = [Node96compspts[Node96ptslength-2],Node96compspts[Node96ptslength-1],0,0];
- var Node96startCompspts = [Node96compspts[0],Node96compspts[1],0,0];
- Node96.setImage(GD.getPolyLineJSON());
- Node96.setPosition(Node96rect.x+Node96rect.width/2,Node96rect.y+Node96rect.height/2);
- Node96.setSize(Node96rect.width,Node96rect.height);
- Node96.setStyle("opacity",1);
- Node96.s({'pixelPerfect':true});
- Node96borderwidth=1;
- Node96.setRotation(0);
- dataModel.add(Node96);
- Node96.a('node.points',Node96compspts);
- Node96.a('node.segments',[1,2]);
- Node96.a('node.color','rgba(220,220,220,1)');
- Node96.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node96.a('node.borderColor','rgba(220,220,220,1)');
- Node96.a('node.background','rgba(220,220,220,1)');
- Node96.a('node.gradient','');
- Node96.a('node.gradientcolor','rgba(220,220,220,1)');
- Node96.a('node.endCompspts',Node96endCompspts);
- Node96.a('node.startCompspts',Node96startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node96';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node96, Node96.getImage(), Node96compspts, Node96endCompspts, Node96startCompspts);
- var Node97points=[1053, 108,1330, 108],
- Node97rect=ht.Default.unionPoint([{x:1053,y:108},{x:1330,y:108}]),
- Node97compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node97points.length;i++){
- if(i%2==0){
- Node97compspts.push(Node97points[i]-Node97rect.x);
- }else{
- Node97compspts.push(Node97points[i]-Node97rect.y);
- }
- }
- var Node97ptslength=Node97compspts.length;
- if (Node97rect.height === 0) {
- Node97compspts[0] -= 0;
- Node97compspts[Node97ptslength-2] += 0;
- } else if (Node97rect.width === 0){
- Node97compspts[1] -= 0;
- Node97compspts[Node97ptslength-1] += 0;
- } else {
- Node97compspts[0] -= 0;
- Node97compspts[1] -= 0;
- Node97compspts[Node97ptslength-2] += 0;
- Node97compspts[Node97ptslength-1] += 0;
- }
- Node97 = new ht.Node();
- Node97.borderWidth = 1;
- Node97rect.width = Node97rect.width === 0 ? 0.0001 : Node97rect.width;
- Node97rect.height = Node97rect.height === 0 ? 0.0001 : Node97rect.height;
- var Node97endCompspts = [Node97compspts[Node97ptslength-2],Node97compspts[Node97ptslength-1],0,0];
- var Node97startCompspts = [Node97compspts[0],Node97compspts[1],0,0];
- Node97.setImage(GD.getPolyLineJSON());
- Node97.setPosition(Node97rect.x+Node97rect.width/2,Node97rect.y+Node97rect.height/2);
- Node97.setSize(Node97rect.width,Node97rect.height);
- Node97.setStyle("opacity",1);
- Node97.s({'pixelPerfect':true});
- Node97borderwidth=1;
- Node97.setRotation(0);
- dataModel.add(Node97);
- Node97.a('node.points',Node97compspts);
- Node97.a('node.segments',[1,2]);
- Node97.a('node.color','rgba(220,220,220,1)');
- Node97.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node97.a('node.borderColor','rgba(220,220,220,1)');
- Node97.a('node.background','rgba(220,220,220,1)');
- Node97.a('node.gradient','');
- Node97.a('node.gradientcolor','rgba(220,220,220,1)');
- Node97.a('node.endCompspts',Node97endCompspts);
- Node97.a('node.startCompspts',Node97startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node97';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node97, Node97.getImage(), Node97compspts, Node97endCompspts, Node97startCompspts);
- var Node98points=[1053, 135,1330, 135],
- Node98rect=ht.Default.unionPoint([{x:1053,y:135},{x:1330,y:135}]),
- Node98compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node98points.length;i++){
- if(i%2==0){
- Node98compspts.push(Node98points[i]-Node98rect.x);
- }else{
- Node98compspts.push(Node98points[i]-Node98rect.y);
- }
- }
- var Node98ptslength=Node98compspts.length;
- if (Node98rect.height === 0) {
- Node98compspts[0] -= 0;
- Node98compspts[Node98ptslength-2] += 0;
- } else if (Node98rect.width === 0){
- Node98compspts[1] -= 0;
- Node98compspts[Node98ptslength-1] += 0;
- } else {
- Node98compspts[0] -= 0;
- Node98compspts[1] -= 0;
- Node98compspts[Node98ptslength-2] += 0;
- Node98compspts[Node98ptslength-1] += 0;
- }
- Node98 = new ht.Node();
- Node98.borderWidth = 1;
- Node98rect.width = Node98rect.width === 0 ? 0.0001 : Node98rect.width;
- Node98rect.height = Node98rect.height === 0 ? 0.0001 : Node98rect.height;
- var Node98endCompspts = [Node98compspts[Node98ptslength-2],Node98compspts[Node98ptslength-1],0,0];
- var Node98startCompspts = [Node98compspts[0],Node98compspts[1],0,0];
- Node98.setImage(GD.getPolyLineJSON());
- Node98.setPosition(Node98rect.x+Node98rect.width/2,Node98rect.y+Node98rect.height/2);
- Node98.setSize(Node98rect.width,Node98rect.height);
- Node98.setStyle("opacity",1);
- Node98.s({'pixelPerfect':true});
- Node98borderwidth=1;
- Node98.setRotation(0);
- dataModel.add(Node98);
- Node98.a('node.points',Node98compspts);
- Node98.a('node.segments',[1,2]);
- Node98.a('node.color','rgba(220,220,220,1)');
- Node98.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node98.a('node.borderColor','rgba(220,220,220,1)');
- Node98.a('node.background','rgba(220,220,220,1)');
- Node98.a('node.gradient','');
- Node98.a('node.gradientcolor','rgba(220,220,220,1)');
- Node98.a('node.endCompspts',Node98endCompspts);
- Node98.a('node.startCompspts',Node98startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node98';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node98, Node98.getImage(), Node98compspts, Node98endCompspts, Node98startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node99type = 'rect';
- var Node99 = new ht.Node(),
- Node99BorderWidth = 1*2;
- if (Node99type === 'arc') {
- Node99BorderWidth *= 1;
- }
- Node99.setImage(GD.getRectJSON(120*_ratio.ratioX, 120*_ratio.ratioY, Node99type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node99.setPosition(1398*ratio.ratioX, 98*ratio.ratioY);
- Node99.setSize(120*_ratio.ratioX, 120*_ratio.ratioY);
- Node99.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node99.a('node.width', 120*_ratio.ratioX);
- Node99.a('node.height', 120*_ratio.ratioY);
- Node99.a('node.type', Node99type);
- Node99.a('node.rect', [0, 0, 120*_ratio.ratioX, 120*_ratio.ratioY]);
- Node99.a('node.background', 'rgba(245,245,245,1)');
- Node99.a('node.gradientcolor', 'rgba(245,245,245,1)');
- Node99.a('node.gradient', '');
- Node99.a('node.borderwidth', Node99BorderWidth);
- Node99.a('node.color', 'rgba(220,220,220,1)');
- Node99.a('node.fillrect', [0,0,0,0]);
- Node99.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node99.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node99.a('node.fillgradient', '');
- if (Node99type !== 'rect') {
- Node99.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node99.a('node.arcTo', parseFloat('@arcTo@'));
- Node99.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node99type === 'arc') {
- Node99.a('node.arcOval', true);
- }
- Node99.setRotation(0*Math.PI/180);
- Node99.borderWidth = Node99BorderWidth;
- Node99.borderFillwidth = Node99BorderWidth;
- dataModel.add(Node99);
- Node99._nodename = 'Node99'
- Node99._nodeType = 'rect';
- zoomNodeList.push({
- node: Node99,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node99, Node99.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node100type = 'rect';
- var Node100 = new ht.Node(),
- Node100BorderWidth = 1*2;
- if (Node100type === 'arc') {
- Node100BorderWidth *= 1;
- }
- Node100.setImage(GD.getRectJSON(280.7278*_ratio.ratioX, 122*_ratio.ratioY, Node100type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node100.setPosition(1478*ratio.ratioX, 98*ratio.ratioY);
- Node100.setSize(280.7278*_ratio.ratioX, 122*_ratio.ratioY);
- Node100.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node100.a('node.width', 280.7278*_ratio.ratioX);
- Node100.a('node.height', 122*_ratio.ratioY);
- Node100.a('node.type', Node100type);
- Node100.a('node.rect', [0, 0, 280.7278*_ratio.ratioX, 122*_ratio.ratioY]);
- Node100.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node100.a('node.gradientcolor', '');
- Node100.a('node.gradient', '');
- Node100.a('node.borderwidth', Node100BorderWidth);
- Node100.a('node.color', 'rgba(220,220,220,1)');
- Node100.a('node.fillrect', [0,0,0,0]);
- Node100.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node100.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node100.a('node.fillgradient', '');
- if (Node100type !== 'rect') {
- Node100.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node100.a('node.arcTo', parseFloat('@arcTo@'));
- Node100.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node100type === 'arc') {
- Node100.a('node.arcOval', true);
- }
- Node100.setRotation(0*Math.PI/180);
- Node100.borderWidth = Node100BorderWidth;
- Node100.borderFillwidth = Node100BorderWidth;
- dataModel.add(Node100);
- Node100._nodename = 'Node100'
- Node100._nodeType = 'rect';
- zoomNodeList.push({
- node: Node100,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node100, Node100.getImage());var Node101points=[1528, 38,1528, 158],
- Node101rect=ht.Default.unionPoint([{x:1528,y:38},{x:1528,y:158}]),
- Node101compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Node101points.length;i++){
- if(i%2==0){
- Node101compspts.push(Node101points[i]-Node101rect.x);
- }else{
- Node101compspts.push(Node101points[i]-Node101rect.y);
- }
- }
- var Node101ptslength=Node101compspts.length;
- if (Node101rect.height === 0) {
- Node101compspts[0] -= 0;
- Node101compspts[Node101ptslength-2] += 0;
- } else if (Node101rect.width === 0){
- Node101compspts[1] -= 0;
- Node101compspts[Node101ptslength-1] += 0;
- } else {
- Node101compspts[0] -= 0;
- Node101compspts[1] -= 0;
- Node101compspts[Node101ptslength-2] += 0;
- Node101compspts[Node101ptslength-1] += 0;
- }
- Node101 = new ht.Node();
- Node101.borderWidth = 1;
- Node101rect.width = Node101rect.width === 0 ? 0.0001 : Node101rect.width;
- Node101rect.height = Node101rect.height === 0 ? 0.0001 : Node101rect.height;
- var Node101endCompspts = [Node101compspts[Node101ptslength-2],Node101compspts[Node101ptslength-1],0,0];
- var Node101startCompspts = [Node101compspts[0],Node101compspts[1],0,0];
- Node101.setImage(GD.getPolyLineJSON());
- Node101.setPosition(Node101rect.x+Node101rect.width/2,Node101rect.y+Node101rect.height/2);
- Node101.setSize(Node101rect.width,Node101rect.height);
- Node101.setStyle("opacity",1);
- Node101.s({'pixelPerfect':true});
- Node101borderwidth=1;
- Node101.setRotation(0);
- dataModel.add(Node101);
- Node101.a('node.points',Node101compspts);
- Node101.a('node.segments',[1,2]);
- Node101.a('node.color','rgba(220,220,220,1)');
- Node101.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node101.a('node.borderColor','rgba(220,220,220,1)');
- Node101.a('node.background','rgba(220,220,220,1)');
- Node101.a('node.gradient','');
- Node101.a('node.gradientcolor','rgba(220,220,220,1)');
- Node101.a('node.endCompspts',Node101endCompspts);
- Node101.a('node.startCompspts',Node101startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node101';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node101, Node101.getImage(), Node101compspts, Node101endCompspts, Node101startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node102 = new ht.Node();
- var Node102textStart, Node102textWidth, Node102lineStart, Node102align = 'left', Node102fontSize = 13.3333*_ratio.ratioY,Node102width = 110*_ratio.ratioX, Node102height = 16*_ratio.ratioY;
- (function () {
- if (Node102align === 'left') {
- Node102textStart = Node102fontSize * 0.2 > 2 ? Node102fontSize * 0.2 - 4 : Node102fontSize * 0.2 - 9;
- Node102textWidth = Node102width;
- Node102lineStart = 1;
- } else if (Node102align === 'right') {
- Node102textStart = 0;
- Node102textWidth =Node102fontSize <= 8 ? Node102width + Node102fontSize * 0.2 + 6 : Node102width - Node102fontSize * 0.2;
- Node102lineStart = (Node102width - (ht.Default.getTextSize('月维护损失电量', ' '+ Node102fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node102align === 'center') {
- Node102textStart = -3;
- Node102textWidth = Node102width;
- Node102lineStart = Node102width - ht.Default.getTextSize('月维护损失电量', ' '+ Node102fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node102.setImage(GD.getTextJSON(Node102width, Node102height, true, false, false, ' '+ Node102fontSize + 'px "Arial"'))
- Node102.setPosition(1397*ratio.ratioX, 49*ratio.ratioY);
- Node102.setWidth(Node102width);
- Node102.setHeight(Node102height);
- Node102._nodeType = 'text';
- Node102._disallowEvert = true;
- Node102.setRotation(0*Math.PI/180);
- Node102.a('node.width', Node102width);
- Node102.a('node.height', Node102height);
- Node102.a('node.rect', [0, 0, Node102width, Node102height]);
- Node102.a('node.bordercolor','rgba(0,0,0,1)');
- Node102.a('node.borderwidth', 0);
- Node102.a('node.background','' || 'rgba(0,0,0,0)');
- Node102.a('node.gradient','');
- Node102.a('node.gradientcolor','');
- Node102.a('node.text','月维护损失电量');
- Node102.a('node.textalign','left');
- Node102.a('node.textvAlign','middle');
- Node102.a('node.textrect', [Node102textStart, 0, Node102textWidth, Node102height]);
- Node102.a('node.color','rgba(0,0,0,1)');
- Node102.a('node.font',' '+ Node102fontSize + 'px "Arial"');
- Node102.a('node.textvisible',true);
- Node102.a('node.linefeed',false);
- if (false) {
- Node102.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node102.a('node.text') || '月维护损失电量';
- var color=Node102.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node102width,Node102height,13.3333*_ratio.ratioY,"left",color,' '+ Node102fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node102.a('node.underlinepoints',[Node102lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node102fontSize + 2 , ht.Default.getTextSize('月维护损失电量', ' '+ Node102fontSize + 'px "Arial"').width + 6, (Node102height - Node102fontSize) * 0.5*_ratio.ratioY + Node102fontSize + 2 ]);
- Node102.a('node.underlinevisible',false);
- Node102.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node102);
- zoomNodeList.push({
- node: Node102,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node103 = new ht.Node();
- var Node103textStart, Node103textWidth, Node103lineStart, Node103align = 'left', Node103fontSize = 13.3333*_ratio.ratioY,Node103width = 110*_ratio.ratioX, Node103height = 16*_ratio.ratioY;
- (function () {
- if (Node103align === 'left') {
- Node103textStart = Node103fontSize * 0.2 > 2 ? Node103fontSize * 0.2 - 4 : Node103fontSize * 0.2 - 9;
- Node103textWidth = Node103width;
- Node103lineStart = 1;
- } else if (Node103align === 'right') {
- Node103textStart = 0;
- Node103textWidth =Node103fontSize <= 8 ? Node103width + Node103fontSize * 0.2 + 6 : Node103width - Node103fontSize * 0.2;
- Node103lineStart = (Node103width - (ht.Default.getTextSize('月故障损失电量', ' '+ Node103fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node103align === 'center') {
- Node103textStart = -3;
- Node103textWidth = Node103width;
- Node103lineStart = Node103width - ht.Default.getTextSize('月故障损失电量', ' '+ Node103fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node103.setImage(GD.getTextJSON(Node103width, Node103height, true, false, false, ' '+ Node103fontSize + 'px "Arial"'))
- Node103.setPosition(1397*ratio.ratioX, 75*ratio.ratioY);
- Node103.setWidth(Node103width);
- Node103.setHeight(Node103height);
- Node103._nodeType = 'text';
- Node103._disallowEvert = true;
- Node103.setRotation(0*Math.PI/180);
- Node103.a('node.width', Node103width);
- Node103.a('node.height', Node103height);
- Node103.a('node.rect', [0, 0, Node103width, Node103height]);
- Node103.a('node.bordercolor','rgba(0,0,0,1)');
- Node103.a('node.borderwidth', 0);
- Node103.a('node.background','' || 'rgba(0,0,0,0)');
- Node103.a('node.gradient','');
- Node103.a('node.gradientcolor','');
- Node103.a('node.text','月故障损失电量');
- Node103.a('node.textalign','left');
- Node103.a('node.textvAlign','middle');
- Node103.a('node.textrect', [Node103textStart, 0, Node103textWidth, Node103height]);
- Node103.a('node.color','rgba(0,0,0,1)');
- Node103.a('node.font',' '+ Node103fontSize + 'px "Arial"');
- Node103.a('node.textvisible',true);
- Node103.a('node.linefeed',false);
- if (false) {
- Node103.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node103.a('node.text') || '月故障损失电量';
- var color=Node103.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node103width,Node103height,13.3333*_ratio.ratioY,"left",color,' '+ Node103fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node103.a('node.underlinepoints',[Node103lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node103fontSize + 2 , ht.Default.getTextSize('月故障损失电量', ' '+ Node103fontSize + 'px "Arial"').width + 6, (Node103height - Node103fontSize) * 0.5*_ratio.ratioY + Node103fontSize + 2 ]);
- Node103.a('node.underlinevisible',false);
- Node103.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node103);
- zoomNodeList.push({
- node: Node103,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node104 = new ht.Node();
- var Node104textStart, Node104textWidth, Node104lineStart, Node104align = 'left', Node104fontSize = 13.3333*_ratio.ratioY,Node104width = 110*_ratio.ratioX, Node104height = 16*_ratio.ratioY;
- (function () {
- if (Node104align === 'left') {
- Node104textStart = Node104fontSize * 0.2 > 2 ? Node104fontSize * 0.2 - 4 : Node104fontSize * 0.2 - 9;
- Node104textWidth = Node104width;
- Node104lineStart = 1;
- } else if (Node104align === 'right') {
- Node104textStart = 0;
- Node104textWidth =Node104fontSize <= 8 ? Node104width + Node104fontSize * 0.2 + 6 : Node104width - Node104fontSize * 0.2;
- Node104lineStart = (Node104width - (ht.Default.getTextSize('月限电损失电量', ' '+ Node104fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node104align === 'center') {
- Node104textStart = -3;
- Node104textWidth = Node104width;
- Node104lineStart = Node104width - ht.Default.getTextSize('月限电损失电量', ' '+ Node104fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node104.setImage(GD.getTextJSON(Node104width, Node104height, true, false, false, ' '+ Node104fontSize + 'px "Arial"'))
- Node104.setPosition(1397*ratio.ratioX, 99*ratio.ratioY);
- Node104.setWidth(Node104width);
- Node104.setHeight(Node104height);
- Node104._nodeType = 'text';
- Node104._disallowEvert = true;
- Node104.setRotation(0*Math.PI/180);
- Node104.a('node.width', Node104width);
- Node104.a('node.height', Node104height);
- Node104.a('node.rect', [0, 0, Node104width, Node104height]);
- Node104.a('node.bordercolor','rgba(0,0,0,1)');
- Node104.a('node.borderwidth', 0);
- Node104.a('node.background','' || 'rgba(0,0,0,0)');
- Node104.a('node.gradient','');
- Node104.a('node.gradientcolor','');
- Node104.a('node.text','月限电损失电量');
- Node104.a('node.textalign','left');
- Node104.a('node.textvAlign','middle');
- Node104.a('node.textrect', [Node104textStart, 0, Node104textWidth, Node104height]);
- Node104.a('node.color','rgba(0,0,0,1)');
- Node104.a('node.font',' '+ Node104fontSize + 'px "Arial"');
- Node104.a('node.textvisible',true);
- Node104.a('node.linefeed',false);
- if (false) {
- Node104.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node104.a('node.text') || '月限电损失电量';
- var color=Node104.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node104width,Node104height,13.3333*_ratio.ratioY,"left",color,' '+ Node104fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node104.a('node.underlinepoints',[Node104lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node104fontSize + 2 , ht.Default.getTextSize('月限电损失电量', ' '+ Node104fontSize + 'px "Arial"').width + 6, (Node104height - Node104fontSize) * 0.5*_ratio.ratioY + Node104fontSize + 2 ]);
- Node104.a('node.underlinevisible',false);
- Node104.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node104);
- zoomNodeList.push({
- node: Node104,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node105 = new ht.Node();
- var Node105textStart, Node105textWidth, Node105lineStart, Node105align = 'left', Node105fontSize = 13.3333*_ratio.ratioY,Node105width = 110*_ratio.ratioX, Node105height = 16*_ratio.ratioY;
- (function () {
- if (Node105align === 'left') {
- Node105textStart = Node105fontSize * 0.2 > 2 ? Node105fontSize * 0.2 - 4 : Node105fontSize * 0.2 - 9;
- Node105textWidth = Node105width;
- Node105lineStart = 1;
- } else if (Node105align === 'right') {
- Node105textStart = 0;
- Node105textWidth =Node105fontSize <= 8 ? Node105width + Node105fontSize * 0.2 + 6 : Node105width - Node105fontSize * 0.2;
- Node105lineStart = (Node105width - (ht.Default.getTextSize('月受累损失电量', ' '+ Node105fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node105align === 'center') {
- Node105textStart = -3;
- Node105textWidth = Node105width;
- Node105lineStart = Node105width - ht.Default.getTextSize('月受累损失电量', ' '+ Node105fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node105.setImage(GD.getTextJSON(Node105width, Node105height, true, false, false, ' '+ Node105fontSize + 'px "Arial"'))
- Node105.setPosition(1399*ratio.ratioX, 122*ratio.ratioY);
- Node105.setWidth(Node105width);
- Node105.setHeight(Node105height);
- Node105._nodeType = 'text';
- Node105._disallowEvert = true;
- Node105.setRotation(0*Math.PI/180);
- Node105.a('node.width', Node105width);
- Node105.a('node.height', Node105height);
- Node105.a('node.rect', [0, 0, Node105width, Node105height]);
- Node105.a('node.bordercolor','rgba(0,0,0,1)');
- Node105.a('node.borderwidth', 0);
- Node105.a('node.background','' || 'rgba(0,0,0,0)');
- Node105.a('node.gradient','');
- Node105.a('node.gradientcolor','');
- Node105.a('node.text','月受累损失电量');
- Node105.a('node.textalign','left');
- Node105.a('node.textvAlign','middle');
- Node105.a('node.textrect', [Node105textStart, 0, Node105textWidth, Node105height]);
- Node105.a('node.color','rgba(0,0,0,1)');
- Node105.a('node.font',' '+ Node105fontSize + 'px "Arial"');
- Node105.a('node.textvisible',true);
- Node105.a('node.linefeed',false);
- if (false) {
- Node105.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node105.a('node.text') || '月受累损失电量';
- var color=Node105.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node105width,Node105height,13.3333*_ratio.ratioY,"left",color,' '+ Node105fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node105.a('node.underlinepoints',[Node105lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node105fontSize + 2 , ht.Default.getTextSize('月受累损失电量', ' '+ Node105fontSize + 'px "Arial"').width + 6, (Node105height - Node105fontSize) * 0.5*_ratio.ratioY + Node105fontSize + 2 ]);
- Node105.a('node.underlinevisible',false);
- Node105.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node105);
- zoomNodeList.push({
- node: Node105,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node106 = new ht.Node();
- var Node106textStart, Node106textWidth, Node106lineStart, Node106align = 'left', Node106fontSize = 13.3333*_ratio.ratioY,Node106width = 110*_ratio.ratioX, Node106height = 16*_ratio.ratioY;
- (function () {
- if (Node106align === 'left') {
- Node106textStart = Node106fontSize * 0.2 > 2 ? Node106fontSize * 0.2 - 4 : Node106fontSize * 0.2 - 9;
- Node106textWidth = Node106width;
- Node106lineStart = 1;
- } else if (Node106align === 'right') {
- Node106textStart = 0;
- Node106textWidth =Node106fontSize <= 8 ? Node106width + Node106fontSize * 0.2 + 6 : Node106width - Node106fontSize * 0.2;
- Node106lineStart = (Node106width - (ht.Default.getTextSize('月性能损失电量', ' '+ Node106fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node106align === 'center') {
- Node106textStart = -3;
- Node106textWidth = Node106width;
- Node106lineStart = Node106width - ht.Default.getTextSize('月性能损失电量', ' '+ Node106fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node106.setImage(GD.getTextJSON(Node106width, Node106height, true, false, false, ' '+ Node106fontSize + 'px "Arial"'))
- Node106.setPosition(1396*ratio.ratioX, 147*ratio.ratioY);
- Node106.setWidth(Node106width);
- Node106.setHeight(Node106height);
- Node106._nodeType = 'text';
- Node106._disallowEvert = true;
- Node106.setRotation(0*Math.PI/180);
- Node106.a('node.width', Node106width);
- Node106.a('node.height', Node106height);
- Node106.a('node.rect', [0, 0, Node106width, Node106height]);
- Node106.a('node.bordercolor','rgba(0,0,0,1)');
- Node106.a('node.borderwidth', 0);
- Node106.a('node.background','' || 'rgba(0,0,0,0)');
- Node106.a('node.gradient','');
- Node106.a('node.gradientcolor','');
- Node106.a('node.text','月性能损失电量');
- Node106.a('node.textalign','left');
- Node106.a('node.textvAlign','middle');
- Node106.a('node.textrect', [Node106textStart, 0, Node106textWidth, Node106height]);
- Node106.a('node.color','rgba(0,0,0,1)');
- Node106.a('node.font',' '+ Node106fontSize + 'px "Arial"');
- Node106.a('node.textvisible',true);
- Node106.a('node.linefeed',false);
- if (false) {
- Node106.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node106.a('node.text') || '月性能损失电量';
- var color=Node106.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node106width,Node106height,13.3333*_ratio.ratioY,"left",color,' '+ Node106fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node106.a('node.underlinepoints',[Node106lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node106fontSize + 2 , ht.Default.getTextSize('月性能损失电量', ' '+ Node106fontSize + 'px "Arial"').width + 6, (Node106height - Node106fontSize) * 0.5*_ratio.ratioY + Node106fontSize + 2 ]);
- Node106.a('node.underlinevisible',false);
- Node106.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node106);
- zoomNodeList.push({
- node: Node106,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node107 = new ht.Node();
- var Node107textStart, Node107textWidth, Node107lineStart, Node107align = 'left', Node107fontSize = 13.3333*_ratio.ratioY,Node107width = 11*_ratio.ratioX, Node107height = 16*_ratio.ratioY;
- (function () {
- if (Node107align === 'left') {
- Node107textStart = Node107fontSize * 0.2 > 2 ? Node107fontSize * 0.2 - 4 : Node107fontSize * 0.2 - 9;
- Node107textWidth = Node107width;
- Node107lineStart = 1;
- } else if (Node107align === 'right') {
- Node107textStart = 0;
- Node107textWidth =Node107fontSize <= 8 ? Node107width + Node107fontSize * 0.2 + 6 : Node107width - Node107fontSize * 0.2;
- Node107lineStart = (Node107width - (ht.Default.getTextSize('0', 'bold '+ Node107fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node107align === 'center') {
- Node107textStart = -3;
- Node107textWidth = Node107width;
- Node107lineStart = Node107width - ht.Default.getTextSize('0', 'bold '+ Node107fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node107.setImage(GD.getTextJSON(Node107width, Node107height, true, false, false, 'bold '+ Node107fontSize + 'px "UniDreamLED"'))
- Node107.setPosition(1481*ratio.ratioX, 48*ratio.ratioY);
- Node107.setWidth(Node107width);
- Node107.setHeight(Node107height);
- Node107._nodeType = 'text';
- Node107._disallowEvert = true;
- Node107.setRotation(0*Math.PI/180);
- Node107.a('node.width', Node107width);
- Node107.a('node.height', Node107height);
- Node107.a('node.rect', [0, 0, Node107width, Node107height]);
- Node107.a('node.bordercolor','rgba(0,0,0,1)');
- Node107.a('node.borderwidth', 0);
- Node107.a('node.background','' || 'rgba(0,0,0,0)');
- Node107.a('node.gradient','');
- Node107.a('node.gradientcolor','');
- Node107.a('node.text','0');
- Node107.a('node.textalign','left');
- Node107.a('node.textvAlign','middle');
- Node107.a('node.textrect', [Node107textStart, 0, Node107textWidth, Node107height]);
- Node107.a('node.color','rgba(0,0,0,1)');
- Node107.a('node.font','bold '+ Node107fontSize + 'px "UniDreamLED"');
- Node107.a('node.textvisible',true);
- Node107.a('node.linefeed',false);
- if (false) {
- Node107.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node107.a('node.text') || '0';
- var color=Node107.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node107width,Node107height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node107fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node107.a('node.underlinepoints',[Node107lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node107fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node107fontSize + 'px "UniDreamLED"').width + 6, (Node107height - Node107fontSize) * 0.5*_ratio.ratioY + Node107fontSize + 2 ]);
- Node107.a('node.underlinevisible',false);
- Node107.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node107);
- zoomNodeList.push({
- node: Node107,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node108 = new ht.Node();
- var Node108textStart, Node108textWidth, Node108lineStart, Node108align = 'left', Node108fontSize = 13.3333*_ratio.ratioY,Node108width = 11*_ratio.ratioX, Node108height = 16*_ratio.ratioY;
- (function () {
- if (Node108align === 'left') {
- Node108textStart = Node108fontSize * 0.2 > 2 ? Node108fontSize * 0.2 - 4 : Node108fontSize * 0.2 - 9;
- Node108textWidth = Node108width;
- Node108lineStart = 1;
- } else if (Node108align === 'right') {
- Node108textStart = 0;
- Node108textWidth =Node108fontSize <= 8 ? Node108width + Node108fontSize * 0.2 + 6 : Node108width - Node108fontSize * 0.2;
- Node108lineStart = (Node108width - (ht.Default.getTextSize('0', 'bold '+ Node108fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node108align === 'center') {
- Node108textStart = -3;
- Node108textWidth = Node108width;
- Node108lineStart = Node108width - ht.Default.getTextSize('0', 'bold '+ Node108fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node108.setImage(GD.getTextJSON(Node108width, Node108height, true, false, false, 'bold '+ Node108fontSize + 'px "UniDreamLED"'))
- Node108.setPosition(1481*ratio.ratioX, 73*ratio.ratioY);
- Node108.setWidth(Node108width);
- Node108.setHeight(Node108height);
- Node108._nodeType = 'text';
- Node108._disallowEvert = true;
- Node108.setRotation(0*Math.PI/180);
- Node108.a('node.width', Node108width);
- Node108.a('node.height', Node108height);
- Node108.a('node.rect', [0, 0, Node108width, Node108height]);
- Node108.a('node.bordercolor','rgba(0,0,0,1)');
- Node108.a('node.borderwidth', 0);
- Node108.a('node.background','' || 'rgba(0,0,0,0)');
- Node108.a('node.gradient','');
- Node108.a('node.gradientcolor','');
- Node108.a('node.text','0');
- Node108.a('node.textalign','left');
- Node108.a('node.textvAlign','middle');
- Node108.a('node.textrect', [Node108textStart, 0, Node108textWidth, Node108height]);
- Node108.a('node.color','rgba(0,0,0,1)');
- Node108.a('node.font','bold '+ Node108fontSize + 'px "UniDreamLED"');
- Node108.a('node.textvisible',true);
- Node108.a('node.linefeed',false);
- if (false) {
- Node108.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node108.a('node.text') || '0';
- var color=Node108.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node108width,Node108height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node108fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node108.a('node.underlinepoints',[Node108lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node108fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node108fontSize + 'px "UniDreamLED"').width + 6, (Node108height - Node108fontSize) * 0.5*_ratio.ratioY + Node108fontSize + 2 ]);
- Node108.a('node.underlinevisible',false);
- Node108.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node108);
- zoomNodeList.push({
- node: Node108,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node109 = new ht.Node();
- var Node109textStart, Node109textWidth, Node109lineStart, Node109align = 'left', Node109fontSize = 13.3333*_ratio.ratioY,Node109width = 11*_ratio.ratioX, Node109height = 16*_ratio.ratioY;
- (function () {
- if (Node109align === 'left') {
- Node109textStart = Node109fontSize * 0.2 > 2 ? Node109fontSize * 0.2 - 4 : Node109fontSize * 0.2 - 9;
- Node109textWidth = Node109width;
- Node109lineStart = 1;
- } else if (Node109align === 'right') {
- Node109textStart = 0;
- Node109textWidth =Node109fontSize <= 8 ? Node109width + Node109fontSize * 0.2 + 6 : Node109width - Node109fontSize * 0.2;
- Node109lineStart = (Node109width - (ht.Default.getTextSize('0', 'bold '+ Node109fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node109align === 'center') {
- Node109textStart = -3;
- Node109textWidth = Node109width;
- Node109lineStart = Node109width - ht.Default.getTextSize('0', 'bold '+ Node109fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node109.setImage(GD.getTextJSON(Node109width, Node109height, true, false, false, 'bold '+ Node109fontSize + 'px "UniDreamLED"'))
- Node109.setPosition(1481*ratio.ratioX, 98*ratio.ratioY);
- Node109.setWidth(Node109width);
- Node109.setHeight(Node109height);
- Node109._nodeType = 'text';
- Node109._disallowEvert = true;
- Node109.setRotation(0*Math.PI/180);
- Node109.a('node.width', Node109width);
- Node109.a('node.height', Node109height);
- Node109.a('node.rect', [0, 0, Node109width, Node109height]);
- Node109.a('node.bordercolor','rgba(0,0,0,1)');
- Node109.a('node.borderwidth', 0);
- Node109.a('node.background','' || 'rgba(0,0,0,0)');
- Node109.a('node.gradient','');
- Node109.a('node.gradientcolor','');
- Node109.a('node.text','0');
- Node109.a('node.textalign','left');
- Node109.a('node.textvAlign','middle');
- Node109.a('node.textrect', [Node109textStart, 0, Node109textWidth, Node109height]);
- Node109.a('node.color','rgba(0,0,0,1)');
- Node109.a('node.font','bold '+ Node109fontSize + 'px "UniDreamLED"');
- Node109.a('node.textvisible',true);
- Node109.a('node.linefeed',false);
- if (false) {
- Node109.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node109.a('node.text') || '0';
- var color=Node109.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node109width,Node109height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node109fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node109.a('node.underlinepoints',[Node109lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node109fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node109fontSize + 'px "UniDreamLED"').width + 6, (Node109height - Node109fontSize) * 0.5*_ratio.ratioY + Node109fontSize + 2 ]);
- Node109.a('node.underlinevisible',false);
- Node109.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node109);
- zoomNodeList.push({
- node: Node109,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node110 = new ht.Node();
- var Node110textStart, Node110textWidth, Node110lineStart, Node110align = 'left', Node110fontSize = 13.3333*_ratio.ratioY,Node110width = 9*_ratio.ratioX, Node110height = 16*_ratio.ratioY;
- (function () {
- if (Node110align === 'left') {
- Node110textStart = Node110fontSize * 0.2 > 2 ? Node110fontSize * 0.2 - 4 : Node110fontSize * 0.2 - 9;
- Node110textWidth = Node110width;
- Node110lineStart = 1;
- } else if (Node110align === 'right') {
- Node110textStart = 0;
- Node110textWidth =Node110fontSize <= 8 ? Node110width + Node110fontSize * 0.2 + 6 : Node110width - Node110fontSize * 0.2;
- Node110lineStart = (Node110width - (ht.Default.getTextSize('-', 'bold '+ Node110fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node110align === 'center') {
- Node110textStart = -3;
- Node110textWidth = Node110width;
- Node110lineStart = Node110width - ht.Default.getTextSize('-', 'bold '+ Node110fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node110.setImage(GD.getTextJSON(Node110width, Node110height, true, false, false, 'bold '+ Node110fontSize + 'px "UniDreamLED"'))
- Node110.setPosition(1480*ratio.ratioX, 122*ratio.ratioY);
- Node110.setWidth(Node110width);
- Node110.setHeight(Node110height);
- Node110._nodeType = 'text';
- Node110._disallowEvert = true;
- Node110.setRotation(0*Math.PI/180);
- Node110.a('node.width', Node110width);
- Node110.a('node.height', Node110height);
- Node110.a('node.rect', [0, 0, Node110width, Node110height]);
- Node110.a('node.bordercolor','rgba(0,0,0,1)');
- Node110.a('node.borderwidth', 0);
- Node110.a('node.background','' || 'rgba(0,0,0,0)');
- Node110.a('node.gradient','');
- Node110.a('node.gradientcolor','');
- Node110.a('node.text','-');
- Node110.a('node.textalign','left');
- Node110.a('node.textvAlign','middle');
- Node110.a('node.textrect', [Node110textStart, 0, Node110textWidth, Node110height]);
- Node110.a('node.color','rgba(0,0,0,1)');
- Node110.a('node.font','bold '+ Node110fontSize + 'px "UniDreamLED"');
- Node110.a('node.textvisible',true);
- Node110.a('node.linefeed',false);
- if (false) {
- Node110.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node110.a('node.text') || '-';
- var color=Node110.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node110width,Node110height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node110fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node110.a('node.underlinepoints',[Node110lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node110fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node110fontSize + 'px "UniDreamLED"').width + 6, (Node110height - Node110fontSize) * 0.5*_ratio.ratioY + Node110fontSize + 2 ]);
- Node110.a('node.underlinevisible',false);
- Node110.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node110);
- zoomNodeList.push({
- node: Node110,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node111 = new ht.Node();
- var Node111textStart, Node111textWidth, Node111lineStart, Node111align = 'left', Node111fontSize = 13.3333*_ratio.ratioY,Node111width = 39*_ratio.ratioX, Node111height = 16*_ratio.ratioY;
- (function () {
- if (Node111align === 'left') {
- Node111textStart = Node111fontSize * 0.2 > 2 ? Node111fontSize * 0.2 - 4 : Node111fontSize * 0.2 - 9;
- Node111textWidth = Node111width;
- Node111lineStart = 1;
- } else if (Node111align === 'right') {
- Node111textStart = 0;
- Node111textWidth =Node111fontSize <= 8 ? Node111width + Node111fontSize * 0.2 + 6 : Node111width - Node111fontSize * 0.2;
- Node111lineStart = (Node111width - (ht.Default.getTextSize('万kW', ' '+ Node111fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node111align === 'center') {
- Node111textStart = -3;
- Node111textWidth = Node111width;
- Node111lineStart = Node111width - ht.Default.getTextSize('万kW', ' '+ Node111fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node111.setImage(GD.getTextJSON(Node111width, Node111height, true, false, false, ' '+ Node111fontSize + 'px "Arial"'))
- Node111.setPosition(1558*ratio.ratioX, 48*ratio.ratioY);
- Node111.setWidth(Node111width);
- Node111.setHeight(Node111height);
- Node111._nodeType = 'text';
- Node111._disallowEvert = true;
- Node111.setRotation(0*Math.PI/180);
- Node111.a('node.width', Node111width);
- Node111.a('node.height', Node111height);
- Node111.a('node.rect', [0, 0, Node111width, Node111height]);
- Node111.a('node.bordercolor','rgba(169,169,169,1)');
- Node111.a('node.borderwidth', 0);
- Node111.a('node.background','' || 'rgba(0,0,0,0)');
- Node111.a('node.gradient','');
- Node111.a('node.gradientcolor','');
- Node111.a('node.text','万kW');
- Node111.a('node.textalign','left');
- Node111.a('node.textvAlign','middle');
- Node111.a('node.textrect', [Node111textStart, 0, Node111textWidth, Node111height]);
- Node111.a('node.color','rgba(169,169,169,1)');
- Node111.a('node.font',' '+ Node111fontSize + 'px "Arial"');
- Node111.a('node.textvisible',true);
- Node111.a('node.linefeed',false);
- if (false) {
- Node111.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node111.a('node.text') || '万kW';
- var color=Node111.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node111width,Node111height,13.3333*_ratio.ratioY,"left",color,' '+ Node111fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node111.a('node.underlinepoints',[Node111lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node111fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node111fontSize + 'px "Arial"').width + 6, (Node111height - Node111fontSize) * 0.5*_ratio.ratioY + Node111fontSize + 2 ]);
- Node111.a('node.underlinevisible',false);
- Node111.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node111);
- zoomNodeList.push({
- node: Node111,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node112 = new ht.Node();
- var Node112textStart, Node112textWidth, Node112lineStart, Node112align = 'left', Node112fontSize = 13.3333*_ratio.ratioY,Node112width = 9*_ratio.ratioX, Node112height = 16*_ratio.ratioY;
- (function () {
- if (Node112align === 'left') {
- Node112textStart = Node112fontSize * 0.2 > 2 ? Node112fontSize * 0.2 - 4 : Node112fontSize * 0.2 - 9;
- Node112textWidth = Node112width;
- Node112lineStart = 1;
- } else if (Node112align === 'right') {
- Node112textStart = 0;
- Node112textWidth =Node112fontSize <= 8 ? Node112width + Node112fontSize * 0.2 + 6 : Node112width - Node112fontSize * 0.2;
- Node112lineStart = (Node112width - (ht.Default.getTextSize('-', 'bold '+ Node112fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node112align === 'center') {
- Node112textStart = -3;
- Node112textWidth = Node112width;
- Node112lineStart = Node112width - ht.Default.getTextSize('-', 'bold '+ Node112fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node112.setImage(GD.getTextJSON(Node112width, Node112height, true, false, false, 'bold '+ Node112fontSize + 'px "UniDreamLED"'))
- Node112.setPosition(1480*ratio.ratioX, 147*ratio.ratioY);
- Node112.setWidth(Node112width);
- Node112.setHeight(Node112height);
- Node112._nodeType = 'text';
- Node112._disallowEvert = true;
- Node112.setRotation(0*Math.PI/180);
- Node112.a('node.width', Node112width);
- Node112.a('node.height', Node112height);
- Node112.a('node.rect', [0, 0, Node112width, Node112height]);
- Node112.a('node.bordercolor','rgba(0,0,0,1)');
- Node112.a('node.borderwidth', 0);
- Node112.a('node.background','' || 'rgba(0,0,0,0)');
- Node112.a('node.gradient','');
- Node112.a('node.gradientcolor','');
- Node112.a('node.text','-');
- Node112.a('node.textalign','left');
- Node112.a('node.textvAlign','middle');
- Node112.a('node.textrect', [Node112textStart, 0, Node112textWidth, Node112height]);
- Node112.a('node.color','rgba(0,0,0,1)');
- Node112.a('node.font','bold '+ Node112fontSize + 'px "UniDreamLED"');
- Node112.a('node.textvisible',true);
- Node112.a('node.linefeed',false);
- if (false) {
- Node112.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node112.a('node.text') || '-';
- var color=Node112.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node112width,Node112height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node112fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node112.a('node.underlinepoints',[Node112lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node112fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node112fontSize + 'px "UniDreamLED"').width + 6, (Node112height - Node112fontSize) * 0.5*_ratio.ratioY + Node112fontSize + 2 ]);
- Node112.a('node.underlinevisible',false);
- Node112.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node112);
- zoomNodeList.push({
- node: Node112,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node113 = new ht.Node();
- var Node113textStart, Node113textWidth, Node113lineStart, Node113align = 'left', Node113fontSize = 13.3333*_ratio.ratioY,Node113width = 39*_ratio.ratioX, Node113height = 16*_ratio.ratioY;
- (function () {
- if (Node113align === 'left') {
- Node113textStart = Node113fontSize * 0.2 > 2 ? Node113fontSize * 0.2 - 4 : Node113fontSize * 0.2 - 9;
- Node113textWidth = Node113width;
- Node113lineStart = 1;
- } else if (Node113align === 'right') {
- Node113textStart = 0;
- Node113textWidth =Node113fontSize <= 8 ? Node113width + Node113fontSize * 0.2 + 6 : Node113width - Node113fontSize * 0.2;
- Node113lineStart = (Node113width - (ht.Default.getTextSize('万kW', ' '+ Node113fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node113align === 'center') {
- Node113textStart = -3;
- Node113textWidth = Node113width;
- Node113lineStart = Node113width - ht.Default.getTextSize('万kW', ' '+ Node113fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node113.setImage(GD.getTextJSON(Node113width, Node113height, true, false, false, ' '+ Node113fontSize + 'px "Arial"'))
- Node113.setPosition(1558*ratio.ratioX, 74*ratio.ratioY);
- Node113.setWidth(Node113width);
- Node113.setHeight(Node113height);
- Node113._nodeType = 'text';
- Node113._disallowEvert = true;
- Node113.setRotation(0*Math.PI/180);
- Node113.a('node.width', Node113width);
- Node113.a('node.height', Node113height);
- Node113.a('node.rect', [0, 0, Node113width, Node113height]);
- Node113.a('node.bordercolor','rgba(169,169,169,1)');
- Node113.a('node.borderwidth', 0);
- Node113.a('node.background','' || 'rgba(0,0,0,0)');
- Node113.a('node.gradient','');
- Node113.a('node.gradientcolor','');
- Node113.a('node.text','万kW');
- Node113.a('node.textalign','left');
- Node113.a('node.textvAlign','middle');
- Node113.a('node.textrect', [Node113textStart, 0, Node113textWidth, Node113height]);
- Node113.a('node.color','rgba(169,169,169,1)');
- Node113.a('node.font',' '+ Node113fontSize + 'px "Arial"');
- Node113.a('node.textvisible',true);
- Node113.a('node.linefeed',false);
- if (false) {
- Node113.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node113.a('node.text') || '万kW';
- var color=Node113.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node113width,Node113height,13.3333*_ratio.ratioY,"left",color,' '+ Node113fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node113.a('node.underlinepoints',[Node113lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node113fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node113fontSize + 'px "Arial"').width + 6, (Node113height - Node113fontSize) * 0.5*_ratio.ratioY + Node113fontSize + 2 ]);
- Node113.a('node.underlinevisible',false);
- Node113.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node113);
- zoomNodeList.push({
- node: Node113,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node114 = new ht.Node();
- var Node114textStart, Node114textWidth, Node114lineStart, Node114align = 'left', Node114fontSize = 13.3333*_ratio.ratioY,Node114width = 39*_ratio.ratioX, Node114height = 16*_ratio.ratioY;
- (function () {
- if (Node114align === 'left') {
- Node114textStart = Node114fontSize * 0.2 > 2 ? Node114fontSize * 0.2 - 4 : Node114fontSize * 0.2 - 9;
- Node114textWidth = Node114width;
- Node114lineStart = 1;
- } else if (Node114align === 'right') {
- Node114textStart = 0;
- Node114textWidth =Node114fontSize <= 8 ? Node114width + Node114fontSize * 0.2 + 6 : Node114width - Node114fontSize * 0.2;
- Node114lineStart = (Node114width - (ht.Default.getTextSize('万kW', ' '+ Node114fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node114align === 'center') {
- Node114textStart = -3;
- Node114textWidth = Node114width;
- Node114lineStart = Node114width - ht.Default.getTextSize('万kW', ' '+ Node114fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node114.setImage(GD.getTextJSON(Node114width, Node114height, true, false, false, ' '+ Node114fontSize + 'px "Arial"'))
- Node114.setPosition(1558*ratio.ratioX, 99*ratio.ratioY);
- Node114.setWidth(Node114width);
- Node114.setHeight(Node114height);
- Node114._nodeType = 'text';
- Node114._disallowEvert = true;
- Node114.setRotation(0*Math.PI/180);
- Node114.a('node.width', Node114width);
- Node114.a('node.height', Node114height);
- Node114.a('node.rect', [0, 0, Node114width, Node114height]);
- Node114.a('node.bordercolor','rgba(169,169,169,1)');
- Node114.a('node.borderwidth', 0);
- Node114.a('node.background','' || 'rgba(0,0,0,0)');
- Node114.a('node.gradient','');
- Node114.a('node.gradientcolor','');
- Node114.a('node.text','万kW');
- Node114.a('node.textalign','left');
- Node114.a('node.textvAlign','middle');
- Node114.a('node.textrect', [Node114textStart, 0, Node114textWidth, Node114height]);
- Node114.a('node.color','rgba(169,169,169,1)');
- Node114.a('node.font',' '+ Node114fontSize + 'px "Arial"');
- Node114.a('node.textvisible',true);
- Node114.a('node.linefeed',false);
- if (false) {
- Node114.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node114.a('node.text') || '万kW';
- var color=Node114.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node114width,Node114height,13.3333*_ratio.ratioY,"left",color,' '+ Node114fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node114.a('node.underlinepoints',[Node114lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node114fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node114fontSize + 'px "Arial"').width + 6, (Node114height - Node114fontSize) * 0.5*_ratio.ratioY + Node114fontSize + 2 ]);
- Node114.a('node.underlinevisible',false);
- Node114.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node114);
- zoomNodeList.push({
- node: Node114,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node115 = new ht.Node();
- var Node115textStart, Node115textWidth, Node115lineStart, Node115align = 'left', Node115fontSize = 13.3333*_ratio.ratioY,Node115width = 39*_ratio.ratioX, Node115height = 16*_ratio.ratioY;
- (function () {
- if (Node115align === 'left') {
- Node115textStart = Node115fontSize * 0.2 > 2 ? Node115fontSize * 0.2 - 4 : Node115fontSize * 0.2 - 9;
- Node115textWidth = Node115width;
- Node115lineStart = 1;
- } else if (Node115align === 'right') {
- Node115textStart = 0;
- Node115textWidth =Node115fontSize <= 8 ? Node115width + Node115fontSize * 0.2 + 6 : Node115width - Node115fontSize * 0.2;
- Node115lineStart = (Node115width - (ht.Default.getTextSize('万kW', ' '+ Node115fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node115align === 'center') {
- Node115textStart = -3;
- Node115textWidth = Node115width;
- Node115lineStart = Node115width - ht.Default.getTextSize('万kW', ' '+ Node115fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node115.setImage(GD.getTextJSON(Node115width, Node115height, true, false, false, ' '+ Node115fontSize + 'px "Arial"'))
- Node115.setPosition(1558*ratio.ratioX, 126*ratio.ratioY);
- Node115.setWidth(Node115width);
- Node115.setHeight(Node115height);
- Node115._nodeType = 'text';
- Node115._disallowEvert = true;
- Node115.setRotation(0*Math.PI/180);
- Node115.a('node.width', Node115width);
- Node115.a('node.height', Node115height);
- Node115.a('node.rect', [0, 0, Node115width, Node115height]);
- Node115.a('node.bordercolor','rgba(169,169,169,1)');
- Node115.a('node.borderwidth', 0);
- Node115.a('node.background','' || 'rgba(0,0,0,0)');
- Node115.a('node.gradient','');
- Node115.a('node.gradientcolor','');
- Node115.a('node.text','万kW');
- Node115.a('node.textalign','left');
- Node115.a('node.textvAlign','middle');
- Node115.a('node.textrect', [Node115textStart, 0, Node115textWidth, Node115height]);
- Node115.a('node.color','rgba(169,169,169,1)');
- Node115.a('node.font',' '+ Node115fontSize + 'px "Arial"');
- Node115.a('node.textvisible',true);
- Node115.a('node.linefeed',false);
- if (false) {
- Node115.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node115.a('node.text') || '万kW';
- var color=Node115.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node115width,Node115height,13.3333*_ratio.ratioY,"left",color,' '+ Node115fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node115.a('node.underlinepoints',[Node115lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node115fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node115fontSize + 'px "Arial"').width + 6, (Node115height - Node115fontSize) * 0.5*_ratio.ratioY + Node115fontSize + 2 ]);
- Node115.a('node.underlinevisible',false);
- Node115.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node115);
- zoomNodeList.push({
- node: Node115,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node116 = new ht.Node();
- var Node116textStart, Node116textWidth, Node116lineStart, Node116align = 'left', Node116fontSize = 13.3333*_ratio.ratioY,Node116width = 39*_ratio.ratioX, Node116height = 16*_ratio.ratioY;
- (function () {
- if (Node116align === 'left') {
- Node116textStart = Node116fontSize * 0.2 > 2 ? Node116fontSize * 0.2 - 4 : Node116fontSize * 0.2 - 9;
- Node116textWidth = Node116width;
- Node116lineStart = 1;
- } else if (Node116align === 'right') {
- Node116textStart = 0;
- Node116textWidth =Node116fontSize <= 8 ? Node116width + Node116fontSize * 0.2 + 6 : Node116width - Node116fontSize * 0.2;
- Node116lineStart = (Node116width - (ht.Default.getTextSize('万kW', ' '+ Node116fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node116align === 'center') {
- Node116textStart = -3;
- Node116textWidth = Node116width;
- Node116lineStart = Node116width - ht.Default.getTextSize('万kW', ' '+ Node116fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node116.setImage(GD.getTextJSON(Node116width, Node116height, true, false, false, ' '+ Node116fontSize + 'px "Arial"'))
- Node116.setPosition(1557*ratio.ratioX, 148*ratio.ratioY);
- Node116.setWidth(Node116width);
- Node116.setHeight(Node116height);
- Node116._nodeType = 'text';
- Node116._disallowEvert = true;
- Node116.setRotation(0*Math.PI/180);
- Node116.a('node.width', Node116width);
- Node116.a('node.height', Node116height);
- Node116.a('node.rect', [0, 0, Node116width, Node116height]);
- Node116.a('node.bordercolor','rgba(169,169,169,1)');
- Node116.a('node.borderwidth', 0);
- Node116.a('node.background','' || 'rgba(0,0,0,0)');
- Node116.a('node.gradient','');
- Node116.a('node.gradientcolor','');
- Node116.a('node.text','万kW');
- Node116.a('node.textalign','left');
- Node116.a('node.textvAlign','middle');
- Node116.a('node.textrect', [Node116textStart, 0, Node116textWidth, Node116height]);
- Node116.a('node.color','rgba(169,169,169,1)');
- Node116.a('node.font',' '+ Node116fontSize + 'px "Arial"');
- Node116.a('node.textvisible',true);
- Node116.a('node.linefeed',false);
- if (false) {
- Node116.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node116.a('node.text') || '万kW';
- var color=Node116.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node116width,Node116height,13.3333*_ratio.ratioY,"left",color,' '+ Node116fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node116.a('node.underlinepoints',[Node116lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node116fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node116fontSize + 'px "Arial"').width + 6, (Node116height - Node116fontSize) * 0.5*_ratio.ratioY + Node116fontSize + 2 ]);
- Node116.a('node.underlinevisible',false);
- Node116.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node116);
- zoomNodeList.push({
- node: Node116,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node117points=[1340, 62,1617, 62],
- Node117rect=ht.Default.unionPoint([{x:1340,y:62},{x:1617,y:62}]),
- Node117compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node117points.length;i++){
- if(i%2==0){
- Node117compspts.push(Node117points[i]-Node117rect.x);
- }else{
- Node117compspts.push(Node117points[i]-Node117rect.y);
- }
- }
- var Node117ptslength=Node117compspts.length;
- if (Node117rect.height === 0) {
- Node117compspts[0] -= 0;
- Node117compspts[Node117ptslength-2] += 0;
- } else if (Node117rect.width === 0){
- Node117compspts[1] -= 0;
- Node117compspts[Node117ptslength-1] += 0;
- } else {
- Node117compspts[0] -= 0;
- Node117compspts[1] -= 0;
- Node117compspts[Node117ptslength-2] += 0;
- Node117compspts[Node117ptslength-1] += 0;
- }
- Node117 = new ht.Node();
- Node117.borderWidth = 1;
- Node117rect.width = Node117rect.width === 0 ? 0.0001 : Node117rect.width;
- Node117rect.height = Node117rect.height === 0 ? 0.0001 : Node117rect.height;
- var Node117endCompspts = [Node117compspts[Node117ptslength-2],Node117compspts[Node117ptslength-1],0,0];
- var Node117startCompspts = [Node117compspts[0],Node117compspts[1],0,0];
- Node117.setImage(GD.getPolyLineJSON());
- Node117.setPosition(Node117rect.x+Node117rect.width/2,Node117rect.y+Node117rect.height/2);
- Node117.setSize(Node117rect.width,Node117rect.height);
- Node117.setStyle("opacity",1);
- Node117.s({'pixelPerfect':true});
- Node117borderwidth=1;
- Node117.setRotation(0);
- dataModel.add(Node117);
- Node117.a('node.points',Node117compspts);
- Node117.a('node.segments',[1,2]);
- Node117.a('node.color','rgba(220,220,220,1)');
- Node117.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node117.a('node.borderColor','rgba(220,220,220,1)');
- Node117.a('node.background','rgba(220,220,220,1)');
- Node117.a('node.gradient','');
- Node117.a('node.gradientcolor','rgba(220,220,220,1)');
- Node117.a('node.endCompspts',Node117endCompspts);
- Node117.a('node.startCompspts',Node117startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node117';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node117, Node117.getImage(), Node117compspts, Node117endCompspts, Node117startCompspts);
- var Node118points=[1338, 88,1615, 88],
- Node118rect=ht.Default.unionPoint([{x:1338,y:88},{x:1615,y:88}]),
- Node118compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node118points.length;i++){
- if(i%2==0){
- Node118compspts.push(Node118points[i]-Node118rect.x);
- }else{
- Node118compspts.push(Node118points[i]-Node118rect.y);
- }
- }
- var Node118ptslength=Node118compspts.length;
- if (Node118rect.height === 0) {
- Node118compspts[0] -= 0;
- Node118compspts[Node118ptslength-2] += 0;
- } else if (Node118rect.width === 0){
- Node118compspts[1] -= 0;
- Node118compspts[Node118ptslength-1] += 0;
- } else {
- Node118compspts[0] -= 0;
- Node118compspts[1] -= 0;
- Node118compspts[Node118ptslength-2] += 0;
- Node118compspts[Node118ptslength-1] += 0;
- }
- Node118 = new ht.Node();
- Node118.borderWidth = 1;
- Node118rect.width = Node118rect.width === 0 ? 0.0001 : Node118rect.width;
- Node118rect.height = Node118rect.height === 0 ? 0.0001 : Node118rect.height;
- var Node118endCompspts = [Node118compspts[Node118ptslength-2],Node118compspts[Node118ptslength-1],0,0];
- var Node118startCompspts = [Node118compspts[0],Node118compspts[1],0,0];
- Node118.setImage(GD.getPolyLineJSON());
- Node118.setPosition(Node118rect.x+Node118rect.width/2,Node118rect.y+Node118rect.height/2);
- Node118.setSize(Node118rect.width,Node118rect.height);
- Node118.setStyle("opacity",1);
- Node118.s({'pixelPerfect':true});
- Node118borderwidth=1;
- Node118.setRotation(0);
- dataModel.add(Node118);
- Node118.a('node.points',Node118compspts);
- Node118.a('node.segments',[1,2]);
- Node118.a('node.color','rgba(220,220,220,1)');
- Node118.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node118.a('node.borderColor','rgba(220,220,220,1)');
- Node118.a('node.background','rgba(220,220,220,1)');
- Node118.a('node.gradient','');
- Node118.a('node.gradientcolor','rgba(220,220,220,1)');
- Node118.a('node.endCompspts',Node118endCompspts);
- Node118.a('node.startCompspts',Node118startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node118';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node118, Node118.getImage(), Node118compspts, Node118endCompspts, Node118startCompspts);
- var Node119points=[1340, 112,1617, 112],
- Node119rect=ht.Default.unionPoint([{x:1340,y:112},{x:1617,y:112}]),
- Node119compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node119points.length;i++){
- if(i%2==0){
- Node119compspts.push(Node119points[i]-Node119rect.x);
- }else{
- Node119compspts.push(Node119points[i]-Node119rect.y);
- }
- }
- var Node119ptslength=Node119compspts.length;
- if (Node119rect.height === 0) {
- Node119compspts[0] -= 0;
- Node119compspts[Node119ptslength-2] += 0;
- } else if (Node119rect.width === 0){
- Node119compspts[1] -= 0;
- Node119compspts[Node119ptslength-1] += 0;
- } else {
- Node119compspts[0] -= 0;
- Node119compspts[1] -= 0;
- Node119compspts[Node119ptslength-2] += 0;
- Node119compspts[Node119ptslength-1] += 0;
- }
- Node119 = new ht.Node();
- Node119.borderWidth = 1;
- Node119rect.width = Node119rect.width === 0 ? 0.0001 : Node119rect.width;
- Node119rect.height = Node119rect.height === 0 ? 0.0001 : Node119rect.height;
- var Node119endCompspts = [Node119compspts[Node119ptslength-2],Node119compspts[Node119ptslength-1],0,0];
- var Node119startCompspts = [Node119compspts[0],Node119compspts[1],0,0];
- Node119.setImage(GD.getPolyLineJSON());
- Node119.setPosition(Node119rect.x+Node119rect.width/2,Node119rect.y+Node119rect.height/2);
- Node119.setSize(Node119rect.width,Node119rect.height);
- Node119.setStyle("opacity",1);
- Node119.s({'pixelPerfect':true});
- Node119borderwidth=1;
- Node119.setRotation(0);
- dataModel.add(Node119);
- Node119.a('node.points',Node119compspts);
- Node119.a('node.segments',[1,2]);
- Node119.a('node.color','rgba(220,220,220,1)');
- Node119.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node119.a('node.borderColor','rgba(220,220,220,1)');
- Node119.a('node.background','rgba(220,220,220,1)');
- Node119.a('node.gradient','');
- Node119.a('node.gradientcolor','rgba(220,220,220,1)');
- Node119.a('node.endCompspts',Node119endCompspts);
- Node119.a('node.startCompspts',Node119startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node119';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node119, Node119.getImage(), Node119compspts, Node119endCompspts, Node119startCompspts);
- var Node120points=[1339, 135,1616, 135],
- Node120rect=ht.Default.unionPoint([{x:1339,y:135},{x:1616,y:135}]),
- Node120compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node120points.length;i++){
- if(i%2==0){
- Node120compspts.push(Node120points[i]-Node120rect.x);
- }else{
- Node120compspts.push(Node120points[i]-Node120rect.y);
- }
- }
- var Node120ptslength=Node120compspts.length;
- if (Node120rect.height === 0) {
- Node120compspts[0] -= 0;
- Node120compspts[Node120ptslength-2] += 0;
- } else if (Node120rect.width === 0){
- Node120compspts[1] -= 0;
- Node120compspts[Node120ptslength-1] += 0;
- } else {
- Node120compspts[0] -= 0;
- Node120compspts[1] -= 0;
- Node120compspts[Node120ptslength-2] += 0;
- Node120compspts[Node120ptslength-1] += 0;
- }
- Node120 = new ht.Node();
- Node120.borderWidth = 1;
- Node120rect.width = Node120rect.width === 0 ? 0.0001 : Node120rect.width;
- Node120rect.height = Node120rect.height === 0 ? 0.0001 : Node120rect.height;
- var Node120endCompspts = [Node120compspts[Node120ptslength-2],Node120compspts[Node120ptslength-1],0,0];
- var Node120startCompspts = [Node120compspts[0],Node120compspts[1],0,0];
- Node120.setImage(GD.getPolyLineJSON());
- Node120.setPosition(Node120rect.x+Node120rect.width/2,Node120rect.y+Node120rect.height/2);
- Node120.setSize(Node120rect.width,Node120rect.height);
- Node120.setStyle("opacity",1);
- Node120.s({'pixelPerfect':true});
- Node120borderwidth=1;
- Node120.setRotation(0);
- dataModel.add(Node120);
- Node120.a('node.points',Node120compspts);
- Node120.a('node.segments',[1,2]);
- Node120.a('node.color','rgba(220,220,220,1)');
- Node120.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node120.a('node.borderColor','rgba(220,220,220,1)');
- Node120.a('node.background','rgba(220,220,220,1)');
- Node120.a('node.gradient','');
- Node120.a('node.gradientcolor','rgba(220,220,220,1)');
- Node120.a('node.endCompspts',Node120endCompspts);
- Node120.a('node.startCompspts',Node120startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node120';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node120, Node120.getImage(), Node120compspts, Node120endCompspts, Node120startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node121type = 'rect';
- var Node121 = new ht.Node(),
- Node121BorderWidth = 1*2;
- if (Node121type === 'arc') {
- Node121BorderWidth *= 1;
- }
- Node121.setImage(GD.getRectJSON(120*_ratio.ratioX, 120*_ratio.ratioY, Node121type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node121.setPosition(1685*ratio.ratioX, 98*ratio.ratioY);
- Node121.setSize(120*_ratio.ratioX, 120*_ratio.ratioY);
- Node121.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node121.a('node.width', 120*_ratio.ratioX);
- Node121.a('node.height', 120*_ratio.ratioY);
- Node121.a('node.type', Node121type);
- Node121.a('node.rect', [0, 0, 120*_ratio.ratioX, 120*_ratio.ratioY]);
- Node121.a('node.background', 'rgba(245,245,245,1)');
- Node121.a('node.gradientcolor', 'rgba(245,245,245,1)');
- Node121.a('node.gradient', '');
- Node121.a('node.borderwidth', Node121BorderWidth);
- Node121.a('node.color', 'rgba(220,220,220,1)');
- Node121.a('node.fillrect', [0,0,0,0]);
- Node121.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node121.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node121.a('node.fillgradient', '');
- if (Node121type !== 'rect') {
- Node121.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node121.a('node.arcTo', parseFloat('@arcTo@'));
- Node121.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node121type === 'arc') {
- Node121.a('node.arcOval', true);
- }
- Node121.setRotation(0*Math.PI/180);
- Node121.borderWidth = Node121BorderWidth;
- Node121.borderFillwidth = Node121BorderWidth;
- dataModel.add(Node121);
- Node121._nodename = 'Node121'
- Node121._nodeType = 'rect';
- zoomNodeList.push({
- node: Node121,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node121, Node121.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node122type = 'rect';
- var Node122 = new ht.Node(),
- Node122BorderWidth = 1*2;
- if (Node122type === 'arc') {
- Node122BorderWidth *= 1;
- }
- Node122.setImage(GD.getRectJSON(280.7278*_ratio.ratioX, 122*_ratio.ratioY, Node122type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node122.setPosition(1764*ratio.ratioX, 98*ratio.ratioY);
- Node122.setSize(280.7278*_ratio.ratioX, 122*_ratio.ratioY);
- Node122.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node122.a('node.width', 280.7278*_ratio.ratioX);
- Node122.a('node.height', 122*_ratio.ratioY);
- Node122.a('node.type', Node122type);
- Node122.a('node.rect', [0, 0, 280.7278*_ratio.ratioX, 122*_ratio.ratioY]);
- Node122.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node122.a('node.gradientcolor', '');
- Node122.a('node.gradient', '');
- Node122.a('node.borderwidth', Node122BorderWidth);
- Node122.a('node.color', 'rgba(220,220,220,1)');
- Node122.a('node.fillrect', [0,0,0,0]);
- Node122.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node122.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node122.a('node.fillgradient', '');
- if (Node122type !== 'rect') {
- Node122.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node122.a('node.arcTo', parseFloat('@arcTo@'));
- Node122.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node122type === 'arc') {
- Node122.a('node.arcOval', true);
- }
- Node122.setRotation(0*Math.PI/180);
- Node122.borderWidth = Node122BorderWidth;
- Node122.borderFillwidth = Node122BorderWidth;
- dataModel.add(Node122);
- Node122._nodename = 'Node122'
- Node122._nodeType = 'rect';
- zoomNodeList.push({
- node: Node122,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node122, Node122.getImage());var Node123points=[1815, 38,1815, 158],
- Node123rect=ht.Default.unionPoint([{x:1815,y:38},{x:1815,y:158}]),
- Node123compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Node123points.length;i++){
- if(i%2==0){
- Node123compspts.push(Node123points[i]-Node123rect.x);
- }else{
- Node123compspts.push(Node123points[i]-Node123rect.y);
- }
- }
- var Node123ptslength=Node123compspts.length;
- if (Node123rect.height === 0) {
- Node123compspts[0] -= 0;
- Node123compspts[Node123ptslength-2] += 0;
- } else if (Node123rect.width === 0){
- Node123compspts[1] -= 0;
- Node123compspts[Node123ptslength-1] += 0;
- } else {
- Node123compspts[0] -= 0;
- Node123compspts[1] -= 0;
- Node123compspts[Node123ptslength-2] += 0;
- Node123compspts[Node123ptslength-1] += 0;
- }
- Node123 = new ht.Node();
- Node123.borderWidth = 1;
- Node123rect.width = Node123rect.width === 0 ? 0.0001 : Node123rect.width;
- Node123rect.height = Node123rect.height === 0 ? 0.0001 : Node123rect.height;
- var Node123endCompspts = [Node123compspts[Node123ptslength-2],Node123compspts[Node123ptslength-1],0,0];
- var Node123startCompspts = [Node123compspts[0],Node123compspts[1],0,0];
- Node123.setImage(GD.getPolyLineJSON());
- Node123.setPosition(Node123rect.x+Node123rect.width/2,Node123rect.y+Node123rect.height/2);
- Node123.setSize(Node123rect.width,Node123rect.height);
- Node123.setStyle("opacity",1);
- Node123.s({'pixelPerfect':true});
- Node123borderwidth=1;
- Node123.setRotation(0);
- dataModel.add(Node123);
- Node123.a('node.points',Node123compspts);
- Node123.a('node.segments',[1,2]);
- Node123.a('node.color','rgba(220,220,220,1)');
- Node123.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node123.a('node.borderColor','rgba(220,220,220,1)');
- Node123.a('node.background','rgba(220,220,220,1)');
- Node123.a('node.gradient','');
- Node123.a('node.gradientcolor','rgba(220,220,220,1)');
- Node123.a('node.endCompspts',Node123endCompspts);
- Node123.a('node.startCompspts',Node123startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node123';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node123, Node123.getImage(), Node123compspts, Node123endCompspts, Node123startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node124 = new ht.Node();
- var Node124textStart, Node124textWidth, Node124lineStart, Node124align = 'left', Node124fontSize = 13.3333*_ratio.ratioY,Node124width = 110*_ratio.ratioX, Node124height = 16*_ratio.ratioY;
- (function () {
- if (Node124align === 'left') {
- Node124textStart = Node124fontSize * 0.2 > 2 ? Node124fontSize * 0.2 - 4 : Node124fontSize * 0.2 - 9;
- Node124textWidth = Node124width;
- Node124lineStart = 1;
- } else if (Node124align === 'right') {
- Node124textStart = 0;
- Node124textWidth =Node124fontSize <= 8 ? Node124width + Node124fontSize * 0.2 + 6 : Node124width - Node124fontSize * 0.2;
- Node124lineStart = (Node124width - (ht.Default.getTextSize('年维护损失电量', ' '+ Node124fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node124align === 'center') {
- Node124textStart = -3;
- Node124textWidth = Node124width;
- Node124lineStart = Node124width - ht.Default.getTextSize('年维护损失电量', ' '+ Node124fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node124.setImage(GD.getTextJSON(Node124width, Node124height, true, false, false, ' '+ Node124fontSize + 'px "Arial"'))
- Node124.setPosition(1684*ratio.ratioX, 49*ratio.ratioY);
- Node124.setWidth(Node124width);
- Node124.setHeight(Node124height);
- Node124._nodeType = 'text';
- Node124._disallowEvert = true;
- Node124.setRotation(0*Math.PI/180);
- Node124.a('node.width', Node124width);
- Node124.a('node.height', Node124height);
- Node124.a('node.rect', [0, 0, Node124width, Node124height]);
- Node124.a('node.bordercolor','rgba(0,0,0,1)');
- Node124.a('node.borderwidth', 0);
- Node124.a('node.background','' || 'rgba(0,0,0,0)');
- Node124.a('node.gradient','');
- Node124.a('node.gradientcolor','');
- Node124.a('node.text','年维护损失电量');
- Node124.a('node.textalign','left');
- Node124.a('node.textvAlign','middle');
- Node124.a('node.textrect', [Node124textStart, 0, Node124textWidth, Node124height]);
- Node124.a('node.color','rgba(0,0,0,1)');
- Node124.a('node.font',' '+ Node124fontSize + 'px "Arial"');
- Node124.a('node.textvisible',true);
- Node124.a('node.linefeed',false);
- if (false) {
- Node124.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node124.a('node.text') || '年维护损失电量';
- var color=Node124.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node124width,Node124height,13.3333*_ratio.ratioY,"left",color,' '+ Node124fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node124.a('node.underlinepoints',[Node124lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node124fontSize + 2 , ht.Default.getTextSize('年维护损失电量', ' '+ Node124fontSize + 'px "Arial"').width + 6, (Node124height - Node124fontSize) * 0.5*_ratio.ratioY + Node124fontSize + 2 ]);
- Node124.a('node.underlinevisible',false);
- Node124.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node124);
- zoomNodeList.push({
- node: Node124,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node125 = new ht.Node();
- var Node125textStart, Node125textWidth, Node125lineStart, Node125align = 'left', Node125fontSize = 13.3333*_ratio.ratioY,Node125width = 110*_ratio.ratioX, Node125height = 16*_ratio.ratioY;
- (function () {
- if (Node125align === 'left') {
- Node125textStart = Node125fontSize * 0.2 > 2 ? Node125fontSize * 0.2 - 4 : Node125fontSize * 0.2 - 9;
- Node125textWidth = Node125width;
- Node125lineStart = 1;
- } else if (Node125align === 'right') {
- Node125textStart = 0;
- Node125textWidth =Node125fontSize <= 8 ? Node125width + Node125fontSize * 0.2 + 6 : Node125width - Node125fontSize * 0.2;
- Node125lineStart = (Node125width - (ht.Default.getTextSize('年故障损失电量', ' '+ Node125fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node125align === 'center') {
- Node125textStart = -3;
- Node125textWidth = Node125width;
- Node125lineStart = Node125width - ht.Default.getTextSize('年故障损失电量', ' '+ Node125fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node125.setImage(GD.getTextJSON(Node125width, Node125height, true, false, false, ' '+ Node125fontSize + 'px "Arial"'))
- Node125.setPosition(1684*ratio.ratioX, 75*ratio.ratioY);
- Node125.setWidth(Node125width);
- Node125.setHeight(Node125height);
- Node125._nodeType = 'text';
- Node125._disallowEvert = true;
- Node125.setRotation(0*Math.PI/180);
- Node125.a('node.width', Node125width);
- Node125.a('node.height', Node125height);
- Node125.a('node.rect', [0, 0, Node125width, Node125height]);
- Node125.a('node.bordercolor','rgba(0,0,0,1)');
- Node125.a('node.borderwidth', 0);
- Node125.a('node.background','' || 'rgba(0,0,0,0)');
- Node125.a('node.gradient','');
- Node125.a('node.gradientcolor','');
- Node125.a('node.text','年故障损失电量');
- Node125.a('node.textalign','left');
- Node125.a('node.textvAlign','middle');
- Node125.a('node.textrect', [Node125textStart, 0, Node125textWidth, Node125height]);
- Node125.a('node.color','rgba(0,0,0,1)');
- Node125.a('node.font',' '+ Node125fontSize + 'px "Arial"');
- Node125.a('node.textvisible',true);
- Node125.a('node.linefeed',false);
- if (false) {
- Node125.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node125.a('node.text') || '年故障损失电量';
- var color=Node125.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node125width,Node125height,13.3333*_ratio.ratioY,"left",color,' '+ Node125fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node125.a('node.underlinepoints',[Node125lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node125fontSize + 2 , ht.Default.getTextSize('年故障损失电量', ' '+ Node125fontSize + 'px "Arial"').width + 6, (Node125height - Node125fontSize) * 0.5*_ratio.ratioY + Node125fontSize + 2 ]);
- Node125.a('node.underlinevisible',false);
- Node125.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node125);
- zoomNodeList.push({
- node: Node125,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node126 = new ht.Node();
- var Node126textStart, Node126textWidth, Node126lineStart, Node126align = 'left', Node126fontSize = 13.3333*_ratio.ratioY,Node126width = 110*_ratio.ratioX, Node126height = 16*_ratio.ratioY;
- (function () {
- if (Node126align === 'left') {
- Node126textStart = Node126fontSize * 0.2 > 2 ? Node126fontSize * 0.2 - 4 : Node126fontSize * 0.2 - 9;
- Node126textWidth = Node126width;
- Node126lineStart = 1;
- } else if (Node126align === 'right') {
- Node126textStart = 0;
- Node126textWidth =Node126fontSize <= 8 ? Node126width + Node126fontSize * 0.2 + 6 : Node126width - Node126fontSize * 0.2;
- Node126lineStart = (Node126width - (ht.Default.getTextSize('年限电损失电量', ' '+ Node126fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node126align === 'center') {
- Node126textStart = -3;
- Node126textWidth = Node126width;
- Node126lineStart = Node126width - ht.Default.getTextSize('年限电损失电量', ' '+ Node126fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node126.setImage(GD.getTextJSON(Node126width, Node126height, true, false, false, ' '+ Node126fontSize + 'px "Arial"'))
- Node126.setPosition(1684*ratio.ratioX, 99*ratio.ratioY);
- Node126.setWidth(Node126width);
- Node126.setHeight(Node126height);
- Node126._nodeType = 'text';
- Node126._disallowEvert = true;
- Node126.setRotation(0*Math.PI/180);
- Node126.a('node.width', Node126width);
- Node126.a('node.height', Node126height);
- Node126.a('node.rect', [0, 0, Node126width, Node126height]);
- Node126.a('node.bordercolor','rgba(0,0,0,1)');
- Node126.a('node.borderwidth', 0);
- Node126.a('node.background','' || 'rgba(0,0,0,0)');
- Node126.a('node.gradient','');
- Node126.a('node.gradientcolor','');
- Node126.a('node.text','年限电损失电量');
- Node126.a('node.textalign','left');
- Node126.a('node.textvAlign','middle');
- Node126.a('node.textrect', [Node126textStart, 0, Node126textWidth, Node126height]);
- Node126.a('node.color','rgba(0,0,0,1)');
- Node126.a('node.font',' '+ Node126fontSize + 'px "Arial"');
- Node126.a('node.textvisible',true);
- Node126.a('node.linefeed',false);
- if (false) {
- Node126.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node126.a('node.text') || '年限电损失电量';
- var color=Node126.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node126width,Node126height,13.3333*_ratio.ratioY,"left",color,' '+ Node126fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node126.a('node.underlinepoints',[Node126lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node126fontSize + 2 , ht.Default.getTextSize('年限电损失电量', ' '+ Node126fontSize + 'px "Arial"').width + 6, (Node126height - Node126fontSize) * 0.5*_ratio.ratioY + Node126fontSize + 2 ]);
- Node126.a('node.underlinevisible',false);
- Node126.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node126);
- zoomNodeList.push({
- node: Node126,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node127 = new ht.Node();
- var Node127textStart, Node127textWidth, Node127lineStart, Node127align = 'left', Node127fontSize = 13.3333*_ratio.ratioY,Node127width = 110*_ratio.ratioX, Node127height = 16*_ratio.ratioY;
- (function () {
- if (Node127align === 'left') {
- Node127textStart = Node127fontSize * 0.2 > 2 ? Node127fontSize * 0.2 - 4 : Node127fontSize * 0.2 - 9;
- Node127textWidth = Node127width;
- Node127lineStart = 1;
- } else if (Node127align === 'right') {
- Node127textStart = 0;
- Node127textWidth =Node127fontSize <= 8 ? Node127width + Node127fontSize * 0.2 + 6 : Node127width - Node127fontSize * 0.2;
- Node127lineStart = (Node127width - (ht.Default.getTextSize('年受累损失电量', ' '+ Node127fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node127align === 'center') {
- Node127textStart = -3;
- Node127textWidth = Node127width;
- Node127lineStart = Node127width - ht.Default.getTextSize('年受累损失电量', ' '+ Node127fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node127.setImage(GD.getTextJSON(Node127width, Node127height, true, false, false, ' '+ Node127fontSize + 'px "Arial"'))
- Node127.setPosition(1685*ratio.ratioX, 122*ratio.ratioY);
- Node127.setWidth(Node127width);
- Node127.setHeight(Node127height);
- Node127._nodeType = 'text';
- Node127._disallowEvert = true;
- Node127.setRotation(0*Math.PI/180);
- Node127.a('node.width', Node127width);
- Node127.a('node.height', Node127height);
- Node127.a('node.rect', [0, 0, Node127width, Node127height]);
- Node127.a('node.bordercolor','rgba(0,0,0,1)');
- Node127.a('node.borderwidth', 0);
- Node127.a('node.background','' || 'rgba(0,0,0,0)');
- Node127.a('node.gradient','');
- Node127.a('node.gradientcolor','');
- Node127.a('node.text','年受累损失电量');
- Node127.a('node.textalign','left');
- Node127.a('node.textvAlign','middle');
- Node127.a('node.textrect', [Node127textStart, 0, Node127textWidth, Node127height]);
- Node127.a('node.color','rgba(0,0,0,1)');
- Node127.a('node.font',' '+ Node127fontSize + 'px "Arial"');
- Node127.a('node.textvisible',true);
- Node127.a('node.linefeed',false);
- if (false) {
- Node127.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node127.a('node.text') || '年受累损失电量';
- var color=Node127.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node127width,Node127height,13.3333*_ratio.ratioY,"left",color,' '+ Node127fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node127.a('node.underlinepoints',[Node127lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node127fontSize + 2 , ht.Default.getTextSize('年受累损失电量', ' '+ Node127fontSize + 'px "Arial"').width + 6, (Node127height - Node127fontSize) * 0.5*_ratio.ratioY + Node127fontSize + 2 ]);
- Node127.a('node.underlinevisible',false);
- Node127.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node127);
- zoomNodeList.push({
- node: Node127,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node128 = new ht.Node();
- var Node128textStart, Node128textWidth, Node128lineStart, Node128align = 'left', Node128fontSize = 13.3333*_ratio.ratioY,Node128width = 110*_ratio.ratioX, Node128height = 16*_ratio.ratioY;
- (function () {
- if (Node128align === 'left') {
- Node128textStart = Node128fontSize * 0.2 > 2 ? Node128fontSize * 0.2 - 4 : Node128fontSize * 0.2 - 9;
- Node128textWidth = Node128width;
- Node128lineStart = 1;
- } else if (Node128align === 'right') {
- Node128textStart = 0;
- Node128textWidth =Node128fontSize <= 8 ? Node128width + Node128fontSize * 0.2 + 6 : Node128width - Node128fontSize * 0.2;
- Node128lineStart = (Node128width - (ht.Default.getTextSize('年性能损失电量', ' '+ Node128fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node128align === 'center') {
- Node128textStart = -3;
- Node128textWidth = Node128width;
- Node128lineStart = Node128width - ht.Default.getTextSize('年性能损失电量', ' '+ Node128fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node128.setImage(GD.getTextJSON(Node128width, Node128height, true, false, false, ' '+ Node128fontSize + 'px "Arial"'))
- Node128.setPosition(1683*ratio.ratioX, 147*ratio.ratioY);
- Node128.setWidth(Node128width);
- Node128.setHeight(Node128height);
- Node128._nodeType = 'text';
- Node128._disallowEvert = true;
- Node128.setRotation(0*Math.PI/180);
- Node128.a('node.width', Node128width);
- Node128.a('node.height', Node128height);
- Node128.a('node.rect', [0, 0, Node128width, Node128height]);
- Node128.a('node.bordercolor','rgba(0,0,0,1)');
- Node128.a('node.borderwidth', 0);
- Node128.a('node.background','' || 'rgba(0,0,0,0)');
- Node128.a('node.gradient','');
- Node128.a('node.gradientcolor','');
- Node128.a('node.text','年性能损失电量');
- Node128.a('node.textalign','left');
- Node128.a('node.textvAlign','middle');
- Node128.a('node.textrect', [Node128textStart, 0, Node128textWidth, Node128height]);
- Node128.a('node.color','rgba(0,0,0,1)');
- Node128.a('node.font',' '+ Node128fontSize + 'px "Arial"');
- Node128.a('node.textvisible',true);
- Node128.a('node.linefeed',false);
- if (false) {
- Node128.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node128.a('node.text') || '年性能损失电量';
- var color=Node128.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node128width,Node128height,13.3333*_ratio.ratioY,"left",color,' '+ Node128fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node128.a('node.underlinepoints',[Node128lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node128fontSize + 2 , ht.Default.getTextSize('年性能损失电量', ' '+ Node128fontSize + 'px "Arial"').width + 6, (Node128height - Node128fontSize) * 0.5*_ratio.ratioY + Node128fontSize + 2 ]);
- Node128.a('node.underlinevisible',false);
- Node128.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node128);
- zoomNodeList.push({
- node: Node128,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node129 = new ht.Node();
- var Node129textStart, Node129textWidth, Node129lineStart, Node129align = 'left', Node129fontSize = 13.3333*_ratio.ratioY,Node129width = 11*_ratio.ratioX, Node129height = 16*_ratio.ratioY;
- (function () {
- if (Node129align === 'left') {
- Node129textStart = Node129fontSize * 0.2 > 2 ? Node129fontSize * 0.2 - 4 : Node129fontSize * 0.2 - 9;
- Node129textWidth = Node129width;
- Node129lineStart = 1;
- } else if (Node129align === 'right') {
- Node129textStart = 0;
- Node129textWidth =Node129fontSize <= 8 ? Node129width + Node129fontSize * 0.2 + 6 : Node129width - Node129fontSize * 0.2;
- Node129lineStart = (Node129width - (ht.Default.getTextSize('0', 'bold '+ Node129fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node129align === 'center') {
- Node129textStart = -3;
- Node129textWidth = Node129width;
- Node129lineStart = Node129width - ht.Default.getTextSize('0', 'bold '+ Node129fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node129.setImage(GD.getTextJSON(Node129width, Node129height, true, false, false, 'bold '+ Node129fontSize + 'px "UniDreamLED"'))
- Node129.setPosition(1767*ratio.ratioX, 49*ratio.ratioY);
- Node129.setWidth(Node129width);
- Node129.setHeight(Node129height);
- Node129._nodeType = 'text';
- Node129._disallowEvert = true;
- Node129.setRotation(0*Math.PI/180);
- Node129.a('node.width', Node129width);
- Node129.a('node.height', Node129height);
- Node129.a('node.rect', [0, 0, Node129width, Node129height]);
- Node129.a('node.bordercolor','rgba(0,0,0,1)');
- Node129.a('node.borderwidth', 0);
- Node129.a('node.background','' || 'rgba(0,0,0,0)');
- Node129.a('node.gradient','');
- Node129.a('node.gradientcolor','');
- Node129.a('node.text','0');
- Node129.a('node.textalign','left');
- Node129.a('node.textvAlign','middle');
- Node129.a('node.textrect', [Node129textStart, 0, Node129textWidth, Node129height]);
- Node129.a('node.color','rgba(0,0,0,1)');
- Node129.a('node.font','bold '+ Node129fontSize + 'px "UniDreamLED"');
- Node129.a('node.textvisible',true);
- Node129.a('node.linefeed',false);
- if (false) {
- Node129.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node129.a('node.text') || '0';
- var color=Node129.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node129width,Node129height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node129fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node129.a('node.underlinepoints',[Node129lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node129fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node129fontSize + 'px "UniDreamLED"').width + 6, (Node129height - Node129fontSize) * 0.5*_ratio.ratioY + Node129fontSize + 2 ]);
- Node129.a('node.underlinevisible',false);
- Node129.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node129);
- zoomNodeList.push({
- node: Node129,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node130 = new ht.Node();
- var Node130textStart, Node130textWidth, Node130lineStart, Node130align = 'left', Node130fontSize = 13.3333*_ratio.ratioY,Node130width = 11*_ratio.ratioX, Node130height = 16*_ratio.ratioY;
- (function () {
- if (Node130align === 'left') {
- Node130textStart = Node130fontSize * 0.2 > 2 ? Node130fontSize * 0.2 - 4 : Node130fontSize * 0.2 - 9;
- Node130textWidth = Node130width;
- Node130lineStart = 1;
- } else if (Node130align === 'right') {
- Node130textStart = 0;
- Node130textWidth =Node130fontSize <= 8 ? Node130width + Node130fontSize * 0.2 + 6 : Node130width - Node130fontSize * 0.2;
- Node130lineStart = (Node130width - (ht.Default.getTextSize('0', 'bold '+ Node130fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node130align === 'center') {
- Node130textStart = -3;
- Node130textWidth = Node130width;
- Node130lineStart = Node130width - ht.Default.getTextSize('0', 'bold '+ Node130fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node130.setImage(GD.getTextJSON(Node130width, Node130height, true, false, false, 'bold '+ Node130fontSize + 'px "UniDreamLED"'))
- Node130.setPosition(1767*ratio.ratioX, 73*ratio.ratioY);
- Node130.setWidth(Node130width);
- Node130.setHeight(Node130height);
- Node130._nodeType = 'text';
- Node130._disallowEvert = true;
- Node130.setRotation(0*Math.PI/180);
- Node130.a('node.width', Node130width);
- Node130.a('node.height', Node130height);
- Node130.a('node.rect', [0, 0, Node130width, Node130height]);
- Node130.a('node.bordercolor','rgba(0,0,0,1)');
- Node130.a('node.borderwidth', 0);
- Node130.a('node.background','' || 'rgba(0,0,0,0)');
- Node130.a('node.gradient','');
- Node130.a('node.gradientcolor','');
- Node130.a('node.text','0');
- Node130.a('node.textalign','left');
- Node130.a('node.textvAlign','middle');
- Node130.a('node.textrect', [Node130textStart, 0, Node130textWidth, Node130height]);
- Node130.a('node.color','rgba(0,0,0,1)');
- Node130.a('node.font','bold '+ Node130fontSize + 'px "UniDreamLED"');
- Node130.a('node.textvisible',true);
- Node130.a('node.linefeed',false);
- if (false) {
- Node130.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node130.a('node.text') || '0';
- var color=Node130.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node130width,Node130height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node130fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node130.a('node.underlinepoints',[Node130lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node130fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node130fontSize + 'px "UniDreamLED"').width + 6, (Node130height - Node130fontSize) * 0.5*_ratio.ratioY + Node130fontSize + 2 ]);
- Node130.a('node.underlinevisible',false);
- Node130.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node130);
- zoomNodeList.push({
- node: Node130,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node131 = new ht.Node();
- var Node131textStart, Node131textWidth, Node131lineStart, Node131align = 'left', Node131fontSize = 13.3333*_ratio.ratioY,Node131width = 11*_ratio.ratioX, Node131height = 16*_ratio.ratioY;
- (function () {
- if (Node131align === 'left') {
- Node131textStart = Node131fontSize * 0.2 > 2 ? Node131fontSize * 0.2 - 4 : Node131fontSize * 0.2 - 9;
- Node131textWidth = Node131width;
- Node131lineStart = 1;
- } else if (Node131align === 'right') {
- Node131textStart = 0;
- Node131textWidth =Node131fontSize <= 8 ? Node131width + Node131fontSize * 0.2 + 6 : Node131width - Node131fontSize * 0.2;
- Node131lineStart = (Node131width - (ht.Default.getTextSize('0', 'bold '+ Node131fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node131align === 'center') {
- Node131textStart = -3;
- Node131textWidth = Node131width;
- Node131lineStart = Node131width - ht.Default.getTextSize('0', 'bold '+ Node131fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node131.setImage(GD.getTextJSON(Node131width, Node131height, true, false, false, 'bold '+ Node131fontSize + 'px "UniDreamLED"'))
- Node131.setPosition(1767*ratio.ratioX, 98*ratio.ratioY);
- Node131.setWidth(Node131width);
- Node131.setHeight(Node131height);
- Node131._nodeType = 'text';
- Node131._disallowEvert = true;
- Node131.setRotation(0*Math.PI/180);
- Node131.a('node.width', Node131width);
- Node131.a('node.height', Node131height);
- Node131.a('node.rect', [0, 0, Node131width, Node131height]);
- Node131.a('node.bordercolor','rgba(0,0,0,1)');
- Node131.a('node.borderwidth', 0);
- Node131.a('node.background','' || 'rgba(0,0,0,0)');
- Node131.a('node.gradient','');
- Node131.a('node.gradientcolor','');
- Node131.a('node.text','0');
- Node131.a('node.textalign','left');
- Node131.a('node.textvAlign','middle');
- Node131.a('node.textrect', [Node131textStart, 0, Node131textWidth, Node131height]);
- Node131.a('node.color','rgba(0,0,0,1)');
- Node131.a('node.font','bold '+ Node131fontSize + 'px "UniDreamLED"');
- Node131.a('node.textvisible',true);
- Node131.a('node.linefeed',false);
- if (false) {
- Node131.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node131.a('node.text') || '0';
- var color=Node131.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node131width,Node131height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node131fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node131.a('node.underlinepoints',[Node131lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node131fontSize + 2 , ht.Default.getTextSize('0', 'bold '+ Node131fontSize + 'px "UniDreamLED"').width + 6, (Node131height - Node131fontSize) * 0.5*_ratio.ratioY + Node131fontSize + 2 ]);
- Node131.a('node.underlinevisible',false);
- Node131.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node131);
- zoomNodeList.push({
- node: Node131,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node132 = new ht.Node();
- var Node132textStart, Node132textWidth, Node132lineStart, Node132align = 'left', Node132fontSize = 13.3333*_ratio.ratioY,Node132width = 9*_ratio.ratioX, Node132height = 16*_ratio.ratioY;
- (function () {
- if (Node132align === 'left') {
- Node132textStart = Node132fontSize * 0.2 > 2 ? Node132fontSize * 0.2 - 4 : Node132fontSize * 0.2 - 9;
- Node132textWidth = Node132width;
- Node132lineStart = 1;
- } else if (Node132align === 'right') {
- Node132textStart = 0;
- Node132textWidth =Node132fontSize <= 8 ? Node132width + Node132fontSize * 0.2 + 6 : Node132width - Node132fontSize * 0.2;
- Node132lineStart = (Node132width - (ht.Default.getTextSize('-', 'bold '+ Node132fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node132align === 'center') {
- Node132textStart = -3;
- Node132textWidth = Node132width;
- Node132lineStart = Node132width - ht.Default.getTextSize('-', 'bold '+ Node132fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node132.setImage(GD.getTextJSON(Node132width, Node132height, true, false, false, 'bold '+ Node132fontSize + 'px "UniDreamLED"'))
- Node132.setPosition(1766*ratio.ratioX, 122*ratio.ratioY);
- Node132.setWidth(Node132width);
- Node132.setHeight(Node132height);
- Node132._nodeType = 'text';
- Node132._disallowEvert = true;
- Node132.setRotation(0*Math.PI/180);
- Node132.a('node.width', Node132width);
- Node132.a('node.height', Node132height);
- Node132.a('node.rect', [0, 0, Node132width, Node132height]);
- Node132.a('node.bordercolor','rgba(0,0,0,1)');
- Node132.a('node.borderwidth', 0);
- Node132.a('node.background','' || 'rgba(0,0,0,0)');
- Node132.a('node.gradient','');
- Node132.a('node.gradientcolor','');
- Node132.a('node.text','-');
- Node132.a('node.textalign','left');
- Node132.a('node.textvAlign','middle');
- Node132.a('node.textrect', [Node132textStart, 0, Node132textWidth, Node132height]);
- Node132.a('node.color','rgba(0,0,0,1)');
- Node132.a('node.font','bold '+ Node132fontSize + 'px "UniDreamLED"');
- Node132.a('node.textvisible',true);
- Node132.a('node.linefeed',false);
- if (false) {
- Node132.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node132.a('node.text') || '-';
- var color=Node132.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node132width,Node132height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node132fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node132.a('node.underlinepoints',[Node132lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node132fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node132fontSize + 'px "UniDreamLED"').width + 6, (Node132height - Node132fontSize) * 0.5*_ratio.ratioY + Node132fontSize + 2 ]);
- Node132.a('node.underlinevisible',false);
- Node132.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node132);
- zoomNodeList.push({
- node: Node132,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node133 = new ht.Node();
- var Node133textStart, Node133textWidth, Node133lineStart, Node133align = 'left', Node133fontSize = 13.3333*_ratio.ratioY,Node133width = 39*_ratio.ratioX, Node133height = 16*_ratio.ratioY;
- (function () {
- if (Node133align === 'left') {
- Node133textStart = Node133fontSize * 0.2 > 2 ? Node133fontSize * 0.2 - 4 : Node133fontSize * 0.2 - 9;
- Node133textWidth = Node133width;
- Node133lineStart = 1;
- } else if (Node133align === 'right') {
- Node133textStart = 0;
- Node133textWidth =Node133fontSize <= 8 ? Node133width + Node133fontSize * 0.2 + 6 : Node133width - Node133fontSize * 0.2;
- Node133lineStart = (Node133width - (ht.Default.getTextSize('万kW', ' '+ Node133fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node133align === 'center') {
- Node133textStart = -3;
- Node133textWidth = Node133width;
- Node133lineStart = Node133width - ht.Default.getTextSize('万kW', ' '+ Node133fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node133.setImage(GD.getTextJSON(Node133width, Node133height, true, false, false, ' '+ Node133fontSize + 'px "Arial"'))
- Node133.setPosition(1844*ratio.ratioX, 48*ratio.ratioY);
- Node133.setWidth(Node133width);
- Node133.setHeight(Node133height);
- Node133._nodeType = 'text';
- Node133._disallowEvert = true;
- Node133.setRotation(0*Math.PI/180);
- Node133.a('node.width', Node133width);
- Node133.a('node.height', Node133height);
- Node133.a('node.rect', [0, 0, Node133width, Node133height]);
- Node133.a('node.bordercolor','rgba(169,169,169,1)');
- Node133.a('node.borderwidth', 0);
- Node133.a('node.background','' || 'rgba(0,0,0,0)');
- Node133.a('node.gradient','');
- Node133.a('node.gradientcolor','');
- Node133.a('node.text','万kW');
- Node133.a('node.textalign','left');
- Node133.a('node.textvAlign','middle');
- Node133.a('node.textrect', [Node133textStart, 0, Node133textWidth, Node133height]);
- Node133.a('node.color','rgba(169,169,169,1)');
- Node133.a('node.font',' '+ Node133fontSize + 'px "Arial"');
- Node133.a('node.textvisible',true);
- Node133.a('node.linefeed',false);
- if (false) {
- Node133.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node133.a('node.text') || '万kW';
- var color=Node133.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node133width,Node133height,13.3333*_ratio.ratioY,"left",color,' '+ Node133fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node133.a('node.underlinepoints',[Node133lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node133fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node133fontSize + 'px "Arial"').width + 6, (Node133height - Node133fontSize) * 0.5*_ratio.ratioY + Node133fontSize + 2 ]);
- Node133.a('node.underlinevisible',false);
- Node133.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node133);
- zoomNodeList.push({
- node: Node133,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node134 = new ht.Node();
- var Node134textStart, Node134textWidth, Node134lineStart, Node134align = 'left', Node134fontSize = 13.3333*_ratio.ratioY,Node134width = 9*_ratio.ratioX, Node134height = 16*_ratio.ratioY;
- (function () {
- if (Node134align === 'left') {
- Node134textStart = Node134fontSize * 0.2 > 2 ? Node134fontSize * 0.2 - 4 : Node134fontSize * 0.2 - 9;
- Node134textWidth = Node134width;
- Node134lineStart = 1;
- } else if (Node134align === 'right') {
- Node134textStart = 0;
- Node134textWidth =Node134fontSize <= 8 ? Node134width + Node134fontSize * 0.2 + 6 : Node134width - Node134fontSize * 0.2;
- Node134lineStart = (Node134width - (ht.Default.getTextSize('-', 'bold '+ Node134fontSize + 'px "UniDreamLED"').width + 6)) * 0.5;
- } else if (Node134align === 'center') {
- Node134textStart = -3;
- Node134textWidth = Node134width;
- Node134lineStart = Node134width - ht.Default.getTextSize('-', 'bold '+ Node134fontSize + 'px "UniDreamLED"').width - 11;
- }
- })();
- Node134.setImage(GD.getTextJSON(Node134width, Node134height, true, false, false, 'bold '+ Node134fontSize + 'px "UniDreamLED"'))
- Node134.setPosition(1766*ratio.ratioX, 147*ratio.ratioY);
- Node134.setWidth(Node134width);
- Node134.setHeight(Node134height);
- Node134._nodeType = 'text';
- Node134._disallowEvert = true;
- Node134.setRotation(0*Math.PI/180);
- Node134.a('node.width', Node134width);
- Node134.a('node.height', Node134height);
- Node134.a('node.rect', [0, 0, Node134width, Node134height]);
- Node134.a('node.bordercolor','rgba(0,0,0,1)');
- Node134.a('node.borderwidth', 0);
- Node134.a('node.background','' || 'rgba(0,0,0,0)');
- Node134.a('node.gradient','');
- Node134.a('node.gradientcolor','');
- Node134.a('node.text','-');
- Node134.a('node.textalign','left');
- Node134.a('node.textvAlign','middle');
- Node134.a('node.textrect', [Node134textStart, 0, Node134textWidth, Node134height]);
- Node134.a('node.color','rgba(0,0,0,1)');
- Node134.a('node.font','bold '+ Node134fontSize + 'px "UniDreamLED"');
- Node134.a('node.textvisible',true);
- Node134.a('node.linefeed',false);
- if (false) {
- Node134.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node134.a('node.text') || '-';
- var color=Node134.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node134width,Node134height,13.3333*_ratio.ratioY,"left",color,'bold '+ Node134fontSize + 'px "UniDreamLED"', 0,g);
- });
- }
- if (false) {
- Node134.a('node.underlinepoints',[Node134lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node134fontSize + 2 , ht.Default.getTextSize('-', 'bold '+ Node134fontSize + 'px "UniDreamLED"').width + 6, (Node134height - Node134fontSize) * 0.5*_ratio.ratioY + Node134fontSize + 2 ]);
- Node134.a('node.underlinevisible',false);
- Node134.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node134);
- zoomNodeList.push({
- node: Node134,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node135 = new ht.Node();
- var Node135textStart, Node135textWidth, Node135lineStart, Node135align = 'left', Node135fontSize = 13.3333*_ratio.ratioY,Node135width = 39*_ratio.ratioX, Node135height = 16*_ratio.ratioY;
- (function () {
- if (Node135align === 'left') {
- Node135textStart = Node135fontSize * 0.2 > 2 ? Node135fontSize * 0.2 - 4 : Node135fontSize * 0.2 - 9;
- Node135textWidth = Node135width;
- Node135lineStart = 1;
- } else if (Node135align === 'right') {
- Node135textStart = 0;
- Node135textWidth =Node135fontSize <= 8 ? Node135width + Node135fontSize * 0.2 + 6 : Node135width - Node135fontSize * 0.2;
- Node135lineStart = (Node135width - (ht.Default.getTextSize('万kW', ' '+ Node135fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node135align === 'center') {
- Node135textStart = -3;
- Node135textWidth = Node135width;
- Node135lineStart = Node135width - ht.Default.getTextSize('万kW', ' '+ Node135fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node135.setImage(GD.getTextJSON(Node135width, Node135height, true, false, false, ' '+ Node135fontSize + 'px "Arial"'))
- Node135.setPosition(1844*ratio.ratioX, 74*ratio.ratioY);
- Node135.setWidth(Node135width);
- Node135.setHeight(Node135height);
- Node135._nodeType = 'text';
- Node135._disallowEvert = true;
- Node135.setRotation(0*Math.PI/180);
- Node135.a('node.width', Node135width);
- Node135.a('node.height', Node135height);
- Node135.a('node.rect', [0, 0, Node135width, Node135height]);
- Node135.a('node.bordercolor','rgba(169,169,169,1)');
- Node135.a('node.borderwidth', 0);
- Node135.a('node.background','' || 'rgba(0,0,0,0)');
- Node135.a('node.gradient','');
- Node135.a('node.gradientcolor','');
- Node135.a('node.text','万kW');
- Node135.a('node.textalign','left');
- Node135.a('node.textvAlign','middle');
- Node135.a('node.textrect', [Node135textStart, 0, Node135textWidth, Node135height]);
- Node135.a('node.color','rgba(169,169,169,1)');
- Node135.a('node.font',' '+ Node135fontSize + 'px "Arial"');
- Node135.a('node.textvisible',true);
- Node135.a('node.linefeed',false);
- if (false) {
- Node135.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node135.a('node.text') || '万kW';
- var color=Node135.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node135width,Node135height,13.3333*_ratio.ratioY,"left",color,' '+ Node135fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node135.a('node.underlinepoints',[Node135lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node135fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node135fontSize + 'px "Arial"').width + 6, (Node135height - Node135fontSize) * 0.5*_ratio.ratioY + Node135fontSize + 2 ]);
- Node135.a('node.underlinevisible',false);
- Node135.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node135);
- zoomNodeList.push({
- node: Node135,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node136 = new ht.Node();
- var Node136textStart, Node136textWidth, Node136lineStart, Node136align = 'left', Node136fontSize = 13.3333*_ratio.ratioY,Node136width = 39*_ratio.ratioX, Node136height = 16*_ratio.ratioY;
- (function () {
- if (Node136align === 'left') {
- Node136textStart = Node136fontSize * 0.2 > 2 ? Node136fontSize * 0.2 - 4 : Node136fontSize * 0.2 - 9;
- Node136textWidth = Node136width;
- Node136lineStart = 1;
- } else if (Node136align === 'right') {
- Node136textStart = 0;
- Node136textWidth =Node136fontSize <= 8 ? Node136width + Node136fontSize * 0.2 + 6 : Node136width - Node136fontSize * 0.2;
- Node136lineStart = (Node136width - (ht.Default.getTextSize('万kW', ' '+ Node136fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node136align === 'center') {
- Node136textStart = -3;
- Node136textWidth = Node136width;
- Node136lineStart = Node136width - ht.Default.getTextSize('万kW', ' '+ Node136fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node136.setImage(GD.getTextJSON(Node136width, Node136height, true, false, false, ' '+ Node136fontSize + 'px "Arial"'))
- Node136.setPosition(1844*ratio.ratioX, 99*ratio.ratioY);
- Node136.setWidth(Node136width);
- Node136.setHeight(Node136height);
- Node136._nodeType = 'text';
- Node136._disallowEvert = true;
- Node136.setRotation(0*Math.PI/180);
- Node136.a('node.width', Node136width);
- Node136.a('node.height', Node136height);
- Node136.a('node.rect', [0, 0, Node136width, Node136height]);
- Node136.a('node.bordercolor','rgba(169,169,169,1)');
- Node136.a('node.borderwidth', 0);
- Node136.a('node.background','' || 'rgba(0,0,0,0)');
- Node136.a('node.gradient','');
- Node136.a('node.gradientcolor','');
- Node136.a('node.text','万kW');
- Node136.a('node.textalign','left');
- Node136.a('node.textvAlign','middle');
- Node136.a('node.textrect', [Node136textStart, 0, Node136textWidth, Node136height]);
- Node136.a('node.color','rgba(169,169,169,1)');
- Node136.a('node.font',' '+ Node136fontSize + 'px "Arial"');
- Node136.a('node.textvisible',true);
- Node136.a('node.linefeed',false);
- if (false) {
- Node136.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node136.a('node.text') || '万kW';
- var color=Node136.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node136width,Node136height,13.3333*_ratio.ratioY,"left",color,' '+ Node136fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node136.a('node.underlinepoints',[Node136lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node136fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node136fontSize + 'px "Arial"').width + 6, (Node136height - Node136fontSize) * 0.5*_ratio.ratioY + Node136fontSize + 2 ]);
- Node136.a('node.underlinevisible',false);
- Node136.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node136);
- zoomNodeList.push({
- node: Node136,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node137 = new ht.Node();
- var Node137textStart, Node137textWidth, Node137lineStart, Node137align = 'left', Node137fontSize = 13.3333*_ratio.ratioY,Node137width = 39*_ratio.ratioX, Node137height = 16*_ratio.ratioY;
- (function () {
- if (Node137align === 'left') {
- Node137textStart = Node137fontSize * 0.2 > 2 ? Node137fontSize * 0.2 - 4 : Node137fontSize * 0.2 - 9;
- Node137textWidth = Node137width;
- Node137lineStart = 1;
- } else if (Node137align === 'right') {
- Node137textStart = 0;
- Node137textWidth =Node137fontSize <= 8 ? Node137width + Node137fontSize * 0.2 + 6 : Node137width - Node137fontSize * 0.2;
- Node137lineStart = (Node137width - (ht.Default.getTextSize('万kW', ' '+ Node137fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node137align === 'center') {
- Node137textStart = -3;
- Node137textWidth = Node137width;
- Node137lineStart = Node137width - ht.Default.getTextSize('万kW', ' '+ Node137fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node137.setImage(GD.getTextJSON(Node137width, Node137height, true, false, false, ' '+ Node137fontSize + 'px "Arial"'))
- Node137.setPosition(1844*ratio.ratioX, 126*ratio.ratioY);
- Node137.setWidth(Node137width);
- Node137.setHeight(Node137height);
- Node137._nodeType = 'text';
- Node137._disallowEvert = true;
- Node137.setRotation(0*Math.PI/180);
- Node137.a('node.width', Node137width);
- Node137.a('node.height', Node137height);
- Node137.a('node.rect', [0, 0, Node137width, Node137height]);
- Node137.a('node.bordercolor','rgba(169,169,169,1)');
- Node137.a('node.borderwidth', 0);
- Node137.a('node.background','' || 'rgba(0,0,0,0)');
- Node137.a('node.gradient','');
- Node137.a('node.gradientcolor','');
- Node137.a('node.text','万kW');
- Node137.a('node.textalign','left');
- Node137.a('node.textvAlign','middle');
- Node137.a('node.textrect', [Node137textStart, 0, Node137textWidth, Node137height]);
- Node137.a('node.color','rgba(169,169,169,1)');
- Node137.a('node.font',' '+ Node137fontSize + 'px "Arial"');
- Node137.a('node.textvisible',true);
- Node137.a('node.linefeed',false);
- if (false) {
- Node137.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node137.a('node.text') || '万kW';
- var color=Node137.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node137width,Node137height,13.3333*_ratio.ratioY,"left",color,' '+ Node137fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node137.a('node.underlinepoints',[Node137lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node137fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node137fontSize + 'px "Arial"').width + 6, (Node137height - Node137fontSize) * 0.5*_ratio.ratioY + Node137fontSize + 2 ]);
- Node137.a('node.underlinevisible',false);
- Node137.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node137);
- zoomNodeList.push({
- node: Node137,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node138 = new ht.Node();
- var Node138textStart, Node138textWidth, Node138lineStart, Node138align = 'left', Node138fontSize = 13.3333*_ratio.ratioY,Node138width = 39*_ratio.ratioX, Node138height = 16*_ratio.ratioY;
- (function () {
- if (Node138align === 'left') {
- Node138textStart = Node138fontSize * 0.2 > 2 ? Node138fontSize * 0.2 - 4 : Node138fontSize * 0.2 - 9;
- Node138textWidth = Node138width;
- Node138lineStart = 1;
- } else if (Node138align === 'right') {
- Node138textStart = 0;
- Node138textWidth =Node138fontSize <= 8 ? Node138width + Node138fontSize * 0.2 + 6 : Node138width - Node138fontSize * 0.2;
- Node138lineStart = (Node138width - (ht.Default.getTextSize('万kW', ' '+ Node138fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node138align === 'center') {
- Node138textStart = -3;
- Node138textWidth = Node138width;
- Node138lineStart = Node138width - ht.Default.getTextSize('万kW', ' '+ Node138fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node138.setImage(GD.getTextJSON(Node138width, Node138height, true, false, false, ' '+ Node138fontSize + 'px "Arial"'))
- Node138.setPosition(1843*ratio.ratioX, 148*ratio.ratioY);
- Node138.setWidth(Node138width);
- Node138.setHeight(Node138height);
- Node138._nodeType = 'text';
- Node138._disallowEvert = true;
- Node138.setRotation(0*Math.PI/180);
- Node138.a('node.width', Node138width);
- Node138.a('node.height', Node138height);
- Node138.a('node.rect', [0, 0, Node138width, Node138height]);
- Node138.a('node.bordercolor','rgba(169,169,169,1)');
- Node138.a('node.borderwidth', 0);
- Node138.a('node.background','' || 'rgba(0,0,0,0)');
- Node138.a('node.gradient','');
- Node138.a('node.gradientcolor','');
- Node138.a('node.text','万kW');
- Node138.a('node.textalign','left');
- Node138.a('node.textvAlign','middle');
- Node138.a('node.textrect', [Node138textStart, 0, Node138textWidth, Node138height]);
- Node138.a('node.color','rgba(169,169,169,1)');
- Node138.a('node.font',' '+ Node138fontSize + 'px "Arial"');
- Node138.a('node.textvisible',true);
- Node138.a('node.linefeed',false);
- if (false) {
- Node138.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node138.a('node.text') || '万kW';
- var color=Node138.a('node.color') || 'rgba(169,169,169,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node138width,Node138height,13.3333*_ratio.ratioY,"left",color,' '+ Node138fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node138.a('node.underlinepoints',[Node138lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node138fontSize + 2 , ht.Default.getTextSize('万kW', ' '+ Node138fontSize + 'px "Arial"').width + 6, (Node138height - Node138fontSize) * 0.5*_ratio.ratioY + Node138fontSize + 2 ]);
- Node138.a('node.underlinevisible',false);
- Node138.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node138);
- zoomNodeList.push({
- node: Node138,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node139points=[1627, 62,1904, 62],
- Node139rect=ht.Default.unionPoint([{x:1627,y:62},{x:1904,y:62}]),
- Node139compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node139points.length;i++){
- if(i%2==0){
- Node139compspts.push(Node139points[i]-Node139rect.x);
- }else{
- Node139compspts.push(Node139points[i]-Node139rect.y);
- }
- }
- var Node139ptslength=Node139compspts.length;
- if (Node139rect.height === 0) {
- Node139compspts[0] -= 0;
- Node139compspts[Node139ptslength-2] += 0;
- } else if (Node139rect.width === 0){
- Node139compspts[1] -= 0;
- Node139compspts[Node139ptslength-1] += 0;
- } else {
- Node139compspts[0] -= 0;
- Node139compspts[1] -= 0;
- Node139compspts[Node139ptslength-2] += 0;
- Node139compspts[Node139ptslength-1] += 0;
- }
- Node139 = new ht.Node();
- Node139.borderWidth = 1;
- Node139rect.width = Node139rect.width === 0 ? 0.0001 : Node139rect.width;
- Node139rect.height = Node139rect.height === 0 ? 0.0001 : Node139rect.height;
- var Node139endCompspts = [Node139compspts[Node139ptslength-2],Node139compspts[Node139ptslength-1],0,0];
- var Node139startCompspts = [Node139compspts[0],Node139compspts[1],0,0];
- Node139.setImage(GD.getPolyLineJSON());
- Node139.setPosition(Node139rect.x+Node139rect.width/2,Node139rect.y+Node139rect.height/2);
- Node139.setSize(Node139rect.width,Node139rect.height);
- Node139.setStyle("opacity",1);
- Node139.s({'pixelPerfect':true});
- Node139borderwidth=1;
- Node139.setRotation(0);
- dataModel.add(Node139);
- Node139.a('node.points',Node139compspts);
- Node139.a('node.segments',[1,2]);
- Node139.a('node.color','rgba(220,220,220,1)');
- Node139.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node139.a('node.borderColor','rgba(220,220,220,1)');
- Node139.a('node.background','rgba(220,220,220,1)');
- Node139.a('node.gradient','');
- Node139.a('node.gradientcolor','rgba(220,220,220,1)');
- Node139.a('node.endCompspts',Node139endCompspts);
- Node139.a('node.startCompspts',Node139startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node139';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node139, Node139.getImage(), Node139compspts, Node139endCompspts, Node139startCompspts);
- var Node140points=[1625, 88,1902, 88],
- Node140rect=ht.Default.unionPoint([{x:1625,y:88},{x:1902,y:88}]),
- Node140compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node140points.length;i++){
- if(i%2==0){
- Node140compspts.push(Node140points[i]-Node140rect.x);
- }else{
- Node140compspts.push(Node140points[i]-Node140rect.y);
- }
- }
- var Node140ptslength=Node140compspts.length;
- if (Node140rect.height === 0) {
- Node140compspts[0] -= 0;
- Node140compspts[Node140ptslength-2] += 0;
- } else if (Node140rect.width === 0){
- Node140compspts[1] -= 0;
- Node140compspts[Node140ptslength-1] += 0;
- } else {
- Node140compspts[0] -= 0;
- Node140compspts[1] -= 0;
- Node140compspts[Node140ptslength-2] += 0;
- Node140compspts[Node140ptslength-1] += 0;
- }
- Node140 = new ht.Node();
- Node140.borderWidth = 1;
- Node140rect.width = Node140rect.width === 0 ? 0.0001 : Node140rect.width;
- Node140rect.height = Node140rect.height === 0 ? 0.0001 : Node140rect.height;
- var Node140endCompspts = [Node140compspts[Node140ptslength-2],Node140compspts[Node140ptslength-1],0,0];
- var Node140startCompspts = [Node140compspts[0],Node140compspts[1],0,0];
- Node140.setImage(GD.getPolyLineJSON());
- Node140.setPosition(Node140rect.x+Node140rect.width/2,Node140rect.y+Node140rect.height/2);
- Node140.setSize(Node140rect.width,Node140rect.height);
- Node140.setStyle("opacity",1);
- Node140.s({'pixelPerfect':true});
- Node140borderwidth=1;
- Node140.setRotation(0);
- dataModel.add(Node140);
- Node140.a('node.points',Node140compspts);
- Node140.a('node.segments',[1,2]);
- Node140.a('node.color','rgba(220,220,220,1)');
- Node140.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node140.a('node.borderColor','rgba(220,220,220,1)');
- Node140.a('node.background','rgba(220,220,220,1)');
- Node140.a('node.gradient','');
- Node140.a('node.gradientcolor','rgba(220,220,220,1)');
- Node140.a('node.endCompspts',Node140endCompspts);
- Node140.a('node.startCompspts',Node140startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node140';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node140, Node140.getImage(), Node140compspts, Node140endCompspts, Node140startCompspts);
- var Node141points=[1627, 112,1904, 112],
- Node141rect=ht.Default.unionPoint([{x:1627,y:112},{x:1904,y:112}]),
- Node141compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node141points.length;i++){
- if(i%2==0){
- Node141compspts.push(Node141points[i]-Node141rect.x);
- }else{
- Node141compspts.push(Node141points[i]-Node141rect.y);
- }
- }
- var Node141ptslength=Node141compspts.length;
- if (Node141rect.height === 0) {
- Node141compspts[0] -= 0;
- Node141compspts[Node141ptslength-2] += 0;
- } else if (Node141rect.width === 0){
- Node141compspts[1] -= 0;
- Node141compspts[Node141ptslength-1] += 0;
- } else {
- Node141compspts[0] -= 0;
- Node141compspts[1] -= 0;
- Node141compspts[Node141ptslength-2] += 0;
- Node141compspts[Node141ptslength-1] += 0;
- }
- Node141 = new ht.Node();
- Node141.borderWidth = 1;
- Node141rect.width = Node141rect.width === 0 ? 0.0001 : Node141rect.width;
- Node141rect.height = Node141rect.height === 0 ? 0.0001 : Node141rect.height;
- var Node141endCompspts = [Node141compspts[Node141ptslength-2],Node141compspts[Node141ptslength-1],0,0];
- var Node141startCompspts = [Node141compspts[0],Node141compspts[1],0,0];
- Node141.setImage(GD.getPolyLineJSON());
- Node141.setPosition(Node141rect.x+Node141rect.width/2,Node141rect.y+Node141rect.height/2);
- Node141.setSize(Node141rect.width,Node141rect.height);
- Node141.setStyle("opacity",1);
- Node141.s({'pixelPerfect':true});
- Node141borderwidth=1;
- Node141.setRotation(0);
- dataModel.add(Node141);
- Node141.a('node.points',Node141compspts);
- Node141.a('node.segments',[1,2]);
- Node141.a('node.color','rgba(220,220,220,1)');
- Node141.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node141.a('node.borderColor','rgba(220,220,220,1)');
- Node141.a('node.background','rgba(220,220,220,1)');
- Node141.a('node.gradient','');
- Node141.a('node.gradientcolor','rgba(220,220,220,1)');
- Node141.a('node.endCompspts',Node141endCompspts);
- Node141.a('node.startCompspts',Node141startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node141';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node141, Node141.getImage(), Node141compspts, Node141endCompspts, Node141startCompspts);
- var Node142points=[1626, 135,1903, 135],
- Node142rect=ht.Default.unionPoint([{x:1626,y:135},{x:1903,y:135}]),
- Node142compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Node142points.length;i++){
- if(i%2==0){
- Node142compspts.push(Node142points[i]-Node142rect.x);
- }else{
- Node142compspts.push(Node142points[i]-Node142rect.y);
- }
- }
- var Node142ptslength=Node142compspts.length;
- if (Node142rect.height === 0) {
- Node142compspts[0] -= 0;
- Node142compspts[Node142ptslength-2] += 0;
- } else if (Node142rect.width === 0){
- Node142compspts[1] -= 0;
- Node142compspts[Node142ptslength-1] += 0;
- } else {
- Node142compspts[0] -= 0;
- Node142compspts[1] -= 0;
- Node142compspts[Node142ptslength-2] += 0;
- Node142compspts[Node142ptslength-1] += 0;
- }
- Node142 = new ht.Node();
- Node142.borderWidth = 1;
- Node142rect.width = Node142rect.width === 0 ? 0.0001 : Node142rect.width;
- Node142rect.height = Node142rect.height === 0 ? 0.0001 : Node142rect.height;
- var Node142endCompspts = [Node142compspts[Node142ptslength-2],Node142compspts[Node142ptslength-1],0,0];
- var Node142startCompspts = [Node142compspts[0],Node142compspts[1],0,0];
- Node142.setImage(GD.getPolyLineJSON());
- Node142.setPosition(Node142rect.x+Node142rect.width/2,Node142rect.y+Node142rect.height/2);
- Node142.setSize(Node142rect.width,Node142rect.height);
- Node142.setStyle("opacity",1);
- Node142.s({'pixelPerfect':true});
- Node142borderwidth=1;
- Node142.setRotation(0);
- dataModel.add(Node142);
- Node142.a('node.points',Node142compspts);
- Node142.a('node.segments',[1,2]);
- Node142.a('node.color','rgba(220,220,220,1)');
- Node142.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Node142.a('node.borderColor','rgba(220,220,220,1)');
- Node142.a('node.background','rgba(220,220,220,1)');
- Node142.a('node.gradient','');
- Node142.a('node.gradientcolor','rgba(220,220,220,1)');
- Node142.a('node.endCompspts',Node142endCompspts);
- Node142.a('node.startCompspts',Node142startCompspts);
- (function (node, img, compspts, endCompspts, startCompspts) {
- var position = node.getPosition(),
- w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY;
- function resetPoints(rx, ry) {
- for (var i = 0, len = compspts.length; i < len; i++) {
- if (i%2 === 0) {
- compspts[i]*=rx;
- } else {
- compspts[i]*=ry;
- }
- }
- endCompspts[0] = compspts[compspts.length-2];
- endCompspts[1] = compspts[compspts.length-1];
- endCompspts[2] *= rx;
- endCompspts[3] *= ry;
- node.a('node.offsetEndY', -(endCompspts[3]*0.5));
- node.a('node.offsetEndX', -(endCompspts[2]*0.5));
-
- startCompspts[0] = compspts[0];
- startCompspts[1] = compspts[1];
- startCompspts[2] *= rx;
- startCompspts[3] *= ry;
- node.a('node.offsetStartY', -(startCompspts[3]*0.5));
- node.a('node.offsetStartX', -(startCompspts[2]*0.5));
- node.a('node.endRotation', GD.calcRotationByStartAndEnd(compspts[i-4], compspts[i-3], compspts[i-2], compspts[i-1]));
- node.a('node.startRotation', GD.calcRotationByStartAndEnd(compspts[0], compspts[1], compspts[2], compspts[3]) + Math.PI);
- }
- node.setSize(w, h);
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- node.borderWidth = 1;
- node.a('node.borderwidth',node.borderWidth);
- node._nodename = 'Node142';
- node._nodeType = 'line';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- var setWidth = node.setWidth,
- setHeight = node.setHeight,
- timer, rx = 1, ry = 1;
-
- node.setWidth = function (width) {
- var _width = this.getWidth();
- rx = width / _width;
- node.a('node.width', width);
- setWidth.apply(this, arguments);
- resetPoints(rx, 1);
- }
- node.setHeight = function (height) {
- var _height = this.getHeight();
- ry = height / _height;
- node.a('node.height', height);
- setHeight.apply(this, arguments);
- resetPoints(1, ry);
- }
- })(Node142, Node142.getImage(), Node142compspts, Node142endCompspts, Node142startCompspts);
- var Node143;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//map_shanxi.jpg', PAGEROOTDIR + 'image//img//map_shanxi.jpg');
- Node143 = new ht.Node();
- Node143.setPosition(377*ratio.ratioX, 515*ratio.ratioY);
- Node143.setSize(755*ratioX, 708*ratioY);
- Node143.setImage('imgimage//img//map_shanxi.jpg');
- Node143.setRotation(0*Math.PI/180);
- Node143._zoomBy = 'Default';
- Node143._nodeType = 'image';
- Node143._disallowEvert = true;
- dataModel.add(Node143);
- })();
- var Node150_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_bot.png', PAGEROOTDIR + 'image//img//index_map_bot.png');
- Node150_0 = new ht.Node();
- Node150_0.setPosition(510*ratio.ratioX, 353*ratio.ratioY);
- Node150_0.setSize(117*ratioX, 26*ratioY);
- Node150_0.setImage('imgimage//img//index_map_bot.png');
- Node150_0.setRotation(0*Math.PI/180);
- Node150_0._zoomBy = 'Default';
- Node150_0._nodeType = 'image';
- Node150_0._disallowEvert = true;
- dataModel.add(Node150_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node150_1 = new ht.Node();
- var Node150_1textStart, Node150_1textWidth, Node150_1lineStart, Node150_1align = 'left', Node150_1fontSize = 13.3333*_ratio.ratioY,Node150_1width = 100*_ratio.ratioX, Node150_1height = 16*_ratio.ratioY;
- (function () {
- if (Node150_1align === 'left') {
- Node150_1textStart = Node150_1fontSize * 0.2 > 2 ? Node150_1fontSize * 0.2 - 4 : Node150_1fontSize * 0.2 - 9;
- Node150_1textWidth = Node150_1width;
- Node150_1lineStart = 1;
- } else if (Node150_1align === 'right') {
- Node150_1textStart = 0;
- Node150_1textWidth =Node150_1fontSize <= 8 ? Node150_1width + Node150_1fontSize * 0.2 + 6 : Node150_1width - Node150_1fontSize * 0.2;
- Node150_1lineStart = (Node150_1width - (ht.Default.getTextSize('阳高采凉山风场', ' '+ Node150_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node150_1align === 'center') {
- Node150_1textStart = -3;
- Node150_1textWidth = Node150_1width;
- Node150_1lineStart = Node150_1width - ht.Default.getTextSize('阳高采凉山风场', ' '+ Node150_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node150_1.setImage(GD.getTextJSON(Node150_1width, Node150_1height, true, false, false, ' '+ Node150_1fontSize + 'px "宋体"'))
- Node150_1.setPosition(508*ratio.ratioX, 353*ratio.ratioY);
- Node150_1.setWidth(Node150_1width);
- Node150_1.setHeight(Node150_1height);
- Node150_1._nodeType = 'text';
- Node150_1._disallowEvert = true;
- Node150_1.setRotation(0*Math.PI/180);
- Node150_1.a('node.width', Node150_1width);
- Node150_1.a('node.height', Node150_1height);
- Node150_1.a('node.rect', [0, 0, Node150_1width, Node150_1height]);
- Node150_1.a('node.bordercolor','rgba(255,255,192,1)');
- Node150_1.a('node.borderwidth', 0);
- Node150_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node150_1.a('node.gradient','');
- Node150_1.a('node.gradientcolor','');
- Node150_1.a('node.text','阳高采凉山风场');
- Node150_1.a('node.textalign','left');
- Node150_1.a('node.textvAlign','middle');
- Node150_1.a('node.textrect', [Node150_1textStart, 0, Node150_1textWidth, Node150_1height]);
- Node150_1.a('node.color','rgba(255,255,192,1)');
- Node150_1.a('node.font',' '+ Node150_1fontSize + 'px "宋体"');
- Node150_1.a('node.textvisible',true);
- Node150_1.a('node.linefeed',false);
- if (false) {
- Node150_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node150_1.a('node.text') || '阳高采凉山风场';
- var color=Node150_1.a('node.color') || 'rgba(255,255,192,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node150_1width,Node150_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node150_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node150_1.a('node.underlinepoints',[Node150_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node150_1fontSize + 2 , ht.Default.getTextSize('阳高采凉山风场', ' '+ Node150_1fontSize + 'px "宋体"').width + 6, (Node150_1height - Node150_1fontSize) * 0.5*_ratio.ratioY + Node150_1fontSize + 2 ]);
- Node150_1.a('node.underlinevisible',false);
- Node150_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node150_1);
- zoomNodeList.push({
- node: Node150_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node151_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_bot.png', PAGEROOTDIR + 'image//img//index_map_bot.png');
- Node151_0 = new ht.Node();
- Node151_0.setPosition(413*ratio.ratioX, 443*ratio.ratioY);
- Node151_0.setSize(117*ratioX, 26*ratioY);
- Node151_0.setImage('imgimage//img//index_map_bot.png');
- Node151_0.setRotation(0*Math.PI/180);
- Node151_0._zoomBy = 'Default';
- Node151_0._nodeType = 'image';
- Node151_0._disallowEvert = true;
- dataModel.add(Node151_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node151_1 = new ht.Node();
- var Node151_1textStart, Node151_1textWidth, Node151_1lineStart, Node151_1align = 'left', Node151_1fontSize = 13.3333*_ratio.ratioY,Node151_1width = 86*_ratio.ratioX, Node151_1height = 16*_ratio.ratioY;
- (function () {
- if (Node151_1align === 'left') {
- Node151_1textStart = Node151_1fontSize * 0.2 > 2 ? Node151_1fontSize * 0.2 - 4 : Node151_1fontSize * 0.2 - 9;
- Node151_1textWidth = Node151_1width;
- Node151_1lineStart = 1;
- } else if (Node151_1align === 'right') {
- Node151_1textStart = 0;
- Node151_1textWidth =Node151_1fontSize <= 8 ? Node151_1width + Node151_1fontSize * 0.2 + 6 : Node151_1width - Node151_1fontSize * 0.2;
- Node151_1lineStart = (Node151_1width - (ht.Default.getTextSize('浑源峰岳风场', ' '+ Node151_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node151_1align === 'center') {
- Node151_1textStart = -3;
- Node151_1textWidth = Node151_1width;
- Node151_1lineStart = Node151_1width - ht.Default.getTextSize('浑源峰岳风场', ' '+ Node151_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node151_1.setImage(GD.getTextJSON(Node151_1width, Node151_1height, true, false, false, ' '+ Node151_1fontSize + 'px "宋体"'))
- Node151_1.setPosition(412*ratio.ratioX, 443*ratio.ratioY);
- Node151_1.setWidth(Node151_1width);
- Node151_1.setHeight(Node151_1height);
- Node151_1._nodeType = 'text';
- Node151_1._disallowEvert = true;
- Node151_1.setRotation(0*Math.PI/180);
- Node151_1.a('node.width', Node151_1width);
- Node151_1.a('node.height', Node151_1height);
- Node151_1.a('node.rect', [0, 0, Node151_1width, Node151_1height]);
- Node151_1.a('node.bordercolor','rgba(255,255,192,1)');
- Node151_1.a('node.borderwidth', 0);
- Node151_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node151_1.a('node.gradient','');
- Node151_1.a('node.gradientcolor','');
- Node151_1.a('node.text','浑源峰岳风场');
- Node151_1.a('node.textalign','left');
- Node151_1.a('node.textvAlign','middle');
- Node151_1.a('node.textrect', [Node151_1textStart, 0, Node151_1textWidth, Node151_1height]);
- Node151_1.a('node.color','rgba(255,255,192,1)');
- Node151_1.a('node.font',' '+ Node151_1fontSize + 'px "宋体"');
- Node151_1.a('node.textvisible',true);
- Node151_1.a('node.linefeed',false);
- if (false) {
- Node151_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node151_1.a('node.text') || '浑源峰岳风场';
- var color=Node151_1.a('node.color') || 'rgba(255,255,192,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node151_1width,Node151_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node151_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node151_1.a('node.underlinepoints',[Node151_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node151_1fontSize + 2 , ht.Default.getTextSize('浑源峰岳风场', ' '+ Node151_1fontSize + 'px "宋体"').width + 6, (Node151_1height - Node151_1fontSize) * 0.5*_ratio.ratioY + Node151_1fontSize + 2 ]);
- Node151_1.a('node.underlinevisible',false);
- Node151_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node151_1);
- zoomNodeList.push({
- node: Node151_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node152_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_bot.png', PAGEROOTDIR + 'image//img//index_map_bot.png');
- Node152_0 = new ht.Node();
- Node152_0.setPosition(306*ratio.ratioX, 413*ratio.ratioY);
- Node152_0.setSize(117*ratioX, 26*ratioY);
- Node152_0.setImage('imgimage//img//index_map_bot.png');
- Node152_0.setRotation(0*Math.PI/180);
- Node152_0._zoomBy = 'Default';
- Node152_0._nodeType = 'image';
- Node152_0._disallowEvert = true;
- dataModel.add(Node152_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node152_1 = new ht.Node();
- var Node152_1textStart, Node152_1textWidth, Node152_1lineStart, Node152_1align = 'left', Node152_1fontSize = 13.3333*_ratio.ratioY,Node152_1width = 100*_ratio.ratioX, Node152_1height = 16*_ratio.ratioY;
- (function () {
- if (Node152_1align === 'left') {
- Node152_1textStart = Node152_1fontSize * 0.2 > 2 ? Node152_1fontSize * 0.2 - 4 : Node152_1fontSize * 0.2 - 9;
- Node152_1textWidth = Node152_1width;
- Node152_1lineStart = 1;
- } else if (Node152_1align === 'right') {
- Node152_1textStart = 0;
- Node152_1textWidth =Node152_1fontSize <= 8 ? Node152_1width + Node152_1fontSize * 0.2 + 6 : Node152_1width - Node152_1fontSize * 0.2;
- Node152_1lineStart = (Node152_1width - (ht.Default.getTextSize('右玉高家堡风场', ' '+ Node152_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node152_1align === 'center') {
- Node152_1textStart = -3;
- Node152_1textWidth = Node152_1width;
- Node152_1lineStart = Node152_1width - ht.Default.getTextSize('右玉高家堡风场', ' '+ Node152_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node152_1.setImage(GD.getTextJSON(Node152_1width, Node152_1height, true, false, false, ' '+ Node152_1fontSize + 'px "宋体"'))
- Node152_1.setPosition(303*ratio.ratioX, 414*ratio.ratioY);
- Node152_1.setWidth(Node152_1width);
- Node152_1.setHeight(Node152_1height);
- Node152_1._nodeType = 'text';
- Node152_1._disallowEvert = true;
- Node152_1.setRotation(0*Math.PI/180);
- Node152_1.a('node.width', Node152_1width);
- Node152_1.a('node.height', Node152_1height);
- Node152_1.a('node.rect', [0, 0, Node152_1width, Node152_1height]);
- Node152_1.a('node.bordercolor','rgba(255,255,192,1)');
- Node152_1.a('node.borderwidth', 0);
- Node152_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node152_1.a('node.gradient','');
- Node152_1.a('node.gradientcolor','');
- Node152_1.a('node.text','右玉高家堡风场');
- Node152_1.a('node.textalign','left');
- Node152_1.a('node.textvAlign','middle');
- Node152_1.a('node.textrect', [Node152_1textStart, 0, Node152_1textWidth, Node152_1height]);
- Node152_1.a('node.color','rgba(255,255,192,1)');
- Node152_1.a('node.font',' '+ Node152_1fontSize + 'px "宋体"');
- Node152_1.a('node.textvisible',true);
- Node152_1.a('node.linefeed',false);
- if (false) {
- Node152_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node152_1.a('node.text') || '右玉高家堡风场';
- var color=Node152_1.a('node.color') || 'rgba(255,255,192,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node152_1width,Node152_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node152_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node152_1.a('node.underlinepoints',[Node152_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node152_1fontSize + 2 , ht.Default.getTextSize('右玉高家堡风场', ' '+ Node152_1fontSize + 'px "宋体"').width + 6, (Node152_1height - Node152_1fontSize) * 0.5*_ratio.ratioY + Node152_1fontSize + 2 ]);
- Node152_1.a('node.underlinevisible',false);
- Node152_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node152_1);
- zoomNodeList.push({
- node: Node152_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node153_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_bot.png', PAGEROOTDIR + 'image//img//index_map_bot.png');
- Node153_0 = new ht.Node();
- Node153_0.setPosition(536*ratio.ratioX, 423*ratio.ratioY);
- Node153_0.setSize(117*ratioX, 26*ratioY);
- Node153_0.setImage('imgimage//img//index_map_bot.png');
- Node153_0.setRotation(0*Math.PI/180);
- Node153_0._zoomBy = 'Default';
- Node153_0._nodeType = 'image';
- Node153_0._disallowEvert = true;
- dataModel.add(Node153_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node153_1 = new ht.Node();
- var Node153_1textStart, Node153_1textWidth, Node153_1lineStart, Node153_1align = 'left', Node153_1fontSize = 13.3333*_ratio.ratioY,Node153_1width = 86*_ratio.ratioX, Node153_1height = 16*_ratio.ratioY;
- (function () {
- if (Node153_1align === 'left') {
- Node153_1textStart = Node153_1fontSize * 0.2 > 2 ? Node153_1fontSize * 0.2 - 4 : Node153_1fontSize * 0.2 - 9;
- Node153_1textWidth = Node153_1width;
- Node153_1lineStart = 1;
- } else if (Node153_1align === 'right') {
- Node153_1textStart = 0;
- Node153_1textWidth =Node153_1fontSize <= 8 ? Node153_1width + Node153_1fontSize * 0.2 + 6 : Node153_1width - Node153_1fontSize * 0.2;
- Node153_1lineStart = (Node153_1width - (ht.Default.getTextSize('广灵劲风风场', ' '+ Node153_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node153_1align === 'center') {
- Node153_1textStart = -3;
- Node153_1textWidth = Node153_1width;
- Node153_1lineStart = Node153_1width - ht.Default.getTextSize('广灵劲风风场', ' '+ Node153_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node153_1.setImage(GD.getTextJSON(Node153_1width, Node153_1height, true, false, false, ' '+ Node153_1fontSize + 'px "宋体"'))
- Node153_1.setPosition(537*ratio.ratioX, 424*ratio.ratioY);
- Node153_1.setWidth(Node153_1width);
- Node153_1.setHeight(Node153_1height);
- Node153_1._nodeType = 'text';
- Node153_1._disallowEvert = true;
- Node153_1.setRotation(0*Math.PI/180);
- Node153_1.a('node.width', Node153_1width);
- Node153_1.a('node.height', Node153_1height);
- Node153_1.a('node.rect', [0, 0, Node153_1width, Node153_1height]);
- Node153_1.a('node.bordercolor','rgba(255,255,192,1)');
- Node153_1.a('node.borderwidth', 0);
- Node153_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node153_1.a('node.gradient','');
- Node153_1.a('node.gradientcolor','');
- Node153_1.a('node.text','广灵劲风风场');
- Node153_1.a('node.textalign','left');
- Node153_1.a('node.textvAlign','middle');
- Node153_1.a('node.textrect', [Node153_1textStart, 0, Node153_1textWidth, Node153_1height]);
- Node153_1.a('node.color','rgba(255,255,192,1)');
- Node153_1.a('node.font',' '+ Node153_1fontSize + 'px "宋体"');
- Node153_1.a('node.textvisible',true);
- Node153_1.a('node.linefeed',false);
- if (false) {
- Node153_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node153_1.a('node.text') || '广灵劲风风场';
- var color=Node153_1.a('node.color') || 'rgba(255,255,192,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node153_1width,Node153_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node153_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node153_1.a('node.underlinepoints',[Node153_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node153_1fontSize + 2 , ht.Default.getTextSize('广灵劲风风场', ' '+ Node153_1fontSize + 'px "宋体"').width + 6, (Node153_1height - Node153_1fontSize) * 0.5*_ratio.ratioY + Node153_1fontSize + 2 ]);
- Node153_1.a('node.underlinevisible',false);
- Node153_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node153_1);
- zoomNodeList.push({
- node: Node153_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node154_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_bot.png', PAGEROOTDIR + 'image//img//index_map_bot.png');
- Node154_0 = new ht.Node();
- Node154_0.setPosition(316*ratio.ratioX, 513*ratio.ratioY);
- Node154_0.setSize(117*ratioX, 26*ratioY);
- Node154_0.setImage('imgimage//img//index_map_bot.png');
- Node154_0.setRotation(0*Math.PI/180);
- Node154_0._zoomBy = 'Default';
- Node154_0._nodeType = 'image';
- Node154_0._disallowEvert = true;
- dataModel.add(Node154_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node154_1 = new ht.Node();
- var Node154_1textStart, Node154_1textWidth, Node154_1lineStart, Node154_1align = 'left', Node154_1fontSize = 13.3333*_ratio.ratioY,Node154_1width = 100*_ratio.ratioX, Node154_1height = 16*_ratio.ratioY;
- (function () {
- if (Node154_1align === 'left') {
- Node154_1textStart = Node154_1fontSize * 0.2 > 2 ? Node154_1fontSize * 0.2 - 4 : Node154_1fontSize * 0.2 - 9;
- Node154_1textWidth = Node154_1width;
- Node154_1lineStart = 1;
- } else if (Node154_1align === 'right') {
- Node154_1textStart = 0;
- Node154_1textWidth =Node154_1fontSize <= 8 ? Node154_1width + Node154_1fontSize * 0.2 + 6 : Node154_1width - Node154_1fontSize * 0.2;
- Node154_1lineStart = (Node154_1width - (ht.Default.getTextSize('平鲁虎头山风场', ' '+ Node154_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node154_1align === 'center') {
- Node154_1textStart = -3;
- Node154_1textWidth = Node154_1width;
- Node154_1lineStart = Node154_1width - ht.Default.getTextSize('平鲁虎头山风场', ' '+ Node154_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node154_1.setImage(GD.getTextJSON(Node154_1width, Node154_1height, true, false, false, ' '+ Node154_1fontSize + 'px "宋体"'))
- Node154_1.setPosition(315*ratio.ratioX, 513*ratio.ratioY);
- Node154_1.setWidth(Node154_1width);
- Node154_1.setHeight(Node154_1height);
- Node154_1._nodeType = 'text';
- Node154_1._disallowEvert = true;
- Node154_1.setRotation(0*Math.PI/180);
- Node154_1.a('node.width', Node154_1width);
- Node154_1.a('node.height', Node154_1height);
- Node154_1.a('node.rect', [0, 0, Node154_1width, Node154_1height]);
- Node154_1.a('node.bordercolor','rgba(255,255,192,1)');
- Node154_1.a('node.borderwidth', 0);
- Node154_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node154_1.a('node.gradient','');
- Node154_1.a('node.gradientcolor','');
- Node154_1.a('node.text','平鲁虎头山风场');
- Node154_1.a('node.textalign','left');
- Node154_1.a('node.textvAlign','middle');
- Node154_1.a('node.textrect', [Node154_1textStart, 0, Node154_1textWidth, Node154_1height]);
- Node154_1.a('node.color','rgba(255,255,192,1)');
- Node154_1.a('node.font',' '+ Node154_1fontSize + 'px "宋体"');
- Node154_1.a('node.textvisible',true);
- Node154_1.a('node.linefeed',false);
- if (false) {
- Node154_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node154_1.a('node.text') || '平鲁虎头山风场';
- var color=Node154_1.a('node.color') || 'rgba(255,255,192,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node154_1width,Node154_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node154_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node154_1.a('node.underlinepoints',[Node154_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node154_1fontSize + 2 , ht.Default.getTextSize('平鲁虎头山风场', ' '+ Node154_1fontSize + 'px "宋体"').width + 6, (Node154_1height - Node154_1fontSize) * 0.5*_ratio.ratioY + Node154_1fontSize + 2 ]);
- Node154_1.a('node.underlinevisible',false);
- Node154_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node154_1);
- zoomNodeList.push({
- node: Node154_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node155_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_bot.png', PAGEROOTDIR + 'image//img//index_map_bot.png');
- Node155_0 = new ht.Node();
- Node155_0.setPosition(246*ratio.ratioX, 623*ratio.ratioY);
- Node155_0.setSize(117*ratioX, 26*ratioY);
- Node155_0.setImage('imgimage//img//index_map_bot.png');
- Node155_0.setRotation(0*Math.PI/180);
- Node155_0._zoomBy = 'Default';
- Node155_0._nodeType = 'image';
- Node155_0._disallowEvert = true;
- dataModel.add(Node155_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node155_1 = new ht.Node();
- var Node155_1textStart, Node155_1textWidth, Node155_1lineStart, Node155_1align = 'left', Node155_1fontSize = 13.3333*_ratio.ratioY,Node155_1width = 100*_ratio.ratioX, Node155_1height = 16*_ratio.ratioY;
- (function () {
- if (Node155_1align === 'left') {
- Node155_1textStart = Node155_1fontSize * 0.2 > 2 ? Node155_1fontSize * 0.2 - 4 : Node155_1fontSize * 0.2 - 9;
- Node155_1textWidth = Node155_1width;
- Node155_1lineStart = 1;
- } else if (Node155_1align === 'right') {
- Node155_1textStart = 0;
- Node155_1textWidth =Node155_1fontSize <= 8 ? Node155_1width + Node155_1fontSize * 0.2 + 6 : Node155_1width - Node155_1fontSize * 0.2;
- Node155_1lineStart = (Node155_1width - (ht.Default.getTextSize('吕梁宝塔山风场', ' '+ Node155_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node155_1align === 'center') {
- Node155_1textStart = -3;
- Node155_1textWidth = Node155_1width;
- Node155_1lineStart = Node155_1width - ht.Default.getTextSize('吕梁宝塔山风场', ' '+ Node155_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node155_1.setImage(GD.getTextJSON(Node155_1width, Node155_1height, true, false, false, ' '+ Node155_1fontSize + 'px "宋体"'))
- Node155_1.setPosition(245*ratio.ratioX, 624*ratio.ratioY);
- Node155_1.setWidth(Node155_1width);
- Node155_1.setHeight(Node155_1height);
- Node155_1._nodeType = 'text';
- Node155_1._disallowEvert = true;
- Node155_1.setRotation(0*Math.PI/180);
- Node155_1.a('node.width', Node155_1width);
- Node155_1.a('node.height', Node155_1height);
- Node155_1.a('node.rect', [0, 0, Node155_1width, Node155_1height]);
- Node155_1.a('node.bordercolor','rgba(255,255,192,1)');
- Node155_1.a('node.borderwidth', 0);
- Node155_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node155_1.a('node.gradient','');
- Node155_1.a('node.gradientcolor','');
- Node155_1.a('node.text','吕梁宝塔山风场');
- Node155_1.a('node.textalign','left');
- Node155_1.a('node.textvAlign','middle');
- Node155_1.a('node.textrect', [Node155_1textStart, 0, Node155_1textWidth, Node155_1height]);
- Node155_1.a('node.color','rgba(255,255,192,1)');
- Node155_1.a('node.font',' '+ Node155_1fontSize + 'px "宋体"');
- Node155_1.a('node.textvisible',true);
- Node155_1.a('node.linefeed',false);
- if (false) {
- Node155_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node155_1.a('node.text') || '吕梁宝塔山风场';
- var color=Node155_1.a('node.color') || 'rgba(255,255,192,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node155_1width,Node155_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node155_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node155_1.a('node.underlinepoints',[Node155_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node155_1fontSize + 2 , ht.Default.getTextSize('吕梁宝塔山风场', ' '+ Node155_1fontSize + 'px "宋体"').width + 6, (Node155_1height - Node155_1fontSize) * 0.5*_ratio.ratioY + Node155_1fontSize + 2 ]);
- Node155_1.a('node.underlinevisible',false);
- Node155_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node155_1);
- zoomNodeList.push({
- node: Node155_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0, ratio);
- var Node156 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 188*ratio.ratioX, 19*ratio.ratioY, 0, {text:'右玉高家堡',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node157 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 188*ratio.ratioX, 19*ratio.ratioY, 0, {text:'右玉高家堡',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node158 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 308*ratio.ratioX, 19*ratio.ratioY, 0, {text:'平鲁虎头山',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node159 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 308*ratio.ratioX, 19*ratio.ratioY, 0, {text:'平鲁虎头山',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node160 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 428*ratio.ratioX, 19*ratio.ratioY, 0, {text:'太旗卧牛山',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node161 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 428*ratio.ratioX, 19*ratio.ratioY, 0, {text:'太旗卧牛山',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node162 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 548*ratio.ratioX, 19*ratio.ratioY, 0, {text:'广灵劲风',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node163 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 548*ratio.ratioX, 19*ratio.ratioY, 0, {text:'广灵劲风',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node164 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 668*ratio.ratioX, 19*ratio.ratioY, 0, {text:'浑源峰岳',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node165 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 668*ratio.ratioX, 19*ratio.ratioY, 0, {text:'浑源峰岳',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node166 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 788*ratio.ratioX, 19*ratio.ratioY, 0, {text:'吕梁宝塔山',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node167 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 788*ratio.ratioX, 19*ratio.ratioY, 0, {text:'吕梁宝塔山',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node168 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 918*ratio.ratioX, 19*ratio.ratioY, 0, {text:'阳高采凉山',visible:false,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(255,255,255,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_02.png'});_ratio = GD.getRatioWithRotation(0, ratio);
- var Node169 = GD.createButton(100*_ratio.ratioX, 27*_ratio.ratioY, 918*ratio.ratioX, 19*ratio.ratioY, 0, {text:'阳高采凉山',visible:true,backColor:'rgba(211,211,211,1)',fontSize:13,fontFamily:'',fontColor:'rgba(0,0,0,1)',borderColor:'rgba(211,211,211,1)',shadowColor:'rgba(211,211,211,1)',hoverShadowColor:'rgba(255,255,255,1)',icon:'',bold:false,italic:false,textAlign:'center',backImage:'image//img//new_but2_01.png'});var Node170_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_sx_bot1.png', PAGEROOTDIR + 'image//img//index_map_sx_bot1.png');
- Node170_0 = new ht.Node();
- Node170_0.setPosition(528*ratio.ratioX, 236*ratio.ratioY);
- Node170_0.setSize(117*ratioX, 26*ratioY);
- Node170_0.setImage('imgimage//img//index_map_sx_bot1.png');
- Node170_0.setRotation(0*Math.PI/180);
- Node170_0._zoomBy = 'Default';
- Node170_0._nodeType = 'image';
- Node170_0._disallowEvert = true;
- dataModel.add(Node170_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node170_1 = new ht.Node();
- var Node170_1textStart, Node170_1textWidth, Node170_1lineStart, Node170_1align = 'left', Node170_1fontSize = 13.3333*_ratio.ratioY,Node170_1width = 100*_ratio.ratioX, Node170_1height = 16*_ratio.ratioY;
- (function () {
- if (Node170_1align === 'left') {
- Node170_1textStart = Node170_1fontSize * 0.2 > 2 ? Node170_1fontSize * 0.2 - 4 : Node170_1fontSize * 0.2 - 9;
- Node170_1textWidth = Node170_1width;
- Node170_1lineStart = 1;
- } else if (Node170_1align === 'right') {
- Node170_1textStart = 0;
- Node170_1textWidth =Node170_1fontSize <= 8 ? Node170_1width + Node170_1fontSize * 0.2 + 6 : Node170_1width - Node170_1fontSize * 0.2;
- Node170_1lineStart = (Node170_1width - (ht.Default.getTextSize('太旗卧牛山风场', ' '+ Node170_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node170_1align === 'center') {
- Node170_1textStart = -3;
- Node170_1textWidth = Node170_1width;
- Node170_1lineStart = Node170_1width - ht.Default.getTextSize('太旗卧牛山风场', ' '+ Node170_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node170_1.setImage(GD.getTextJSON(Node170_1width, Node170_1height, true, false, false, ' '+ Node170_1fontSize + 'px "宋体"'))
- Node170_1.setPosition(524*ratio.ratioX, 237*ratio.ratioY);
- Node170_1.setWidth(Node170_1width);
- Node170_1.setHeight(Node170_1height);
- Node170_1._nodeType = 'text';
- Node170_1._disallowEvert = true;
- Node170_1.setRotation(0*Math.PI/180);
- Node170_1.a('node.width', Node170_1width);
- Node170_1.a('node.height', Node170_1height);
- Node170_1.a('node.rect', [0, 0, Node170_1width, Node170_1height]);
- Node170_1.a('node.bordercolor','rgba(255,255,128,1)');
- Node170_1.a('node.borderwidth', 0);
- Node170_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node170_1.a('node.gradient','');
- Node170_1.a('node.gradientcolor','');
- Node170_1.a('node.text','太旗卧牛山风场');
- Node170_1.a('node.textalign','left');
- Node170_1.a('node.textvAlign','middle');
- Node170_1.a('node.textrect', [Node170_1textStart, 0, Node170_1textWidth, Node170_1height]);
- Node170_1.a('node.color','rgba(255,255,128,1)');
- Node170_1.a('node.font',' '+ Node170_1fontSize + 'px "宋体"');
- Node170_1.a('node.textvisible',true);
- Node170_1.a('node.linefeed',false);
- if (false) {
- Node170_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node170_1.a('node.text') || '太旗卧牛山风场';
- var color=Node170_1.a('node.color') || 'rgba(255,255,128,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node170_1width,Node170_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node170_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node170_1.a('node.underlinepoints',[Node170_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node170_1fontSize + 2 , ht.Default.getTextSize('太旗卧牛山风场', ' '+ Node170_1fontSize + 'px "宋体"').width + 6, (Node170_1height - Node170_1fontSize) * 0.5*_ratio.ratioY + Node170_1fontSize + 2 ]);
- Node170_1.a('node.underlinevisible',false);
- Node170_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node170_1);
- zoomNodeList.push({
- node: Node170_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); var Node171_0;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_map_sx_bot1.png', PAGEROOTDIR + 'image//img//index_map_sx_bot1.png');
- Node171_0 = new ht.Node();
- Node171_0.setPosition(528*ratio.ratioX, 236*ratio.ratioY);
- Node171_0.setSize(117*ratioX, 26*ratioY);
- Node171_0.setImage('imgimage//img//index_map_sx_bot1.png');
- Node171_0.setRotation(0*Math.PI/180);
- Node171_0._zoomBy = 'Default';
- Node171_0._nodeType = 'image';
- Node171_0._disallowEvert = true;
- dataModel.add(Node171_0);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node171_1 = new ht.Node();
- var Node171_1textStart, Node171_1textWidth, Node171_1lineStart, Node171_1align = 'left', Node171_1fontSize = 13.3333*_ratio.ratioY,Node171_1width = 100*_ratio.ratioX, Node171_1height = 16*_ratio.ratioY;
- (function () {
- if (Node171_1align === 'left') {
- Node171_1textStart = Node171_1fontSize * 0.2 > 2 ? Node171_1fontSize * 0.2 - 4 : Node171_1fontSize * 0.2 - 9;
- Node171_1textWidth = Node171_1width;
- Node171_1lineStart = 1;
- } else if (Node171_1align === 'right') {
- Node171_1textStart = 0;
- Node171_1textWidth =Node171_1fontSize <= 8 ? Node171_1width + Node171_1fontSize * 0.2 + 6 : Node171_1width - Node171_1fontSize * 0.2;
- Node171_1lineStart = (Node171_1width - (ht.Default.getTextSize('太旗卧牛山风场', ' '+ Node171_1fontSize + 'px "宋体"').width + 6)) * 0.5;
- } else if (Node171_1align === 'center') {
- Node171_1textStart = -3;
- Node171_1textWidth = Node171_1width;
- Node171_1lineStart = Node171_1width - ht.Default.getTextSize('太旗卧牛山风场', ' '+ Node171_1fontSize + 'px "宋体"').width - 11;
- }
- })();
- Node171_1.setImage(GD.getTextJSON(Node171_1width, Node171_1height, true, false, false, ' '+ Node171_1fontSize + 'px "宋体"'))
- Node171_1.setPosition(524*ratio.ratioX, 237*ratio.ratioY);
- Node171_1.setWidth(Node171_1width);
- Node171_1.setHeight(Node171_1height);
- Node171_1._nodeType = 'text';
- Node171_1._disallowEvert = true;
- Node171_1.setRotation(0*Math.PI/180);
- Node171_1.a('node.width', Node171_1width);
- Node171_1.a('node.height', Node171_1height);
- Node171_1.a('node.rect', [0, 0, Node171_1width, Node171_1height]);
- Node171_1.a('node.bordercolor','rgba(255,255,255,1)');
- Node171_1.a('node.borderwidth', 0);
- Node171_1.a('node.background','' || 'rgba(0,0,0,0)');
- Node171_1.a('node.gradient','');
- Node171_1.a('node.gradientcolor','');
- Node171_1.a('node.text','太旗卧牛山风场');
- Node171_1.a('node.textalign','left');
- Node171_1.a('node.textvAlign','middle');
- Node171_1.a('node.textrect', [Node171_1textStart, 0, Node171_1textWidth, Node171_1height]);
- Node171_1.a('node.color','rgba(255,255,255,1)');
- Node171_1.a('node.font',' '+ Node171_1fontSize + 'px "宋体"');
- Node171_1.a('node.textvisible',true);
- Node171_1.a('node.linefeed',false);
- if (false) {
- Node171_1.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node171_1.a('node.text') || '太旗卧牛山风场';
- var color=Node171_1.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node171_1width,Node171_1height,13.3333*_ratio.ratioY,"left",color,' '+ Node171_1fontSize + 'px "宋体"', 0,g);
- });
- }
- if (false) {
- Node171_1.a('node.underlinepoints',[Node171_1lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node171_1fontSize + 2 , ht.Default.getTextSize('太旗卧牛山风场', ' '+ Node171_1fontSize + 'px "宋体"').width + 6, (Node171_1height - Node171_1fontSize) * 0.5*_ratio.ratioY + Node171_1fontSize + 2 ]);
- Node171_1.a('node.underlinevisible',false);
- Node171_1.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node171_1);
- zoomNodeList.push({
- node: Node171_1,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node173 = new ht.lib['风场信息'](662*ratio.ratioX, 289*ratio.ratioY, 146*_ratio.ratioX, 141*_ratio.ratioY, 0*Math.PI/180, {fengjitaishu:'xx',zhuangjirongliang:'xx',pingjunfengsu:'xx',rifadianliang:'xx',yougonggonglv:'xx',}, function (){return {}}, 'Node173');
- _libModel.add("Node173", Node173);
- Node173.setRotation(0*Math.PI/180);
- ;
- ;
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node174 = new ht.lib['风场信息'](653*ratio.ratioX, 409*ratio.ratioY, 146*_ratio.ratioX, 141*_ratio.ratioY, 0*Math.PI/180, {fengjitaishu:'xx',zhuangjirongliang:'xx',pingjunfengsu:'xx',rifadianliang:'xx',yougonggonglv:'xx',}, function (){return {}}, 'Node174');
- _libModel.add("Node174", Node174);
- Node174.setRotation(0*Math.PI/180);
- ;
- ;
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node175 = new ht.lib['风场信息'](572*ratio.ratioX, 519*ratio.ratioY, 146*_ratio.ratioX, 141*_ratio.ratioY, 0*Math.PI/180, {fengjitaishu:'xx',zhuangjirongliang:'xx',pingjunfengsu:'xx',rifadianliang:'xx',yougonggonglv:'xx',}, function (){return {}}, 'Node175');
- _libModel.add("Node175", Node175);
- Node175.setRotation(0*Math.PI/180);
- ;
- ;
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node176 = new ht.lib['风场信息'](486*ratio.ratioX, 534*ratio.ratioY, 146*_ratio.ratioX, 141*_ratio.ratioY, 0*Math.PI/180, {fengjitaishu:'xx',zhuangjirongliang:'xx',pingjunfengsu:'xx',rifadianliang:'xx',yougonggonglv:'xx',}, function (){return {}}, 'Node176');
- _libModel.add("Node176", Node176);
- Node176.setRotation(0*Math.PI/180);
- ;
- ;
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node177 = new ht.lib['风场信息'](227*ratio.ratioX, 498*ratio.ratioY, 146*_ratio.ratioX, 141*_ratio.ratioY, 0*Math.PI/180, {fengjitaishu:'xx',zhuangjirongliang:'xx',pingjunfengsu:'xx',rifadianliang:'xx',yougonggonglv:'xx',}, function (){return {}}, 'Node177');
- _libModel.add("Node177", Node177);
- Node177.setRotation(0*Math.PI/180);
- ;
- ;
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node178 = new ht.lib['风场信息'](393*ratio.ratioX, 605*ratio.ratioY, 146*_ratio.ratioX, 141*_ratio.ratioY, 0*Math.PI/180, {fengjitaishu:'xx',zhuangjirongliang:'xx',pingjunfengsu:'xx',rifadianliang:'xx',yougonggonglv:'xx',}, function (){return {}}, 'Node178');
- _libModel.add("Node178", Node178);
- Node178.setRotation(0*Math.PI/180);
- ;
- ;
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node179 = new ht.lib['风场信息'](232*ratio.ratioX, 712*ratio.ratioY, 146*_ratio.ratioX, 141*_ratio.ratioY, 0*Math.PI/180, {fengjitaishu:'xx',zhuangjirongliang:'xx',pingjunfengsu:'xx',rifadianliang:'xx',yougonggonglv:'xx',}, function (){return {}}, 'Node179');
- _libModel.add("Node179", Node179);
- Node179.setRotation(0*Math.PI/180);
- ;
- ;
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_0type = 'rect';
- var Node180_0 = new ht.Node(),
- Node180_0BorderWidth = 1*2;
- if (Node180_0type === 'arc') {
- Node180_0BorderWidth *= 1;
- }
- Node180_0.setImage(GD.getRectJSON(1114*_ratio.ratioX, 208*_ratio.ratioY, Node180_0type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_0.setPosition(1341*ratio.ratioX, 777*ratio.ratioY);
- Node180_0.setSize(1114*_ratio.ratioX, 208*_ratio.ratioY);
- Node180_0.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_0.a('node.width', 1114*_ratio.ratioX);
- Node180_0.a('node.height', 208*_ratio.ratioY);
- Node180_0.a('node.type', Node180_0type);
- Node180_0.a('node.rect', [0, 0, 1114*_ratio.ratioX, 208*_ratio.ratioY]);
- Node180_0.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_0.a('node.gradientcolor', '');
- Node180_0.a('node.gradient', '');
- Node180_0.a('node.borderwidth', Node180_0BorderWidth);
- Node180_0.a('node.color', 'rgba(192,192,192,1)');
- Node180_0.a('node.fillrect', [0,0,0,0]);
- Node180_0.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_0.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_0.a('node.fillgradient', '');
- if (Node180_0type !== 'rect') {
- Node180_0.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_0.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_0.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_0type === 'arc') {
- Node180_0.a('node.arcOval', true);
- }
- Node180_0.setRotation(0*Math.PI/180);
- Node180_0.borderWidth = Node180_0BorderWidth;
- Node180_0.borderFillwidth = Node180_0BorderWidth;
- dataModel.add(Node180_0);
- Node180_0._nodename = 'Node180_0'
- Node180_0._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_0,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_0, Node180_0.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_1type = 'rect';
- var Node180_1 = new ht.Node(),
- Node180_1BorderWidth = 1*2;
- if (Node180_1type === 'arc') {
- Node180_1BorderWidth *= 1;
- }
- Node180_1.setImage(GD.getRectJSON(1114*_ratio.ratioX, 208*_ratio.ratioY, Node180_1type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_1.setPosition(1341*ratio.ratioX, 567*ratio.ratioY);
- Node180_1.setSize(1114*_ratio.ratioX, 208*_ratio.ratioY);
- Node180_1.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_1.a('node.width', 1114*_ratio.ratioX);
- Node180_1.a('node.height', 208*_ratio.ratioY);
- Node180_1.a('node.type', Node180_1type);
- Node180_1.a('node.rect', [0, 0, 1114*_ratio.ratioX, 208*_ratio.ratioY]);
- Node180_1.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_1.a('node.gradientcolor', '');
- Node180_1.a('node.gradient', '');
- Node180_1.a('node.borderwidth', Node180_1BorderWidth);
- Node180_1.a('node.color', 'rgba(192,192,192,1)');
- Node180_1.a('node.fillrect', [0,0,0,0]);
- Node180_1.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_1.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_1.a('node.fillgradient', '');
- if (Node180_1type !== 'rect') {
- Node180_1.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_1.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_1.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_1type === 'arc') {
- Node180_1.a('node.arcOval', true);
- }
- Node180_1.setRotation(0*Math.PI/180);
- Node180_1.borderWidth = Node180_1BorderWidth;
- Node180_1.borderFillwidth = Node180_1BorderWidth;
- dataModel.add(Node180_1);
- Node180_1._nodename = 'Node180_1'
- Node180_1._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_1,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_1, Node180_1.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_2type = 'rect';
- var Node180_2 = new ht.Node(),
- Node180_2BorderWidth = 1*2;
- if (Node180_2type === 'arc') {
- Node180_2BorderWidth *= 1;
- }
- Node180_2.setImage(GD.getRectJSON(510*_ratio.ratioX, 208*_ratio.ratioY, Node180_2type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_2.setPosition(1636*ratio.ratioX, 357*ratio.ratioY);
- Node180_2.setSize(510*_ratio.ratioX, 208*_ratio.ratioY);
- Node180_2.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_2.a('node.width', 510*_ratio.ratioX);
- Node180_2.a('node.height', 208*_ratio.ratioY);
- Node180_2.a('node.type', Node180_2type);
- Node180_2.a('node.rect', [0, 0, 510*_ratio.ratioX, 208*_ratio.ratioY]);
- Node180_2.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_2.a('node.gradientcolor', '');
- Node180_2.a('node.gradient', '');
- Node180_2.a('node.borderwidth', Node180_2BorderWidth);
- Node180_2.a('node.color', 'rgba(192,192,192,1)');
- Node180_2.a('node.fillrect', [0,0,0,0]);
- Node180_2.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_2.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_2.a('node.fillgradient', '');
- if (Node180_2type !== 'rect') {
- Node180_2.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_2.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_2.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_2type === 'arc') {
- Node180_2.a('node.arcOval', true);
- }
- Node180_2.setRotation(0*Math.PI/180);
- Node180_2.borderWidth = Node180_2BorderWidth;
- Node180_2.borderFillwidth = Node180_2BorderWidth;
- dataModel.add(Node180_2);
- Node180_2._nodename = 'Node180_2'
- Node180_2._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_2,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_2, Node180_2.getImage());option = {
- tooltip : {
- formatter: "{a} <br/>{c} {b}"
- },
- toolbox: {
- show:false,
- feature: {
- //restore: {},
- saveAsImage: {}
- }
- },
- series: [
- {
- radius: '100%',
- name: '',
- type: 'gauge',
- splitNumber:2,
- min: 0,
- max: 1250,
- startAngle:180,
- endAngle:0,
- axisTick:{
- length:5,
- lineStyle: {
- color:'rgba(255,255,255,1)'
- }
- },
- axisLabel: { // 坐标轴小标记
- textStyle: { // 属性lineStyle控制线条样式
- color: 'rgba(64,64,64,1)'
- },
- formatter: function (value, index) {
- return value.toFixed(0);
- }
- },
- axisLine: {
- lineStyle: {
- color: [[0.388888888888889, 'rgba(192,255,255,1)'],[1, 'rgba(192,192,192,1)']],
- width: 10
- }
- },
- splitLine:{
- length:10,
- lineStyle: {
- color: 'rgba(255,255,255,1)'
- }
- },
- pointer:{
- length:'80%',
- width:7
- },
- itemStyle: {
- normal: {
- opacity: 0
- }
- },
- detail: {formatter:'{value}',show:false},
- data: [{value: (getVarValue('demo.DEMO_AI009') ), name: ''}]
- }
- ]
- };
- _ratio = GD.getRatioWithRotation(0, ratio);
- var Node180_3 = new ht.HtmlNode();
- Node180_3.setPosition({'x':1742*ratio.ratioX,'y':422*ratio.ratioY});
- Node180_3.setWidth(270*_ratio.ratioX);
- Node180_3.setHeight(140*_ratio.ratioY);
- Node180_3.setScalable(false);
- Node180_3.setRotation(0);
- Node180_3.s({
- '2d.selectable': false,
- '2d.movable': false
- });
- chart = new ht.Chart(option, 270*_ratio.ratioX, 140*_ratio.ratioY);
- Node180_3.setHtml(chart);
- var Node180_3_chart = chart._chart;
- dataModel.add(Node180_3);option = {
- tooltip : {
- formatter: "{a} <br/>{c} {b}"
- },
- toolbox: {
- show:false,
- feature: {
- //restore: {},
- saveAsImage: {}
- }
- },
- series: [
- {
- radius: '100%',
- name: '',
- type: 'gauge',
- splitNumber:2,
- min: 0,
- max: 1250,
- startAngle:180,
- endAngle:0,
- axisTick:{
- length:5,
- lineStyle: {
- color:'rgba(255,255,255,1)'
- }
- },
- axisLabel: { // 坐标轴小标记
- textStyle: { // 属性lineStyle控制线条样式
- color: 'rgba(64,64,64,1)'
- },
- formatter: function (value, index) {
- return value.toFixed(0);
- }
- },
- axisLine: {
- lineStyle: {
- color: [[0.511111111111111, 'rgba(128,255,128,1)'],[1, 'rgba(192,192,192,1)']],
- width: 10
- }
- },
- splitLine:{
- length:10,
- lineStyle: {
- color: 'rgba(255,255,255,1)'
- }
- },
- pointer:{
- length:'80%',
- width:7
- },
- itemStyle: {
- normal: {
- opacity: 0
- }
- },
- detail: {formatter:'{value}',show:false},
- data: [{value: (getVarValue('demo.DEMO_AI009') ), name: ''}]
- }
- ]
- };
- _ratio = GD.getRatioWithRotation(0, ratio);
- var Node180_4 = new ht.HtmlNode();
- Node180_4.setPosition({'x':1519*ratio.ratioX,'y':424*ratio.ratioY});
- Node180_4.setWidth(270*_ratio.ratioX);
- Node180_4.setHeight(140*_ratio.ratioY);
- Node180_4.setScalable(false);
- Node180_4.setRotation(0);
- Node180_4.s({
- '2d.selectable': false,
- '2d.movable': false
- });
- chart = new ht.Chart(option, 270*_ratio.ratioX, 140*_ratio.ratioY);
- Node180_4.setHtml(chart);
- var Node180_4_chart = chart._chart;
- dataModel.add(Node180_4);_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_5type = 'rect';
- var Node180_5 = new ht.Node(),
- Node180_5BorderWidth = 1*2;
- if (Node180_5type === 'arc') {
- Node180_5BorderWidth *= 1;
- }
- Node180_5.setImage(GD.getRectJSON(1103*_ratio.ratioX, 78*_ratio.ratioY, Node180_5type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_5.setPosition(1334*ratio.ratioX, 211*ratio.ratioY);
- Node180_5.setSize(1103*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_5.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_5.a('node.width', 1103*_ratio.ratioX);
- Node180_5.a('node.height', 78*_ratio.ratioY);
- Node180_5.a('node.type', Node180_5type);
- Node180_5.a('node.rect', [0, 0, 1103*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_5.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_5.a('node.gradientcolor', '');
- Node180_5.a('node.gradient', '');
- Node180_5.a('node.borderwidth', Node180_5BorderWidth);
- Node180_5.a('node.color', 'rgba(192,192,192,1)');
- Node180_5.a('node.fillrect', [0,0,0,0]);
- Node180_5.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_5.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_5.a('node.fillgradient', '');
- if (Node180_5type !== 'rect') {
- Node180_5.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_5.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_5.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_5type === 'arc') {
- Node180_5.a('node.arcOval', true);
- }
- Node180_5.setRotation(0*Math.PI/180);
- Node180_5.borderWidth = Node180_5BorderWidth;
- Node180_5.borderFillwidth = Node180_5BorderWidth;
- dataModel.add(Node180_5);
- Node180_5._nodename = 'Node180_5'
- Node180_5._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_5,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_5, Node180_5.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_6type = 'rect';
- var Node180_6 = new ht.Node(),
- Node180_6BorderWidth = 1*2;
- if (Node180_6type === 'arc') {
- Node180_6BorderWidth *= 1;
- }
- Node180_6.setImage(GD.getRectJSON(570*_ratio.ratioX, 210*_ratio.ratioY, Node180_6type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_6.setPosition(1069*ratio.ratioX, 357*ratio.ratioY);
- Node180_6.setSize(570*_ratio.ratioX, 210*_ratio.ratioY);
- Node180_6.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_6.a('node.width', 570*_ratio.ratioX);
- Node180_6.a('node.height', 210*_ratio.ratioY);
- Node180_6.a('node.type', Node180_6type);
- Node180_6.a('node.rect', [0, 0, 570*_ratio.ratioX, 210*_ratio.ratioY]);
- Node180_6.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_6.a('node.gradientcolor', '');
- Node180_6.a('node.gradient', '');
- Node180_6.a('node.borderwidth', Node180_6BorderWidth);
- Node180_6.a('node.color', 'rgba(224,224,224,1)');
- Node180_6.a('node.fillrect', [0,0,0,0]);
- Node180_6.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_6.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_6.a('node.fillgradient', '');
- if (Node180_6type !== 'rect') {
- Node180_6.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_6.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_6.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_6type === 'arc') {
- Node180_6.a('node.arcOval', true);
- }
- Node180_6.setRotation(0*Math.PI/180);
- Node180_6.borderWidth = Node180_6BorderWidth;
- Node180_6.borderFillwidth = Node180_6BorderWidth;
- dataModel.add(Node180_6);
- Node180_6._nodename = 'Node180_6'
- Node180_6._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_6,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_6, Node180_6.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_7type = 'rect';
- var Node180_7 = new ht.Node(),
- Node180_7BorderWidth = 0*2;
- if (Node180_7type === 'arc') {
- Node180_7BorderWidth *= 0;
- }
- Node180_7.setImage(GD.getRectJSON(26*_ratio.ratioX, 78*_ratio.ratioY, Node180_7type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_7.setPosition(770*ratio.ratioX, 214*ratio.ratioY);
- Node180_7.setSize(26*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_7.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_7.a('node.width', 26*_ratio.ratioX);
- Node180_7.a('node.height', 78*_ratio.ratioY);
- Node180_7.a('node.type', Node180_7type);
- Node180_7.a('node.rect', [0, 0, 26*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_7.a('node.background', 'rgba(73,73,73,1)');
- Node180_7.a('node.gradientcolor', 'rgba(73,73,73,1)');
- Node180_7.a('node.gradient', '');
- Node180_7.a('node.borderwidth', Node180_7BorderWidth);
- Node180_7.a('node.color', 'rgba(0,0,0,0)');
- Node180_7.a('node.fillrect', [0,0,0,0]);
- Node180_7.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_7.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_7.a('node.fillgradient', '');
- if (Node180_7type !== 'rect') {
- Node180_7.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_7.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_7.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_7type === 'arc') {
- Node180_7.a('node.arcOval', true);
- }
- Node180_7.setRotation(0*Math.PI/180);
- Node180_7.borderWidth = Node180_7BorderWidth;
- Node180_7.borderFillwidth = Node180_7BorderWidth;
- dataModel.add(Node180_7);
- Node180_7._nodename = 'Node180_7'
- Node180_7._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_7,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_7, Node180_7.getImage());var Node180_8;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_right_top_right_left_blue.png', PAGEROOTDIR + 'image//img//index_right_top_right_left_blue.png');
- Node180_8 = new ht.Node();
- Node180_8.setPosition(982*ratio.ratioX, 211*ratio.ratioY);
- Node180_8.setSize(52*ratioX, 78*ratioY);
- Node180_8.setImage('imgimage//img//index_right_top_right_left_blue.png');
- Node180_8.setRotation(0*Math.PI/180);
- Node180_8._zoomBy = 'Default';
- Node180_8._nodeType = 'image';
- Node180_8._disallowEvert = true;
- dataModel.add(Node180_8);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_9 = new ht.Node();
- var Node180_9textStart, Node180_9textWidth, Node180_9lineStart, Node180_9align = 'left', Node180_9fontSize = 13.3333*_ratio.ratioY,Node180_9width = 34*_ratio.ratioX, Node180_9height = 16*_ratio.ratioY;
- (function () {
- if (Node180_9align === 'left') {
- Node180_9textStart = Node180_9fontSize * 0.2 > 2 ? Node180_9fontSize * 0.2 - 4 : Node180_9fontSize * 0.2 - 9;
- Node180_9textWidth = Node180_9width;
- Node180_9lineStart = 1;
- } else if (Node180_9align === 'right') {
- Node180_9textStart = 0;
- Node180_9textWidth =Node180_9fontSize <= 8 ? Node180_9width + Node180_9fontSize * 0.2 + 6 : Node180_9width - Node180_9fontSize * 0.2;
- Node180_9lineStart = (Node180_9width - (ht.Default.getTextSize('投产', ' '+ Node180_9fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_9align === 'center') {
- Node180_9textStart = -3;
- Node180_9textWidth = Node180_9width;
- Node180_9lineStart = Node180_9width - ht.Default.getTextSize('投产', ' '+ Node180_9fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_9.setImage(GD.getTextJSON(Node180_9width, Node180_9height, true, false, false, ' '+ Node180_9fontSize + 'px "Arial"'))
- Node180_9.setPosition(804*ratio.ratioX, 184*ratio.ratioY);
- Node180_9.setWidth(Node180_9width);
- Node180_9.setHeight(Node180_9height);
- Node180_9._nodeType = 'text';
- Node180_9._disallowEvert = true;
- Node180_9.setRotation(0*Math.PI/180);
- Node180_9.a('node.width', Node180_9width);
- Node180_9.a('node.height', Node180_9height);
- Node180_9.a('node.rect', [0, 0, Node180_9width, Node180_9height]);
- Node180_9.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_9.a('node.borderwidth', 0);
- Node180_9.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_9.a('node.gradient','');
- Node180_9.a('node.gradientcolor','');
- Node180_9.a('node.text','投产');
- Node180_9.a('node.textalign','left');
- Node180_9.a('node.textvAlign','middle');
- Node180_9.a('node.textrect', [Node180_9textStart, 0, Node180_9textWidth, Node180_9height]);
- Node180_9.a('node.color','rgba(0,0,0,1)');
- Node180_9.a('node.font',' '+ Node180_9fontSize + 'px "Arial"');
- Node180_9.a('node.textvisible',true);
- Node180_9.a('node.linefeed',false);
- if (false) {
- Node180_9.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_9.a('node.text') || '投产';
- var color=Node180_9.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_9width,Node180_9height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_9fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_9.a('node.underlinepoints',[Node180_9lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_9fontSize + 2 , ht.Default.getTextSize('投产', ' '+ Node180_9fontSize + 'px "Arial"').width + 6, (Node180_9height - Node180_9fontSize) * 0.5*_ratio.ratioY + Node180_9fontSize + 2 ]);
- Node180_9.a('node.underlinevisible',false);
- Node180_9.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_9);
- zoomNodeList.push({
- node: Node180_9,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_10 = new ht.Node();
- var Node180_10textStart, Node180_10textWidth, Node180_10lineStart, Node180_10align = 'left', Node180_10fontSize = 13.3333*_ratio.ratioY,Node180_10width = 27*_ratio.ratioX, Node180_10height = 16*_ratio.ratioY;
- (function () {
- if (Node180_10align === 'left') {
- Node180_10textStart = Node180_10fontSize * 0.2 > 2 ? Node180_10fontSize * 0.2 - 4 : Node180_10fontSize * 0.2 - 9;
- Node180_10textWidth = Node180_10width;
- Node180_10lineStart = 1;
- } else if (Node180_10align === 'right') {
- Node180_10textStart = 0;
- Node180_10textWidth =Node180_10fontSize <= 8 ? Node180_10width + Node180_10fontSize * 0.2 + 6 : Node180_10width - Node180_10fontSize * 0.2;
- Node180_10lineStart = (Node180_10width - (ht.Default.getTextSize('463', ' '+ Node180_10fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_10align === 'center') {
- Node180_10textStart = -3;
- Node180_10textWidth = Node180_10width;
- Node180_10lineStart = Node180_10width - ht.Default.getTextSize('463', ' '+ Node180_10fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_10.setImage(GD.getTextJSON(Node180_10width, Node180_10height, true, false, false, ' '+ Node180_10fontSize + 'px "Arial"'))
- Node180_10.setPosition(865*ratio.ratioX, 204*ratio.ratioY);
- Node180_10.setWidth(Node180_10width);
- Node180_10.setHeight(Node180_10height);
- Node180_10._nodeType = 'text';
- Node180_10._disallowEvert = true;
- Node180_10.setRotation(0*Math.PI/180);
- Node180_10.a('node.width', Node180_10width);
- Node180_10.a('node.height', Node180_10height);
- Node180_10.a('node.rect', [0, 0, Node180_10width, Node180_10height]);
- Node180_10.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_10.a('node.borderwidth', 0);
- Node180_10.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_10.a('node.gradient','');
- Node180_10.a('node.gradientcolor','');
- Node180_10.a('node.text','463');
- Node180_10.a('node.textalign','left');
- Node180_10.a('node.textvAlign','middle');
- Node180_10.a('node.textrect', [Node180_10textStart, 0, Node180_10textWidth, Node180_10height]);
- Node180_10.a('node.color','rgba(0,0,0,1)');
- Node180_10.a('node.font',' '+ Node180_10fontSize + 'px "Arial"');
- Node180_10.a('node.textvisible',true);
- Node180_10.a('node.linefeed',false);
- if (false) {
- Node180_10.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_10.a('node.text') || '463';
- var color=Node180_10.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_10width,Node180_10height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_10fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_10.a('node.underlinepoints',[Node180_10lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_10fontSize + 2 , ht.Default.getTextSize('463', ' '+ Node180_10fontSize + 'px "Arial"').width + 6, (Node180_10height - Node180_10fontSize) * 0.5*_ratio.ratioY + Node180_10fontSize + 2 ]);
- Node180_10.a('node.underlinevisible',false);
- Node180_10.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_10);
- zoomNodeList.push({
- node: Node180_10,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_11 = new ht.Node();
- var Node180_11textStart, Node180_11textWidth, Node180_11lineStart, Node180_11align = 'left', Node180_11fontSize = 13.3333*_ratio.ratioY,Node180_11width = 19*_ratio.ratioX, Node180_11height = 16*_ratio.ratioY;
- (function () {
- if (Node180_11align === 'left') {
- Node180_11textStart = Node180_11fontSize * 0.2 > 2 ? Node180_11fontSize * 0.2 - 4 : Node180_11fontSize * 0.2 - 9;
- Node180_11textWidth = Node180_11width;
- Node180_11lineStart = 1;
- } else if (Node180_11align === 'right') {
- Node180_11textStart = 0;
- Node180_11textWidth =Node180_11fontSize <= 8 ? Node180_11width + Node180_11fontSize * 0.2 + 6 : Node180_11width - Node180_11fontSize * 0.2;
- Node180_11lineStart = (Node180_11width - (ht.Default.getTextSize('台', ' '+ Node180_11fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_11align === 'center') {
- Node180_11textStart = -3;
- Node180_11textWidth = Node180_11width;
- Node180_11lineStart = Node180_11width - ht.Default.getTextSize('台', ' '+ Node180_11fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_11.setImage(GD.getTextJSON(Node180_11width, Node180_11height, true, false, false, ' '+ Node180_11fontSize + 'px "Arial"'))
- Node180_11.setPosition(928*ratio.ratioX, 230*ratio.ratioY);
- Node180_11.setWidth(Node180_11width);
- Node180_11.setHeight(Node180_11height);
- Node180_11._nodeType = 'text';
- Node180_11._disallowEvert = true;
- Node180_11.setRotation(0*Math.PI/180);
- Node180_11.a('node.width', Node180_11width);
- Node180_11.a('node.height', Node180_11height);
- Node180_11.a('node.rect', [0, 0, Node180_11width, Node180_11height]);
- Node180_11.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_11.a('node.borderwidth', 0);
- Node180_11.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_11.a('node.gradient','');
- Node180_11.a('node.gradientcolor','');
- Node180_11.a('node.text','台');
- Node180_11.a('node.textalign','left');
- Node180_11.a('node.textvAlign','middle');
- Node180_11.a('node.textrect', [Node180_11textStart, 0, Node180_11textWidth, Node180_11height]);
- Node180_11.a('node.color','rgba(0,0,0,1)');
- Node180_11.a('node.font',' '+ Node180_11fontSize + 'px "Arial"');
- Node180_11.a('node.textvisible',true);
- Node180_11.a('node.linefeed',false);
- if (false) {
- Node180_11.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_11.a('node.text') || '台';
- var color=Node180_11.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_11width,Node180_11height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_11fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_11.a('node.underlinepoints',[Node180_11lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_11fontSize + 2 , ht.Default.getTextSize('台', ' '+ Node180_11fontSize + 'px "Arial"').width + 6, (Node180_11height - Node180_11fontSize) * 0.5*_ratio.ratioY + Node180_11fontSize + 2 ]);
- Node180_11.a('node.underlinevisible',false);
- Node180_11.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_11);
- zoomNodeList.push({
- node: Node180_11,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_12type = 'rect';
- var Node180_12 = new ht.Node(),
- Node180_12BorderWidth = 1*2;
- if (Node180_12type === 'arc') {
- Node180_12BorderWidth *= 1;
- }
- Node180_12.setImage(GD.getRectJSON(105*_ratio.ratioX, 78*_ratio.ratioY, Node180_12type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_12.setPosition(1061*ratio.ratioX, 211*ratio.ratioY);
- Node180_12.setSize(105*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_12.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_12.a('node.width', 105*_ratio.ratioX);
- Node180_12.a('node.height', 78*_ratio.ratioY);
- Node180_12.a('node.type', Node180_12type);
- Node180_12.a('node.rect', [0, 0, 105*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_12.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_12.a('node.gradientcolor', '');
- Node180_12.a('node.gradient', '');
- Node180_12.a('node.borderwidth', Node180_12BorderWidth);
- Node180_12.a('node.color', 'rgba(192,192,192,1)');
- Node180_12.a('node.fillrect', [0,0,0,0]);
- Node180_12.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_12.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_12.a('node.fillgradient', '');
- if (Node180_12type !== 'rect') {
- Node180_12.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_12.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_12.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_12type === 'arc') {
- Node180_12.a('node.arcOval', true);
- }
- Node180_12.setRotation(0*Math.PI/180);
- Node180_12.borderWidth = Node180_12BorderWidth;
- Node180_12.borderFillwidth = Node180_12BorderWidth;
- dataModel.add(Node180_12);
- Node180_12._nodename = 'Node180_12'
- Node180_12._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_12,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_12, Node180_12.getImage());var Node180_13;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_right_top_right_left_green.jpg', PAGEROOTDIR + 'image//img//index_right_top_right_left_green.jpg');
- Node180_13 = new ht.Node();
- Node180_13.setPosition(1140*ratio.ratioX, 211*ratio.ratioY);
- Node180_13.setSize(52*ratioX, 78*ratioY);
- Node180_13.setImage('imgimage//img//index_right_top_right_left_green.jpg');
- Node180_13.setRotation(0*Math.PI/180);
- Node180_13._zoomBy = 'Default';
- Node180_13._nodeType = 'image';
- Node180_13._disallowEvert = true;
- dataModel.add(Node180_13);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_14 = new ht.Node();
- var Node180_14textStart, Node180_14textWidth, Node180_14lineStart, Node180_14align = 'left', Node180_14fontSize = 13.3333*_ratio.ratioY,Node180_14width = 34*_ratio.ratioX, Node180_14height = 16*_ratio.ratioY;
- (function () {
- if (Node180_14align === 'left') {
- Node180_14textStart = Node180_14fontSize * 0.2 > 2 ? Node180_14fontSize * 0.2 - 4 : Node180_14fontSize * 0.2 - 9;
- Node180_14textWidth = Node180_14width;
- Node180_14lineStart = 1;
- } else if (Node180_14align === 'right') {
- Node180_14textStart = 0;
- Node180_14textWidth =Node180_14fontSize <= 8 ? Node180_14width + Node180_14fontSize * 0.2 + 6 : Node180_14width - Node180_14fontSize * 0.2;
- Node180_14lineStart = (Node180_14width - (ht.Default.getTextSize('并网', ' '+ Node180_14fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_14align === 'center') {
- Node180_14textStart = -3;
- Node180_14textWidth = Node180_14width;
- Node180_14lineStart = Node180_14width - ht.Default.getTextSize('并网', ' '+ Node180_14fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_14.setImage(GD.getTextJSON(Node180_14width, Node180_14height, true, false, false, ' '+ Node180_14fontSize + 'px "Arial"'))
- Node180_14.setPosition(1032*ratio.ratioX, 184*ratio.ratioY);
- Node180_14.setWidth(Node180_14width);
- Node180_14.setHeight(Node180_14height);
- Node180_14._nodeType = 'text';
- Node180_14._disallowEvert = true;
- Node180_14.setRotation(0*Math.PI/180);
- Node180_14.a('node.width', Node180_14width);
- Node180_14.a('node.height', Node180_14height);
- Node180_14.a('node.rect', [0, 0, Node180_14width, Node180_14height]);
- Node180_14.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_14.a('node.borderwidth', 0);
- Node180_14.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_14.a('node.gradient','');
- Node180_14.a('node.gradientcolor','');
- Node180_14.a('node.text','并网');
- Node180_14.a('node.textalign','left');
- Node180_14.a('node.textvAlign','middle');
- Node180_14.a('node.textrect', [Node180_14textStart, 0, Node180_14textWidth, Node180_14height]);
- Node180_14.a('node.color','rgba(0,0,0,1)');
- Node180_14.a('node.font',' '+ Node180_14fontSize + 'px "Arial"');
- Node180_14.a('node.textvisible',true);
- Node180_14.a('node.linefeed',false);
- if (false) {
- Node180_14.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_14.a('node.text') || '并网';
- var color=Node180_14.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_14width,Node180_14height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_14fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_14.a('node.underlinepoints',[Node180_14lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_14fontSize + 2 , ht.Default.getTextSize('并网', ' '+ Node180_14fontSize + 'px "Arial"').width + 6, (Node180_14height - Node180_14fontSize) * 0.5*_ratio.ratioY + Node180_14fontSize + 2 ]);
- Node180_14.a('node.underlinevisible',false);
- Node180_14.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_14);
- zoomNodeList.push({
- node: Node180_14,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_15 = new ht.Node();
- var Node180_15textStart, Node180_15textWidth, Node180_15lineStart, Node180_15align = 'left', Node180_15fontSize = 13.3333*_ratio.ratioY,Node180_15width = 27*_ratio.ratioX, Node180_15height = 16*_ratio.ratioY;
- (function () {
- if (Node180_15align === 'left') {
- Node180_15textStart = Node180_15fontSize * 0.2 > 2 ? Node180_15fontSize * 0.2 - 4 : Node180_15fontSize * 0.2 - 9;
- Node180_15textWidth = Node180_15width;
- Node180_15lineStart = 1;
- } else if (Node180_15align === 'right') {
- Node180_15textStart = 0;
- Node180_15textWidth =Node180_15fontSize <= 8 ? Node180_15width + Node180_15fontSize * 0.2 + 6 : Node180_15width - Node180_15fontSize * 0.2;
- Node180_15lineStart = (Node180_15width - (ht.Default.getTextSize('463', ' '+ Node180_15fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_15align === 'center') {
- Node180_15textStart = -3;
- Node180_15textWidth = Node180_15width;
- Node180_15lineStart = Node180_15width - ht.Default.getTextSize('463', ' '+ Node180_15fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_15.setImage(GD.getTextJSON(Node180_15width, Node180_15height, true, false, false, ' '+ Node180_15fontSize + 'px "Arial"'))
- Node180_15.setPosition(1053*ratio.ratioX, 204*ratio.ratioY);
- Node180_15.setWidth(Node180_15width);
- Node180_15.setHeight(Node180_15height);
- Node180_15._nodeType = 'text';
- Node180_15._disallowEvert = true;
- Node180_15.setRotation(0*Math.PI/180);
- Node180_15.a('node.width', Node180_15width);
- Node180_15.a('node.height', Node180_15height);
- Node180_15.a('node.rect', [0, 0, Node180_15width, Node180_15height]);
- Node180_15.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_15.a('node.borderwidth', 0);
- Node180_15.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_15.a('node.gradient','');
- Node180_15.a('node.gradientcolor','');
- Node180_15.a('node.text','463');
- Node180_15.a('node.textalign','left');
- Node180_15.a('node.textvAlign','middle');
- Node180_15.a('node.textrect', [Node180_15textStart, 0, Node180_15textWidth, Node180_15height]);
- Node180_15.a('node.color','rgba(0,0,0,1)');
- Node180_15.a('node.font',' '+ Node180_15fontSize + 'px "Arial"');
- Node180_15.a('node.textvisible',true);
- Node180_15.a('node.linefeed',false);
- if (false) {
- Node180_15.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_15.a('node.text') || '463';
- var color=Node180_15.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_15width,Node180_15height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_15fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_15.a('node.underlinepoints',[Node180_15lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_15fontSize + 2 , ht.Default.getTextSize('463', ' '+ Node180_15fontSize + 'px "Arial"').width + 6, (Node180_15height - Node180_15fontSize) * 0.5*_ratio.ratioY + Node180_15fontSize + 2 ]);
- Node180_15.a('node.underlinevisible',false);
- Node180_15.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_15);
- zoomNodeList.push({
- node: Node180_15,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_16 = new ht.Node();
- var Node180_16textStart, Node180_16textWidth, Node180_16lineStart, Node180_16align = 'left', Node180_16fontSize = 13.3333*_ratio.ratioY,Node180_16width = 19*_ratio.ratioX, Node180_16height = 16*_ratio.ratioY;
- (function () {
- if (Node180_16align === 'left') {
- Node180_16textStart = Node180_16fontSize * 0.2 > 2 ? Node180_16fontSize * 0.2 - 4 : Node180_16fontSize * 0.2 - 9;
- Node180_16textWidth = Node180_16width;
- Node180_16lineStart = 1;
- } else if (Node180_16align === 'right') {
- Node180_16textStart = 0;
- Node180_16textWidth =Node180_16fontSize <= 8 ? Node180_16width + Node180_16fontSize * 0.2 + 6 : Node180_16width - Node180_16fontSize * 0.2;
- Node180_16lineStart = (Node180_16width - (ht.Default.getTextSize('台', ' '+ Node180_16fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_16align === 'center') {
- Node180_16textStart = -3;
- Node180_16textWidth = Node180_16width;
- Node180_16lineStart = Node180_16width - ht.Default.getTextSize('台', ' '+ Node180_16fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_16.setImage(GD.getTextJSON(Node180_16width, Node180_16height, true, false, false, ' '+ Node180_16fontSize + 'px "Arial"'))
- Node180_16.setPosition(1091*ratio.ratioX, 230*ratio.ratioY);
- Node180_16.setWidth(Node180_16width);
- Node180_16.setHeight(Node180_16height);
- Node180_16._nodeType = 'text';
- Node180_16._disallowEvert = true;
- Node180_16.setRotation(0*Math.PI/180);
- Node180_16.a('node.width', Node180_16width);
- Node180_16.a('node.height', Node180_16height);
- Node180_16.a('node.rect', [0, 0, Node180_16width, Node180_16height]);
- Node180_16.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_16.a('node.borderwidth', 0);
- Node180_16.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_16.a('node.gradient','');
- Node180_16.a('node.gradientcolor','');
- Node180_16.a('node.text','台');
- Node180_16.a('node.textalign','left');
- Node180_16.a('node.textvAlign','middle');
- Node180_16.a('node.textrect', [Node180_16textStart, 0, Node180_16textWidth, Node180_16height]);
- Node180_16.a('node.color','rgba(0,0,0,1)');
- Node180_16.a('node.font',' '+ Node180_16fontSize + 'px "Arial"');
- Node180_16.a('node.textvisible',true);
- Node180_16.a('node.linefeed',false);
- if (false) {
- Node180_16.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_16.a('node.text') || '台';
- var color=Node180_16.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_16width,Node180_16height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_16fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_16.a('node.underlinepoints',[Node180_16lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_16fontSize + 2 , ht.Default.getTextSize('台', ' '+ Node180_16fontSize + 'px "Arial"').width + 6, (Node180_16height - Node180_16fontSize) * 0.5*_ratio.ratioY + Node180_16fontSize + 2 ]);
- Node180_16.a('node.underlinevisible',false);
- Node180_16.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_16);
- zoomNodeList.push({
- node: Node180_16,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_17type = 'rect';
- var Node180_17 = new ht.Node(),
- Node180_17BorderWidth = 1*2;
- if (Node180_17type === 'arc') {
- Node180_17BorderWidth *= 1;
- }
- Node180_17.setImage(GD.getRectJSON(105*_ratio.ratioX, 78*_ratio.ratioY, Node180_17type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_17.setPosition(1218*ratio.ratioX, 211*ratio.ratioY);
- Node180_17.setSize(105*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_17.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_17.a('node.width', 105*_ratio.ratioX);
- Node180_17.a('node.height', 78*_ratio.ratioY);
- Node180_17.a('node.type', Node180_17type);
- Node180_17.a('node.rect', [0, 0, 105*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_17.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_17.a('node.gradientcolor', '');
- Node180_17.a('node.gradient', '');
- Node180_17.a('node.borderwidth', Node180_17BorderWidth);
- Node180_17.a('node.color', 'rgba(192,192,192,1)');
- Node180_17.a('node.fillrect', [0,0,0,0]);
- Node180_17.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_17.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_17.a('node.fillgradient', '');
- if (Node180_17type !== 'rect') {
- Node180_17.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_17.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_17.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_17type === 'arc') {
- Node180_17.a('node.arcOval', true);
- }
- Node180_17.setRotation(0*Math.PI/180);
- Node180_17.borderWidth = Node180_17BorderWidth;
- Node180_17.borderFillwidth = Node180_17BorderWidth;
- dataModel.add(Node180_17);
- Node180_17._nodename = 'Node180_17'
- Node180_17._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_17,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_17, Node180_17.getImage());var Node180_18;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_right_top_right_left_orange.jpg', PAGEROOTDIR + 'image//img//index_right_top_right_left_orange.jpg');
- Node180_18 = new ht.Node();
- Node180_18.setPosition(1297*ratio.ratioX, 211*ratio.ratioY);
- Node180_18.setSize(52*ratioX, 78*ratioY);
- Node180_18.setImage('imgimage//img//index_right_top_right_left_orange.jpg');
- Node180_18.setRotation(0*Math.PI/180);
- Node180_18._zoomBy = 'Default';
- Node180_18._nodeType = 'image';
- Node180_18._disallowEvert = true;
- dataModel.add(Node180_18);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_19 = new ht.Node();
- var Node180_19textStart, Node180_19textWidth, Node180_19lineStart, Node180_19align = 'left', Node180_19fontSize = 13.3333*_ratio.ratioY,Node180_19width = 34*_ratio.ratioX, Node180_19height = 16*_ratio.ratioY;
- (function () {
- if (Node180_19align === 'left') {
- Node180_19textStart = Node180_19fontSize * 0.2 > 2 ? Node180_19fontSize * 0.2 - 4 : Node180_19fontSize * 0.2 - 9;
- Node180_19textWidth = Node180_19width;
- Node180_19lineStart = 1;
- } else if (Node180_19align === 'right') {
- Node180_19textStart = 0;
- Node180_19textWidth =Node180_19fontSize <= 8 ? Node180_19width + Node180_19fontSize * 0.2 + 6 : Node180_19width - Node180_19fontSize * 0.2;
- Node180_19lineStart = (Node180_19width - (ht.Default.getTextSize('待机', ' '+ Node180_19fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_19align === 'center') {
- Node180_19textStart = -3;
- Node180_19textWidth = Node180_19width;
- Node180_19lineStart = Node180_19width - ht.Default.getTextSize('待机', ' '+ Node180_19fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_19.setImage(GD.getTextJSON(Node180_19width, Node180_19height, true, false, false, ' '+ Node180_19fontSize + 'px "Arial"'))
- Node180_19.setPosition(1189*ratio.ratioX, 184*ratio.ratioY);
- Node180_19.setWidth(Node180_19width);
- Node180_19.setHeight(Node180_19height);
- Node180_19._nodeType = 'text';
- Node180_19._disallowEvert = true;
- Node180_19.setRotation(0*Math.PI/180);
- Node180_19.a('node.width', Node180_19width);
- Node180_19.a('node.height', Node180_19height);
- Node180_19.a('node.rect', [0, 0, Node180_19width, Node180_19height]);
- Node180_19.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_19.a('node.borderwidth', 0);
- Node180_19.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_19.a('node.gradient','');
- Node180_19.a('node.gradientcolor','');
- Node180_19.a('node.text','待机');
- Node180_19.a('node.textalign','left');
- Node180_19.a('node.textvAlign','middle');
- Node180_19.a('node.textrect', [Node180_19textStart, 0, Node180_19textWidth, Node180_19height]);
- Node180_19.a('node.color','rgba(0,0,0,1)');
- Node180_19.a('node.font',' '+ Node180_19fontSize + 'px "Arial"');
- Node180_19.a('node.textvisible',true);
- Node180_19.a('node.linefeed',false);
- if (false) {
- Node180_19.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_19.a('node.text') || '待机';
- var color=Node180_19.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_19width,Node180_19height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_19fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_19.a('node.underlinepoints',[Node180_19lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_19fontSize + 2 , ht.Default.getTextSize('待机', ' '+ Node180_19fontSize + 'px "Arial"').width + 6, (Node180_19height - Node180_19fontSize) * 0.5*_ratio.ratioY + Node180_19fontSize + 2 ]);
- Node180_19.a('node.underlinevisible',false);
- Node180_19.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_19);
- zoomNodeList.push({
- node: Node180_19,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_20 = new ht.Node();
- var Node180_20textStart, Node180_20textWidth, Node180_20lineStart, Node180_20align = 'left', Node180_20fontSize = 13.3333*_ratio.ratioY,Node180_20width = 12*_ratio.ratioX, Node180_20height = 16*_ratio.ratioY;
- (function () {
- if (Node180_20align === 'left') {
- Node180_20textStart = Node180_20fontSize * 0.2 > 2 ? Node180_20fontSize * 0.2 - 4 : Node180_20fontSize * 0.2 - 9;
- Node180_20textWidth = Node180_20width;
- Node180_20lineStart = 1;
- } else if (Node180_20align === 'right') {
- Node180_20textStart = 0;
- Node180_20textWidth =Node180_20fontSize <= 8 ? Node180_20width + Node180_20fontSize * 0.2 + 6 : Node180_20width - Node180_20fontSize * 0.2;
- Node180_20lineStart = (Node180_20width - (ht.Default.getTextSize('0', ' '+ Node180_20fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_20align === 'center') {
- Node180_20textStart = -3;
- Node180_20textWidth = Node180_20width;
- Node180_20lineStart = Node180_20width - ht.Default.getTextSize('0', ' '+ Node180_20fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_20.setImage(GD.getTextJSON(Node180_20width, Node180_20height, true, false, false, ' '+ Node180_20fontSize + 'px "Arial"'))
- Node180_20.setPosition(1203*ratio.ratioX, 204*ratio.ratioY);
- Node180_20.setWidth(Node180_20width);
- Node180_20.setHeight(Node180_20height);
- Node180_20._nodeType = 'text';
- Node180_20._disallowEvert = true;
- Node180_20.setRotation(0*Math.PI/180);
- Node180_20.a('node.width', Node180_20width);
- Node180_20.a('node.height', Node180_20height);
- Node180_20.a('node.rect', [0, 0, Node180_20width, Node180_20height]);
- Node180_20.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_20.a('node.borderwidth', 0);
- Node180_20.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_20.a('node.gradient','');
- Node180_20.a('node.gradientcolor','');
- Node180_20.a('node.text','0');
- Node180_20.a('node.textalign','left');
- Node180_20.a('node.textvAlign','middle');
- Node180_20.a('node.textrect', [Node180_20textStart, 0, Node180_20textWidth, Node180_20height]);
- Node180_20.a('node.color','rgba(0,0,0,1)');
- Node180_20.a('node.font',' '+ Node180_20fontSize + 'px "Arial"');
- Node180_20.a('node.textvisible',true);
- Node180_20.a('node.linefeed',false);
- if (false) {
- Node180_20.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_20.a('node.text') || '0';
- var color=Node180_20.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_20width,Node180_20height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_20fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_20.a('node.underlinepoints',[Node180_20lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_20fontSize + 2 , ht.Default.getTextSize('0', ' '+ Node180_20fontSize + 'px "Arial"').width + 6, (Node180_20height - Node180_20fontSize) * 0.5*_ratio.ratioY + Node180_20fontSize + 2 ]);
- Node180_20.a('node.underlinevisible',false);
- Node180_20.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_20);
- zoomNodeList.push({
- node: Node180_20,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_21 = new ht.Node();
- var Node180_21textStart, Node180_21textWidth, Node180_21lineStart, Node180_21align = 'left', Node180_21fontSize = 13.3333*_ratio.ratioY,Node180_21width = 19*_ratio.ratioX, Node180_21height = 16*_ratio.ratioY;
- (function () {
- if (Node180_21align === 'left') {
- Node180_21textStart = Node180_21fontSize * 0.2 > 2 ? Node180_21fontSize * 0.2 - 4 : Node180_21fontSize * 0.2 - 9;
- Node180_21textWidth = Node180_21width;
- Node180_21lineStart = 1;
- } else if (Node180_21align === 'right') {
- Node180_21textStart = 0;
- Node180_21textWidth =Node180_21fontSize <= 8 ? Node180_21width + Node180_21fontSize * 0.2 + 6 : Node180_21width - Node180_21fontSize * 0.2;
- Node180_21lineStart = (Node180_21width - (ht.Default.getTextSize('台', ' '+ Node180_21fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_21align === 'center') {
- Node180_21textStart = -3;
- Node180_21textWidth = Node180_21width;
- Node180_21lineStart = Node180_21width - ht.Default.getTextSize('台', ' '+ Node180_21fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_21.setImage(GD.getTextJSON(Node180_21width, Node180_21height, true, false, false, ' '+ Node180_21fontSize + 'px "Arial"'))
- Node180_21.setPosition(1248*ratio.ratioX, 230*ratio.ratioY);
- Node180_21.setWidth(Node180_21width);
- Node180_21.setHeight(Node180_21height);
- Node180_21._nodeType = 'text';
- Node180_21._disallowEvert = true;
- Node180_21.setRotation(0*Math.PI/180);
- Node180_21.a('node.width', Node180_21width);
- Node180_21.a('node.height', Node180_21height);
- Node180_21.a('node.rect', [0, 0, Node180_21width, Node180_21height]);
- Node180_21.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_21.a('node.borderwidth', 0);
- Node180_21.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_21.a('node.gradient','');
- Node180_21.a('node.gradientcolor','');
- Node180_21.a('node.text','台');
- Node180_21.a('node.textalign','left');
- Node180_21.a('node.textvAlign','middle');
- Node180_21.a('node.textrect', [Node180_21textStart, 0, Node180_21textWidth, Node180_21height]);
- Node180_21.a('node.color','rgba(0,0,0,1)');
- Node180_21.a('node.font',' '+ Node180_21fontSize + 'px "Arial"');
- Node180_21.a('node.textvisible',true);
- Node180_21.a('node.linefeed',false);
- if (false) {
- Node180_21.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_21.a('node.text') || '台';
- var color=Node180_21.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_21width,Node180_21height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_21fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_21.a('node.underlinepoints',[Node180_21lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_21fontSize + 2 , ht.Default.getTextSize('台', ' '+ Node180_21fontSize + 'px "Arial"').width + 6, (Node180_21height - Node180_21fontSize) * 0.5*_ratio.ratioY + Node180_21fontSize + 2 ]);
- Node180_21.a('node.underlinevisible',false);
- Node180_21.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_21);
- zoomNodeList.push({
- node: Node180_21,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_22type = 'rect';
- var Node180_22 = new ht.Node(),
- Node180_22BorderWidth = 1*2;
- if (Node180_22type === 'arc') {
- Node180_22BorderWidth *= 1;
- }
- Node180_22.setImage(GD.getRectJSON(105*_ratio.ratioX, 78*_ratio.ratioY, Node180_22type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_22.setPosition(1375*ratio.ratioX, 211*ratio.ratioY);
- Node180_22.setSize(105*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_22.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_22.a('node.width', 105*_ratio.ratioX);
- Node180_22.a('node.height', 78*_ratio.ratioY);
- Node180_22.a('node.type', Node180_22type);
- Node180_22.a('node.rect', [0, 0, 105*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_22.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_22.a('node.gradientcolor', '');
- Node180_22.a('node.gradient', '');
- Node180_22.a('node.borderwidth', Node180_22BorderWidth);
- Node180_22.a('node.color', 'rgba(192,192,192,1)');
- Node180_22.a('node.fillrect', [0,0,0,0]);
- Node180_22.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_22.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_22.a('node.fillgradient', '');
- if (Node180_22type !== 'rect') {
- Node180_22.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_22.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_22.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_22type === 'arc') {
- Node180_22.a('node.arcOval', true);
- }
- Node180_22.setRotation(0*Math.PI/180);
- Node180_22.borderWidth = Node180_22BorderWidth;
- Node180_22.borderFillwidth = Node180_22BorderWidth;
- dataModel.add(Node180_22);
- Node180_22._nodename = 'Node180_22'
- Node180_22._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_22,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_22, Node180_22.getImage());var Node180_23;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_right_top_right_left_red.jpg', PAGEROOTDIR + 'image//img//index_right_top_right_left_red.jpg');
- Node180_23 = new ht.Node();
- Node180_23.setPosition(1454*ratio.ratioX, 211*ratio.ratioY);
- Node180_23.setSize(52*ratioX, 78*ratioY);
- Node180_23.setImage('imgimage//img//index_right_top_right_left_red.jpg');
- Node180_23.setRotation(0*Math.PI/180);
- Node180_23._zoomBy = 'Default';
- Node180_23._nodeType = 'image';
- Node180_23._disallowEvert = true;
- dataModel.add(Node180_23);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_24 = new ht.Node();
- var Node180_24textStart, Node180_24textWidth, Node180_24lineStart, Node180_24align = 'left', Node180_24fontSize = 13.3333*_ratio.ratioY,Node180_24width = 34*_ratio.ratioX, Node180_24height = 16*_ratio.ratioY;
- (function () {
- if (Node180_24align === 'left') {
- Node180_24textStart = Node180_24fontSize * 0.2 > 2 ? Node180_24fontSize * 0.2 - 4 : Node180_24fontSize * 0.2 - 9;
- Node180_24textWidth = Node180_24width;
- Node180_24lineStart = 1;
- } else if (Node180_24align === 'right') {
- Node180_24textStart = 0;
- Node180_24textWidth =Node180_24fontSize <= 8 ? Node180_24width + Node180_24fontSize * 0.2 + 6 : Node180_24width - Node180_24fontSize * 0.2;
- Node180_24lineStart = (Node180_24width - (ht.Default.getTextSize('维护', ' '+ Node180_24fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_24align === 'center') {
- Node180_24textStart = -3;
- Node180_24textWidth = Node180_24width;
- Node180_24lineStart = Node180_24width - ht.Default.getTextSize('维护', ' '+ Node180_24fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_24.setImage(GD.getTextJSON(Node180_24width, Node180_24height, true, false, false, ' '+ Node180_24fontSize + 'px "Arial"'))
- Node180_24.setPosition(1346*ratio.ratioX, 184*ratio.ratioY);
- Node180_24.setWidth(Node180_24width);
- Node180_24.setHeight(Node180_24height);
- Node180_24._nodeType = 'text';
- Node180_24._disallowEvert = true;
- Node180_24.setRotation(0*Math.PI/180);
- Node180_24.a('node.width', Node180_24width);
- Node180_24.a('node.height', Node180_24height);
- Node180_24.a('node.rect', [0, 0, Node180_24width, Node180_24height]);
- Node180_24.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_24.a('node.borderwidth', 0);
- Node180_24.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_24.a('node.gradient','');
- Node180_24.a('node.gradientcolor','');
- Node180_24.a('node.text','维护');
- Node180_24.a('node.textalign','left');
- Node180_24.a('node.textvAlign','middle');
- Node180_24.a('node.textrect', [Node180_24textStart, 0, Node180_24textWidth, Node180_24height]);
- Node180_24.a('node.color','rgba(0,0,0,1)');
- Node180_24.a('node.font',' '+ Node180_24fontSize + 'px "Arial"');
- Node180_24.a('node.textvisible',true);
- Node180_24.a('node.linefeed',false);
- if (false) {
- Node180_24.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_24.a('node.text') || '维护';
- var color=Node180_24.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_24width,Node180_24height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_24fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_24.a('node.underlinepoints',[Node180_24lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_24fontSize + 2 , ht.Default.getTextSize('维护', ' '+ Node180_24fontSize + 'px "Arial"').width + 6, (Node180_24height - Node180_24fontSize) * 0.5*_ratio.ratioY + Node180_24fontSize + 2 ]);
- Node180_24.a('node.underlinevisible',false);
- Node180_24.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_24);
- zoomNodeList.push({
- node: Node180_24,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_25 = new ht.Node();
- var Node180_25textStart, Node180_25textWidth, Node180_25lineStart, Node180_25align = 'left', Node180_25fontSize = 13.3333*_ratio.ratioY,Node180_25width = 12*_ratio.ratioX, Node180_25height = 16*_ratio.ratioY;
- (function () {
- if (Node180_25align === 'left') {
- Node180_25textStart = Node180_25fontSize * 0.2 > 2 ? Node180_25fontSize * 0.2 - 4 : Node180_25fontSize * 0.2 - 9;
- Node180_25textWidth = Node180_25width;
- Node180_25lineStart = 1;
- } else if (Node180_25align === 'right') {
- Node180_25textStart = 0;
- Node180_25textWidth =Node180_25fontSize <= 8 ? Node180_25width + Node180_25fontSize * 0.2 + 6 : Node180_25width - Node180_25fontSize * 0.2;
- Node180_25lineStart = (Node180_25width - (ht.Default.getTextSize('0', ' '+ Node180_25fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_25align === 'center') {
- Node180_25textStart = -3;
- Node180_25textWidth = Node180_25width;
- Node180_25lineStart = Node180_25width - ht.Default.getTextSize('0', ' '+ Node180_25fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_25.setImage(GD.getTextJSON(Node180_25width, Node180_25height, true, false, false, ' '+ Node180_25fontSize + 'px "Arial"'))
- Node180_25.setPosition(1360*ratio.ratioX, 204*ratio.ratioY);
- Node180_25.setWidth(Node180_25width);
- Node180_25.setHeight(Node180_25height);
- Node180_25._nodeType = 'text';
- Node180_25._disallowEvert = true;
- Node180_25.setRotation(0*Math.PI/180);
- Node180_25.a('node.width', Node180_25width);
- Node180_25.a('node.height', Node180_25height);
- Node180_25.a('node.rect', [0, 0, Node180_25width, Node180_25height]);
- Node180_25.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_25.a('node.borderwidth', 0);
- Node180_25.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_25.a('node.gradient','');
- Node180_25.a('node.gradientcolor','');
- Node180_25.a('node.text','0');
- Node180_25.a('node.textalign','left');
- Node180_25.a('node.textvAlign','middle');
- Node180_25.a('node.textrect', [Node180_25textStart, 0, Node180_25textWidth, Node180_25height]);
- Node180_25.a('node.color','rgba(0,0,0,1)');
- Node180_25.a('node.font',' '+ Node180_25fontSize + 'px "Arial"');
- Node180_25.a('node.textvisible',true);
- Node180_25.a('node.linefeed',false);
- if (false) {
- Node180_25.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_25.a('node.text') || '0';
- var color=Node180_25.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_25width,Node180_25height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_25fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_25.a('node.underlinepoints',[Node180_25lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_25fontSize + 2 , ht.Default.getTextSize('0', ' '+ Node180_25fontSize + 'px "Arial"').width + 6, (Node180_25height - Node180_25fontSize) * 0.5*_ratio.ratioY + Node180_25fontSize + 2 ]);
- Node180_25.a('node.underlinevisible',false);
- Node180_25.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_25);
- zoomNodeList.push({
- node: Node180_25,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_26 = new ht.Node();
- var Node180_26textStart, Node180_26textWidth, Node180_26lineStart, Node180_26align = 'left', Node180_26fontSize = 13.3333*_ratio.ratioY,Node180_26width = 19*_ratio.ratioX, Node180_26height = 16*_ratio.ratioY;
- (function () {
- if (Node180_26align === 'left') {
- Node180_26textStart = Node180_26fontSize * 0.2 > 2 ? Node180_26fontSize * 0.2 - 4 : Node180_26fontSize * 0.2 - 9;
- Node180_26textWidth = Node180_26width;
- Node180_26lineStart = 1;
- } else if (Node180_26align === 'right') {
- Node180_26textStart = 0;
- Node180_26textWidth =Node180_26fontSize <= 8 ? Node180_26width + Node180_26fontSize * 0.2 + 6 : Node180_26width - Node180_26fontSize * 0.2;
- Node180_26lineStart = (Node180_26width - (ht.Default.getTextSize('台', ' '+ Node180_26fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_26align === 'center') {
- Node180_26textStart = -3;
- Node180_26textWidth = Node180_26width;
- Node180_26lineStart = Node180_26width - ht.Default.getTextSize('台', ' '+ Node180_26fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_26.setImage(GD.getTextJSON(Node180_26width, Node180_26height, true, false, false, ' '+ Node180_26fontSize + 'px "Arial"'))
- Node180_26.setPosition(1405*ratio.ratioX, 230*ratio.ratioY);
- Node180_26.setWidth(Node180_26width);
- Node180_26.setHeight(Node180_26height);
- Node180_26._nodeType = 'text';
- Node180_26._disallowEvert = true;
- Node180_26.setRotation(0*Math.PI/180);
- Node180_26.a('node.width', Node180_26width);
- Node180_26.a('node.height', Node180_26height);
- Node180_26.a('node.rect', [0, 0, Node180_26width, Node180_26height]);
- Node180_26.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_26.a('node.borderwidth', 0);
- Node180_26.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_26.a('node.gradient','');
- Node180_26.a('node.gradientcolor','');
- Node180_26.a('node.text','台');
- Node180_26.a('node.textalign','left');
- Node180_26.a('node.textvAlign','middle');
- Node180_26.a('node.textrect', [Node180_26textStart, 0, Node180_26textWidth, Node180_26height]);
- Node180_26.a('node.color','rgba(0,0,0,1)');
- Node180_26.a('node.font',' '+ Node180_26fontSize + 'px "Arial"');
- Node180_26.a('node.textvisible',true);
- Node180_26.a('node.linefeed',false);
- if (false) {
- Node180_26.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_26.a('node.text') || '台';
- var color=Node180_26.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_26width,Node180_26height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_26fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_26.a('node.underlinepoints',[Node180_26lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_26fontSize + 2 , ht.Default.getTextSize('台', ' '+ Node180_26fontSize + 'px "Arial"').width + 6, (Node180_26height - Node180_26fontSize) * 0.5*_ratio.ratioY + Node180_26fontSize + 2 ]);
- Node180_26.a('node.underlinevisible',false);
- Node180_26.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_26);
- zoomNodeList.push({
- node: Node180_26,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_27type = 'rect';
- var Node180_27 = new ht.Node(),
- Node180_27BorderWidth = 1*2;
- if (Node180_27type === 'arc') {
- Node180_27BorderWidth *= 1;
- }
- Node180_27.setImage(GD.getRectJSON(105*_ratio.ratioX, 78*_ratio.ratioY, Node180_27type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_27.setPosition(1532*ratio.ratioX, 211*ratio.ratioY);
- Node180_27.setSize(105*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_27.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_27.a('node.width', 105*_ratio.ratioX);
- Node180_27.a('node.height', 78*_ratio.ratioY);
- Node180_27.a('node.type', Node180_27type);
- Node180_27.a('node.rect', [0, 0, 105*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_27.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_27.a('node.gradientcolor', '');
- Node180_27.a('node.gradient', '');
- Node180_27.a('node.borderwidth', Node180_27BorderWidth);
- Node180_27.a('node.color', 'rgba(192,192,192,1)');
- Node180_27.a('node.fillrect', [0,0,0,0]);
- Node180_27.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_27.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_27.a('node.fillgradient', '');
- if (Node180_27type !== 'rect') {
- Node180_27.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_27.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_27.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_27type === 'arc') {
- Node180_27.a('node.arcOval', true);
- }
- Node180_27.setRotation(0*Math.PI/180);
- Node180_27.borderWidth = Node180_27BorderWidth;
- Node180_27.borderFillwidth = Node180_27BorderWidth;
- dataModel.add(Node180_27);
- Node180_27._nodename = 'Node180_27'
- Node180_27._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_27,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_27, Node180_27.getImage());var Node180_28;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//index_right_top_right_left_pink.jpg', PAGEROOTDIR + 'image//img//index_right_top_right_left_pink.jpg');
- Node180_28 = new ht.Node();
- Node180_28.setPosition(1611*ratio.ratioX, 211*ratio.ratioY);
- Node180_28.setSize(52*ratioX, 78*ratioY);
- Node180_28.setImage('imgimage//img//index_right_top_right_left_pink.jpg');
- Node180_28.setRotation(0*Math.PI/180);
- Node180_28._zoomBy = 'Default';
- Node180_28._nodeType = 'image';
- Node180_28._disallowEvert = true;
- dataModel.add(Node180_28);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_29 = new ht.Node();
- var Node180_29textStart, Node180_29textWidth, Node180_29lineStart, Node180_29align = 'left', Node180_29fontSize = 13.3333*_ratio.ratioY,Node180_29width = 34*_ratio.ratioX, Node180_29height = 16*_ratio.ratioY;
- (function () {
- if (Node180_29align === 'left') {
- Node180_29textStart = Node180_29fontSize * 0.2 > 2 ? Node180_29fontSize * 0.2 - 4 : Node180_29fontSize * 0.2 - 9;
- Node180_29textWidth = Node180_29width;
- Node180_29lineStart = 1;
- } else if (Node180_29align === 'right') {
- Node180_29textStart = 0;
- Node180_29textWidth =Node180_29fontSize <= 8 ? Node180_29width + Node180_29fontSize * 0.2 + 6 : Node180_29width - Node180_29fontSize * 0.2;
- Node180_29lineStart = (Node180_29width - (ht.Default.getTextSize('故障', ' '+ Node180_29fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_29align === 'center') {
- Node180_29textStart = -3;
- Node180_29textWidth = Node180_29width;
- Node180_29lineStart = Node180_29width - ht.Default.getTextSize('故障', ' '+ Node180_29fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_29.setImage(GD.getTextJSON(Node180_29width, Node180_29height, true, false, false, ' '+ Node180_29fontSize + 'px "Arial"'))
- Node180_29.setPosition(1503*ratio.ratioX, 184*ratio.ratioY);
- Node180_29.setWidth(Node180_29width);
- Node180_29.setHeight(Node180_29height);
- Node180_29._nodeType = 'text';
- Node180_29._disallowEvert = true;
- Node180_29.setRotation(0*Math.PI/180);
- Node180_29.a('node.width', Node180_29width);
- Node180_29.a('node.height', Node180_29height);
- Node180_29.a('node.rect', [0, 0, Node180_29width, Node180_29height]);
- Node180_29.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_29.a('node.borderwidth', 0);
- Node180_29.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_29.a('node.gradient','');
- Node180_29.a('node.gradientcolor','');
- Node180_29.a('node.text','故障');
- Node180_29.a('node.textalign','left');
- Node180_29.a('node.textvAlign','middle');
- Node180_29.a('node.textrect', [Node180_29textStart, 0, Node180_29textWidth, Node180_29height]);
- Node180_29.a('node.color','rgba(0,0,0,1)');
- Node180_29.a('node.font',' '+ Node180_29fontSize + 'px "Arial"');
- Node180_29.a('node.textvisible',true);
- Node180_29.a('node.linefeed',false);
- if (false) {
- Node180_29.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_29.a('node.text') || '故障';
- var color=Node180_29.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_29width,Node180_29height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_29fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_29.a('node.underlinepoints',[Node180_29lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_29fontSize + 2 , ht.Default.getTextSize('故障', ' '+ Node180_29fontSize + 'px "Arial"').width + 6, (Node180_29height - Node180_29fontSize) * 0.5*_ratio.ratioY + Node180_29fontSize + 2 ]);
- Node180_29.a('node.underlinevisible',false);
- Node180_29.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_29);
- zoomNodeList.push({
- node: Node180_29,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_30 = new ht.Node();
- var Node180_30textStart, Node180_30textWidth, Node180_30lineStart, Node180_30align = 'left', Node180_30fontSize = 13.3333*_ratio.ratioY,Node180_30width = 12*_ratio.ratioX, Node180_30height = 16*_ratio.ratioY;
- (function () {
- if (Node180_30align === 'left') {
- Node180_30textStart = Node180_30fontSize * 0.2 > 2 ? Node180_30fontSize * 0.2 - 4 : Node180_30fontSize * 0.2 - 9;
- Node180_30textWidth = Node180_30width;
- Node180_30lineStart = 1;
- } else if (Node180_30align === 'right') {
- Node180_30textStart = 0;
- Node180_30textWidth =Node180_30fontSize <= 8 ? Node180_30width + Node180_30fontSize * 0.2 + 6 : Node180_30width - Node180_30fontSize * 0.2;
- Node180_30lineStart = (Node180_30width - (ht.Default.getTextSize('0', ' '+ Node180_30fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_30align === 'center') {
- Node180_30textStart = -3;
- Node180_30textWidth = Node180_30width;
- Node180_30lineStart = Node180_30width - ht.Default.getTextSize('0', ' '+ Node180_30fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_30.setImage(GD.getTextJSON(Node180_30width, Node180_30height, true, false, false, ' '+ Node180_30fontSize + 'px "Arial"'))
- Node180_30.setPosition(1517*ratio.ratioX, 204*ratio.ratioY);
- Node180_30.setWidth(Node180_30width);
- Node180_30.setHeight(Node180_30height);
- Node180_30._nodeType = 'text';
- Node180_30._disallowEvert = true;
- Node180_30.setRotation(0*Math.PI/180);
- Node180_30.a('node.width', Node180_30width);
- Node180_30.a('node.height', Node180_30height);
- Node180_30.a('node.rect', [0, 0, Node180_30width, Node180_30height]);
- Node180_30.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_30.a('node.borderwidth', 0);
- Node180_30.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_30.a('node.gradient','');
- Node180_30.a('node.gradientcolor','');
- Node180_30.a('node.text','0');
- Node180_30.a('node.textalign','left');
- Node180_30.a('node.textvAlign','middle');
- Node180_30.a('node.textrect', [Node180_30textStart, 0, Node180_30textWidth, Node180_30height]);
- Node180_30.a('node.color','rgba(0,0,0,1)');
- Node180_30.a('node.font',' '+ Node180_30fontSize + 'px "Arial"');
- Node180_30.a('node.textvisible',true);
- Node180_30.a('node.linefeed',false);
- if (false) {
- Node180_30.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_30.a('node.text') || '0';
- var color=Node180_30.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_30width,Node180_30height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_30fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_30.a('node.underlinepoints',[Node180_30lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_30fontSize + 2 , ht.Default.getTextSize('0', ' '+ Node180_30fontSize + 'px "Arial"').width + 6, (Node180_30height - Node180_30fontSize) * 0.5*_ratio.ratioY + Node180_30fontSize + 2 ]);
- Node180_30.a('node.underlinevisible',false);
- Node180_30.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_30);
- zoomNodeList.push({
- node: Node180_30,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_31 = new ht.Node();
- var Node180_31textStart, Node180_31textWidth, Node180_31lineStart, Node180_31align = 'left', Node180_31fontSize = 13.3333*_ratio.ratioY,Node180_31width = 19*_ratio.ratioX, Node180_31height = 16*_ratio.ratioY;
- (function () {
- if (Node180_31align === 'left') {
- Node180_31textStart = Node180_31fontSize * 0.2 > 2 ? Node180_31fontSize * 0.2 - 4 : Node180_31fontSize * 0.2 - 9;
- Node180_31textWidth = Node180_31width;
- Node180_31lineStart = 1;
- } else if (Node180_31align === 'right') {
- Node180_31textStart = 0;
- Node180_31textWidth =Node180_31fontSize <= 8 ? Node180_31width + Node180_31fontSize * 0.2 + 6 : Node180_31width - Node180_31fontSize * 0.2;
- Node180_31lineStart = (Node180_31width - (ht.Default.getTextSize('台', ' '+ Node180_31fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_31align === 'center') {
- Node180_31textStart = -3;
- Node180_31textWidth = Node180_31width;
- Node180_31lineStart = Node180_31width - ht.Default.getTextSize('台', ' '+ Node180_31fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_31.setImage(GD.getTextJSON(Node180_31width, Node180_31height, true, false, false, ' '+ Node180_31fontSize + 'px "Arial"'))
- Node180_31.setPosition(1562*ratio.ratioX, 230*ratio.ratioY);
- Node180_31.setWidth(Node180_31width);
- Node180_31.setHeight(Node180_31height);
- Node180_31._nodeType = 'text';
- Node180_31._disallowEvert = true;
- Node180_31.setRotation(0*Math.PI/180);
- Node180_31.a('node.width', Node180_31width);
- Node180_31.a('node.height', Node180_31height);
- Node180_31.a('node.rect', [0, 0, Node180_31width, Node180_31height]);
- Node180_31.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_31.a('node.borderwidth', 0);
- Node180_31.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_31.a('node.gradient','');
- Node180_31.a('node.gradientcolor','');
- Node180_31.a('node.text','台');
- Node180_31.a('node.textalign','left');
- Node180_31.a('node.textvAlign','middle');
- Node180_31.a('node.textrect', [Node180_31textStart, 0, Node180_31textWidth, Node180_31height]);
- Node180_31.a('node.color','rgba(0,0,0,1)');
- Node180_31.a('node.font',' '+ Node180_31fontSize + 'px "Arial"');
- Node180_31.a('node.textvisible',true);
- Node180_31.a('node.linefeed',false);
- if (false) {
- Node180_31.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_31.a('node.text') || '台';
- var color=Node180_31.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_31width,Node180_31height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_31fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_31.a('node.underlinepoints',[Node180_31lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_31fontSize + 2 , ht.Default.getTextSize('台', ' '+ Node180_31fontSize + 'px "Arial"').width + 6, (Node180_31height - Node180_31fontSize) * 0.5*_ratio.ratioY + Node180_31fontSize + 2 ]);
- Node180_31.a('node.underlinevisible',false);
- Node180_31.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_31);
- zoomNodeList.push({
- node: Node180_31,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_32type = 'rect';
- var Node180_32 = new ht.Node(),
- Node180_32BorderWidth = 1*2;
- if (Node180_32type === 'arc') {
- Node180_32BorderWidth *= 1;
- }
- Node180_32.setImage(GD.getRectJSON(105*_ratio.ratioX, 78*_ratio.ratioY, Node180_32type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_32.setPosition(1690*ratio.ratioX, 211*ratio.ratioY);
- Node180_32.setSize(105*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_32.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_32.a('node.width', 105*_ratio.ratioX);
- Node180_32.a('node.height', 78*_ratio.ratioY);
- Node180_32.a('node.type', Node180_32type);
- Node180_32.a('node.rect', [0, 0, 105*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_32.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_32.a('node.gradientcolor', '');
- Node180_32.a('node.gradient', '');
- Node180_32.a('node.borderwidth', Node180_32BorderWidth);
- Node180_32.a('node.color', 'rgba(192,192,192,1)');
- Node180_32.a('node.fillrect', [0,0,0,0]);
- Node180_32.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_32.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_32.a('node.fillgradient', '');
- if (Node180_32type !== 'rect') {
- Node180_32.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_32.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_32.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_32type === 'arc') {
- Node180_32.a('node.arcOval', true);
- }
- Node180_32.setRotation(0*Math.PI/180);
- Node180_32.borderWidth = Node180_32BorderWidth;
- Node180_32.borderFillwidth = Node180_32BorderWidth;
- dataModel.add(Node180_32);
- Node180_32._nodename = 'Node180_32'
- Node180_32._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_32,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_32, Node180_32.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_33 = new ht.Node();
- var Node180_33textStart, Node180_33textWidth, Node180_33lineStart, Node180_33align = 'left', Node180_33fontSize = 13.3333*_ratio.ratioY,Node180_33width = 34*_ratio.ratioX, Node180_33height = 16*_ratio.ratioY;
- (function () {
- if (Node180_33align === 'left') {
- Node180_33textStart = Node180_33fontSize * 0.2 > 2 ? Node180_33fontSize * 0.2 - 4 : Node180_33fontSize * 0.2 - 9;
- Node180_33textWidth = Node180_33width;
- Node180_33lineStart = 1;
- } else if (Node180_33align === 'right') {
- Node180_33textStart = 0;
- Node180_33textWidth =Node180_33fontSize <= 8 ? Node180_33width + Node180_33fontSize * 0.2 + 6 : Node180_33width - Node180_33fontSize * 0.2;
- Node180_33lineStart = (Node180_33width - (ht.Default.getTextSize('限电', ' '+ Node180_33fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_33align === 'center') {
- Node180_33textStart = -3;
- Node180_33textWidth = Node180_33width;
- Node180_33lineStart = Node180_33width - ht.Default.getTextSize('限电', ' '+ Node180_33fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_33.setImage(GD.getTextJSON(Node180_33width, Node180_33height, true, false, false, ' '+ Node180_33fontSize + 'px "Arial"'))
- Node180_33.setPosition(1661*ratio.ratioX, 184*ratio.ratioY);
- Node180_33.setWidth(Node180_33width);
- Node180_33.setHeight(Node180_33height);
- Node180_33._nodeType = 'text';
- Node180_33._disallowEvert = true;
- Node180_33.setRotation(0*Math.PI/180);
- Node180_33.a('node.width', Node180_33width);
- Node180_33.a('node.height', Node180_33height);
- Node180_33.a('node.rect', [0, 0, Node180_33width, Node180_33height]);
- Node180_33.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_33.a('node.borderwidth', 0);
- Node180_33.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_33.a('node.gradient','');
- Node180_33.a('node.gradientcolor','');
- Node180_33.a('node.text','限电');
- Node180_33.a('node.textalign','left');
- Node180_33.a('node.textvAlign','middle');
- Node180_33.a('node.textrect', [Node180_33textStart, 0, Node180_33textWidth, Node180_33height]);
- Node180_33.a('node.color','rgba(0,0,0,1)');
- Node180_33.a('node.font',' '+ Node180_33fontSize + 'px "Arial"');
- Node180_33.a('node.textvisible',true);
- Node180_33.a('node.linefeed',false);
- if (false) {
- Node180_33.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_33.a('node.text') || '限电';
- var color=Node180_33.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_33width,Node180_33height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_33fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_33.a('node.underlinepoints',[Node180_33lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_33fontSize + 2 , ht.Default.getTextSize('限电', ' '+ Node180_33fontSize + 'px "Arial"').width + 6, (Node180_33height - Node180_33fontSize) * 0.5*_ratio.ratioY + Node180_33fontSize + 2 ]);
- Node180_33.a('node.underlinevisible',false);
- Node180_33.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_33);
- zoomNodeList.push({
- node: Node180_33,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_34 = new ht.Node();
- var Node180_34textStart, Node180_34textWidth, Node180_34lineStart, Node180_34align = 'left', Node180_34fontSize = 13.3333*_ratio.ratioY,Node180_34width = 12*_ratio.ratioX, Node180_34height = 16*_ratio.ratioY;
- (function () {
- if (Node180_34align === 'left') {
- Node180_34textStart = Node180_34fontSize * 0.2 > 2 ? Node180_34fontSize * 0.2 - 4 : Node180_34fontSize * 0.2 - 9;
- Node180_34textWidth = Node180_34width;
- Node180_34lineStart = 1;
- } else if (Node180_34align === 'right') {
- Node180_34textStart = 0;
- Node180_34textWidth =Node180_34fontSize <= 8 ? Node180_34width + Node180_34fontSize * 0.2 + 6 : Node180_34width - Node180_34fontSize * 0.2;
- Node180_34lineStart = (Node180_34width - (ht.Default.getTextSize('0', ' '+ Node180_34fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_34align === 'center') {
- Node180_34textStart = -3;
- Node180_34textWidth = Node180_34width;
- Node180_34lineStart = Node180_34width - ht.Default.getTextSize('0', ' '+ Node180_34fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_34.setImage(GD.getTextJSON(Node180_34width, Node180_34height, true, false, false, ' '+ Node180_34fontSize + 'px "Arial"'))
- Node180_34.setPosition(1675*ratio.ratioX, 204*ratio.ratioY);
- Node180_34.setWidth(Node180_34width);
- Node180_34.setHeight(Node180_34height);
- Node180_34._nodeType = 'text';
- Node180_34._disallowEvert = true;
- Node180_34.setRotation(0*Math.PI/180);
- Node180_34.a('node.width', Node180_34width);
- Node180_34.a('node.height', Node180_34height);
- Node180_34.a('node.rect', [0, 0, Node180_34width, Node180_34height]);
- Node180_34.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_34.a('node.borderwidth', 0);
- Node180_34.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_34.a('node.gradient','');
- Node180_34.a('node.gradientcolor','');
- Node180_34.a('node.text','0');
- Node180_34.a('node.textalign','left');
- Node180_34.a('node.textvAlign','middle');
- Node180_34.a('node.textrect', [Node180_34textStart, 0, Node180_34textWidth, Node180_34height]);
- Node180_34.a('node.color','rgba(0,0,0,1)');
- Node180_34.a('node.font',' '+ Node180_34fontSize + 'px "Arial"');
- Node180_34.a('node.textvisible',true);
- Node180_34.a('node.linefeed',false);
- if (false) {
- Node180_34.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_34.a('node.text') || '0';
- var color=Node180_34.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_34width,Node180_34height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_34fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_34.a('node.underlinepoints',[Node180_34lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_34fontSize + 2 , ht.Default.getTextSize('0', ' '+ Node180_34fontSize + 'px "Arial"').width + 6, (Node180_34height - Node180_34fontSize) * 0.5*_ratio.ratioY + Node180_34fontSize + 2 ]);
- Node180_34.a('node.underlinevisible',false);
- Node180_34.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_34);
- zoomNodeList.push({
- node: Node180_34,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_35 = new ht.Node();
- var Node180_35textStart, Node180_35textWidth, Node180_35lineStart, Node180_35align = 'left', Node180_35fontSize = 13.3333*_ratio.ratioY,Node180_35width = 19*_ratio.ratioX, Node180_35height = 16*_ratio.ratioY;
- (function () {
- if (Node180_35align === 'left') {
- Node180_35textStart = Node180_35fontSize * 0.2 > 2 ? Node180_35fontSize * 0.2 - 4 : Node180_35fontSize * 0.2 - 9;
- Node180_35textWidth = Node180_35width;
- Node180_35lineStart = 1;
- } else if (Node180_35align === 'right') {
- Node180_35textStart = 0;
- Node180_35textWidth =Node180_35fontSize <= 8 ? Node180_35width + Node180_35fontSize * 0.2 + 6 : Node180_35width - Node180_35fontSize * 0.2;
- Node180_35lineStart = (Node180_35width - (ht.Default.getTextSize('台', ' '+ Node180_35fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_35align === 'center') {
- Node180_35textStart = -3;
- Node180_35textWidth = Node180_35width;
- Node180_35lineStart = Node180_35width - ht.Default.getTextSize('台', ' '+ Node180_35fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_35.setImage(GD.getTextJSON(Node180_35width, Node180_35height, true, false, false, ' '+ Node180_35fontSize + 'px "Arial"'))
- Node180_35.setPosition(1719*ratio.ratioX, 230*ratio.ratioY);
- Node180_35.setWidth(Node180_35width);
- Node180_35.setHeight(Node180_35height);
- Node180_35._nodeType = 'text';
- Node180_35._disallowEvert = true;
- Node180_35.setRotation(0*Math.PI/180);
- Node180_35.a('node.width', Node180_35width);
- Node180_35.a('node.height', Node180_35height);
- Node180_35.a('node.rect', [0, 0, Node180_35width, Node180_35height]);
- Node180_35.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_35.a('node.borderwidth', 0);
- Node180_35.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_35.a('node.gradient','');
- Node180_35.a('node.gradientcolor','');
- Node180_35.a('node.text','台');
- Node180_35.a('node.textalign','left');
- Node180_35.a('node.textvAlign','middle');
- Node180_35.a('node.textrect', [Node180_35textStart, 0, Node180_35textWidth, Node180_35height]);
- Node180_35.a('node.color','rgba(0,0,0,1)');
- Node180_35.a('node.font',' '+ Node180_35fontSize + 'px "Arial"');
- Node180_35.a('node.textvisible',true);
- Node180_35.a('node.linefeed',false);
- if (false) {
- Node180_35.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_35.a('node.text') || '台';
- var color=Node180_35.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_35width,Node180_35height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_35fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_35.a('node.underlinepoints',[Node180_35lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_35fontSize + 2 , ht.Default.getTextSize('台', ' '+ Node180_35fontSize + 'px "Arial"').width + 6, (Node180_35height - Node180_35fontSize) * 0.5*_ratio.ratioY + Node180_35fontSize + 2 ]);
- Node180_35.a('node.underlinevisible',false);
- Node180_35.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_35);
- zoomNodeList.push({
- node: Node180_35,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_36type = 'rect';
- var Node180_36 = new ht.Node(),
- Node180_36BorderWidth = 1*2;
- if (Node180_36type === 'arc') {
- Node180_36BorderWidth *= 1;
- }
- Node180_36.setImage(GD.getRectJSON(92*_ratio.ratioX, 78*_ratio.ratioY, Node180_36type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_36.setPosition(1841*ratio.ratioX, 211*ratio.ratioY);
- Node180_36.setSize(92*_ratio.ratioX, 78*_ratio.ratioY);
- Node180_36.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_36.a('node.width', 92*_ratio.ratioX);
- Node180_36.a('node.height', 78*_ratio.ratioY);
- Node180_36.a('node.type', Node180_36type);
- Node180_36.a('node.rect', [0, 0, 92*_ratio.ratioX, 78*_ratio.ratioY]);
- Node180_36.a('node.background', 'rgba(255,255,255,0.003921569)');
- Node180_36.a('node.gradientcolor', '');
- Node180_36.a('node.gradient', '');
- Node180_36.a('node.borderwidth', Node180_36BorderWidth);
- Node180_36.a('node.color', 'rgba(192,192,192,1)');
- Node180_36.a('node.fillrect', [0,0,0,0]);
- Node180_36.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_36.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_36.a('node.fillgradient', '');
- if (Node180_36type !== 'rect') {
- Node180_36.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_36.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_36.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_36type === 'arc') {
- Node180_36.a('node.arcOval', true);
- }
- Node180_36.setRotation(0*Math.PI/180);
- Node180_36.borderWidth = Node180_36BorderWidth;
- Node180_36.borderFillwidth = Node180_36BorderWidth;
- dataModel.add(Node180_36);
- Node180_36._nodename = 'Node180_36'
- Node180_36._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_36,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_36, Node180_36.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_37 = new ht.Node();
- var Node180_37textStart, Node180_37textWidth, Node180_37lineStart, Node180_37align = 'left', Node180_37fontSize = 13.3333*_ratio.ratioY,Node180_37width = 34*_ratio.ratioX, Node180_37height = 16*_ratio.ratioY;
- (function () {
- if (Node180_37align === 'left') {
- Node180_37textStart = Node180_37fontSize * 0.2 > 2 ? Node180_37fontSize * 0.2 - 4 : Node180_37fontSize * 0.2 - 9;
- Node180_37textWidth = Node180_37width;
- Node180_37lineStart = 1;
- } else if (Node180_37align === 'right') {
- Node180_37textStart = 0;
- Node180_37textWidth =Node180_37fontSize <= 8 ? Node180_37width + Node180_37fontSize * 0.2 + 6 : Node180_37width - Node180_37fontSize * 0.2;
- Node180_37lineStart = (Node180_37width - (ht.Default.getTextSize('离线', ' '+ Node180_37fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_37align === 'center') {
- Node180_37textStart = -3;
- Node180_37textWidth = Node180_37width;
- Node180_37lineStart = Node180_37width - ht.Default.getTextSize('离线', ' '+ Node180_37fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_37.setImage(GD.getTextJSON(Node180_37width, Node180_37height, true, false, false, ' '+ Node180_37fontSize + 'px "Arial"'))
- Node180_37.setPosition(1818*ratio.ratioX, 184*ratio.ratioY);
- Node180_37.setWidth(Node180_37width);
- Node180_37.setHeight(Node180_37height);
- Node180_37._nodeType = 'text';
- Node180_37._disallowEvert = true;
- Node180_37.setRotation(0*Math.PI/180);
- Node180_37.a('node.width', Node180_37width);
- Node180_37.a('node.height', Node180_37height);
- Node180_37.a('node.rect', [0, 0, Node180_37width, Node180_37height]);
- Node180_37.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_37.a('node.borderwidth', 0);
- Node180_37.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_37.a('node.gradient','');
- Node180_37.a('node.gradientcolor','');
- Node180_37.a('node.text','离线');
- Node180_37.a('node.textalign','left');
- Node180_37.a('node.textvAlign','middle');
- Node180_37.a('node.textrect', [Node180_37textStart, 0, Node180_37textWidth, Node180_37height]);
- Node180_37.a('node.color','rgba(0,0,0,1)');
- Node180_37.a('node.font',' '+ Node180_37fontSize + 'px "Arial"');
- Node180_37.a('node.textvisible',true);
- Node180_37.a('node.linefeed',false);
- if (false) {
- Node180_37.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_37.a('node.text') || '离线';
- var color=Node180_37.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_37width,Node180_37height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_37fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_37.a('node.underlinepoints',[Node180_37lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_37fontSize + 2 , ht.Default.getTextSize('离线', ' '+ Node180_37fontSize + 'px "Arial"').width + 6, (Node180_37height - Node180_37fontSize) * 0.5*_ratio.ratioY + Node180_37fontSize + 2 ]);
- Node180_37.a('node.underlinevisible',false);
- Node180_37.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_37);
- zoomNodeList.push({
- node: Node180_37,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_38 = new ht.Node();
- var Node180_38textStart, Node180_38textWidth, Node180_38lineStart, Node180_38align = 'left', Node180_38fontSize = 13.3333*_ratio.ratioY,Node180_38width = 12*_ratio.ratioX, Node180_38height = 16*_ratio.ratioY;
- (function () {
- if (Node180_38align === 'left') {
- Node180_38textStart = Node180_38fontSize * 0.2 > 2 ? Node180_38fontSize * 0.2 - 4 : Node180_38fontSize * 0.2 - 9;
- Node180_38textWidth = Node180_38width;
- Node180_38lineStart = 1;
- } else if (Node180_38align === 'right') {
- Node180_38textStart = 0;
- Node180_38textWidth =Node180_38fontSize <= 8 ? Node180_38width + Node180_38fontSize * 0.2 + 6 : Node180_38width - Node180_38fontSize * 0.2;
- Node180_38lineStart = (Node180_38width - (ht.Default.getTextSize('0', ' '+ Node180_38fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_38align === 'center') {
- Node180_38textStart = -3;
- Node180_38textWidth = Node180_38width;
- Node180_38lineStart = Node180_38width - ht.Default.getTextSize('0', ' '+ Node180_38fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_38.setImage(GD.getTextJSON(Node180_38width, Node180_38height, true, false, false, ' '+ Node180_38fontSize + 'px "Arial"'))
- Node180_38.setPosition(1832*ratio.ratioX, 204*ratio.ratioY);
- Node180_38.setWidth(Node180_38width);
- Node180_38.setHeight(Node180_38height);
- Node180_38._nodeType = 'text';
- Node180_38._disallowEvert = true;
- Node180_38.setRotation(0*Math.PI/180);
- Node180_38.a('node.width', Node180_38width);
- Node180_38.a('node.height', Node180_38height);
- Node180_38.a('node.rect', [0, 0, Node180_38width, Node180_38height]);
- Node180_38.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_38.a('node.borderwidth', 0);
- Node180_38.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_38.a('node.gradient','');
- Node180_38.a('node.gradientcolor','');
- Node180_38.a('node.text','0');
- Node180_38.a('node.textalign','left');
- Node180_38.a('node.textvAlign','middle');
- Node180_38.a('node.textrect', [Node180_38textStart, 0, Node180_38textWidth, Node180_38height]);
- Node180_38.a('node.color','rgba(0,0,0,1)');
- Node180_38.a('node.font',' '+ Node180_38fontSize + 'px "Arial"');
- Node180_38.a('node.textvisible',true);
- Node180_38.a('node.linefeed',false);
- if (false) {
- Node180_38.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_38.a('node.text') || '0';
- var color=Node180_38.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_38width,Node180_38height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_38fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_38.a('node.underlinepoints',[Node180_38lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_38fontSize + 2 , ht.Default.getTextSize('0', ' '+ Node180_38fontSize + 'px "Arial"').width + 6, (Node180_38height - Node180_38fontSize) * 0.5*_ratio.ratioY + Node180_38fontSize + 2 ]);
- Node180_38.a('node.underlinevisible',false);
- Node180_38.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_38);
- zoomNodeList.push({
- node: Node180_38,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_39 = new ht.Node();
- var Node180_39textStart, Node180_39textWidth, Node180_39lineStart, Node180_39align = 'left', Node180_39fontSize = 13.3333*_ratio.ratioY,Node180_39width = 19*_ratio.ratioX, Node180_39height = 16*_ratio.ratioY;
- (function () {
- if (Node180_39align === 'left') {
- Node180_39textStart = Node180_39fontSize * 0.2 > 2 ? Node180_39fontSize * 0.2 - 4 : Node180_39fontSize * 0.2 - 9;
- Node180_39textWidth = Node180_39width;
- Node180_39lineStart = 1;
- } else if (Node180_39align === 'right') {
- Node180_39textStart = 0;
- Node180_39textWidth =Node180_39fontSize <= 8 ? Node180_39width + Node180_39fontSize * 0.2 + 6 : Node180_39width - Node180_39fontSize * 0.2;
- Node180_39lineStart = (Node180_39width - (ht.Default.getTextSize('台', ' '+ Node180_39fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_39align === 'center') {
- Node180_39textStart = -3;
- Node180_39textWidth = Node180_39width;
- Node180_39lineStart = Node180_39width - ht.Default.getTextSize('台', ' '+ Node180_39fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_39.setImage(GD.getTextJSON(Node180_39width, Node180_39height, true, false, false, ' '+ Node180_39fontSize + 'px "Arial"'))
- Node180_39.setPosition(1877*ratio.ratioX, 230*ratio.ratioY);
- Node180_39.setWidth(Node180_39width);
- Node180_39.setHeight(Node180_39height);
- Node180_39._nodeType = 'text';
- Node180_39._disallowEvert = true;
- Node180_39.setRotation(0*Math.PI/180);
- Node180_39.a('node.width', Node180_39width);
- Node180_39.a('node.height', Node180_39height);
- Node180_39.a('node.rect', [0, 0, Node180_39width, Node180_39height]);
- Node180_39.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_39.a('node.borderwidth', 0);
- Node180_39.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_39.a('node.gradient','');
- Node180_39.a('node.gradientcolor','');
- Node180_39.a('node.text','台');
- Node180_39.a('node.textalign','left');
- Node180_39.a('node.textvAlign','middle');
- Node180_39.a('node.textrect', [Node180_39textStart, 0, Node180_39textWidth, Node180_39height]);
- Node180_39.a('node.color','rgba(0,0,0,1)');
- Node180_39.a('node.font',' '+ Node180_39fontSize + 'px "Arial"');
- Node180_39.a('node.textvisible',true);
- Node180_39.a('node.linefeed',false);
- if (false) {
- Node180_39.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_39.a('node.text') || '台';
- var color=Node180_39.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_39width,Node180_39height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_39fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_39.a('node.underlinepoints',[Node180_39lineStart, (16 - 13.3333) * 0.5 * _ratio.ratioY + Node180_39fontSize + 2 , ht.Default.getTextSize('台', ' '+ Node180_39fontSize + 'px "Arial"').width + 6, (Node180_39height - Node180_39fontSize) * 0.5*_ratio.ratioY + Node180_39fontSize + 2 ]);
- Node180_39.a('node.underlinevisible',false);
- Node180_39.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_39);
- zoomNodeList.push({
- node: Node180_39,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_40type = 'rect';
- var Node180_40 = new ht.Node(),
- Node180_40BorderWidth = 0*2;
- if (Node180_40type === 'arc') {
- Node180_40BorderWidth *= 0;
- }
- Node180_40.setImage(GD.getRectJSON(27*_ratio.ratioX, 208*_ratio.ratioY, Node180_40type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_40.setPosition(770*ratio.ratioX, 356*ratio.ratioY);
- Node180_40.setSize(27*_ratio.ratioX, 208*_ratio.ratioY);
- Node180_40.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_40.a('node.width', 27*_ratio.ratioX);
- Node180_40.a('node.height', 208*_ratio.ratioY);
- Node180_40.a('node.type', Node180_40type);
- Node180_40.a('node.rect', [0, 0, 27*_ratio.ratioX, 208*_ratio.ratioY]);
- Node180_40.a('node.background', 'rgba(32,191,135,1)');
- Node180_40.a('node.gradientcolor', 'rgba(32,191,135,1)');
- Node180_40.a('node.gradient', '');
- Node180_40.a('node.borderwidth', Node180_40BorderWidth);
- Node180_40.a('node.color', 'rgba(0,0,0,0)');
- Node180_40.a('node.fillrect', [0,0,0,0]);
- Node180_40.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_40.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_40.a('node.fillgradient', '');
- if (Node180_40type !== 'rect') {
- Node180_40.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_40.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_40.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_40type === 'arc') {
- Node180_40.a('node.arcOval', true);
- }
- Node180_40.setRotation(0*Math.PI/180);
- Node180_40.borderWidth = Node180_40BorderWidth;
- Node180_40.borderFillwidth = Node180_40BorderWidth;
- dataModel.add(Node180_40);
- Node180_40._nodename = 'Node180_40'
- Node180_40._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_40,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_40, Node180_40.getImage());
- var Node180_41style={eachbarbackcolor:"rgba(255,255,255,0)",shadowColor:"rgba(0, 0, 0, 0)"};
- var Node180_41obj=getIndicatorAndSheBeiArr(Node180_41GroupVarName,Node180_41GroupInVarName);
- var Node180_41series=getIndicatorOrShebeiInfo(Node180_41GroupVarName,Node180_41GroupInVarName,Node180_41style);
- Node180_41series && Node180_41series[0] && (Node180_41series[0].barGap = 0);
- var Node180_41option = {
- tooltip : {
- trigger: 'axis',
- axisPointer : {
- type : 'shadow',
- shadowStyle: {
- color: {
- type: 'linear',
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0, color: 'rgba(100,100,100,1)' // 0% 处的颜色
- }, {
- offset: 1, color: 'rgba(100,100,100,1)' // 100% 处的颜色
- }],
- globalCoord: false // 缺省为 false
- },
- opacity: 0.2
- }
- },
- // formatter:function (params, ticket, callback) {
- // console.log(params, ticket);
- // return params.name +': <br/>'+ parseFloat(params.value).toFixed(2) +' ('+parseFloat(params.percent)+')%';
- // var result ;
- // for (var i = 0, len = params.length; i < len; i++) {
- // }
- // }
- },
- grid: {
- left: '0%',
- right: '0%',
- bottom: '3%',
- top:'5%',
- containLabel: true
- },
- legend:{
- show:false,
- data:Node180_41obj["indicatorArr"]
- },
- xAxis : [
- {
- type : 'category',
- splitNumber:0,
- data :Node180_41obj["shebeiArr"],
- axisLine:{
- lineStyle:{
- color:'rgba(128,128,128,1)'
- }
- },
- axisLabel:{
- inside:false,
- interval: 0,
- textStyle:{
- fontSize:"13.3333"
- }
- },
- z: 10,
- splitLine:{
- show:false,
- lineStyle:{
- color:'rgba(211,211,211,1)'
- }
- }
- }
- ],
- yAxis : [
- {
- type : 'value',
- min:0,
- max:1000,
- axisTick:{
- lineStyle:{
- color:'rgba(128,128,128,1)'
- }
- },
- precision:2,
- axisLine:{
- lineStyle:{
- color:'rgba(128,128,128,1)'
- }
- },
- axisLabel:{
- textStyle:{
- fontSize:"13.3333"
- }
- },
- splitLine:{
- show:true,
- lineStyle:{
- color:'rgba(211,211,211,1)'
- }
- }
- }],
- color: Node180_41obj.colorArr,
- series : Node180_41series
-
- };
- var Node180_41 = new ht.HtmlNode();
- var Node180_41BeginTime = "";
- var Node180_41endTime = "";
- var Node180_41yRange = 'fixed';
- Node180_41.setPosition({'x':1064*ratio.ratioX,'y':361*ratio.ratioY});
- Node180_41.setWidth(542*ratio.ratioX);
- Node180_41.setHeight(208*ratio.ratioY);
- Node180_41.setScalable(false);
- Node180_41.s({
- '2d.selectable': false,
- '2d.movable': false
- });
- var Node180_41chart = new ht.Chart(Node180_41option, 542*ratio.ratioX, 208*ratio.ratioY);
- Node180_41.setHtml( Node180_41chart);
- var Node180_41_chart = Node180_41chart._chart;
- dataModel.add(Node180_41);
- function Node180_41Refresh(){
- var option = Node180_41chart.getOption(),
- _option = Node180_41_chart.getOption(),
- ses = _option.series;
- option.series = getIndicatorOrShebeiInfo(Node180_41GroupVarName,Node180_41GroupInVarName,Node180_41style);
- if (Node180_41yRange === 'real') {
- var maxAndMin = GD.getMaxAndMinFromSeries(ses);
- option.yAxis[0].min = maxAndMin.min < 0 ? Math.ceil(maxAndMin.min - 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 0;
- option.yAxis[0].max = maxAndMin.max > 1000 ? Math.ceil(maxAndMin.max + 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 1000;
- }
- Node180_41_chart.setOption(option, true);
- }
- function Node180_41Search() {
- var urlStr = "http://" + webServiceIP + ":" + webServicePort + "/api/HistorySummary?tagName=";
- // var tagsInfo = encodeURIComponent(Node180_41obj.tagArr.join(','));
- var beginTime = "",
- endTime = "",
- type = 'static'; // 时间段:当日,当月,当年 。固定时间
- var groupbarType = 'snap';
- var beginTimeType = 'begin',
- endTimeType = 'end';
- var difTagsInfo = '',
- staTagsInfo = '',
- staTagArr = [],
- difTagArr = [];
- (function () {
- var tagsType = Node180_41obj.statisticsTypeObj,
- k, v;
- for (var key in tagsType) {
- if (tagsType.hasOwnProperty(key)) {
- k = key;
- v = tagsType[k];
- if (k === 'Difference' || k === 'EqLastYear' || k === 'Availble') {
- difTagArr.push(k);
- } else {
- staTagArr.push(k);
- }
- }
- }
- difTagsInfo = encodeURIComponent(difTagArr.join(','));
- staTagsInfo = encodeURIComponent(staTagArr.join(','));
- })();
- if (groupbarType === 'snap') {
- Node180_41Refresh()
- return;
- }
- if (type === 'relday') {
- if (endTime === '0d') { //如果显示当天时间,则结束时间为当前时间
- endTimeType = '';
- }
- } else if (type === 'relmonth') {
- if (endTime === '0m') {
- endTimeType = ''
- }
- } else if (type === 'relyear') {
- if (endTime === '0y') {
- endTimeType = ''
- }
- } else if (type === 'static') {
- beginTimeType = '';
- endTimeType = '';
- } else {
- beginTimeType = 'begin';
- endTimeType = '';
- }
- beginTime = GD.getRelativeDate(beginTime, 'datetime', beginTimeType);
- endTime = GD.getRelativeDate(endTime, 'datetime', endTimeType);
- var flag = 0,
- staData,
- difData;
- if (!GD.testSearchTime(beginTime, endTime)) {
- return false;
- }
- if (difTagsInfo) {
- $.ajax({
- url: urlStr + difTagsInfo + '&beginTime=' + beginTime + '&endTime=' + endTime + '&dataType=snap',
- type: 'GET',
- cache: false,
- dataType: 'json',
- success: function (datas) {
- if (!datas) {
- difData = {};
- return ;
- }
- difData = datas;
- },
- complete: function (xhr) {
- xhr = null;
- flag ++;
- }
- });
- } else {
- flag ++;
- difData = {};
- complete();
- }
- if (staTagsInfo) {
- $.ajax({
- url: urlStr + staTagsInfo + '&beginTime=' + beginTime + '&endTime=' + endTime + '&is_difference=true',
- type: 'GET',
- cache: false,
- dataType: 'json',
- success: function (datas) {
- if (!datas) {
- staData = {};
- return ;
- }
- staData = datas;
- },
- complete: function (xhr) {
- xhr = null;
- flag ++;
- complete()
- }
- });
- } else {
- flag ++;
- staData = {};
- complete();
- }
- function complete() {
- if (flag < 2) {
- return ;
- }
- var datas = staData;
- for (var key in difData) {
- if (difData.hasOwnProperty(key)) {
- if (!datas[key]) {
- datas[key] = difData[key];
- }
- else {
- for (var k in difData[key]) {
- datas[key][k] = difData[key][k];
- }
- }
- }
- }
- var option = Node180_41chart.getOption(),
- _option = Node180_41_chart.getOption(),
- ses = _option.series;
- var series = [];
- for (var i = 0, len = Node180_41GroupInVarName.length; i < len; i++) {
- var indiacatorData = Node180_41GroupInVarName[i];
- var data = {};
- data.name = indiacatorData.displayName || indiacatorData.Desc;
- data.type = 'bar';
- data.data = [];
- for (var j = 0, leng = Node180_41GroupVarName.length; j < leng; j++) {
- var itemStyle={normal:{color:indiacatorData.color}};
- data.itemStyle=itemStyle;
- var deviceData = Node180_41GroupVarName[j];
- var value = 0;
- var tagName = '' + deviceData.Name + indiacatorData.Name;
- var statisticsType = Node180_41obj.statisticsTypeObj && Node180_41obj.statisticsTypeObj[tagName];
- value = datas[tagName] && datas[tagName][statisticsType] && datas[tagName][statisticsType].toFixed(2, 10) || 0;
- data.data.push(value);
- }
- series.push(data);
- }
- series && series[0] && (series[0].barGap = 0);
- option.series = series;
- if (Node180_41yRange === 'real') {
- var maxAndMin = GD.getMaxAndMinFromSeries(series);
- option.yAxis[0].min = maxAndMin.min < 0 ? Math.ceil(maxAndMin.min - 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 0;
- option.yAxis[0].max = maxAndMin.max > 1000 ? Math.ceil(maxAndMin.max + 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 1000;
- } else {
- option.yAxis[0].min = 0;
- option.yAxis[0].max = 1000;
- }
- Node180_41_chart.setOption(option, true);
- }
- }
- if(true){
- Node180_41Refresh();
- intervalTimers.push(setInterval(function(){
- Node180_41Refresh();
- },1000));
- } else {
- // Node180_41Search();
- }_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_42type = 'rect';
- var Node180_42 = new ht.Node(),
- Node180_42BorderWidth = 0*2;
- if (Node180_42type === 'arc') {
- Node180_42BorderWidth *= 0;
- }
- Node180_42.setImage(GD.getRectJSON(27*_ratio.ratioX, 208*_ratio.ratioY, Node180_42type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_42.setPosition(1370*ratio.ratioX, 357*ratio.ratioY);
- Node180_42.setSize(27*_ratio.ratioX, 208*_ratio.ratioY);
- Node180_42.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_42.a('node.width', 27*_ratio.ratioX);
- Node180_42.a('node.height', 208*_ratio.ratioY);
- Node180_42.a('node.type', Node180_42type);
- Node180_42.a('node.rect', [0, 0, 27*_ratio.ratioX, 208*_ratio.ratioY]);
- Node180_42.a('node.background', 'rgba(32,191,135,1)');
- Node180_42.a('node.gradientcolor', 'rgba(32,191,135,1)');
- Node180_42.a('node.gradient', '');
- Node180_42.a('node.borderwidth', Node180_42BorderWidth);
- Node180_42.a('node.color', 'rgba(0,0,0,0)');
- Node180_42.a('node.fillrect', [0,0,0,0]);
- Node180_42.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_42.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_42.a('node.fillgradient', '');
- if (Node180_42type !== 'rect') {
- Node180_42.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_42.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_42.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_42type === 'arc') {
- Node180_42.a('node.arcOval', true);
- }
- Node180_42.setRotation(0*Math.PI/180);
- Node180_42.borderWidth = Node180_42BorderWidth;
- Node180_42.borderFillwidth = Node180_42BorderWidth;
- dataModel.add(Node180_42);
- Node180_42._nodename = 'Node180_42'
- Node180_42._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_42,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_42, Node180_42.getImage());option = {
- tooltip : {
- formatter: "{a} <br/>{c} {b}"
- },
- toolbox: {
- show:false,
- feature: {
- //restore: {},
- saveAsImage: {}
- }
- },
- series: [
- {
- radius: '100%',
- name: '',
- type: 'gauge',
- splitNumber:2,
- min: 0,
- max: 50,
- startAngle:180,
- endAngle:0,
- axisTick:{
- length:5,
- lineStyle: {
- color:'rgba(255,255,255,1)'
- }
- },
- axisLabel: { // 坐标轴小标记
- textStyle: { // 属性lineStyle控制线条样式
- color: 'rgba(64,64,64,1)'
- },
- formatter: function (value, index) {
- return value.toFixed(0);
- }
- },
- axisLine: {
- lineStyle: {
- color: [[0.2, 'rgba(0,128,0,1)'],[1, 'rgba(192,192,192,1)']],
- width: 10
- }
- },
- splitLine:{
- length:10,
- lineStyle: {
- color: 'rgba(255,255,255,1)'
- }
- },
- pointer:{
- length:'80%',
- width:7
- },
- itemStyle: {
- normal: {
- opacity: 0
- }
- },
- detail: {formatter:'{value}',show:false},
- data: [{value: (getVarValue('demo.DEMO_AI009') ), name: ''}]
- }
- ]
- };
- _ratio = GD.getRatioWithRotation(0, ratio);
- var Node180_43 = new ht.HtmlNode();
- Node180_43.setPosition({'x':1515*ratio.ratioX,'y':325*ratio.ratioY});
- Node180_43.setWidth(270*_ratio.ratioX);
- Node180_43.setHeight(140*_ratio.ratioY);
- Node180_43.setScalable(false);
- Node180_43.setRotation(0);
- Node180_43.s({
- '2d.selectable': false,
- '2d.movable': false
- });
- chart = new ht.Chart(option, 270*_ratio.ratioX, 140*_ratio.ratioY);
- Node180_43.setHtml(chart);
- var Node180_43_chart = chart._chart;
- dataModel.add(Node180_43);_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_44 = new ht.Node();
- var Node180_44textStart, Node180_44textWidth, Node180_44lineStart, Node180_44align = 'center', Node180_44fontSize = 18.66662*_ratio.ratioY,Node180_44width = 43*_ratio.ratioX, Node180_44height = 23*_ratio.ratioY;
- (function () {
- if (Node180_44align === 'left') {
- Node180_44textStart = Node180_44fontSize * 0.2 > 2 ? Node180_44fontSize * 0.2 - 4 : Node180_44fontSize * 0.2 - 9;
- Node180_44textWidth = Node180_44width;
- Node180_44lineStart = 1;
- } else if (Node180_44align === 'right') {
- Node180_44textStart = 0;
- Node180_44textWidth =Node180_44fontSize <= 8 ? Node180_44width + Node180_44fontSize * 0.2 + 6 : Node180_44width - Node180_44fontSize * 0.2;
- Node180_44lineStart = (Node180_44width - (ht.Default.getTextSize('9.14', 'bold '+ Node180_44fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_44align === 'center') {
- Node180_44textStart = -3;
- Node180_44textWidth = Node180_44width;
- Node180_44lineStart = Node180_44width - ht.Default.getTextSize('9.14', 'bold '+ Node180_44fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_44.setImage(GD.getTextJSON(Node180_44width, Node180_44height, true, false, false, 'bold '+ Node180_44fontSize + 'px "Arial"'))
- Node180_44.setPosition(1509*ratio.ratioX, 306*ratio.ratioY);
- Node180_44.setWidth(Node180_44width);
- Node180_44.setHeight(Node180_44height);
- Node180_44._nodeType = 'text';
- Node180_44._disallowEvert = true;
- Node180_44.setRotation(0*Math.PI/180);
- Node180_44.a('node.width', Node180_44width);
- Node180_44.a('node.height', Node180_44height);
- Node180_44.a('node.rect', [0, 0, Node180_44width, Node180_44height]);
- Node180_44.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_44.a('node.borderwidth', 0);
- Node180_44.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_44.a('node.gradient','');
- Node180_44.a('node.gradientcolor','');
- Node180_44.a('node.text','9.14');
- Node180_44.a('node.textalign','center');
- Node180_44.a('node.textvAlign','middle');
- Node180_44.a('node.textrect', [Node180_44textStart, 0, Node180_44textWidth, Node180_44height]);
- Node180_44.a('node.color','rgba(0,0,0,1)');
- Node180_44.a('node.font','bold '+ Node180_44fontSize + 'px "Arial"');
- Node180_44.a('node.textvisible',true);
- Node180_44.a('node.linefeed',false);
- if (false) {
- Node180_44.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_44.a('node.text') || '9.14';
- var color=Node180_44.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,18.66662*0.5*_ratio.ratioY,Node180_44width,Node180_44height,18.66662*_ratio.ratioY,"center",color,'bold '+ Node180_44fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_44.a('node.underlinepoints',[Node180_44lineStart, (23 - 18.66662) * 0.5 * _ratio.ratioY + Node180_44fontSize + 2 , ht.Default.getTextSize('9.14', 'bold '+ Node180_44fontSize + 'px "Arial"').width + 6, (Node180_44height - Node180_44fontSize) * 0.5*_ratio.ratioY + Node180_44fontSize + 2 ]);
- Node180_44.a('node.underlinevisible',false);
- Node180_44.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_44);
- zoomNodeList.push({
- node: Node180_44,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_45 = new ht.Node();
- var Node180_45textStart, Node180_45textWidth, Node180_45lineStart, Node180_45align = 'left', Node180_45fontSize = 10.66664*_ratio.ratioY,Node180_45width = 69*_ratio.ratioX, Node180_45height = 13*_ratio.ratioY;
- (function () {
- if (Node180_45align === 'left') {
- Node180_45textStart = Node180_45fontSize * 0.2 > 2 ? Node180_45fontSize * 0.2 - 4 : Node180_45fontSize * 0.2 - 9;
- Node180_45textWidth = Node180_45width;
- Node180_45lineStart = 1;
- } else if (Node180_45align === 'right') {
- Node180_45textStart = 0;
- Node180_45textWidth =Node180_45fontSize <= 8 ? Node180_45width + Node180_45fontSize * 0.2 + 6 : Node180_45width - Node180_45fontSize * 0.2;
- Node180_45lineStart = (Node180_45width - (ht.Default.getTextSize('风速(m/s)', ' '+ Node180_45fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_45align === 'center') {
- Node180_45textStart = -3;
- Node180_45textWidth = Node180_45width;
- Node180_45lineStart = Node180_45width - ht.Default.getTextSize('风速(m/s)', ' '+ Node180_45fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_45.setImage(GD.getTextJSON(Node180_45width, Node180_45height, true, false, false, ' '+ Node180_45fontSize + 'px "Arial"'))
- Node180_45.setPosition(1522*ratio.ratioX, 334*ratio.ratioY);
- Node180_45.setWidth(Node180_45width);
- Node180_45.setHeight(Node180_45height);
- Node180_45._nodeType = 'text';
- Node180_45._disallowEvert = true;
- Node180_45.setRotation(0*Math.PI/180);
- Node180_45.a('node.width', Node180_45width);
- Node180_45.a('node.height', Node180_45height);
- Node180_45.a('node.rect', [0, 0, Node180_45width, Node180_45height]);
- Node180_45.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_45.a('node.borderwidth', 0);
- Node180_45.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_45.a('node.gradient','');
- Node180_45.a('node.gradientcolor','');
- Node180_45.a('node.text','风速(m/s)');
- Node180_45.a('node.textalign','left');
- Node180_45.a('node.textvAlign','middle');
- Node180_45.a('node.textrect', [Node180_45textStart, 0, Node180_45textWidth, Node180_45height]);
- Node180_45.a('node.color','rgba(0,0,0,1)');
- Node180_45.a('node.font',' '+ Node180_45fontSize + 'px "Arial"');
- Node180_45.a('node.textvisible',true);
- Node180_45.a('node.linefeed',false);
- if (false) {
- Node180_45.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_45.a('node.text') || '风速(m/s)';
- var color=Node180_45.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,10.66664*0.5*_ratio.ratioY,Node180_45width,Node180_45height,10.66664*_ratio.ratioY,"left",color,' '+ Node180_45fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_45.a('node.underlinepoints',[Node180_45lineStart, (13 - 10.66664) * 0.5 * _ratio.ratioY + Node180_45fontSize + 2 , ht.Default.getTextSize('风速(m/s)', ' '+ Node180_45fontSize + 'px "Arial"').width + 6, (Node180_45height - Node180_45fontSize) * 0.5*_ratio.ratioY + Node180_45fontSize + 2 ]);
- Node180_45.a('node.underlinevisible',false);
- Node180_45.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_45);
- zoomNodeList.push({
- node: Node180_45,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_46 = new ht.Node();
- var Node180_46textStart, Node180_46textWidth, Node180_46lineStart, Node180_46align = 'center', Node180_46fontSize = 18.66662*_ratio.ratioY,Node180_46width = 16*_ratio.ratioX, Node180_46height = 23*_ratio.ratioY;
- (function () {
- if (Node180_46align === 'left') {
- Node180_46textStart = Node180_46fontSize * 0.2 > 2 ? Node180_46fontSize * 0.2 - 4 : Node180_46fontSize * 0.2 - 9;
- Node180_46textWidth = Node180_46width;
- Node180_46lineStart = 1;
- } else if (Node180_46align === 'right') {
- Node180_46textStart = 0;
- Node180_46textWidth =Node180_46fontSize <= 8 ? Node180_46width + Node180_46fontSize * 0.2 + 6 : Node180_46width - Node180_46fontSize * 0.2;
- Node180_46lineStart = (Node180_46width - (ht.Default.getTextSize('8', 'bold '+ Node180_46fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_46align === 'center') {
- Node180_46textStart = -3;
- Node180_46textWidth = Node180_46width;
- Node180_46lineStart = Node180_46width - ht.Default.getTextSize('8', 'bold '+ Node180_46fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_46.setImage(GD.getTextJSON(Node180_46width, Node180_46height, true, false, false, 'bold '+ Node180_46fontSize + 'px "Arial"'))
- Node180_46.setPosition(1516*ratio.ratioX, 405*ratio.ratioY);
- Node180_46.setWidth(Node180_46width);
- Node180_46.setHeight(Node180_46height);
- Node180_46._nodeType = 'text';
- Node180_46._disallowEvert = true;
- Node180_46.setRotation(0*Math.PI/180);
- Node180_46.a('node.width', Node180_46width);
- Node180_46.a('node.height', Node180_46height);
- Node180_46.a('node.rect', [0, 0, Node180_46width, Node180_46height]);
- Node180_46.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_46.a('node.borderwidth', 0);
- Node180_46.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_46.a('node.gradient','');
- Node180_46.a('node.gradientcolor','');
- Node180_46.a('node.text','8');
- Node180_46.a('node.textalign','center');
- Node180_46.a('node.textvAlign','middle');
- Node180_46.a('node.textrect', [Node180_46textStart, 0, Node180_46textWidth, Node180_46height]);
- Node180_46.a('node.color','rgba(0,0,0,1)');
- Node180_46.a('node.font','bold '+ Node180_46fontSize + 'px "Arial"');
- Node180_46.a('node.textvisible',true);
- Node180_46.a('node.linefeed',false);
- if (false) {
- Node180_46.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_46.a('node.text') || '8';
- var color=Node180_46.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,18.66662*0.5*_ratio.ratioY,Node180_46width,Node180_46height,18.66662*_ratio.ratioY,"center",color,'bold '+ Node180_46fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_46.a('node.underlinepoints',[Node180_46lineStart, (23 - 18.66662) * 0.5 * _ratio.ratioY + Node180_46fontSize + 2 , ht.Default.getTextSize('8', 'bold '+ Node180_46fontSize + 'px "Arial"').width + 6, (Node180_46height - Node180_46fontSize) * 0.5*_ratio.ratioY + Node180_46fontSize + 2 ]);
- Node180_46.a('node.underlinevisible',false);
- Node180_46.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_46);
- zoomNodeList.push({
- node: Node180_46,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); option = {
- tooltip : {
- formatter: "{a} <br/>{c} {b}"
- },
- toolbox: {
- show:false,
- feature: {
- //restore: {},
- saveAsImage: {}
- }
- },
- series: [
- {
- radius: '100%',
- name: '',
- type: 'gauge',
- splitNumber:2,
- min: 0,
- max: 1250,
- startAngle:180,
- endAngle:0,
- axisTick:{
- length:5,
- lineStyle: {
- color:'rgba(255,255,255,1)'
- }
- },
- axisLabel: { // 坐标轴小标记
- textStyle: { // 属性lineStyle控制线条样式
- color: 'rgba(64,64,64,1)'
- },
- formatter: function (value, index) {
- return value.toFixed(0);
- }
- },
- axisLine: {
- lineStyle: {
- color: [[0.488888888888889, 'rgba(128,255,128,1)'],[1, 'rgba(192,192,192,1)']],
- width: 10
- }
- },
- splitLine:{
- length:10,
- lineStyle: {
- color: 'rgba(255,255,255,1)'
- }
- },
- pointer:{
- length:'80%',
- width:7
- },
- itemStyle: {
- normal: {
- opacity: 0
- }
- },
- detail: {formatter:'{value}',show:false},
- data: [{value: (getVarValue('demo.DEMO_AI009') ), name: ''}]
- }
- ]
- };
- _ratio = GD.getRatioWithRotation(0, ratio);
- var Node180_47 = new ht.HtmlNode();
- Node180_47.setPosition({'x':1744*ratio.ratioX,'y':327*ratio.ratioY});
- Node180_47.setWidth(270*_ratio.ratioX);
- Node180_47.setHeight(140*_ratio.ratioY);
- Node180_47.setScalable(false);
- Node180_47.setRotation(0);
- Node180_47.s({
- '2d.selectable': false,
- '2d.movable': false
- });
- chart = new ht.Chart(option, 270*_ratio.ratioX, 140*_ratio.ratioY);
- Node180_47.setHtml(chart);
- var Node180_47_chart = chart._chart;
- dataModel.add(Node180_47);_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_48 = new ht.Node();
- var Node180_48textStart, Node180_48textWidth, Node180_48lineStart, Node180_48align = 'center', Node180_48fontSize = 18.66662*_ratio.ratioY,Node180_48width = 43*_ratio.ratioX, Node180_48height = 23*_ratio.ratioY;
- (function () {
- if (Node180_48align === 'left') {
- Node180_48textStart = Node180_48fontSize * 0.2 > 2 ? Node180_48fontSize * 0.2 - 4 : Node180_48fontSize * 0.2 - 9;
- Node180_48textWidth = Node180_48width;
- Node180_48lineStart = 1;
- } else if (Node180_48align === 'right') {
- Node180_48textStart = 0;
- Node180_48textWidth =Node180_48fontSize <= 8 ? Node180_48width + Node180_48fontSize * 0.2 + 6 : Node180_48width - Node180_48fontSize * 0.2;
- Node180_48lineStart = (Node180_48width - (ht.Default.getTextSize('10.1', 'bold '+ Node180_48fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_48align === 'center') {
- Node180_48textStart = -3;
- Node180_48textWidth = Node180_48width;
- Node180_48lineStart = Node180_48width - ht.Default.getTextSize('10.1', 'bold '+ Node180_48fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_48.setImage(GD.getTextJSON(Node180_48width, Node180_48height, true, false, false, 'bold '+ Node180_48fontSize + 'px "Arial"'))
- Node180_48.setPosition(1752*ratio.ratioX, 311*ratio.ratioY);
- Node180_48.setWidth(Node180_48width);
- Node180_48.setHeight(Node180_48height);
- Node180_48._nodeType = 'text';
- Node180_48._disallowEvert = true;
- Node180_48.setRotation(0*Math.PI/180);
- Node180_48.a('node.width', Node180_48width);
- Node180_48.a('node.height', Node180_48height);
- Node180_48.a('node.rect', [0, 0, Node180_48width, Node180_48height]);
- Node180_48.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_48.a('node.borderwidth', 0);
- Node180_48.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_48.a('node.gradient','');
- Node180_48.a('node.gradientcolor','');
- Node180_48.a('node.text','10.1');
- Node180_48.a('node.textalign','center');
- Node180_48.a('node.textvAlign','middle');
- Node180_48.a('node.textrect', [Node180_48textStart, 0, Node180_48textWidth, Node180_48height]);
- Node180_48.a('node.color','rgba(0,0,0,1)');
- Node180_48.a('node.font','bold '+ Node180_48fontSize + 'px "Arial"');
- Node180_48.a('node.textvisible',true);
- Node180_48.a('node.linefeed',false);
- if (false) {
- Node180_48.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_48.a('node.text') || '10.1';
- var color=Node180_48.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,18.66662*0.5*_ratio.ratioY,Node180_48width,Node180_48height,18.66662*_ratio.ratioY,"center",color,'bold '+ Node180_48fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_48.a('node.underlinepoints',[Node180_48lineStart, (23 - 18.66662) * 0.5 * _ratio.ratioY + Node180_48fontSize + 2 , ht.Default.getTextSize('10.1', 'bold '+ Node180_48fontSize + 'px "Arial"').width + 6, (Node180_48height - Node180_48fontSize) * 0.5*_ratio.ratioY + Node180_48fontSize + 2 ]);
- Node180_48.a('node.underlinevisible',false);
- Node180_48.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_48);
- zoomNodeList.push({
- node: Node180_48,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_49 = new ht.Node();
- var Node180_49textStart, Node180_49textWidth, Node180_49lineStart, Node180_49align = 'left', Node180_49fontSize = 10.66664*_ratio.ratioY,Node180_49width = 78*_ratio.ratioX, Node180_49height = 13*_ratio.ratioY;
- (function () {
- if (Node180_49align === 'left') {
- Node180_49textStart = Node180_49fontSize * 0.2 > 2 ? Node180_49fontSize * 0.2 - 4 : Node180_49fontSize * 0.2 - 9;
- Node180_49textWidth = Node180_49width;
- Node180_49lineStart = 1;
- } else if (Node180_49align === 'right') {
- Node180_49textStart = 0;
- Node180_49textWidth =Node180_49fontSize <= 8 ? Node180_49width + Node180_49fontSize * 0.2 + 6 : Node180_49width - Node180_49fontSize * 0.2;
- Node180_49lineStart = (Node180_49width - (ht.Default.getTextSize('实发功率(MW)', ' '+ Node180_49fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_49align === 'center') {
- Node180_49textStart = -3;
- Node180_49textWidth = Node180_49width;
- Node180_49lineStart = Node180_49width - ht.Default.getTextSize('实发功率(MW)', ' '+ Node180_49fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_49.setImage(GD.getTextJSON(Node180_49width, Node180_49height, true, false, false, ' '+ Node180_49fontSize + 'px "Arial"'))
- Node180_49.setPosition(1748*ratio.ratioX, 340*ratio.ratioY);
- Node180_49.setWidth(Node180_49width);
- Node180_49.setHeight(Node180_49height);
- Node180_49._nodeType = 'text';
- Node180_49._disallowEvert = true;
- Node180_49.setRotation(0*Math.PI/180);
- Node180_49.a('node.width', Node180_49width);
- Node180_49.a('node.height', Node180_49height);
- Node180_49.a('node.rect', [0, 0, Node180_49width, Node180_49height]);
- Node180_49.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_49.a('node.borderwidth', 0);
- Node180_49.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_49.a('node.gradient','');
- Node180_49.a('node.gradientcolor','');
- Node180_49.a('node.text','实发功率(MW)');
- Node180_49.a('node.textalign','left');
- Node180_49.a('node.textvAlign','middle');
- Node180_49.a('node.textrect', [Node180_49textStart, 0, Node180_49textWidth, Node180_49height]);
- Node180_49.a('node.color','rgba(0,0,0,1)');
- Node180_49.a('node.font',' '+ Node180_49fontSize + 'px "Arial"');
- Node180_49.a('node.textvisible',true);
- Node180_49.a('node.linefeed',false);
- if (false) {
- Node180_49.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_49.a('node.text') || '实发功率(MW)';
- var color=Node180_49.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,10.66664*0.5*_ratio.ratioY,Node180_49width,Node180_49height,10.66664*_ratio.ratioY,"left",color,' '+ Node180_49fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_49.a('node.underlinepoints',[Node180_49lineStart, (13 - 10.66664) * 0.5 * _ratio.ratioY + Node180_49fontSize + 2 , ht.Default.getTextSize('实发功率(MW)', ' '+ Node180_49fontSize + 'px "Arial"').width + 6, (Node180_49height - Node180_49fontSize) * 0.5*_ratio.ratioY + Node180_49fontSize + 2 ]);
- Node180_49.a('node.underlinevisible',false);
- Node180_49.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_49);
- zoomNodeList.push({
- node: Node180_49,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_50 = new ht.Node();
- var Node180_50textStart, Node180_50textWidth, Node180_50lineStart, Node180_50align = 'center', Node180_50fontSize = 18.66662*_ratio.ratioY,Node180_50width = 27*_ratio.ratioX, Node180_50height = 23*_ratio.ratioY;
- (function () {
- if (Node180_50align === 'left') {
- Node180_50textStart = Node180_50fontSize * 0.2 > 2 ? Node180_50fontSize * 0.2 - 4 : Node180_50fontSize * 0.2 - 9;
- Node180_50textWidth = Node180_50width;
- Node180_50lineStart = 1;
- } else if (Node180_50align === 'right') {
- Node180_50textStart = 0;
- Node180_50textWidth =Node180_50fontSize <= 8 ? Node180_50width + Node180_50fontSize * 0.2 + 6 : Node180_50width - Node180_50fontSize * 0.2;
- Node180_50lineStart = (Node180_50width - (ht.Default.getTextSize('12', 'bold '+ Node180_50fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_50align === 'center') {
- Node180_50textStart = -3;
- Node180_50textWidth = Node180_50width;
- Node180_50lineStart = Node180_50width - ht.Default.getTextSize('12', 'bold '+ Node180_50fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_50.setImage(GD.getTextJSON(Node180_50width, Node180_50height, true, false, false, 'bold '+ Node180_50fontSize + 'px "Arial"'))
- Node180_50.setPosition(1747*ratio.ratioX, 408*ratio.ratioY);
- Node180_50.setWidth(Node180_50width);
- Node180_50.setHeight(Node180_50height);
- Node180_50._nodeType = 'text';
- Node180_50._disallowEvert = true;
- Node180_50.setRotation(0*Math.PI/180);
- Node180_50.a('node.width', Node180_50width);
- Node180_50.a('node.height', Node180_50height);
- Node180_50.a('node.rect', [0, 0, Node180_50width, Node180_50height]);
- Node180_50.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_50.a('node.borderwidth', 0);
- Node180_50.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_50.a('node.gradient','');
- Node180_50.a('node.gradientcolor','');
- Node180_50.a('node.text','12');
- Node180_50.a('node.textalign','center');
- Node180_50.a('node.textvAlign','middle');
- Node180_50.a('node.textrect', [Node180_50textStart, 0, Node180_50textWidth, Node180_50height]);
- Node180_50.a('node.color','rgba(0,0,0,1)');
- Node180_50.a('node.font','bold '+ Node180_50fontSize + 'px "Arial"');
- Node180_50.a('node.textvisible',true);
- Node180_50.a('node.linefeed',false);
- if (false) {
- Node180_50.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_50.a('node.text') || '12';
- var color=Node180_50.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,18.66662*0.5*_ratio.ratioY,Node180_50width,Node180_50height,18.66662*_ratio.ratioY,"center",color,'bold '+ Node180_50fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_50.a('node.underlinepoints',[Node180_50lineStart, (23 - 18.66662) * 0.5 * _ratio.ratioY + Node180_50fontSize + 2 , ht.Default.getTextSize('12', 'bold '+ Node180_50fontSize + 'px "Arial"').width + 6, (Node180_50height - Node180_50fontSize) * 0.5*_ratio.ratioY + Node180_50fontSize + 2 ]);
- Node180_50.a('node.underlinevisible',false);
- Node180_50.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_50);
- zoomNodeList.push({
- node: Node180_50,
- borderWidth: 0,
- attr: 'node.borderwidth'
- });
- var Node180_51style={eachbarbackcolor:"rgba(255,255,255,0)",shadowColor:"rgba(0, 0, 0, 0)"};
- var Node180_51obj=getIndicatorAndSheBeiArr(Node180_51GroupVarName,Node180_51GroupInVarName);
- var Node180_51series=getIndicatorOrShebeiInfo(Node180_51GroupVarName,Node180_51GroupInVarName,Node180_51style);
- Node180_51series && Node180_51series[0] && (Node180_51series[0].barGap = 0);
- var Node180_51option = {
- tooltip : {
- trigger: 'axis',
- axisPointer : {
- type : 'shadow',
- shadowStyle: {
- color: {
- type: 'linear',
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [{
- offset: 0, color: 'rgba(100,100,100,1)' // 0% 处的颜色
- }, {
- offset: 1, color: 'rgba(100,100,100,1)' // 100% 处的颜色
- }],
- globalCoord: false // 缺省为 false
- },
- opacity: 0.2
- }
- },
- // formatter:function (params, ticket, callback) {
- // console.log(params, ticket);
- // return params.name +': <br/>'+ parseFloat(params.value).toFixed(2) +' ('+parseFloat(params.percent)+')%';
- // var result ;
- // for (var i = 0, len = params.length; i < len; i++) {
- // }
- // }
- },
- grid: {
- left: '0%',
- right: '0%',
- bottom: '3%',
- top:'5%',
- containLabel: true
- },
- legend:{
- show:false,
- data:Node180_51obj["indicatorArr"]
- },
- xAxis : [
- {
- type : 'category',
- splitNumber:0,
- data :Node180_51obj["shebeiArr"],
- axisLine:{
- lineStyle:{
- color:'rgba(128,128,128,1)'
- }
- },
- axisLabel:{
- inside:false,
- interval: 0,
- textStyle:{
- fontSize:"13.3333"
- }
- },
- z: 10,
- splitLine:{
- show:false,
- lineStyle:{
- color:'rgba(211,211,211,1)'
- }
- }
- }
- ],
- yAxis : [
- {
- type : 'value',
- min:0,
- max:1000,
- axisTick:{
- lineStyle:{
- color:'rgba(128,128,128,1)'
- }
- },
- precision:2,
- axisLine:{
- lineStyle:{
- color:'rgba(128,128,128,1)'
- }
- },
- axisLabel:{
- textStyle:{
- fontSize:"13.3333"
- }
- },
- splitLine:{
- show:true,
- lineStyle:{
- color:'rgba(211,211,211,1)'
- }
- }
- }],
- color: Node180_51obj.colorArr,
- series : Node180_51series
-
- };
- var Node180_51 = new ht.HtmlNode();
- var Node180_51BeginTime = "";
- var Node180_51endTime = "";
- var Node180_51yRange = 'fixed';
- Node180_51.setPosition({'x':1352*ratio.ratioX,'y':575*ratio.ratioY});
- Node180_51.setWidth(1110*ratio.ratioX);
- Node180_51.setHeight(208*ratio.ratioY);
- Node180_51.setScalable(false);
- Node180_51.s({
- '2d.selectable': false,
- '2d.movable': false
- });
- var Node180_51chart = new ht.Chart(Node180_51option, 1110*ratio.ratioX, 208*ratio.ratioY);
- Node180_51.setHtml( Node180_51chart);
- var Node180_51_chart = Node180_51chart._chart;
- dataModel.add(Node180_51);
- function Node180_51Refresh(){
- var option = Node180_51chart.getOption(),
- _option = Node180_51_chart.getOption(),
- ses = _option.series;
- option.series = getIndicatorOrShebeiInfo(Node180_51GroupVarName,Node180_51GroupInVarName,Node180_51style);
- if (Node180_51yRange === 'real') {
- var maxAndMin = GD.getMaxAndMinFromSeries(ses);
- option.yAxis[0].min = maxAndMin.min < 0 ? Math.ceil(maxAndMin.min - 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 0;
- option.yAxis[0].max = maxAndMin.max > 1000 ? Math.ceil(maxAndMin.max + 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 1000;
- }
- Node180_51_chart.setOption(option, true);
- }
- function Node180_51Search() {
- var urlStr = "http://" + webServiceIP + ":" + webServicePort + "/api/HistorySummary?tagName=";
- // var tagsInfo = encodeURIComponent(Node180_51obj.tagArr.join(','));
- var beginTime = "",
- endTime = "",
- type = 'static'; // 时间段:当日,当月,当年 。固定时间
- var groupbarType = 'snap';
- var beginTimeType = 'begin',
- endTimeType = 'end';
- var difTagsInfo = '',
- staTagsInfo = '',
- staTagArr = [],
- difTagArr = [];
- (function () {
- var tagsType = Node180_51obj.statisticsTypeObj,
- k, v;
- for (var key in tagsType) {
- if (tagsType.hasOwnProperty(key)) {
- k = key;
- v = tagsType[k];
- if (k === 'Difference' || k === 'EqLastYear' || k === 'Availble') {
- difTagArr.push(k);
- } else {
- staTagArr.push(k);
- }
- }
- }
- difTagsInfo = encodeURIComponent(difTagArr.join(','));
- staTagsInfo = encodeURIComponent(staTagArr.join(','));
- })();
- if (groupbarType === 'snap') {
- Node180_51Refresh()
- return;
- }
- if (type === 'relday') {
- if (endTime === '0d') { //如果显示当天时间,则结束时间为当前时间
- endTimeType = '';
- }
- } else if (type === 'relmonth') {
- if (endTime === '0m') {
- endTimeType = ''
- }
- } else if (type === 'relyear') {
- if (endTime === '0y') {
- endTimeType = ''
- }
- } else if (type === 'static') {
- beginTimeType = '';
- endTimeType = '';
- } else {
- beginTimeType = 'begin';
- endTimeType = '';
- }
- beginTime = GD.getRelativeDate(beginTime, 'datetime', beginTimeType);
- endTime = GD.getRelativeDate(endTime, 'datetime', endTimeType);
- var flag = 0,
- staData,
- difData;
- if (!GD.testSearchTime(beginTime, endTime)) {
- return false;
- }
- if (difTagsInfo) {
- $.ajax({
- url: urlStr + difTagsInfo + '&beginTime=' + beginTime + '&endTime=' + endTime + '&dataType=snap',
- type: 'GET',
- cache: false,
- dataType: 'json',
- success: function (datas) {
- if (!datas) {
- difData = {};
- return ;
- }
- difData = datas;
- },
- complete: function (xhr) {
- xhr = null;
- flag ++;
- }
- });
- } else {
- flag ++;
- difData = {};
- complete();
- }
- if (staTagsInfo) {
- $.ajax({
- url: urlStr + staTagsInfo + '&beginTime=' + beginTime + '&endTime=' + endTime + '&is_difference=true',
- type: 'GET',
- cache: false,
- dataType: 'json',
- success: function (datas) {
- if (!datas) {
- staData = {};
- return ;
- }
- staData = datas;
- },
- complete: function (xhr) {
- xhr = null;
- flag ++;
- complete()
- }
- });
- } else {
- flag ++;
- staData = {};
- complete();
- }
- function complete() {
- if (flag < 2) {
- return ;
- }
- var datas = staData;
- for (var key in difData) {
- if (difData.hasOwnProperty(key)) {
- if (!datas[key]) {
- datas[key] = difData[key];
- }
- else {
- for (var k in difData[key]) {
- datas[key][k] = difData[key][k];
- }
- }
- }
- }
- var option = Node180_51chart.getOption(),
- _option = Node180_51_chart.getOption(),
- ses = _option.series;
- var series = [];
- for (var i = 0, len = Node180_51GroupInVarName.length; i < len; i++) {
- var indiacatorData = Node180_51GroupInVarName[i];
- var data = {};
- data.name = indiacatorData.displayName || indiacatorData.Desc;
- data.type = 'bar';
- data.data = [];
- for (var j = 0, leng = Node180_51GroupVarName.length; j < leng; j++) {
- var itemStyle={normal:{color:indiacatorData.color}};
- data.itemStyle=itemStyle;
- var deviceData = Node180_51GroupVarName[j];
- var value = 0;
- var tagName = '' + deviceData.Name + indiacatorData.Name;
- var statisticsType = Node180_51obj.statisticsTypeObj && Node180_51obj.statisticsTypeObj[tagName];
- value = datas[tagName] && datas[tagName][statisticsType] && datas[tagName][statisticsType].toFixed(2, 10) || 0;
- data.data.push(value);
- }
- series.push(data);
- }
- series && series[0] && (series[0].barGap = 0);
- option.series = series;
- if (Node180_51yRange === 'real') {
- var maxAndMin = GD.getMaxAndMinFromSeries(series);
- option.yAxis[0].min = maxAndMin.min < 0 ? Math.ceil(maxAndMin.min - 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 0;
- option.yAxis[0].max = maxAndMin.max > 1000 ? Math.ceil(maxAndMin.max + 0.2*Math.abs(maxAndMin.max - maxAndMin.min)) : 1000;
- } else {
- option.yAxis[0].min = 0;
- option.yAxis[0].max = 1000;
- }
- Node180_51_chart.setOption(option, true);
- }
- }
- if(true){
- Node180_51Refresh();
- intervalTimers.push(setInterval(function(){
- Node180_51Refresh();
- },1000));
- } else {
- // Node180_51Search();
- }_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_52type = 'rect';
- var Node180_52 = new ht.Node(),
- Node180_52BorderWidth = 0*2;
- if (Node180_52type === 'arc') {
- Node180_52BorderWidth *= 0;
- }
- Node180_52.setImage(GD.getRectJSON(27*_ratio.ratioX, 208*_ratio.ratioY, Node180_52type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_52.setPosition(770*ratio.ratioX, 566*ratio.ratioY);
- Node180_52.setSize(27*_ratio.ratioX, 208*_ratio.ratioY);
- Node180_52.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_52.a('node.width', 27*_ratio.ratioX);
- Node180_52.a('node.height', 208*_ratio.ratioY);
- Node180_52.a('node.type', Node180_52type);
- Node180_52.a('node.rect', [0, 0, 27*_ratio.ratioX, 208*_ratio.ratioY]);
- Node180_52.a('node.background', 'rgba(32,191,135,1)');
- Node180_52.a('node.gradientcolor', 'rgba(32,191,135,1)');
- Node180_52.a('node.gradient', '');
- Node180_52.a('node.borderwidth', Node180_52BorderWidth);
- Node180_52.a('node.color', 'rgba(0,0,0,0)');
- Node180_52.a('node.fillrect', [0,0,0,0]);
- Node180_52.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_52.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_52.a('node.fillgradient', '');
- if (Node180_52type !== 'rect') {
- Node180_52.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_52.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_52.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_52type === 'arc') {
- Node180_52.a('node.arcOval', true);
- }
- Node180_52.setRotation(0*Math.PI/180);
- Node180_52.borderWidth = Node180_52BorderWidth;
- Node180_52.borderFillwidth = Node180_52BorderWidth;
- dataModel.add(Node180_52);
- Node180_52._nodename = 'Node180_52'
- Node180_52._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_52,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_52, Node180_52.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_53type = 'rect';
- var Node180_53 = new ht.Node(),
- Node180_53BorderWidth = 0*2;
- if (Node180_53type === 'arc') {
- Node180_53BorderWidth *= 0;
- }
- Node180_53.setImage(GD.getRectJSON(27*_ratio.ratioX, 208*_ratio.ratioY, Node180_53type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_53.setPosition(771*ratio.ratioX, 777*ratio.ratioY);
- Node180_53.setSize(27*_ratio.ratioX, 208*_ratio.ratioY);
- Node180_53.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_53.a('node.width', 27*_ratio.ratioX);
- Node180_53.a('node.height', 208*_ratio.ratioY);
- Node180_53.a('node.type', Node180_53type);
- Node180_53.a('node.rect', [0, 0, 27*_ratio.ratioX, 208*_ratio.ratioY]);
- Node180_53.a('node.background', 'rgba(32,191,135,1)');
- Node180_53.a('node.gradientcolor', 'rgba(32,191,135,1)');
- Node180_53.a('node.gradient', '');
- Node180_53.a('node.borderwidth', Node180_53BorderWidth);
- Node180_53.a('node.color', 'rgba(0,0,0,0)');
- Node180_53.a('node.fillrect', [0,0,0,0]);
- Node180_53.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_53.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_53.a('node.fillgradient', '');
- if (Node180_53type !== 'rect') {
- Node180_53.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_53.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_53.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_53type === 'arc') {
- Node180_53.a('node.arcOval', true);
- }
- Node180_53.setRotation(0*Math.PI/180);
- Node180_53.borderWidth = Node180_53BorderWidth;
- Node180_53.borderFillwidth = Node180_53BorderWidth;
- dataModel.add(Node180_53);
- Node180_53._nodename = 'Node180_53'
- Node180_53._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_53,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_53, Node180_53.getImage());var Node180_54;
- var Node180_54_chart;
- var Node180_54dictags='';
- var Node180_54tags='';
- var Node180_54YAxisArr = [];
- var Node180_54TagsObjArr = [{"pvList":[],"visible":true,"name":"demo.DEMO_AI001","VarName":"demo.DEMO_AI001","Name":"demo.DEMO_AI001","Low":0.0,"High":100.0,"LineWid":1,"Col":"255, 0, 0","displayName":"","Unit":"","VisExp":"","TrendDrawType":0,"ShowScaleType":1,"Interval":1,"LimitValColList":[],"CrossLinePointType":0},{"pvList":[],"visible":true,"name":"demo.DEMO_AI002","VarName":"demo.DEMO_AI002","Name":"demo.DEMO_AI002","Low":0.0,"High":100.0,"LineWid":1,"Col":"0, 192, 0","displayName":"","Unit":"","VisExp":"","TrendDrawType":0,"ShowScaleType":1,"Interval":1,"LimitValColList":[],"CrossLinePointType":0}];
- var Node180_54TagsArr = [];
- var Node180_54TagDataArr = [],
- Node180_54UnitDicObj = {};
- var Node180_54isMultiYaxis = false,
- Node180_54isFreeRange = false;
- var Node180_54IntervalTimer;
- var Node180_54RefreshCount = 0;
- var Node180_54interval, Node180_54count, Node180_54pointInterval, Node180_54contextmenu;
- function Node180_54createYAxis (min, max, yAxiColor, gridlinewidth, show) {
- return {
- show: show,
- splitNumber:2,
- type: 'value',
- min:min,
- max:max,
- interval: parseInt((max - min) / 2) || 20,
- axisLine:{
- lineStyle:{
- color:yAxiColor
- }
- },
- splitLine:{
- show: true,
- lineStyle:{
- color:'rgba(192,192,192,1)' ,
- width:gridlinewidth,
- type:'solid'
- }
- },
- axisTick:{
- show:true,
- lineStyle:{
- color:yAxiColor
- }
- },
- axisLabel:{
- textStyle:{
- color:yAxiColor,
- fontSize:13.3333
- },
- formatter: function (value) {
- return value.toFixed(1);
- }
- }
- }
- }
- function Node180_54loadYAxis(tagsArr) {
- if (!tagsArr) return ;
- Node180_54dictags = {};
- Node180_54TagDataArr = [];
- Node180_54UnitDicObj = {};
- Node180_54YAxisArr.length = 0;
- var tag, yAxis, tempArr = [], leftCount = 0, rightCount = 0, hideCount = 0, hideWidth = 0, tagData, tagName;
- Node180_54Option.legend.data.length = 0;
- for (var i = 0, len = tagsArr.length; i < len; i++) {
- tag = tagsArr[i];
- tagData = {};
- if(Node180_54isMultiYaxis||Node180_54isFreeRange){
- yAxis = Node180_54createYAxis(tag.Low, tag.High, 'rgb('+ tag.Col +')', tag.LineWid, true);
- }else{
- yAxis = Node180_54createYAxis(0, 1000, 'rgba(105,105,105,1)', tag.LineWid, true);
- }
-
- if (tag.ShowScaleType === 0 ) {
- yAxis.show = false;
- yAxis.position = 'left';
- yAxis.offset = 0;
- hideCount ++;
- hideWidth += GD.measureCanvasText(yAxis.max, 13.3333+'px') + 10;
- } else if (tag.ShowScaleType === 1) {
- yAxis.position = 'left';
- yAxis.offset = leftCount * 60;
- leftCount++;
- } else if (tag.ShowScaleType === 2) {
- yAxis.position = 'right';
- yAxis.offset = rightCount * 60;
- rightCount ++;
- }
- if (Node180_54isFreeRange) {
- yAxis.max = function (value) {
- var t = Math.abs((value.max - value.min) * 0.2);
- t = t == 0 ? 10 : t;
- return Math.ceil(value.max + t);
- };
- yAxis.min = function (value) {
- var t = Math.abs((value.max - value.min) * 0.2);
- t = t == 0 ? 10 : t;
- return Math.floor(value.min - t);
- };
- hideCount = 0;
- }
- if (!Node180_54isMultiYaxis) {
- if (i === 0) {
- Node180_54YAxisArr.push(yAxis);
- hideCount = 0;
- }
- } else {
- Node180_54YAxisArr.push(yAxis);
- }
- if (tag.name) {
- tagName = tag.name;
- if (tagName.indexOf('+') !== -1) {
- tagName = GD.eval(tagName);
- }
- getVarValue(tagName);
- tempArr.push(tagName);
- tagData.name = tagName;
- tagData.displayName = tag.displayName;
- // Node180_54Option.legend.data[i] = tagData.displayName;
- Node180_54UnitDicObj[tagData.displayName] = tagData.Unit;
-
- Node180_54dictags[tagName] = tag.displayName;
- Node180_54dictags[tagName + 'index'] = i;
- }
- Node180_54TagDataArr.push(tagData);
- }
- Node180_54tags = tempArr.join(',');
- Node180_54TagsArr = tempArr;
- if (hideCount > 0 && Node180_54isMultiYaxis) {
- Node180_54Option.grid.left = (-1) * hideWidth;
- }
- }
- function Node180_54GetHistoryData(callback) {
- var Node180_54Now = Date.now();
- var Node180_54CmdStr = Node180_54tags + '&beginTime='+ moment(Node180_54Now-Node180_54interval*1000).format('YYYY-MM-DD HH:mm:ss') +'&endTime='+ moment(Node180_54Now).format('YYYY-MM-DD HH:mm:ss') +'&interval='+ Node180_54pointInterval +'&count='+Node180_54count;
- GD.getHisTrendData(Node180_54CmdStr, function (data) {
- Node180_54SetupHistoryData(data);
- callback();
- });
- }
- function Node180_54SetupHistoryData(data) {
- var hisValues = data || {};
- var k = 0;
- var date = [];
- var test_data = {};
- var dictagdesc = Node180_54dictags,
- areaStyleShow = false;
- var option = Node180_54Option;
- option.legend && option.legend.data && (option.legend.data.length = 0);
- for (tag in hisValues) {
- test_data[tag] = [];
- option.series[k] = {};
- option.series[k].name = dictagdesc[tag];
- option.series[k].type = 'line';
- option.series[k].showSymbol = false;
- option.series[k].sampling = 'average';
- option.series[k].symbol = "none";
- option.series[k].animation = false;
- if (option.yAxis && option.yAxis.length > 1) {
- dictagdesc[tag + 'index'] && (option.series[k].yAxisIndex = dictagdesc[tag + 'index']);
- }
-
- if (areaStyleShow) {
- option.series[k].areaStyle = {
- normal: {}
- };
- }
- option.legend && option.legend.data && option.legend.data.push(dictagdesc[tag]);
- for (var i = 0; i < hisValues[tag].length; i++) {
- var time = hisValues[tag][i].Time;
- var timepts = time.split(' ');
- var timepars = timepts[0].split('/');
- if (timepars[1] < 10) {
- time = time.replace("/" + timepars[1] + "/",
- "/0" + timepars[1] + "/");
- }
- if (timepars[2] < 10) {
- time = time.replace("/" + timepars[2] + " ",
- "/0" + timepars[2] + " ");
- }
- //2017-04-01 15:34:28.000
- time = time.replace("/", "-");
- time = time.replace("/", "-");
- time = time.replace(" ", "T");
- var tagTime = moment(time).format();
- var tagValue = parseFloat(hisValues[tag][i].Value).toFixed(2);
- test_data[tag][i] = {
- name: tagTime,
- value: [
- tagTime,
- tagValue
- ]
- };
- }
- option.series[k].data = test_data[tag];
- k++;
- }
- Node180_54BindOption(option)
- }
- function Node180_54BindOption(option) {
- if (option.xAxis) {
- option.xAxis.interval = 600*1000 / 5;
- option.xAxis.max = Date.now() + (600 * (1-(0.666 || 1)) * 1000);
- }
- Node180_54_chart.setOption(option, true);
- }
- function Node180_54DisposeChart() {
- Node180_54contextmenu && Node180_54contextmenu.dispose();
- Node180_54_chart.dispose();
- }
- function Node180_54GetRealData() {
- var data, tag, newDate, series, currentdata, oldData;
- series = Node180_54Option.series;
- newDate = Date.now();
- for (var i = 0, l = Node180_54TagDataArr.length; i < l; i++) {
- data = Node180_54TagDataArr[i];
- if (!series[i]) continue;
- currentdata = series[i].data;
- oldData = currentdata.shift();
- oldData = oldData || {};
- oldData.name = moment(newDate).format('YYYY-MM-DD HH:mm:ss');
- if (oldData.value) {
- oldData.value[0] = newDate;
- oldData.value[1] = (getVarValue(data.name) - 0).toFixed(2);
- } else {
- oldData.value = [newDate, (getVarValue(data.name) - 0).toFixed(2)];
- }
- currentdata.push(oldData);
- if(series[i].data.length > 20000)
- {
- series[i].data.splice(0,series[i].data.length-20000);
- }
- }
- if (++ Node180_54RefreshCount > 900) {
- // 刷新超过半小时就重置一次
- Node180_54RefreshCount = 0;
- Node180_54DisposeChart();
- Node180_54InitChart();
- }
- Node180_54BindOption(Node180_54Option)
- }
- function Node180_54AutoRefresh() {
- Node180_54IntervalTimer && clearInterval(Node180_54IntervalTimer);
- // Node180_54IntervalTimer = setInterval(Node180_54GetRealData, 1000);
- Node180_54IntervalTimer = setInterval(Node180_54GetRealData, 1000);
- intervalTimers.push(Node180_54IntervalTimer);
- }
- function Node180_54InitChart () {
- Node180_54chart = new ht.Chart(Node180_54Option, 1114*ratio.ratioX, 178*ratio.ratioY);
- Node180_54.setHtml(Node180_54chart);
- Node180_54_chart = Node180_54chart._chart;
- window.Node180_54_chart = Node180_54_chart;
- Node180_54chart._chart.getZr().on('mousewheel', function () {
- Node180_54IntervalTimer && clearInterval(Node180_54IntervalTimer);
- });
- setTimeout(function () {
- var contextmenu = new ht.widget.ContextMenu(),
- items = [
- {
- label: '重置',
- action: function (e) {
- Node180_54GetHistoryData(Node180_54AutoRefresh);
- }
- }
- ]
- contextmenu.beforeShow = function (e) {
- this.setItems(items);
- }
- contextmenu.addTo(Node180_54chart.getView());
- Node180_54contextmenu = contextmenu;
- }, 500)
- }
- function Node180_54Init() {
- Node180_54loadYAxis(Node180_54TagsObjArr);
- Node180_54 = new ht.HtmlNode();
- Node180_54.setPosition({'x':1355*ratio.ratioX,'y':775*ratio.ratioY});
- Node180_54.setWidth(1114*ratio.ratioX);
- Node180_54.setHeight(178*ratio.ratioY);
- Node180_54.setScalable(false);
- Node180_54.s({
- '2d.selectable': false,
- '2d.movable': false
- });
- Node180_54InitChart();
- dataModel.add(Node180_54);
- Node180_54interval=600;
- if(Node180_54interval>3000){
- Node180_54count=3000;
- Node180_54pointInterval = Math.ceil(Node180_54interval / 3000);
- } else {
- Node180_54count = Node180_54interval;
- Node180_54pointInterval = 1;
- }
- Node180_54GetHistoryData(Node180_54AutoRefresh);
- }
- var Node180_54Option = {
- color:['rgba(255,0,0,1)','rgba(0,192,0,1)'],
- tooltip: {
- trigger: 'axis',
- position: function (pt) {
- return [pt[0], '10%'];
- },
- // backgroundColor:"@toolticpback@",
- backgroundColor: 'rgba(32,178,170,1)',
- borderWidth: 1,
- borderColor: 'rgba(32,178,170,1)',
- textStyle: {
- color: 'rgba(211,211,211,1)',
- fontFamily: 'Arail',
- fontSize: 13
- },
- formatter: function (params) {
- var result = '', p, unit;
- if (params && params.length <= 0) {
- return ;
- }
- result = '<span>'+ moment(params[0].axisValue).format('YYYY-MM-DD hh:mm:ss') +'</span><br>'
- for (var i = 0, len = params.length; i < len; i++) {
- p = params[i] || {};
- p.value = p.value || [];
- unit = Node180_54UnitDicObj[p.seriesName];
- unit = unit ? ' ('+ unit +')' : '';
- result += p.marker + '<span style="color:'+ p.color +';">' + p.seriesName + ' : ' + p.value[1] + unit + '</span><br>'
- }
- return result;
- }
- },
- legend: {
- show:true,
- top:'top',
- left:'center',
- data:[],
- textStyle:{
- fontSize:10.66664,
- color: 'rgba(105,105,105,1)',
- fontWeight: 'bold',
- fontFamily :'Arial'
- },
- inactiveColor: 'rgba(102,121,161,1)',
- icon: 'roundRect',
- itemWidth: 16,
- itemHeight: 16
- },
- grid: {
- left: '2%',
- right: '3%',
- bottom:'2%',
- top:true ? '25px' : '5%',
- show:false,
- containLabel: true,
- backgroundColor:'rgba(211,211,211,1)'
- },
- xAxis: {
- splitNumber:5,
- type : 'time',
- boundaryGap : false,
- axisLine:{
- lineStyle:{
- color:'rgba(211,211,211,1)'
- }
- },
- splitLine: {
- show: true,
- lineStyle: {
- color: 'rgba(192,192,192,1)',
- width:1,
- type:'solid'
- },
- },
- axisTick:{
- show:true,
- lineStyle:{
- color:'rgba(211,211,211,1)'
- }
- },
- axisLabel:{
- show:true,
- textStyle:{
- color:"rgba(211,211,211,1)",
- fontSize:"13.3333"
- },
- formatter:function(value){return moment(value).format('HH:mm:ss');}
- }
- },
- yAxis: Node180_54YAxisArr,
- dataZoom: [
- {
- show: false,
- realtime: true,
- start: 0,
- end: 100
- },
- {
- type: 'inside',
- realtime: true,
- start: 0,
- end: 100
- }
- ],
- series: []
- };
- function Node180_54StartGetRealData() {
- Node180_54IntervalTimer && clearInterval(Node180_54IntervalTimer);
- // Node180_54IntervalTimer = setInterval(Node180_54GetRealData, 1000);
- Node180_54IntervalTimer = setInterval(Node180_54RefreshData, 1000);
- intervalTimers.push(Node180_54IntervalTimer);
- };
- Node180_54Init();
- function Node180_54SetOption (varList,beginTime){
- var dateNow = Date.now();
- beginTime = beginTime || moment(dateNow-Node180_54interval*1000).format('YYYY-MM-DD HH:mm:ss');
- Node180_54CmdStr = varList + '&beginTime='+ beginTime +'&endTime='+ moment(dateNow).format('YYYY-MM-DD HH:mm:ss') +'&interval='+ Node180_54pointInterval +'&count='+Node180_54count;
- getHisTrendData(Node180_54CmdStr,
- function(data){
- Node180_54SetupHistoryData(data);
- Node180_54AutoRefresh();
- }
- );
- };
- function Node180_54EquipSure() {
- Node180_54loadYAxis(Node180_54TagsObjArr);
- Node180_54GetHistoryData(Node180_54AutoRefresh);
- };_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_55 = new ht.Node();
- var Node180_55textStart, Node180_55textWidth, Node180_55lineStart, Node180_55align = 'center', Node180_55fontSize = 13.3333*_ratio.ratioY,Node180_55width = 9*_ratio.ratioX, Node180_55height = 94*_ratio.ratioY;
- (function () {
- if (Node180_55align === 'left') {
- Node180_55textStart = Node180_55fontSize * 0.2 > 2 ? Node180_55fontSize * 0.2 - 4 : Node180_55fontSize * 0.2 - 9;
- Node180_55textWidth = Node180_55width;
- Node180_55lineStart = 1;
- } else if (Node180_55align === 'right') {
- Node180_55textStart = 0;
- Node180_55textWidth =Node180_55fontSize <= 8 ? Node180_55width + Node180_55fontSize * 0.2 + 6 : Node180_55width - Node180_55fontSize * 0.2;
- Node180_55lineStart = (Node180_55width - (ht.Default.getTextSize('风机状态', ' '+ Node180_55fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_55align === 'center') {
- Node180_55textStart = -3;
- Node180_55textWidth = Node180_55width;
- Node180_55lineStart = Node180_55width - ht.Default.getTextSize('风机状态', ' '+ Node180_55fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_55.setImage(GD.getTextJSON(Node180_55width, Node180_55height, false, true, false, ' '+ Node180_55fontSize + 'px "Arial"'))
- Node180_55.setPosition(769*ratio.ratioX, 232*ratio.ratioY);
- Node180_55.setWidth(Node180_55width);
- Node180_55.setHeight(Node180_55height);
- Node180_55._nodeType = 'text';
- Node180_55._disallowEvert = true;
- Node180_55.setRotation(0*Math.PI/180);
- Node180_55.a('node.width', Node180_55width);
- Node180_55.a('node.height', Node180_55height);
- Node180_55.a('node.rect', [0, 0, Node180_55width, Node180_55height]);
- Node180_55.a('node.bordercolor','rgba(255,255,255,1)');
- Node180_55.a('node.borderwidth', 0);
- Node180_55.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_55.a('node.gradient','');
- Node180_55.a('node.gradientcolor','');
- Node180_55.a('node.text','风机状态');
- Node180_55.a('node.textalign','center');
- Node180_55.a('node.textvAlign','middle');
- Node180_55.a('node.textrect', [Node180_55textStart, 0, Node180_55textWidth, Node180_55height]);
- Node180_55.a('node.color','rgba(255,255,255,1)');
- Node180_55.a('node.font',' '+ Node180_55fontSize + 'px "Arial"');
- Node180_55.a('node.textvisible',false);
- Node180_55.a('node.linefeed',true);
- if (true) {
- Node180_55.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_55.a('node.text') || '风机状态';
- var color=Node180_55.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_55width,Node180_55height,13.3333*_ratio.ratioY,"center",color,' '+ Node180_55fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_55.a('node.underlinepoints',[Node180_55lineStart, (94 - 13.3333) * 0.5 * _ratio.ratioY + Node180_55fontSize + 2 , ht.Default.getTextSize('风机状态', ' '+ Node180_55fontSize + 'px "Arial"').width + 6, (Node180_55height - Node180_55fontSize) * 0.5*_ratio.ratioY + Node180_55fontSize + 2 ]);
- Node180_55.a('node.underlinevisible',false);
- Node180_55.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_55);
- zoomNodeList.push({
- node: Node180_55,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_56 = new ht.Node();
- var Node180_56textStart, Node180_56textWidth, Node180_56lineStart, Node180_56align = 'center', Node180_56fontSize = 13.3333*_ratio.ratioY,Node180_56width = 9*_ratio.ratioX, Node180_56height = 94*_ratio.ratioY;
- (function () {
- if (Node180_56align === 'left') {
- Node180_56textStart = Node180_56fontSize * 0.2 > 2 ? Node180_56fontSize * 0.2 - 4 : Node180_56fontSize * 0.2 - 9;
- Node180_56textWidth = Node180_56width;
- Node180_56lineStart = 1;
- } else if (Node180_56align === 'right') {
- Node180_56textStart = 0;
- Node180_56textWidth =Node180_56fontSize <= 8 ? Node180_56width + Node180_56fontSize * 0.2 + 6 : Node180_56width - Node180_56fontSize * 0.2;
- Node180_56lineStart = (Node180_56width - (ht.Default.getTextSize('日发电量', ' '+ Node180_56fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_56align === 'center') {
- Node180_56textStart = -3;
- Node180_56textWidth = Node180_56width;
- Node180_56lineStart = Node180_56width - ht.Default.getTextSize('日发电量', ' '+ Node180_56fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_56.setImage(GD.getTextJSON(Node180_56width, Node180_56height, false, true, false, ' '+ Node180_56fontSize + 'px "Arial"'))
- Node180_56.setPosition(769*ratio.ratioX, 339*ratio.ratioY);
- Node180_56.setWidth(Node180_56width);
- Node180_56.setHeight(Node180_56height);
- Node180_56._nodeType = 'text';
- Node180_56._disallowEvert = true;
- Node180_56.setRotation(0*Math.PI/180);
- Node180_56.a('node.width', Node180_56width);
- Node180_56.a('node.height', Node180_56height);
- Node180_56.a('node.rect', [0, 0, Node180_56width, Node180_56height]);
- Node180_56.a('node.bordercolor','rgba(255,255,255,1)');
- Node180_56.a('node.borderwidth', 0);
- Node180_56.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_56.a('node.gradient','');
- Node180_56.a('node.gradientcolor','');
- Node180_56.a('node.text','日发电量');
- Node180_56.a('node.textalign','center');
- Node180_56.a('node.textvAlign','middle');
- Node180_56.a('node.textrect', [Node180_56textStart, 0, Node180_56textWidth, Node180_56height]);
- Node180_56.a('node.color','rgba(255,255,255,1)');
- Node180_56.a('node.font',' '+ Node180_56fontSize + 'px "Arial"');
- Node180_56.a('node.textvisible',false);
- Node180_56.a('node.linefeed',true);
- if (true) {
- Node180_56.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_56.a('node.text') || '日发电量';
- var color=Node180_56.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_56width,Node180_56height,13.3333*_ratio.ratioY,"center",color,' '+ Node180_56fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_56.a('node.underlinepoints',[Node180_56lineStart, (94 - 13.3333) * 0.5 * _ratio.ratioY + Node180_56fontSize + 2 , ht.Default.getTextSize('日发电量', ' '+ Node180_56fontSize + 'px "Arial"').width + 6, (Node180_56height - Node180_56fontSize) * 0.5*_ratio.ratioY + Node180_56fontSize + 2 ]);
- Node180_56.a('node.underlinevisible',false);
- Node180_56.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_56);
- zoomNodeList.push({
- node: Node180_56,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_57 = new ht.Node();
- var Node180_57textStart, Node180_57textWidth, Node180_57lineStart, Node180_57align = 'center', Node180_57fontSize = 13.3333*_ratio.ratioY,Node180_57width = 9*_ratio.ratioX, Node180_57height = 94*_ratio.ratioY;
- (function () {
- if (Node180_57align === 'left') {
- Node180_57textStart = Node180_57fontSize * 0.2 > 2 ? Node180_57fontSize * 0.2 - 4 : Node180_57fontSize * 0.2 - 9;
- Node180_57textWidth = Node180_57width;
- Node180_57lineStart = 1;
- } else if (Node180_57align === 'right') {
- Node180_57textStart = 0;
- Node180_57textWidth =Node180_57fontSize <= 8 ? Node180_57width + Node180_57fontSize * 0.2 + 6 : Node180_57width - Node180_57fontSize * 0.2;
- Node180_57lineStart = (Node180_57width - (ht.Default.getTextSize('风机负荷', ' '+ Node180_57fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_57align === 'center') {
- Node180_57textStart = -3;
- Node180_57textWidth = Node180_57width;
- Node180_57lineStart = Node180_57width - ht.Default.getTextSize('风机负荷', ' '+ Node180_57fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_57.setImage(GD.getTextJSON(Node180_57width, Node180_57height, false, true, false, ' '+ Node180_57fontSize + 'px "Arial"'))
- Node180_57.setPosition(1369*ratio.ratioX, 329*ratio.ratioY);
- Node180_57.setWidth(Node180_57width);
- Node180_57.setHeight(Node180_57height);
- Node180_57._nodeType = 'text';
- Node180_57._disallowEvert = true;
- Node180_57.setRotation(0*Math.PI/180);
- Node180_57.a('node.width', Node180_57width);
- Node180_57.a('node.height', Node180_57height);
- Node180_57.a('node.rect', [0, 0, Node180_57width, Node180_57height]);
- Node180_57.a('node.bordercolor','rgba(255,255,255,1)');
- Node180_57.a('node.borderwidth', 0);
- Node180_57.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_57.a('node.gradient','');
- Node180_57.a('node.gradientcolor','');
- Node180_57.a('node.text','风机负荷');
- Node180_57.a('node.textalign','center');
- Node180_57.a('node.textvAlign','middle');
- Node180_57.a('node.textrect', [Node180_57textStart, 0, Node180_57textWidth, Node180_57height]);
- Node180_57.a('node.color','rgba(255,255,255,1)');
- Node180_57.a('node.font',' '+ Node180_57fontSize + 'px "Arial"');
- Node180_57.a('node.textvisible',false);
- Node180_57.a('node.linefeed',true);
- if (true) {
- Node180_57.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_57.a('node.text') || '风机负荷';
- var color=Node180_57.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_57width,Node180_57height,13.3333*_ratio.ratioY,"center",color,' '+ Node180_57fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_57.a('node.underlinepoints',[Node180_57lineStart, (94 - 13.3333) * 0.5 * _ratio.ratioY + Node180_57fontSize + 2 , ht.Default.getTextSize('风机负荷', ' '+ Node180_57fontSize + 'px "Arial"').width + 6, (Node180_57height - Node180_57fontSize) * 0.5*_ratio.ratioY + Node180_57fontSize + 2 ]);
- Node180_57.a('node.underlinevisible',false);
- Node180_57.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_57);
- zoomNodeList.push({
- node: Node180_57,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_58 = new ht.Node();
- var Node180_58textStart, Node180_58textWidth, Node180_58lineStart, Node180_58align = 'center', Node180_58fontSize = 13.3333*_ratio.ratioY,Node180_58width = 9*_ratio.ratioX, Node180_58height = 94*_ratio.ratioY;
- (function () {
- if (Node180_58align === 'left') {
- Node180_58textStart = Node180_58fontSize * 0.2 > 2 ? Node180_58fontSize * 0.2 - 4 : Node180_58fontSize * 0.2 - 9;
- Node180_58textWidth = Node180_58width;
- Node180_58lineStart = 1;
- } else if (Node180_58align === 'right') {
- Node180_58textStart = 0;
- Node180_58textWidth =Node180_58fontSize <= 8 ? Node180_58width + Node180_58fontSize * 0.2 + 6 : Node180_58width - Node180_58fontSize * 0.2;
- Node180_58lineStart = (Node180_58width - (ht.Default.getTextSize('月发电量', ' '+ Node180_58fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_58align === 'center') {
- Node180_58textStart = -3;
- Node180_58textWidth = Node180_58width;
- Node180_58lineStart = Node180_58width - ht.Default.getTextSize('月发电量', ' '+ Node180_58fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_58.setImage(GD.getTextJSON(Node180_58width, Node180_58height, false, true, false, ' '+ Node180_58fontSize + 'px "Arial"'))
- Node180_58.setPosition(769*ratio.ratioX, 549*ratio.ratioY);
- Node180_58.setWidth(Node180_58width);
- Node180_58.setHeight(Node180_58height);
- Node180_58._nodeType = 'text';
- Node180_58._disallowEvert = true;
- Node180_58.setRotation(0*Math.PI/180);
- Node180_58.a('node.width', Node180_58width);
- Node180_58.a('node.height', Node180_58height);
- Node180_58.a('node.rect', [0, 0, Node180_58width, Node180_58height]);
- Node180_58.a('node.bordercolor','rgba(255,255,255,1)');
- Node180_58.a('node.borderwidth', 0);
- Node180_58.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_58.a('node.gradient','');
- Node180_58.a('node.gradientcolor','');
- Node180_58.a('node.text','月发电量');
- Node180_58.a('node.textalign','center');
- Node180_58.a('node.textvAlign','middle');
- Node180_58.a('node.textrect', [Node180_58textStart, 0, Node180_58textWidth, Node180_58height]);
- Node180_58.a('node.color','rgba(255,255,255,1)');
- Node180_58.a('node.font',' '+ Node180_58fontSize + 'px "Arial"');
- Node180_58.a('node.textvisible',false);
- Node180_58.a('node.linefeed',true);
- if (true) {
- Node180_58.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_58.a('node.text') || '月发电量';
- var color=Node180_58.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_58width,Node180_58height,13.3333*_ratio.ratioY,"center",color,' '+ Node180_58fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_58.a('node.underlinepoints',[Node180_58lineStart, (94 - 13.3333) * 0.5 * _ratio.ratioY + Node180_58fontSize + 2 , ht.Default.getTextSize('月发电量', ' '+ Node180_58fontSize + 'px "Arial"').width + 6, (Node180_58height - Node180_58fontSize) * 0.5*_ratio.ratioY + Node180_58fontSize + 2 ]);
- Node180_58.a('node.underlinevisible',false);
- Node180_58.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_58);
- zoomNodeList.push({
- node: Node180_58,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_59 = new ht.Node();
- var Node180_59textStart, Node180_59textWidth, Node180_59lineStart, Node180_59align = 'center', Node180_59fontSize = 13.3333*_ratio.ratioY,Node180_59width = 9*_ratio.ratioX, Node180_59height = 94*_ratio.ratioY;
- (function () {
- if (Node180_59align === 'left') {
- Node180_59textStart = Node180_59fontSize * 0.2 > 2 ? Node180_59fontSize * 0.2 - 4 : Node180_59fontSize * 0.2 - 9;
- Node180_59textWidth = Node180_59width;
- Node180_59lineStart = 1;
- } else if (Node180_59align === 'right') {
- Node180_59textStart = 0;
- Node180_59textWidth =Node180_59fontSize <= 8 ? Node180_59width + Node180_59fontSize * 0.2 + 6 : Node180_59width - Node180_59fontSize * 0.2;
- Node180_59lineStart = (Node180_59width - (ht.Default.getTextSize('功率曲线', ' '+ Node180_59fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_59align === 'center') {
- Node180_59textStart = -3;
- Node180_59textWidth = Node180_59width;
- Node180_59lineStart = Node180_59width - ht.Default.getTextSize('功率曲线', ' '+ Node180_59fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_59.setImage(GD.getTextJSON(Node180_59width, Node180_59height, false, true, false, ' '+ Node180_59fontSize + 'px "Arial"'))
- Node180_59.setPosition(769*ratio.ratioX, 769*ratio.ratioY);
- Node180_59.setWidth(Node180_59width);
- Node180_59.setHeight(Node180_59height);
- Node180_59._nodeType = 'text';
- Node180_59._disallowEvert = true;
- Node180_59.setRotation(0*Math.PI/180);
- Node180_59.a('node.width', Node180_59width);
- Node180_59.a('node.height', Node180_59height);
- Node180_59.a('node.rect', [0, 0, Node180_59width, Node180_59height]);
- Node180_59.a('node.bordercolor','rgba(255,255,255,1)');
- Node180_59.a('node.borderwidth', 0);
- Node180_59.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_59.a('node.gradient','');
- Node180_59.a('node.gradientcolor','');
- Node180_59.a('node.text','功率曲线');
- Node180_59.a('node.textalign','center');
- Node180_59.a('node.textvAlign','middle');
- Node180_59.a('node.textrect', [Node180_59textStart, 0, Node180_59textWidth, Node180_59height]);
- Node180_59.a('node.color','rgba(255,255,255,1)');
- Node180_59.a('node.font',' '+ Node180_59fontSize + 'px "Arial"');
- Node180_59.a('node.textvisible',false);
- Node180_59.a('node.linefeed',true);
- if (true) {
- Node180_59.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_59.a('node.text') || '功率曲线';
- var color=Node180_59.a('node.color') || 'rgba(255,255,255,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_59width,Node180_59height,13.3333*_ratio.ratioY,"center",color,' '+ Node180_59fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_59.a('node.underlinepoints',[Node180_59lineStart, (94 - 13.3333) * 0.5 * _ratio.ratioY + Node180_59fontSize + 2 , ht.Default.getTextSize('功率曲线', ' '+ Node180_59fontSize + 'px "Arial"').width + 6, (Node180_59height - Node180_59fontSize) * 0.5*_ratio.ratioY + Node180_59fontSize + 2 ]);
- Node180_59.a('node.underlinevisible',false);
- Node180_59.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_59);
- zoomNodeList.push({
- node: Node180_59,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(-89.47369*Math.PI/180, ratio);
- var Node180_60 = new ht.Node();
- var Node180_60textStart, Node180_60textWidth, Node180_60lineStart, Node180_60align = 'left', Node180_60fontSize = 13.3333*_ratio.ratioY,Node180_60width = 89*_ratio.ratioX, Node180_60height = 25*_ratio.ratioY;
- (function () {
- if (Node180_60align === 'left') {
- Node180_60textStart = Node180_60fontSize * 0.2 > 2 ? Node180_60fontSize * 0.2 - 4 : Node180_60fontSize * 0.2 - 9;
- Node180_60textWidth = Node180_60width;
- Node180_60lineStart = 1;
- } else if (Node180_60align === 'right') {
- Node180_60textStart = 0;
- Node180_60textWidth =Node180_60fontSize <= 8 ? Node180_60width + Node180_60fontSize * 0.2 + 6 : Node180_60width - Node180_60fontSize * 0.2;
- Node180_60lineStart = (Node180_60width - (ht.Default.getTextSize('电量(万kwh)', ' '+ Node180_60fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_60align === 'center') {
- Node180_60textStart = -3;
- Node180_60textWidth = Node180_60width;
- Node180_60lineStart = Node180_60width - ht.Default.getTextSize('电量(万kwh)', ' '+ Node180_60fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_60.setImage(GD.getTextJSON(Node180_60width, Node180_60height, false, true, false, ' '+ Node180_60fontSize + 'px "Arial"'))
- Node180_60.setPosition(794*ratio.ratioX, 342*ratio.ratioY);
- Node180_60.setWidth(Node180_60width);
- Node180_60.setHeight(Node180_60height);
- Node180_60._nodeType = 'text';
- Node180_60._disallowEvert = true;
- Node180_60.setRotation(-89.47369*Math.PI/180);
- Node180_60.a('node.width', Node180_60width);
- Node180_60.a('node.height', Node180_60height);
- Node180_60.a('node.rect', [0, 0, Node180_60width, Node180_60height]);
- Node180_60.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_60.a('node.borderwidth', 0);
- Node180_60.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_60.a('node.gradient','');
- Node180_60.a('node.gradientcolor','');
- Node180_60.a('node.text','电量(万kwh)');
- Node180_60.a('node.textalign','left');
- Node180_60.a('node.textvAlign','middle');
- Node180_60.a('node.textrect', [Node180_60textStart, 0, Node180_60textWidth, Node180_60height]);
- Node180_60.a('node.color','rgba(0,0,0,1)');
- Node180_60.a('node.font',' '+ Node180_60fontSize + 'px "Arial"');
- Node180_60.a('node.textvisible',false);
- Node180_60.a('node.linefeed',true);
- if (true) {
- Node180_60.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_60.a('node.text') || '电量(万kwh)';
- var color=Node180_60.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_60width,Node180_60height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_60fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_60.a('node.underlinepoints',[Node180_60lineStart, (25 - 13.3333) * 0.5 * _ratio.ratioY + Node180_60fontSize + 2 , ht.Default.getTextSize('电量(万kwh)', ' '+ Node180_60fontSize + 'px "Arial"').width + 6, (Node180_60height - Node180_60fontSize) * 0.5*_ratio.ratioY + Node180_60fontSize + 2 ]);
- Node180_60.a('node.underlinevisible',false);
- Node180_60.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_60);
- zoomNodeList.push({
- node: Node180_60,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_61type = 'rect';
- var Node180_61 = new ht.Node(),
- Node180_61BorderWidth = 1*2;
- if (Node180_61type === 'arc') {
- Node180_61BorderWidth *= 1;
- }
- Node180_61.setImage(GD.getRectJSON(20*_ratio.ratioX, 20*_ratio.ratioY, Node180_61type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_61.setPosition(794*ratio.ratioX, 412*ratio.ratioY);
- Node180_61.setSize(20*_ratio.ratioX, 20*_ratio.ratioY);
- Node180_61.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_61.a('node.width', 20*_ratio.ratioX);
- Node180_61.a('node.height', 20*_ratio.ratioY);
- Node180_61.a('node.type', Node180_61type);
- Node180_61.a('node.rect', [0, 0, 20*_ratio.ratioX, 20*_ratio.ratioY]);
- Node180_61.a('node.background', 'rgba(118,184,244,1)');
- Node180_61.a('node.gradientcolor', 'rgba(118,184,244,1)');
- Node180_61.a('node.gradient', '');
- Node180_61.a('node.borderwidth', Node180_61BorderWidth);
- Node180_61.a('node.color', 'rgba(0,0,0,1)');
- Node180_61.a('node.fillrect', [0,0,0,0]);
- Node180_61.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_61.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_61.a('node.fillgradient', '');
- if (Node180_61type !== 'rect') {
- Node180_61.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_61.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_61.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_61type === 'arc') {
- Node180_61.a('node.arcOval', true);
- }
- Node180_61.setRotation(0*Math.PI/180);
- Node180_61.borderWidth = Node180_61BorderWidth;
- Node180_61.borderFillwidth = Node180_61BorderWidth;
- dataModel.add(Node180_61);
- Node180_61._nodename = 'Node180_61'
- Node180_61._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_61,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_61, Node180_61.getImage());_ratio = GD.getRatioWithRotation(-89.47369*Math.PI/180, ratio);
- var Node180_62_0 = new ht.Node();
- var Node180_62_0textStart, Node180_62_0textWidth, Node180_62_0lineStart, Node180_62_0align = 'left', Node180_62_0fontSize = 13.3333*_ratio.ratioY,Node180_62_0width = 79*_ratio.ratioX, Node180_62_0height = 25*_ratio.ratioY;
- (function () {
- if (Node180_62_0align === 'left') {
- Node180_62_0textStart = Node180_62_0fontSize * 0.2 > 2 ? Node180_62_0fontSize * 0.2 - 4 : Node180_62_0fontSize * 0.2 - 9;
- Node180_62_0textWidth = Node180_62_0width;
- Node180_62_0lineStart = 1;
- } else if (Node180_62_0align === 'right') {
- Node180_62_0textStart = 0;
- Node180_62_0textWidth =Node180_62_0fontSize <= 8 ? Node180_62_0width + Node180_62_0fontSize * 0.2 + 6 : Node180_62_0width - Node180_62_0fontSize * 0.2;
- Node180_62_0lineStart = (Node180_62_0width - (ht.Default.getTextSize('风速(m/s)', ' '+ Node180_62_0fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_62_0align === 'center') {
- Node180_62_0textStart = -3;
- Node180_62_0textWidth = Node180_62_0width;
- Node180_62_0lineStart = Node180_62_0width - ht.Default.getTextSize('风速(m/s)', ' '+ Node180_62_0fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_62_0.setImage(GD.getTextJSON(Node180_62_0width, Node180_62_0height, false, true, false, ' '+ Node180_62_0fontSize + 'px "Arial"'))
- Node180_62_0.setPosition(1342*ratio.ratioX, 337*ratio.ratioY);
- Node180_62_0.setWidth(Node180_62_0width);
- Node180_62_0.setHeight(Node180_62_0height);
- Node180_62_0._nodeType = 'text';
- Node180_62_0._disallowEvert = true;
- Node180_62_0.setRotation(-89.47369*Math.PI/180);
- Node180_62_0.a('node.width', Node180_62_0width);
- Node180_62_0.a('node.height', Node180_62_0height);
- Node180_62_0.a('node.rect', [0, 0, Node180_62_0width, Node180_62_0height]);
- Node180_62_0.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_62_0.a('node.borderwidth', 0);
- Node180_62_0.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_62_0.a('node.gradient','');
- Node180_62_0.a('node.gradientcolor','');
- Node180_62_0.a('node.text','风速(m/s)');
- Node180_62_0.a('node.textalign','left');
- Node180_62_0.a('node.textvAlign','middle');
- Node180_62_0.a('node.textrect', [Node180_62_0textStart, 0, Node180_62_0textWidth, Node180_62_0height]);
- Node180_62_0.a('node.color','rgba(0,0,0,1)');
- Node180_62_0.a('node.font',' '+ Node180_62_0fontSize + 'px "Arial"');
- Node180_62_0.a('node.textvisible',false);
- Node180_62_0.a('node.linefeed',true);
- if (true) {
- Node180_62_0.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_62_0.a('node.text') || '风速(m/s)';
- var color=Node180_62_0.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,13.3333*0.5*_ratio.ratioY,Node180_62_0width,Node180_62_0height,13.3333*_ratio.ratioY,"left",color,' '+ Node180_62_0fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_62_0.a('node.underlinepoints',[Node180_62_0lineStart, (25 - 13.3333) * 0.5 * _ratio.ratioY + Node180_62_0fontSize + 2 , ht.Default.getTextSize('风速(m/s)', ' '+ Node180_62_0fontSize + 'px "Arial"').width + 6, (Node180_62_0height - Node180_62_0fontSize) * 0.5*_ratio.ratioY + Node180_62_0fontSize + 2 ]);
- Node180_62_0.a('node.underlinevisible',false);
- Node180_62_0.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_62_0);
- zoomNodeList.push({
- node: Node180_62_0,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_62_1type = 'rect';
- var Node180_62_1 = new ht.Node(),
- Node180_62_1BorderWidth = 1*2;
- if (Node180_62_1type === 'arc') {
- Node180_62_1BorderWidth *= 1;
- }
- Node180_62_1.setImage(GD.getRectJSON(20*_ratio.ratioX, 20*_ratio.ratioY, Node180_62_1type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_62_1.setPosition(1342*ratio.ratioX, 388*ratio.ratioY);
- Node180_62_1.setSize(20*_ratio.ratioX, 20*_ratio.ratioY);
- Node180_62_1.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_62_1.a('node.width', 20*_ratio.ratioX);
- Node180_62_1.a('node.height', 20*_ratio.ratioY);
- Node180_62_1.a('node.type', Node180_62_1type);
- Node180_62_1.a('node.rect', [0, 0, 20*_ratio.ratioX, 20*_ratio.ratioY]);
- Node180_62_1.a('node.background', 'rgba(249,126,95,1)');
- Node180_62_1.a('node.gradientcolor', 'rgba(249,126,95,1)');
- Node180_62_1.a('node.gradient', '');
- Node180_62_1.a('node.borderwidth', Node180_62_1BorderWidth);
- Node180_62_1.a('node.color', 'rgba(0,0,0,1)');
- Node180_62_1.a('node.fillrect', [0,0,0,0]);
- Node180_62_1.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_62_1.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_62_1.a('node.fillgradient', '');
- if (Node180_62_1type !== 'rect') {
- Node180_62_1.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_62_1.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_62_1.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_62_1type === 'arc') {
- Node180_62_1.a('node.arcOval', true);
- }
- Node180_62_1.setRotation(0*Math.PI/180);
- Node180_62_1.borderWidth = Node180_62_1BorderWidth;
- Node180_62_1.borderFillwidth = Node180_62_1BorderWidth;
- dataModel.add(Node180_62_1);
- Node180_62_1._nodename = 'Node180_62_1'
- Node180_62_1._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_62_1,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_62_1, Node180_62_1.getImage());var Node180_63;
- (function () {
- var _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var ratioX, ratioY;
- if ('Default' === 'False') {
- ratioX = 1;
- ratioY = 1;
- } else if ('Default' === 'X') {
- ratioX = ratioY = _ratio.ratioX;
- } else if ('Default' === 'Y') {
- ratioX = ratioY = _ratio.ratioY;
- } else {
- ratioX = _ratio.ratioX;
- ratioY = _ratio.ratioY;
- }
- ht.Default.setImage('imgimage//img//indexblack.png', PAGEROOTDIR + 'image//img//indexblack.png');
- Node180_63 = new ht.Node();
- Node180_63.setPosition(1769*ratio.ratioX, 211*ratio.ratioY);
- Node180_63.setSize(52*ratioX, 78*ratioY);
- Node180_63.setImage('imgimage//img//indexblack.png');
- Node180_63.setRotation(0*Math.PI/180);
- Node180_63._zoomBy = 'Default';
- Node180_63._nodeType = 'image';
- Node180_63._disallowEvert = true;
- dataModel.add(Node180_63);
- })();
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_64type = 'rect';
- var Node180_64 = new ht.Node(),
- Node180_64BorderWidth = 1*2;
- if (Node180_64type === 'arc') {
- Node180_64BorderWidth *= 1;
- }
- Node180_64.setImage(GD.getRectJSON(15*_ratio.ratioX, 15*_ratio.ratioY, Node180_64type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_64.setPosition(1822*ratio.ratioX, 489*ratio.ratioY);
- Node180_64.setSize(15*_ratio.ratioX, 15*_ratio.ratioY);
- Node180_64.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_64.a('node.width', 15*_ratio.ratioX);
- Node180_64.a('node.height', 15*_ratio.ratioY);
- Node180_64.a('node.type', Node180_64type);
- Node180_64.a('node.rect', [0, 0, 15*_ratio.ratioX, 15*_ratio.ratioY]);
- Node180_64.a('node.background', 'rgba(0,255,255,1)');
- Node180_64.a('node.gradientcolor', 'rgba(0,255,255,1)');
- Node180_64.a('node.gradient', '');
- Node180_64.a('node.borderwidth', Node180_64BorderWidth);
- Node180_64.a('node.color', 'rgba(0,0,0,1)');
- Node180_64.a('node.fillrect', [0,0,0,0]);
- Node180_64.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_64.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_64.a('node.fillgradient', '');
- if (Node180_64type !== 'rect') {
- Node180_64.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_64.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_64.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_64type === 'arc') {
- Node180_64.a('node.arcOval', true);
- }
- Node180_64.setRotation(0*Math.PI/180);
- Node180_64.borderWidth = Node180_64BorderWidth;
- Node180_64.borderFillwidth = Node180_64BorderWidth;
- dataModel.add(Node180_64);
- Node180_64._nodename = 'Node180_64'
- Node180_64._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_64,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_64, Node180_64.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_65 = new ht.Node();
- var Node180_65textStart, Node180_65textWidth, Node180_65lineStart, Node180_65align = 'left', Node180_65fontSize = 10.66664*_ratio.ratioY,Node180_65width = 40*_ratio.ratioX, Node180_65height = 13*_ratio.ratioY;
- (function () {
- if (Node180_65align === 'left') {
- Node180_65textStart = Node180_65fontSize * 0.2 > 2 ? Node180_65fontSize * 0.2 - 4 : Node180_65fontSize * 0.2 - 9;
- Node180_65textWidth = Node180_65width;
- Node180_65lineStart = 1;
- } else if (Node180_65align === 'right') {
- Node180_65textStart = 0;
- Node180_65textWidth =Node180_65fontSize <= 8 ? Node180_65width + Node180_65fontSize * 0.2 + 6 : Node180_65width - Node180_65fontSize * 0.2;
- Node180_65lineStart = (Node180_65width - (ht.Default.getTextSize('2016年', ' '+ Node180_65fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_65align === 'center') {
- Node180_65textStart = -3;
- Node180_65textWidth = Node180_65width;
- Node180_65lineStart = Node180_65width - ht.Default.getTextSize('2016年', ' '+ Node180_65fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_65.setImage(GD.getTextJSON(Node180_65width, Node180_65height, true, false, false, ' '+ Node180_65fontSize + 'px "Arial"'))
- Node180_65.setPosition(1855*ratio.ratioX, 489*ratio.ratioY);
- Node180_65.setWidth(Node180_65width);
- Node180_65.setHeight(Node180_65height);
- Node180_65._nodeType = 'text';
- Node180_65._disallowEvert = true;
- Node180_65.setRotation(0*Math.PI/180);
- Node180_65.a('node.width', Node180_65width);
- Node180_65.a('node.height', Node180_65height);
- Node180_65.a('node.rect', [0, 0, Node180_65width, Node180_65height]);
- Node180_65.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_65.a('node.borderwidth', 0);
- Node180_65.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_65.a('node.gradient','');
- Node180_65.a('node.gradientcolor','');
- Node180_65.a('node.text','2016年');
- Node180_65.a('node.textalign','left');
- Node180_65.a('node.textvAlign','middle');
- Node180_65.a('node.textrect', [Node180_65textStart, 0, Node180_65textWidth, Node180_65height]);
- Node180_65.a('node.color','rgba(0,0,0,1)');
- Node180_65.a('node.font',' '+ Node180_65fontSize + 'px "Arial"');
- Node180_65.a('node.textvisible',true);
- Node180_65.a('node.linefeed',false);
- if (false) {
- Node180_65.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_65.a('node.text') || '2016年';
- var color=Node180_65.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,10.66664*0.5*_ratio.ratioY,Node180_65width,Node180_65height,10.66664*_ratio.ratioY,"left",color,' '+ Node180_65fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_65.a('node.underlinepoints',[Node180_65lineStart, (13 - 10.66664) * 0.5 * _ratio.ratioY + Node180_65fontSize + 2 , ht.Default.getTextSize('2016年', ' '+ Node180_65fontSize + 'px "Arial"').width + 6, (Node180_65height - Node180_65fontSize) * 0.5*_ratio.ratioY + Node180_65fontSize + 2 ]);
- Node180_65.a('node.underlinevisible',false);
- Node180_65.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_65);
- zoomNodeList.push({
- node: Node180_65,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_66type = 'rect';
- var Node180_66 = new ht.Node(),
- Node180_66BorderWidth = 1*2;
- if (Node180_66type === 'arc') {
- Node180_66BorderWidth *= 1;
- }
- Node180_66.setImage(GD.getRectJSON(15*_ratio.ratioX, 15*_ratio.ratioY, Node180_66type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_66.setPosition(1822*ratio.ratioX, 509*ratio.ratioY);
- Node180_66.setSize(15*_ratio.ratioX, 15*_ratio.ratioY);
- Node180_66.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_66.a('node.width', 15*_ratio.ratioX);
- Node180_66.a('node.height', 15*_ratio.ratioY);
- Node180_66.a('node.type', Node180_66type);
- Node180_66.a('node.rect', [0, 0, 15*_ratio.ratioX, 15*_ratio.ratioY]);
- Node180_66.a('node.background', 'rgba(255,255,128,1)');
- Node180_66.a('node.gradientcolor', 'rgba(255,255,128,1)');
- Node180_66.a('node.gradient', '');
- Node180_66.a('node.borderwidth', Node180_66BorderWidth);
- Node180_66.a('node.color', 'rgba(0,0,0,1)');
- Node180_66.a('node.fillrect', [0,0,0,0]);
- Node180_66.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_66.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_66.a('node.fillgradient', '');
- if (Node180_66type !== 'rect') {
- Node180_66.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_66.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_66.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_66type === 'arc') {
- Node180_66.a('node.arcOval', true);
- }
- Node180_66.setRotation(0*Math.PI/180);
- Node180_66.borderWidth = Node180_66BorderWidth;
- Node180_66.borderFillwidth = Node180_66BorderWidth;
- dataModel.add(Node180_66);
- Node180_66._nodename = 'Node180_66'
- Node180_66._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_66,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_66, Node180_66.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_67 = new ht.Node();
- var Node180_67textStart, Node180_67textWidth, Node180_67lineStart, Node180_67align = 'left', Node180_67fontSize = 10.66664*_ratio.ratioY,Node180_67width = 40*_ratio.ratioX, Node180_67height = 13*_ratio.ratioY;
- (function () {
- if (Node180_67align === 'left') {
- Node180_67textStart = Node180_67fontSize * 0.2 > 2 ? Node180_67fontSize * 0.2 - 4 : Node180_67fontSize * 0.2 - 9;
- Node180_67textWidth = Node180_67width;
- Node180_67lineStart = 1;
- } else if (Node180_67align === 'right') {
- Node180_67textStart = 0;
- Node180_67textWidth =Node180_67fontSize <= 8 ? Node180_67width + Node180_67fontSize * 0.2 + 6 : Node180_67width - Node180_67fontSize * 0.2;
- Node180_67lineStart = (Node180_67width - (ht.Default.getTextSize('2017年', ' '+ Node180_67fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_67align === 'center') {
- Node180_67textStart = -3;
- Node180_67textWidth = Node180_67width;
- Node180_67lineStart = Node180_67width - ht.Default.getTextSize('2017年', ' '+ Node180_67fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_67.setImage(GD.getTextJSON(Node180_67width, Node180_67height, true, false, false, ' '+ Node180_67fontSize + 'px "Arial"'))
- Node180_67.setPosition(1855*ratio.ratioX, 509*ratio.ratioY);
- Node180_67.setWidth(Node180_67width);
- Node180_67.setHeight(Node180_67height);
- Node180_67._nodeType = 'text';
- Node180_67._disallowEvert = true;
- Node180_67.setRotation(0*Math.PI/180);
- Node180_67.a('node.width', Node180_67width);
- Node180_67.a('node.height', Node180_67height);
- Node180_67.a('node.rect', [0, 0, Node180_67width, Node180_67height]);
- Node180_67.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_67.a('node.borderwidth', 0);
- Node180_67.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_67.a('node.gradient','');
- Node180_67.a('node.gradientcolor','');
- Node180_67.a('node.text','2017年');
- Node180_67.a('node.textalign','left');
- Node180_67.a('node.textvAlign','middle');
- Node180_67.a('node.textrect', [Node180_67textStart, 0, Node180_67textWidth, Node180_67height]);
- Node180_67.a('node.color','rgba(0,0,0,1)');
- Node180_67.a('node.font',' '+ Node180_67fontSize + 'px "Arial"');
- Node180_67.a('node.textvisible',true);
- Node180_67.a('node.linefeed',false);
- if (false) {
- Node180_67.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_67.a('node.text') || '2017年';
- var color=Node180_67.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,10.66664*0.5*_ratio.ratioY,Node180_67width,Node180_67height,10.66664*_ratio.ratioY,"left",color,' '+ Node180_67fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_67.a('node.underlinepoints',[Node180_67lineStart, (13 - 10.66664) * 0.5 * _ratio.ratioY + Node180_67fontSize + 2 , ht.Default.getTextSize('2017年', ' '+ Node180_67fontSize + 'px "Arial"').width + 6, (Node180_67height - Node180_67fontSize) * 0.5*_ratio.ratioY + Node180_67fontSize + 2 ]);
- Node180_67.a('node.underlinevisible',false);
- Node180_67.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_67);
- zoomNodeList.push({
- node: Node180_67,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_68type = 'rect';
- var Node180_68 = new ht.Node(),
- Node180_68BorderWidth = 1*2;
- if (Node180_68type === 'arc') {
- Node180_68BorderWidth *= 1;
- }
- Node180_68.setImage(GD.getRectJSON(15*_ratio.ratioX, 15*_ratio.ratioY, Node180_68type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Node180_68.setPosition(1822*ratio.ratioX, 529*ratio.ratioY);
- Node180_68.setSize(15*_ratio.ratioX, 15*_ratio.ratioY);
- Node180_68.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Node180_68.a('node.width', 15*_ratio.ratioX);
- Node180_68.a('node.height', 15*_ratio.ratioY);
- Node180_68.a('node.type', Node180_68type);
- Node180_68.a('node.rect', [0, 0, 15*_ratio.ratioX, 15*_ratio.ratioY]);
- Node180_68.a('node.background', 'rgba(128,255,128,1)');
- Node180_68.a('node.gradientcolor', 'rgba(128,255,128,1)');
- Node180_68.a('node.gradient', '');
- Node180_68.a('node.borderwidth', Node180_68BorderWidth);
- Node180_68.a('node.color', 'rgba(0,0,0,1)');
- Node180_68.a('node.fillrect', [0,0,0,0]);
- Node180_68.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Node180_68.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Node180_68.a('node.fillgradient', '');
- if (Node180_68type !== 'rect') {
- Node180_68.a('node.arcFrom', parseFloat('@arcFrom@'));
- Node180_68.a('node.arcTo', parseFloat('@arcTo@'));
- Node180_68.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Node180_68type === 'arc') {
- Node180_68.a('node.arcOval', true);
- }
- Node180_68.setRotation(0*Math.PI/180);
- Node180_68.borderWidth = Node180_68BorderWidth;
- Node180_68.borderFillwidth = Node180_68BorderWidth;
- dataModel.add(Node180_68);
- Node180_68._nodename = 'Node180_68'
- Node180_68._nodeType = 'rect';
- zoomNodeList.push({
- node: Node180_68,
- attr: 'node.borderwidth'
- });
- (function (node, _img) {
- var setWidth = node.setWidth,
- setHeight = node.setHeight;
- node.setWidth = function (width) {
- if (width === this.getWidth()) return ;
- var height = this.getHeight();
- this.a('node.width', width);
- this.a('node.rect', [0,0,width, height]);
- setWidth.apply(this, arguments);
- }
- node.setHeight = function (height) {
- if (height === this.getHeight()) return ;
- var width = this.getWidth();
- this.a('node.height', height);
- this.a('node.rect', [0,0,width, height]);
- setHeight.apply(this, arguments);
- }
- })(Node180_68, Node180_68.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_69 = new ht.Node();
- var Node180_69textStart, Node180_69textWidth, Node180_69lineStart, Node180_69align = 'left', Node180_69fontSize = 10.66664*_ratio.ratioY,Node180_69width = 40*_ratio.ratioX, Node180_69height = 13*_ratio.ratioY;
- (function () {
- if (Node180_69align === 'left') {
- Node180_69textStart = Node180_69fontSize * 0.2 > 2 ? Node180_69fontSize * 0.2 - 4 : Node180_69fontSize * 0.2 - 9;
- Node180_69textWidth = Node180_69width;
- Node180_69lineStart = 1;
- } else if (Node180_69align === 'right') {
- Node180_69textStart = 0;
- Node180_69textWidth =Node180_69fontSize <= 8 ? Node180_69width + Node180_69fontSize * 0.2 + 6 : Node180_69width - Node180_69fontSize * 0.2;
- Node180_69lineStart = (Node180_69width - (ht.Default.getTextSize('2018年', ' '+ Node180_69fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_69align === 'center') {
- Node180_69textStart = -3;
- Node180_69textWidth = Node180_69width;
- Node180_69lineStart = Node180_69width - ht.Default.getTextSize('2018年', ' '+ Node180_69fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_69.setImage(GD.getTextJSON(Node180_69width, Node180_69height, true, false, false, ' '+ Node180_69fontSize + 'px "Arial"'))
- Node180_69.setPosition(1855*ratio.ratioX, 529*ratio.ratioY);
- Node180_69.setWidth(Node180_69width);
- Node180_69.setHeight(Node180_69height);
- Node180_69._nodeType = 'text';
- Node180_69._disallowEvert = true;
- Node180_69.setRotation(0*Math.PI/180);
- Node180_69.a('node.width', Node180_69width);
- Node180_69.a('node.height', Node180_69height);
- Node180_69.a('node.rect', [0, 0, Node180_69width, Node180_69height]);
- Node180_69.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_69.a('node.borderwidth', 0);
- Node180_69.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_69.a('node.gradient','');
- Node180_69.a('node.gradientcolor','');
- Node180_69.a('node.text','2018年');
- Node180_69.a('node.textalign','left');
- Node180_69.a('node.textvAlign','middle');
- Node180_69.a('node.textrect', [Node180_69textStart, 0, Node180_69textWidth, Node180_69height]);
- Node180_69.a('node.color','rgba(0,0,0,1)');
- Node180_69.a('node.font',' '+ Node180_69fontSize + 'px "Arial"');
- Node180_69.a('node.textvisible',true);
- Node180_69.a('node.linefeed',false);
- if (false) {
- Node180_69.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_69.a('node.text') || '2018年';
- var color=Node180_69.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,10.66664*0.5*_ratio.ratioY,Node180_69width,Node180_69height,10.66664*_ratio.ratioY,"left",color,' '+ Node180_69fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_69.a('node.underlinepoints',[Node180_69lineStart, (13 - 10.66664) * 0.5 * _ratio.ratioY + Node180_69fontSize + 2 , ht.Default.getTextSize('2018年', ' '+ Node180_69fontSize + 'px "Arial"').width + 6, (Node180_69height - Node180_69fontSize) * 0.5*_ratio.ratioY + Node180_69fontSize + 2 ]);
- Node180_69.a('node.underlinevisible',false);
- Node180_69.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_69);
- zoomNodeList.push({
- node: Node180_69,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_70 = new ht.Node();
- var Node180_70textStart, Node180_70textWidth, Node180_70lineStart, Node180_70align = 'left', Node180_70fontSize = 10.66664*_ratio.ratioY,Node180_70width = 78*_ratio.ratioX, Node180_70height = 13*_ratio.ratioY;
- (function () {
- if (Node180_70align === 'left') {
- Node180_70textStart = Node180_70fontSize * 0.2 > 2 ? Node180_70fontSize * 0.2 - 4 : Node180_70fontSize * 0.2 - 9;
- Node180_70textWidth = Node180_70width;
- Node180_70lineStart = 1;
- } else if (Node180_70align === 'right') {
- Node180_70textStart = 0;
- Node180_70textWidth =Node180_70fontSize <= 8 ? Node180_70width + Node180_70fontSize * 0.2 + 6 : Node180_70width - Node180_70fontSize * 0.2;
- Node180_70lineStart = (Node180_70width - (ht.Default.getTextSize('应发功率(MW)', ' '+ Node180_70fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_70align === 'center') {
- Node180_70textStart = -3;
- Node180_70textWidth = Node180_70width;
- Node180_70lineStart = Node180_70width - ht.Default.getTextSize('应发功率(MW)', ' '+ Node180_70fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_70.setImage(GD.getTextJSON(Node180_70width, Node180_70height, true, false, false, ' '+ Node180_70fontSize + 'px "Arial"'))
- Node180_70.setPosition(1518*ratio.ratioX, 434*ratio.ratioY);
- Node180_70.setWidth(Node180_70width);
- Node180_70.setHeight(Node180_70height);
- Node180_70._nodeType = 'text';
- Node180_70._disallowEvert = true;
- Node180_70.setRotation(0*Math.PI/180);
- Node180_70.a('node.width', Node180_70width);
- Node180_70.a('node.height', Node180_70height);
- Node180_70.a('node.rect', [0, 0, Node180_70width, Node180_70height]);
- Node180_70.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_70.a('node.borderwidth', 0);
- Node180_70.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_70.a('node.gradient','');
- Node180_70.a('node.gradientcolor','');
- Node180_70.a('node.text','应发功率(MW)');
- Node180_70.a('node.textalign','left');
- Node180_70.a('node.textvAlign','middle');
- Node180_70.a('node.textrect', [Node180_70textStart, 0, Node180_70textWidth, Node180_70height]);
- Node180_70.a('node.color','rgba(0,0,0,1)');
- Node180_70.a('node.font',' '+ Node180_70fontSize + 'px "Arial"');
- Node180_70.a('node.textvisible',true);
- Node180_70.a('node.linefeed',false);
- if (false) {
- Node180_70.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_70.a('node.text') || '应发功率(MW)';
- var color=Node180_70.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,10.66664*0.5*_ratio.ratioY,Node180_70width,Node180_70height,10.66664*_ratio.ratioY,"left",color,' '+ Node180_70fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_70.a('node.underlinepoints',[Node180_70lineStart, (13 - 10.66664) * 0.5 * _ratio.ratioY + Node180_70fontSize + 2 , ht.Default.getTextSize('应发功率(MW)', ' '+ Node180_70fontSize + 'px "Arial"').width + 6, (Node180_70height - Node180_70fontSize) * 0.5*_ratio.ratioY + Node180_70fontSize + 2 ]);
- Node180_70.a('node.underlinevisible',false);
- Node180_70.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_70);
- zoomNodeList.push({
- node: Node180_70,
- borderWidth: 0,
- attr: 'node.borderwidth'
- }); _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Node180_71 = new ht.Node();
- var Node180_71textStart, Node180_71textWidth, Node180_71lineStart, Node180_71align = 'left', Node180_71fontSize = 10.66664*_ratio.ratioY,Node180_71width = 78*_ratio.ratioX, Node180_71height = 13*_ratio.ratioY;
- (function () {
- if (Node180_71align === 'left') {
- Node180_71textStart = Node180_71fontSize * 0.2 > 2 ? Node180_71fontSize * 0.2 - 4 : Node180_71fontSize * 0.2 - 9;
- Node180_71textWidth = Node180_71width;
- Node180_71lineStart = 1;
- } else if (Node180_71align === 'right') {
- Node180_71textStart = 0;
- Node180_71textWidth =Node180_71fontSize <= 8 ? Node180_71width + Node180_71fontSize * 0.2 + 6 : Node180_71width - Node180_71fontSize * 0.2;
- Node180_71lineStart = (Node180_71width - (ht.Default.getTextSize('保证功率(MW)', ' '+ Node180_71fontSize + 'px "Arial"').width + 6)) * 0.5;
- } else if (Node180_71align === 'center') {
- Node180_71textStart = -3;
- Node180_71textWidth = Node180_71width;
- Node180_71lineStart = Node180_71width - ht.Default.getTextSize('保证功率(MW)', ' '+ Node180_71fontSize + 'px "Arial"').width - 11;
- }
- })();
- Node180_71.setImage(GD.getTextJSON(Node180_71width, Node180_71height, true, false, false, ' '+ Node180_71fontSize + 'px "Arial"'))
- Node180_71.setPosition(1746*ratio.ratioX, 439*ratio.ratioY);
- Node180_71.setWidth(Node180_71width);
- Node180_71.setHeight(Node180_71height);
- Node180_71._nodeType = 'text';
- Node180_71._disallowEvert = true;
- Node180_71.setRotation(0*Math.PI/180);
- Node180_71.a('node.width', Node180_71width);
- Node180_71.a('node.height', Node180_71height);
- Node180_71.a('node.rect', [0, 0, Node180_71width, Node180_71height]);
- Node180_71.a('node.bordercolor','rgba(0,0,0,1)');
- Node180_71.a('node.borderwidth', 0);
- Node180_71.a('node.background','' || 'rgba(0,0,0,0)');
- Node180_71.a('node.gradient','');
- Node180_71.a('node.gradientcolor','');
- Node180_71.a('node.text','保证功率(MW)');
- Node180_71.a('node.textalign','left');
- Node180_71.a('node.textvAlign','middle');
- Node180_71.a('node.textrect', [Node180_71textStart, 0, Node180_71textWidth, Node180_71height]);
- Node180_71.a('node.color','rgba(0,0,0,1)');
- Node180_71.a('node.font',' '+ Node180_71fontSize + 'px "Arial"');
- Node180_71.a('node.textvisible',true);
- Node180_71.a('node.linefeed',false);
- if (false) {
- Node180_71.a('node.textfunc',function(g) {
- g.beginPath();
- var str=Node180_71.a('node.text') || '保证功率(MW)';
- var color=Node180_71.a('node.color') || 'rgba(0,0,0,1)';
- canvasTextAutoLine(str,0,10.66664*0.5*_ratio.ratioY,Node180_71width,Node180_71height,10.66664*_ratio.ratioY,"left",color,' '+ Node180_71fontSize + 'px "Arial"', 0,g);
- });
- }
- if (false) {
- Node180_71.a('node.underlinepoints',[Node180_71lineStart, (13 - 10.66664) * 0.5 * _ratio.ratioY + Node180_71fontSize + 2 , ht.Default.getTextSize('保证功率(MW)', ' '+ Node180_71fontSize + 'px "Arial"').width + 6, (Node180_71height - Node180_71fontSize) * 0.5*_ratio.ratioY + Node180_71fontSize + 2 ]);
- Node180_71.a('node.underlinevisible',false);
- Node180_71.a('node.underlineBorderWidth', 1);
- }
- dataModel.add(Node180_71);
- zoomNodeList.push({
- node: Node180_71,
- borderWidth: 0,
- attr: 'node.borderwidth'
- });
- /*@GraphList@*/
- var datas = dataModel.getDatas();
- ;(typeof PageBackground != "undefined") && (PageBackground.localDynamicVar = function ( ) {return {'sy':PageBackground_sy,'ldjsc':PageBackground_ldjsc,'ztjs':PageBackground_ztjs,'sbjz':PageBackground_sbjz,'xnfx':PageBackground_xnfx,'pjgl':PageBackground_pjgl,'zbph':PageBackground_zbph,'dbgl':PageBackground_dbgl,'bjzx':PageBackground_bjzx,'jrjs':PageBackground_jrjs,'sxxny':PageBackground_sxxny,'yygjb':PageBackground_yygjb,'plhts':PageBackground_plhts,'tqwns':PageBackground_tqwns,'gljf':PageBackground_gljf,'hyfy':PageBackground_hyfy,'llbts':PageBackground_llbts,'ygcls':PageBackground_ygcls,'VIS':PageBackground_VIS,'VIS2':PageBackground_VIS2,'VIS3':PageBackground_VIS3,'VIS4':PageBackground_VIS4,'VIS5':PageBackground_VIS5,'VIS6':PageBackground_VIS6,'VIS7':PageBackground_VIS7,}});
- if((0 )){Node2.s('2d.visible',true);}else{Node2.s('2d.visible',false);}
- setBorderOpacity(Node17,0,"Node17");
- if(typeof(Node17.borderWidth)!="undefined"){setDashStyle(Node17,"Node17",'NoDash',Node17.borderWidth);}
- if(typeof(Node20.borderWidth)!="undefined"){setDashStyle(Node20,"Node20",'NoDash',Node20.borderWidth);}
- if(typeof(Node22.borderWidth)!="undefined"){setDashStyle(Node22,"Node22",'NoDash',Node22.borderWidth);}
- if((0 )){Node156.s('2d.visible',true);}else{Node156.s('2d.visible',false);}
- if((0 )){Node158.s('2d.visible',true);}else{Node158.s('2d.visible',false);}
- if((0 )){Node160.s('2d.visible',true);}else{Node160.s('2d.visible',false);}
- if((0 )){Node162.s('2d.visible',true);}else{Node162.s('2d.visible',false);}
- if((0 )){Node164.s('2d.visible',true);}else{Node164.s('2d.visible',false);}
- if((0 )){Node166.s('2d.visible',true);}else{Node166.s('2d.visible',false);}
- if((0 )){Node168.s('2d.visible',true);}else{Node168.s('2d.visible',false);}
- ;(typeof Node173 != "undefined") && (Node173.localDynamicVar = function ( ) {return {'fengjitaishu':Node173_fengjitaishu,'zhuangjirongliang':Node173_zhuangjirongliang,'pingjunfengsu':Node173_pingjunfengsu,'rifadianliang':Node173_rifadianliang,'yougonggonglv':Node173_yougonggonglv,}});
- if((0 )){Node173.s('2d.visible',true);}else{Node173.s('2d.visible',false);}
- ;(typeof Node174 != "undefined") && (Node174.localDynamicVar = function ( ) {return {'fengjitaishu':Node174_fengjitaishu,'zhuangjirongliang':Node174_zhuangjirongliang,'pingjunfengsu':Node174_pingjunfengsu,'rifadianliang':Node174_rifadianliang,'yougonggonglv':Node174_yougonggonglv,}});
- if((0 )){Node174.s('2d.visible',true);}else{Node174.s('2d.visible',false);}
- ;(typeof Node175 != "undefined") && (Node175.localDynamicVar = function ( ) {return {'fengjitaishu':Node175_fengjitaishu,'zhuangjirongliang':Node175_zhuangjirongliang,'pingjunfengsu':Node175_pingjunfengsu,'rifadianliang':Node175_rifadianliang,'yougonggonglv':Node175_yougonggonglv,}});
- if((0 )){Node175.s('2d.visible',true);}else{Node175.s('2d.visible',false);}
- ;(typeof Node176 != "undefined") && (Node176.localDynamicVar = function ( ) {return {'fengjitaishu':Node176_fengjitaishu,'zhuangjirongliang':Node176_zhuangjirongliang,'pingjunfengsu':Node176_pingjunfengsu,'rifadianliang':Node176_rifadianliang,'yougonggonglv':Node176_yougonggonglv,}});
- if((0 )){Node176.s('2d.visible',true);}else{Node176.s('2d.visible',false);}
- ;(typeof Node177 != "undefined") && (Node177.localDynamicVar = function ( ) {return {'fengjitaishu':Node177_fengjitaishu,'zhuangjirongliang':Node177_zhuangjirongliang,'pingjunfengsu':Node177_pingjunfengsu,'rifadianliang':Node177_rifadianliang,'yougonggonglv':Node177_yougonggonglv,}});
- if((0 )){Node177.s('2d.visible',true);}else{Node177.s('2d.visible',false);}
- ;(typeof Node178 != "undefined") && (Node178.localDynamicVar = function ( ) {return {'fengjitaishu':Node178_fengjitaishu,'zhuangjirongliang':Node178_zhuangjirongliang,'pingjunfengsu':Node178_pingjunfengsu,'rifadianliang':Node178_rifadianliang,'yougonggonglv':Node178_yougonggonglv,}});
- if((0 )){Node178.s('2d.visible',true);}else{Node178.s('2d.visible',false);}
- ;(typeof Node179 != "undefined") && (Node179.localDynamicVar = function ( ) {return {'fengjitaishu':Node179_fengjitaishu,'zhuangjirongliang':Node179_zhuangjirongliang,'pingjunfengsu':Node179_pingjunfengsu,'rifadianliang':Node179_rifadianliang,'yougonggonglv':Node179_yougonggonglv,}});
- if((0 )){Node179.s('2d.visible',true);}else{Node179.s('2d.visible',false);}
- if(typeof(Node180_7.borderWidth)!="undefined"){setDashStyle(Node180_7,"Node180_7",'NoDash',Node180_7.borderWidth);}
- if(typeof(Node180_40.borderWidth)!="undefined"){setDashStyle(Node180_40,"Node180_40",'NoDash',Node180_40.borderWidth);}
- if(typeof(Node180_42.borderWidth)!="undefined"){setDashStyle(Node180_42,"Node180_42",'NoDash',Node180_42.borderWidth);}
- if(typeof(Node180_52.borderWidth)!="undefined"){setDashStyle(Node180_52,"Node180_52",'NoDash',Node180_52.borderWidth);}
- if(typeof(Node180_53.borderWidth)!="undefined"){setDashStyle(Node180_53,"Node180_53",'NoDash',Node180_53.borderWidth);}
- /*@PageInit@*/
-
- function DatarefreshTask(callback){
- /*@DataVarText@*/
- callback = callback || function () {};
- if(varList.length <= 0){
- return callback();
- }
- var ajaxdata = {};
- var ajaxtype = 'GET';
- var str = "http://" + webServiceIP + ":" + webServicePort + "/api/Snapshot?tagName=";
- var para = "";
- for(var i=0;i<varList.length;i++){
- para = para + varList[i];
- if(i!==varList.length-1)
- para = para +',';
- }
- str = str + encodeURIComponent(para);
- if (str.length > 2000) {
- para = encodeURIComponent(para);
- str = "http://" + webServiceIP + ":" + webServicePort + "/api/Snapshot/tags";
- ajaxdata = {'': para};
- ajaxtype = 'POST';
- }
- $.ajax({
- url: str ,
- type: ajaxtype,
- dataType: 'json',
- data: ajaxdata,
- cache: false,
- success: function (data) {
- if (data === null) return;
- var snapshots = eval(data);
- //判断快照是否为空
- if (snapshots != null) {
- for (var i = 0; i < snapshots.length; i++) {
- var index = varList.indexOf (snapshots[i].TagName);
- var tagName = snapshots[i].TagName.toLowerCase();
- if(index >= 0 && index< varList.length){
- if(parseFloat(snapshots[i].Value).toString()==snapshots[i].Value){
- varListObj[tagName] = VarValue[index] = parseFloat(snapshots[i].Value);
- VarSnapshotTime[tagName]=snapshots[i].Time;
- }else{
- varListObj[tagName] = VarValue[index] = snapshots[i].Value;
- VarSnapshotTime[tagName]=snapshots[i].Time;
- }
- }
- }
- }
- },
- complete: function (XHR, TS) {
- XHR = null;
- callback();
- }
- }
- );
- }
- ;(function () {
- var i = 0;
- function getdata() {
- DatarefreshTask(function () {
- i++;
- Timer1sCmd();
- Timer100msCmd();
- Timer500msCmd();
- if (i <= 4) {
- setTimeout(getdata, 50);
- }
- });
- }
- setTimeout(getdata, 20);
- })();
- intervalTimers.push(setInterval(DatarefreshTask, 500));
- /*@DataRefresh@*/
-
- function GetTagsProperty(){
- /*@DataVarText@*/
- if(varList.length <= 0){
- return;
- }
- var ajaxtype = 'GET';
- var ajaxdata = {};
- var str = "http://" + webServiceIP + ":" + webServicePort + "/api/Point?tagName=";
- var para = "";
- for(var i=0;i<varList.length;i++){
- para = para + varList[i];
- if(i!==varList.length-1)
- para = para +',';
- }
- str = str + encodeURIComponent(para);
- if (str.length > 2000) {
- para = encodeURIComponent(para);
- str = "http://" + webServiceIP + ":" + webServicePort + "/api/Point/property";
- ajaxdata = {'': para};
- ajaxtype = 'POST';
- }
- $.ajax({
- url: str ,
- type: ajaxtype,
- dataType: 'json',
- data: ajaxdata,
- cache: false,
- success: function (data) {
- if (data === null) return;
- for(var i=0;i<data.length;i++){
- var basePointInfo=data[i].BasePointInfo;
- tagInfoDic[basePointInfo.TableDotTag.toLowerCase()]=basePointInfo;
- // console.log(tagInfoDic);
- }
- },
- complete: function (XHR, TS) {
- XHR = null;
- }
- }
- );
- }
- GetTagsProperty();
- window.GD && (GD.GetTagsProperty = GetTagsProperty);
- /*@TagInfoDic@*/
- var syscurrentTime="";
- function getCurrentTime(timeformat){
- syscurrentTime= moment().format(timeformat);
- if(timeformat=="d"){
- if(syscurrentTime==1){
- syscurrentTime="星期一";
- }
- if(syscurrentTime==2){
- syscurrentTime="星期二";
- }
- if(syscurrentTime==3){
- syscurrentTime="星期三";
- }
- if(syscurrentTime==4){
- syscurrentTime="星期四";
- }
- if(syscurrentTime==5){
- syscurrentTime="星期五";
- }
- if(syscurrentTime==6){
- syscurrentTime="星期六";
- }
- if(syscurrentTime==7){
- syscurrentTime="星期日";
- }
- }
- }
- getCurrentTime();
- /*@SysCurrentTime@*/
- var Counter10ms = 0;
- var Counter100ms = 0;
- var Counter500ms = 0;
- var Counter1s = 0;
- var Counter5s = 0;
- function Timer10msCmd() {
- Counter10ms++;
- Node173.refresh10ms();
- Node174.refresh10ms();
- Node175.refresh10ms();
- Node176.refresh10ms();
- Node177.refresh10ms();
- Node178.refresh10ms();
- Node179.refresh10ms();
- /*@Timer10ms@*/
- }
- // intervalTimers.push(setInterval(Timer10msCmd, 10));
- function Timer100msCmd() {
- Counter100ms++;
- Node12.a('node.text',GetDital((getVarValue('HTS_DQ.SX_GD_PLF_DQ_P1_L1_001_AI0013') ),-1));
- Node13.a('node.text',GetDital((getVarValue('GL_FJ.SX_GD_GLF_FJ_P1_L1_001_AI0006') ),-1));
- Node14.a('node.text',GetDital((getVarValue('GL_FJ.SX_GD_GLF_FJ_P1_L1_001_AI0006') ),-1));
- Node41.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0077') ),-1));
- Node42.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0132') ),-1));
- Node43.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0026') ),-1));
- Node44.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0186') ),-1));
- Node46.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0185') ),-1));
- Node63.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0126') ),-1));
- Node64.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0128') ),-1));
- Node65.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0127') ),-1));
- Node66.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0183') ),-1));
- Node68.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0184') ),-1));
- Node85.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0089') ),-1));
- Node86.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0085') ),-1));
- Node87.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0116') ),-1));
- Node88.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0093') ),-1));
- Node90.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0100') ),-1));
- Node107.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0144') ),-1));
- Node108.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0140') ),-1));
- Node109.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0168') ),-1));
- Node110.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0148') ),-1));
- Node112.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0152') ),-1));
- Node129.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0038') ),-1));
- Node130.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0034') ),-1));
- Node131.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0065') ),-1));
- Node132.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0061') ),-1));
- Node134.a('node.text',GetDital((getVarValue('GS_JSD.LN_GD_QYG_JS_XX_XX_XXX_CI0046') ),-1));
- Node173.refresh100ms();
- Node174.refresh100ms();
- Node175.refresh100ms();
- Node176.refresh100ms();
- Node177.refresh100ms();
- Node178.refresh100ms();
- Node179.refresh100ms();
- /*@Timer100ms@*/
- // graphView.redraw();
- }
- intervalTimers.push(setInterval(Timer100msCmd, 100));
- function Timer500msCmd() {
- Counter500ms++;
- Node173.refresh500ms();
- Node174.refresh500ms();
- Node175.refresh500ms();
- Node176.refresh500ms();
- Node177.refresh500ms();
- Node178.refresh500ms();
- Node179.refresh500ms();
- /*@Timer500ms@*/
- // graphView.redraw();
- }
- intervalTimers.push(setInterval(Timer500msCmd, 500));
- function Timer1sCmd() {
- Counter1s++;
- if (moment(Date.now()).format('HH:mm:ss') === '23:59:59' && Counter1s > 5) location.reload();
- Node180_3_chart.setOption({series: { data: [(getVarValue('demo.DEMO_AI009') )]}});
- Node180_4_chart.setOption({series: { data: [(getVarValue('demo.DEMO_AI009') )]}});
- Node180_43_chart.setOption({series: { data: [(getVarValue('demo.DEMO_AI009') )]}});
- Node180_47_chart.setOption({series: { data: [(getVarValue('demo.DEMO_AI009') )]}});
- Node173.refresh1s(Counter1s);
- Node174.refresh1s(Counter1s);
- Node175.refresh1s(Counter1s);
- Node176.refresh1s(Counter1s);
- Node177.refresh1s(Counter1s);
- Node178.refresh1s(Counter1s);
- Node179.refresh1s(Counter1s);
- /*@Timer1000ms@*/
- // graphView.redraw();
- }
- Timer1sCmd();
- intervalTimers.push(setInterval(Timer1sCmd, 1000));
- function Timer5sCmd() {
- Counter5s++;
- Node173.refresh5s();
- Node174.refresh5s();
- Node175.refresh5s();
- Node176.refresh5s();
- Node177.refresh5s();
- Node178.refresh5s();
- Node179.refresh5s();
- /*@Timer5000ms@*/
- // graphView.redraw();
- }
- // intervalTimers.push(setInterval(Timer5sCmd, 5000));
- /*@EventTimer@*/
- //graphView.setInteractors(null);
- if (!!view) {
- view.eventList = view.eventList || {};
- }
- function blockDataFilter (data) {
- return !(data instanceof ht.Block || data.isLibBackground || data.__clickable === false);
- }
- var type ='mousedown';
- function doMouseDown (e, origin) {
- if(!ht.Default.isLeftButton(e)){return;}
- mouseX=e.clientX;
- mouseY=e.clientY;
- origin = origin || graphView;
- window.GD && GD.hideTagInfo();
- var data = origin.getDataAt(e, blockDataFilter);
- if (data && data.__parentLib) {
- _libModel.getDataByKey(data.__parentLib).onEvent(e, data, 'mousedown', origin);
- return;
- }
- if(data === PageBackground){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/ldjsc'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node2){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/ztjs2'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node151_0){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_hy'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node151_1){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_hy'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node152_0){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_yy'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node152_1){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_yy'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node153_0){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_gl'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node153_1){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_gl'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node154_0){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_pl'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node154_1){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_pl'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node156){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_yy'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node158){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_pl'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node160){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_wn'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node162){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_gl'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node164){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_hy'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node170_0){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_wn'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node170_1){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_wn'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node171_0){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_wn'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- if(data === Node171_1){if(isAuthEnable=='False'||isAuthEnable=='True'&&-1==-1){(typeof window.saveLocalParams === 'function') && (function (){var params = {}; saveLocalParams(params)})();var hash = window.location.hash; window.location.hash = '1234/pbt_wn'; if (hash === window.location.hash && typeof window.onhashchange === 'function') {window.onhashchange();}} }
- /*@EvnentMouseDown@*/
- }
- view.eventList[type] = doMouseDown;
- view['on'+type] = function(e){
- doMouseDown(e);
- e.preventDefault();
- };
- type ='mouseup';
- function doMouseUp (e, origin) {
- if(!ht.Default.isLeftButton(e)){return;}
- origin = origin || graphView;
- var data = origin.getDataAt(e, blockDataFilter);
- if (data && data.__parentLib) {
- _libModel.getDataByKey(data.__parentLib).onEvent(e, data, 'mouseup', origin);
- return;
- }
- /*@EvnentMouseUp@*/
- }
- view.eventList[type] = doMouseUp;
- view['on'+type] = function(e){
- doMouseUp(e);
- e.preventDefault();
- };
- type ='click';
- function doClick (e, origin) {
- if(!ht.Default.isLeftButton(e)){return;}
- origin = origin || graphView;
- var data = origin.getDataAt(e, blockDataFilter);
- if (data && data.__parentLib) {
- _libModel.getDataByKey(data.__parentLib).onEvent(e, data, 'click', origin);
- return;
- }
- /*@EvnentClicked@*/
- }
- view.eventList[type] = doClick;
- view['on'+type] = function(e){
- doClick(e);
- e.preventDefault();
- };
- type ='mousemove';
- var objMouseOn = null, _objMouseOn = null;
- function doMouseMove (e, origin, offset) {
- var positon, data, zoom, _data, libData;
-
- origin = origin || graphView;
- position=origin.getLogicalPoint(e);
- zoom = graphView.getZoom();
- if (origin === graphView) {
- mouseX= position.x + origin.tx();
- mouseY = position.y + origin.ty();
- } else {
- offset = offset || {x: 0, y: 0};
- mouseX = position.x / zoom + offset.x + origin.tx();
- mouseY = position.y / zoom + offset.y + origin.ty();
- }
- data = origin.getDataAt(e, function (data) {return !(data instanceof ht.Block)});
- if(data === objMouseOn || data === _objMouseOn) return;
- // 如果是图元内的小图形,给libData赋值为图元本身,方便下面使用
- if (data && data.__parentLib && _libModel.getDataByKey(data.__parentLib)) {
- _data = data;
- data = libData = _libModel.getDataByKey(_data.__parentLib);
- }
- if(data !== Node2&& objMouseOn===Node2){Node3.s('2d.visible',true); }
- if(data !== Node2&& objMouseOn===Node2){Node2.s('2d.visible',false); }
- if(data !== Node150_0&& objMouseOn===Node150_0){Node174.s('2d.visible',false); }
- if(data !== Node150_1&& objMouseOn===Node150_1){Node174.s('2d.visible',false); }
- if(data !== Node151_0&& objMouseOn===Node151_0){Node176.s('2d.visible',false); }
- if(data !== Node151_1&& objMouseOn===Node151_1){Node176.s('2d.visible',false); }
- if(data !== Node152_0&& objMouseOn===Node152_0){Node177.s('2d.visible',false); }
- if(data !== Node152_1&& objMouseOn===Node152_1){Node177.s('2d.visible',false); }
- if(data !== Node153_0&& objMouseOn===Node153_0){Node175.s('2d.visible',false); }
- if(data !== Node153_1&& objMouseOn===Node153_1){Node175.s('2d.visible',false); }
- if(data !== Node154_0&& objMouseOn===Node154_0){Node178.s('2d.visible',false); }
- if(data !== Node154_1&& objMouseOn===Node154_1){Node178.s('2d.visible',false); }
- if(data !== Node155_0&& objMouseOn===Node155_0){Node179.s('2d.visible',false); }
- if(data !== Node155_1&& objMouseOn===Node155_1){Node179.s('2d.visible',false); }
- if(data !== Node156&& objMouseOn===Node156){Node157.s('2d.visible',true); }
- if(data !== Node156&& objMouseOn===Node156){Node156.s('2d.visible',false); }
- if(data !== Node158&& objMouseOn===Node158){Node159.s('2d.visible',true); }
- if(data !== Node158&& objMouseOn===Node158){Node158.s('2d.visible',false); }
- if(data !== Node160&& objMouseOn===Node160){Node161.s('2d.visible',true); }
- if(data !== Node160&& objMouseOn===Node160){Node160.s('2d.visible',false); }
- if(data !== Node162&& objMouseOn===Node162){Node163.s('2d.visible',true); }
- if(data !== Node162&& objMouseOn===Node162){Node162.s('2d.visible',false); }
- if(data !== Node164&& objMouseOn===Node164){Node165.s('2d.visible',true); }
- if(data !== Node164&& objMouseOn===Node164){Node164.s('2d.visible',false); }
- if(data !== Node166&& objMouseOn===Node166){Node167.s('2d.visible',true); }
- if(data !== Node166&& objMouseOn===Node166){Node166.s('2d.visible',false); }
- if(data !== Node168&& objMouseOn===Node168){Node169.s('2d.visible',true); }
- if(data !== Node168&& objMouseOn===Node168){Node168.s('2d.visible',false); }
- if(data !== Node170_0&& objMouseOn===Node170_0){Node170_0.s('2d.visible',false);Node170_1.s('2d.visible',false); }
- if(data !== Node170_0&& objMouseOn===Node170_0){Node171_0.s('2d.visible',true);Node171_1.s('2d.visible',true); }
- if(data !== Node170_0&& objMouseOn===Node170_0){Node173.s('2d.visible',false); }
- if(data !== Node170_1&& objMouseOn===Node170_1){Node170_0.s('2d.visible',false);Node170_1.s('2d.visible',false); }
- if(data !== Node170_1&& objMouseOn===Node170_1){Node171_0.s('2d.visible',true);Node171_1.s('2d.visible',true); }
- if(data !== Node170_1&& objMouseOn===Node170_1){Node173.s('2d.visible',false); }
- /*@EvnentMouseLeave@*/
- if (objMouseOn && objMouseOn._baseClass && objMouseOn._baseClass.match(/^ht.lib/)) {
- objMouseOn.onEvent(e, _data, 'mousemove', origin, offset, _objMouseOn);
- }
- objMouseOn = data;
- _objMouseOn = _data;
- if(data === Node3){Node3.s('2d.visible',false); }
- if(data === Node3){Node2.s('2d.visible',true); }
- if(data === Node150_0){Node174.s('2d.visible',true); }
- if(data === Node150_1){Node174.s('2d.visible',true); }
- if(data === Node151_0){Node176.s('2d.visible',true); }
- if(data === Node151_1){Node176.s('2d.visible',true); }
- if(data === Node152_0){Node177.s('2d.visible',true); }
- if(data === Node152_1){Node177.s('2d.visible',true); }
- if(data === Node153_0){Node175.s('2d.visible',true); }
- if(data === Node153_1){Node175.s('2d.visible',true); }
- if(data === Node154_0){Node178.s('2d.visible',true); }
- if(data === Node154_1){Node178.s('2d.visible',true); }
- if(data === Node155_0){Node179.s('2d.visible',true); }
- if(data === Node155_1){Node179.s('2d.visible',true); }
- if(data === Node157){Node157.s('2d.visible',false); }
- if(data === Node157){Node156.s('2d.visible',true); }
- if(data === Node159){Node159.s('2d.visible',false); }
- if(data === Node159){Node158.s('2d.visible',true); }
- if(data === Node161){Node161.s('2d.visible',false); }
- if(data === Node161){Node160.s('2d.visible',true); }
- if(data === Node163){Node163.s('2d.visible',false); }
- if(data === Node163){Node162.s('2d.visible',true); }
- if(data === Node165){Node165.s('2d.visible',false); }
- if(data === Node165){Node164.s('2d.visible',true); }
- if(data === Node167){Node167.s('2d.visible',false); }
- if(data === Node167){Node166.s('2d.visible',true); }
- if(data === Node169){Node169.s('2d.visible',false); }
- if(data === Node169){Node168.s('2d.visible',true); }
- if(data === Node171_0){Node171_0.s('2d.visible',false);Node171_1.s('2d.visible',false); }
- if(data === Node171_0){Node170_0.s('2d.visible',true);Node170_1.s('2d.visible',true); }
- if(data === Node171_0){Node173.s('2d.visible',true); }
- if(data === Node171_1){Node171_0.s('2d.visible',false);Node171_1.s('2d.visible',false); }
- if(data === Node171_1){Node170_0.s('2d.visible',true);Node170_1.s('2d.visible',true); }
- if(data === Node171_1){Node173.s('2d.visible',true); }
- /*@EvnentMouseOver@*/
- if (data && data._baseClass && data._baseClass.match(/^ht.lib/)) {
- data.onEvent(e, _data, 'mousemove', origin, offset, _objMouseOn);
- }
- }
- view.eventList[type] = doMouseMove;
- view['on'+type] = function(e){
- doMouseMove(e);
- e.preventDefault();
- };
- window.onkeydown = function doKeyDown(e) {
- var keyID = e.keyCode ? e.keyCode :e.which;
- //if(keyID === 87) { }
- /*@EvnentKeyDown@*/
- // if (keyID === 27 && graphView) {
- // graphView.setZoom(1);
- // graphView.tx(0);
- // graphView.ty(0);
- // }
- return;
- }
- /*@Event@*/
- /*@Declare@*/
- var contextmenu = new ht.widget.ContextMenu();
- contextmenu.contextMenuHoverBackground='rgb(104,216,255)';
- contextmenu.contextMenuBackground='rgb(255,255,255)';
- contextmenu.contextMenuHoverLabelColor='rgb(255,255,255)';
- contextmenu.contextMenuLabelColor='rgb(48,48,48)';
- contextmenu.beforeShow = function(e, gv) {
- gv = gv || graphView;
- if (e.originEvent && e.originEvent.currentTarget && e.originEvent.currentTarget.className === 'main') {
- gv = graphView;
- }
- this.setItems(null);
- window.GD && GD.hideTagInfo();
- var data = gv.getDataAt(e) || graphView.getDataAt(e);
- if (data && data.__parentLib) {
- _libModel.getDataByKey(data.__parentLib).onEvent(e, data, 'contextmenu', gv, {}, {}, this);
- return;
- }
- //if(false);
- /*@SetNodeContextMenu@*/
- /*@SetPageContextMenu@*/
- };
- contextmenu.afterShow = function (e) {
- var fontSize = 14,
- screenWidth = window.screen.width,
- screenHeight = window.screen.height,
- rx = screenWidth / 1920,
- ry = screenHeight / 1080,
- itemHeight = 30 * ry,
- fontFamily = '',
- width = 150 * rx;
- itemHeight = itemHeight > 30 ? itemHeight : 30;
- var $contextMenu = $(this.getView());
- $contextMenu.find('.contextmenu-item-icon').css({
- width: 14,
- height: 14,
- marginRight: 10
- });
- $contextMenu.find('li.menu-item').css({
- fontSize: fontSize,
- fontWeight: 600,
- height: itemHeight,
- minHeight: 25,
- lineHeight: itemHeight + 'px',
- fontFamily: fontFamily,
- padding: 0
- });
- $contextMenu.find('ul').css({
- width: width,
- minWidth: 100
- });
- contextmenu.setLabelMaxWidth((width > 120 ? width : 120) - 40);
- };
- view.eventList && (view.eventList['contextMenu'] = contextmenu);
- contextmenu.addTo(view);
- contextMenuOnViewList.push(contextmenu);
- /*@ControlContextMenu@*/
- graphView.getSelectWidth = function() { return 0; };
- (function () {
- var $mainContainer,
- mainContainerHeight,
- mainContainerWidth,
- originHeight,
- originWidth,
- ratioX,
- ratioY,
- isPageContainer = false;
- graphView._pageBackgroundNode = PageBackground;
- if (pageSizeRatioValue !== 'adaptBrowser') {
- window.GD && GD.setPageToCenterOrLeftTop();
- }
- function throttle () {
- var timer = null;
- return function () {
- timer && clearTimeout(timer);
- timer = setTimeout(function () {
- var value = GD.getParams('pageSizeRatioValue') || {};
- value = value.value || PageAdaptMode.value;
- GD.setPageSizeWithRatio(value, ratio, backSize);
- }, 200)
- }
- }
- try {
- if (window.parent && window.parent.openDialog) {
- autoAdaptive = false;
- }
- } catch (error) {}
- try {
- if (window.parent && window.parent.pageContainer) {
- graphView.handleScroll = function (data) {
- var t = graphView.ty() - data.deltaY;
- var contentSize = graphView.getContentRect();
- var min = contentSize.height - graphView.getHeight() + 50;
-
- if (min <= 50)
- return ;
- graphView.setTranslate(0, t, true);
- graphView.setScrollBarSize(8);
- }
- graphView.adjustTranslateY = function (value) {
- var contentSize = graphView.getContentRect();
- var min = graphView.getHeight() - contentSize.height - 50;
-
- value = value > 0 ? 0 : value;
- value = value < min ? min : value;
- return value;
- }
- autoAdaptive = false;
- isPageContainer = true;
- }
- } catch (error) {}
- if (autoAdaptive !== false && autoAdaptive !== 'false' && autoAdaptive !== 'False') {
- graphView.setScrollBarVisible(false);
- if (!graphView._pannable) {
- graphView.adjustTranslateX = function () {return 0};
- graphView.adjustTranslateY = function () {return 0};
- }
- $window.off('resize').on('resize', throttle());
- // setTimeout(resizePage, 100);
- showPage();
- } else {
- showPage();
- graphView.fitContent(false,0,true);
- $window.off('resize').on('resize', function (e) {
- if (!!isPageContainer) {
- window.parent.postMessage('getZoom', '*');
- } else {
- graphView.fitContent(false,0,true);
- }
- })
- }
- var graphViewTimer = null;
- // 监听鼠标缩放页面事件
- graphView.adjustZoom = function (value) {
- graphViewTimer && clearTimeout(graphViewTimer);
- graphViewTimer = setTimeout(function () {
- $window.trigger('graphViewZoomEnded', [value]);
- GD.resetNodeBorderWidth(zoomNodeList, 1/value);
- }, 80)
- return value;
- }
- $window.off('customEventResizeNodes').on('customEventResizeNodes', function (e) {
- var data = e.args;
- var value = GD.getParams('pageSizeRatioValue') || {};
- value = value.value || PageAdaptMode.value;
- GD.setPageSizeWithRatio(value, ratio, backSize);
- graphView.setZoom(data.zoom);
- graphView.tx(0);
- graphView.ty(0);
- });
- $window.off('beforeunload').on("beforeunload", function( event ) {
- try {
- sessionStorage.setItem(location.pathname, JSON.stringify(VarValue));
- } catch (error) {console.log(error.message);}
- ;(function () {
- var GD = window.GD;
- if (!GD || typeof GD.removeParams !== 'function') return ;
- GD.removeParams();
- GD.removeParams('pageSizeRatioValue');
- })();
-
- });
- graphView.setScrollBarColor('rgba(211,211,211,1)');
- graphView.setAutoHideScrollBar(false);
- GD.autoToggleScrollBar();
- // ;(function () {
- // var oriX=browserSize.width/backSize.width;
- // var oriY=browserSize.height/backSize.height;
- // var json = [
- // {
- // label: "25%",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio(0.25);
- // }
- // },
- // {
- // label: "50%",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio(0.5);
- // }
- // },
- // {
- // label: "100%",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio(1);
- // }
- // },
- // {
- // label: "200%",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio(2);
- // }
- // },
-
- // {
- // label: "400%",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio(4);
- // }
- // },
-
- // {
- // label: "实际大小",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio('originSize');
- // }
- // },
- // {
- // label: '适合屏幕',
- // action: function (item, event) {
- // GD.setPageSizeWithRatio('adaptBrowser');
- // }
- // },
- // {
- // label: "适合宽度",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio('adaptWidth');
- // }
- // },
- // {
- // label: "适合高度",
- // action: function(item, event) {
- // GD.setPageSizeWithRatio('adaptHeight');
- // }
- // },
- // ];
-
- // var zoomMenu = new ht.widget.ContextMenu(json);
- // zoomMenu.disableGlobalKey();
- // zoomMenu.setLabelMaxWidth(100);
- // zoomMenu.addTo($('.main')[0]);
- // })();
-
- (function () {
- var btnstr="停止数据刷新";
- var json = [], item1, item2;
- item1 = {
- label: btnstr,
- action: function(item, event) {
- if(btnstr=="停止数据刷新"){
- clearInterval(intervalTimers[0]);
- intervalTimers.shift(intervalTimers[0]);
- btnstr="开启数据刷新";
- json[0].label=btnstr;
- }else{
- intervalTimers.unshift(setInterval(DatarefreshTask, 1000));
- btnstr="停止数据刷新";
- json[0].label=btnstr;
- }
- }
- };
- item2 = {
- label: "下载本页所有测点",
- action: function(item, event) {
- var time = new Date();
- var t=time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate() + " " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds();
- var str= "测点名\n";
- for(var i=0;i<varList.length;i++){
- str+=varList[i]+"\n"
- }
- str = encodeURIComponent(str);
- var link = document.createElement("a");
- link.download = t+"测点名称集合.csv";
- link.href ="data:text/csv;charset=utf-8,\ufeff"+str;
- link.click();
- }
- };
- item3 = {
- label: "历史回放",
- action: function(item, event) {
- createHisBackDialog(DatarefreshTask);
- }
- };
- item4 = {
- label: "保存页面图片",
- action: function(item, event) {
- savehtmlToJpg();
- }
- };
- if (false) {
- json.push(item1);
- }
- if (false) {
- json.push(item2);
- }
- if(false){
- json.push(item3);
- }
- if(false){
- json.push(item4);
- }
- function addContextMenu() {
- var dataMenu = new ht.widget.ContextMenu();
- dataMenu.enableGlobalKey();
- dataMenu.setLabelMaxWidth(120);
- dataMenu.addTo(view);
- contextMenuOnViewList.push(dataMenu);
- dataMenu.beforeShow=function(e){
- if(e.originEvent.target.className=="main"){
- if(typeof(graphView.getDataAt(e))=="undefined"){
- this.setItems(json);
- }else if(typeof(graphView.getDataAt(e)._attrObject)=="undefined"){
- this.setItems(json);
- }else{
- this.setItems(null);
- }
- }else{
- this.setItems(null);
- }
- }
- };
- if (json.length > 0) {
- addContextMenu();
- }
- })();
-
- })();
- }
|