123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868 |
- ht.lib = ht.lib || {};
- if (!ht.lib['12345']) {
- ht.lib['12345'] = function (x, y, width, height, angle, localVarObj, localDynamicVar, nodename) {
- _ratio = GD.getRatioWithRotation(0, ratio);
- ht.lib['12345'].superClass.constructor.apply(this);
- this.localVarObj = localVarObj;
- this.localDynamicVar = localDynamicVar;
- this.childNodes = [];
-
- this._styleObject = {};
- this._originWidth = 87*_ratio.ratioX;
- this._originHeight = 59*_ratio.ratioY;
- this._baseClass = "ht.lib.12345";
- this._background = new ht.Node();
- this._background.setWidth(this._originWidth);
- this._background.setHeight(this._originHeight);
- this._background.setPosition(this._originWidth/2, this._originHeight/2);
- this._background.setImage({
- width: width,
- height: height,
- clip: true,
- comps: [
- {
- type: 'rect',
- background: 'rgba(0,255,0,0)',
- rect: [0,0,width, height]
- }
- ]
- });
- this._background.__parentLib = nodename;
- this._background.isLibBackground = true;
- this.childNodes.push(this._background);
- dataModel.add(this._background);
- /*@PageBackgroundInit@*/
- /*@PageBeforeInit@*/
- var Lib_12345Node0points=[27, 48,27, 58],
- Lib_12345Node0rect=ht.Default.unionPoint([{x:27,y:48},{x:27,y:58}]),
- Lib_12345Node0compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Lib_12345Node0points.length;i++){
- if(i%2==0){
- Lib_12345Node0compspts.push(Lib_12345Node0points[i]-Lib_12345Node0rect.x);
- }else{
- Lib_12345Node0compspts.push(Lib_12345Node0points[i]-Lib_12345Node0rect.y);
- }
- }
- var Lib_12345Node0ptslength=Lib_12345Node0compspts.length;
- if (Lib_12345Node0rect.height === 0) {
- Lib_12345Node0compspts[0] -= 0;
- Lib_12345Node0compspts[Lib_12345Node0ptslength-2] += 0;
- } else if (Lib_12345Node0rect.width === 0){
- Lib_12345Node0compspts[1] -= 0;
- Lib_12345Node0compspts[Lib_12345Node0ptslength-1] += 0;
- } else {
- Lib_12345Node0compspts[0] -= 0;
- Lib_12345Node0compspts[1] -= 0;
- Lib_12345Node0compspts[Lib_12345Node0ptslength-2] += 0;
- Lib_12345Node0compspts[Lib_12345Node0ptslength-1] += 0;
- }
- Lib_12345Node0 = new ht.Node();
- Lib_12345Node0.borderWidth = 1;
- Lib_12345Node0rect.width = Lib_12345Node0rect.width === 0 ? 0.0001 : Lib_12345Node0rect.width;
- Lib_12345Node0rect.height = Lib_12345Node0rect.height === 0 ? 0.0001 : Lib_12345Node0rect.height;
- var Lib_12345Node0endCompspts = [Lib_12345Node0compspts[Lib_12345Node0ptslength-2],Lib_12345Node0compspts[Lib_12345Node0ptslength-1],0,0];
- var Lib_12345Node0startCompspts = [Lib_12345Node0compspts[0],Lib_12345Node0compspts[1],0,0];
- Lib_12345Node0.setImage(GD.getPolyLineJSON());
- Lib_12345Node0.setPosition(Lib_12345Node0rect.x+Lib_12345Node0rect.width/2,Lib_12345Node0rect.y+Lib_12345Node0rect.height/2);
- Lib_12345Node0.setSize(Lib_12345Node0rect.width,Lib_12345Node0rect.height);
- Lib_12345Node0.setStyle("opacity",1);
- Lib_12345Node0.s({'pixelPerfect':true});
- Lib_12345Node0borderwidth=1;
- Lib_12345Node0.setRotation(0);
- dataModel.add(Lib_12345Node0);
- Lib_12345Node0.a('node.points',Lib_12345Node0compspts);
- Lib_12345Node0.a('node.segments',[1,2]);
- Lib_12345Node0.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node0.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node0.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node0.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node0.a('node.gradient','');
- Lib_12345Node0.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node0.a('node.endCompspts',Lib_12345Node0endCompspts);
- Lib_12345Node0.a('node.startCompspts',Lib_12345Node0startCompspts);
- (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 = 'Lib_12345Node0';
- 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);
- }
- })(Lib_12345Node0, Lib_12345Node0.getImage(), Lib_12345Node0compspts, Lib_12345Node0endCompspts, Lib_12345Node0startCompspts);
- var Lib_12345Node1points=[27, 58,77, 58],
- Lib_12345Node1rect=ht.Default.unionPoint([{x:27,y:58},{x:77,y:58}]),
- Lib_12345Node1compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Lib_12345Node1points.length;i++){
- if(i%2==0){
- Lib_12345Node1compspts.push(Lib_12345Node1points[i]-Lib_12345Node1rect.x);
- }else{
- Lib_12345Node1compspts.push(Lib_12345Node1points[i]-Lib_12345Node1rect.y);
- }
- }
- var Lib_12345Node1ptslength=Lib_12345Node1compspts.length;
- if (Lib_12345Node1rect.height === 0) {
- Lib_12345Node1compspts[0] -= 0;
- Lib_12345Node1compspts[Lib_12345Node1ptslength-2] += 0;
- } else if (Lib_12345Node1rect.width === 0){
- Lib_12345Node1compspts[1] -= 0;
- Lib_12345Node1compspts[Lib_12345Node1ptslength-1] += 0;
- } else {
- Lib_12345Node1compspts[0] -= 0;
- Lib_12345Node1compspts[1] -= 0;
- Lib_12345Node1compspts[Lib_12345Node1ptslength-2] += 0;
- Lib_12345Node1compspts[Lib_12345Node1ptslength-1] += 0;
- }
- Lib_12345Node1 = new ht.Node();
- Lib_12345Node1.borderWidth = 1;
- Lib_12345Node1rect.width = Lib_12345Node1rect.width === 0 ? 0.0001 : Lib_12345Node1rect.width;
- Lib_12345Node1rect.height = Lib_12345Node1rect.height === 0 ? 0.0001 : Lib_12345Node1rect.height;
- var Lib_12345Node1endCompspts = [Lib_12345Node1compspts[Lib_12345Node1ptslength-2],Lib_12345Node1compspts[Lib_12345Node1ptslength-1],0,0];
- var Lib_12345Node1startCompspts = [Lib_12345Node1compspts[0],Lib_12345Node1compspts[1],0,0];
- Lib_12345Node1.setImage(GD.getPolyLineJSON());
- Lib_12345Node1.setPosition(Lib_12345Node1rect.x+Lib_12345Node1rect.width/2,Lib_12345Node1rect.y+Lib_12345Node1rect.height/2);
- Lib_12345Node1.setSize(Lib_12345Node1rect.width,Lib_12345Node1rect.height);
- Lib_12345Node1.setStyle("opacity",1);
- Lib_12345Node1.s({'pixelPerfect':true});
- Lib_12345Node1borderwidth=1;
- Lib_12345Node1.setRotation(0);
- dataModel.add(Lib_12345Node1);
- Lib_12345Node1.a('node.points',Lib_12345Node1compspts);
- Lib_12345Node1.a('node.segments',[1,2]);
- Lib_12345Node1.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node1.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node1.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node1.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node1.a('node.gradient','');
- Lib_12345Node1.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node1.a('node.endCompspts',Lib_12345Node1endCompspts);
- Lib_12345Node1.a('node.startCompspts',Lib_12345Node1startCompspts);
- (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 = 'Lib_12345Node1';
- 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);
- }
- })(Lib_12345Node1, Lib_12345Node1.getImage(), Lib_12345Node1compspts, Lib_12345Node1endCompspts, Lib_12345Node1startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_12345Node2type = 'oval';
- var Lib_12345Node2 = new ht.Node(),
- Lib_12345Node2BorderWidth = 1*2;
- if (Lib_12345Node2type === 'arc') {
- Lib_12345Node2BorderWidth *= 1;
- }
- Lib_12345Node2.setImage(GD.getRectJSON(24.12698*_ratio.ratioX, 20.63269*_ratio.ratioY, Lib_12345Node2type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_12345Node2.setPosition(30*ratio.ratioX, 20*ratio.ratioY);
- Lib_12345Node2.setSize(24.12698*_ratio.ratioX, 20.63269*_ratio.ratioY);
- Lib_12345Node2.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_12345Node2.a('node.width', 24.12698*_ratio.ratioX);
- Lib_12345Node2.a('node.height', 20.63269*_ratio.ratioY);
- Lib_12345Node2.a('node.type', Lib_12345Node2type);
- Lib_12345Node2.a('node.rect', [0, 0, 24.12698*_ratio.ratioX, 20.63269*_ratio.ratioY]);
- Lib_12345Node2.a('node.background', 'rgba(255,255,255,0.003921569)');
- Lib_12345Node2.a('node.gradientcolor', '');
- Lib_12345Node2.a('node.gradient', '');
- Lib_12345Node2.a('node.borderwidth', Lib_12345Node2BorderWidth);
- Lib_12345Node2.a('node.color', 'rgba(255,128,0,1)');
- Lib_12345Node2.a('node.fillrect', [0,0,0,0]);
- Lib_12345Node2.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_12345Node2.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_12345Node2.a('node.fillgradient', '');
- if (Lib_12345Node2type !== 'rect') {
- Lib_12345Node2.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_12345Node2.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_12345Node2.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_12345Node2type === 'arc') {
- Lib_12345Node2.a('node.arcOval', true);
- }
- Lib_12345Node2.setRotation(0*Math.PI/180);
- Lib_12345Node2.borderWidth = Lib_12345Node2BorderWidth;
- Lib_12345Node2.borderFillwidth = Lib_12345Node2BorderWidth;
- dataModel.add(Lib_12345Node2);
- Lib_12345Node2._nodename = 'Lib_12345Node2'
- Lib_12345Node2._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_12345Node2,
- 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);
- }
- })(Lib_12345Node2, Lib_12345Node2.getImage());_ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_12345Node3type = 'oval';
- var Lib_12345Node3 = new ht.Node(),
- Lib_12345Node3BorderWidth = 1*2;
- if (Lib_12345Node3type === 'arc') {
- Lib_12345Node3BorderWidth *= 1;
- }
- Lib_12345Node3.setImage(GD.getRectJSON(24.12698*_ratio.ratioX, 20.63269*_ratio.ratioY, Lib_12345Node3type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_12345Node3.setPosition(12*ratio.ratioX, 28*ratio.ratioY);
- Lib_12345Node3.setSize(24.12698*_ratio.ratioX, 20.63269*_ratio.ratioY);
- Lib_12345Node3.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_12345Node3.a('node.width', 24.12698*_ratio.ratioX);
- Lib_12345Node3.a('node.height', 20.63269*_ratio.ratioY);
- Lib_12345Node3.a('node.type', Lib_12345Node3type);
- Lib_12345Node3.a('node.rect', [0, 0, 24.12698*_ratio.ratioX, 20.63269*_ratio.ratioY]);
- Lib_12345Node3.a('node.background', 'rgba(255,255,255,0.003921569)');
- Lib_12345Node3.a('node.gradientcolor', '');
- Lib_12345Node3.a('node.gradient', '');
- Lib_12345Node3.a('node.borderwidth', Lib_12345Node3BorderWidth);
- Lib_12345Node3.a('node.color', 'rgba(255,128,0,1)');
- Lib_12345Node3.a('node.fillrect', [0,0,0,0]);
- Lib_12345Node3.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_12345Node3.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_12345Node3.a('node.fillgradient', '');
- if (Lib_12345Node3type !== 'rect') {
- Lib_12345Node3.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_12345Node3.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_12345Node3.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_12345Node3type === 'arc') {
- Lib_12345Node3.a('node.arcOval', true);
- }
- Lib_12345Node3.setRotation(0*Math.PI/180);
- Lib_12345Node3.borderWidth = Lib_12345Node3BorderWidth;
- Lib_12345Node3.borderFillwidth = Lib_12345Node3BorderWidth;
- dataModel.add(Lib_12345Node3);
- Lib_12345Node3._nodename = 'Lib_12345Node3'
- Lib_12345Node3._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_12345Node3,
- 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);
- }
- })(Lib_12345Node3, Lib_12345Node3.getImage());var Lib_12345Node4rect=ht.Default.unionPoint([{x: 5, y: 23},{x: 5, y: 23},{x: 14, y: 23},{x: 10, y: 33}]),
- Lib_12345Node4points=[5,23,5,23,14,23,10,33],
- Lib_12345Node4compsPoints=[],
- Lib_12345Node4SetPoints = [{x: 5, y: 23},{x: 5, y: 23},{x: 14, y: 23},{x: 10, y: 33}],
- Lib_12345Node4setSegments = [1,2,2,2];
- _ratio = GD.getRatioWithRotation(1.570796, ratio);
- for(var i=0;i<Lib_12345Node4points.length;i++){
- if(i%2==0){
- Lib_12345Node4compsPoints.push(Lib_12345Node4points[i]-Lib_12345Node4rect.x);
- }else{
- Lib_12345Node4compsPoints.push(Lib_12345Node4points[i]-Lib_12345Node4rect.y);
- }
- }
- var Lib_12345Node4 = new ht.Node();
- Lib_12345Node4.setImage(GD.getPolyGonJSON());
- Lib_12345Node4.setPosition(Lib_12345Node4rect.x + Lib_12345Node4rect.width/2, Lib_12345Node4rect.y + Lib_12345Node4rect.height/2);
- Lib_12345Node4.setSize(Lib_12345Node4rect.width, Lib_12345Node4rect.height);
- Lib_12345Node4.setRotation(1.570796);
- Lib_12345Node4.borderWidth=1;
- Lib_12345Node4.borderFillwidth=1*2;
- Lib_12345Node4.s({'pixelPerfect':true});
- dataModel.add(Lib_12345Node4);
- // Lib_12345Node4.a('node.width', Lib_12345Node4rect.width*_ratio.ratioX);
- // Lib_12345Node4.a('node.height', Lib_12345Node4rect.height*_ratio.ratioY);
- Lib_12345Node4.a('node.clip', function(g,width,height,data) {
- var clippoints = Lib_12345Node4SetPoints;
- if(clippoints.length<=3) return;
- if(Lib_12345Node4.a('Lib_12345Node4.isFill')=="false") return;
- var clipcompsPoints=[];
- var rect = ht.Default.unionPoint(clippoints);
- for(var i=0;i<clippoints.length;i++){
- clipcompsPoints.push({x:clippoints[i].x-rect.x,y:clippoints[i].y-rect.y});
- }
- var clipsegments=Lib_12345Node4setSegments;
- g.beginPath();
- drawPoints(g,clipcompsPoints,clipsegments);
- g.clip();
- })
- Lib_12345Node4.a('node.type', 'shape');
- Lib_12345Node4.a('node.comsPoints', Lib_12345Node4compsPoints);
- Lib_12345Node4.a('node.closePath', true);
- Lib_12345Node4.a('node.borderwidth', 1);
- Lib_12345Node4.a('node.color', 'rgba(255,128,0,1)');
- Lib_12345Node4.a('node.background','rgba(255,255,255,0.003921569)');
- Lib_12345Node4.a('node.closePath', true);
- Lib_12345Node4.a('node.closePath', true);
- Lib_12345Node4.a('node.gradient','');
- Lib_12345Node4.a('node.gradientcolor','');
- Lib_12345Node4.a('node.isFill','false');
- Lib_12345Node4.a('node.original',[0,0,0,0]);
- Lib_12345Node4.a('node.fillrect',[0,0,0,0]);
- Lib_12345Node4.a('node.fillbackcolor','rgba(255,255,255,0.003921569)');
- Lib_12345Node4.a('node.fillgradient','');
- Lib_12345Node4.a('node.fillgradientcolor','');
- Lib_12345Node4.a('node.segments',Lib_12345Node4setSegments);
- Lib_12345Node4.a('node.borderPattern',"");
- (function (node, nodecompsPoints, setPoints) {
- var w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY,
- img = node.getImage();
- function resetPoints(rx, ry) {
- for (var i = 0, len = nodecompsPoints.length; i < len; i++) {
- if (i%2 === 0) {
- nodecompsPoints[i]*=rx;
- } else {
- nodecompsPoints[i]*=ry;
- }
- if (setPoints[i]) {
- setPoints[i].x *= rx;
- setPoints[i].y *= ry;
- }
- }
- }
- node.setSize(w, h);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- var position = node.getPosition();
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node._nodename = 'Lib_12345Node4';
- node._nodeType = 'polygon';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- // 重载setWidth, setHeight
- 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);
- }
- })(Lib_12345Node4, Lib_12345Node4compsPoints, Lib_12345Node4SetPoints );
- var Lib_12345Node5points=[30, 14,30, 20],
- Lib_12345Node5rect=ht.Default.unionPoint([{x:30,y:14},{x:30,y:20}]),
- Lib_12345Node5compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Lib_12345Node5points.length;i++){
- if(i%2==0){
- Lib_12345Node5compspts.push(Lib_12345Node5points[i]-Lib_12345Node5rect.x);
- }else{
- Lib_12345Node5compspts.push(Lib_12345Node5points[i]-Lib_12345Node5rect.y);
- }
- }
- var Lib_12345Node5ptslength=Lib_12345Node5compspts.length;
- if (Lib_12345Node5rect.height === 0) {
- Lib_12345Node5compspts[0] -= 0;
- Lib_12345Node5compspts[Lib_12345Node5ptslength-2] += 0;
- } else if (Lib_12345Node5rect.width === 0){
- Lib_12345Node5compspts[1] -= 0;
- Lib_12345Node5compspts[Lib_12345Node5ptslength-1] += 0;
- } else {
- Lib_12345Node5compspts[0] -= 0;
- Lib_12345Node5compspts[1] -= 0;
- Lib_12345Node5compspts[Lib_12345Node5ptslength-2] += 0;
- Lib_12345Node5compspts[Lib_12345Node5ptslength-1] += 0;
- }
- Lib_12345Node5 = new ht.Node();
- Lib_12345Node5.borderWidth = 1;
- Lib_12345Node5rect.width = Lib_12345Node5rect.width === 0 ? 0.0001 : Lib_12345Node5rect.width;
- Lib_12345Node5rect.height = Lib_12345Node5rect.height === 0 ? 0.0001 : Lib_12345Node5rect.height;
- var Lib_12345Node5endCompspts = [Lib_12345Node5compspts[Lib_12345Node5ptslength-2],Lib_12345Node5compspts[Lib_12345Node5ptslength-1],0,0];
- var Lib_12345Node5startCompspts = [Lib_12345Node5compspts[0],Lib_12345Node5compspts[1],0,0];
- Lib_12345Node5.setImage(GD.getPolyLineJSON());
- Lib_12345Node5.setPosition(Lib_12345Node5rect.x+Lib_12345Node5rect.width/2,Lib_12345Node5rect.y+Lib_12345Node5rect.height/2);
- Lib_12345Node5.setSize(Lib_12345Node5rect.width,Lib_12345Node5rect.height);
- Lib_12345Node5.setStyle("opacity",1);
- Lib_12345Node5.s({'pixelPerfect':true});
- Lib_12345Node5borderwidth=1;
- Lib_12345Node5.setRotation(0);
- dataModel.add(Lib_12345Node5);
- Lib_12345Node5.a('node.points',Lib_12345Node5compspts);
- Lib_12345Node5.a('node.segments',[1,2]);
- Lib_12345Node5.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node5.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node5.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node5.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node5.a('node.gradient','');
- Lib_12345Node5.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node5.a('node.endCompspts',Lib_12345Node5endCompspts);
- Lib_12345Node5.a('node.startCompspts',Lib_12345Node5startCompspts);
- (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 = 'Lib_12345Node5';
- 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);
- }
- })(Lib_12345Node5, Lib_12345Node5.getImage(), Lib_12345Node5compspts, Lib_12345Node5endCompspts, Lib_12345Node5startCompspts);
- var Lib_12345Node6points=[30, 20,36, 24],
- Lib_12345Node6rect=ht.Default.unionPoint([{x:30,y:20},{x:36,y:24}]),
- Lib_12345Node6compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.72959527089228, ratio),
- _endratio = GD.getRatioWithRotation(0.588002617302485, ratio);
- for(var i=0;i<Lib_12345Node6points.length;i++){
- if(i%2==0){
- Lib_12345Node6compspts.push(Lib_12345Node6points[i]-Lib_12345Node6rect.x);
- }else{
- Lib_12345Node6compspts.push(Lib_12345Node6points[i]-Lib_12345Node6rect.y);
- }
- }
- var Lib_12345Node6ptslength=Lib_12345Node6compspts.length;
- if (Lib_12345Node6rect.height === 0) {
- Lib_12345Node6compspts[0] -= 0;
- Lib_12345Node6compspts[Lib_12345Node6ptslength-2] += 0;
- } else if (Lib_12345Node6rect.width === 0){
- Lib_12345Node6compspts[1] -= 0;
- Lib_12345Node6compspts[Lib_12345Node6ptslength-1] += 0;
- } else {
- Lib_12345Node6compspts[0] -= 0;
- Lib_12345Node6compspts[1] -= 0;
- Lib_12345Node6compspts[Lib_12345Node6ptslength-2] += 0;
- Lib_12345Node6compspts[Lib_12345Node6ptslength-1] += 0;
- }
- Lib_12345Node6 = new ht.Node();
- Lib_12345Node6.borderWidth = 1;
- Lib_12345Node6rect.width = Lib_12345Node6rect.width === 0 ? 0.0001 : Lib_12345Node6rect.width;
- Lib_12345Node6rect.height = Lib_12345Node6rect.height === 0 ? 0.0001 : Lib_12345Node6rect.height;
- var Lib_12345Node6endCompspts = [Lib_12345Node6compspts[Lib_12345Node6ptslength-2],Lib_12345Node6compspts[Lib_12345Node6ptslength-1],0,0];
- var Lib_12345Node6startCompspts = [Lib_12345Node6compspts[0],Lib_12345Node6compspts[1],0,0];
- Lib_12345Node6.setImage(GD.getPolyLineJSON());
- Lib_12345Node6.setPosition(Lib_12345Node6rect.x+Lib_12345Node6rect.width/2,Lib_12345Node6rect.y+Lib_12345Node6rect.height/2);
- Lib_12345Node6.setSize(Lib_12345Node6rect.width,Lib_12345Node6rect.height);
- Lib_12345Node6.setStyle("opacity",1);
- Lib_12345Node6.s({'pixelPerfect':true});
- Lib_12345Node6borderwidth=1;
- Lib_12345Node6.setRotation(0);
- dataModel.add(Lib_12345Node6);
- Lib_12345Node6.a('node.points',Lib_12345Node6compspts);
- Lib_12345Node6.a('node.segments',[1,2]);
- Lib_12345Node6.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node6.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node6.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node6.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node6.a('node.gradient','');
- Lib_12345Node6.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node6.a('node.endCompspts',Lib_12345Node6endCompspts);
- Lib_12345Node6.a('node.startCompspts',Lib_12345Node6startCompspts);
- (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 = 'Lib_12345Node6';
- 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);
- }
- })(Lib_12345Node6, Lib_12345Node6.getImage(), Lib_12345Node6compspts, Lib_12345Node6endCompspts, Lib_12345Node6startCompspts);
- var Lib_12345Node7points=[30, 20,24, 24],
- Lib_12345Node7rect=ht.Default.unionPoint([{x:30,y:20},{x:24,y:24}]),
- Lib_12345Node7compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(-0.588002617302485, ratio),
- _endratio = GD.getRatioWithRotation(2.55359003628731, ratio);
- for(var i=0;i<Lib_12345Node7points.length;i++){
- if(i%2==0){
- Lib_12345Node7compspts.push(Lib_12345Node7points[i]-Lib_12345Node7rect.x);
- }else{
- Lib_12345Node7compspts.push(Lib_12345Node7points[i]-Lib_12345Node7rect.y);
- }
- }
- var Lib_12345Node7ptslength=Lib_12345Node7compspts.length;
- if (Lib_12345Node7rect.height === 0) {
- Lib_12345Node7compspts[0] -= 0;
- Lib_12345Node7compspts[Lib_12345Node7ptslength-2] += 0;
- } else if (Lib_12345Node7rect.width === 0){
- Lib_12345Node7compspts[1] -= 0;
- Lib_12345Node7compspts[Lib_12345Node7ptslength-1] += 0;
- } else {
- Lib_12345Node7compspts[0] -= 0;
- Lib_12345Node7compspts[1] -= 0;
- Lib_12345Node7compspts[Lib_12345Node7ptslength-2] += 0;
- Lib_12345Node7compspts[Lib_12345Node7ptslength-1] += 0;
- }
- Lib_12345Node7 = new ht.Node();
- Lib_12345Node7.borderWidth = 1;
- Lib_12345Node7rect.width = Lib_12345Node7rect.width === 0 ? 0.0001 : Lib_12345Node7rect.width;
- Lib_12345Node7rect.height = Lib_12345Node7rect.height === 0 ? 0.0001 : Lib_12345Node7rect.height;
- var Lib_12345Node7endCompspts = [Lib_12345Node7compspts[Lib_12345Node7ptslength-2],Lib_12345Node7compspts[Lib_12345Node7ptslength-1],0,0];
- var Lib_12345Node7startCompspts = [Lib_12345Node7compspts[0],Lib_12345Node7compspts[1],0,0];
- Lib_12345Node7.setImage(GD.getPolyLineJSON());
- Lib_12345Node7.setPosition(Lib_12345Node7rect.x+Lib_12345Node7rect.width/2,Lib_12345Node7rect.y+Lib_12345Node7rect.height/2);
- Lib_12345Node7.setSize(Lib_12345Node7rect.width,Lib_12345Node7rect.height);
- Lib_12345Node7.setStyle("opacity",1);
- Lib_12345Node7.s({'pixelPerfect':true});
- Lib_12345Node7borderwidth=1;
- Lib_12345Node7.setRotation(0);
- dataModel.add(Lib_12345Node7);
- Lib_12345Node7.a('node.points',Lib_12345Node7compspts);
- Lib_12345Node7.a('node.segments',[1,2]);
- Lib_12345Node7.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node7.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node7.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node7.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node7.a('node.gradient','');
- Lib_12345Node7.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node7.a('node.endCompspts',Lib_12345Node7endCompspts);
- Lib_12345Node7.a('node.startCompspts',Lib_12345Node7startCompspts);
- (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 = 'Lib_12345Node7';
- 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);
- }
- })(Lib_12345Node7, Lib_12345Node7.getImage(), Lib_12345Node7compspts, Lib_12345Node7endCompspts, Lib_12345Node7startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_12345Node8type = 'oval';
- var Lib_12345Node8 = new ht.Node(),
- Lib_12345Node8BorderWidth = 1*2;
- if (Lib_12345Node8type === 'arc') {
- Lib_12345Node8BorderWidth *= 1;
- }
- Lib_12345Node8.setImage(GD.getRectJSON(24.12697*_ratio.ratioX, 20.63269*_ratio.ratioY, Lib_12345Node8type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_12345Node8.setPosition(29*ratio.ratioX, 36*ratio.ratioY);
- Lib_12345Node8.setSize(24.12697*_ratio.ratioX, 20.63269*_ratio.ratioY);
- Lib_12345Node8.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_12345Node8.a('node.width', 24.12697*_ratio.ratioX);
- Lib_12345Node8.a('node.height', 20.63269*_ratio.ratioY);
- Lib_12345Node8.a('node.type', Lib_12345Node8type);
- Lib_12345Node8.a('node.rect', [0, 0, 24.12697*_ratio.ratioX, 20.63269*_ratio.ratioY]);
- Lib_12345Node8.a('node.background', 'rgba(255,255,255,0.003921569)');
- Lib_12345Node8.a('node.gradientcolor', '');
- Lib_12345Node8.a('node.gradient', '');
- Lib_12345Node8.a('node.borderwidth', Lib_12345Node8BorderWidth);
- Lib_12345Node8.a('node.color', 'rgba(255,128,0,1)');
- Lib_12345Node8.a('node.fillrect', [0,0,0,0]);
- Lib_12345Node8.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_12345Node8.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_12345Node8.a('node.fillgradient', '');
- if (Lib_12345Node8type !== 'rect') {
- Lib_12345Node8.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_12345Node8.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_12345Node8.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_12345Node8type === 'arc') {
- Lib_12345Node8.a('node.arcOval', true);
- }
- Lib_12345Node8.setRotation(0*Math.PI/180);
- Lib_12345Node8.borderWidth = Lib_12345Node8BorderWidth;
- Lib_12345Node8.borderFillwidth = Lib_12345Node8BorderWidth;
- dataModel.add(Lib_12345Node8);
- Lib_12345Node8._nodename = 'Lib_12345Node8'
- Lib_12345Node8._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_12345Node8,
- 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);
- }
- })(Lib_12345Node8, Lib_12345Node8.getImage());var Lib_12345Node9points=[29, 30,29, 36],
- Lib_12345Node9rect=ht.Default.unionPoint([{x:29,y:30},{x:29,y:36}]),
- Lib_12345Node9compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Lib_12345Node9points.length;i++){
- if(i%2==0){
- Lib_12345Node9compspts.push(Lib_12345Node9points[i]-Lib_12345Node9rect.x);
- }else{
- Lib_12345Node9compspts.push(Lib_12345Node9points[i]-Lib_12345Node9rect.y);
- }
- }
- var Lib_12345Node9ptslength=Lib_12345Node9compspts.length;
- if (Lib_12345Node9rect.height === 0) {
- Lib_12345Node9compspts[0] -= 0;
- Lib_12345Node9compspts[Lib_12345Node9ptslength-2] += 0;
- } else if (Lib_12345Node9rect.width === 0){
- Lib_12345Node9compspts[1] -= 0;
- Lib_12345Node9compspts[Lib_12345Node9ptslength-1] += 0;
- } else {
- Lib_12345Node9compspts[0] -= 0;
- Lib_12345Node9compspts[1] -= 0;
- Lib_12345Node9compspts[Lib_12345Node9ptslength-2] += 0;
- Lib_12345Node9compspts[Lib_12345Node9ptslength-1] += 0;
- }
- Lib_12345Node9 = new ht.Node();
- Lib_12345Node9.borderWidth = 1;
- Lib_12345Node9rect.width = Lib_12345Node9rect.width === 0 ? 0.0001 : Lib_12345Node9rect.width;
- Lib_12345Node9rect.height = Lib_12345Node9rect.height === 0 ? 0.0001 : Lib_12345Node9rect.height;
- var Lib_12345Node9endCompspts = [Lib_12345Node9compspts[Lib_12345Node9ptslength-2],Lib_12345Node9compspts[Lib_12345Node9ptslength-1],0,0];
- var Lib_12345Node9startCompspts = [Lib_12345Node9compspts[0],Lib_12345Node9compspts[1],0,0];
- Lib_12345Node9.setImage(GD.getPolyLineJSON());
- Lib_12345Node9.setPosition(Lib_12345Node9rect.x+Lib_12345Node9rect.width/2,Lib_12345Node9rect.y+Lib_12345Node9rect.height/2);
- Lib_12345Node9.setSize(Lib_12345Node9rect.width,Lib_12345Node9rect.height);
- Lib_12345Node9.setStyle("opacity",1);
- Lib_12345Node9.s({'pixelPerfect':true});
- Lib_12345Node9borderwidth=1;
- Lib_12345Node9.setRotation(0);
- dataModel.add(Lib_12345Node9);
- Lib_12345Node9.a('node.points',Lib_12345Node9compspts);
- Lib_12345Node9.a('node.segments',[1,2]);
- Lib_12345Node9.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node9.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node9.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node9.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node9.a('node.gradient','');
- Lib_12345Node9.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node9.a('node.endCompspts',Lib_12345Node9endCompspts);
- Lib_12345Node9.a('node.startCompspts',Lib_12345Node9startCompspts);
- (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 = 'Lib_12345Node9';
- 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);
- }
- })(Lib_12345Node9, Lib_12345Node9.getImage(), Lib_12345Node9compspts, Lib_12345Node9endCompspts, Lib_12345Node9startCompspts);
- var Lib_12345Node10points=[29, 36,35, 41],
- Lib_12345Node10rect=ht.Default.unionPoint([{x:29,y:36},{x:35,y:41}]),
- Lib_12345Node10compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.83633091806099, ratio),
- _endratio = GD.getRatioWithRotation(0.694738264471199, ratio);
- for(var i=0;i<Lib_12345Node10points.length;i++){
- if(i%2==0){
- Lib_12345Node10compspts.push(Lib_12345Node10points[i]-Lib_12345Node10rect.x);
- }else{
- Lib_12345Node10compspts.push(Lib_12345Node10points[i]-Lib_12345Node10rect.y);
- }
- }
- var Lib_12345Node10ptslength=Lib_12345Node10compspts.length;
- if (Lib_12345Node10rect.height === 0) {
- Lib_12345Node10compspts[0] -= 0;
- Lib_12345Node10compspts[Lib_12345Node10ptslength-2] += 0;
- } else if (Lib_12345Node10rect.width === 0){
- Lib_12345Node10compspts[1] -= 0;
- Lib_12345Node10compspts[Lib_12345Node10ptslength-1] += 0;
- } else {
- Lib_12345Node10compspts[0] -= 0;
- Lib_12345Node10compspts[1] -= 0;
- Lib_12345Node10compspts[Lib_12345Node10ptslength-2] += 0;
- Lib_12345Node10compspts[Lib_12345Node10ptslength-1] += 0;
- }
- Lib_12345Node10 = new ht.Node();
- Lib_12345Node10.borderWidth = 1;
- Lib_12345Node10rect.width = Lib_12345Node10rect.width === 0 ? 0.0001 : Lib_12345Node10rect.width;
- Lib_12345Node10rect.height = Lib_12345Node10rect.height === 0 ? 0.0001 : Lib_12345Node10rect.height;
- var Lib_12345Node10endCompspts = [Lib_12345Node10compspts[Lib_12345Node10ptslength-2],Lib_12345Node10compspts[Lib_12345Node10ptslength-1],0,0];
- var Lib_12345Node10startCompspts = [Lib_12345Node10compspts[0],Lib_12345Node10compspts[1],0,0];
- Lib_12345Node10.setImage(GD.getPolyLineJSON());
- Lib_12345Node10.setPosition(Lib_12345Node10rect.x+Lib_12345Node10rect.width/2,Lib_12345Node10rect.y+Lib_12345Node10rect.height/2);
- Lib_12345Node10.setSize(Lib_12345Node10rect.width,Lib_12345Node10rect.height);
- Lib_12345Node10.setStyle("opacity",1);
- Lib_12345Node10.s({'pixelPerfect':true});
- Lib_12345Node10borderwidth=1;
- Lib_12345Node10.setRotation(0);
- dataModel.add(Lib_12345Node10);
- Lib_12345Node10.a('node.points',Lib_12345Node10compspts);
- Lib_12345Node10.a('node.segments',[1,2]);
- Lib_12345Node10.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node10.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node10.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node10.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node10.a('node.gradient','');
- Lib_12345Node10.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node10.a('node.endCompspts',Lib_12345Node10endCompspts);
- Lib_12345Node10.a('node.startCompspts',Lib_12345Node10startCompspts);
- (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 = 'Lib_12345Node10';
- 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);
- }
- })(Lib_12345Node10, Lib_12345Node10.getImage(), Lib_12345Node10compspts, Lib_12345Node10endCompspts, Lib_12345Node10startCompspts);
- var Lib_12345Node11points=[29, 36,23, 41],
- Lib_12345Node11rect=ht.Default.unionPoint([{x:29,y:36},{x:23,y:41}]),
- Lib_12345Node11compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(-0.694738264471199, ratio),
- _endratio = GD.getRatioWithRotation(2.44685438911859, ratio);
- for(var i=0;i<Lib_12345Node11points.length;i++){
- if(i%2==0){
- Lib_12345Node11compspts.push(Lib_12345Node11points[i]-Lib_12345Node11rect.x);
- }else{
- Lib_12345Node11compspts.push(Lib_12345Node11points[i]-Lib_12345Node11rect.y);
- }
- }
- var Lib_12345Node11ptslength=Lib_12345Node11compspts.length;
- if (Lib_12345Node11rect.height === 0) {
- Lib_12345Node11compspts[0] -= 0;
- Lib_12345Node11compspts[Lib_12345Node11ptslength-2] += 0;
- } else if (Lib_12345Node11rect.width === 0){
- Lib_12345Node11compspts[1] -= 0;
- Lib_12345Node11compspts[Lib_12345Node11ptslength-1] += 0;
- } else {
- Lib_12345Node11compspts[0] -= 0;
- Lib_12345Node11compspts[1] -= 0;
- Lib_12345Node11compspts[Lib_12345Node11ptslength-2] += 0;
- Lib_12345Node11compspts[Lib_12345Node11ptslength-1] += 0;
- }
- Lib_12345Node11 = new ht.Node();
- Lib_12345Node11.borderWidth = 1;
- Lib_12345Node11rect.width = Lib_12345Node11rect.width === 0 ? 0.0001 : Lib_12345Node11rect.width;
- Lib_12345Node11rect.height = Lib_12345Node11rect.height === 0 ? 0.0001 : Lib_12345Node11rect.height;
- var Lib_12345Node11endCompspts = [Lib_12345Node11compspts[Lib_12345Node11ptslength-2],Lib_12345Node11compspts[Lib_12345Node11ptslength-1],0,0];
- var Lib_12345Node11startCompspts = [Lib_12345Node11compspts[0],Lib_12345Node11compspts[1],0,0];
- Lib_12345Node11.setImage(GD.getPolyLineJSON());
- Lib_12345Node11.setPosition(Lib_12345Node11rect.x+Lib_12345Node11rect.width/2,Lib_12345Node11rect.y+Lib_12345Node11rect.height/2);
- Lib_12345Node11.setSize(Lib_12345Node11rect.width,Lib_12345Node11rect.height);
- Lib_12345Node11.setStyle("opacity",1);
- Lib_12345Node11.s({'pixelPerfect':true});
- Lib_12345Node11borderwidth=1;
- Lib_12345Node11.setRotation(0);
- dataModel.add(Lib_12345Node11);
- Lib_12345Node11.a('node.points',Lib_12345Node11compspts);
- Lib_12345Node11.a('node.segments',[1,2]);
- Lib_12345Node11.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node11.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node11.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node11.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node11.a('node.gradient','');
- Lib_12345Node11.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node11.a('node.endCompspts',Lib_12345Node11endCompspts);
- Lib_12345Node11.a('node.startCompspts',Lib_12345Node11startCompspts);
- (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 = 'Lib_12345Node11';
- 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);
- }
- })(Lib_12345Node11, Lib_12345Node11.getImage(), Lib_12345Node11compspts, Lib_12345Node11endCompspts, Lib_12345Node11startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_12345Node12_0type = 'rect';
- var Lib_12345Node12_0 = new ht.Node(),
- Lib_12345Node12_0BorderWidth = 1*2;
- if (Lib_12345Node12_0type === 'arc') {
- Lib_12345Node12_0BorderWidth *= 1;
- }
- Lib_12345Node12_0.setImage(GD.getRectJSON(15.36963*_ratio.ratioX, 25.91444*_ratio.ratioY, Lib_12345Node12_0type, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_12345Node12_0.setPosition(76*ratio.ratioX, 29*ratio.ratioY);
- Lib_12345Node12_0.setSize(15.36963*_ratio.ratioX, 25.91444*_ratio.ratioY);
- Lib_12345Node12_0.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_12345Node12_0.a('node.width', 15.36963*_ratio.ratioX);
- Lib_12345Node12_0.a('node.height', 25.91444*_ratio.ratioY);
- Lib_12345Node12_0.a('node.type', Lib_12345Node12_0type);
- Lib_12345Node12_0.a('node.rect', [0, 0, 15.36963*_ratio.ratioX, 25.91444*_ratio.ratioY]);
- Lib_12345Node12_0.a('node.background', 'rgba(255,255,255,0.003921569)');
- Lib_12345Node12_0.a('node.gradientcolor', '');
- Lib_12345Node12_0.a('node.gradient', '');
- Lib_12345Node12_0.a('node.borderwidth', Lib_12345Node12_0BorderWidth);
- Lib_12345Node12_0.a('node.color', 'rgba(255,128,0,1)');
- Lib_12345Node12_0.a('node.fillrect', [0,0,0,0]);
- Lib_12345Node12_0.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_12345Node12_0.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_12345Node12_0.a('node.fillgradient', '');
- if (Lib_12345Node12_0type !== 'rect') {
- Lib_12345Node12_0.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_12345Node12_0.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_12345Node12_0.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_12345Node12_0type === 'arc') {
- Lib_12345Node12_0.a('node.arcOval', true);
- }
- Lib_12345Node12_0.setRotation(0*Math.PI/180);
- Lib_12345Node12_0.borderWidth = Lib_12345Node12_0BorderWidth;
- Lib_12345Node12_0.borderFillwidth = Lib_12345Node12_0BorderWidth;
- dataModel.add(Lib_12345Node12_0);
- Lib_12345Node12_0._nodename = 'Lib_12345Node12_0'
- Lib_12345Node12_0._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_12345Node12_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);
- }
- })(Lib_12345Node12_0, Lib_12345Node12_0.getImage());var Lib_12345Node12_1points=[76, 42,76, 51],
- Lib_12345Node12_1rect=ht.Default.unionPoint([{x:76,y:42},{x:76,y:51}]),
- Lib_12345Node12_1compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Lib_12345Node12_1points.length;i++){
- if(i%2==0){
- Lib_12345Node12_1compspts.push(Lib_12345Node12_1points[i]-Lib_12345Node12_1rect.x);
- }else{
- Lib_12345Node12_1compspts.push(Lib_12345Node12_1points[i]-Lib_12345Node12_1rect.y);
- }
- }
- var Lib_12345Node12_1ptslength=Lib_12345Node12_1compspts.length;
- if (Lib_12345Node12_1rect.height === 0) {
- Lib_12345Node12_1compspts[0] -= 0;
- Lib_12345Node12_1compspts[Lib_12345Node12_1ptslength-2] += 0;
- } else if (Lib_12345Node12_1rect.width === 0){
- Lib_12345Node12_1compspts[1] -= 0;
- Lib_12345Node12_1compspts[Lib_12345Node12_1ptslength-1] += 0;
- } else {
- Lib_12345Node12_1compspts[0] -= 0;
- Lib_12345Node12_1compspts[1] -= 0;
- Lib_12345Node12_1compspts[Lib_12345Node12_1ptslength-2] += 0;
- Lib_12345Node12_1compspts[Lib_12345Node12_1ptslength-1] += 0;
- }
- Lib_12345Node12_1 = new ht.Node();
- Lib_12345Node12_1.borderWidth = 1;
- Lib_12345Node12_1rect.width = Lib_12345Node12_1rect.width === 0 ? 0.0001 : Lib_12345Node12_1rect.width;
- Lib_12345Node12_1rect.height = Lib_12345Node12_1rect.height === 0 ? 0.0001 : Lib_12345Node12_1rect.height;
- var Lib_12345Node12_1endCompspts = [Lib_12345Node12_1compspts[Lib_12345Node12_1ptslength-2],Lib_12345Node12_1compspts[Lib_12345Node12_1ptslength-1],0,0];
- var Lib_12345Node12_1startCompspts = [Lib_12345Node12_1compspts[0],Lib_12345Node12_1compspts[1],0,0];
- Lib_12345Node12_1.setImage(GD.getPolyLineJSON());
- Lib_12345Node12_1.setPosition(Lib_12345Node12_1rect.x+Lib_12345Node12_1rect.width/2,Lib_12345Node12_1rect.y+Lib_12345Node12_1rect.height/2);
- Lib_12345Node12_1.setSize(Lib_12345Node12_1rect.width,Lib_12345Node12_1rect.height);
- Lib_12345Node12_1.setStyle("opacity",1);
- Lib_12345Node12_1.s({'pixelPerfect':true});
- Lib_12345Node12_1borderwidth=1;
- Lib_12345Node12_1.setRotation(0);
- dataModel.add(Lib_12345Node12_1);
- Lib_12345Node12_1.a('node.points',Lib_12345Node12_1compspts);
- Lib_12345Node12_1.a('node.segments',[1,2]);
- Lib_12345Node12_1.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node12_1.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node12_1.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node12_1.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node12_1.a('node.gradient','');
- Lib_12345Node12_1.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node12_1.a('node.endCompspts',Lib_12345Node12_1endCompspts);
- Lib_12345Node12_1.a('node.startCompspts',Lib_12345Node12_1startCompspts);
- (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 = 'Lib_12345Node12_1';
- 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);
- }
- })(Lib_12345Node12_1, Lib_12345Node12_1.getImage(), Lib_12345Node12_1compspts, Lib_12345Node12_1endCompspts, Lib_12345Node12_1startCompspts);
- var Lib_12345Node12_2points=[76, 0,76, 28],
- Lib_12345Node12_2rect=ht.Default.unionPoint([{x:76,y:0},{x:76,y:28}]),
- Lib_12345Node12_2compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(4.71238898038469, ratio),
- _endratio = GD.getRatioWithRotation(7.85398163397448, ratio);
- for(var i=0;i<Lib_12345Node12_2points.length;i++){
- if(i%2==0){
- Lib_12345Node12_2compspts.push(Lib_12345Node12_2points[i]-Lib_12345Node12_2rect.x);
- }else{
- Lib_12345Node12_2compspts.push(Lib_12345Node12_2points[i]-Lib_12345Node12_2rect.y);
- }
- }
- var Lib_12345Node12_2ptslength=Lib_12345Node12_2compspts.length;
- if (Lib_12345Node12_2rect.height === 0) {
- Lib_12345Node12_2compspts[0] -= 0;
- Lib_12345Node12_2compspts[Lib_12345Node12_2ptslength-2] += 0;
- } else if (Lib_12345Node12_2rect.width === 0){
- Lib_12345Node12_2compspts[1] -= 0;
- Lib_12345Node12_2compspts[Lib_12345Node12_2ptslength-1] += 0;
- } else {
- Lib_12345Node12_2compspts[0] -= 0;
- Lib_12345Node12_2compspts[1] -= 0;
- Lib_12345Node12_2compspts[Lib_12345Node12_2ptslength-2] += 0;
- Lib_12345Node12_2compspts[Lib_12345Node12_2ptslength-1] += 0;
- }
- Lib_12345Node12_2 = new ht.Node();
- Lib_12345Node12_2.borderWidth = 1;
- Lib_12345Node12_2rect.width = Lib_12345Node12_2rect.width === 0 ? 0.0001 : Lib_12345Node12_2rect.width;
- Lib_12345Node12_2rect.height = Lib_12345Node12_2rect.height === 0 ? 0.0001 : Lib_12345Node12_2rect.height;
- var Lib_12345Node12_2endCompspts = [Lib_12345Node12_2compspts[Lib_12345Node12_2ptslength-2],Lib_12345Node12_2compspts[Lib_12345Node12_2ptslength-1],0,0];
- var Lib_12345Node12_2startCompspts = [Lib_12345Node12_2compspts[0],Lib_12345Node12_2compspts[1],0,0];
- Lib_12345Node12_2.setImage(GD.getPolyLineJSON());
- Lib_12345Node12_2.setPosition(Lib_12345Node12_2rect.x+Lib_12345Node12_2rect.width/2,Lib_12345Node12_2rect.y+Lib_12345Node12_2rect.height/2);
- Lib_12345Node12_2.setSize(Lib_12345Node12_2rect.width,Lib_12345Node12_2rect.height);
- Lib_12345Node12_2.setStyle("opacity",1);
- Lib_12345Node12_2.s({'pixelPerfect':true});
- Lib_12345Node12_2borderwidth=1;
- Lib_12345Node12_2.setRotation(0);
- dataModel.add(Lib_12345Node12_2);
- Lib_12345Node12_2.a('node.points',Lib_12345Node12_2compspts);
- Lib_12345Node12_2.a('node.segments',[1,2]);
- Lib_12345Node12_2.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node12_2.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node12_2.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node12_2.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node12_2.a('node.gradient','');
- Lib_12345Node12_2.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node12_2.a('node.endCompspts',Lib_12345Node12_2endCompspts);
- Lib_12345Node12_2.a('node.startCompspts',Lib_12345Node12_2startCompspts);
- (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 = 'Lib_12345Node12_2';
- 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);
- }
- })(Lib_12345Node12_2, Lib_12345Node12_2.getImage(), Lib_12345Node12_2compspts, Lib_12345Node12_2endCompspts, Lib_12345Node12_2startCompspts);
- var Lib_12345Node12_3rect=ht.Default.unionPoint([{x: 71, y: 21},{x: 71, y: 21},{x: 80, y: 21},{x: 76, y: 29}]),
- Lib_12345Node12_3points=[71,21,71,21,80,21,76,29],
- Lib_12345Node12_3compsPoints=[],
- Lib_12345Node12_3SetPoints = [{x: 71, y: 21},{x: 71, y: 21},{x: 80, y: 21},{x: 76, y: 29}],
- Lib_12345Node12_3setSegments = [1,2,2,2];
- _ratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Lib_12345Node12_3points.length;i++){
- if(i%2==0){
- Lib_12345Node12_3compsPoints.push(Lib_12345Node12_3points[i]-Lib_12345Node12_3rect.x);
- }else{
- Lib_12345Node12_3compsPoints.push(Lib_12345Node12_3points[i]-Lib_12345Node12_3rect.y);
- }
- }
- var Lib_12345Node12_3 = new ht.Node();
- Lib_12345Node12_3.setImage(GD.getPolyGonJSON());
- Lib_12345Node12_3.setPosition(Lib_12345Node12_3rect.x + Lib_12345Node12_3rect.width/2, Lib_12345Node12_3rect.y + Lib_12345Node12_3rect.height/2);
- Lib_12345Node12_3.setSize(Lib_12345Node12_3rect.width, Lib_12345Node12_3rect.height);
- Lib_12345Node12_3.setRotation(0);
- Lib_12345Node12_3.borderWidth=1;
- Lib_12345Node12_3.borderFillwidth=1*2;
- Lib_12345Node12_3.s({'pixelPerfect':true});
- dataModel.add(Lib_12345Node12_3);
- // Lib_12345Node12_3.a('node.width', Lib_12345Node12_3rect.width*_ratio.ratioX);
- // Lib_12345Node12_3.a('node.height', Lib_12345Node12_3rect.height*_ratio.ratioY);
- Lib_12345Node12_3.a('node.clip', function(g,width,height,data) {
- var clippoints = Lib_12345Node12_3SetPoints;
- if(clippoints.length<=3) return;
- if(Lib_12345Node12_3.a('Lib_12345Node12_3.isFill')=="false") return;
- var clipcompsPoints=[];
- var rect = ht.Default.unionPoint(clippoints);
- for(var i=0;i<clippoints.length;i++){
- clipcompsPoints.push({x:clippoints[i].x-rect.x,y:clippoints[i].y-rect.y});
- }
- var clipsegments=Lib_12345Node12_3setSegments;
- g.beginPath();
- drawPoints(g,clipcompsPoints,clipsegments);
- g.clip();
- })
- Lib_12345Node12_3.a('node.type', 'shape');
- Lib_12345Node12_3.a('node.comsPoints', Lib_12345Node12_3compsPoints);
- Lib_12345Node12_3.a('node.closePath', true);
- Lib_12345Node12_3.a('node.borderwidth', 1);
- Lib_12345Node12_3.a('node.color', 'rgba(255,128,0,1)');
- Lib_12345Node12_3.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node12_3.a('node.closePath', true);
- Lib_12345Node12_3.a('node.closePath', true);
- Lib_12345Node12_3.a('node.gradient','');
- Lib_12345Node12_3.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node12_3.a('node.isFill','false');
- Lib_12345Node12_3.a('node.original',[0,0,0,0]);
- Lib_12345Node12_3.a('node.fillrect',[0,0,0,0]);
- Lib_12345Node12_3.a('node.fillbackcolor','rgba(255,128,0,1)');
- Lib_12345Node12_3.a('node.fillgradient','');
- Lib_12345Node12_3.a('node.fillgradientcolor','rgba(255,128,0,1)');
- Lib_12345Node12_3.a('node.segments',Lib_12345Node12_3setSegments);
- Lib_12345Node12_3.a('node.borderPattern',"");
- (function (node, nodecompsPoints, setPoints) {
- var w = node.getWidth()*_ratio.ratioX,
- h = node.getHeight()*_ratio.ratioY,
- img = node.getImage();
- function resetPoints(rx, ry) {
- for (var i = 0, len = nodecompsPoints.length; i < len; i++) {
- if (i%2 === 0) {
- nodecompsPoints[i]*=rx;
- } else {
- nodecompsPoints[i]*=ry;
- }
- if (setPoints[i]) {
- setPoints[i].x *= rx;
- setPoints[i].y *= ry;
- }
- }
- }
- node.setSize(w, h);
- node.a('node.width', w);
- node.a('node.height', h);
- resetPoints(_ratio.ratioX, _ratio.ratioY);
- var position = node.getPosition();
- node.setPosition(position.x * ratio.ratioX, position.y * ratio.ratioY);
- node._nodename = 'Lib_12345Node12_3';
- node._nodeType = 'polygon';
- zoomNodeList.push({
- node: node,
- attr: 'node.borderwidth'
- });
- // 重载setWidth, setHeight
- 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);
- }
- })(Lib_12345Node12_3, Lib_12345Node12_3compsPoints, Lib_12345Node12_3SetPoints );
- var Lib_12345Node12_4points=[72, 56,80, 56],
- Lib_12345Node12_4rect=ht.Default.unionPoint([{x:72,y:56},{x:80,y:56}]),
- Lib_12345Node12_4compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Lib_12345Node12_4points.length;i++){
- if(i%2==0){
- Lib_12345Node12_4compspts.push(Lib_12345Node12_4points[i]-Lib_12345Node12_4rect.x);
- }else{
- Lib_12345Node12_4compspts.push(Lib_12345Node12_4points[i]-Lib_12345Node12_4rect.y);
- }
- }
- var Lib_12345Node12_4ptslength=Lib_12345Node12_4compspts.length;
- if (Lib_12345Node12_4rect.height === 0) {
- Lib_12345Node12_4compspts[0] -= 0;
- Lib_12345Node12_4compspts[Lib_12345Node12_4ptslength-2] += 0;
- } else if (Lib_12345Node12_4rect.width === 0){
- Lib_12345Node12_4compspts[1] -= 0;
- Lib_12345Node12_4compspts[Lib_12345Node12_4ptslength-1] += 0;
- } else {
- Lib_12345Node12_4compspts[0] -= 0;
- Lib_12345Node12_4compspts[1] -= 0;
- Lib_12345Node12_4compspts[Lib_12345Node12_4ptslength-2] += 0;
- Lib_12345Node12_4compspts[Lib_12345Node12_4ptslength-1] += 0;
- }
- Lib_12345Node12_4 = new ht.Node();
- Lib_12345Node12_4.borderWidth = 1;
- Lib_12345Node12_4rect.width = Lib_12345Node12_4rect.width === 0 ? 0.0001 : Lib_12345Node12_4rect.width;
- Lib_12345Node12_4rect.height = Lib_12345Node12_4rect.height === 0 ? 0.0001 : Lib_12345Node12_4rect.height;
- var Lib_12345Node12_4endCompspts = [Lib_12345Node12_4compspts[Lib_12345Node12_4ptslength-2],Lib_12345Node12_4compspts[Lib_12345Node12_4ptslength-1],0,0];
- var Lib_12345Node12_4startCompspts = [Lib_12345Node12_4compspts[0],Lib_12345Node12_4compspts[1],0,0];
- Lib_12345Node12_4.setImage(GD.getPolyLineJSON());
- Lib_12345Node12_4.setPosition(Lib_12345Node12_4rect.x+Lib_12345Node12_4rect.width/2,Lib_12345Node12_4rect.y+Lib_12345Node12_4rect.height/2);
- Lib_12345Node12_4.setSize(Lib_12345Node12_4rect.width,Lib_12345Node12_4rect.height);
- Lib_12345Node12_4.setStyle("opacity",1);
- Lib_12345Node12_4.s({'pixelPerfect':true});
- Lib_12345Node12_4borderwidth=1;
- Lib_12345Node12_4.setRotation(0);
- dataModel.add(Lib_12345Node12_4);
- Lib_12345Node12_4.a('node.points',Lib_12345Node12_4compspts);
- Lib_12345Node12_4.a('node.segments',[1,2]);
- Lib_12345Node12_4.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node12_4.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node12_4.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node12_4.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node12_4.a('node.gradient','');
- Lib_12345Node12_4.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node12_4.a('node.endCompspts',Lib_12345Node12_4endCompspts);
- Lib_12345Node12_4.a('node.startCompspts',Lib_12345Node12_4startCompspts);
- (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 = 'Lib_12345Node12_4';
- 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);
- }
- })(Lib_12345Node12_4, Lib_12345Node12_4.getImage(), Lib_12345Node12_4compspts, Lib_12345Node12_4endCompspts, Lib_12345Node12_4startCompspts);
- var Lib_12345Node12_5points=[68, 53,83, 53],
- Lib_12345Node12_5rect=ht.Default.unionPoint([{x:68,y:53},{x:83,y:53}]),
- Lib_12345Node12_5compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Lib_12345Node12_5points.length;i++){
- if(i%2==0){
- Lib_12345Node12_5compspts.push(Lib_12345Node12_5points[i]-Lib_12345Node12_5rect.x);
- }else{
- Lib_12345Node12_5compspts.push(Lib_12345Node12_5points[i]-Lib_12345Node12_5rect.y);
- }
- }
- var Lib_12345Node12_5ptslength=Lib_12345Node12_5compspts.length;
- if (Lib_12345Node12_5rect.height === 0) {
- Lib_12345Node12_5compspts[0] -= 0;
- Lib_12345Node12_5compspts[Lib_12345Node12_5ptslength-2] += 0;
- } else if (Lib_12345Node12_5rect.width === 0){
- Lib_12345Node12_5compspts[1] -= 0;
- Lib_12345Node12_5compspts[Lib_12345Node12_5ptslength-1] += 0;
- } else {
- Lib_12345Node12_5compspts[0] -= 0;
- Lib_12345Node12_5compspts[1] -= 0;
- Lib_12345Node12_5compspts[Lib_12345Node12_5ptslength-2] += 0;
- Lib_12345Node12_5compspts[Lib_12345Node12_5ptslength-1] += 0;
- }
- Lib_12345Node12_5 = new ht.Node();
- Lib_12345Node12_5.borderWidth = 1;
- Lib_12345Node12_5rect.width = Lib_12345Node12_5rect.width === 0 ? 0.0001 : Lib_12345Node12_5rect.width;
- Lib_12345Node12_5rect.height = Lib_12345Node12_5rect.height === 0 ? 0.0001 : Lib_12345Node12_5rect.height;
- var Lib_12345Node12_5endCompspts = [Lib_12345Node12_5compspts[Lib_12345Node12_5ptslength-2],Lib_12345Node12_5compspts[Lib_12345Node12_5ptslength-1],0,0];
- var Lib_12345Node12_5startCompspts = [Lib_12345Node12_5compspts[0],Lib_12345Node12_5compspts[1],0,0];
- Lib_12345Node12_5.setImage(GD.getPolyLineJSON());
- Lib_12345Node12_5.setPosition(Lib_12345Node12_5rect.x+Lib_12345Node12_5rect.width/2,Lib_12345Node12_5rect.y+Lib_12345Node12_5rect.height/2);
- Lib_12345Node12_5.setSize(Lib_12345Node12_5rect.width,Lib_12345Node12_5rect.height);
- Lib_12345Node12_5.setStyle("opacity",1);
- Lib_12345Node12_5.s({'pixelPerfect':true});
- Lib_12345Node12_5borderwidth=1;
- Lib_12345Node12_5.setRotation(0);
- dataModel.add(Lib_12345Node12_5);
- Lib_12345Node12_5.a('node.points',Lib_12345Node12_5compspts);
- Lib_12345Node12_5.a('node.segments',[1,2]);
- Lib_12345Node12_5.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node12_5.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node12_5.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node12_5.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node12_5.a('node.gradient','');
- Lib_12345Node12_5.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node12_5.a('node.endCompspts',Lib_12345Node12_5endCompspts);
- Lib_12345Node12_5.a('node.startCompspts',Lib_12345Node12_5startCompspts);
- (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 = 'Lib_12345Node12_5';
- 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);
- }
- })(Lib_12345Node12_5, Lib_12345Node12_5.getImage(), Lib_12345Node12_5compspts, Lib_12345Node12_5endCompspts, Lib_12345Node12_5startCompspts);
- var Lib_12345Node12_6points=[67, 50,86, 50],
- Lib_12345Node12_6rect=ht.Default.unionPoint([{x:67,y:50},{x:86,y:50}]),
- Lib_12345Node12_6compspts=[];
- _ratio = GD.getRatioWithRotation(0, ratio);
- var _startratio = GD.getRatioWithRotation(3.14159265358979, ratio),
- _endratio = GD.getRatioWithRotation(0, ratio);
- for(var i=0;i<Lib_12345Node12_6points.length;i++){
- if(i%2==0){
- Lib_12345Node12_6compspts.push(Lib_12345Node12_6points[i]-Lib_12345Node12_6rect.x);
- }else{
- Lib_12345Node12_6compspts.push(Lib_12345Node12_6points[i]-Lib_12345Node12_6rect.y);
- }
- }
- var Lib_12345Node12_6ptslength=Lib_12345Node12_6compspts.length;
- if (Lib_12345Node12_6rect.height === 0) {
- Lib_12345Node12_6compspts[0] -= 0;
- Lib_12345Node12_6compspts[Lib_12345Node12_6ptslength-2] += 0;
- } else if (Lib_12345Node12_6rect.width === 0){
- Lib_12345Node12_6compspts[1] -= 0;
- Lib_12345Node12_6compspts[Lib_12345Node12_6ptslength-1] += 0;
- } else {
- Lib_12345Node12_6compspts[0] -= 0;
- Lib_12345Node12_6compspts[1] -= 0;
- Lib_12345Node12_6compspts[Lib_12345Node12_6ptslength-2] += 0;
- Lib_12345Node12_6compspts[Lib_12345Node12_6ptslength-1] += 0;
- }
- Lib_12345Node12_6 = new ht.Node();
- Lib_12345Node12_6.borderWidth = 1;
- Lib_12345Node12_6rect.width = Lib_12345Node12_6rect.width === 0 ? 0.0001 : Lib_12345Node12_6rect.width;
- Lib_12345Node12_6rect.height = Lib_12345Node12_6rect.height === 0 ? 0.0001 : Lib_12345Node12_6rect.height;
- var Lib_12345Node12_6endCompspts = [Lib_12345Node12_6compspts[Lib_12345Node12_6ptslength-2],Lib_12345Node12_6compspts[Lib_12345Node12_6ptslength-1],0,0];
- var Lib_12345Node12_6startCompspts = [Lib_12345Node12_6compspts[0],Lib_12345Node12_6compspts[1],0,0];
- Lib_12345Node12_6.setImage(GD.getPolyLineJSON());
- Lib_12345Node12_6.setPosition(Lib_12345Node12_6rect.x+Lib_12345Node12_6rect.width/2,Lib_12345Node12_6rect.y+Lib_12345Node12_6rect.height/2);
- Lib_12345Node12_6.setSize(Lib_12345Node12_6rect.width,Lib_12345Node12_6rect.height);
- Lib_12345Node12_6.setStyle("opacity",1);
- Lib_12345Node12_6.s({'pixelPerfect':true});
- Lib_12345Node12_6borderwidth=1;
- Lib_12345Node12_6.setRotation(0);
- dataModel.add(Lib_12345Node12_6);
- Lib_12345Node12_6.a('node.points',Lib_12345Node12_6compspts);
- Lib_12345Node12_6.a('node.segments',[1,2]);
- Lib_12345Node12_6.a('node.color','rgba(255,128,0,1)');
- Lib_12345Node12_6.a('node.borderPattern',getDashStyle("@borderPattern@"));
- Lib_12345Node12_6.a('node.borderColor','rgba(255,128,0,1)');
- Lib_12345Node12_6.a('node.background','rgba(255,128,0,1)');
- Lib_12345Node12_6.a('node.gradient','');
- Lib_12345Node12_6.a('node.gradientcolor','rgba(255,128,0,1)');
- Lib_12345Node12_6.a('node.endCompspts',Lib_12345Node12_6endCompspts);
- Lib_12345Node12_6.a('node.startCompspts',Lib_12345Node12_6startCompspts);
- (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 = 'Lib_12345Node12_6';
- 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);
- }
- })(Lib_12345Node12_6, Lib_12345Node12_6.getImage(), Lib_12345Node12_6compspts, Lib_12345Node12_6endCompspts, Lib_12345Node12_6startCompspts);
- _ratio = GD.getRatioWithRotation(0*Math.PI/180, ratio);
- var Lib_12345Node12boundtype = 'rect';
- var Lib_12345Node12bound = new ht.Node(),
- Lib_12345Node12boundBorderWidth = 0*2;
- if (Lib_12345Node12boundtype === 'arc') {
- Lib_12345Node12boundBorderWidth *= 0;
- }
- Lib_12345Node12bound.setImage(GD.getRectJSON(19.12164*_ratio.ratioX, 55.61331*_ratio.ratioY, Lib_12345Node12boundtype, '@arcFrom@', '@arcTo@', '@arcClose@'));
- Lib_12345Node12bound.setPosition(76*ratio.ratioX, 28*ratio.ratioY);
- Lib_12345Node12bound.setSize(19.12164*_ratio.ratioX, 55.61331*_ratio.ratioY);
- Lib_12345Node12bound.s({
- 'pixelPerfect':true
- /*@AddPara@*/
- });
- Lib_12345Node12bound.a('node.width', 19.12164*_ratio.ratioX);
- Lib_12345Node12bound.a('node.height', 55.61331*_ratio.ratioY);
- Lib_12345Node12bound.a('node.type', Lib_12345Node12boundtype);
- Lib_12345Node12bound.a('node.rect', [0, 0, 19.12164*_ratio.ratioX, 55.61331*_ratio.ratioY]);
- Lib_12345Node12bound.a('node.background', 'rgba(255,255,255,0.003921569)');
- Lib_12345Node12bound.a('node.gradientcolor', '');
- Lib_12345Node12bound.a('node.gradient', '');
- Lib_12345Node12bound.a('node.borderwidth', Lib_12345Node12boundBorderWidth);
- Lib_12345Node12bound.a('node.color', 'rgba(0,0,0,1)');
- Lib_12345Node12bound.a('node.fillrect', [0,0,0,0]);
- Lib_12345Node12bound.a('node.fillbackcolor', 'rgba(0,0,0,0)');
- Lib_12345Node12bound.a('node.fillgradientcolor', 'rgba(0,0,0,0)');
- Lib_12345Node12bound.a('node.fillgradient', '');
- if (Lib_12345Node12boundtype !== 'rect') {
- Lib_12345Node12bound.a('node.arcFrom', parseFloat('@arcFrom@'));
- Lib_12345Node12bound.a('node.arcTo', parseFloat('@arcTo@'));
- Lib_12345Node12bound.a('node.arcClose', '@arcClose@' === 'true' ? true : false);
- }
- if (Lib_12345Node12boundtype === 'arc') {
- Lib_12345Node12bound.a('node.arcOval', true);
- }
- Lib_12345Node12bound.setRotation(0*Math.PI/180);
- Lib_12345Node12bound.borderWidth = Lib_12345Node12boundBorderWidth;
- Lib_12345Node12bound.borderFillwidth = Lib_12345Node12boundBorderWidth;
- dataModel.add(Lib_12345Node12bound);
- Lib_12345Node12bound._nodename = 'Lib_12345Node12bound'
- Lib_12345Node12bound._nodeType = 'rect';
- zoomNodeList.push({
- node: Lib_12345Node12bound,
- 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);
- }
- })(Lib_12345Node12bound, Lib_12345Node12bound.getImage());
- /*@GraphList@*/
- GD.groupRotat(Lib_12345Node12bound, Lib_12345Node12_0, (180 )*Math.PI/180, ratio);
- GD.groupRotat(Lib_12345Node12bound, Lib_12345Node12_1, (180 )*Math.PI/180, ratio);
- GD.groupRotat(Lib_12345Node12bound, Lib_12345Node12_2, (180 )*Math.PI/180, ratio);
- GD.groupRotat(Lib_12345Node12bound, Lib_12345Node12_3, (180 )*Math.PI/180, ratio);
- GD.groupRotat(Lib_12345Node12bound, Lib_12345Node12_4, (180 )*Math.PI/180, ratio);
- GD.groupRotat(Lib_12345Node12bound, Lib_12345Node12_5, (180 )*Math.PI/180, ratio);
- GD.groupRotat(Lib_12345Node12bound, Lib_12345Node12_6, (180 )*Math.PI/180, ratio);
- /*@PageInit@*/
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- this['Lib_12345Node0'] = Lib_12345Node0;
- Lib_12345Node0.__parentLib = nodename;
- Lib_12345Node0.__parent = this;
- this.childNodes.push(Lib_12345Node0);
- this['Lib_12345Node1'] = Lib_12345Node1;
- Lib_12345Node1.__parentLib = nodename;
- Lib_12345Node1.__parent = this;
- this.childNodes.push(Lib_12345Node1);
- this['Lib_12345Node2'] = Lib_12345Node2;
- Lib_12345Node2.__parentLib = nodename;
- Lib_12345Node2.__parent = this;
- this.childNodes.push(Lib_12345Node2);
- this['Lib_12345Node3'] = Lib_12345Node3;
- Lib_12345Node3.__parentLib = nodename;
- Lib_12345Node3.__parent = this;
- this.childNodes.push(Lib_12345Node3);
- this['Lib_12345Node4'] = Lib_12345Node4;
- Lib_12345Node4.__parentLib = nodename;
- Lib_12345Node4.__parent = this;
- this.childNodes.push(Lib_12345Node4);
- this['Lib_12345Node5'] = Lib_12345Node5;
- Lib_12345Node5.__parentLib = nodename;
- Lib_12345Node5.__parent = this;
- this.childNodes.push(Lib_12345Node5);
- this['Lib_12345Node6'] = Lib_12345Node6;
- Lib_12345Node6.__parentLib = nodename;
- Lib_12345Node6.__parent = this;
- this.childNodes.push(Lib_12345Node6);
- this['Lib_12345Node7'] = Lib_12345Node7;
- Lib_12345Node7.__parentLib = nodename;
- Lib_12345Node7.__parent = this;
- this.childNodes.push(Lib_12345Node7);
- this['Lib_12345Node8'] = Lib_12345Node8;
- Lib_12345Node8.__parentLib = nodename;
- Lib_12345Node8.__parent = this;
- this.childNodes.push(Lib_12345Node8);
- this['Lib_12345Node9'] = Lib_12345Node9;
- Lib_12345Node9.__parentLib = nodename;
- Lib_12345Node9.__parent = this;
- this.childNodes.push(Lib_12345Node9);
- this['Lib_12345Node10'] = Lib_12345Node10;
- Lib_12345Node10.__parentLib = nodename;
- Lib_12345Node10.__parent = this;
- this.childNodes.push(Lib_12345Node10);
- this['Lib_12345Node11'] = Lib_12345Node11;
- Lib_12345Node11.__parentLib = nodename;
- Lib_12345Node11.__parent = this;
- this.childNodes.push(Lib_12345Node11);
- this['Lib_12345Node12_0'] = Lib_12345Node12_0;
- Lib_12345Node12_0.__parentLib = nodename;
- Lib_12345Node12_0.__parent = this;
- this.childNodes.push(Lib_12345Node12_0);
- this['Lib_12345Node12_1'] = Lib_12345Node12_1;
- Lib_12345Node12_1.__parentLib = nodename;
- Lib_12345Node12_1.__parent = this;
- this.childNodes.push(Lib_12345Node12_1);
- this['Lib_12345Node12_2'] = Lib_12345Node12_2;
- Lib_12345Node12_2.__parentLib = nodename;
- Lib_12345Node12_2.__parent = this;
- this.childNodes.push(Lib_12345Node12_2);
- this['Lib_12345Node12_3'] = Lib_12345Node12_3;
- Lib_12345Node12_3.__parentLib = nodename;
- Lib_12345Node12_3.__parent = this;
- this.childNodes.push(Lib_12345Node12_3);
- this['Lib_12345Node12_4'] = Lib_12345Node12_4;
- Lib_12345Node12_4.__parentLib = nodename;
- Lib_12345Node12_4.__parent = this;
- this.childNodes.push(Lib_12345Node12_4);
- this['Lib_12345Node12_5'] = Lib_12345Node12_5;
- Lib_12345Node12_5.__parentLib = nodename;
- Lib_12345Node12_5.__parent = this;
- this.childNodes.push(Lib_12345Node12_5);
- this['Lib_12345Node12_6'] = Lib_12345Node12_6;
- Lib_12345Node12_6.__parentLib = nodename;
- Lib_12345Node12_6.__parent = this;
- this.childNodes.push(Lib_12345Node12_6);
- this['Lib_12345Node12bound'] = Lib_12345Node12bound;
- Lib_12345Node12bound.__parentLib = nodename;
- Lib_12345Node12bound.__parent = this;
- this.childNodes.push(Lib_12345Node12bound);
- /*@ControlContextMenu@*/
- /*@Declare@*/
- this.init(x, y, width, height, angle);
- };
- ht.Default.def('ht.lib.12345', Object, {
- refresh10ms: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var Lib_12345Node0= this.Lib_12345Node0;
- var Lib_12345Node1= this.Lib_12345Node1;
- var Lib_12345Node2= this.Lib_12345Node2;
- var Lib_12345Node3= this.Lib_12345Node3;
- var Lib_12345Node4= this.Lib_12345Node4;
- var Lib_12345Node5= this.Lib_12345Node5;
- var Lib_12345Node6= this.Lib_12345Node6;
- var Lib_12345Node7= this.Lib_12345Node7;
- var Lib_12345Node8= this.Lib_12345Node8;
- var Lib_12345Node9= this.Lib_12345Node9;
- var Lib_12345Node10= this.Lib_12345Node10;
- var Lib_12345Node11= this.Lib_12345Node11;
- var Lib_12345Node12_0= this.Lib_12345Node12_0;
- var Lib_12345Node12_1= this.Lib_12345Node12_1;
- var Lib_12345Node12_2= this.Lib_12345Node12_2;
- var Lib_12345Node12_3= this.Lib_12345Node12_3;
- var Lib_12345Node12_4= this.Lib_12345Node12_4;
- var Lib_12345Node12_5= this.Lib_12345Node12_5;
- var Lib_12345Node12_6= this.Lib_12345Node12_6;
- var Lib_12345Node12bound= this.Lib_12345Node12bound;
- /*@refresh10ms@*/
- },
- refresh100ms: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var Lib_12345Node0= this.Lib_12345Node0;
- var Lib_12345Node1= this.Lib_12345Node1;
- var Lib_12345Node2= this.Lib_12345Node2;
- var Lib_12345Node3= this.Lib_12345Node3;
- var Lib_12345Node4= this.Lib_12345Node4;
- var Lib_12345Node5= this.Lib_12345Node5;
- var Lib_12345Node6= this.Lib_12345Node6;
- var Lib_12345Node7= this.Lib_12345Node7;
- var Lib_12345Node8= this.Lib_12345Node8;
- var Lib_12345Node9= this.Lib_12345Node9;
- var Lib_12345Node10= this.Lib_12345Node10;
- var Lib_12345Node11= this.Lib_12345Node11;
- var Lib_12345Node12_0= this.Lib_12345Node12_0;
- var Lib_12345Node12_1= this.Lib_12345Node12_1;
- var Lib_12345Node12_2= this.Lib_12345Node12_2;
- var Lib_12345Node12_3= this.Lib_12345Node12_3;
- var Lib_12345Node12_4= this.Lib_12345Node12_4;
- var Lib_12345Node12_5= this.Lib_12345Node12_5;
- var Lib_12345Node12_6= this.Lib_12345Node12_6;
- var Lib_12345Node12bound= this.Lib_12345Node12bound;
- /*@refresh100ms@*/
- },
- refresh500ms: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var Lib_12345Node0= this.Lib_12345Node0;
- var Lib_12345Node1= this.Lib_12345Node1;
- var Lib_12345Node2= this.Lib_12345Node2;
- var Lib_12345Node3= this.Lib_12345Node3;
- var Lib_12345Node4= this.Lib_12345Node4;
- var Lib_12345Node5= this.Lib_12345Node5;
- var Lib_12345Node6= this.Lib_12345Node6;
- var Lib_12345Node7= this.Lib_12345Node7;
- var Lib_12345Node8= this.Lib_12345Node8;
- var Lib_12345Node9= this.Lib_12345Node9;
- var Lib_12345Node10= this.Lib_12345Node10;
- var Lib_12345Node11= this.Lib_12345Node11;
- var Lib_12345Node12_0= this.Lib_12345Node12_0;
- var Lib_12345Node12_1= this.Lib_12345Node12_1;
- var Lib_12345Node12_2= this.Lib_12345Node12_2;
- var Lib_12345Node12_3= this.Lib_12345Node12_3;
- var Lib_12345Node12_4= this.Lib_12345Node12_4;
- var Lib_12345Node12_5= this.Lib_12345Node12_5;
- var Lib_12345Node12_6= this.Lib_12345Node12_6;
- var Lib_12345Node12bound= this.Lib_12345Node12bound;
- /*@refresh500ms@*/
- },
- refresh1s: function () {
- var Counter1s = arguments[0] || 0;
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var Lib_12345Node0= this.Lib_12345Node0;
- var Lib_12345Node1= this.Lib_12345Node1;
- var Lib_12345Node2= this.Lib_12345Node2;
- var Lib_12345Node3= this.Lib_12345Node3;
- var Lib_12345Node4= this.Lib_12345Node4;
- var Lib_12345Node5= this.Lib_12345Node5;
- var Lib_12345Node6= this.Lib_12345Node6;
- var Lib_12345Node7= this.Lib_12345Node7;
- var Lib_12345Node8= this.Lib_12345Node8;
- var Lib_12345Node9= this.Lib_12345Node9;
- var Lib_12345Node10= this.Lib_12345Node10;
- var Lib_12345Node11= this.Lib_12345Node11;
- var Lib_12345Node12_0= this.Lib_12345Node12_0;
- var Lib_12345Node12_1= this.Lib_12345Node12_1;
- var Lib_12345Node12_2= this.Lib_12345Node12_2;
- var Lib_12345Node12_3= this.Lib_12345Node12_3;
- var Lib_12345Node12_4= this.Lib_12345Node12_4;
- var Lib_12345Node12_5= this.Lib_12345Node12_5;
- var Lib_12345Node12_6= this.Lib_12345Node12_6;
- var Lib_12345Node12bound= this.Lib_12345Node12bound;
- /*@refresh1s@*/
- },
- refresh5s: function () {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var Lib_12345Node0= this.Lib_12345Node0;
- var Lib_12345Node1= this.Lib_12345Node1;
- var Lib_12345Node2= this.Lib_12345Node2;
- var Lib_12345Node3= this.Lib_12345Node3;
- var Lib_12345Node4= this.Lib_12345Node4;
- var Lib_12345Node5= this.Lib_12345Node5;
- var Lib_12345Node6= this.Lib_12345Node6;
- var Lib_12345Node7= this.Lib_12345Node7;
- var Lib_12345Node8= this.Lib_12345Node8;
- var Lib_12345Node9= this.Lib_12345Node9;
- var Lib_12345Node10= this.Lib_12345Node10;
- var Lib_12345Node11= this.Lib_12345Node11;
- var Lib_12345Node12_0= this.Lib_12345Node12_0;
- var Lib_12345Node12_1= this.Lib_12345Node12_1;
- var Lib_12345Node12_2= this.Lib_12345Node12_2;
- var Lib_12345Node12_3= this.Lib_12345Node12_3;
- var Lib_12345Node12_4= this.Lib_12345Node12_4;
- var Lib_12345Node12_5= this.Lib_12345Node12_5;
- var Lib_12345Node12_6= this.Lib_12345Node12_6;
- var Lib_12345Node12bound= this.Lib_12345Node12bound;
- /*@refresh5s@*/
- },
- /*@PageDynamic@*/
- onEvent: function (e, data, type, origin, offset, objMouseOn, ctm) {
-
- var localVarObj = this.localVarObj;
- var localDynamicVarObj = this.localDynamicVar();
- var Lib_12345Node0= this.Lib_12345Node0;
- var Lib_12345Node1= this.Lib_12345Node1;
- var Lib_12345Node2= this.Lib_12345Node2;
- var Lib_12345Node3= this.Lib_12345Node3;
- var Lib_12345Node4= this.Lib_12345Node4;
- var Lib_12345Node5= this.Lib_12345Node5;
- var Lib_12345Node6= this.Lib_12345Node6;
- var Lib_12345Node7= this.Lib_12345Node7;
- var Lib_12345Node8= this.Lib_12345Node8;
- var Lib_12345Node9= this.Lib_12345Node9;
- var Lib_12345Node10= this.Lib_12345Node10;
- var Lib_12345Node11= this.Lib_12345Node11;
- var Lib_12345Node12_0= this.Lib_12345Node12_0;
- var Lib_12345Node12_1= this.Lib_12345Node12_1;
- var Lib_12345Node12_2= this.Lib_12345Node12_2;
- var Lib_12345Node12_3= this.Lib_12345Node12_3;
- var Lib_12345Node12_4= this.Lib_12345Node12_4;
- var Lib_12345Node12_5= this.Lib_12345Node12_5;
- var Lib_12345Node12_6= this.Lib_12345Node12_6;
- var Lib_12345Node12bound= this.Lib_12345Node12bound;
-
- if (type === 'click') {
- /*@EvnentClicked@*/
- } else if (type === 'mousedown') {
- mouseX=e.clientX;
- mouseY=e.clientY;
- /*@EvnentMouseDown@*/
- } else if (type === 'mouseup') {
- /*@EvnentMouseUp@*/
- } else if (type === 'mousemove') {
- var mouseX, mouseY, position, zoom;
- 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();
- }
- /*@EvnentMouseLeave@*/
- /*@EvnentMouseOver@*/
- } else if (type === 'keydown') {
- /*@EvnentKeyDown@*/
- } else if (type === 'contextmenu') {
- /*@Declare@*/
- /*@SetNodeContextMenu@*/
- /*@SetPageContextMenu@*/
- }
- /*@LibEvent@*/
- },
- getBaseClass: function () {
- return this._baseClass;
- },
- getWidth: function () {
- return this._width;
- },
- getHeight: function () {
- return this._height;
- },
- getSize: function () {
- return {
- width: this._width,
- height: this._height
- }
- },
- setWidth: function (width) {
- if (width === undefined || width === null || width != width) {
- return ;
- }
- var originWidth = this._width;
- var ratio = width / originWidth;
- var childNodes = this.childNodes, childNode, p, op = this.getPosition(), w, cw, ox, rotation = this.getRotation();
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- cw = childNode.getWidth();
- w = cw >=2 ? cw * ratio : cw;
- childNode.setWidth(w);
- ox = op.x + (p.x - op.x) * ratio;
- childNode.setPosition(ox, p.y);
- rotation = GD.calcRotation(rotation);
- if (rotation === 0 || rotation === Math.PI) {
- // 图元未旋转
- ox = op.x + (p.x - op.x)*ratio;
- childNode.setPosition(ox, p.y);
- } else if (rotation === 90 * Math.PI / 180) {
- // 图元旋转以后
- ox = op.y + (p.y - op.y)*ratio;
- childNode.setPosition(p.x, ox);
- }
- }
- this._width = width;
- this._originWidth = width;
- this._ratioX = ratio;
- return this;
- },
- setHeight: function (height) {
- if (height === undefined || height === null || height != height) {
- return ;
- }
- var originHeight = this._height;
- var ratio = height / originHeight;
- var childNodes = this.childNodes, childNode, p, op = this.getPosition(), h, ch, oy, rotation = this.getRotation();
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- ch = childNode.getHeight();
- h = ch >=2 ? ch * ratio : ch;
- childNode.setHeight(h);
-
- rotation = GD.calcRotation(rotation);
- if (rotation === 0 || rotation === Math.PI) {
- // 图元未旋转
- oy = op.y + (p.y - op.y)*ratio;
- childNode.setPosition(p.x, oy);
- } else if (rotation === 90 * Math.PI / 180) {
- // 图元旋转以后
- oy = op.x + (p.x - op.x)*ratio;
- childNode.setPosition(oy, p.y);
- }
- }
- this._height = height;
- this._originHeight = height;
- this._ratioY = ratio;
- return this;
- },
- setSize: function (size) {
- // var args = Array.prototype.slice.call(arguments, 0);
- // var height, width;
- // if (args.length === 0) {
- // return ;
- // }else if (args.length === 1) {
- // height = args[0].height;
- // width = args[0].width;
- // } else {
- // width = args[0];
- // height = args[1];
- // }
- // var wh = GD.getRatioWithRotation(angle, wid)
- // this.setHeight(height);
- // this.setWidth(width);
- // return this;
- var args = Array.prototype.slice.call(arguments, 0);
- var height, width;
- if (args.length === 0) {
- return ;
- }else if (args.length === 1) {
- height = args[0].height;
- width = args[0].width;
- angle = 0;
- } else if (args.length === 2) {
- if (typeof args[0] === 'object') {
- width = args[0].width;
- height = args[0].height;
- angle = args[1] || 0;
- } else {
- width = args[0];
- height = args[1];
- angle = 0;
- }
- } else if (args.length === 3) {
- width = args[0];
- height = args[1];
- angle = args[2] || 0;
- }
- var wh = GD.getRatioWithRotation(0, width, height);
- this.setHeight(wh.ratioY);
- this.setWidth(wh.ratioX);
- return this;
- },
- getPosition: function () {
- return {
- x: this._x,
- y: this._y
- }
- },
- setPosition: function () {
- var args = Array.prototype.slice.call(arguments, 0), x, y;
- if (args.length === 0) {
- return this;
- } else if (args.length === 1) {
- if (typeof args[0] != 'object') {
- return this;
- }
- x = args[0].x;
- y = args[0].y;
- } else {
- x = args[0];
- y = args[1];
- }
- if ((x !== 0 && !x) || (y !== 0 && !y)) {
- return this;
- }
- // var childNodes = this.childNodes, offset, childNode, p;
- // for (var i = 0, len = childNodes.length; i < len; i++) {
- // childNode = childNodes[i];
- // p = childNode.getPosition();
- // childNode.setPosition(x - (this._x-p.x)*this._ratioX, y - (this._y-p.y)*this._ratioY);
- // }
- // this._x = x;
- // this._y = y;
- // return this;
- var childNodes, childNode, background, offset = {}, op, cp;
- childNodes = this.childNodes;
- background = this._background;
- op = background.getPosition();
- offset.x = x - op.x;
- offset.y = y - op.y;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- cp = childNode.getPosition();
- childNode.setPosition(cp.x + offset.x, cp.y + offset.y);
- }
- this._x = x;
- this._y = y;
- this._position = {x: x, y: y};
- return this;
- },
- getStyle: function (key) {
- if (!key) {
- return undefined;
- }
- return this._styleObject[key];
- },
- setStyle: function (key, value, force) {
- var childNodes = this.childNodes, childNode;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (key === '2d.visible') {
- if (value === graphView.isVisible(childNode)) {
- continue;
- }
- if (!value) {
- childNode._savedIsVisible = graphView.isVisible(childNode);
- childNode.s({
- '2d.visible': false
- })
- } else {
- childNode.s({
- '2d.visible': childNode._savedIsVisible
- })
- }
- continue;
- }
- childNode.s({
- key: value
- });
- }
- this._styleObject[key] = value;
- return this;
- },
- calcSize: function () {
- var background = this._background;
- var position = background.getPosition(),
- width = background.getWidth(),
- height = background.getHeight();
- this._width = width;
- this._height = height;
- this._x = position.x;
- this._y = position.y;
- this._position = {
- x: this._x,
- y: this._y
- }
- return this;
- return this;
- },
- s: function (styleObj, force) {
- var args = Array.prototype.slice.call(arguments, 0);
- var styleObj;
- if (args.length === 0) {
- return this;
- } else if (args.length === 1) {
- styleObj = args[0];
- } else {
- this.setStyle(args[0], args[1]);
- return this;
- }
- for (var key in styleObj) {
- if (!styleObj.hasOwnProperty(key)) {
- continue;
- }
- this.setStyle(key, styleObj[key], force);
- }
- return this;
- },
- init: function (x, y, width, height, angle) {
- var that = this;
- this.calcSize();
- (function (width, height, angle) {
- // that.setSize(width, height, angle);
- // var wh = GD.getRatioWithRotation(angle, width, height);
- // width = wh.ratioX;
- // height = wh.ratioY;
- var originHeight = that._height;
- var originWidth = that._width;
- var ratioY = height / originHeight;
- var ratioX = width / originWidth;
- var childNodes = that.childNodes,
- childNode,p, op = that.getPosition(), h, ch, oy, w, cw, ox, name, borderRatio, borderWidth;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- childNode.originHeight = childNode.originHeight || childNode.getHeight();
- ch = childNode.getHeight();
- cw = childNode.getWidth();
-
- if (ch > 2) {
- h = ch * ratioY;
- childNode.setHeight(h);
- }
- if (cw > 2) {
- w = cw * ratioX;
- childNode.setWidth(w);
- }
- borderRatio = (ratioX + ratioY)*0.5;
- if (childNode._nodeType === 'line') { // 如果是线,
- if (childNode.getWidth() > childNode.getHeight()) {
- borderRatio = ratioX;
- } else {
- borderRatio = ratioY;
- }
- }
- name = childNode._nodename;
- // if (childNode.borderWidth && name && ch > 2 && cw > 2) {
- // borderWidth = childNode.borderWidth / borderRatio;
- // if (borderWidth > ch*0.5 || borderWidth > cw *0.5) {
- // // borderWidth = childNode.borderWidth;
- // }
- // childNode.borderWidth = borderWidth;
- // childNode.a(name + '.borderwidth', borderWidth);
- // }
- }
- that._height = height;
- that._originHeight = height;
- that._ratioY = ratioY;
- that._width = width;
- that._originWidth = width;
- that._ratioX = ratioX;
- })(width, height, angle);
- that._x = width / 2;
- that._y = height / 2;
- that._rotation = 0;
- // that.setPosition(x, y);
- (function (x, y) {
- var childNodes = that.childNodes, offset, childNode;
- var w2 = that.getWidth() / 2, h2 = that.getHeight()/2;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- offset = childNode.getPosition();
- childNode.setPosition(x + offset.x * that._ratioX - w2, y + offset.y * that._ratioY - h2);
- }
- that._x = x;
- that._y = y;
- })(x, y);
- // setTimeout(that.addEVent, 1000);
- },
- setRotation: function (angle) {
- var that = this, _angle = that.getRotation();
- if (angle!==0 && !angle || angle === _angle) {
- return this;
- }
- var childNodes = this.childNodes, childNode, p = this.getPosition(), px = p.x, py = p.y;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- var x = childNode.getPosition().x - px;
- var y = childNode.getPosition().y - py;
- childNode.setPosition(Math.cos(angle-_angle) * x - Math.sin(angle-_angle) * y + px, Math.cos(angle-_angle) * y + Math.sin(angle-_angle) * x + py);
- childNode.setRotation(angle);
- }
- this._rotation = angle;
- return this;
- },
- getRotation: function () {
- return this._rotation;
- },
- setScale: function (sx, sy) {
- var that = this,
- childNodes = this.childNodes,
- childNode;
- if (sx === undefined || sx === null) return ;
- if (sy === undefined || sy === null) {
- sy = sx;
- }
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (typeof childNode.setScale === 'function') {
- childNode.setScale(sx, sy);
- }
- }
- },
- getScale: function () {
- return this._background.getScale();
- },
- setScaleX: function (sx) {
- if (sx === undefined || sx === null) return;
- var that = this,
- childNodes = this.childNodes,
- childNode;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (typeof childNode.setScaleX === 'function') {
- childNode.setScaleX(sx);
- }
- }
- },
- setScaleY: function (sy) {
- if (sy === undefined || sy === null) return;
- var that = this,
- childNodes = this.childNodes,
- childNode;
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- if (typeof childNode.setScaleY === 'function') {
- childNode.setScaleY(sy);
- }
- }
- },
- getScaleX: function () {
- return this._background.getScaleX();
- },
- getScaleY: function () {
- return this._background.getScaleY();
- },
- evert: function () {
- var that = this,
- childNodes = this.childNodes,
- background = this._background,
- bp = background.getPosition(),
- bx = bp.x,
- by = bp.y,
- childNode, distanceX, distanceY, x, y, p, nx, ny;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- x = p.x;
- y = p.y;
- distanceX = bx - x;
- distanceY = by - y;
- nx = bx + distanceX;
- ny = by + distanceY;
- childNode.setPosition(nx, ny);
- if (typeof childNode.setScale === 'function') {
- if (!(childNode._disallowEvert === true))
- childNode.setScale(-1, -1);
- }
- }
- },
- evertX: function () {
- var that = this,
- childNodes = this.childNodes,
- background = this._background,
- bx = background.getPosition().x,
- childNode, distance, x, p, nx;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- x = p.x;
- distance = bx - x;
- nx = bx + distance;
- childNode.setPosition(nx, p.y);
- if (typeof childNode.setScaleX === 'function') {
- if (!(childNode._disallowEvert === true))
- childNode.setScaleX(-1);
- }
- }
- },
- evertY: function () {
- var that = this,
- childNodes = this.childNodes,
- background = this._background,
- by = background.getPosition().y,
- childNode, distance, y, p, ny;
-
- for (var i = 0, len = childNodes.length; i < len; i++) {
- childNode = childNodes[i];
- p = childNode.getPosition();
- y = p.y;
- distance = by - y;
- ny = by + distance;
- childNode.setPosition(p.x, ny);
- if (typeof childNode.setScaleY === 'function') {
- if (!(childNode._disallowEvert === true))
- childNode.setScaleY(-1);
- }
- }
- },
- attr: function (key, value) {
- var _attrObj = this._attrObj || {};
- if (arguments.length === 1) {
- return _attrObj[key];
- }
- var childNodes = this.childNodes, childNode;
- _attrObj[key] = value;
- for (var i = 0; childNode = childNodes[i++];) {
- if (typeof childNode.a === 'function') {
- childNode.a(key, value);
- }
- }
- },
- a: function () {
- return this.attr.apply(this, arguments);
- }
- });
- }
|