| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658 |
- /**
- * Copyright (c) 2006-2015, JGraph Holdings Ltd
- */
- //**********************************************************************************************************************************************************
- //Arrow NE
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dArrowNE(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dArrowNE, mxShape);
- mxShapeAws3dArrowNE.prototype.cst = {
- ARROW_NE : 'mxgraph.aws3d.arrowNE'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dArrowNE.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- c.begin();
- c.moveTo(w - 17, 8);
- c.lineTo(w - 21, 5.5);
- c.lineTo(w, 0);
- c.lineTo(w - 9.7, 12.2);
- c.lineTo(w - 13.9, 9.8);
- c.lineTo(9.7, h - 3.5);
- c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);
- c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);
- c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);
- c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);
- c.close();
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dArrowNE.prototype.cst.ARROW_NE, mxShapeAws3dArrowNE);
- //**********************************************************************************************************************************************************
- //Arrow SE
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dArrowSE(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dArrowSE, mxShape);
- mxShapeAws3dArrowSE.prototype.cst = {
- ARROW_SE : 'mxgraph.aws3d.arrowSE'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dArrowSE.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- c.begin();
- c.moveTo(w - 17, h - 8);
- c.lineTo(w - 21, h - 5.5);
- c.lineTo(w, h);
- c.lineTo(w - 9.7, h - 12.2);
- c.lineTo(w - 13.9, h - 9.8);
- c.lineTo(9.7, 3.5);
- c.arcTo(6, 3, 0, 0, 0, 9, 0.4);
- c.arcTo(5.2, 3, 0, 0, 0, 1, 1.4);
- c.arcTo(6, 2.8, 0, 0, 0, 3, 5.4);
- c.arcTo(5, 3, 0, 0, 0, 6.7, 5.2);
- c.close();
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dArrowSE.prototype.cst.ARROW_SE, mxShapeAws3dArrowSE);
- //**********************************************************************************************************************************************************
- //Arrow SW
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dArrowSW(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dArrowSW, mxShape);
- mxShapeAws3dArrowSW.prototype.cst = {
- ARROW_SW : 'mxgraph.aws3d.arrowSW'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dArrowSW.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- c.begin();
- c.moveTo(17, h - 8);
- c.lineTo(21, h - 5.5);
- c.lineTo(0, h);
- c.lineTo(9.7, h - 12.2);
- c.lineTo(13.9, h - 9.8);
- c.lineTo(w - 9.7, 3.5);
- c.arcTo(6, 3, 0, 0, 1, w - 9, 0.4);
- c.arcTo(5.2, 3, 0, 0, 1, w - 1, 1.4);
- c.arcTo(6, 2.8, 0, 0, 1, w - 3, 5.4);
- c.arcTo(5, 3, 0, 0, 1, w - 6.7, 5.2);
- c.close();
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dArrowSW.prototype.cst.ARROW_SW, mxShapeAws3dArrowSW);
- //**********************************************************************************************************************************************************
- //Arrow NW
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dArrowNW(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dArrowNW, mxShape);
- mxShapeAws3dArrowNW.prototype.cst = {
- ARROW_NW : 'mxgraph.aws3d.arrowNW'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dArrowNW.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- c.begin();
- c.moveTo(17, 8);
- c.lineTo(21, 5.5);
- c.lineTo(0, 0);
- c.lineTo(9.7, 12.2);
- c.lineTo(13.9, 9.8);
- c.lineTo(w - 9.7, h - 3.5);
- c.arcTo(6, 3, 0, 0, 0, w - 9, h - 0.4);
- c.arcTo(5.2, 3, 0, 0, 0, w - 1, h - 1.4);
- c.arcTo(6, 2.8, 0, 0, 0, w - 3, h - 5.4);
- c.arcTo(5, 3, 0, 0, 0, w - 6.7, h - 5.2);
- c.close();
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dArrowNW.prototype.cst.ARROW_NW, mxShapeAws3dArrowNW);
- //**********************************************************************************************************************************************************
- //Arrowless NE
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dArrowlessNE(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dArrowlessNE, mxShape);
- mxShapeAws3dArrowlessNE.prototype.cst = {
- ARROWLESS_NE : 'mxgraph.aws3d.arrowlessNE'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dArrowlessNE.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- c.begin();
- c.moveTo(w - 3.1, 0);
- c.lineTo(w, 1.8);
- c.lineTo(9.7, h - 3.5);
- c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);
- c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);
- c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);
- c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);
- c.close();
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dArrowlessNE.prototype.cst.ARROWLESS_NE, mxShapeAws3dArrowlessNE);
- //**********************************************************************************************************************************************************
- //Dashed edge with double arrow
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDashedEdgeDouble(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDashedEdgeDouble, mxShape);
- mxShapeAws3dDashedEdgeDouble.prototype.cst = {
- DASHED_EDGE_DOUBLE : 'mxgraph.aws3d.dashedEdgeDouble'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDashedEdgeDouble.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.setFillColor('#2D6195');
- c.save();
- c.setStrokeColor('none');
- c.begin();
- c.moveTo(21, 5.5);
- c.lineTo(0, 0);
- c.lineTo(9.7, 12.2);
- c.fillAndStroke();
-
- c.begin();
- c.moveTo(w - 21, h - 5.5);
- c.lineTo(w, h);
- c.lineTo(w - 9.7, h - 12.2);
- c.fillAndStroke();
-
- c.restore();
- c.setStrokeColor('#2D6195');
- c.setStrokeWidth('4');
- c.setDashed('true');
- c.setLineCap('round');
-
- c.begin();
- c.moveTo(7.675, 4.425);
- c.lineTo(w - 7.675, h - 4.425);
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble.prototype.cst.DASHED_EDGE_DOUBLE, mxShapeAws3dDashedEdgeDouble);
- //**********************************************************************************************************************************************************
- //Dashed edge with double arrow v2
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDashedEdgeDouble2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDashedEdgeDouble2, mxShape);
- mxShapeAws3dDashedEdgeDouble2.prototype.cst = {
- DASHED_EDGE_DOUBLE2 : 'mxgraph.aws3d.dashedEdgeDouble2'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDashedEdgeDouble2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#000000');
-
- c.save();
- c.setStrokeColor('none');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(21, 5.5);
- c.lineTo(0, 0);
- c.lineTo(9.7, 12.2);
- c.fillAndStroke();
-
- c.begin();
- c.moveTo(w - 21, h - 5.5);
- c.lineTo(w, h);
- c.lineTo(w - 9.7, h - 12.2);
- c.fillAndStroke();
-
- c.restore();
- c.setStrokeWidth('4');
- c.setDashed('true');
- c.setLineCap('round');
-
- c.begin();
- c.moveTo(7.675, 4.425);
- c.lineTo(w - 7.675, h - 4.425);
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble2.prototype.cst.DASHED_EDGE_DOUBLE2, mxShapeAws3dDashedEdgeDouble2);
- //**********************************************************************************************************************************************************
- //Dashed arrowless edge
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDashedArrowlessEdge(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDashedArrowlessEdge, mxShape);
- mxShapeAws3dDashedArrowlessEdge.prototype.cst = {
- DASHED_ARROWLESS_EDGE : 'mxgraph.aws3d.dashedArrowlessEdge'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDashedArrowlessEdge.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.setStrokeColor('#2D6195');
- c.setStrokeWidth('4');
- c.setDashed('true');
- c.setLineCap('round');
-
- c.begin();
- c.moveTo(0, 0);
- c.lineTo(w, h);
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge.prototype.cst.DASHED_ARROWLESS_EDGE, mxShapeAws3dDashedArrowlessEdge);
- //**********************************************************************************************************************************************************
- //Dashed arrowless edge
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDashedArrowlessEdge2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDashedArrowlessEdge2, mxShape);
- mxShapeAws3dDashedArrowlessEdge2.prototype.cst = {
- DASHED_ARROWLESS_EDGE2 : 'mxgraph.aws3d.dashedArrowlessEdge2'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDashedArrowlessEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.setStrokeWidth('4');
- c.setDashed('true');
- c.setLineCap('round');
-
- c.begin();
- c.moveTo(0, 0);
- c.lineTo(w, h);
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge2.prototype.cst.DASHED_ARROWLESS_EDGE2, mxShapeAws3dDashedArrowlessEdge2);
- //**********************************************************************************************************************************************************
- //Dashed edge
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDashedEdge(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDashedEdge, mxShape);
- mxShapeAws3dDashedEdge.prototype.cst = {
- DASHED_EDGE : 'mxgraph.aws3d.dashedEdge'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDashedEdge.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.setFillColor('#2D6195');
- c.save();
- c.setStrokeColor('none');
- c.begin();
- c.moveTo(w - 21, 5.5);
- c.lineTo(w, 0);
- c.lineTo(w - 9.7, 12.2);
- c.fillAndStroke();
-
- c.restore();
- c.setStrokeColor('#2D6195');
- c.setStrokeWidth('4');
- c.setDashed('true');
- c.setLineCap('round');
-
- c.begin();
- c.moveTo(w - 7.675, 4.425);
- c.lineTo(0, h);
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDashedEdge.prototype.cst.DASHED_EDGE, mxShapeAws3dDashedEdge);
- //**********************************************************************************************************************************************************
- //Dashed edge v2
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDashedEdge2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDashedEdge2, mxShape);
- mxShapeAws3dDashedEdge2.prototype.cst = {
- DASHED_EDGE2 : 'mxgraph.aws3d.dashedEdge2'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDashedEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#000000');
-
- c.save();
- c.setStrokeColor('none');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w - 21, 5.5);
- c.lineTo(w, 0);
- c.lineTo(w - 9.7, 12.2);
- c.fillAndStroke();
-
- c.restore();
- c.setStrokeWidth('4');
- c.setDashed('true');
- c.setLineCap('round');
-
- c.begin();
- c.moveTo(w - 7.675, 4.425);
- c.lineTo(0, h);
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDashedEdge2.prototype.cst.DASHED_EDGE2, mxShapeAws3dDashedEdge2);
- //**********************************************************************************************************************************************************
- //Flat edge
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dFlatEdge(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dFlatEdge, mxShape);
- mxShapeAws3dFlatEdge.prototype.cst = {
- FLAT_EDGE : 'mxgraph.aws3d.flatEdge'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dFlatEdge.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.setFillColor('#F4B934');
- c.setStrokeColor('none');
- c.begin();
- c.moveTo(w - 46, 8.8);
- c.lineTo(w - 61.2, 0);
- c.lineTo(w, 0);
- c.lineTo(w, 35.5);
- c.lineTo(w - 15.4, 26.5);
- c.lineTo(30.7, h);
- c.lineTo(0, h - 17.7);
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dFlatEdge.prototype.cst.FLAT_EDGE, mxShapeAws3dFlatEdge);
- //**********************************************************************************************************************************************************
- //Flat edge v2
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dFlatEdge2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dFlatEdge2, mxShape);
- mxShapeAws3dFlatEdge2.prototype.cst = {
- FLAT_EDGE2 : 'mxgraph.aws3d.flatEdge2'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dFlatEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.begin();
- c.moveTo(w - 46, 8.8);
- c.lineTo(w - 61.2, 0);
- c.lineTo(w, 0);
- c.lineTo(w, 35.5);
- c.lineTo(w - 15.4, 26.5);
- c.lineTo(30.7, h);
- c.lineTo(0, h - 17.7);
- c.close();
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dFlatEdge2.prototype.cst.FLAT_EDGE2, mxShapeAws3dFlatEdge2);
- //**********************************************************************************************************************************************************
- //Flat double edge
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dFlatDoubleEdge(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dFlatDoubleEdge, mxShape);
- mxShapeAws3dFlatDoubleEdge.prototype.cst = {
- FLAT_DOUBLE_EDGE : 'mxgraph.aws3d.flatDoubleEdge'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dFlatDoubleEdge.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.setFillColor('#F4B934');
- c.setStrokeColor('none');
- c.begin();
- c.moveTo(15.3, 61.9);
- c.lineTo(30.8, 53.2);
- c.lineTo(15.4, 44.2);
- c.lineTo(0, 53.2);
- c.lineTo(15.4, 8.8);
- c.lineTo(92.1, 0);
- c.lineTo(76.5, 8.8);
- c.lineTo(92.1, 17.7);
- c.lineTo(107.4, 8.8);
-
- c.lineTo(w - 15.3, h - 61.9);
- c.lineTo(w - 30.8, h - 53.2);
- c.lineTo(w - 15.4, h - 44.2);
- c.lineTo(w, h - 53.2);
- c.lineTo(w - 15.4, h - 8.8);
- c.lineTo(w - 92.1, h);
- c.lineTo(w - 76.5, h - 8.8);
- c.lineTo(w - 92.1, h - 17.7);
- c.lineTo(w - 107.4, h - 8.8);
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge.prototype.cst.FLAT_DOUBLE_EDGE, mxShapeAws3dFlatDoubleEdge);
- //**********************************************************************************************************************************************************
- //Flat double edge v2
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dFlatDoubleEdge2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dFlatDoubleEdge2, mxShape);
- mxShapeAws3dFlatDoubleEdge2.prototype.cst = {
- FLAT_DOUBLE_EDGE2 : 'mxgraph.aws3d.flatDoubleEdge2'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dFlatDoubleEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- c.begin();
- c.moveTo(15.3, 61.9);
- c.lineTo(30.8, 53.2);
- c.lineTo(15.4, 44.2);
- c.lineTo(0, 53.2);
- c.lineTo(15.4, 8.8);
- c.lineTo(92.1, 0);
- c.lineTo(76.5, 8.8);
- c.lineTo(92.1, 17.7);
- c.lineTo(107.4, 8.8);
-
- c.lineTo(w - 15.3, h - 61.9);
- c.lineTo(w - 30.8, h - 53.2);
- c.lineTo(w - 15.4, h - 44.2);
- c.lineTo(w, h - 53.2);
- c.lineTo(w - 15.4, h - 8.8);
- c.lineTo(w - 92.1, h);
- c.lineTo(w - 76.5, h - 8.8);
- c.lineTo(w - 92.1, h - 17.7);
- c.lineTo(w - 107.4, h - 8.8);
- c.close();
- c.fillAndStroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge2.prototype.cst.FLAT_DOUBLE_EDGE2, mxShapeAws3dFlatDoubleEdge2);
- //**********************************************************************************************************************************************************
- //AMI
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dAMI(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dAMI, mxShape);
- mxShapeAws3dAMI.prototype.cst = {
- AMI : 'mxgraph.aws3d.ami',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dAMI.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dAMI.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeWidth1 = strokeWidth * w / 92;
- var strokeWidth2 = strokeWidth * h / 60;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
-
- c.setStrokeWidth(strokeWidth);
- c.setShadow(false);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
- c.begin();
- c.moveTo(0, h * 0.6483);
- c.lineTo(w * 0.0684, h * 0.4133);
- c.lineTo(w * 0.5326, 0);
- c.lineTo(w * 0.6685, 0);
- c.lineTo(w * 0.9359, h * 0.2367);
- c.lineTo(w, h * 0.465);
- c.lineTo(w * 0.4, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.65);
- c.lineTo(w * 0.0652, h * 0.5);
- c.lineTo(w * 0.3326, h * 0.7667);
- c.lineTo(w * 0.4663, h * 0.7667);
- c.lineTo(w * 0.4, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.4, h);
- c.lineTo(w * 0.4641, h * 0.77);
- c.lineTo(w * 0.9326, h * 0.355);
- c.lineTo(w * 0.9347, h * 0.24);
- c.lineTo(w, h * 0.4667);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.65);
- c.lineTo(w * 0.0652, h * 0.5);
- c.lineTo(w * 0.3326, h * 0.7667);
- c.lineTo(w * 0.4663, h * 0.7667);
- c.lineTo(w * 0.4, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.4, h);
- c.lineTo(w * 0.4641, h * 0.77);
- c.lineTo(w * 0.9326, h * 0.355);
- c.lineTo(w * 0.9347, h * 0.24);
- c.lineTo(w, h * 0.4667);
- c.close();
- c.stroke();
-
- c.begin();
- c.moveTo(w * 0.0652, h * 0.42);
- c.lineTo(w * 0.0652, h * 0.5);
- c.moveTo(w * 0.3337, h * 0.7667);
- c.lineTo(w * 0.4, h);
- c.moveTo(w * 0.9348, h * 0.355);
- c.lineTo(w, h * 0.4733);
- c.stroke();
-
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.1935, h * 0.42);
- c.lineTo(w * 0.5543, h * 0.0967);
- c.lineTo(w * 0.6652, h * 0.1967);
- c.lineTo(w * 0.3, h * 0.5133);
- c.close();
- c.moveTo(w * 0.2967, h * 0.4633);
- c.lineTo(w * 0.3837, h * 0.3883);
- c.lineTo(w * 0.3326, h * 0.3417);
- c.lineTo(w * 0.2467, h * 0.42);
- c.close();
- c.moveTo(w * 0.362, h * 0.32);
- c.lineTo(w * 0.412, h * 0.3633);
- c.lineTo(w * 0.5054, h * 0.2867);
- c.lineTo(w * 0.4522, h * 0.24);
- c.close();
- c.moveTo(w * 0.5293, h * 0.26);
- c.lineTo(w * 0.6109, h * 0.1933);
- c.lineTo(w * 0.5511, h * 0.145);
- c.lineTo(w * 0.4739, h * 0.2133);
- c.close();
- c.moveTo(w * 0.3528, h * 0.557);
- c.lineTo(w * 0.7137, h * 0.2337);
- c.lineTo(w * 0.8246, h * 0.3337);
- c.lineTo(w * 0.4593, h * 0.6503);
- c.close();
- c.moveTo(w * 0.4561, h * 0.6003);
- c.lineTo(w * 0.543, h * 0.5253);
- c.lineTo(w * 0.492, h * 0.4787);
- c.lineTo(w * 0.4061, h * 0.557);
- c.close();
- c.moveTo(w * 0.5213, h * 0.457);
- c.lineTo(w * 0.5713, h * 0.5003);
- c.lineTo(w * 0.6648, h * 0.4237);
- c.lineTo(w * 0.6115, h * 0.377);
- c.close();
- c.moveTo(w * 0.6887, h * 0.397);
- c.lineTo(w * 0.7702, h * 0.3303);
- c.lineTo(w * 0.7104, h * 0.282);
- c.lineTo(w * 0.6333, h * 0.3503);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6483);
- c.lineTo(w * 0.0684, h * 0.4133);
- c.lineTo(w * 0.5326, 0);
- c.lineTo(w * 0.6685, 0);
- c.lineTo(w * 0.9359, h * 0.2367);
- c.lineTo(w, h * 0.465);
- c.lineTo(w * 0.4, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dAMI.prototype.cst.AMI, mxShapeAws3dAMI);
- //**********************************************************************************************************************************************************
- //Snapshot
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dSnapshot(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dSnapshot, mxShape);
- mxShapeAws3dSnapshot.prototype.cst = {
- SNAPSHOT : 'mxgraph.aws3d.snapshot',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dSnapshot.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dSnapshot.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 92;
- var strokeWidth2 = strokeWidth * h / 60;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
-
- c.setStrokeWidth(strokeWidth);
- c.setShadow(false);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if(isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(w, h * 0.6483);
- c.lineTo(w * 0.9316, h * 0.4133);
- c.lineTo(w * 0.4674, 0);
- c.lineTo(w * 0.3315, 0);
- c.lineTo(w * 0.0641, h * 0.2367);
- c.lineTo(0, h * 0.465);
- c.lineTo(w * 0.6, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSnapshot.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
-
- c.begin();
- c.moveTo(w, h * 0.65);
- c.lineTo(w * 0.9348, h * 0.52);
- c.lineTo(w * 0.6674, h * 0.7667);
- c.lineTo(w * 0.5337, h * 0.7667);
- c.lineTo(w * 0.6, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- c.begin();
- c.moveTo(w * 0.6, h);
- c.lineTo(w * 0.5359, h * 0.77);
- c.lineTo(w * 0.0674, h * 0.355);
- c.lineTo(w * 0.0653, h * 0.24);
- c.lineTo(0, h * 0.4667);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w, h * 0.65);
- c.lineTo(w * 0.9348, h * 0.52);
- c.lineTo(w * 0.6674, h * 0.7667);
- c.lineTo(w * 0.5337, h * 0.7667);
- c.lineTo(w * 0.6, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.6, h);
- c.lineTo(w * 0.5359, h * 0.77);
- c.lineTo(w * 0.0674, h * 0.355);
- c.lineTo(w * 0.0653, h * 0.24);
- c.lineTo(0, h * 0.4667);
- c.close();
- c.stroke();
-
- c.begin();
- c.moveTo(w * 0.9348, h * 0.42);
- c.lineTo(w * 0.9348, h * 0.52);
- c.moveTo(w * 0.6663, h * 0.7667);
- c.lineTo(w * 0.6, h);
- c.moveTo(w * 0.0652, h * 0.355);
- c.lineTo(0, h * 0.4733);
- c.stroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w, h * 0.6483);
- c.lineTo(w * 0.9316, h * 0.4133);
- c.lineTo(w * 0.4674, 0);
- c.lineTo(w * 0.3315, 0);
- c.lineTo(w * 0.0641, h * 0.2367);
- c.lineTo(0, h * 0.465);
- c.lineTo(w * 0.6, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dSnapshot.prototype.cst.SNAPSHOT, mxShapeAws3dSnapshot);
- //**********************************************************************************************************************************************************
- //Application
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dApplication(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dApplication, mxShape);
- mxShapeAws3dApplication.prototype.cst = {
- APPLICATION : 'mxgraph.aws3d.application',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dApplication.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dApplication.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 62;
- var strokeWidth2 = strokeWidth * h / 68.8;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.2544);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.2544);
- c.lineTo(w, h * 0.7485);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7485);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.2544);
- c.lineTo(w * 0.5, h * 0.5015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7485);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h * 0.5015);
- c.lineTo(w, h * 0.2544);
- c.lineTo(w, h * 0.7485);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.2544);
- c.lineTo(w * 0.5, h * 0.5015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7485);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.5, h * 0.5015);
- c.lineTo(w, h * 0.2544);
- c.lineTo(w, h * 0.7485);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
-
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.6694, h * 0.0872);
- c.lineTo(w * 0.7629, h * 0.1337);
- c.lineTo(w * 0.2661, h * 0.3882);
- c.lineTo(w * 0.2661, h * 0.5407);
- c.lineTo(w * 0.1742, h * 0.4953);
- c.lineTo(w * 0.1742, h * 0.3459);
- c.close();
- c.moveTo(w * 0.8629, h * 0.1846);
- c.lineTo(w * 0.379, h * 0.4331);
- c.lineTo(w * 0.379, h * 0.5945);
- c.lineTo(w * 0.2855, h * 0.5494);
- c.lineTo(w * 0.2855, h * 0.3953);
- c.lineTo(w * 0.7839, h * 0.1439);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.2544);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.2544);
- c.lineTo(w, h * 0.7485);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7485);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dApplication.prototype.cst.APPLICATION, mxShapeAws3dApplication);
- //**********************************************************************************************************************************************************
- //Application Server
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dApplicationServer(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dApplicationServer, mxShape);
- mxShapeAws3dApplicationServer.prototype.cst = {
- APPLICATION_SERVER : 'mxgraph.aws3d.application_server',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dApplicationServer.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dApplicationServer.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h / 124;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dApplicationServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7236);
- c.lineTo(0, h * 0.2863);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.2863);
- c.lineTo(w, h * 0.7236);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dApplicationServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplicationServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.2863);
- c.lineTo(w * 0.5, h * 0.5726);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7177);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w, h * 0.2863);
- c.lineTo(w * 0.5, h * 0.5726);
- c.lineTo(w * 0.5, h);
- c.lineTo(w, h * 0.7177);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.2863);
- c.lineTo(w * 0.5, h * 0.5726);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7177);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w, h * 0.2863);
- c.lineTo(w * 0.5, h * 0.5726);
- c.lineTo(w * 0.5, h);
- c.lineTo(w, h * 0.7177);
- c.close();
- c.stroke();
-
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.374, h * 0.4435);
- c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.374, h * 0.4153);
- c.lineTo(w * 0.4797, h * 0.3548);
- c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.5203, h * 0.3548);
- c.lineTo(w * 0.626, h * 0.4153);
- c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.626, h * 0.4411);
- c.lineTo(w * 0.5203, h * 0.5016);
- c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.4797, h * 0.5016);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7236);
- c.lineTo(0, h * 0.2863);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.2863);
- c.lineTo(w, h * 0.7236);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dApplicationServer.prototype.cst.APPLICATION_SERVER, mxShapeAws3dApplicationServer);
- //**********************************************************************************************************************************************************
- //CloudFront
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dCloudFront(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dCloudFront, mxShape);
- mxShapeAws3dCloudFront.prototype.cst = {
- CLOUDFRONT : 'mxgraph.aws3d.cloudfront',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dCloudFront.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dCloudFront.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 103.8;
- var strokeWidth2 = strokeWidth * h / 169.8;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.7915);
- c.lineTo(0, h * 0.7491);
- c.lineTo(w * 0.0588, h * 0.7279);
- c.lineTo(w * 0.0588, h * 0.1036);
- c.lineTo(w * 0.3526, 0);
- c.lineTo(w * 0.9422, h * 0.2073);
- c.lineTo(w * 0.9422, h * 0.8316);
- c.lineTo(w, h * 0.8539);
- c.lineTo(w, h * 0.894);
- c.lineTo(w * 0.7013, h);
- c.lineTo(w * 0.5877, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCloudFront.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.0588, h * 0.106);
- c.lineTo(w * 0.6474, h * 0.3121);
- c.lineTo(w * 0.6474, h * 0.9352);
- c.lineTo(w * 0.7052, h);
- c.lineTo(w * 0.5915, h);
- c.lineTo(0, h * 0.7915);
- c.lineTo(0, h * 0.7491);
- c.lineTo(w * 0.0588, h * 0.7279);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.6474, h * 0.3121);
- c.lineTo(w * 0.9422, h * 0.2073);
- c.lineTo(w * 0.9422, h * 0.8363);
- c.lineTo(w, h * 0.8539);
- c.lineTo(w, h * 0.894);
- c.lineTo(w * 0.7013, h);
- c.lineTo(w * 0.6474, h * 0.9305);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7915);
- c.lineTo(w * 0.0559, h * 0.7291);
- c.lineTo(w * 0.6474, h * 0.9364);
- c.lineTo(w * 0.5896, h);
- c.moveTo(w * 0.6493, h * 0.9364);
- c.lineTo(w * 0.9412, h * 0.8333);
- c.lineTo(w, h * 0.894);
- c.stroke();
- c.begin();
- c.moveTo(w * 0.0588, h * 0.106);
- c.lineTo(w * 0.6474, h * 0.3121);
- c.lineTo(w * 0.6474, h * 0.9352);
- c.lineTo(w * 0.7052, h);
- c.lineTo(w * 0.5915, h);
- c.lineTo(0, h * 0.7915);
- c.lineTo(0, h * 0.7491);
- c.lineTo(w * 0.0588, h * 0.7279);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.6474, h * 0.3121);
- c.lineTo(w * 0.9422, h * 0.2073);
- c.lineTo(w * 0.9422, h * 0.8363);
- c.lineTo(w, h * 0.8539);
- c.lineTo(w, h * 0.894);
- c.lineTo(w * 0.7013, h);
- c.lineTo(w * 0.6474, h * 0.9305);
- c.close();
- c.stroke();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
-
- c.begin();
- c.moveTo(w * 0.3333, h * 0.6643);
- c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.2351, h * 0.6042);
- c.arcTo(w * 0.4528, h * 0.2768, 0, 0, 1, w * 0.1724, h * 0.523);
- c.lineTo(w * 0.2428, h * 0.5677);
- c.lineTo(w * 0.2427, h * 0.5895);
- c.lineTo(w * 0.2765, h * 0.5995);
- c.close();
- c.moveTo(w * 0.1599, h * 0.4935);
- c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.1522, h * 0.4146);
- c.arcTo(w * 0.1156, h * 0.0883, 0, 0, 1, w * 0.2071, h * 0.3486);
- c.lineTo(w * 0.2013, h * 0.4187);
- c.lineTo(w * 0.1859, h * 0.4146);
- c.lineTo(w * 0.1859, h * 0.4464);
- c.lineTo(w * 0.1907, h * 0.4493);
- c.close();
- c.moveTo(w * 0.2235, h * 0.3445);
- c.arcTo(w * 0.1927, h * 0.1767, 0, 0, 1, w * 0.368, h * 0.361);
- c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.468, h * 0.4299);
- c.lineTo(w * 0.368, h * 0.4034);
- c.lineTo(w * 0.368, h * 0.394);
- c.lineTo(w * 0.3256, h * 0.3799);
- c.lineTo(w * 0.3256, h * 0.3887);
- c.close();
- c.moveTo(w * 0.4855, h * 0.4499);
- c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5337, h * 0.5395);
- c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5328, h * 0.6302);
- c.lineTo(w * 0.4952, h * 0.5589);
- c.lineTo(w * 0.5019, h * 0.5595);
- c.lineTo(w * 0.5019, h * 0.5265);
- c.lineTo(w * 0.4855, h * 0.5194);
- c.close();
- c.moveTo(w * 0.5241, h * 0.6455);
- c.arcTo(w * 0.0963, h * 0.0589, 0, 0, 1, w * 0.4663, h * 0.682);
- c.arcTo(w * 0.1445, h * 0.0883, 0, 0, 1, w * 0.3642, h * 0.6761);
- c.lineTo(w * 0.4239, h * 0.6525);
- c.lineTo(w * 0.4566, h * 0.6643);
- c.lineTo(w * 0.4566, h * 0.6413);
- c.close();
- c.moveTo(w * 0.3507, h * 0.6667);
- c.lineTo(w * 0.2871, h * 0.5919);
- c.lineTo(w * 0.4123, h * 0.6366);
- c.close();
- c.moveTo(w * 0.2563, h * 0.5595);
- c.lineTo(w * 0.1753, h * 0.5088);
- c.lineTo(w * 0.2052, h * 0.4594);
- c.close();
- c.moveTo(w * 0.2139, h * 0.4229);
- c.lineTo(w * 0.2197, h * 0.3528);
- c.lineTo(w * 0.3256, h * 0.4028);
- c.lineTo(w * 0.2283, h * 0.4252);
- c.close();
- c.moveTo(w * 0.2264, h * 0.4417);
- c.lineTo(w * 0.3218, h * 0.4146);
- c.lineTo(w * 0.3353, h * 0.4181);
- c.lineTo(w * 0.3353, h * 0.4971);
- c.lineTo(w * 0.3208, h * 0.4912);
- c.lineTo(w * 0.3208, h * 0.4965);
- c.lineTo(w * 0.2264, h * 0.4482);
- c.close();
- c.moveTo(w * 0.2697, h * 0.5618);
- c.lineTo(w * 0.2245, h * 0.4635);
- c.lineTo(w * 0.2331, h * 0.4588);
- c.lineTo(w * 0.3256, h * 0.5112);
- c.lineTo(w * 0.3237, h * 0.5241);
- c.close();
- c.moveTo(w * 0.2852, h * 0.576);
- c.lineTo(w * 0.2852, h * 0.5654);
- c.lineTo(w * 0.3391, h * 0.53);
- c.lineTo(w * 0.3516, h * 0.5347);
- c.lineTo(w * 0.4133, h * 0.6213);
- c.close();
- c.moveTo(w * 0.368, h * 0.5141);
- c.lineTo(w * 0.368, h * 0.5088);
- c.lineTo(w * 0.3526, h * 0.5029);
- c.lineTo(w * 0.3526, h * 0.4234);
- c.lineTo(w * 0.3622, h * 0.4276);
- c.lineTo(w * 0.4547, h * 0.5177);
- c.lineTo(w * 0.4557, h * 0.5277);
- c.close();
- c.moveTo(w * 0.3671, h * 0.417);
- c.lineTo(w * 0.4692, h * 0.4411);
- c.lineTo(w * 0.4721, h * 0.52);
- c.close();
- c.moveTo(w * 0.368, h * 0.5253);
- c.lineTo(w * 0.4566, h * 0.5359);
- c.lineTo(w * 0.4566, h * 0.5453);
- c.lineTo(w * 0.4663, h * 0.5465);
- c.lineTo(w * 0.4335, h * 0.6201);
- c.lineTo(w * 0.422, h * 0.616);
- c.lineTo(w * 0.368, h * 0.5389);
- c.close();
- c.moveTo(w * 0.4798, h * 0.5583);
- c.lineTo(w * 0.5183, h * 0.629);
- c.lineTo(w * 0.4557, h * 0.6313);
- c.lineTo(w * 0.4557, h * 0.6237);
- c.lineTo(w * 0.447, h * 0.6225);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7915);
- c.lineTo(0, h * 0.7491);
- c.lineTo(w * 0.0588, h * 0.7279);
- c.lineTo(w * 0.0588, h * 0.1036);
- c.lineTo(w * 0.3526, 0);
- c.lineTo(w * 0.9422, h * 0.2073);
- c.lineTo(w * 0.9422, h * 0.8316);
- c.lineTo(w, h * 0.8539);
- c.lineTo(w, h * 0.894);
- c.lineTo(w * 0.7013, h);
- c.lineTo(w * 0.5877, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dCloudFront.prototype.cst.CLOUDFRONT, mxShapeAws3dCloudFront);
- //**********************************************************************************************************************************************************
- //Data Center
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDataCenter(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDataCenter, mxShape);
- mxShapeAws3dDataCenter.prototype.cst = {
- DATA_CENTER : 'mxgraph.aws3d.dataCenter',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dDataCenter.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h / 142;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.7465);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7465);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataCenter.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.7465);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w, h * 0.7465);
- c.lineTo(w, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7465);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w, h * 0.7465);
- c.lineTo(w, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- c.setLineCap('round');
- c.setStrokeWidth(3 * strokeWidth);
- c.begin();
- c.moveTo(w * 0.0894, h * 0.3838);
- c.lineTo(w * 0.4187, h * 0.5493);
- c.moveTo(w * 0.0894, h * 0.4331);
- c.lineTo(w * 0.4187, h * 0.5986);
- c.moveTo(w * 0.0894, h * 0.4824);
- c.lineTo(w * 0.4187, h * 0.6479);
- c.moveTo(w * 0.5854, h * 0.5493);
- c.lineTo(w * 0.9146, h * 0.3838);
- c.moveTo(w * 0.5854, h * 0.5986);
- c.lineTo(w * 0.9146, h * 0.4331);
- c.moveTo(w * 0.5854, h * 0.6479);
- c.lineTo(w * 0.9146, h * 0.4824);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7465);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7465);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDataCenter.prototype.cst.DATA_CENTER, mxShapeAws3dDataCenter);
- //**********************************************************************************************************************************************************
- //Data Server
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDataServer(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDataServer, mxShape);
- mxShapeAws3dDataServer.prototype.cst = {
- DATA_SERVER : 'mxgraph.aws3d.dataServer',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dDataServer.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDataServer.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h / 106;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.6651);
- c.lineTo(0, h * 0.3349);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.6651);
- c.lineTo(0, h * 0.3349);
- c.lineTo(w * 0.5, h * 0.6698);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w, h * 0.6651);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w * 0.5, h * 0.6698);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6651);
- c.lineTo(0, h * 0.3349);
- c.lineTo(w * 0.5, h * 0.6698);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w, h * 0.6651);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w * 0.5, h * 0.6698);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- c.setLineCap('round');
- c.setStrokeWidth(3 * strokeWidth);
- c.begin();
- c.moveTo(w * 0.0878, h * 0.4858);
- c.lineTo(w * 0.4187, h * 0.7094);
- c.moveTo(w * 0.587, h * 0.7094);
- c.lineTo(w * 0.9187, h * 0.4858);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6651);
- c.lineTo(0, h * 0.3349);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDataServer.prototype.cst.DATA_SERVER, mxShapeAws3dDataServer);
- //**********************************************************************************************************************************************************
- //Elastic Load Balancing
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dElasticLoadBalancing(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dElasticLoadBalancing, mxShape);
- mxShapeAws3dElasticLoadBalancing.prototype.cst = {
- ELASTIC_LOAD_BALANCING : 'mxgraph.aws3d.elasticLoadBalancing',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dElasticLoadBalancing.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dElasticLoadBalancing.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 92;
- var strokeWidth2 = strokeWidth * h / 88.17;
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.7996);
- c.lineTo(0, h * 0.1985);
- c.lineTo(w * 0.3315, 0);
- c.lineTo(w * 0.6685, 0);
- c.lineTo(w, h * 0.1985);
- c.lineTo(w, h * 0.7996);
- c.lineTo(w * 0.6685, h);
- c.lineTo(w * 0.3315, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticLoadBalancing.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.4026);
- c.lineTo(w * 0.3315, h * 0.6011);
- c.lineTo(w * 0.6685, h * 0.6011);
- c.lineTo(w * 0.6685, h);
- c.lineTo(w * 0.3315, h);
- c.lineTo(0, h * 0.7996);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.6685, h * 0.6011);
- c.lineTo(w, h * 0.4026);
- c.lineTo(w, h * 0.7996);
- c.lineTo(w * 0.6685, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.4026);
- c.lineTo(w * 0.3315, h * 0.6011);
- c.lineTo(w * 0.6685, h * 0.6011);
- c.lineTo(w * 0.6685, h);
- c.lineTo(w * 0.3315, h);
- c.lineTo(0, h * 0.7996);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.6685, h * 0.6011);
- c.lineTo(w, h * 0.4026);
- c.lineTo(w, h * 0.7996);
- c.lineTo(w * 0.6685, h);
- c.close();
- c.moveTo(w * 0.3315, h * 0.6011);
- c.lineTo(w * 0.3315, h);
- c.stroke();
- c.restore();
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.337, h * 0.1395);
- c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.5, h * 0.1191);
- c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.6739, h * 0.1645);
- c.arcTo(w * 0.3261, h * 0.2155, 0, 0, 1, w * 0.8152, h * 0.3176);
- c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.75, h * 0.4367);
- c.arcTo(w * 0.3261, h * 0.3403, 0, 0, 1, w * 0.6033, h * 0.4854);
- c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.4348, h * 0.4741);
- c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2848, h * 0.4094);
- c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2065, h * 0.3062);
- c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.2446, h * 0.1928);
- c.arcTo(w * 0.2717, h * 0.1701, 0, 0, 1, w * 0.337, h * 0.1395);
- c.fill();
- c.restore();
- c.begin();
- c.moveTo(w * 0.2826, h * 0.372);
- c.lineTo(w * 0.362, h * 0.3232);
- c.lineTo(w * 0.4054, h * 0.3482);
- c.lineTo(w * 0.4457, h * 0.2654);
- c.lineTo(w * 0.4185, h * 0.2643);
- c.lineTo(w * 0.4728, h * 0.2132);
- c.lineTo(w * 0.4348, h * 0.1928);
- c.lineTo(w * 0.5141, h * 0.144);
- c.lineTo(w * 0.5837, h * 0.1883);
- c.lineTo(w * 0.5043, h * 0.2348);
- c.lineTo(w * 0.4848, h * 0.2223);
- c.lineTo(w * 0.4967, h * 0.2688);
- c.lineTo(w * 0.463, h * 0.2665);
- c.lineTo(w * 0.4304, h * 0.3346);
- c.lineTo(w * 0.4946, h * 0.2949);
- c.lineTo(w * 0.4761, h * 0.2858);
- c.lineTo(w * 0.5511, h * 0.2631);
- c.lineTo(w * 0.5261, h * 0.2472);
- c.lineTo(w * 0.6043, h * 0.1996);
- c.lineTo(w * 0.6761, h * 0.2404);
- c.lineTo(w * 0.5978, h * 0.2892);
- c.lineTo(w * 0.5652, h * 0.2699);
- c.lineTo(w * 0.5293, h * 0.3198);
- c.lineTo(w * 0.5087, h * 0.3051);
- c.lineTo(w * 0.4543, h * 0.3391);
- c.lineTo(w * 0.563, h * 0.3221);
- c.lineTo(w * 0.5598, h * 0.3017);
- c.lineTo(w * 0.6326, h * 0.3096);
- c.lineTo(w * 0.6163, h * 0.2994);
- c.lineTo(w * 0.6957, h * 0.2529);
- c.lineTo(w * 0.7674, h * 0.2938);
- c.lineTo(w * 0.687, h * 0.3425);
- c.lineTo(w * 0.6489, h * 0.321);
- c.lineTo(w * 0.5707, h * 0.3539);
- c.lineTo(w * 0.5674, h * 0.3369);
- c.lineTo(w * 0.4293, h * 0.3618);
- c.lineTo(w * 0.4641, h * 0.3834);
- c.lineTo(w * 0.3859, h * 0.4299);
- c.close();
- c.fill();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7996);
- c.lineTo(0, h * 0.1985);
- c.lineTo(w * 0.3315, 0);
- c.lineTo(w * 0.6685, 0);
- c.lineTo(w, h * 0.1985);
- c.lineTo(w, h * 0.7996);
- c.lineTo(w * 0.6685, h);
- c.lineTo(w * 0.3315, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dElasticLoadBalancing.prototype.cst.ELASTIC_LOAD_BALANCING, mxShapeAws3dElasticLoadBalancing);
- //**********************************************************************************************************************************************************
- //Instance
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dInstance(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dInstance, mxShape);
- mxShapeAws3dInstance.prototype.cst = {
- INSTANCE : 'mxgraph.aws3d.instance',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dInstance.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dInstance.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h / 97;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dInstance.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.634);
- c.lineTo(0, h * 0.2732);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.622, 0);
- c.lineTo(w, h * 0.2732);
- c.lineTo(w, h * 0.634);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dInstance.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInstance.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.2732);
- c.lineTo(w * 0.5, h * 0.6392);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.634);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h * 0.6392);
- c.lineTo(w, h * 0.2732);
- c.lineTo(w, h * 0.6392);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.2732);
- c.lineTo(w * 0.5, h * 0.6392);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.634);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.5, h * 0.6392);
- c.lineTo(w, h * 0.2732);
- c.lineTo(w, h * 0.6392);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
-
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.374, h * 0.4742);
- c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.374, h * 0.4381);
- c.lineTo(w * 0.4797, h * 0.3608);
- c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.5203, h * 0.3608);
- c.lineTo(w * 0.626, h * 0.4381);
- c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.626, h * 0.4711);
- c.lineTo(w * 0.5203, h * 0.5485);
- c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.4797, h * 0.5485);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.634);
- c.lineTo(0, h * 0.2732);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.622, 0);
- c.lineTo(w, h * 0.2732);
- c.lineTo(w, h * 0.634);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dInstance.prototype.cst.INSTANCE, mxShapeAws3dInstance);
- //**********************************************************************************************************************************************************
- //Internet Gateway
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dInternetGateway(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dInternetGateway, mxShape);
- mxShapeAws3dInternetGateway.prototype.cst = {
- INTERNET_GATEWAY : 'mxgraph.aws3d.internetGateway',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dInternetGateway.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dInternetGateway.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 116.7;
- var strokeWidth2 = strokeWidth * h / 102.8;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dInternetGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.8946, 0);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6812, h * 0.7247);
- c.close();
- c.fillAndStroke();
- c.restore();
- c.save();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.6838, h * 0.2072);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.fill();
-
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.6838, h * 0.2072);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.fill();
- c.restore();
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.6838, h * 0.2072);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.stroke();
- c.restore();
- c.setLineJoin('round');
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.6838, h * 0.2072);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
-
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.8946, 0);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6812, h * 0.7247);
- c.close();
- c.stroke();
- c.restore();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.3171, h * 0.1031);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dInternetGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setShadow(false);
- c.setLineJoin('round');
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.1054, h);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.1054, h);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.close();
- c.stroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.3171, h * 0.1031);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.stroke();
-
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.7849, h * 0.5039);
- c.arcTo(w * 0.0343, h * 0.0632, 0, 0, 1, w * 0.7481, h * 0.4796);
- c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.7661, h * 0.3911);
- c.arcTo(w * 0.06, h * 0.0681, 0, 0, 1, w * 0.7712, h * 0.3356);
- c.arcTo(w * 0.0257, h * 0.0292, 0, 0, 1, w * 0.7952, h * 0.32);
- c.arcTo(w * 0.1285, h * 0.1459, 0, 0, 1, w * 0.8166, h * 0.2461);
- c.arcTo(w * 0.06, h * 0.0973, 0, 0, 1, w * 0.8595, h * 0.2238);
- c.arcTo(w * 0.0514, h * 0.0973, 0, 0, 1, w * 0.8937, h * 0.2743);
- c.arcTo(w * 0.0428, h * 0.0778, 0, 0, 1, w * 0.9323, h * 0.3093);
- c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.928, h * 0.3716);
- c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8972, h * 0.4125);
- c.close();
- c.fill();
- };
- mxCellRenderer.registerShape(mxShapeAws3dInternetGateway.prototype.cst.INTERNET_GATEWAY, mxShapeAws3dInternetGateway);
- //**********************************************************************************************************************************************************
- //Oracle Data Center
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dOracleDataCenter(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dOracleDataCenter, mxShape);
- mxShapeAws3dOracleDataCenter.prototype.cst = {
- ORACLE_DATA_CENTER : 'mxgraph.aws3d.oracleDataCenter'
- };
- mxShapeAws3dOracleDataCenter.prototype.customProperties = [
- {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},
- {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dOracleDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /142;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dOracleDataCenter.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dOracleDataCenter.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');
- var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- c.setAlpha('0.1');
-
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
- c.setAlpha('0.3');
- c.begin();
- c.moveTo(w * 0.5, h * 0.5);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.setFillColor(fillColor2);
- c.begin();
- c.moveTo(0, h * 0.5866);
- c.lineTo(w * 0.5, h * 0.8359);
- c.lineTo(w, h * 0.5866);
- c.lineTo(w, h * 0.6986);
- c.lineTo(w * 0.5, h * 0.9486);
- c.lineTo(0, h * 0.6986);
- c.fill();
- c.setStrokeWidth(0.5 * strokeWidth);
- c.setStrokeColor(fillColor3);
- c.setFillColor(fillColor3);
-
- c.begin();
- c.moveTo(0, h * 0.5866);
- c.lineTo(w * 0.5, h * 0.8359);
- c.lineTo(w, h * 0.5866);
- c.moveTo(w, h * 0.6986);
- c.lineTo(w * 0.5, h * 0.9486);
- c.lineTo(0, h * 0.6986);
- c.stroke();
-
- c.begin();
- c.moveTo(w * 0.0813, h * 0.7113);
- c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);
- c.lineTo(w * 0.122, h * 0.6754);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);
- c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);
- c.close();
- c.moveTo(w * 0.1163, h * 0.7183);
- c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);
- c.lineTo(w * 0.087, h * 0.6676);
- c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);
- c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);
- c.close();
- c.moveTo(w * 0.1439, h * 0.743);
- c.lineTo(w * 0.1439, h * 0.6866);
- c.lineTo(w * 0.1846, h * 0.707);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);
- c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);
- c.lineTo(w * 0.1992, h * 0.769);
- c.lineTo(w * 0.187, h * 0.7641);
- c.lineTo(w * 0.1577, h * 0.7218);
- c.lineTo(w * 0.1854, h * 0.7345);
- c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);
- c.lineTo(w * 0.1528, h * 0.7007);
- c.lineTo(w * 0.1528, h * 0.7472);
- c.close();
- c.moveTo(w * 0.2008, h * 0.7711);
- c.lineTo(w * 0.2293, h * 0.7338);
- c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);
- c.lineTo(w * 0.2699, h * 0.8035);
- c.lineTo(w * 0.2602, h * 0.8007);
- c.lineTo(w * 0.252, h * 0.7859);
- c.lineTo(w * 0.2293, h * 0.7754);
- c.lineTo(w * 0.2244, h * 0.7634);
- c.lineTo(w * 0.248, h * 0.7739);
- c.lineTo(w * 0.235, h * 0.7444);
- c.lineTo(w * 0.2122, h * 0.7768);
- c.close();
- c.moveTo(w * 0.3244, h * 0.8225);
- c.lineTo(w * 0.3171, h * 0.8289);
- c.lineTo(w * 0.2854, h * 0.8127);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);
- c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);
- c.lineTo(w * 0.3228, h * 0.7761);
- c.lineTo(w * 0.3179, h * 0.7831);
- c.lineTo(w * 0.2878, h * 0.7683);
- c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);
- c.close();
- c.moveTo(w * 0.3276, h * 0.7789);
- c.lineTo(w * 0.3366, h * 0.7831);
- c.lineTo(w * 0.3366, h * 0.8289);
- c.lineTo(w * 0.3805, h * 0.8507);
- c.lineTo(w * 0.3748, h * 0.857);
- c.lineTo(w * 0.3317, h * 0.8359);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);
- c.close();
- c.moveTo(w * 0.435, h * 0.8775);
- c.lineTo(w * 0.4325, h * 0.8866);
- c.lineTo(w * 0.3959, h * 0.8683);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);
- c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);
- c.lineTo(w * 0.435, h * 0.8324);
- c.lineTo(w * 0.4285, h * 0.838);
- c.lineTo(w * 0.4008, h * 0.8246);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);
- c.lineTo(w * 0.4333, h * 0.8542);
- c.lineTo(w * 0.426, h * 0.8606);
- c.lineTo(w * 0.3878, h * 0.8415);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);
- c.close();
- c.moveTo(w * 0.6171, h * 0.8063);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);
- c.lineTo(w * 0.5894, h * 0.8761);
- c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);
- c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);
- c.close();
- c.moveTo(w * 0.5886, h * 0.8296);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);
- c.lineTo(w * 0.6163, h * 0.8528);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);
- c.close();
- c.moveTo(w * 0.64, h * 0.85);
- c.lineTo(w * 0.64, h * 0.7930);
- c.lineTo(w * 0.6854, h * 0.7718);
- c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);
- c.lineTo(w * 0.6992, h * 0.8218);
- c.lineTo(w * 0.6854, h * 0.8282);
- c.lineTo(w * 0.6569, h * 0.8141);
- c.lineTo(w * 0.6805, h * 0.8021);
- c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);
- c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);
- c.lineTo(w * 0.6528, h * 0.7979);
- c.lineTo(w * 0.6528, h * 0.8437);
- c.close();
- c.moveTo(w * 0.7, h * 0.8204);
- c.lineTo(w * 0.7301, h * 0.7507);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);
- c.lineTo(w * 0.7699, h * 0.7852);
- c.lineTo(w * 0.7602, h * 0.7908);
- c.lineTo(w * 0.7537, h * 0.7838);
- c.lineTo(w * 0.7276, h * 0.7958);
- c.lineTo(w * 0.7228, h * 0.788);
- c.lineTo(w * 0.748, h * 0.7768);
- c.lineTo(w * 0.7358, h * 0.7585);
- c.lineTo(w * 0.7114, h * 0.8155);
- c.close();
- c.moveTo(w * 0.8244, h * 0.7486);
- c.lineTo(w * 0.8171, h * 0.762);
- c.lineTo(w * 0.7894, h * 0.7761);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);
- c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);
- c.lineTo(w * 0.822, h * 0.7035);
- c.lineTo(w * 0.8171, h * 0.7155);
- c.lineTo(w * 0.7902, h * 0.7296);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);
- c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);
- c.close();
- c.moveTo(w * 0.8366, h * 0.6949);
- c.lineTo(w * 0.8366, h * 0.7423);
- c.lineTo(w * 0.878, h * 0.7231);
- c.lineTo(w * 0.874, h * 0.7338);
- c.lineTo(w * 0.8333, h * 0.7535);
- c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);
- c.lineTo(w * 0.8268, h * 0.7007);
- c.close();
- c.moveTo(w * 0.9342, h * 0.6472);
- c.lineTo(w * 0.9293, h * 0.6599);
- c.lineTo(w * 0.9033, h * 0.6725);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);
- c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);
- c.lineTo(w * 0.9309, h * 0.6725);
- c.lineTo(w * 0.9268, h * 0.6845);
- c.lineTo(w * 0.887, h * 0.7035);
- c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);
- c.lineTo(w * 0.935, h * 0.693);
- c.lineTo(w * 0.9285, h * 0.7063);
- c.lineTo(w * 0.9008, h * 0.7197);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);
- c.fill();
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.5, h * 0.5);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
-
- c.restore();
- c.setShadow(false);
- c.setStrokeWidth(3 * strokeWidth);
- c.setLineCap('round');
- c.begin();
- c.moveTo(w * 0.0894, h * 0.3838);
- c.lineTo(w * 0.4187, h * 0.5493);
- c.moveTo(w * 0.0894, h * 0.4331);
- c.lineTo(w * 0.4187, h * 0.5986);
- c.moveTo(w * 0.0894, h * 0.4824);
- c.lineTo(w * 0.4187, h * 0.6479);
- c.moveTo(w * 0.5854, h * 0.5492);
- c.lineTo(w * 0.9146, h * 0.3838);
- c.moveTo(w * 0.5854, h * 0.5986);
- c.lineTo(w * 0.9146, h * 0.4331);
- c.moveTo(w * 0.5854, h * 0.6479);
- c.lineTo(w * 0.9146, h * 0.4824);
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dOracleDataCenter.prototype.cst.ORACLE_DATA_CENTER, mxShapeAws3dOracleDataCenter);
- //**********************************************************************************************************************************************************
- //Oracle Database Server
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dOracleDatabaseServer(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dOracleDatabaseServer, mxShape);
- mxShapeAws3dOracleDatabaseServer.prototype.cst = {
- ORACLE_DB_SERVER : 'mxgraph.aws3d.oracleDbServer'
- };
- mxShapeAws3dOracleDatabaseServer.prototype.customProperties = [
- {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},
- {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dOracleDatabaseServer.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /142;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dOracleDatabaseServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dOracleDatabaseServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');
- var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- c.setAlpha('0.1');
-
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.close();
- c.moveTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3308);
- c.fill();
- c.setAlpha('0.3');
- c.begin();
- c.moveTo(w * 0.5, h);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w, h * 0.3308);
- c.lineTo(w, h * 0.7331);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.setFillColor(fillColor2);
- c.begin();
- c.moveTo(0, h * 0.5586);
- c.lineTo(w * 0.5, h * 0.8248);
- c.lineTo(w, h * 0.5586);
- c.lineTo(w, h * 0.6782);
- c.lineTo(w * 0.5, h * 0.9453);
- c.lineTo(0, h * 0.6782);
- c.fill();
- c.setStrokeWidth(0.5 * strokeWidth);
- c.setStrokeColor(fillColor3);
- c.setFillColor(fillColor3);
-
- c.begin();
- c.moveTo(0, h * 0.5586);
- c.lineTo(w * 0.5, h * 0.8248);
- c.lineTo(w, h * 0.5586);
- c.moveTo(w, h * 0.6782);
- c.lineTo(w * 0.5, h * 0.9453);
- c.lineTo(0, h * 0.6782);
- c.stroke();
-
- c.begin();
- c.moveTo(w * 0.0813, h * 0.6918);
- c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.065, h * 0.6616);
- c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.065, h * 0.6384);
- c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.0797, h * 0.6315);
- c.lineTo(w * 0.122, h * 0.6534);
- c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.1358, h * 0.673);
- c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.139, h * 0.7045);
- c.arcTo(w * 0.0179, h * 0.0165, 0, 0, 1, w * 0.1187, h * 0.7113);
- c.close();
- c.moveTo(w * 0.1163, h * 0.6992);
- c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.1285, h * 0.6955);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1293, h * 0.6819);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1179, h * 0.6616);
- c.lineTo(w * 0.087, h * 0.6451);
- c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.0764, h * 0.6473);
- c.arcTo(w * 0.0325, h * 0.0376, 0, 0, 0, w * 0.078, h * 0.673);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.087, h * 0.6834);
- c.close();
- c.moveTo(w * 0.1439, h * 0.7256);
- c.lineTo(w * 0.1439, h * 0.6654);
- c.lineTo(w * 0.1846, h * 0.6872);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.1967, h * 0.6992);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2, h * 0.7203);
- c.arcTo(w * 0.0138, h * 0.0165, 0, 0, 1, w * 0.1813, h * 0.7256);
- c.lineTo(w * 0.1992, h * 0.7534);
- c.lineTo(w * 0.187, h * 0.7481);
- c.lineTo(w * 0.1577, h * 0.7029);
- c.lineTo(w * 0.1854, h * 0.7165);
- c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.1911, h * 0.7135);
- c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 0, w * 0.1894, h * 0.7037);
- c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.1821, h * 0.6962);
- c.lineTo(w * 0.1528, h * 0.6804);
- c.lineTo(w * 0.1528, h * 0.7301);
- c.close();
- c.moveTo(w * 0.2008, h * 0.7556);
- c.lineTo(w * 0.2293, h * 0.7158);
- c.arcTo(w * 0.0065, h * 0.006, 0, 0, 1, w * 0.2382, h * 0.7143);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2431, h * 0.724);
- c.lineTo(w * 0.2699, h * 0.7902);
- c.lineTo(w * 0.2602, h * 0.7872);
- c.lineTo(w * 0.252, h * 0.7714);
- c.lineTo(w * 0.2293, h * 0.7602);
- c.lineTo(w * 0.2244, h * 0.7474);
- c.lineTo(w * 0.248, h * 0.7586);
- c.lineTo(w * 0.235, h * 0.7271);
- c.lineTo(w * 0.2122, h * 0.7617);
- c.close();
- c.moveTo(w * 0.3244, h * 0.8105);
- c.lineTo(w * 0.3171, h * 0.8173);
- c.lineTo(w * 0.2854, h * 0.8);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2724, h * 0.785);
- c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.265, h * 0.7593);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2683, h * 0.7459);
- c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.2829, h * 0.7405);
- c.lineTo(w * 0.3228, h * 0.7609);
- c.lineTo(w * 0.3179, h * 0.7684);
- c.lineTo(w * 0.2878, h * 0.7526);
- c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.2789, h * 0.7541);
- c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.2748, h * 0.7684);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.2878, h * 0.7909);
- c.close();
- c.moveTo(w * 0.3276, h * 0.7639);
- c.lineTo(w * 0.3366, h * 0.7684);
- c.lineTo(w * 0.3366, h * 0.8173);
- c.lineTo(w * 0.3805, h * 0.8406);
- c.lineTo(w * 0.3748, h * 0.8473);
- c.lineTo(w * 0.3317, h * 0.8248);
- c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3276, h * 0.8158);
- c.close();
- c.moveTo(w * 0.435, h * 0.8692);
- c.lineTo(w * 0.4325, h * 0.8789);
- c.lineTo(w * 0.3959, h * 0.8594);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.3862, h * 0.8466);
- c.arcTo(w * 0.0528, h * 0.0489, 0, 0, 1, w * 0.3805, h * 0.806);
- c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3951, h * 0.8008);
- c.lineTo(w * 0.435, h * 0.821);
- c.lineTo(w * 0.4285, h * 0.827);
- c.lineTo(w * 0.4008, h * 0.8127);
- c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.3878, h * 0.8196);
- c.lineTo(w * 0.4333, h * 0.8443);
- c.lineTo(w * 0.426, h * 0.8512);
- c.lineTo(w * 0.3878, h * 0.8308);
- c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.3976, h * 0.8489);
- c.close();
- c.moveTo(w * 0.6171, h * 0.7932);
- c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.6366, h * 0.7963);
- c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 1, w * 0.639, h * 0.8188);
- c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.6211, h * 0.8497);
- c.lineTo(w * 0.5894, h * 0.8677);
- c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 1, w * 0.565, h * 0.8646);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.5659, h * 0.8354);
- c.arcTo(w * 0.0488, h * 0.0451, 0, 0, 1, w * 0.5805, h * 0.8127);
- c.close();
- c.moveTo(w * 0.5886, h * 0.8181);
- c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.5748, h * 0.8368);
- c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.574, h * 0.8527);
- c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.587, h * 0.8586);
- c.lineTo(w * 0.6163, h * 0.8428);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.6285, h * 0.8248);
- c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6293, h * 0.8105);
- c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.6163, h * 0.803);
- c.close();
- c.moveTo(w * 0.64, h * 0.8398);
- c.lineTo(w * 0.64, h * 0.779);
- c.lineTo(w * 0.6854, h * 0.7563);
- c.arcTo(w * 0.0106, h * 0.0098, 0, 0, 1, w * 0.7008, h * 0.7632);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6959, h * 0.7865);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6805, h * 0.8);
- c.lineTo(w * 0.6992, h * 0.8097);
- c.lineTo(w * 0.6854, h * 0.8166);
- c.lineTo(w * 0.6569, h * 0.8015);
- c.lineTo(w * 0.6805, h * 0.7887);
- c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 0, w * 0.6894, h * 0.7782);
- c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6894, h * 0.7699);
- c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.6837, h * 0.7684);
- c.lineTo(w * 0.6528, h * 0.7842);
- c.lineTo(w * 0.6528, h * 0.8331);
- c.close();
- c.moveTo(w * 0.7, h * 0.8082);
- c.lineTo(w * 0.7301, h * 0.7338);
- c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7358, h * 0.7271);
- c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7415, h * 0.7316);
- c.lineTo(w * 0.7699, h * 0.7707);
- c.lineTo(w * 0.7602, h * 0.7766);
- c.lineTo(w * 0.7537, h * 0.7692);
- c.lineTo(w * 0.7276, h * 0.782);
- c.lineTo(w * 0.7228, h * 0.7736);
- c.lineTo(w * 0.748, h * 0.7617);
- c.lineTo(w * 0.7358, h * 0.7421);
- c.lineTo(w * 0.7114, h * 0.803);
- c.close();
- c.moveTo(w * 0.8244, h * 0.7316);
- c.lineTo(w * 0.8171, h * 0.7459);
- c.lineTo(w * 0.7894, h * 0.7609);
- c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 1, w * 0.7683, h * 0.7593);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.7667, h * 0.7338);
- c.arcTo(w * 0.0488, h * 0.0452, 0, 0, 1, w * 0.7937, h * 0.697);
- c.lineTo(w * 0.822, h * 0.6834);
- c.lineTo(w * 0.8171, h * 0.6962);
- c.lineTo(w * 0.7902, h * 0.7113);
- c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.778, h * 0.7256);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.7756, h * 0.7444);
- c.arcTo(w * 0.0077, h * 0.0072, 0, 0, 0, w * 0.787, h * 0.7512);
- c.close();
- c.moveTo(w * 0.8366, h * 0.6742);
- c.lineTo(w * 0.8366, h * 0.7248);
- c.lineTo(w * 0.878, h * 0.7043);
- c.lineTo(w * 0.874, h * 0.7158);
- c.lineTo(w * 0.8333, h * 0.7368);
- c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 1, w * 0.8268, h * 0.7324);
- c.lineTo(w * 0.8268, h * 0.6804);
- c.close();
- c.moveTo(w * 0.9342, h * 0.6233);
- c.lineTo(w * 0.9293, h * 0.6369);
- c.lineTo(w * 0.9033, h * 0.6503);
- c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.8927, h * 0.6601);
- c.arcTo(w * 0.0406, h * 0.0376, 0, 0, 0, w * 0.887, h * 0.6729);
- c.lineTo(w * 0.9309, h * 0.6503);
- c.lineTo(w * 0.9268, h * 0.6631);
- c.lineTo(w * 0.887, h * 0.6834);
- c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.8992, h * 0.691);
- c.lineTo(w * 0.935, h * 0.6722);
- c.lineTo(w * 0.9285, h * 0.6864);
- c.lineTo(w * 0.9008, h * 0.7007);
- c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.8829, h * 0.7015);
- c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.8764, h * 0.6827);
- c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.8959, h * 0.6443);
- c.fill();
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.moveTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.267);
- c.moveTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.moveTo(w, h * 0.3346);
- c.lineTo(w * 0.87, h * 0.267);
- c.moveTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.622, h * 0.4023);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dOracleDatabaseServer.prototype.cst.ORACLE_DB_SERVER, mxShapeAws3dOracleDatabaseServer);//zzz
- //**********************************************************************************************************************************************************
- //RDS Master
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dRdsMaster(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dRdsMaster, mxShape);
- mxShapeAws3dRdsMaster.prototype.cst = {
- RDS_MASTER : 'mxgraph.aws3d.rdsMaster',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dRdsMaster.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dRdsMaster.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /133;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dRdsMaster.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dRdsMaster.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRdsMaster.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.close();
- c.moveTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3308);
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w, h * 0.3308);
- c.lineTo(w, h * 0.7331);
- c.close();
- c.fill();
-
- c.restore();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.1878, h * 0.1932);
- c.lineTo(w * 0.4854, h * 0.0414);
- c.lineTo(w * 0.5886, h * 0.094);
- c.lineTo(w * 0.4455, h * 0.2308);
- c.lineTo(w * 0.7122, h * 0.1579);
- c.lineTo(w * 0.8171, h * 0.2098);
- c.lineTo(w * 0.5187, h * 0.3617);
- c.lineTo(w * 0.4537, h * 0.3293);
- c.lineTo(w * 0.7016, h * 0.2053);
- c.lineTo(w * 0.3854, h * 0.2947);
- c.lineTo(w * 0.3187, h * 0.2602);
- c.lineTo(w * 0.4959, h * 0.0992);
- c.lineTo(w * 0.2504, h * 0.2256);
- c.close();
- c.fill();
-
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.moveTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.267);
- c.moveTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.moveTo(w, h * 0.3346);
- c.lineTo(w * 0.87, h * 0.267);
- c.moveTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.622, h * 0.4023);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dRdsMaster.prototype.cst.RDS_MASTER, mxShapeAws3dRdsMaster);
- //**********************************************************************************************************************************************************
- //RDS
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dRds(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dRds, mxShape);
- mxShapeAws3dRds.prototype.cst = {
- RDS : 'mxgraph.aws3d.rds',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dRds.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true},
- {name: 'strokeColor3', dispName: 'Stroke Color 3', type: 'color', defVal:"#ffffff", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dRds.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /133;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dRds.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dRds.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- var strokeColor3 = mxUtils.getValue(this.style, 'strokeColor3', '#ffffff');
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRds.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.close();
- c.moveTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3308);
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w, h * 0.3308);
- c.lineTo(w, h * 0.7331);
- c.close();
- c.fill();
-
- c.restore();
- c.setFillColor(strokeColor3);
- c.setShadow(false);
- c.begin();
- c.moveTo(0, h * 0.6053);
- c.lineTo(w * 0.5, h * 0.8722);
- c.lineTo(w, h * 0.6053);
- c.lineTo(w, h * 0.6278);
- c.lineTo(w * 0.5, h * 0.8947);
- c.lineTo(0, h * 0.6278);
- c.close();
- c.fill();
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.moveTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.267);
- c.moveTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.moveTo(w, h * 0.3346);
- c.lineTo(w * 0.87, h * 0.267);
- c.moveTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.622, h * 0.4023);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dRds.prototype.cst.RDS, mxShapeAws3dRds);
- //**********************************************************************************************************************************************************
- //Route 53
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dRoute53(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dRoute53, mxShape);
- mxShapeAws3dRoute53.prototype.cst = {
- ROUTE_53 : 'mxgraph.aws3d.route53',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dRoute53.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dRoute53.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 117;
- var strokeWidth2 = strokeWidth * h /134.4;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dRoute53.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6994);
- c.lineTo(0, h * 0.2009);
- c.lineTo(w * 0.0427, h * 0.0781);
- c.lineTo(w * 0.7974, 0);
- c.lineTo(w, h * 0.1004);
- c.lineTo(w, h * 0.5915);
- c.lineTo(w * 0.8376, h * 0.9784);
- c.lineTo(w * 0.5983, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dRoute53.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRoute53.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.2009);
- c.lineTo(w * 0.6009, h * 0.5007);
- c.lineTo(w * 0.8376, h * 0.4799);
- c.lineTo(w * 0.8376, h * 0.9784);
- c.lineTo(w * 0.5966, h);
- c.lineTo(0, h * 0.6979);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.8348, h * 0.4861);
- c.lineTo(w * 0.9985, h * 0.0992);
- c.lineTo(w, h * 0.5952);
- c.lineTo(w * 0.8404, h * 0.9747);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.5855, h * 0.1079);
- c.arcTo(w * 0.094, h * 0.0744, 0, 0, 0, w * 0.6863, h * 0.1548);
- c.arcTo(w * 0.0855, h * 0.0446, 0, 0, 0, w * 0.7761, h * 0.2031);
- c.lineTo(w * 0.7726, h * 0.2455);
- c.arcTo(w * 0.0769, h * 0.0298, 0, 0, 0, w * 0.694, h * 0.2693);
- c.arcTo(w * 0.0684, h * 0.0446, 0, 0, 1, w * 0.5897, h * 0.3051);
- c.arcTo(w * 0.4274, h * 0.372, 0, 0, 0, w * 0.4573, h * 0.2753);
- c.arcTo(w * 0.0855, h * 0.0744, 0, 0, 0, w * 0.4188, h * 0.2344);
- c.lineTo(w * 0.3846, h * 0.2083);
- c.arcTo(w * 0.0769, h * 0.0372, 0, 0, 1, w * 0.4103, h * 0.1525);
- c.arcTo(w * 0.0855, h * 0.0409, 0, 0, 0, w * 0.4906, h * 0.1079);
- c.close();
- c.fill();
- c.begin();
- c.moveTo(0, h * 0.2009);
- c.lineTo(w * 0.6009, h * 0.5007);
- c.lineTo(w * 0.8376, h * 0.4799);
- c.lineTo(w * 0.8376, h * 0.9784);
- c.lineTo(w * 0.5966, h);
- c.lineTo(0, h * 0.6979);
- c.close();
- c.moveTo(w * 0.8348, h * 0.4861);
- c.lineTo(w * 0.9985, h * 0.0992);
- c.lineTo(w, h * 0.5952);
- c.lineTo(w * 0.8404, h * 0.9747);
- c.close();
- c.moveTo(w * 0.6009, h * 0.5007);
- c.lineTo(w * 0.6009, h);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.6994);
- c.lineTo(0, h * 0.2009);
- c.lineTo(w * 0.0427, h * 0.0781);
- c.lineTo(w * 0.7974, 0);
- c.lineTo(w, h * 0.1004);
- c.lineTo(w, h * 0.5915);
- c.lineTo(w * 0.8376, h * 0.9784);
- c.lineTo(w * 0.5983, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dRoute53.prototype.cst.ROUTE_53, mxShapeAws3dRoute53);
- //**********************************************************************************************************************************************************
- //S3 Bucket
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dS3Bucket(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dS3Bucket, mxShape);
- mxShapeAws3dS3Bucket.prototype.cst = {
- S3_BUCKET : 'mxgraph.aws3d.s3Bucket',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dS3Bucket.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dS3Bucket.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 61.5;
- var strokeWidth2 = strokeWidth * h / 63.8;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.2774);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.2774);
- c.lineTo(w * 0.7967, h * 0.8307);
- c.lineTo(w * 0.5, h);
- c.lineTo(w * 0.1951, h * 0.8307);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3Bucket.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.2774);
- c.lineTo(w * 0.5, h * 0.5564);
- c.lineTo(w * 0.5, h);
- c.lineTo(w * 0.1984, h * 0.8307);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h * 0.5533);
- c.lineTo(w, h * 0.2774);
- c.lineTo(w * 0.7967, h * 0.8307);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.2774);
- c.lineTo(w * 0.5, h * 0.5564);
- c.lineTo(w, h * 0.2774);
- c.stroke();
- c.begin();
- c.moveTo(w * 0.5, h * 0.5564);
- c.lineTo(w * 0.5, h);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.2774);
- c.lineTo(w * 0.5008, 0);
- c.lineTo(w, h * 0.2774);
- c.lineTo(w * 0.7967, h * 0.8307);
- c.lineTo(w * 0.5008, h);
- c.lineTo(w * 0.1951, h * 0.8307);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dS3Bucket.prototype.cst.S3_BUCKET, mxShapeAws3dS3Bucket);
- //**********************************************************************************************************************************************************
- //S3
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dS3(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dS3, mxShape);
- mxShapeAws3dS3.prototype.cst = {
- S3 : 'mxgraph.aws3d.s3',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dS3.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dS3.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 231.5;
- var strokeWidth2 = strokeWidth * h / 239;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dS3.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7782);
- c.lineTo(0, h * 0.3406);
- c.lineTo(w * 0.5974, 0);
- c.lineTo(w, h * 0.2218);
- c.lineTo(w, h * 0.6674);
- c.lineTo(w * 0.3991, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dS3.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.3406);
- c.lineTo(w * 0.3991, h * 0.5548);
- c.lineTo(w * 0.3991, h);
- c.lineTo(0, h * 0.7782);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.3991, h * 0.5548);
- c.lineTo(w, h * 0.2218);
- c.lineTo(w, h * 0.6661);
- c.lineTo(w * 0.3991, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.3406);
- c.lineTo(w * 0.3991, h * 0.5548);
- c.lineTo(w, h * 0.2218);
- c.moveTo(w * 0.3991, h * 0.5548);
- c.lineTo(w * 0.3991, h);
- c.moveTo(w * 0.3991, h * 0.3335);
- c.lineTo(w * 0.2009, h * 0.448);
- c.lineTo(w * 0.2009, h * 0.8891);
- c.moveTo(w * 0.5983, h * 0.2209);
- c.lineTo(w * 0.7948, h * 0.1109);
- c.moveTo(w * 0.2022, h * 0.2218);
- c.lineTo(w * 0.5991, h * 0.4448);
- c.lineTo(w * 0.5991, h * 0.8891);
- c.moveTo(w * 0.4004, h * 0.1117);
- c.lineTo(w * 0.7978, h * 0.3335);
- c.lineTo(w * 0.7978, h * 0.7791);
- c.stroke();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.4773, h * 0.2155);
- c.arcTo(w * 0.0086, h * 0.0046, 0, 0, 1, w * 0.4903, h * 0.2096);
- c.arcTo(w * 0.2808, h * 0.272, 0, 0, 1, w * 0.6004, h * 0.2619);
- c.arcTo(w * 0.108, h * 0.105, 0, 0, 1, w * 0.6177, h * 0.277);
- c.arcTo(w * 0.0065, h * 0.0063, 0, 0, 1, w * 0.6099, h * 0.2879);
- c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.5378, h * 0.2607);
- c.arcTo(w * 0.216, h * 0.2092, 0, 0, 1, w * 0.4773, h * 0.2155);
- c.close();
- c.fill();
- c.begin();
- c.moveTo(w * 0.4687, h * 0.2138);
- c.arcTo(w * 0.1512, h * 0.1464, 0, 0, 0, w * 0.4838, h * 0.2343);
- c.arcTo(w * 0.2376, h * 0.2301, 0, 0, 0, w * 0.5529, h * 0.2774);
- c.arcTo(w * 0.1728, h * 0.1674, 0, 0, 0, w * 0.6091, h * 0.2954);
- c.lineTo(w * 0.4946, h * 0.3339);
- c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.4549, h * 0.3205);
- c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.419, h * 0.3004);
- c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.3965, h * 0.2795);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7782);
- c.lineTo(0, h * 0.3406);
- c.lineTo(w * 0.5974, 0);
- c.lineTo(w, h * 0.2218);
- c.lineTo(w, h * 0.6674);
- c.lineTo(w * 0.3991, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dS3.prototype.cst.S3, mxShapeAws3dS3);
- //**********************************************************************************************************************************************************
- //SimpleDB
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dSimpleDB(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dSimpleDB, mxShape);
- mxShapeAws3dSimpleDB.prototype.cst = {
- SIMPLE_DB : 'mxgraph.aws3d.simpleDb',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dSimpleDB.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dSimpleDB.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /133;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dSimpleDB.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dSimpleDB.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.close();
- c.moveTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3308);
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w, h * 0.3308);
- c.lineTo(w, h * 0.7331);
- c.close();
- c.fill();
-
- c.restore();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.1821, h * 0.182);
- c.lineTo(w * 0.4659, h * 0.0308);
- c.lineTo(w * 0.822, h * 0.2218);
- c.lineTo(w * 0.539, h * 0.3714);
- c.close();
- c.fill();
-
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.moveTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.267);
- c.moveTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.moveTo(w, h * 0.3346);
- c.lineTo(w * 0.87, h * 0.267);
- c.moveTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.622, h * 0.4023);
- c.stroke();
- c.restore();
- c.setShadow(false);
- var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');
- c.setStrokeColor(fillColor);
- c.setStrokeWidth(2.2 * strokeWidth);
- c.begin();
- c.moveTo(w * 0.2382, h * 0.2218);
- c.lineTo(w * 0.5415, h * 0.0602);
- c.moveTo(w * 0.3821, h * 0.0564);
- c.lineTo(w * 0.7737, h * 0.2656);
-
- c.moveTo(w * 0.2967, h * 0.0915);
- c.lineTo(w * 0.7114, h * 0.312);
-
- c.moveTo(w * 0.2209, h * 0.1316);
- c.lineTo(w * 0.6179, h * 0.3434);
- c.stroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dSimpleDB.prototype.cst.SIMPLE_DB, mxShapeAws3dSimpleDB);
- //**********************************************************************************************************************************************************
- //SQS
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dSqs(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dSqs, mxShape);
- mxShapeAws3dSqs.prototype.cst = {
- SQS : 'mxgraph.aws3d.sqs',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dSqs.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dSqs.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 184;
- var strokeWidth2 = strokeWidth * h / 212.75;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dSqs.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7485);
- c.lineTo(0, h * 0.584);
- c.lineTo(w * 0.1658, h * 0.1666);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w * 0.8337, h * 0.1666);
- c.lineTo(w, h * 0.584);
- c.lineTo(w, h * 0.7485);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dSqs.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.1658, h * 0.1671);
- c.lineTo(w * 0.5, h * 0.334);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7485);
- c.lineTo(0, h * 0.584);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h * 0.3344);
- c.lineTo(w * 0.8332, h * 0.1671);
- c.lineTo(w, h * 0.584);
- c.lineTo(w, h * 0.7509);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.6674, h * 0.0844);
- c.lineTo(w * 0.3337, h * 0.2512);
- c.lineTo(w * 0.25, h * 0.7109);
- c.lineTo(w * 0.25, h * 0.8736);
- c.moveTo(w * 0.3326, h * 0.0839);
- c.lineTo(w * 0.6674, h * 0.2512);
- c.lineTo(w * 0.75, h * 0.7053);
- c.lineTo(w * 0.75, h * 0.874);
- c.moveTo(0, h * 0.584);
- c.lineTo(w * 0.5, h * 0.8331);
- c.lineTo(w, h * 0.584);
- c.moveTo(w * 0.1658, h * 0.1671);
- c.lineTo(w * 0.5, h * 0.334);
- c.lineTo(w * 0.8332, h * 0.1671);
- c.moveTo(w * 0.5, h * 0.334);
- c.lineTo(w * 0.5, h);
- c.stroke();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.3337, h * 0.1511);
- c.lineTo(w * 0.4668, h * 0.0848);
- c.lineTo(w * 0.6663, h * 0.184);
- c.lineTo(w * 0.5337, h * 0.2503);
- c.close();
- c.fill();
- var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');
- c.setFillColor(fillColor);
- c.begin();
- c.moveTo(w * 0.3902, h * 0.153);
- c.lineTo(w * 0.4701, h * 0.113);
- c.lineTo(w * 0.4701, h * 0.153);
- c.close();
- c.moveTo(w * 0.4402, h * 0.1784);
- c.lineTo(w * 0.5196, h * 0.1384);
- c.lineTo(w * 0.5196, h * 0.1784);
- c.close();
- c.moveTo(w * 0.4908, h * 0.2033);
- c.lineTo(w * 0.5701, h * 0.1633);
- c.lineTo(w * 0.5701, h * 0.2033);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7485);
- c.lineTo(0, h * 0.584);
- c.lineTo(w * 0.1658, h * 0.1666);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w * 0.8337, h * 0.1666);
- c.lineTo(w, h * 0.584);
- c.lineTo(w, h * 0.7485);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dSqs.prototype.cst.SQS, mxShapeAws3dSqs);
- //**********************************************************************************************************************************************************
- //VPC Gateway
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dVpcGateway(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dVpcGateway, mxShape);
- mxShapeAws3dVpcGateway.prototype.cst = {
- VPC_GATEWAY : 'mxgraph.aws3d.vpcGateway',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dVpcGateway.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dVpcGateway.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 116.7;
- var strokeWidth2 = strokeWidth * h / 102.8;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dVpcGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.5801, h * 0.5447);
- c.lineTo(w * 0.5801, h * 0.035);
- c.lineTo(w * 0.1054, 0);
- c.lineTo(0, h * 0.0691);
- c.lineTo(0, h * 0.4134);
- c.lineTo(w * 0.3188, h * 0.7247);
- c.close();
- c.fillAndStroke();
- c.restore();
- c.save();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5801, h * 0.5447);
- c.lineTo(w * 0.5801, h * 0.035);
- c.lineTo(w * 0.3162, h * 0.2072);
- c.lineTo(w * 0.3162, h * 0.7247);
- c.close();
- c.fill();
-
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- c.begin();
- c.moveTo(w * 0.3162, h * 0.2072);
- c.lineTo(0, h * 0.0691);
- c.lineTo(0, h * 0.4134);
- c.lineTo(w * 0.3162, h * 0.7247);
- c.close();
- c.fill();
- c.restore();
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.5801, h * 0.5447);
- c.lineTo(w * 0.5801, h * 0.035);
- c.lineTo(w * 0.3162, h * 0.2072);
- c.lineTo(w * 0.3162, h * 0.7247);
- c.close();
- c.stroke();
- c.restore();
- c.setLineJoin('round');
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.3162, h * 0.2072);
- c.lineTo(0, h * 0.0691);
- c.lineTo(0, h * 0.4134);
- c.lineTo(w * 0.3162, h * 0.7247);
- c.close();
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
-
- c.begin();
- c.moveTo(w * 0.5801, h * 0.5447);
- c.lineTo(w * 0.5801, h * 0.035);
- c.lineTo(w * 0.1054, 0);
- c.lineTo(0, h * 0.0691);
- c.lineTo(0, h * 0.4134);
- c.lineTo(w * 0.3188, h * 0.7247);
- c.close();
- c.stroke();
- c.restore();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w, h * 0.929);
- c.lineTo(w, h * 0.5866);
- c.lineTo(w * 0.6829, h * 0.1031);
- c.lineTo(w * 0.4216, h * 0.2753);
- c.lineTo(w * 0.4216, h * 0.7928);
- c.lineTo(w * 0.8946, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dVpcGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setShadow(false);
- c.setLineJoin('round');
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
-
- c.begin();
- c.moveTo(w, h * 0.929);
- c.lineTo(w, h * 0.5866);
- c.lineTo(w * 0.8946, h * 0.6537);
- c.lineTo(w * 0.8946, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- c.begin();
- c.moveTo(w * 0.8946, h);
- c.lineTo(w * 0.8946, h * 0.6537);
- c.lineTo(w * 0.4216, h * 0.2753);
- c.lineTo(w * 0.4216, h * 0.7928);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w, h * 0.929);
- c.lineTo(w, h * 0.5866);
- c.lineTo(w * 0.8946, h * 0.6537);
- c.lineTo(w * 0.8946, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.8946, h);
- c.lineTo(w * 0.8946, h * 0.6537);
- c.lineTo(w * 0.4216, h * 0.2753);
- c.lineTo(w * 0.4216, h * 0.7928);
- c.close();
- c.stroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w, h * 0.929);
- c.lineTo(w, h * 0.5866);
- c.lineTo(w * 0.6829, h * 0.1031);
- c.lineTo(w * 0.4216, h * 0.2753);
- c.lineTo(w * 0.4216, h * 0.7928);
- c.lineTo(w * 0.8946, h);
- c.close();
- c.stroke();
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.5587, h * 0.7743);
- c.lineTo(w * 0.5587, h * 0.6274);
- c.lineTo(w * 0.5775, h * 0.6342);
- c.lineTo(w * 0.5775, h * 0.57);
- c.arcTo(w * 0.0428, h * 0.0486, 0, 0, 1, w * 0.6058, h * 0.5253);
- c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.6564, h * 0.5447);
- c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.6847, h * 0.607);
- c.lineTo(w * 0.6847, h * 0.6877);
- c.lineTo(w * 0.7001, h * 0.6946);
- c.lineTo(w * 0.7001, h * 0.8405);
- c.close();
- c.moveTo(w * 0.6564, h * 0.6741);
- c.lineTo(w * 0.6564, h * 0.6177);
- c.arcTo(w * 0.06, h * 0.0681, 0, 0, 0, w * 0.6392, h * 0.57);
- c.arcTo(w * 0.0343, h * 0.0389, 0, 0, 0, w * 0.6195, h * 0.5574);
- c.arcTo(w * 0.0111, h * 0.0126, 0, 0, 0, w * 0.6058, h * 0.5691);
- c.lineTo(w * 0.6058, h * 0.6498);
- c.close();
- c.fill();
- };
- mxCellRenderer.registerShape(mxShapeAws3dVpcGateway.prototype.cst.VPC_GATEWAY, mxShapeAws3dVpcGateway);
- //**********************************************************************************************************************************************************
- //Web Server
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dWebServer(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dWebServer, mxShape);
- mxShapeAws3dWebServer.prototype.cst = {
- WEB_SERVER : 'mxgraph.aws3d.webServer',
- SHADING_COLORS : 'shadingCols'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dWebServer.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h / 106;
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth);
- };
- mxShapeAws3dWebServer.prototype.background = function(c, x, y, w, h, strokeWidth)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor('#292929');
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6651);
- c.lineTo(0, h * 0.3349);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dWebServer.prototype.foreground = function(c, x, y, w, h, strokeWidth)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWebServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.3349);
- c.lineTo(w * 0.5, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.6651);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h * 0.6651);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.3349);
- c.lineTo(w * 0.5, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.6651);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.5, h * 0.6651);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
-
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.374, h * 0.5189);
- c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.374, h * 0.4858);
- c.lineTo(w * 0.4797, h * 0.4151);
- c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.5203, h * 0.4151);
- c.lineTo(w * 0.626, h * 0.4858);
- c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.626, h * 0.516);
- c.lineTo(w * 0.5203, h * 0.5868);
- c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.4797, h * 0.5868);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor('#292929');
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6651);
- c.lineTo(0, h * 0.3349);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3349);
- c.lineTo(w, h * 0.6651);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dWebServer.prototype.cst.WEB_SERVER, mxShapeAws3dWebServer);
- //**********************************************************************************************************************************************************
- //DynamoDB
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDynamoDB(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDynamoDB, mxShape);
- mxShapeAws3dDynamoDB.prototype.cst = {
- DYNAMO_DB : 'mxgraph.aws3d.dynamoDb',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dDynamoDB.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDynamoDB.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 181.5;
- var strokeWidth2 = strokeWidth * h / 210;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dDynamoDB.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.8333);
- c.lineTo(0, h * 0.1667);
- c.lineTo(w * 0.3333, h * 0.0014);
- c.lineTo(w * 0.4986, h * 0.1667);
- c.lineTo(w * 0.6639, 0);
- c.lineTo(w, h * 0.169);
- c.lineTo(w, h * 0.8333);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5014, h * 0.9162);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dDynamoDB.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.168, h * 0.3333);
- c.lineTo(0, h * 0.3333);
- c.lineTo(w * 0.3333, h * 0.5);
- c.lineTo(w * 0.3333, h);
- c.lineTo(0, h * 0.8333);
- c.lineTo(0, h * 0.1714);
- c.close();
- c.moveTo(w * 0.4986, h * 0.1667);
- c.lineTo(w * 0.6667, 0);
- c.lineTo(w, h * 0.169);
- c.lineTo(w * 0.832, h * 0.3348);//
- c.lineTo(w, h * 0.3333);
- c.lineTo(w * 0.6667, h * 0.5);
- c.lineTo(w * 0.5014, h * 0.5);
- c.lineTo(w * 0.832, h * 0.3348);
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.3333, h * 0.5);
- c.lineTo(w * 0.4986, h * 0.5);
- c.lineTo(w * 0.4986, h * 0.9162);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.moveTo(w * 0.6667, h);
- c.lineTo(w * 0.6667, h * 0.5);
- c.lineTo(w, h * 0.3333);
- c.lineTo(w * 0.832, h * 0.3348);
- c.lineTo(w, h * 0.169);
- c.lineTo(w, h * 0.831);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.168, h * 0.3333);
- c.lineTo(0, h * 0.3333);
- c.lineTo(w * 0.3333, h * 0.5);
- c.lineTo(w * 0.3333, h);
- c.lineTo(0, h * 0.8333);
- c.lineTo(0, h * 0.1714);
- c.close();
- c.moveTo(w * 0.4986, h * 0.1667);
- c.lineTo(w * 0.6667, 0);
- c.lineTo(w, h * 0.169);
- c.lineTo(w * 0.832, h * 0.3348);
- c.lineTo(w, h * 0.3333);
- c.lineTo(w * 0.6667, h * 0.5);
- c.lineTo(w * 0.5014, h * 0.5);
- c.lineTo(w * 0.832, h * 0.3348);
- c.close();
- c.moveTo(w * 0.3333, h * 0.5);
- c.lineTo(w * 0.4986, h * 0.5);
- c.lineTo(w * 0.4986, h * 0.9162);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.moveTo(w * 0.6667, h);
- c.lineTo(w * 0.6667, h * 0.5);
- c.lineTo(w, h * 0.3333);
- c.lineTo(w, h * 0.831);
- c.close();
- c.moveTo(w * 0.168, h * 0.3333);
- c.lineTo(w * 0.5, h * 0.1667);
- c.moveTo(w * 0.168, h * 0.3333);
- c.lineTo(w * 0.5014, h * 0.5);
- c.stroke();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.4876, h * 0.2262);
- c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5647, h * 0.25);
- c.arcTo(w * 0.4407, h * 0.381, 0, 0, 1, w * 0.6419, h * 0.2905);
- c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.6799, h * 0.32);
- c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.6634, h * 0.3314);
- c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5978, h * 0.3119);
- c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.508, h * 0.2667);
- c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.4711, h * 0.2343);
- c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.4876, h * 0.2262);
- c.close();
- c.fill();
- c.begin();
- c.moveTo(w * 0.5124, h * 0.4143);
- c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.4683, h * 0.4095);
- c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3829, h * 0.3757);
- c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3196, h * 0.3371);
- c.arcTo(w * 0.0661, h * 0.0357, 0, 0, 1, w * 0.3058, h * 0.3081);
- c.lineTo(w * 0.4612, h * 0.2333);
- c.arcTo(w * 0.0661, h * 0.0476, 0, 0, 0, w * 0.4744, h * 0.2548);
- c.arcTo(w * 0.3306, h * 0.2857, 0, 0, 0, w * 0.53, h * 0.2905);
- c.arcTo(w * 0.4408, h * 0.381, 0, 0, 0, w * 0.6198, h * 0.3295);
- c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.665, h * 0.3367);
- c.close();
- c.moveTo(w * 0.5052, h * 0.3714);
- c.arcTo(w * 0.0275, h * 0.019, 0, 0, 1, w * 0.5135, h * 0.3581);
- c.arcTo(w * 0.0275, h * 0.0238, 0, 0, 1, w * 0.5344, h * 0.3571);
- c.lineTo(w * 0.5405, h * 0.3471);
- c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.5278, h * 0.3381);
- c.arcTo(w * 0.022, h * 0.0119, 0, 0, 1, w * 0.5372, h * 0.3271);
- c.lineTo(w * 0.5306, h * 0.3186);
- c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.5041, h * 0.3143);
- c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.4975, h * 0.3029);
- c.lineTo(w * 0.4777, h * 0.2995);
- c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4628, h * 0.3033);
- c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4408, h * 0.2967);
- c.lineTo(w * 0.4187, h * 0.3);
- c.arcTo(w * 0.011, h * 0.0081, 0, 0, 1, w * 0.4132, h * 0.3124);
- c.arcTo(w * 0.0386, h * 0.0333, 0, 0, 1, w * 0.395, h * 0.3129);
- c.lineTo(w * 0.3873, h * 0.3224);
- c.arcTo(w * 0.0165, h * 0.0143, 0, 0, 1, w * 0.3994, h * 0.3333);
- c.arcTo(w * 0.0138, h * 0.0119, 0, 0, 1, w * 0.3901, h * 0.3433);
- c.lineTo(w * 0.3994, h * 0.3514);
- c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4215, h * 0.3548);
- c.arcTo(w * 0.0165, h * 0.0119, 0, 0, 1, w * 0.4298, h * 0.3667);
- c.lineTo(w * 0.449, h * 0.3714);
- c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4711, h * 0.3657);
- c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4887, h * 0.3724);
- c.close();
- c.moveTo(w * 0.4986, h * 0.351);
- c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 1, w * 0.4804, h * 0.3552);
- c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.443, h * 0.349);
- c.lineTo(w * 0.4413, h * 0.3529);
- c.lineTo(w * 0.4242, h * 0.3371);
- c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4545, h * 0.3462);
- c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4793, h * 0.3476);
- c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 0, w * 0.4986, h * 0.3448);
- c.close();
- c.moveTo(w * 0.503, h * 0.3349);
- c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4766, h * 0.3233);
- c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 0, w * 0.4529, h * 0.32);
- c.arcTo(w * 0.0551, h * 0.0476, 0, 0, 0, w * 0.4325, h * 0.3238);
- c.lineTo(w * 0.427, h * 0.3195);
- c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4556, h * 0.3157);
- c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4851, h * 0.3232);
- c.lineTo(w * 0.4876, h * 0.3181);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.8333);
- c.lineTo(0, h * 0.1667);
- c.lineTo(w * 0.3333, h * 0.0014);
- c.lineTo(w * 0.4986, h * 0.1667);
- c.lineTo(w * 0.6639, 0);
- c.lineTo(w, h * 0.169);
- c.lineTo(w, h * 0.8333);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5014, h * 0.9162);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDynamoDB.prototype.cst.DYNAMO_DB, mxShapeAws3dDynamoDB);
- //**********************************************************************************************************************************************************
- //Elastic MapReduce
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dElasticMapReduce(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dElasticMapReduce, mxShape);
- mxShapeAws3dElasticMapReduce.prototype.cst = {
- ELASTIC_MAP_REDUCE : 'mxgraph.aws3d.elasticMapReduce',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dElasticMapReduce.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dElasticMapReduce.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /133;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dElasticMapReduce.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dElasticMapReduce.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.close();
- c.moveTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3308);
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w, h * 0.3308);
- c.lineTo(w, h * 0.7331);
- c.close();
- c.fill();
-
- c.restore();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.3336, h * 0.1789);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.359, h * 0.1789);
- c.lineTo(w * 0.4001, h * 0.2015);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4008, h * 0.2135);
- c.lineTo(w * 0.3574, h * 0.2368);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.3352, h * 0.2368);
- c.lineTo(w * 0.2934, h * 0.2143);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.2934, h * 0.2015);
- c.close();
- c.moveTo(w * 0.3705, h * 0.1729);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3705, h * 0.1602);
- c.lineTo(w * 0.4139, h * 0.1368);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4336, h * 0.1368);
- c.lineTo(w * 0.4811, h * 0.1617);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4811, h * 0.1708);
- c.lineTo(w * 0.4328, h * 0.1955);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4156, h * 0.1955);
- c.close();
- c.moveTo(w * 0.4467, h * 0.1308);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4467, h * 0.1203);
- c.lineTo(w * 0.491, h * 0.0962);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5123, h * 0.0962);
- c.lineTo(w * 0.559, h * 0.1203);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.559, h * 0.1293);
- c.lineTo(w * 0.5123, h * 0.1549);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4918, h * 0.1549);
- c.close();
- c.moveTo(w * 0.568, h * 0.1383);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5918, h * 0.1383);
- c.lineTo(w * 0.6361, h * 0.1624);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6366, h * 0.1714);
- c.lineTo(w * 0.5885, h * 0.1955);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.568, h * 0.1955);
- c.lineTo(w * 0.523, h * 0.1714);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.523, h * 0.1616);
- c.close();
- c.moveTo(w * 0.6451, h * 0.1789);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6697, h * 0.1789);
- c.lineTo(w * 0.7123, h * 0.2023);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.7123, h * 0.2128);
- c.lineTo(w * 0.6664, h * 0.2376);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6492, h * 0.2376);
- c.lineTo(w * 0.6016, h * 0.2135);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6016, h * 0.2023);
- c.close();
- c.moveTo(w * 0.6369, h * 0.2451);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6369, h * 0.2526);
- c.lineTo(w * 0.5172, h * 0.3173);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4893, h * 0.3173);
- c.lineTo(w * 0.3697, h * 0.2541);
- c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3697, h * 0.2436);
- c.lineTo(w * 0.4918, h * 0.1782);
- c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5131, h * 0.1782);
- c.close();
- c.fill();
- c.moveTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.arcTo(w * 0., h * 0., 0, 0, 1, w * 0., h * 0.);
-
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.moveTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.267);
- c.moveTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.moveTo(w, h * 0.3346);
- c.lineTo(w * 0.87, h * 0.267);
- c.moveTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.622, h * 0.4023);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dElasticMapReduce.prototype.cst.ELASTIC_MAP_REDUCE, mxShapeAws3dElasticMapReduce);
- //**********************************************************************************************************************************************************
- //RDS Slave
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dRdsSlave(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dRdsSlave, mxShape);
- mxShapeAws3dRdsSlave.prototype.cst = {
- RDS_SLAVE : 'mxgraph.aws3d.rdsSlave'
- };
- mxShapeAws3dRdsSlave.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dRdsSlave.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /133;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dRdsSlave.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dRdsSlave.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- c.setAlpha('0.1');
-
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.close();
- c.moveTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3308);
- c.fill();
- c.setAlpha('0.3');
- c.begin();
- c.moveTo(w * 0.5, h);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w, h * 0.3308);
- c.lineTo(w, h * 0.7331);
- c.close();
- c.fill();
-
- c.restore();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.2457, h * 0.2137);
- c.lineTo(w * 0.5393, h * 0.0593);
- c.lineTo(w * 0.6875, h * 0.1377);
- c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.7137, h * 0.1625);
- c.arcTo(w * 0.0348, h * 0.032, 0, 0, 1, w * 0.7076, h * 0.1968);
- c.arcTo(w * 0.1743, h * 0.1599, 0, 0, 1, w * 0.6597, h * 0.2249);
- c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5943, h * 0.232);
- c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5542, h * 0.2225);
- c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.5673, h * 0.2353);
- c.arcTo(w * 0.0261, h * 0.024, 0, 0, 1, w * 0.5611, h * 0.2729);
- c.lineTo(w * 0.4889, h * 0.316);
- c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.4766, h * 0.3352);
- c.lineTo(w * 0.4052, h * 0.2992);
- c.arcTo(w * 0.0173, h * 0.0159, 0, 0, 1, w * 0.4121, h * 0.2841);
- c.lineTo(w * 0.4914, h * 0.2368);
- c.arcTo(w * 0.0218, h * 0.02, 0, 0, 0, w * 0.4897, h * 0.2129);
- c.lineTo(w * 0.4409, h * 0.1857);
- c.lineTo(w * 0.3145, h * 0.2529);
- c.close();
- c.moveTo(w * 0.4801, h * 0.1633);
- c.lineTo(w * 0.5263, h * 0.1865);
- c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 0, w * 0.583, h * 0.1905);
- c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 0, w * 0.6196, h * 0.1721);
- c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.6117, h * 0.1441);
- c.lineTo(w * 0.5655, h * 0.1193);
- c.fill();
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.126, h * 0.267);
- c.lineTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.622, h * 0.4023);
- c.lineTo(w * 0.874, h * 0.267);
- c.lineTo(w * 0.874, h * 0.1316);
- c.moveTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.267);
- c.moveTo(w * 0.5, h * 0.6015);
- c.lineTo(w * 0.5, h);
- c.moveTo(w, h * 0.3346);
- c.lineTo(w * 0.87, h * 0.267);
- c.moveTo(w * 0.378, h * 0.4023);
- c.lineTo(w * 0.622, h * 0.4023);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.7331);
- c.lineTo(0, h * 0.3346);
- c.lineTo(w * 0.126, h * 0.1316);
- c.lineTo(w * 0.374, 0);
- c.lineTo(w * 0.626, 0);
- c.lineTo(w * 0.874, h * 0.1316);
- c.lineTo(w, h * 0.3346);
- c.lineTo(w, h * 0.7331);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dRdsSlave.prototype.cst.RDS_SLAVE, mxShapeAws3dRdsSlave);
- //**********************************************************************************************************************************************************
- //AMI
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dAMI2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dAMI2, mxShape);
- mxShapeAws3dAMI2.prototype.cst = {
- AMI_2 : 'mxgraph.aws3d.ami2',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dAMI2.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dAMI2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeWidth1 = strokeWidth * w / 92;
- var strokeWidth2 = strokeWidth * h / 60;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
-
- c.setStrokeWidth(strokeWidth);
- c.setShadow(false);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
- c.begin();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0865, h * 0.284);
- c.lineTo(w * 0.4203, 0);
- c.lineTo(w * 0.5865, 0);
- c.lineTo(w * 0.919, h * 0.286);
- c.lineTo(w, h * 0.566);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.566);
- c.lineTo(w * 0.0892, h * 0.282);
- c.lineTo(w * 0.0878, h * 0.426);
- c.lineTo(w * 0.4216, h * 0.712);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.9176, h * 0.43);
- c.lineTo(w, h * 0.566);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.566);
- c.lineTo(w * 0.0892, h * 0.282);
- c.lineTo(w * 0.0878, h * 0.426);
- c.lineTo(w * 0.4216, h * 0.712);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.9176, h * 0.43);
- c.lineTo(w, h * 0.566);
- c.close();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0892, h * 0.422);
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.4189, h * 0.708);
- c.moveTo(w * 0.9176, h * 0.43);
- c.lineTo(w * 0.9176, h * 0.29);
- c.stroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.2095, h * 0.376);
- c.lineTo(w * 0.527, h * 0.104);
- c.lineTo(w * 0.6338, h * 0.194);
- c.lineTo(w * 0.3149, h * 0.468);
- c.close();
- c.moveTo(w * 0.3716, h * 0.518);
- c.lineTo(w * 0.6892, h * 0.246);
- c.lineTo(w * 0.796, h * 0.336);
- c.lineTo(w * 0.477, h * 0.61);
- c.close();
- c.moveTo(w * 0.3108, h * 0.282);
- c.lineTo(w * 0.4257, h * 0.38);
- c.moveTo(w * 0.4189, h * 0.194);
- c.lineTo(w * 0.5297, h * 0.288);
- c.moveTo(w * 0.5838, h * 0.338);
- c.lineTo(w * 0.6892, h * 0.426);
- c.moveTo(w * 0.4757, h * 0.426);
- c.lineTo(w * 0.5838, h * 0.518);
- c.stroke();
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0865, h * 0.284);
- c.lineTo(w * 0.4203, 0);
- c.lineTo(w * 0.5865, 0);
- c.lineTo(w * 0.919, h * 0.286);
- c.lineTo(w, h * 0.566);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dAMI2.prototype.cst.AMI_2, mxShapeAws3dAMI2);
- //**********************************************************************************************************************************************************
- //EBS
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dEbs(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dEbs, mxShape);
- mxShapeAws3dEbs.prototype.cst = {
- EBS : 'mxgraph.aws3d.ebs',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dEbs.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dEbs.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 92;
- var strokeWidth2 = strokeWidth * h / 60;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
-
- c.setStrokeWidth(strokeWidth);
- c.setShadow(false);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if(isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4188);
- c.lineTo(w * 0.071, h * 0.2898);
- c.lineTo(w * 0.4033, 0);
- c.lineTo(w * 0.9301, h * 0.464);
- c.lineTo(w, h * 0.5863);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
-
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.071, h * 0.2948);
- c.lineTo(w * 0.6011, h * 0.7621);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.lineTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4137);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.6011, h * 0.7655);
- c.lineTo(w * 0.9344, h * 0.4724);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.071, h * 0.2948);
- c.lineTo(w * 0.6011, h * 0.7621);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.lineTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4137);
- c.close();
- c.moveTo(w * 0.6011, h * 0.7655);
- c.lineTo(w * 0.9344, h * 0.4724);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.close();
- c.moveTo(w * 0.0033, h * 0.5276);
- c.lineTo(w * 0.071, h * 0.2898);
- c.moveTo(w * 0.5325, h * 0.9976);
- c.lineTo(w * 0.603, h * 0.7593);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4188);
- c.lineTo(w * 0.071, h * 0.2898);
- c.lineTo(w * 0.4033, 0);
- c.lineTo(w * 0.9301, h * 0.464);
- c.lineTo(w, h * 0.5863);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dEbs.prototype.cst.EBS, mxShapeAws3dEbs);
- //**********************************************************************************************************************************************************
- //Oracle Server
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dOracleServer(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dOracleServer, mxShape);
- mxShapeAws3dOracleServer.prototype.cst = {
- ORACLE_SERVER : 'mxgraph.aws3d.oracleServer'
- };
- mxShapeAws3dOracleServer.prototype.customProperties = [
- {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},
- {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dOracleServer.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 123;
- var strokeWidth2 = strokeWidth * h /133;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dOracleServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dOracleServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');
- var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- c.setAlpha('0.1');
-
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
- c.setAlpha('0.3');
- c.begin();
- c.moveTo(w * 0.5, h * 0.5);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.setFillColor(fillColor2);
- c.begin();
- c.moveTo(0, h * 0.5866);
- c.lineTo(w * 0.5, h * 0.8359);
- c.lineTo(w, h * 0.5866);
- c.lineTo(w, h * 0.6986);
- c.lineTo(w * 0.5, h * 0.9486);
- c.lineTo(0, h * 0.6986);
- c.fill();
- c.setStrokeWidth(0.5 * strokeWidth);
- c.setStrokeColor(fillColor3);
- c.setFillColor(fillColor3);
-
- c.begin();
- c.moveTo(0, h * 0.5866);
- c.lineTo(w * 0.5, h * 0.8359);
- c.lineTo(w, h * 0.5866);
- c.moveTo(w, h * 0.6986);
- c.lineTo(w * 0.5, h * 0.9486);
- c.lineTo(0, h * 0.6986);
- c.stroke();
-
- c.begin();
- c.moveTo(w * 0.0813, h * 0.7113);
- c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);
- c.lineTo(w * 0.122, h * 0.6754);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);
- c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);
- c.close();
- c.moveTo(w * 0.1163, h * 0.7183);
- c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);
- c.lineTo(w * 0.087, h * 0.6676);
- c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);
- c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);
- c.close();
- c.moveTo(w * 0.1439, h * 0.743);
- c.lineTo(w * 0.1439, h * 0.6866);
- c.lineTo(w * 0.1846, h * 0.707);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);
- c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);
- c.lineTo(w * 0.1992, h * 0.769);
- c.lineTo(w * 0.187, h * 0.7641);
- c.lineTo(w * 0.1577, h * 0.7218);
- c.lineTo(w * 0.1854, h * 0.7345);
- c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);
- c.lineTo(w * 0.1528, h * 0.7007);
- c.lineTo(w * 0.1528, h * 0.7472);
- c.close();
- c.moveTo(w * 0.2008, h * 0.7711);
- c.lineTo(w * 0.2293, h * 0.7338);
- c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);
- c.lineTo(w * 0.2699, h * 0.8035);
- c.lineTo(w * 0.2602, h * 0.8007);
- c.lineTo(w * 0.252, h * 0.7859);
- c.lineTo(w * 0.2293, h * 0.7754);
- c.lineTo(w * 0.2244, h * 0.7634);
- c.lineTo(w * 0.248, h * 0.7739);
- c.lineTo(w * 0.235, h * 0.7444);
- c.lineTo(w * 0.2122, h * 0.7768);
- c.close();
- c.moveTo(w * 0.3244, h * 0.8225);
- c.lineTo(w * 0.3171, h * 0.8289);
- c.lineTo(w * 0.2854, h * 0.8127);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);
- c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);
- c.lineTo(w * 0.3228, h * 0.7761);
- c.lineTo(w * 0.3179, h * 0.7831);
- c.lineTo(w * 0.2878, h * 0.7683);
- c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);
- c.close();
- c.moveTo(w * 0.3276, h * 0.7789);
- c.lineTo(w * 0.3366, h * 0.7831);
- c.lineTo(w * 0.3366, h * 0.8289);
- c.lineTo(w * 0.3805, h * 0.8507);
- c.lineTo(w * 0.3748, h * 0.857);
- c.lineTo(w * 0.3317, h * 0.8359);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);
- c.close();
- c.moveTo(w * 0.435, h * 0.8775);
- c.lineTo(w * 0.4325, h * 0.8866);
- c.lineTo(w * 0.3959, h * 0.8683);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);
- c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);
- c.lineTo(w * 0.435, h * 0.8324);
- c.lineTo(w * 0.4285, h * 0.838);
- c.lineTo(w * 0.4008, h * 0.8246);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);
- c.lineTo(w * 0.4333, h * 0.8542);
- c.lineTo(w * 0.426, h * 0.8606);
- c.lineTo(w * 0.3878, h * 0.8415);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);
- c.close();
- c.moveTo(w * 0.6171, h * 0.8063);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);
- c.lineTo(w * 0.5894, h * 0.8761);
- c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);
- c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);
- c.close();
- c.moveTo(w * 0.5886, h * 0.8296);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);
- c.lineTo(w * 0.6163, h * 0.8528);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);
- c.close();
- c.moveTo(w * 0.64, h * 0.85);
- c.lineTo(w * 0.64, h * 0.7930);
- c.lineTo(w * 0.6854, h * 0.7718);
- c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);
- c.lineTo(w * 0.6992, h * 0.8218);
- c.lineTo(w * 0.6854, h * 0.8282);
- c.lineTo(w * 0.6569, h * 0.8141);
- c.lineTo(w * 0.6805, h * 0.8021);
- c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);
- c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);
- c.lineTo(w * 0.6528, h * 0.7979);
- c.lineTo(w * 0.6528, h * 0.8437);
- c.close();
- c.moveTo(w * 0.7, h * 0.8204);
- c.lineTo(w * 0.7301, h * 0.7507);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);
- c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);
- c.lineTo(w * 0.7699, h * 0.7852);
- c.lineTo(w * 0.7602, h * 0.7908);
- c.lineTo(w * 0.7537, h * 0.7838);
- c.lineTo(w * 0.7276, h * 0.7958);
- c.lineTo(w * 0.7228, h * 0.788);
- c.lineTo(w * 0.748, h * 0.7768);
- c.lineTo(w * 0.7358, h * 0.7585);
- c.lineTo(w * 0.7114, h * 0.8155);
- c.close();
- c.moveTo(w * 0.8244, h * 0.7486);
- c.lineTo(w * 0.8171, h * 0.762);
- c.lineTo(w * 0.7894, h * 0.7761);
- c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);
- c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);
- c.lineTo(w * 0.822, h * 0.7035);
- c.lineTo(w * 0.8171, h * 0.7155);
- c.lineTo(w * 0.7902, h * 0.7296);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);
- c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);
- c.close();
- c.moveTo(w * 0.8366, h * 0.6949);
- c.lineTo(w * 0.8366, h * 0.7423);
- c.lineTo(w * 0.878, h * 0.7231);
- c.lineTo(w * 0.874, h * 0.7338);
- c.lineTo(w * 0.8333, h * 0.7535);
- c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);
- c.lineTo(w * 0.8268, h * 0.7007);
- c.close();
- c.moveTo(w * 0.9342, h * 0.6472);
- c.lineTo(w * 0.9293, h * 0.6599);
- c.lineTo(w * 0.9033, h * 0.6725);
- c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);
- c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);
- c.lineTo(w * 0.9309, h * 0.6725);
- c.lineTo(w * 0.9268, h * 0.6845);
- c.lineTo(w * 0.887, h * 0.7035);
- c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);
- c.lineTo(w * 0.935, h * 0.693);
- c.lineTo(w * 0.9285, h * 0.7063);
- c.lineTo(w * 0.9008, h * 0.7197);
- c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);
- c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);
- c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, h * 0.5);
- c.lineTo(w * 0.5, h);
- c.close();
- c.moveTo(w * 0.5, h * 0.5);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.374, h * 0.3873);
- c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.374, h * 0.3626);
- c.lineTo(w * 0.4797, h * 0.3098);
- c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.5203, h * 0.3098);
- c.lineTo(w * 0.626, h * 0.3626);
- c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.626, h * 0.3852);
- c.lineTo(w * 0.5203, h * 0.438);
- c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.4797, h * 0.438);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7464);
- c.lineTo(0, h * 0.25);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.25);
- c.lineTo(w, h * 0.7464);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dOracleServer.prototype.cst.ORACLE_SERVER, mxShapeAws3dOracleServer);
- //**********************************************************************************************************************************************************
- //Secure Connection
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dSecureConnection(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dSecureConnection, mxShape);
- mxShapeAws3dSecureConnection.prototype.cst = {
- SECURE_CONNECTION : 'mxgraph.aws3d.secureConnection'
- };
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dSecureConnection.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 57;
- var strokeWidth2 = strokeWidth * h /34;
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setStrokeWidth(strokeWidth);
-
- this.background(c, 0, 0, w, h, strokeWidth);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth);
- };
- mxShapeAws3dSecureConnection.prototype.background = function(c, x, y, w, h, strokeWidth)
- {
- c.begin();
- c.moveTo(w * 0.0058, h * 0.3889);
- c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0774, h * 0.1856);
- c.arcTo(w * 0.5241, h * 0.8839, 0, 0, 1, w * 0.308, h * 0.0262);
- c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.6417, h * 0.056);
- c.arcTo(w * 0.6988, h * 1.1786, 0, 0, 1, w * 0.9106, h * 0.277);
- c.arcTo(w * 0.2621, h * 0.442, 0, 0, 1, w, h * 0.5451);
- c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.9474, h * 0.7808);
- c.arcTo(w * 0.4368, h * 0.7366, 0, 0, 1, w * 0.7186, h * 0.9605);
- c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.3045, h * 0.9104);
- c.arcTo(w * 0.6115, h * 1.0312, 0, 0, 1, w * 0.0687, h * 0.6747);
- c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0058, h * 0.3889);
- c.close();
- c.fill();
- };
- mxShapeAws3dSecureConnection.prototype.foreground = function(c, x, y, w, h, strokeWidth)
- {
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.2661, h * 0.5068);
- c.lineTo(w * 0.5002, h * 0.7336);
- c.lineTo(w * 0.6626, h * 0.5775);
- c.lineTo(w * 0.6469, h * 0.5539);
- c.lineTo(w * 0.6958, h * 0.5097);
- c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.7325, h * 0.4066);
- c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.6889, h * 0.3153);
- c.arcTo(w * 0.1747, h * 0.2946, 0, 0, 0, w * 0.5928, h * 0.2622);
- c.arcTo(w * 0.1398, h * 0.2357, 0, 0, 0, w * 0.5107, h * 0.3005);
- c.lineTo(w * 0.446, h * 0.3654);
- c.lineTo(w * 0.4268, h * 0.3477);
- c.close();
- c.moveTo(w * 0.4949, h * 0.4184);
- c.lineTo(w * 0.5491, h * 0.3624);
- c.arcTo(w * 0.1222, h * 0.2062, 0, 0, 1, w * 0.6277, h * 0.3536);
- c.arcTo(w * 0.0874, h * 0.1179, 0, 0, 1, w * 0.6679, h * 0.3978);
- c.arcTo(w * 0.0175, h * 0.0295, 0, 0, 1, w * 0.6626, h * 0.439);
- c.lineTo(w * 0.5928, h * 0.5068);
- c.close();
- c.fill();
- };
- mxCellRenderer.registerShape(mxShapeAws3dSecureConnection.prototype.cst.SECURE_CONNECTION, mxShapeAws3dSecureConnection);
- //**********************************************************************************************************************************************************
- //Email Service
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dEmailService(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dEmailService, mxShape);
- mxShapeAws3dEmailService.prototype.cst = {
- EMAIL_SERVICE : 'mxgraph.aws3d.email_service',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dEmailService.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dEmailService.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 151;
- var strokeWidth2 = strokeWidth * h / 192;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dEmailService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.8182);
- c.lineTo(0, h * 0.1818);
- c.lineTo(w * 0.4007, 0);
- c.lineTo(w * 0.606, 0);
- c.lineTo(w, h * 0.1792);
- c.lineTo(w, h * 0.8182);
- c.lineTo(w * 0.5993, h);
- c.lineTo(w * 0.4007, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dEmailService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEmailService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.2727);
- c.lineTo(w * 0.4007, h * 0.4546);
- c.lineTo(w * 0.5993, h * 0.4546);
- c.lineTo(w * 0.5993, h);
- c.lineTo(w * 0.4007, h);
- c.lineTo(0, h * 0.8182);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5993, h * 0.4546);
- c.lineTo(w, h * 0.2727);
- c.lineTo(w * 0.8013, h * 0.1792);
- c.lineTo(w * 0.8013, h * 0.0883);
- c.lineTo(w, h * 0.1792);
- c.lineTo(w, h * 0.8182);
- c.lineTo(w * 0.5993, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.2727);
- c.lineTo(w * 0.4007, h * 0.4546);
- c.lineTo(w * 0.5993, h * 0.4546);
- c.lineTo(w * 0.5993, h);
- c.lineTo(w * 0.4007, h);
- c.lineTo(0, h * 0.8182);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.5993, h * 0.4546);
- c.lineTo(w, h * 0.2727);
- c.lineTo(w * 0.8013, h * 0.1792);
- c.lineTo(w * 0.8013, h * 0.0883);
- c.lineTo(w, h * 0.1792);
- c.lineTo(w, h * 0.8182);
- c.lineTo(w * 0.5993, h);
- c.close();
- c.stroke();
-
- c.begin();
- c.moveTo(w * 0.202, h * 0.0883);
- c.lineTo(w * 0.202, h * 0.1818);
- c.lineTo(w * 0.4007, h * 0.2727);
- c.lineTo(w * 0.5993, h * 0.2727);
- c.lineTo(w * 0.798, h * 0.1818);
- c.moveTo(w * 0.2053, h * 0.1818);
- c.lineTo(w * 0.0033, h * 0.2714);
- c.moveTo(w * 0.4007, h * 0.2727);
- c.lineTo(w * 0.4007, h * 0.9961);
- c.moveTo(w * 0.5993, h * 0.2727);
- c.lineTo(w * 0.5993, h * 0.4546);
- c.stroke();
-
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.4437, h * 0.0779);
- c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 1, w * 0.404, h * 0.0706);
- c.arcTo(w * 0.0464, h * 0.0364, 0, 0, 1, w * 0.3815, h * 0.0421);
- c.arcTo(w * 0.053, h * 0.026, 0, 0, 1, w * 0.4205, h * 0.0187);
- c.arcTo(w * 0.1987, h * 0.1558, 0, 0, 1, w * 0.4768, h * 0.0203);
- c.arcTo(w * 0.0795, h * 0.0364, 0, 0, 1, w * 0.5199, h * 0.0494);
- c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.5099, h * 0.0649);
- c.arcTo(w * 0.0795, h * 0.0623, 0, 0, 1, w * 0.4536, h * 0.0727);
- c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4404, h * 0.0597);
- c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4219, h * 0.0566);
- c.arcTo(w * 0.0199, h * 0.0114, 0, 0, 1, w * 0.4172, h * 0.0431);
- c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4483, h * 0.0416);
- c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 1, w * 0.457, h * 0.053);
- c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 0, w * 0.4669, h * 0.0431);
- c.arcTo(w * 0.0166, h * 0.0166, 0, 0, 0, w * 0.4464, h * 0.0358);
- c.lineTo(w * 0.4437, h * 0.0338);
- c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4603, h * 0.0322);
- c.arcTo(w * 0.0397, h * 0.0156, 0, 0, 1, w * 0.4755, h * 0.0462);
- c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4669, h * 0.0545);
- c.arcTo(w * 0.053, h * 0.0416, 0, 0, 1, w * 0.453, h * 0.0608);
- c.arcTo(w * 0.0099, h * 0.0078, 0, 0, 0, w * 0.4636, h * 0.0675);
- c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.498, h * 0.0623);
- c.arcTo(w * 0.0185, h * 0.0145, 0, 0, 0, w * 0.5079, h * 0.0457);
- c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4848, h * 0.0296);
- c.arcTo(w * 0.0993, h * 0.0779, 0, 0, 0, w * 0.455, h * 0.0234);
- c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.4172, h * 0.026);
- c.arcTo(w * 0.0397, h * 0.0312, 0, 0, 0, w * 0.3927, h * 0.039);
- c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 0, w * 0.3974, h * 0.0571);
- c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4205, h * 0.0701);
- c.arcTo(w * 0.0331, h * 0.026, 0, 0, 0, w * 0.4404, h * 0.0722);
- c.moveTo(w * 0.42, h * 0.049);
- c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.055);
- c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.45, h * 0.049);
- c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.043);
- c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.42, h * 0.049);
- c.close();
- c.moveTo(w * 0.4669, h * 0.0894);
- c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.5099, h * 0.0831);
- c.lineTo(w * 0.6689, h * 0.1543);
- c.lineTo(w * 0.4887, h * 0.1371);
- c.close();
- c.moveTo(w * 0.3887, h * 0.0769);
- c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.4205, h * 0.0888);
- c.arcTo(w * 0.0662, h * 0.026, 0, 0, 0, w * 0.447, h * 0.0894);
- c.lineTo(w * 0.4735, h * 0.1512);
- c.lineTo(w * 0.6689, h * 0.1688);
- c.lineTo(w * 0.5199, h * 0.2364);
- c.lineTo(w * 0.2815, h * 0.1273);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.8182);
- c.lineTo(0, h * 0.1818);
- c.lineTo(w * 0.4007, 0);
- c.lineTo(w * 0.606, 0);
- c.lineTo(w, h * 0.1792);
- c.lineTo(w, h * 0.8182);
- c.lineTo(w * 0.5993, h);
- c.lineTo(w * 0.4007, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dEmailService.prototype.cst.EMAIL_SERVICE, mxShapeAws3dEmailService);
- //**********************************************************************************************************************************************************
- //Worker
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dWorker(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dWorker, mxShape);
- mxShapeAws3dWorker.prototype.cst = {
- WORKER : 'mxgraph.aws3d.worker',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dWorker.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dWorker.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeWidth1 = strokeWidth * w / 74;
- var strokeWidth2 = strokeWidth * h / 50;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
-
- c.setStrokeWidth(strokeWidth);
- c.setShadow(false);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
- c.begin();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0865, h * 0.284);
- c.lineTo(w * 0.4203, 0);
- c.lineTo(w * 0.5865, 0);
- c.lineTo(w * 0.919, h * 0.286);
- c.lineTo(w, h * 0.566);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorker.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.566);
- c.lineTo(w * 0.0892, h * 0.282);
- c.lineTo(w * 0.0878, h * 0.426);
- c.lineTo(w * 0.4216, h * 0.712);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.9176, h * 0.43);
- c.lineTo(w, h * 0.566);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.566);
- c.lineTo(w * 0.0892, h * 0.282);
- c.lineTo(w * 0.0878, h * 0.426);
- c.lineTo(w * 0.4216, h * 0.712);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.9176, h * 0.43);
- c.lineTo(w, h * 0.566);
- c.close();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0892, h * 0.422);
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.4189, h * 0.708);
- c.moveTo(w * 0.9176, h * 0.43);
- c.lineTo(w * 0.9176, h * 0.29);
- c.stroke();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.2892, h * 0.2104);
- c.lineTo(w * 0.3595, h * 0.1503);
- c.lineTo(w * 0.3973, h * 0.1844);
- c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.4486, h * 0.1703);
- c.lineTo(w * 0.4486, h * 0.1242);
- c.lineTo(w * 0.5527, h * 0.1242);
- c.lineTo(w * 0.5527, h * 0.1703);
- c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.6149, h * 0.1924);
- c.lineTo(w * 0.6527, h * 0.1603);
- c.lineTo(w * 0.7257, h * 0.2224);
- c.lineTo(w * 0.6892, h * 0.2545);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.7162, h * 0.3106);
- c.lineTo(w * 0.7676, h * 0.3106);
- c.lineTo(w * 0.7676, h * 0.3988);
- c.lineTo(w * 0.7162, h * 0.3988);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.6973, h * 0.4409);
- c.lineTo(w * 0.7378, h * 0.475);
- c.lineTo(w * 0.6635, h * 0.5371);
- c.lineTo(w * 0.6297, h * 0.505);
- c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.5527, h * 0.5351);
- c.lineTo(w * 0.5527, h * 0.5812);
- c.lineTo(w * 0.45, h * 0.5812);
- c.lineTo(w * 0.45, h * 0.5351);
- c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.3878, h * 0.513);
- c.lineTo(w * 0.3514, h * 0.5431);
- c.lineTo(w * 0.2784, h * 0.481);
- c.lineTo(w * 0.3149, h * 0.4509);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.2865, h * 0.3968);
- c.lineTo(w * 0.2351, h * 0.3968);
- c.lineTo(w * 0.2351, h * 0.3086);
- c.lineTo(w * 0.2865, h * 0.3086);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.3203, h * 0.2425);
- c.close();
- c.moveTo(w * 0.4054, h * 0.2445);
- c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.3554, h * 0.2986);
- c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.3432, h * 0.3567);
- c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.3635, h * 0.4208);
- c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.4122, h * 0.4649);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4122, h * 0.4649);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5676, h * 0.4749);
- c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.6351, h * 0.4228);
- c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.6595, h * 0.3467);
- c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.6149, h * 0.2605);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5419, h * 0.2204);
- c.arcTo(w * 0.3378, h * 0.501, 0, 0, 0, w * 0.4649, h * 0.2184);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4054, h * 0.2445);
- c.close();
- c.moveTo(w * 0.473, h * 0.2806);
- c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.55, h * 0.2866);
- c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 1, w * 0.5892, h * 0.3307);
- c.arcTo(w * 0.0338, h * 0.0501, 0, 0, 1, w * 0.5824, h * 0.3888);
- c.arcTo(w * 0.0946, h * 0.1403, 0, 0, 1, w * 0.5216, h * 0.4269);
- c.arcTo(w * 0.1622, h * 0.2405, 0, 0, 1, w * 0.4432, h * 0.4128);
- c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4108, h * 0.3527);
- c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4351, h * 0.2986);
- c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 1, w * 0.473, h * 0.2806);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0865, h * 0.284);
- c.lineTo(w * 0.4203, 0);
- c.lineTo(w * 0.5865, 0);
- c.lineTo(w * 0.919, h * 0.286);
- c.lineTo(w, h * 0.566);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dWorker.prototype.cst.WORKER, mxShapeAws3dWorker);
- //**********************************************************************************************************************************************************
- //Application
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dApplication2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dApplication2, mxShape);
- mxShapeAws3dApplication2.prototype.cst = {
- APPLICATION2 : 'mxgraph.aws3d.application2',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dApplication2.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dApplication2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 62;
- var strokeWidth2 = strokeWidth * h / 53.5;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.6766);
- c.lineTo(0, h * 0.3271);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3271);
- c.lineTo(w, h * 0.6766);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.3271);
- c.lineTo(w * 0.5, h * 0.6449);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.6766);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h * 0.6449);
- c.lineTo(w, h * 0.3271);
- c.lineTo(w, h * 0.6766);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.3271);
- c.lineTo(w * 0.5, h * 0.6449);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.6766);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.5, h * 0.6449);
- c.lineTo(w, h * 0.3271);
- c.lineTo(w, h * 0.6766);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
-
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.1742, h * 0.6355);
- c.lineTo(w * 0.1742, h * 0.4393);
- c.lineTo(w * 0.6726, h * 0.1121);
- c.lineTo(w * 0.7661, h * 0.1738);
- c.lineTo(w * 0.2661, h * 0.4991);
- c.lineTo(w * 0.2661, h * 0.6916);
- c.close();
- c.moveTo(w * 0.2871, h * 0.7084);
- c.lineTo(w * 0.2871, h * 0.514);
- c.lineTo(w * 0.7823, h * 0.1869);
- c.lineTo(w * 0.8629, h * 0.2374);
- c.lineTo(w * 0.379, h * 0.5626);
- c.lineTo(w * 0.379, h * 0.7607);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6766);
- c.lineTo(0, h * 0.3271);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3271);
- c.lineTo(w, h * 0.6766);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dApplication2.prototype.cst.APPLICATION2, mxShapeAws3dApplication2);
- //**********************************************************************************************************************************************************
- //Elastic Beanstalk
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dElasticBeanstalk(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dElasticBeanstalk, mxShape);
- mxShapeAws3dElasticBeanstalk.prototype.cst = {
- ELASTIC_BEANSTALK : 'mxgraph.aws3d.elasticBeanstalk',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dElasticBeanstalk.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dElasticBeanstalk.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 181.5;
- var strokeWidth2 = strokeWidth * h / 140;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- c.setShadow(false);
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.6239);
- c.lineTo(0, h * 0.3754);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3754);
- c.lineTo(w, h * 0.6239);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticBeanstalk.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.3754);
- c.lineTo(w * 0.5, h * 0.7514);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.6239);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5, h * 0.7514);
- c.lineTo(w, h * 0.3754);
- c.lineTo(w, h * 0.6239);
- c.lineTo(w * 0.5, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.3754);
- c.lineTo(w * 0.5, h * 0.7514);
- c.lineTo(w * 0.5, h);
- c.lineTo(0, h * 0.6239);
- c.close();
- c.moveTo(w * 0.5, h * 0.7514);
- c.lineTo(w, h * 0.3754);
- c.lineTo(w, h * 0.6239);
- c.lineTo(w * 0.5, h);
- c.close();
- c.moveTo(w * 0.2485, h * 0.187);
- c.lineTo(w * 0.7493, h * 0.5623);
- c.lineTo(w * 0.7493, h * 0.8123);
- c.stroke();
-
- c.setLineJoin('miter');
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.7763, h * 0.2063);
- c.lineTo(w * 0.2749, h * 0.5817);
- c.lineTo(w * 0.2749, h * 0.8309);
- c.lineTo(w * 0.2204, h * 0.7894);
- c.lineTo(w * 0.2204, h * 0.5394);
- c.lineTo(w * 0.7185, h * 0.1619);
- c.close();
- c.fill();
- c.restore();
- c.begin();
- c.moveTo(w * 0.1713, h * 0.543);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2028, h * 0.5723);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2281, h * 0.6096);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2402, h * 0.644);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2424, h * 0.6848);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.216, h * 0.6612);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.1895, h * 0.6239);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.1719, h * 0.5824);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.1713, h * 0.543);
- c.close();
- c.moveTo(w * 0.2507, h * 0.7794);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.254, h * 0.7421);
- c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.27, h * 0.7264);
- c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2986, h * 0.73);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3234, h * 0.7457);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3218, h * 0.7815);
- c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.3019, h * 0.7987);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.27, h * 0.7923);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2507, h * 0.7794);
- c.close();
- c.moveTo(w * 0.2799, h * 0.5265);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.3003, h * 0.515);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3317, h * 0.515);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3774, h * 0.5315);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4033, h * 0.5487);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3906, h * 0.5595);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3493, h * 0.5616);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3069, h * 0.5444);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2799, h * 0.5265);
- c.close();
- c.moveTo(w * 0.2887, h * 0.3933);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.314, h * 0.414);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3322, h * 0.4391);
- c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.3344, h * 0.4699);
- c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.3196, h * 0.485);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2887, h * 0.4592);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.27, h * 0.4269);
- c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.2727, h * 0.4054);
- c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2887, h * 0.3933);
- c.close();
- c.moveTo(w * 0.4613, h * 0.262);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4867, h * 0.2827);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5049, h * 0.3078);
- c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.5071, h * 0.3386);
- c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4922, h * 0.3537);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4613, h * 0.3279);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4426, h * 0.2956);
- c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.4453, h * 0.2741);
- c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4613, h * 0.262);
- c.close();
- c.moveTo(w * 0.4525, h * 0.3952);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4729, h * 0.3837);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5043, h * 0.3837);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.55, h * 0.4002);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5759, h * 0.4174);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5633, h * 0.4282);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5219, h * 0.4303);
- c.arcTo(w * 0.1653, h * 0.1074, 0, 0, 1, w * 0.4795, h * 0.4131);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4525, h * 0.3952);
- c.close();
- c.moveTo(w * 0.6217, h * 0.1426);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6471, h * 0.1633);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6652, h * 0.1884);
- c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.6674, h * 0.2192);
- c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6526, h * 0.2342);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6217, h * 0.2085);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.603, h * 0.1762);
- c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.6057, h * 0.1547);
- c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6217, h * 0.1426);
- c.close();
- c.moveTo(w * 0.6129, h * 0.2758);
- c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.6333, h * 0.2643);
- c.arcTo(w * 0.0826, h * 0.1433, 0, 0, 1, w * 0.6647, h * 0.2643);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7104, h * 0.2808);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);
- c.arcTo(w * 0.0826, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);
- c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.6823, h * 0.3109);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6399, h * 0.2937);
- c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6129, h * 0.2758);
- c.close();
- c.fillAndStroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6239);
- c.lineTo(0, h * 0.3754);
- c.lineTo(w * 0.5, 0);
- c.lineTo(w, h * 0.3754);
- c.lineTo(w, h * 0.6239);
- c.lineTo(w * 0.5, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dElasticBeanstalk.prototype.cst.ELASTIC_BEANSTALK, mxShapeAws3dElasticBeanstalk);
- //**********************************************************************************************************************************************************
- //SimpleDB 2
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dSimpleDB2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dSimpleDB2, mxShape);
- mxShapeAws3dSimpleDB2.prototype.cst = {
- SIMPLE_DB_2 : 'mxgraph.aws3d.simpleDb2',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dSimpleDB2.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dSimpleDB2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 181.5;
- var strokeWidth2 = strokeWidth * h / 210;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dSimpleDB2.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.8183);
- c.lineTo(0, h * 0.1848);
- c.lineTo(w * 0.3366, 0);
- c.lineTo(w * 0.6293, h * 0.0021);
- c.lineTo(w, h * 0.1833);
- c.lineTo(w, h * 0.8183);
- c.lineTo(w * 0.6694, h);
- c.lineTo(w * 0.4986, h * 0.9091);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dSimpleDB2.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.1848);
- c.lineTo(w * 0.168, h * 0.1833);
- c.lineTo(0, h * 0.365);
- c.lineTo(w * 0.3333, h * 0.5467);
- c.lineTo(w * 0.3333, h);
- c.lineTo(0, h * 0.8183);
- c.close();
- c.moveTo(w * 0.4986, h * 0.9078);
- c.lineTo(w * 0.4986, h * 0.3655);
- c.lineTo(w * 0.6667, h * 0.5457);
- c.lineTo(w * 0.6667, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.3333, h * 0.5467);
- c.lineTo(w * 0.4986, h * 0.3655);
- c.lineTo(w * 0.4986, h * 0.9076);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.moveTo(w * 0.8292, h * 0.1822);
- c.lineTo(w, h * 0.1848);
- c.lineTo(w, h * 0.8183);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.6667, h * 0.5441);
- c.lineTo(w, h * 0.3666);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.1848);
- c.lineTo(w * 0.168, h * 0.1833);
- c.lineTo(0, h * 0.365);
- c.lineTo(w * 0.3333, h * 0.5467);
- c.lineTo(w * 0.3333, h);
- c.lineTo(0, h * 0.8183);
- c.close();
- c.moveTo(w * 0.4986, h * 0.9078);
- c.lineTo(w * 0.4986, h * 0.3655);
- c.lineTo(w * 0.6667, h * 0.5457);
- c.lineTo(w * 0.6667, h);
- c.close();
- c.moveTo(w * 0.3333, h * 0.5467);
- c.lineTo(w * 0.4986, h * 0.3655);
- c.lineTo(w * 0.4986, h * 0.9076);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.moveTo(w * 0.8292, h * 0.1822);
- c.lineTo(w, h * 0.1848);
- c.lineTo(w, h * 0.8183);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.6667, h * 0.5441);
- c.lineTo(w, h * 0.3666);
- c.close();
- c.moveTo(w * 0.1669, h * 0.1828);
- c.lineTo(w * 0.4986, h * 0.3655);
- c.lineTo(w * 0.8314, h * 0.1833);
- c.lineTo(w * 0.4986, h * 0.0031);
- c.close();
- c.stroke();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.2634, h * 0.1833);
- c.lineTo(w * 0.5003, h * 0.0535);
- c.lineTo(w * 0.7394, h * 0.1833);
- c.lineTo(w * 0.5003, h * 0.3136);
- c.close();
- c.fill();
- var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');
- c.restore();
- c.setShadow(false);
- c.setStrokeWidth(3 * strokeWidth);
- c.setStrokeColor(fillColor);
-
- c.begin();
- c.moveTo(w * 0.3003, h * 0.2108);
- c.lineTo(w * 0.5642, h * 0.068);
- c.moveTo(w * 0.4429, h * 0.0693);
- c.lineTo(w * 0.7059, h * 0.2121);
- c.moveTo(w * 0.6667, h * 0.2458);
- c.lineTo(w * 0.3974, h * 0.0992);
- c.moveTo(w * 0.3499, h * 0.1277);
- c.lineTo(w * 0.6088, h * 0.2698);
- c.moveTo(w * 0.3009, h * 0.1556);
- c.lineTo(w * 0.5496, h * 0.2913);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.8183);
- c.lineTo(0, h * 0.1848);
- c.lineTo(w * 0.3366, 0);
- c.lineTo(w * 0.6293, h * 0.0021);
- c.lineTo(w, h * 0.1833);
- c.lineTo(w, h * 0.8183);
- c.lineTo(w * 0.6694, h);
- c.lineTo(w * 0.4986, h * 0.9091);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dSimpleDB2.prototype.cst.SIMPLE_DB_2, mxShapeAws3dSimpleDB2);
- //**********************************************************************************************************************************************************
- //Workflow Service
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dWorkflowService(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dWorkflowService, mxShape);
- mxShapeAws3dWorkflowService.prototype.cst = {
- WORKFLOW_SERVICE : 'mxgraph.aws3d.workflowService',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dWorkflowService.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dWorkflowService.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 181.5;
- var strokeWidth2 = strokeWidth * h / 210;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dWorkflowService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6456);
- c.lineTo(w * 0.2481, 0);
- c.lineTo(w * 0.7497, 0);
- c.lineTo(w, h * 0.6456);
- c.lineTo(w * 0.4984, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dWorkflowService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorkflowService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.6456);
- c.lineTo(w * 0.2486, 0);
- c.lineTo(w * 0.2486, h * 0.3531);
- c.lineTo(w * 0.4984, h);
- c.close();
- c.moveTo(w * 0.7497, h * 0.3531);
- c.lineTo(w * 0.7497, 0);
- c.lineTo(w, h * 0.6456);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.4984, h);
- c.lineTo(w * 0.7486, h * 0.3531);
- c.lineTo(w, h * 0.6456);
- c.lineTo(w * 0.4967, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.7497, h * 0.3531);
- c.lineTo(w * 0.7497, 0);
- c.lineTo(w, h * 0.6456);
- c.close();
- c.moveTo(0, h * 0.6456);
- c.lineTo(w * 0.2486, 0);
- c.lineTo(w * 0.2486, h * 0.3531);
- c.lineTo(w * 0.4984, h);
- c.lineTo(w * 0.7486, h * 0.3531);
- c.lineTo(w, h * 0.6456);
- c.lineTo(w * 0.4967, h);
- c.close();
- c.moveTo(w * 0.2486, h * 0.3531);
- c.lineTo(w * 0.7508, h * 0.3531);
- c.moveTo(w * 0.2488, h * 0.353);
- c.lineTo(0, h * 0.6486);
- c.stroke();
- c.restore();
- c.setShadow(false);
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
- c.setStrokeWidth(2 * strokeWidth);
- c.begin();
- c.ellipse(w * 0.2925, h * 0.031, w * 0.4116, h * 0.2925);
- c.fill();
-
- var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');
- c.setStrokeColor(fillColor);
-
- c.begin();
- c.moveTo(w * 0.5252, h * 0.0465);
- c.lineTo(w * 0.5873, h * 0.0903);
- c.lineTo(w * 0.5483, h * 0.1173);
- c.lineTo(w * 0.4874, h * 0.0728);
- c.close();
- c.moveTo(w * 0.4896, h * 0.1132);
- c.lineTo(w * 0.5005, h * 0.1705);
- c.lineTo(w * 0.4182, h * 0.1631);
- c.lineTo(w * 0.4122, h * 0.1058);
- c.close();
- c.moveTo(w * 0.3584, h * 0.1631);
- c.lineTo(w * 0.4204, h * 0.2062);
- c.lineTo(w * 0.3825, h * 0.2332);
- c.lineTo(w * 0.32, h * 0.19);
- c.close();
- c.moveTo(w * 0.4594, h * 0.2338);
- c.lineTo(w * 0.5214, h * 0.2783);
- c.lineTo(w * 0.4835, h * 0.3053);
- c.lineTo(w * 0.4215, h * 0.2608);
- c.close();
- c.moveTo(w * 0.5187, h * 0.0943);
- c.lineTo(w * 0.4879, h * 0.1152);
- c.moveTo(w * 0.421, h * 0.1624);
- c.lineTo(w * 0.3895, h * 0.1846);
- c.moveTo(w * 0.5, h * 0.1698);
- c.lineTo(w * 0.5554, h * 0.2089);
- c.lineTo(w * 0.4885, h * 0.2567);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6456);
- c.lineTo(w * 0.2481, 0);
- c.lineTo(w * 0.7497, 0);
- c.lineTo(w, h * 0.6456);
- c.lineTo(w * 0.4984, h);
- c.close();
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dWorkflowService.prototype.cst.WORKFLOW_SERVICE, mxShapeAws3dWorkflowService);
- //**********************************************************************************************************************************************************
- //Decider
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dDecider(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dDecider, mxShape);
- mxShapeAws3dDecider.prototype.cst = {
- DECIDER : 'mxgraph.aws3d.decider',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dDecider.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dDecider.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeWidth1 = strokeWidth * w / 74;
- var strokeWidth2 = strokeWidth * h / 50;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
-
- c.setStrokeWidth(strokeWidth);
- c.setShadow(false);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if (isShadow == 1)
- {
- c.setShadow(true);
- }
- c.begin();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0865, h * 0.284);
- c.lineTo(w * 0.4203, 0);
- c.lineTo(w * 0.5865, 0);
- c.lineTo(w * 0.919, h * 0.286);
- c.lineTo(w, h * 0.566);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDecider.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.566);
- c.lineTo(w * 0.0892, h * 0.282);
- c.lineTo(w * 0.0878, h * 0.426);
- c.lineTo(w * 0.4216, h * 0.712);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.9176, h * 0.43);
- c.lineTo(w, h * 0.566);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.566);
- c.lineTo(w * 0.0892, h * 0.282);
- c.lineTo(w * 0.0878, h * 0.426);
- c.lineTo(w * 0.4216, h * 0.712);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.5865, h * 0.712);
- c.lineTo(w * 0.9176, h * 0.43);
- c.lineTo(w, h * 0.566);
- c.close();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0892, h * 0.422);
- c.moveTo(w * 0.5027, h);
- c.lineTo(w * 0.4189, h * 0.708);
- c.moveTo(w * 0.9176, h * 0.43);
- c.lineTo(w * 0.9176, h * 0.29);
- c.stroke();
- c.setStrokeWidth(1.6 * strokeWidth);
- c.setLineJoin('square');
- c.begin();
- c.moveTo(w * 0.4973, h * 0.1523);
- c.lineTo(w * 0.5608, h * 0.0982);
- c.lineTo(w * 0.6581, h * 0.1844);
- c.lineTo(w * 0.5986, h * 0.2365);
- c.close();
- c.moveTo(w * 0.3784, h * 0.2164);
- c.lineTo(w * 0.5054, h * 0.2305);
- c.lineTo(w * 0.5203, h * 0.3407);
- c.lineTo(w * 0.3892, h * 0.3246);
- c.close();
- c.moveTo(w * 0.2932, h * 0.3246);
- c.lineTo(w * 0.3919, h * 0.4128);
- c.lineTo(w * 0.3334, h * 0.4647);
- c.lineTo(w * 0.2357, h * 0.38);
- c.close();
- c.moveTo(w * 0.4568, h * 0.4649);
- c.lineTo(w * 0.5554, h * 0.5511);
- c.lineTo(w * 0.4932, h * 0.6032);
- c.lineTo(w * 0.3946, h * 0.517);
- c.close();
- c.moveTo(w * 0.5473, h * 0.1924);
- c.lineTo(w * 0.5027, h * 0.2365);
- c.moveTo(w * 0.4, h * 0.3186);
- c.lineTo(w * 0.3446, h * 0.3667);
- c.moveTo(w * 0.5189, h * 0.3387);
- c.lineTo(w * 0.6081, h * 0.4148);
- c.lineTo(w * 0.5068, h * 0.501);
- c.stroke();
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.572);
- c.lineTo(w * 0.0865, h * 0.284);
- c.lineTo(w * 0.4203, 0);
- c.lineTo(w * 0.5865, 0);
- c.lineTo(w * 0.919, h * 0.286);
- c.lineTo(w, h * 0.566);
- c.lineTo(w * 0.5027, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dDecider.prototype.cst.DECIDER, mxShapeAws3dDecider);
- //**********************************************************************************************************************************************************
- //Search Engine
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dSearchEngine(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dSearchEngine, mxShape);
- mxShapeAws3dSearchEngine.prototype.cst = {
- SEARCH_ENGINE : 'mxgraph.aws3d.searchEngine',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dSearchEngine.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dSearchEngine.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 180;
- var strokeWidth2 = strokeWidth * h / 192;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dSearchEngine.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7281);
- c.lineTo(w * 0.1667, h * 0.5444);
- c.lineTo(w * 0.1667, h * 0.1832);
- c.lineTo(w * 0.5011, 0);
- c.lineTo(w * 0.8333, h * 0.1832);
- c.lineTo(w * 0.8333, h * 0.5446);
- c.lineTo(w, h * 0.7281);
- c.lineTo(w * 0.7486, h * 0.7735);
- c.lineTo(w * 0.5819, h * 0.8617);
- c.lineTo(w * 0.5011, h);
- c.lineTo(w * 0.4169, h * 0.8653);
- c.lineTo(w * 0.2475, h * 0.7704);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dSearchEngine.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSearchEngine.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.1672, h * 0.1837);
- c.lineTo(w * 0.4989, h * 0.3638);
- c.lineTo(w * 0.4989, h * 0.7291);
- c.lineTo(w * 0.5825, h * 0.8633);
- c.lineTo(w * 0.4989, h);
- c.lineTo(w * 0.4164, h * 0.8622);
- c.lineTo(w * 0.2458, h * 0.7719);
- c.lineTo(0, h * 0.7276);
- c.lineTo(w * 0.1661, h * 0.5454);
- c.close();
- c.moveTo(w * 0.7486, h * 0.7714);
- c.lineTo(w * 0.8317, h * 0.5459);
- c.lineTo(w, h * 0.727);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.4989, h * 0.3643);
- c.lineTo(w * 0.8317, h * 0.1827);
- c.lineTo(w * 0.8317, h * 0.5465);
- c.lineTo(w * 0.7508, h * 0.7714);
- c.lineTo(w * 0.5836, h * 0.8633);
- c.lineTo(w * 0.4989, h * 0.727);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.1672, h * 0.1837);
- c.lineTo(w * 0.4989, h * 0.3638);
- c.lineTo(w * 0.4989, h * 0.7291);
- c.lineTo(w * 0.5825, h * 0.8633);
- c.lineTo(w * 0.4989, h);
- c.lineTo(w * 0.4164, h * 0.8622);
- c.lineTo(w * 0.2458, h * 0.7719);
- c.lineTo(0, h * 0.7276);
- c.lineTo(w * 0.1661, h * 0.5454);
- c.close();
- c.moveTo(w * 0.7486, h * 0.7714);
- c.lineTo(w * 0.8317, h * 0.5459);
- c.lineTo(w, h * 0.727);
- c.close();
- c.moveTo(w * 0.4989, h * 0.3643);
- c.lineTo(w * 0.8317, h * 0.1827);
- c.lineTo(w * 0.8317, h * 0.5465);
- c.lineTo(w * 0.7508, h * 0.7714);
- c.lineTo(w * 0.5836, h * 0.8633);
- c.lineTo(w * 0.4989, h * 0.727);
- c.close();
- c.moveTo(w * 0.1667, h * 0.5459);
- c.lineTo(w * 0.2486, h * 0.7704);
- c.moveTo(w * 0.4164, h * 0.8633);
- c.lineTo(w * 0.4989, h * 0.727);
- c.lineTo(w * 0.4989, h);
- c.stroke();
- c.restore();
- c.setShadow(false);
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
-
- c.begin();
- c.moveTo(w * 0.3427, h * 0.179);
- c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 1, w * 0.3267, h * 0.1487);
- c.arcTo(w * 0.0664, h * 0.0365, 0, 0, 1, w * 0.3621, h * 0.1227);
- c.arcTo(w * 0.1052, h * 0.0992, 0, 0, 1, w * 0.4247, h * 0.1195);
- c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4884, h * 0.1018);
- c.arcTo(w * 0.1329, h * 0.1253, 0, 0, 1, w * 0.5548, h * 0.1112);
- c.arcTo(w * 0.0377, h * 0.0344, 0, 0, 1, w * 0.572, h * 0.166);
- c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.6047, h * 0.1775);
- c.arcTo(w * 0.021, h * 0.0198, 0, 0, 1, w * 0.5936, h * 0.2046);
- c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.6008, h * 0.2416);
- c.arcTo(w * 0.072, h * 0.0678, 0, 0, 1, w * 0.5437, h * 0.2677);
- c.arcTo(w * 0.1052, h * 0.0939, 0, 0, 1, w * 0.4828, h * 0.2563);
- c.close();
- c.moveTo(w * 0.448, h * 0.2156);
- c.arcTo(w * 0.0111, h * 0.0104, 0, 0, 0, w * 0.459, h * 0.2255);
- c.arcTo(w * 0.0138, h * 0.013, 0, 0, 0, w * 0.4729, h * 0.2182);
- c.lineTo(w * 0.4773, h * 0.1874);
- c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.5116, h * 0.1759);
- c.arcTo(w * 0.0277, h * 0.0626, 0, 0, 0, w * 0.5233, h * 0.1503);
- c.arcTo(w * 0.0554, h * 0.0261, 0, 0, 0, w * 0.5022, h * 0.1336);
- c.arcTo(w * 0.0886, h * 0.0835, 0, 0, 0, w * 0.4607, h * 0.1305);
- c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4313, h * 0.142);
- c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.4175, h * 0.1597);
- c.arcTo(w * 0.0249, h * 0.0235, 0, 0, 0, w * 0.4313, h * 0.1822);
- c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 0, w * 0.4535, h * 0.1884);
- c.close();
- c.moveTo(w * 0.4718, h * 0.1764);
- c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 1, w * 0.4496, h * 0.1754);
- c.arcTo(w * 0.0221, h * 0.0157, 0, 0, 1, w * 0.4369, h * 0.1634);
- c.arcTo(w * 0.0221, h * 0.0183, 0, 0, 1, w * 0.4496, h * 0.1467);
- c.arcTo(w * 0.0609, h * 0.0574, 0, 0, 1, w * 0.4759, h * 0.1414);
- c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.5033, h * 0.1514);
- c.arcTo(w * 0.0443, h * 0.0209, 0, 0, 1, w * 0.495, h * 0.1701);
- c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.4718, h * 0.1764);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7281);
- c.lineTo(w * 0.1667, h * 0.5444);
- c.lineTo(w * 0.1667, h * 0.1832);
- c.lineTo(w * 0.5011, 0);
- c.lineTo(w * 0.8333, h * 0.1832);
- c.lineTo(w * 0.8333, h * 0.5446);
- c.lineTo(w, h * 0.7281);
- c.lineTo(w * 0.7486, h * 0.7735);
- c.lineTo(w * 0.5819, h * 0.8617);
- c.lineTo(w * 0.5011, h);
- c.lineTo(w * 0.4169, h * 0.8653);
- c.lineTo(w * 0.2475, h * 0.7704);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dSearchEngine.prototype.cst.SEARCH_ENGINE, mxShapeAws3dSearchEngine);
- //**********************************************************************************************************************************************************
- //Security Token Service
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dSecurityTokenService(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dSecurityTokenService, mxShape);
- mxShapeAws3dSecurityTokenService.prototype.cst = {
- SECURITY_TOKEN_SERVICE : 'mxgraph.aws3d.securityTokenService',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dSecurityTokenService.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dSecurityTokenService.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 180;
- var strokeWidth2 = strokeWidth * h / 192;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dSecurityTokenService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.7281);
- c.lineTo(w * 0.1667, h * 0.5444);
- c.lineTo(w * 0.1667, h * 0.1832);
- c.lineTo(w * 0.5011, 0);
- c.lineTo(w * 0.8333, h * 0.1832);
- c.lineTo(w * 0.8333, h * 0.5446);
- c.lineTo(w, h * 0.7281);
- c.lineTo(w * 0.7486, h * 0.7735);
- c.lineTo(w * 0.5819, h * 0.8617);
- c.lineTo(w * 0.5011, h);
- c.lineTo(w * 0.4169, h * 0.8653);
- c.lineTo(w * 0.2475, h * 0.7704);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dSecurityTokenService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSecurityTokenService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.1672, h * 0.1837);
- c.lineTo(w * 0.4989, h * 0.3638);
- c.lineTo(w * 0.4989, h * 0.7291);
- c.lineTo(w * 0.5825, h * 0.8633);
- c.lineTo(w * 0.4989, h);
- c.lineTo(w * 0.4164, h * 0.8622);
- c.lineTo(w * 0.2458, h * 0.7719);
- c.lineTo(0, h * 0.7276);
- c.lineTo(w * 0.1661, h * 0.5454);
- c.close();
- c.moveTo(w * 0.7486, h * 0.7714);
- c.lineTo(w * 0.8317, h * 0.5459);
- c.lineTo(w, h * 0.727);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.4989, h * 0.3643);
- c.lineTo(w * 0.8317, h * 0.1827);
- c.lineTo(w * 0.8317, h * 0.5465);
- c.lineTo(w * 0.7508, h * 0.7714);
- c.lineTo(w * 0.5836, h * 0.8633);
- c.lineTo(w * 0.4989, h * 0.727);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.1672, h * 0.1837);
- c.lineTo(w * 0.4989, h * 0.3638);
- c.lineTo(w * 0.4989, h * 0.7291);
- c.lineTo(w * 0.5825, h * 0.8633);
- c.lineTo(w * 0.4989, h);
- c.lineTo(w * 0.4164, h * 0.8622);
- c.lineTo(w * 0.2458, h * 0.7719);
- c.lineTo(0, h * 0.7276);
- c.lineTo(w * 0.1661, h * 0.5454);
- c.close();
- c.moveTo(w * 0.7486, h * 0.7714);
- c.lineTo(w * 0.8317, h * 0.5459);
- c.lineTo(w, h * 0.727);
- c.close();
- c.moveTo(w * 0.4989, h * 0.3643);
- c.lineTo(w * 0.8317, h * 0.1827);
- c.lineTo(w * 0.8317, h * 0.5465);
- c.lineTo(w * 0.7508, h * 0.7714);
- c.lineTo(w * 0.5836, h * 0.8633);
- c.lineTo(w * 0.4989, h * 0.727);
- c.close();
- c.moveTo(w * 0.1667, h * 0.5459);
- c.lineTo(w * 0.2486, h * 0.7704);
- c.moveTo(w * 0.4164, h * 0.8633);
- c.lineTo(w * 0.4989, h * 0.727);
- c.lineTo(w * 0.4989, h);
- c.stroke();
- c.restore();
- c.setShadow(false);
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
-
- c.begin();
- c.moveTo(w * 0.4773, h * 0.1915);
- c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4358, h * 0.1968);
- c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.3937, h * 0.1905);
- c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 1, w * 0.3682, h * 0.1707);
- c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.3699, h * 0.1414);
- c.arcTo(w * 0.0775, h * 0.0731, 0, 0, 1, w * 0.4009, h * 0.118);
- c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.4524, h * 0.1059);
- c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.5028, h * 0.1112);
- c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 1, w * 0.531, h * 0.1315);
- c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.531, h * 0.1597);
- c.lineTo(w * 0.5615, h * 0.1754);
- c.lineTo(w * 0.5526, h * 0.1905);
- c.lineTo(w * 0.5759, h * 0.1999);
- c.lineTo(w * 0.5753, h * 0.2109);
- c.lineTo(w * 0.5792, h * 0.2161);
- c.lineTo(w * 0.6135, h * 0.2182);
- c.lineTo(w * 0.6113, h * 0.2416);
- c.lineTo(w * 0.5819, h * 0.2474);
- c.close();
- c.moveTo(w * 0.4756, h * 0.1816);
- c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.5, h * 0.1691);
- c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.5144, h * 0.1435);
- c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 0, w * 0.4967, h * 0.1247);
- c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.4729, h * 0.1174);
- c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 0, w * 0.4452, h * 0.1169);
- c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4197, h * 0.1232);
- c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.397, h * 0.1357);
- c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 0, w * 0.3859, h * 0.1555);
- c.arcTo(w * 0.0305, h * 0.0287, 0, 0, 0, w * 0.4053, h * 0.178);
- c.arcTo(w * 0.072, h * 0.0678, 0, 0, 0, w * 0.4385, h * 0.1863);
- c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4596, h * 0.1848);
- c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4756, h * 0.1816);
- c.fill();
- c.setStrokeWidth(1.5 * strokeWidth);
- c.setLineJoin('round');
- c.setLineCap('round');
- c.begin();
- c.moveTo(w * 0.4939, h * 0.1326);
- c.lineTo(w * 0.4474, h * 0.1508);
- c.lineTo(w * 0.4812, h * 0.1576);
- c.moveTo(w * 0.4889, h * 0.1733);
- c.lineTo(w * 0.4939, h * 0.1775);
- c.moveTo(w * 0.5061, h * 0.1576);
- c.lineTo(w * 0.5199, h * 0.1597);
- c.moveTo(w * 0.5094, h * 0.1394);
- c.lineTo(w * 0.5244, h * 0.1378);
- c.moveTo(w * 0.4945, h * 0.1247);
- c.lineTo(w * 0.4994, h * 0.1185);
- c.moveTo(w * 0.4679, h * 0.1175);
- c.lineTo(w * 0.4707, h * 0.1117);
- c.moveTo(w * 0.4396, h * 0.1195);
- c.lineTo(w * 0.4374, h * 0.1138);
- c.moveTo(w * 0.412, h * 0.1284);
- c.lineTo(w * 0.4059, h * 0.1232);
- c.moveTo(w * 0.3948, h * 0.1441);
- c.lineTo(w * 0.3804, h * 0.1425);
- c.moveTo(w * 0.3931, h * 0.1608);
- c.lineTo(w * 0.3804, h * 0.1649);
- c.moveTo(w * 0.4059, h * 0.1754);
- c.lineTo(w * 0.3998, h * 0.1801);
- c.moveTo(w * 0.4308, h * 0.1822);
- c.lineTo(w * 0.4286, h * 0.1884);
- c.moveTo(w * 0.4618, h * 0.1827);
- c.lineTo(w * 0.4635, h * 0.1868);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.7281);
- c.lineTo(w * 0.1667, h * 0.5444);
- c.lineTo(w * 0.1667, h * 0.1832);
- c.lineTo(w * 0.5011, 0);
- c.lineTo(w * 0.8333, h * 0.1832);
- c.lineTo(w * 0.8333, h * 0.5446);
- c.lineTo(w, h * 0.7281);
- c.lineTo(w * 0.7486, h * 0.7735);
- c.lineTo(w * 0.5819, h * 0.8617);
- c.lineTo(w * 0.5011, h);
- c.lineTo(w * 0.4169, h * 0.8653);
- c.lineTo(w * 0.2475, h * 0.7704);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dSecurityTokenService.prototype.cst.SECURITY_TOKEN_SERVICE, mxShapeAws3dSecurityTokenService);
- //**********************************************************************************************************************************************************
- //Glacier
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dGlacier(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dGlacier, mxShape);
- mxShapeAws3dGlacier.prototype.cst = {
- GLACIER : 'mxgraph.aws3d.glacier',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dGlacier.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dGlacier.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 180;
- var strokeWidth2 = strokeWidth * h / 192;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dGlacier.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.8177);
- c.lineTo(0, h * 0.5448);
- c.lineTo(w * 0.168, h * 0.1792);
- c.lineTo(w * 0.5008, 0);
- c.lineTo(w * 0.8309, h * 0.1812);
- c.lineTo(w, h * 0.5469);
- c.lineTo(w, h * 0.8188);
- c.lineTo(w * 0.6661, h);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dGlacier.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dGlacier.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.1658, h * 0.1802);
- c.lineTo(w * 0.5008, h * 0.3651);
- c.lineTo(w * 0.6661, h * 0.9089);
- c.lineTo(w * 0.6661, h);
- c.lineTo(w * 0.3339, h);
- c.lineTo(0, h * 0.8177);
- c.lineTo(0, h * 0.5427);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.5008, h * 0.362);
- c.lineTo(w * 0.8314, h * 0.1823);
- c.lineTo(w, h * 0.5469);
- c.lineTo(w, h * 0.8177);
- c.lineTo(w * 0.6661, h);
- c.lineTo(w * 0.6661, h * 0.9089);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.1658, h * 0.1802);
- c.lineTo(w * 0.5008, h * 0.3651);
- c.lineTo(w * 0.6661, h * 0.9089);
- c.lineTo(w * 0.6661, h);
- c.lineTo(w * 0.3339, h);
- c.lineTo(0, h * 0.8177);
- c.lineTo(0, h * 0.5427);
- c.close();
- c.moveTo(w * 0.5008, h * 0.362);
- c.lineTo(w * 0.8314, h * 0.1823);
- c.lineTo(w, h * 0.5469);
- c.lineTo(w, h * 0.8177);
- c.lineTo(w * 0.6661, h);
- c.lineTo(w * 0.6661, h * 0.9089);
- c.close();
- c.moveTo(w * 0.1675, h * 0.1797);
- c.lineTo(0, h * 0.7281);
- c.lineTo(w * 0.3284, h * 0.9089);
- c.lineTo(w * 0.6661, h * 0.9089);
- c.lineTo(w, h * 0.7266);
- c.lineTo(w * 0.8309, h * 0.1823);
- c.moveTo(w * 0.5003, h * 0.362);
- c.lineTo(w * 0.3311, h * 0.9089);
- c.lineTo(w * 0.3311, h);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.8177);
- c.lineTo(0, h * 0.5448);
- c.lineTo(w * 0.168, h * 0.1792);
- c.lineTo(w * 0.5008, 0);
- c.lineTo(w * 0.8309, h * 0.1812);
- c.lineTo(w, h * 0.5469);
- c.lineTo(w, h * 0.8188);
- c.lineTo(w * 0.6661, h);
- c.lineTo(w * 0.3333, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dGlacier.prototype.cst.GLACIER, mxShapeAws3dGlacier);
- //**********************************************************************************************************************************************************
- //Customer Gateway
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dCustomerGateway(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dCustomerGateway, mxShape);
- mxShapeAws3dCustomerGateway.prototype.cst = {
- CUSTOMER_GATEWAY : 'mxgraph.aws3d.customerGateway',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dCustomerGateway.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dCustomerGateway.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 116.7;
- var strokeWidth2 = strokeWidth * h / 102.8;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dCustomerGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.8946, 0);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6812, h * 0.7247);
- c.close();
- c.fillAndStroke();
- c.restore();
- c.save();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.6838, h * 0.2072);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.fill();
-
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.6838, h * 0.2072);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.fill();
- c.restore();
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.6838, h * 0.2072);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.stroke();
- c.restore();
- c.setLineJoin('round');
- c.setShadow(false);
- c.begin();
- c.moveTo(w * 0.6838, h * 0.2072);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6838, h * 0.7247);
- c.close();
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
-
- c.begin();
- c.moveTo(w * 0.4199, h * 0.5447);
- c.lineTo(w * 0.4199, h * 0.035);
- c.lineTo(w * 0.8946, 0);
- c.lineTo(w, h * 0.0691);
- c.lineTo(w, h * 0.4134);
- c.lineTo(w * 0.6812, h * 0.7247);
- c.close();
- c.stroke();
- c.restore();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.3171, h * 0.1031);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dCustomerGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setShadow(false);
- c.setLineJoin('round');
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.1054, h);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.stroke();
- c.begin();
- c.moveTo(w * 0.1054, h);
- c.lineTo(w * 0.1054, h * 0.6537);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.close();
- c.stroke();
-
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.929);
- c.lineTo(0, h * 0.5866);
- c.lineTo(w * 0.3171, h * 0.1031);
- c.lineTo(w * 0.5784, h * 0.2753);
- c.lineTo(w * 0.5784, h * 0.7928);
- c.lineTo(w * 0.1054, h);
- c.close();
- c.stroke();
-
- c.setFillColor(strokeColor);
- c.begin();
- c.moveTo(w * 0.7575, h * 0.3969);
- c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.7686, h * 0.3259);
- c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8055, h * 0.2481);
- c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8406, h * 0.2091);
- c.lineTo(w * 0.8269, h * 0.2665);
- c.lineTo(w * 0.8372, h * 0.2607);
- c.lineTo(w * 0.8372, h * 0.3444);
- c.lineTo(w * 0.7832, h * 0.3804);
- c.lineTo(w * 0.7832, h * 0.3658);
- c.close();
- c.moveTo(w * 0.8466, h * 0.2082);
- c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.8766, h * 0.1955);
- c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.9186, h * 0.2286);
- c.arcTo(w * 0.12, h * 0.1362, 0, 0, 1, w * 0.9297, h * 0.2821);
- c.lineTo(w * 0.9006, h * 0.2831);
- c.lineTo(w * 0.9006, h * 0.3016);
- c.lineTo(w * 0.85, h * 0.3366);
- c.lineTo(w * 0.85, h * 0.251);
- c.lineTo(w * 0.8586, h * 0.2471);
- c.close();
- c.moveTo(w * 0.9297, h * 0.2967);
- c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.9195, h * 0.3667);
- c.arcTo(w * 0.2571, h * 0.2918, 0, 0, 1, w * 0.8869, h * 0.4436);
- c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.8466, h * 0.4903);
- c.lineTo(w * 0.8595, h * 0.4358);
- c.lineTo(w * 0.8492, h * 0.4416);
- c.lineTo(w * 0.8492, h * 0.357);
- c.lineTo(w * 0.9006, h * 0.32004);
- c.lineTo(w * 0.9006, h * 0.3346);
- c.close();
- c.moveTo(w * 0.838, h * 0.4942);
- c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8072, h * 0.5049);
- c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.7712, h * 0.4815);
- c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.7566, h * 0.4163);
- c.lineTo(w * 0.7832, h * 0.4173);
- c.lineTo(w * 0.7832, h * 0.4008);
- c.lineTo(w * 0.8372, h * 0.3638);
- c.lineTo(w * 0.8372, h * 0.4494);
- c.lineTo(w * 0.8278, h * 0.4562);
- c.close();
- c.fill();
- };
- mxCellRenderer.registerShape(mxShapeAws3dCustomerGateway.prototype.cst.CUSTOMER_GATEWAY, mxShapeAws3dCustomerGateway);
- //**********************************************************************************************************************************************************
- //Redshift
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dRedshift(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dRedshift, mxShape);
- mxShapeAws3dRedshift.prototype.cst = {
- REDSHIFT : 'mxgraph.aws3d.redshift',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dRedshift.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dRedshift.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 149.5;
- var strokeWidth2 = strokeWidth * h / 187.5;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dRedshift.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.6517);
- c.lineTo(0, h * 0.0912);
- c.lineTo(w * 0.0368, h * 0.0155);
- c.lineTo(w * 0.2047, 0);
- c.lineTo(w * 0.3378, h * 0.0619);
- c.lineTo(w * 0.3378, h * 0.0912);
- c.lineTo(w * 0.3819, h * 0.0693);
- c.lineTo(w * 0.6154, h * 0.0693);
- c.lineTo(w * 0.8502, h * 0.1776);
- c.lineTo(w * 0.8502, h * 0.3083);
- c.lineTo(w * 0.8682, h * 0.3061);
- c.lineTo(w, h * 0.3664);
- c.lineTo(w, h * 0.9099);
- c.lineTo(w * 0.9672, h * 0.9861);
- c.lineTo(w * 0.7926, h);
- c.lineTo(w * 0.6629, h * 0.9392);
- c.lineTo(w * 0.6629, h * 0.9099);
- c.lineTo(w * 0.6167, h * 0.9317);
- c.lineTo(w * 0.3813, h * 0.9317);
- c.lineTo(w * 0.1478, h * 0.8219);
- c.lineTo(w * 0.1478, h * 0.7093);
- c.lineTo(w * 0.1365, h * 0.7163);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dRedshift.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRedshift.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.6541);
- c.lineTo(0, h * 0.0933);
- c.lineTo(w * 0.1371, h * 0.1573);
- c.lineTo(w * 0.1371, h * 0.7157);
- c.close();
- c.moveTo(w * 0.1485, h * 0.8219);
- c.lineTo(w * 0.1485, h * 0.2864);
- c.lineTo(w * 0.3846, h * 0.3941);
- c.lineTo(w * 0.3846, h * 0.9317);
- c.close();
- c.moveTo(w * 0.6642, h * 0.9392);
- c.lineTo(w * 0.6642, h * 0.4011);
- c.lineTo(w * 0.796, h * 0.4597);
- c.lineTo(w * 0.796, h);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.1371, h * 0.7157);
- c.lineTo(w * 0.1371, h * 0.1568);
- c.lineTo(w * 0.2027, h * 0.1525);
- c.lineTo(w * 0.1498, h * 0.1771);
- c.lineTo(w * 0.1498, h * 0.7061);
- c.close();
- c.moveTo(w * 0.3846, h * 0.3941);
- c.lineTo(w * 0.614, h * 0.3941);
- c.lineTo(w * 0.6809, h * 0.3632);
- c.lineTo(w * 0.6642, h * 0.4);
- c.lineTo(w * 0.6642, h * 0.9067);
- c.lineTo(w * 0.6191, h * 0.9317);
- c.lineTo(w * 0.3833, h * 0.9317);
- c.close();
- c.moveTo(w * 0.796, h * 0.4608);
- c.lineTo(w * 0.9639, h * 0.4469);
- c.lineTo(w, h * 0.3691);
- c.lineTo(w, h * 0.9077);
- c.lineTo(w * 0.9686, h * 0.9856);
- c.lineTo(w * 0.796, h);
- c.close();
- c.moveTo(w * 0.3378, h * 0.0608);
- c.lineTo(w * 0.3378, h * 0.0907);
- c.lineTo(w * 0.3197, h * 0.1008);
- c.close();
- c.moveTo(w * 0.8502, h * 0.2843);
- c.lineTo(w * 0.8502, h * 0.3083);
- c.lineTo(w * 0.794, h * 0.3136);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.6541);
- c.lineTo(0, h * 0.0933);
- c.lineTo(w * 0.1371, h * 0.1573);
- c.lineTo(w * 0.1371, h * 0.7157);
- c.close();
- c.moveTo(w * 0.1485, h * 0.8219);
- c.lineTo(w * 0.1485, h * 0.2864);
- c.lineTo(w * 0.3846, h * 0.3941);
- c.lineTo(w * 0.3846, h * 0.9317);
- c.close();
- c.moveTo(w * 0.6642, h * 0.9392);
- c.lineTo(w * 0.6642, h * 0.4011);
- c.lineTo(w * 0.796, h * 0.4597);
- c.lineTo(w * 0.796, h);
- c.close();
- c.moveTo(w * 0.1371, h * 0.7157);
- c.lineTo(w * 0.1371, h * 0.1568);
- c.lineTo(w * 0.2027, h * 0.1525);
- c.lineTo(w * 0.1498, h * 0.1771);
- c.lineTo(w * 0.1498, h * 0.7061);
- c.close();
- c.moveTo(w * 0.3846, h * 0.3941);
- c.lineTo(w * 0.614, h * 0.3941);
- c.lineTo(w * 0.6809, h * 0.3632);
- c.lineTo(w * 0.6642, h * 0.4);
- c.lineTo(w * 0.6642, h * 0.9067);
- c.lineTo(w * 0.6191, h * 0.9317);
- c.lineTo(w * 0.3833, h * 0.9317);
- c.close();
- c.moveTo(w * 0.796, h * 0.4608);
- c.lineTo(w * 0.9639, h * 0.4469);
- c.lineTo(w, h * 0.3691);
- c.lineTo(w, h * 0.9077);
- c.lineTo(w * 0.9686, h * 0.9856);
- c.lineTo(w * 0.796, h);
- c.close();
- c.moveTo(w * 0.3378, h * 0.0608);
- c.lineTo(w * 0.3378, h * 0.0907);
- c.lineTo(w * 0.3197, h * 0.1008);
- c.close();
- c.moveTo(w * 0.8502, h * 0.2843);
- c.lineTo(w * 0.8502, h * 0.3083);
- c.lineTo(w * 0.794, h * 0.3136);
- c.close();
- c.moveTo(w * 0.6167, h * 0.3941);
- c.lineTo(w * 0.6167, h * 0.9317);
- c.moveTo(w * 0.9652, h * 0.4448);
- c.lineTo(w * 0.9652, h * 0.9851);
- c.stroke();
- c.restore();
- c.setShadow(false);
- var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- c.setFillColor(strokeColor);
-
- c.begin();
- c.moveTo(w * 0.4903, h * 0.1259);
- c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.5023, h * 0.1189);
- c.arcTo(w * 0.2007, h * 0.16, 0, 0, 1, w * 0.5639, h * 0.1333);
- c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.7157, h * 0.2005);
- c.arcTo(w * 0.2006, h * 0.16, 0, 0, 1, w * 0.7565, h * 0.2315);
- c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.7445, h * 0.2421);
- c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.6742, h * 0.2251);
- c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.5204, h * 0.1541);
- c.arcTo(w * 0.1338, h * 0.1067, 0, 0, 1, w * 0.4903, h * 0.1259);
- c.close();
- c.moveTo(w * 0.4789, h * 0.1275);
- c.arcTo(w * 0.0334, h * 0.0267, 0, 0, 0, w * 0.487, h * 0.1461);
- c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 0, w * 0.5237, h * 0.1728);
- c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 0, w * 0.6609, h * 0.2352);
- c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 0, w * 0.7244, h * 0.2501);
- c.arcTo(w * 0.0201, h * 0.016, 0, 0, 0, w * 0.7411, h * 0.2475);
- c.lineTo(w * 0.5385, h * 0.3408);
- c.arcTo(w * 0.0669, h * 0.05333, 0, 0, 1, w * 0.512, h * 0.3397);
- c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.4548, h * 0.3248);
- c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 1, w * 0.3084, h * 0.2565);
- c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 1, w * 0.2776, h * 0.2304);
- c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.2776, h * 0.2197);
- c.close();
- c.fill();
- var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');
- c.setFillColor(fillColor);
- c.setLineJoin('round');
- c.setLineCap('round');
- c.begin();
- c.moveTo(w * 0.3398, h * 0.2421);
- c.lineTo(w * 0.4769, h * 0.1797);
- c.lineTo(w * 0.6341, h * 0.2512);
- c.lineTo(w * 0.4936, h * 0.3147);
- c.fill();
- c.begin();
- c.moveTo(w * 0.4334, h * 0.1941);
- c.lineTo(w * 0.6207, h * 0.2811);
- c.moveTo(w * 0.5338, h * 0.1995);
- c.lineTo(w * 0.3866, h * 0.2688);
- c.moveTo(w * 0.5873, h * 0.2235);
- c.lineTo(w * 0.4334, h * 0.2955);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.6517);
- c.lineTo(0, h * 0.0912);
- c.lineTo(w * 0.0368, h * 0.0155);
- c.lineTo(w * 0.2047, 0);
- c.lineTo(w * 0.3378, h * 0.0619);
- c.lineTo(w * 0.3378, h * 0.0912);
- c.lineTo(w * 0.3819, h * 0.0693);
- c.lineTo(w * 0.6154, h * 0.0693);
- c.lineTo(w * 0.8502, h * 0.1776);
- c.lineTo(w * 0.8502, h * 0.3083);
- c.lineTo(w * 0.8682, h * 0.3061);
- c.lineTo(w, h * 0.3664);
- c.lineTo(w, h * 0.9099);
- c.lineTo(w * 0.9672, h * 0.9861);
- c.lineTo(w * 0.7926, h);
- c.lineTo(w * 0.6629, h * 0.9392);
- c.lineTo(w * 0.6629, h * 0.9099);
- c.lineTo(w * 0.6167, h * 0.9317);
- c.lineTo(w * 0.3813, h * 0.9317);
- c.lineTo(w * 0.1478, h * 0.8219);
- c.lineTo(w * 0.1478, h * 0.7093);
- c.lineTo(w * 0.1365, h * 0.7163);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dRedshift.prototype.cst.REDSHIFT, mxShapeAws3dRedshift);
- //**********************************************************************************************************************************************************
- //Lambda
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dLambda(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dLambda, mxShape);
- mxShapeAws3dLambda.prototype.cst = {
- LAMBDA : 'mxgraph.aws3d.lambda',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dLambda.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true},
- {name: 'strokeColor3', dispName: 'Stroke Color 3', type: 'color', defVal:"#ffffff", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dLambda.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
-
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 92;
- var strokeWidth2 = strokeWidth * h / 109.5;
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
- c.setShadow(false);
- this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
- };
- mxShapeAws3dLambda.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.setStrokeWidth(strokeWidth);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.1671);
- c.lineTo(w * 0.3424, 0);
- c.lineTo(w * 0.663, 0);
- c.lineTo(w, h * 0.1671);
- c.lineTo(w, h * 0.8365);
- c.lineTo(w * 0.663, h);
- c.lineTo(w * 0.3424, h);
- c.lineTo(0, h * 0.8365);
- c.close();
- c.fillAndStroke();
- };
- mxShapeAws3dLambda.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
- {
- c.restore();
- c.setShadow(false);
- c.setFillColor('#000000');
- var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#5E5E5E');
- var strokeColor3 = mxUtils.getValue(this.style, 'strokeColor3', '#ffffff');
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dLambda.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(0, h * 0.3242);
- c.lineTo(w * 0.3424, h * 0.4895);
- c.lineTo(w * 0.663, h * 0.4895);
- c.lineTo(w * 0.663, h);
- c.lineTo(w * 0.3424, h);
- c.lineTo(0, h * 0.8365);
- c.close();
- c.moveTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.close();
- c.moveTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.lineTo(w * 0., h * 0.);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.663, h * 0.4895);
- c.lineTo(w, h * 0.3242);
- c.lineTo(w, h * 0.8365);
- c.lineTo(w * 0.663, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setShadow(false);
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(0, h * 0.3242);
- c.lineTo(w * 0.3424, h * 0.4895);
- c.lineTo(w * 0.663, h * 0.4895);
- c.lineTo(w, h * 0.3242);
- c.moveTo(w * 0.3424, h * 0.4895);
- c.lineTo(w * 0.3424, h);
- c.moveTo(w * 0.663, h * 0.4895);
- c.lineTo(w * 0.663, h);
- c.stroke();
- c.setFillColor(strokeColor);
-
- c.begin();
- c.moveTo(w * 0.3804, h * 0.1169);
- c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.6087, h * 0.1123);
- c.arcTo(w * 0.33804, h * 0.3196, 0, 0, 1, w * 0.725, h * 0.1553);
- c.arcTo(w * 0.1304, h * 0.1096, 0, 0, 1, w * 0.7924, h * 0.2402);
- c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.725, h * 0.3333);
- c.arcTo(w * 0.4416, h * 0.274, 0, 0, 1, w * 0.6087, h * 0.3772);
- c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.3804, h * 0.3708);
- c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.2772, h * 0.3324);
- c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2163, h * 0.2539);
- c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2663, h * 0.1644);
- c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.3804, h * 0.1169);
- c.fill();
- c.setFillColor(strokeColor3);
- c.begin();
- c.moveTo(w * 0.5565, h * 0.2174);
- c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.5837, h * 0.1945);
- c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 0, w * 0.5793, h * 0.1671);
- c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.525, h * 0.1598);
- c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 1, w * 0.5543, h * 0.1443);
- c.arcTo(w * 0.0761, h * 0.0639, 0, 0, 1, w * 0.6163, h * 0.1662);
- c.arcTo(w * 0.0598, h * 0.0502, 0, 0, 1, w * 0.6087, h * 0.2091);
- c.lineTo(w * 0.5, h * 0.3032);
- c.arcTo(w * 0.0978, h * 0.0822, 0, 0, 0, w * 0.4728, h * 0.3379);
- c.arcTo(w * 0.0272, h * 0.0228, 0, 0, 0, w * 0.4924, h * 0.3571);
- c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 1, w * 0.4489, h * 0.3571);
- c.arcTo(w * 0.038, h * 0.032, 0, 0, 1, w * 0.437, h * 0.3242);
- c.arcTo(w * 0.1087, h * 0.0913, 0, 0, 1, w * 0.4674, h * 0.2886);
- c.lineTo(w * 0.5141, h * 0.2557);
- c.lineTo(w * 0.3185, h * 0.2895);
- c.lineTo(w * 0.2641, h * 0.2648);
- c.close();
- c.fill();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.begin();
- c.moveTo(0, h * 0.1671);
- c.lineTo(w * 0.3424, 0);
- c.lineTo(w * 0.663, 0);
- c.lineTo(w, h * 0.1671);
- c.lineTo(w, h * 0.8365);
- c.lineTo(w * 0.663, h);
- c.lineTo(w * 0.3424, h);
- c.lineTo(0, h * 0.8365);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dLambda.prototype.cst.LAMBDA, mxShapeAws3dLambda);
- //**********************************************************************************************************************************************************
- //EBS 2
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- function mxShapeAws3dEbs2(bounds, fill, stroke, strokewidth)
- {
- mxShape.call(this);
- this.bounds = bounds;
- this.fill = fill;
- this.stroke = stroke;
- this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- };
- /**
- * Extends mxShape.
- */
- mxUtils.extend(mxShapeAws3dEbs2, mxShape);
- mxShapeAws3dEbs2.prototype.cst = {
- EBS2 : 'mxgraph.aws3d.ebs2',
- SHADING_COLORS : 'shadingCols'
- };
- mxShapeAws3dEbs2.prototype.customProperties = [
- {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
- ];
- /**
- * Function: paintVertexShape
- *
- * Paints the vertex shape.
- */
- mxShapeAws3dEbs2.prototype.paintVertexShape = function(c, x, y, w, h)
- {
- c.translate(x, y);
- var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- var strokeWidth1 = strokeWidth * w / 92;
- var strokeWidth2 = strokeWidth * h / 60;
- var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
-
- strokeWidth = Math.min(strokeWidth1, strokeWidth2);
-
- c.setStrokeWidth(strokeWidth);
- c.setShadow(false);
- c.save();
- c.save();
- c.setStrokeWidth(2 * strokeWidth);
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- if(isShadow == 1)
- {
- c.setShadow(true);
- }
-
- c.begin();
- c.moveTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4188);
- c.lineTo(w * 0.071, h * 0.2898);
- c.lineTo(w * 0.4033, 0);
- c.lineTo(w * 0.9301, h * 0.464);
- c.lineTo(w, h * 0.5863);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.close();
- c.fillAndStroke();
-
- c.restore();
- c.setFillColor('#000000');
-
- var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
-
- c.begin();
- c.moveTo(w * 0.071, h * 0.2948);
- c.lineTo(w * 0.6011, h * 0.7621);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.lineTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4137);
- c.close();
- c.fill();
- (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- c.begin();
- c.moveTo(w * 0.6011, h * 0.7655);
- c.lineTo(w * 0.9344, h * 0.4724);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.close();
- c.fill();
-
- c.restore();
- c.setLineJoin('round');
-
- c.begin();
- c.moveTo(w * 0.071, h * 0.2948);
- c.lineTo(w * 0.6011, h * 0.7621);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.lineTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4137);
- c.close();
- c.moveTo(w * 0.6011, h * 0.7655);
- c.lineTo(w * 0.9344, h * 0.4724);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.close();
- c.moveTo(w * 0.0033, h * 0.5276);
- c.lineTo(w * 0.071, h * 0.2898);
- c.moveTo(w * 0.5325, h * 0.9976);
- c.lineTo(w * 0.603, h * 0.7593);
- c.stroke();
- c.setStrokeWidth(2 * strokeWidth);
- c.setLineCap('round');
-
- c.begin();
- c.moveTo(w * 0.3388, h * 0.3802);
- c.lineTo(w * 0.5027, h * 0.2345);
- c.lineTo(w * 0.6667, h * 0.3802);
- c.lineTo(w * 0.5027, h * 0.526);
- c.close();
- c.moveTo(w * 0.4426, h * 0.3802);
- c.lineTo(w * 0.5027, h * 0.3266);
- c.lineTo(w * 0.5628, h * 0.3802);
- c.lineTo(w * 0.5027, h * 0.4338);
- c.close();
- c.moveTo(w * 0.3867, h * 0.3284);
- c.lineTo(w * 0.3541, h * 0.2998);
- c.moveTo(w * 0.4436, h * 0.2748);
- c.lineTo(w * 0.4077, h * 0.2412);
- c.moveTo(w * 0.5704, h * 0.2803);
- c.lineTo(w * 0.5992, h * 0.2513);
- c.moveTo(w * 0.6231, h * 0.3284);
- c.lineTo(w * 0.6503, h * 0.3032);
- c.moveTo(w * 0.622, h * 0.4338);
- c.lineTo(w * 0.6557, h * 0.4606);
- c.moveTo(w * 0.5667, h * 0.4845);
- c.lineTo(w * 0.5992, h * 0.5156);
- c.moveTo(w * 0.4414, h * 0.4874);
- c.lineTo(w * 0.412, h * 0.5159);
- c.moveTo(w * 0.3889, h * 0.4405);
- c.lineTo(w * 0.3607, h * 0.4657);
- c.stroke();
-
- c.setStrokeColor(strokeColor2);
- c.setLineJoin('round');
- c.begin();
- c.moveTo(0, h * 0.5276);
- c.lineTo(0, h * 0.4188);
- c.lineTo(w * 0.071, h * 0.2898);
- c.lineTo(w * 0.4033, 0);
- c.lineTo(w * 0.9301, h * 0.464);
- c.lineTo(w, h * 0.5863);
- c.lineTo(w, h * 0.7035);
- c.lineTo(w * 0.6667, h);
- c.lineTo(w * 0.5355, h);
- c.close();
- c.stroke();
- };
- mxCellRenderer.registerShape(mxShapeAws3dEbs2.prototype.cst.EBS2, mxShapeAws3dEbs2);
- //**********************************************************************************************************************************************************
- //Elasticache
- //**********************************************************************************************************************************************************
- ///**
- //* Extends mxShape.
- //*/
- //function mxShapeAws3dElasticache(bounds, fill, stroke, strokewidth)
- //{
- // mxShape.call(this);
- // this.bounds = bounds;
- // this.fill = fill;
- // this.stroke = stroke;
- // this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- //};
- //
- ///**
- //* Extends mxShape.
- //*/
- //mxUtils.extend(mxShapeAws3dElasticache, mxShape);
- //
- //mxShapeAws3dElasticache.prototype.cst = {
- // ELASTICACHE : 'mxgraph.aws3d.elasticache',
- // SHADING_COLORS : 'shadingCols'
- //};
- //
- ///**
- //* Function: paintVertexShape
- //*
- //* Paints the vertex shape.
- //*/
- //mxShapeAws3dElasticache.prototype.paintVertexShape = function(c, x, y, w, h)
- //{
- // c.translate(x, y);
- //
- // var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- // var strokeWidth1 = strokeWidth * w / 123;
- // var strokeWidth2 = strokeWidth * h / 143;
- // var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- //
- // strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- //
- // c.setStrokeWidth(strokeWidth);
- // c.setShadow(false);
- // c.save();
- // c.save();
- // c.setStrokeWidth(2 * strokeWidth);
- // c.setStrokeColor('#292929');
- // c.setLineJoin('round');
- //
- // if(isShadow == 1)
- // {
- // c.setShadow(true);
- // }
- //
- // c.begin();
- // c.moveTo(0, h * 0.7483);
- // c.lineTo(0, h * 0.6294);
- // c.lineTo(w * 0.061, h * 0.5944);
- // c.lineTo(0, h * 0.563);
- // c.lineTo(0, h * 0.4406);
- // c.lineTo(w * 0.061, h * 0.4091);
- // c.lineTo(0, h * 0.3776);
- // c.lineTo(0, h * 0.2517);
- // c.lineTo(w * 0.5041, 0);
- // c.lineTo(w, h * 0.2483);
- // c.lineTo(w, h * 0.3741);
- // c.lineTo(w * 0.939, h * 0.4091);
- // c.lineTo(w, h * 0.4406);
- // c.lineTo(w, h * 0.563);
- // c.lineTo(w * 0.939, h * 0.5944);
- // c.lineTo(w, h * 0.6294);
- // c.lineTo(w, h * 0.751);
- // c.lineTo(w * 0.5041, h);
- // c.close();
- // c.fillAndStroke();
- //
- // c.restore();
- // c.setFillColor('#000000');
- //
- // var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticache.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- // var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- // (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- //
- // c.begin();
- // c.moveTo(0, h * 0.2517);
- // c.lineTo(w * 0.5041, h * 0.4965);
- // c.lineTo(w * 0.5041, h * 0.6294);
- // c.lineTo(0, h * 0.3776);
- // c.close();
- // c.moveTo(0, h * 0.4406);
- // c.lineTo(w * 0.5041, h * 0.6853);
- // c.lineTo(w * 0.5041, h * 0.8112);
- // c.lineTo(0, h * 0.5629);
- // c.close();
- // c.moveTo(0, h * 0.6294);
- // c.lineTo(w * 0.5041, h * 0.8741);
- // c.lineTo(w * 0.5041, h);
- // c.lineTo(0, h * 0.7483);
- // c.close();
- // c.moveTo(w * 0.6179, h * 0.2517);
- // c.lineTo(w * 0.752, h * 0.1853);
- // c.lineTo(w * 0.752, h * 0.3217);
- // c.close();
- // c.fill();
- //
- // (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- // c.begin();
- // c.moveTo(w * 0.5041, h * 0.4965);
- // c.lineTo(w, h * 0.2517);
- // c.lineTo(w, h * 0.3741);
- // c.lineTo(w * 0.5041, h * 0.6294);
- // c.close();
- // c.moveTo(w * 0.5041, h * 0.6853);
- // c.lineTo(w, h * 0.4406);
- // c.lineTo(w, h * 0.5629);
- // c.lineTo(w * 0.5041, h * 0.8112);
- // c.close();
- // c.moveTo(w * 0.5041, h * 0.8741);
- // c.lineTo(w, h * 0.6294);
- // c.lineTo(w, h * 0.7483);
- // c.lineTo(w * 0.5041, h);
- // c.close();
- // c.moveTo(w * 0.752, h * 0.1853);
- // c.lineTo(w * 0.8821, h * 0.2517);
- // c.lineTo(w * 0.752, h * 0.3217);
- // c.close();
- // c.fill();
- //
- // c.restore();
- // c.setLineJoin('round');
- //
- // c.begin();
- // c.moveTo(0, h * 0.2517);
- // c.lineTo(w * 0.5041, h * 0.4965);
- // c.lineTo(w * 0.5041, h * 0.6294);
- // c.lineTo(0, h * 0.3776);
- // c.close();
- // c.moveTo(0, h * 0.4406);
- // c.lineTo(w * 0.5041, h * 0.6853);
- // c.lineTo(w * 0.5041, h * 0.8112);
- // c.lineTo(0, h * 0.5629);
- // c.close();
- // c.moveTo(0, h * 0.6294);
- // c.lineTo(w * 0.5041, h * 0.8741);
- // c.lineTo(w * 0.5041, h);
- // c.lineTo(0, h * 0.7483);
- // c.close();
- // c.moveTo(w * 0.5041, h * 0.4965);
- // c.lineTo(w, h * 0.2517);
- // c.lineTo(w, h * 0.3741);
- // c.lineTo(w * 0.5041, h * 0.6294);
- // c.close();
- // c.moveTo(w * 0.5041, h * 0.6853);
- // c.lineTo(w, h * 0.4406);
- // c.lineTo(w, h * 0.5629);
- // c.lineTo(w * 0.5041, h * 0.8112);
- // c.close();
- // c.moveTo(w * 0.5041, h * 0.8741);
- // c.lineTo(w, h * 0.6294);
- // c.lineTo(w, h * 0.7483);
- // c.lineTo(w * 0.5041, h);
- // c.close();
- // c.stroke();
- //
- // c.setStrokeWidth(2 * strokeWidth);
- // c.setLineCap('round');
- // var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
- // c.setFillColor(strokeColor);
- //
- // c.begin();
- // c.moveTo(w * 0.222, h * 0.2028);
- // c.arcTo(w * 0.1463, h * 0.1259, 0, 0, 1, w * 0.3154, h * 0.2014);
- // c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3642, h * 0.2245);
- // c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.3618, h * 0.2552);
- // c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3252, h * 0.2798);
- // c.arcTo(w * 0.1626, h * 0.1399, 0, 0, 1, w * 0.2276, h * 0.2797);
- // c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.187, h * 0.2622);
- // c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.187, h * 0.2238);
- // c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.222, h * 0.2028);
- // c.close();
- // c.moveTo(w * 0.3618, h * 0.1434);
- // c.lineTo(w * 0.4309, h * 0.1189);
- // c.lineTo(w * 0.4309, h * 0.0755);
- // c.lineTo(w * 0.4992, h * 0.1014);
- // c.lineTo(w * 0.5813, h * 0.0874);
- // c.lineTo(w * 0.5488, h * 0.1294);
- // c.lineTo(w * 0.6057, h * 0.1608);
- // c.lineTo(w * 0.5163, h * 0.1608);
- // c.lineTo(w * 0.4634, h * 0.2028);
- // c.lineTo(w * 0.4431, h * 0.1538);
- // c.close();
- // c.moveTo(w * 0.3821, h * 0.3601);
- // c.lineTo(w * 0.5894, h * 0.3322);
- // c.lineTo(w * 0.5325, h * 0.4394);
- // c.close();
- // c.fill();
- //
- // c.setStrokeColor('#292929');
- // c.setLineJoin('round');
- //
- // c.begin();
- // c.moveTo(0, h * 0.7483);
- // c.lineTo(0, h * 0.6294);
- // c.lineTo(w * 0.061, h * 0.5944);
- // c.lineTo(0, h * 0.563);
- // c.lineTo(0, h * 0.4406);
- // c.lineTo(w * 0.061, h * 0.4091);
- // c.lineTo(0, h * 0.3776);
- // c.lineTo(0, h * 0.2517);
- // c.lineTo(w * 0.5041, 0);
- // c.lineTo(w, h * 0.2483);
- // c.lineTo(w, h * 0.3741);
- // c.lineTo(w * 0.939, h * 0.4091);
- // c.lineTo(w, h * 0.4406);
- // c.lineTo(w, h * 0.563);
- // c.lineTo(w * 0.939, h * 0.5944);
- // c.lineTo(w, h * 0.6294);
- // c.lineTo(w, h * 0.751);
- // c.lineTo(w * 0.5041, h);
- // c.close();
- // c.stroke();
- //};
- //
- //mxCellRenderer.registerShape(mxShapeAws3dElasticache.prototype.cst.ELASTICACHE, mxShapeAws3dElasticache);
- //**********************************************************************************************************************************************************
- //Kinesis Stream
- //**********************************************************************************************************************************************************
- /**
- * Extends mxShape.
- */
- //function mxShapeAws3dKinesisStream(bounds, fill, stroke, strokewidth)
- //{
- // mxShape.call(this);
- // this.bounds = bounds;
- // this.fill = fill;
- // this.stroke = stroke;
- // this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- //};
- //
- ///**
- //* Extends mxShape.
- //*/
- //mxUtils.extend(mxShapeAws3dKinesisStream, mxShape);
- //
- //mxShapeAws3dKinesisStream.prototype.cst = {
- // KINESIS_STREAM : 'mxgraph.aws3d.kinesisStream',
- // SHADING_COLORS : 'shadingCols'
- //};
- //
- ///**
- //* Function: paintVertexShape
- //*
- //* Paints the vertex shape.
- //*/
- //mxShapeAws3dKinesisStream.prototype.paintVertexShape = function(c, x, y, w, h)
- //{
- // c.translate(x, y);
- //
- // var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- // var strokeWidth1 = strokeWidth * w / 220;
- // var strokeWidth2 = strokeWidth * h / 160;
- // var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- //
- // strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- //
- // c.setStrokeWidth(strokeWidth);
- // c.setShadow(false);
- // c.save();
- // c.save();
- // c.setStrokeWidth(2 * strokeWidth);
- // c.setStrokeColor('#292929');
- // c.setLineJoin('round');
- //
- // if(isShadow == 1)
- // {
- // c.setShadow(true);
- // }
- //
- // c.begin();
- // c.moveTo(0, h * 0.5503);
- // c.lineTo(w * 0.0455, h * 0.4623);
- // c.lineTo(w * 0.6054, h * 0.0157);
- // c.lineTo(w * 0.6623, h * 0.0629);
- // c.lineTo(w * 0.7396, 0);
- // c.lineTo(w * 0.8239, h * 0.0692);
- // c.lineTo(w * 0.8671, h * 0.2233);
- // c.lineTo(w * 0.9513, h * 0.2943);
- // c.lineTo(w, h * 0.4528);
- // c.lineTo(w * 0.9595, h * 0.5365);
- // c.lineTo(w * 0.396, h * 0.9843);
- // c.lineTo(w * 0.3391, h * 0.9403);
- // c.lineTo(w * 0.2617, h);
- // c.lineTo(w * 0.173, h * 0.9308);
- // c.lineTo(w * 0.1297, h * 0.7736);
- // c.lineTo(w * 0.0432, h * 0.7044);
- // c.close();
- // c.fillAndStroke();
- //
- // c.restore();
- // c.setFillColor('#000000');
- //
- // var shading = mxUtils.getValue(this.state.style, mxShapeAws3dKinesisStream.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- // var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- // (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- //
- // c.begin();
- // c.moveTo(w * 0.0432, h * 0.4654);
- // c.lineTo(w * 0.132, h * 0.5314);
- // c.lineTo(w * 0.1775, h * 0.4465);
- // c.lineTo(w * 0.264, h * 0.5189);
- // c.lineTo(w * 0.3072, h * 0.673);
- // c.lineTo(w * 0.396, h * 0.7453);
- // c.lineTo(w * 0.4392, h * 0.8994);
- // c.lineTo(w * 0.396, h * 0.9843);
- // c.lineTo(w * 0.305, h * 0.9151);
- // c.lineTo(w * 0.2617, h);
- // c.lineTo(w * 0.173, h * 0.9308);
- // c.lineTo(w * 0.1297, h * 0.7736);
- // c.lineTo(w * 0.0432, h * 0.7044);
- // c.lineTo(0, h * 0.5503);
- // c.close();
- // c.fill();
- //
- // (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- // c.begin();
- // c.moveTo(w * 0.264, h * 0.5204);
- // c.lineTo(w * 0.8239, h * 0.0676);
- // c.lineTo(w * 0.8694, h * 0.228);
- // c.lineTo(w * 0.3072, h * 0.673);
- // c.close();
- // c.moveTo(w * 0.3937, h * 0.7453);
- // c.lineTo(w * 0.9536, h * 0.2956);
- // c.lineTo(w, h * 0.4528);
- // c.lineTo(w * 0.9558, h * 0.5377);
- // c.lineTo(w * 0.396, h * 0.9843);
- // c.lineTo(w * 0.4392, h * 0.8994);
- // c.close();
- // c.moveTo(w * 0.2617, h);
- // c.lineTo(w * 0.305, h * 0.9151);
- // c.lineTo(w * 0.3368, h * 0.9403);
- // c.close();
- // c.fill();
- //
- // c.setAlpha('0.5');
- // c.begin();
- // c.moveTo(w * 0.0546, h * 0.5094);
- // c.lineTo(w * 0.1161, h * 0.5597);
- // c.lineTo(w * 0.1479, h * 0.6761);
- // c.lineTo(w * 0.1183, h * 0.7264);
- // c.lineTo(w * 0.0569, h * 0.6792);
- // c.lineTo(w * 0.025, h * 0.566);
- // c.close();
- // c.moveTo(w * 0.1889, h * 0.4937);
- // c.lineTo(w * 0.2503, h * 0.544);
- // c.lineTo(w * 0.2822, h * 0.6572);
- // c.lineTo(w * 0.2526, h * 0.717);
- // c.lineTo(w * 0.1934, h * 0.6667);
- // c.lineTo(w * 0.1593, h * 0.5566);
- // c.close();
- // c.moveTo(w * 0.3195, h * 0.7201);
- // c.lineTo(w * 0.3801, h * 0.7704);
- // c.lineTo(w * 0.4137, h * 0.8805);
- // c.lineTo(w * 0.3819, h * 0.9403);
- // c.lineTo(w * 0.3209, h * 0.8912);
- // c.lineTo(w * 0.2904, h * 0.783);
- // c.close();
- // c.moveTo(w * 0.1866, h * 0.7358);
- // c.lineTo(w * 0.2458, h * 0.783);
- // c.lineTo(w * 0.2776, h * 0.8962);
- // c.lineTo(w * 0.2481, h * 0.956);
- // c.lineTo(w * 0.1866, h * 0.9057);
- // c.lineTo(w * 0.157, h * 0.7893);
- // c.close();
- // c.fill();
- //
- // c.restore();
- // c.setLineJoin('round');
- //
- // c.begin();
- // c.moveTo(w * 0.0432, h * 0.4654);
- // c.lineTo(w * 0.132, h * 0.5314);
- // c.lineTo(w * 0.1775, h * 0.4465);
- // c.lineTo(w * 0.264, h * 0.5189);
- // c.lineTo(w * 0.3072, h * 0.673);
- // c.lineTo(w * 0.396, h * 0.7453);
- // c.lineTo(w * 0.4392, h * 0.8994);
- // c.lineTo(w * 0.396, h * 0.9843);
- // c.lineTo(w * 0.305, h * 0.9151);
- // c.lineTo(w * 0.2617, h);
- // c.lineTo(w * 0.173, h * 0.9308);
- // c.lineTo(w * 0.1297, h * 0.7736);
- // c.lineTo(w * 0.0432, h * 0.7044);
- // c.lineTo(0, h * 0.5503);
- // c.close();
- // c.moveTo(w * 0.264, h * 0.5204);
- // c.lineTo(w * 0.8239, h * 0.0676);
- // c.lineTo(w * 0.8694, h * 0.228);
- // c.lineTo(w * 0.3072, h * 0.673);
- // c.close();
- // c.moveTo(w * 0.3937, h * 0.7453);
- // c.lineTo(w * 0.9536, h * 0.2956);
- // c.lineTo(w, h * 0.4528);
- // c.lineTo(w * 0.9558, h * 0.5377);
- // c.lineTo(w * 0.396, h * 0.9843);
- // c.lineTo(w * 0.4392, h * 0.8994);
- // c.close();
- // c.moveTo(w * 0.2617, h);
- // c.lineTo(w * 0.305, h * 0.9151);
- // c.lineTo(w * 0.3368, h * 0.9403);
- // c.close();
- // c.moveTo(w * 0.0546, h * 0.5094);
- // c.lineTo(w * 0.1161, h * 0.5597);
- // c.lineTo(w * 0.1479, h * 0.6761);
- // c.lineTo(w * 0.1183, h * 0.7264);
- // c.lineTo(w * 0.0569, h * 0.6792);
- // c.lineTo(w * 0.025, h * 0.566);
- // c.close();
- // c.moveTo(w * 0.1889, h * 0.4937);
- // c.lineTo(w * 0.2503, h * 0.544);
- // c.lineTo(w * 0.2822, h * 0.6572);
- // c.lineTo(w * 0.2526, h * 0.717);
- // c.lineTo(w * 0.1934, h * 0.6667);
- // c.lineTo(w * 0.1593, h * 0.5566);
- // c.close();
- // c.moveTo(w * 0.3195, h * 0.7201);
- // c.lineTo(w * 0.3801, h * 0.7704);
- // c.lineTo(w * 0.4137, h * 0.8805);
- // c.lineTo(w * 0.3819, h * 0.9403);
- // c.lineTo(w * 0.3209, h * 0.8912);
- // c.lineTo(w * 0.2904, h * 0.783);
- // c.close();
- // c.moveTo(w * 0.1866, h * 0.7358);
- // c.lineTo(w * 0.2458, h * 0.783);
- // c.lineTo(w * 0.2776, h * 0.8962);
- // c.lineTo(w * 0.2481, h * 0.956);
- // c.lineTo(w * 0.1866, h * 0.9057);
- // c.lineTo(w * 0.157, h * 0.7893);
- // c.close();
- // c.moveTo(w * 0.1775, h * 0.4465);
- // c.lineTo(w * 0.7374, 0);
- // c.moveTo(w * 0.4392, h * 0.8994);
- // c.lineTo(w, h * 0.4528);
- // c.moveTo(w * 0.1331, h * 0.533);
- // c.lineTo(w * 0.1809, h * 0.6934);
- // c.lineTo(w * 0.2617, h * 0.7626);
- // c.lineTo(w * 0.3061, h * 0.9151);
- // c.moveTo(w * 0.1295, h * 0.7764);
- // c.lineTo(w * 0.1807, h * 0.6928);
- // c.moveTo(w * 0.264, h * 0.7642);
- // c.lineTo(w * 0.3095, h * 0.673);
- // c.moveTo(w * 0.3641, h * 0.2327);
- // c.lineTo(w * 0.3241, h * 0.2673);
- // c.lineTo(w * 0.3619, h * 0.2987);
- // c.moveTo(w * 0.3468, h * 0.2736);
- // c.lineTo(w * 0.3596, h * 0.261);
- // c.moveTo(w * 0.3573, h * 0.283);
- // c.lineTo(w * 0.3823, h * 0.261);
- // c.moveTo(w * 0.4916, h * 0.217);
- // c.lineTo(w * 0.4483, h * 0.2547);
- // c.lineTo(w * 0.5052, h * 0.3019);
- // c.moveTo(w * 0.4679, h * 0.2591);
- // c.lineTo(w * 0.4802, h * 0.2478);
- // c.moveTo(w * 0.4811, h * 0.2673);
- // c.lineTo(w * 0.5098, h * 0.2421);
- // c.moveTo(w * 0.4939, h * 0.2767);
- // c.lineTo(w * 0.5121, h * 0.261);
- // c.moveTo(w * 0.5043, h * 0.2868);
- // c.lineTo(w * 0.5371, h * 0.2579);
- // c.moveTo(w * 0.6259, h * 0.4371);
- // c.lineTo(w * 0.5826, h * 0.4717);
- // c.lineTo(w * 0.6418, h * 0.522);
- // c.moveTo(w * 0.6039, h * 0.4755);
- // c.lineTo(w * 0.6187, h * 0.463);
- // c.moveTo(w * 0.6158, h * 0.4862);
- // c.lineTo(w * 0.6418, h * 0.4623);
- // c.moveTo(w * 0.6281, h * 0.4969);
- // c.lineTo(w * 0.6486, h * 0.478);
- // c.moveTo(w * 0.6395, h * 0.5063);
- // c.lineTo(w * 0.6736, h * 0.478);
- //
- // c.stroke();
- //
- // c.setStrokeWidth(2 * strokeWidth);
- // c.setLineCap('round');
- //
- // c.setStrokeColor('#292929');
- // c.setLineJoin('round');
- //
- // c.begin();
- // c.moveTo(0, h * 0.5503);
- // c.lineTo(w * 0.0455, h * 0.4623);
- // c.lineTo(w * 0.6054, h * 0.0157);
- // c.lineTo(w * 0.6623, h * 0.0629);
- // c.lineTo(w * 0.7396, 0);
- // c.lineTo(w * 0.8239, h * 0.0692);
- // c.lineTo(w * 0.8671, h * 0.2233);
- // c.lineTo(w * 0.9513, h * 0.2943);
- // c.lineTo(w, h * 0.4528);
- // c.lineTo(w * 0.9595, h * 0.5365);
- // c.lineTo(w * 0.396, h * 0.9843);
- // c.lineTo(w * 0.3391, h * 0.9403);
- // c.lineTo(w * 0.2617, h);
- // c.lineTo(w * 0.173, h * 0.9308);
- // c.lineTo(w * 0.1297, h * 0.7736);
- // c.lineTo(w * 0.0432, h * 0.7044);
- // c.close();
- // c.stroke();
- //};
- //
- //mxCellRenderer.registerShape(mxShapeAws3dKinesisStream.prototype.cst.KINESIS_STREAM, mxShapeAws3dKinesisStream);
- //**********************************************************************************************************************************************************
- //SQS 2
- //**********************************************************************************************************************************************************
- ///**
- //* Extends mxShape.
- //*/
- //function mxShapeAws3dSqs2(bounds, fill, stroke, strokewidth)
- //{
- // mxShape.call(this);
- // this.bounds = bounds;
- // this.fill = fill;
- // this.stroke = stroke;
- // this.strokewidth = (strokewidth != null) ? strokewidth : 1;
- //};
- //
- ///**
- //* Extends mxShape.
- //*/
- //mxUtils.extend(mxShapeAws3dSqs2, mxShape);
- //
- //mxShapeAws3dSqs2.prototype.cst = {
- // SQS2 : 'mxgraph.aws3d.sqs2',
- // SHADING_COLORS : 'shadingCols'
- //};
- //
- ///**
- //* Function: paintVertexShape
- //*
- //* Paints the vertex shape.
- //*/
- //mxShapeAws3dSqs2.prototype.paintVertexShape = function(c, x, y, w, h)
- //{
- // c.translate(x, y);
- //
- // var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
- // var strokeWidth1 = strokeWidth * w / 160;
- // var strokeWidth2 = strokeWidth * h / 93;
- // var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
- //
- // strokeWidth = Math.min(strokeWidth1, strokeWidth2);
- //
- // c.setStrokeWidth(strokeWidth);
- // c.setShadow(false);
- // c.save();
- // c.save();
- // c.setStrokeWidth(2 * strokeWidth);
- // c.setStrokeColor('#292929');
- // c.setLineJoin('round');
- //
- // if(isShadow == 1)
- // {
- // c.setShadow(true);
- // }
- //
- // c.begin();
- // c.moveTo(0, h * 0.4737);
- // c.lineTo(w * 0.4652, 0);
- // c.lineTo(w * 0.6231, h * 0.0602);
- // c.lineTo(w * 0.6231, h * 0.1676);
- // c.lineTo(w * 0.1567, h * 0.6316);
- // c.close();
- // c.moveTo(w * 0.3756, h * 0.8443);
- // c.lineTo(w * 0.3756, h * 0.7454);
- // c.lineTo(w * 0.8439, h * 0.275);
- // c.lineTo(w, h * 0.5328);
- // c.lineTo(w * 0.5311, h);
- // c.close();
- // c.fillAndStroke();
- //
- // c.restore();
- // c.setFillColor('#000000');
- //
- // var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
- // var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
- // (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
- //
- // c.begin();
- // c.moveTo(0, h * 0.4737);
- // c.lineTo(w * 0.1567, h * 0.5274);
- // c.lineTo(w * 0.1567, h * 0.6394);
- // c.close();
- // c.moveTo(w * 0.3756, h * 0.7454);
- // c.lineTo(w * 0.5311, h);
- // c.lineTo(w * 0.3756, h * 0.8443);
- // c.close();
- // c.fill();
- //
- // (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
- // c.begin();
- // c.moveTo(w * 0.1567, h * 0.5274);
- // c.lineTo(w * 0.6231, h * 0.0602);
- // c.lineTo(w * 0.6231, h * 0.1676);
- // c.lineTo(w * 0.1567, h * 0.6294);
- // c.close();
- // c.fill();
- //
- // c.restore();
- // c.setLineJoin('round');
- //
- // c.begin();
- // c.moveTo(0, h * 0.4737);
- // c.lineTo(w * 0.1567, h * 0.5274);
- // c.lineTo(w * 0.1567, h * 0.6294);
- // c.close();
- // c.moveTo(w * 0.3756, h * 0.7454);
- // c.lineTo(w * 0.5311, h);
- // c.lineTo(w * 0.3756, h * 0.8443);
- // c.close();
- // c.moveTo(w * 0.1567, h * 0.5274);
- // c.lineTo(w * 0.6231, h * 0.0602);
- // c.lineTo(w * 0.6231, h * 0.1676);
- // c.lineTo(w * 0.1567, h * 0.6294);
- // c.close();
- // c.stroke();
- //
- // c.setStrokeWidth(2 * strokeWidth);
- // c.setLineCap('round');
- //
- // c.setStrokeColor('#292929');
- // c.setLineJoin('round');
- //
- // c.begin();
- // c.moveTo(0, h * 0.4737);
- // c.lineTo(w * 0.4652, 0);
- // c.lineTo(w * 0.6231, h * 0.0602);
- // c.lineTo(w * 0.6231, h * 0.1676);
- // c.lineTo(w * 0.1567, h * 0.6316);
- // c.close();
- // c.moveTo(w * 0.3756, h * 0.8443);
- // c.lineTo(w * 0.3756, h * 0.7454);
- // c.lineTo(w * 0.8439, h * 0.275);
- // c.lineTo(w, h * 0.5328);
- // c.lineTo(w * 0.5311, h);
- // c.close();
- // c.stroke();
- //
- // c.setFillColor('#F4B934');
- //
- // c.begin();
- // c.moveTo(w * 0.1256, h * 0.812);
- // c.lineTo(w * 0.24, h * 0.7605);
- // c.lineTo(w * 0.1853, h * 0.8829);
- // c.close();
- // c.moveTo(w * 0.2417, h * 0.6957);
- // c.lineTo(w * 0.3562, h * 0.6441);
- // c.lineTo(w * 0.3014, h * 0.7666);
- // c.close();
- // c.moveTo(w * 0.3588, h * 0.5793);
- // c.lineTo(w * 0.4733, h * 0.5277);
- // c.lineTo(w * 0.4185, h * 0.6502);
- // c.close();
- // c.moveTo(w * 0.477, h * 0.4611);
- // c.lineTo(w * 0.5914, h * 0.4096);
- // c.lineTo(w * 0.5367, h * 0.532);
- // c.close();
- // c.moveTo(w * 0.591, h * 0.343);
- // c.lineTo(w * 0.7054, h * 0.2914);
- // c.lineTo(w * 0.6507, h * 0.4139);
- // c.close();
- // c.moveTo(w * 0.7091, h * 0.2302);
- // c.lineTo(w * 0.8236, h * 0.1786);
- // c.lineTo(w * 0.7688, h * 0.3011);
- // c.close();
- // c.fillAndStroke();
- //};
- //
- //mxCellRenderer.registerShape(mxShapeAws3dSqs2.prototype.cst.SQS2, mxShapeAws3dSqs2);
|