mxAWS3D.js 281 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658
  1. /**
  2. * Copyright (c) 2006-2015, JGraph Holdings Ltd
  3. */
  4. //**********************************************************************************************************************************************************
  5. //Arrow NE
  6. //**********************************************************************************************************************************************************
  7. /**
  8. * Extends mxShape.
  9. */
  10. function mxShapeAws3dArrowNE(bounds, fill, stroke, strokewidth)
  11. {
  12. mxShape.call(this);
  13. this.bounds = bounds;
  14. this.fill = fill;
  15. this.stroke = stroke;
  16. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  17. };
  18. /**
  19. * Extends mxShape.
  20. */
  21. mxUtils.extend(mxShapeAws3dArrowNE, mxShape);
  22. mxShapeAws3dArrowNE.prototype.cst = {
  23. ARROW_NE : 'mxgraph.aws3d.arrowNE'
  24. };
  25. /**
  26. * Function: paintVertexShape
  27. *
  28. * Paints the vertex shape.
  29. */
  30. mxShapeAws3dArrowNE.prototype.paintVertexShape = function(c, x, y, w, h)
  31. {
  32. c.translate(x, y);
  33. c.begin();
  34. c.moveTo(w - 17, 8);
  35. c.lineTo(w - 21, 5.5);
  36. c.lineTo(w, 0);
  37. c.lineTo(w - 9.7, 12.2);
  38. c.lineTo(w - 13.9, 9.8);
  39. c.lineTo(9.7, h - 3.5);
  40. c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);
  41. c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);
  42. c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);
  43. c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);
  44. c.close();
  45. c.fillAndStroke();
  46. };
  47. mxCellRenderer.registerShape(mxShapeAws3dArrowNE.prototype.cst.ARROW_NE, mxShapeAws3dArrowNE);
  48. //**********************************************************************************************************************************************************
  49. //Arrow SE
  50. //**********************************************************************************************************************************************************
  51. /**
  52. * Extends mxShape.
  53. */
  54. function mxShapeAws3dArrowSE(bounds, fill, stroke, strokewidth)
  55. {
  56. mxShape.call(this);
  57. this.bounds = bounds;
  58. this.fill = fill;
  59. this.stroke = stroke;
  60. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  61. };
  62. /**
  63. * Extends mxShape.
  64. */
  65. mxUtils.extend(mxShapeAws3dArrowSE, mxShape);
  66. mxShapeAws3dArrowSE.prototype.cst = {
  67. ARROW_SE : 'mxgraph.aws3d.arrowSE'
  68. };
  69. /**
  70. * Function: paintVertexShape
  71. *
  72. * Paints the vertex shape.
  73. */
  74. mxShapeAws3dArrowSE.prototype.paintVertexShape = function(c, x, y, w, h)
  75. {
  76. c.translate(x, y);
  77. c.begin();
  78. c.moveTo(w - 17, h - 8);
  79. c.lineTo(w - 21, h - 5.5);
  80. c.lineTo(w, h);
  81. c.lineTo(w - 9.7, h - 12.2);
  82. c.lineTo(w - 13.9, h - 9.8);
  83. c.lineTo(9.7, 3.5);
  84. c.arcTo(6, 3, 0, 0, 0, 9, 0.4);
  85. c.arcTo(5.2, 3, 0, 0, 0, 1, 1.4);
  86. c.arcTo(6, 2.8, 0, 0, 0, 3, 5.4);
  87. c.arcTo(5, 3, 0, 0, 0, 6.7, 5.2);
  88. c.close();
  89. c.fillAndStroke();
  90. };
  91. mxCellRenderer.registerShape(mxShapeAws3dArrowSE.prototype.cst.ARROW_SE, mxShapeAws3dArrowSE);
  92. //**********************************************************************************************************************************************************
  93. //Arrow SW
  94. //**********************************************************************************************************************************************************
  95. /**
  96. * Extends mxShape.
  97. */
  98. function mxShapeAws3dArrowSW(bounds, fill, stroke, strokewidth)
  99. {
  100. mxShape.call(this);
  101. this.bounds = bounds;
  102. this.fill = fill;
  103. this.stroke = stroke;
  104. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  105. };
  106. /**
  107. * Extends mxShape.
  108. */
  109. mxUtils.extend(mxShapeAws3dArrowSW, mxShape);
  110. mxShapeAws3dArrowSW.prototype.cst = {
  111. ARROW_SW : 'mxgraph.aws3d.arrowSW'
  112. };
  113. /**
  114. * Function: paintVertexShape
  115. *
  116. * Paints the vertex shape.
  117. */
  118. mxShapeAws3dArrowSW.prototype.paintVertexShape = function(c, x, y, w, h)
  119. {
  120. c.translate(x, y);
  121. c.begin();
  122. c.moveTo(17, h - 8);
  123. c.lineTo(21, h - 5.5);
  124. c.lineTo(0, h);
  125. c.lineTo(9.7, h - 12.2);
  126. c.lineTo(13.9, h - 9.8);
  127. c.lineTo(w - 9.7, 3.5);
  128. c.arcTo(6, 3, 0, 0, 1, w - 9, 0.4);
  129. c.arcTo(5.2, 3, 0, 0, 1, w - 1, 1.4);
  130. c.arcTo(6, 2.8, 0, 0, 1, w - 3, 5.4);
  131. c.arcTo(5, 3, 0, 0, 1, w - 6.7, 5.2);
  132. c.close();
  133. c.fillAndStroke();
  134. };
  135. mxCellRenderer.registerShape(mxShapeAws3dArrowSW.prototype.cst.ARROW_SW, mxShapeAws3dArrowSW);
  136. //**********************************************************************************************************************************************************
  137. //Arrow NW
  138. //**********************************************************************************************************************************************************
  139. /**
  140. * Extends mxShape.
  141. */
  142. function mxShapeAws3dArrowNW(bounds, fill, stroke, strokewidth)
  143. {
  144. mxShape.call(this);
  145. this.bounds = bounds;
  146. this.fill = fill;
  147. this.stroke = stroke;
  148. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  149. };
  150. /**
  151. * Extends mxShape.
  152. */
  153. mxUtils.extend(mxShapeAws3dArrowNW, mxShape);
  154. mxShapeAws3dArrowNW.prototype.cst = {
  155. ARROW_NW : 'mxgraph.aws3d.arrowNW'
  156. };
  157. /**
  158. * Function: paintVertexShape
  159. *
  160. * Paints the vertex shape.
  161. */
  162. mxShapeAws3dArrowNW.prototype.paintVertexShape = function(c, x, y, w, h)
  163. {
  164. c.translate(x, y);
  165. c.begin();
  166. c.moveTo(17, 8);
  167. c.lineTo(21, 5.5);
  168. c.lineTo(0, 0);
  169. c.lineTo(9.7, 12.2);
  170. c.lineTo(13.9, 9.8);
  171. c.lineTo(w - 9.7, h - 3.5);
  172. c.arcTo(6, 3, 0, 0, 0, w - 9, h - 0.4);
  173. c.arcTo(5.2, 3, 0, 0, 0, w - 1, h - 1.4);
  174. c.arcTo(6, 2.8, 0, 0, 0, w - 3, h - 5.4);
  175. c.arcTo(5, 3, 0, 0, 0, w - 6.7, h - 5.2);
  176. c.close();
  177. c.fillAndStroke();
  178. };
  179. mxCellRenderer.registerShape(mxShapeAws3dArrowNW.prototype.cst.ARROW_NW, mxShapeAws3dArrowNW);
  180. //**********************************************************************************************************************************************************
  181. //Arrowless NE
  182. //**********************************************************************************************************************************************************
  183. /**
  184. * Extends mxShape.
  185. */
  186. function mxShapeAws3dArrowlessNE(bounds, fill, stroke, strokewidth)
  187. {
  188. mxShape.call(this);
  189. this.bounds = bounds;
  190. this.fill = fill;
  191. this.stroke = stroke;
  192. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  193. };
  194. /**
  195. * Extends mxShape.
  196. */
  197. mxUtils.extend(mxShapeAws3dArrowlessNE, mxShape);
  198. mxShapeAws3dArrowlessNE.prototype.cst = {
  199. ARROWLESS_NE : 'mxgraph.aws3d.arrowlessNE'
  200. };
  201. /**
  202. * Function: paintVertexShape
  203. *
  204. * Paints the vertex shape.
  205. */
  206. mxShapeAws3dArrowlessNE.prototype.paintVertexShape = function(c, x, y, w, h)
  207. {
  208. c.translate(x, y);
  209. c.begin();
  210. c.moveTo(w - 3.1, 0);
  211. c.lineTo(w, 1.8);
  212. c.lineTo(9.7, h - 3.5);
  213. c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);
  214. c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);
  215. c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);
  216. c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);
  217. c.close();
  218. c.fillAndStroke();
  219. };
  220. mxCellRenderer.registerShape(mxShapeAws3dArrowlessNE.prototype.cst.ARROWLESS_NE, mxShapeAws3dArrowlessNE);
  221. //**********************************************************************************************************************************************************
  222. //Dashed edge with double arrow
  223. //**********************************************************************************************************************************************************
  224. /**
  225. * Extends mxShape.
  226. */
  227. function mxShapeAws3dDashedEdgeDouble(bounds, fill, stroke, strokewidth)
  228. {
  229. mxShape.call(this);
  230. this.bounds = bounds;
  231. this.fill = fill;
  232. this.stroke = stroke;
  233. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  234. };
  235. /**
  236. * Extends mxShape.
  237. */
  238. mxUtils.extend(mxShapeAws3dDashedEdgeDouble, mxShape);
  239. mxShapeAws3dDashedEdgeDouble.prototype.cst = {
  240. DASHED_EDGE_DOUBLE : 'mxgraph.aws3d.dashedEdgeDouble'
  241. };
  242. /**
  243. * Function: paintVertexShape
  244. *
  245. * Paints the vertex shape.
  246. */
  247. mxShapeAws3dDashedEdgeDouble.prototype.paintVertexShape = function(c, x, y, w, h)
  248. {
  249. c.translate(x, y);
  250. c.setFillColor('#2D6195');
  251. c.save();
  252. c.setStrokeColor('none');
  253. c.begin();
  254. c.moveTo(21, 5.5);
  255. c.lineTo(0, 0);
  256. c.lineTo(9.7, 12.2);
  257. c.fillAndStroke();
  258. c.begin();
  259. c.moveTo(w - 21, h - 5.5);
  260. c.lineTo(w, h);
  261. c.lineTo(w - 9.7, h - 12.2);
  262. c.fillAndStroke();
  263. c.restore();
  264. c.setStrokeColor('#2D6195');
  265. c.setStrokeWidth('4');
  266. c.setDashed('true');
  267. c.setLineCap('round');
  268. c.begin();
  269. c.moveTo(7.675, 4.425);
  270. c.lineTo(w - 7.675, h - 4.425);
  271. c.stroke();
  272. };
  273. mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble.prototype.cst.DASHED_EDGE_DOUBLE, mxShapeAws3dDashedEdgeDouble);
  274. //**********************************************************************************************************************************************************
  275. //Dashed edge with double arrow v2
  276. //**********************************************************************************************************************************************************
  277. /**
  278. * Extends mxShape.
  279. */
  280. function mxShapeAws3dDashedEdgeDouble2(bounds, fill, stroke, strokewidth)
  281. {
  282. mxShape.call(this);
  283. this.bounds = bounds;
  284. this.fill = fill;
  285. this.stroke = stroke;
  286. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  287. };
  288. /**
  289. * Extends mxShape.
  290. */
  291. mxUtils.extend(mxShapeAws3dDashedEdgeDouble2, mxShape);
  292. mxShapeAws3dDashedEdgeDouble2.prototype.cst = {
  293. DASHED_EDGE_DOUBLE2 : 'mxgraph.aws3d.dashedEdgeDouble2'
  294. };
  295. /**
  296. * Function: paintVertexShape
  297. *
  298. * Paints the vertex shape.
  299. */
  300. mxShapeAws3dDashedEdgeDouble2.prototype.paintVertexShape = function(c, x, y, w, h)
  301. {
  302. c.translate(x, y);
  303. var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#000000');
  304. c.save();
  305. c.setStrokeColor('none');
  306. c.setFillColor(strokeColor);
  307. c.begin();
  308. c.moveTo(21, 5.5);
  309. c.lineTo(0, 0);
  310. c.lineTo(9.7, 12.2);
  311. c.fillAndStroke();
  312. c.begin();
  313. c.moveTo(w - 21, h - 5.5);
  314. c.lineTo(w, h);
  315. c.lineTo(w - 9.7, h - 12.2);
  316. c.fillAndStroke();
  317. c.restore();
  318. c.setStrokeWidth('4');
  319. c.setDashed('true');
  320. c.setLineCap('round');
  321. c.begin();
  322. c.moveTo(7.675, 4.425);
  323. c.lineTo(w - 7.675, h - 4.425);
  324. c.stroke();
  325. };
  326. mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble2.prototype.cst.DASHED_EDGE_DOUBLE2, mxShapeAws3dDashedEdgeDouble2);
  327. //**********************************************************************************************************************************************************
  328. //Dashed arrowless edge
  329. //**********************************************************************************************************************************************************
  330. /**
  331. * Extends mxShape.
  332. */
  333. function mxShapeAws3dDashedArrowlessEdge(bounds, fill, stroke, strokewidth)
  334. {
  335. mxShape.call(this);
  336. this.bounds = bounds;
  337. this.fill = fill;
  338. this.stroke = stroke;
  339. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  340. };
  341. /**
  342. * Extends mxShape.
  343. */
  344. mxUtils.extend(mxShapeAws3dDashedArrowlessEdge, mxShape);
  345. mxShapeAws3dDashedArrowlessEdge.prototype.cst = {
  346. DASHED_ARROWLESS_EDGE : 'mxgraph.aws3d.dashedArrowlessEdge'
  347. };
  348. /**
  349. * Function: paintVertexShape
  350. *
  351. * Paints the vertex shape.
  352. */
  353. mxShapeAws3dDashedArrowlessEdge.prototype.paintVertexShape = function(c, x, y, w, h)
  354. {
  355. c.translate(x, y);
  356. c.setStrokeColor('#2D6195');
  357. c.setStrokeWidth('4');
  358. c.setDashed('true');
  359. c.setLineCap('round');
  360. c.begin();
  361. c.moveTo(0, 0);
  362. c.lineTo(w, h);
  363. c.stroke();
  364. };
  365. mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge.prototype.cst.DASHED_ARROWLESS_EDGE, mxShapeAws3dDashedArrowlessEdge);
  366. //**********************************************************************************************************************************************************
  367. //Dashed arrowless edge
  368. //**********************************************************************************************************************************************************
  369. /**
  370. * Extends mxShape.
  371. */
  372. function mxShapeAws3dDashedArrowlessEdge2(bounds, fill, stroke, strokewidth)
  373. {
  374. mxShape.call(this);
  375. this.bounds = bounds;
  376. this.fill = fill;
  377. this.stroke = stroke;
  378. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  379. };
  380. /**
  381. * Extends mxShape.
  382. */
  383. mxUtils.extend(mxShapeAws3dDashedArrowlessEdge2, mxShape);
  384. mxShapeAws3dDashedArrowlessEdge2.prototype.cst = {
  385. DASHED_ARROWLESS_EDGE2 : 'mxgraph.aws3d.dashedArrowlessEdge2'
  386. };
  387. /**
  388. * Function: paintVertexShape
  389. *
  390. * Paints the vertex shape.
  391. */
  392. mxShapeAws3dDashedArrowlessEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
  393. {
  394. c.translate(x, y);
  395. c.setStrokeWidth('4');
  396. c.setDashed('true');
  397. c.setLineCap('round');
  398. c.begin();
  399. c.moveTo(0, 0);
  400. c.lineTo(w, h);
  401. c.stroke();
  402. };
  403. mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge2.prototype.cst.DASHED_ARROWLESS_EDGE2, mxShapeAws3dDashedArrowlessEdge2);
  404. //**********************************************************************************************************************************************************
  405. //Dashed edge
  406. //**********************************************************************************************************************************************************
  407. /**
  408. * Extends mxShape.
  409. */
  410. function mxShapeAws3dDashedEdge(bounds, fill, stroke, strokewidth)
  411. {
  412. mxShape.call(this);
  413. this.bounds = bounds;
  414. this.fill = fill;
  415. this.stroke = stroke;
  416. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  417. };
  418. /**
  419. * Extends mxShape.
  420. */
  421. mxUtils.extend(mxShapeAws3dDashedEdge, mxShape);
  422. mxShapeAws3dDashedEdge.prototype.cst = {
  423. DASHED_EDGE : 'mxgraph.aws3d.dashedEdge'
  424. };
  425. /**
  426. * Function: paintVertexShape
  427. *
  428. * Paints the vertex shape.
  429. */
  430. mxShapeAws3dDashedEdge.prototype.paintVertexShape = function(c, x, y, w, h)
  431. {
  432. c.translate(x, y);
  433. c.setFillColor('#2D6195');
  434. c.save();
  435. c.setStrokeColor('none');
  436. c.begin();
  437. c.moveTo(w - 21, 5.5);
  438. c.lineTo(w, 0);
  439. c.lineTo(w - 9.7, 12.2);
  440. c.fillAndStroke();
  441. c.restore();
  442. c.setStrokeColor('#2D6195');
  443. c.setStrokeWidth('4');
  444. c.setDashed('true');
  445. c.setLineCap('round');
  446. c.begin();
  447. c.moveTo(w - 7.675, 4.425);
  448. c.lineTo(0, h);
  449. c.stroke();
  450. };
  451. mxCellRenderer.registerShape(mxShapeAws3dDashedEdge.prototype.cst.DASHED_EDGE, mxShapeAws3dDashedEdge);
  452. //**********************************************************************************************************************************************************
  453. //Dashed edge v2
  454. //**********************************************************************************************************************************************************
  455. /**
  456. * Extends mxShape.
  457. */
  458. function mxShapeAws3dDashedEdge2(bounds, fill, stroke, strokewidth)
  459. {
  460. mxShape.call(this);
  461. this.bounds = bounds;
  462. this.fill = fill;
  463. this.stroke = stroke;
  464. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  465. };
  466. /**
  467. * Extends mxShape.
  468. */
  469. mxUtils.extend(mxShapeAws3dDashedEdge2, mxShape);
  470. mxShapeAws3dDashedEdge2.prototype.cst = {
  471. DASHED_EDGE2 : 'mxgraph.aws3d.dashedEdge2'
  472. };
  473. /**
  474. * Function: paintVertexShape
  475. *
  476. * Paints the vertex shape.
  477. */
  478. mxShapeAws3dDashedEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
  479. {
  480. c.translate(x, y);
  481. var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#000000');
  482. c.save();
  483. c.setStrokeColor('none');
  484. c.setFillColor(strokeColor);
  485. c.begin();
  486. c.moveTo(w - 21, 5.5);
  487. c.lineTo(w, 0);
  488. c.lineTo(w - 9.7, 12.2);
  489. c.fillAndStroke();
  490. c.restore();
  491. c.setStrokeWidth('4');
  492. c.setDashed('true');
  493. c.setLineCap('round');
  494. c.begin();
  495. c.moveTo(w - 7.675, 4.425);
  496. c.lineTo(0, h);
  497. c.stroke();
  498. };
  499. mxCellRenderer.registerShape(mxShapeAws3dDashedEdge2.prototype.cst.DASHED_EDGE2, mxShapeAws3dDashedEdge2);
  500. //**********************************************************************************************************************************************************
  501. //Flat edge
  502. //**********************************************************************************************************************************************************
  503. /**
  504. * Extends mxShape.
  505. */
  506. function mxShapeAws3dFlatEdge(bounds, fill, stroke, strokewidth)
  507. {
  508. mxShape.call(this);
  509. this.bounds = bounds;
  510. this.fill = fill;
  511. this.stroke = stroke;
  512. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  513. };
  514. /**
  515. * Extends mxShape.
  516. */
  517. mxUtils.extend(mxShapeAws3dFlatEdge, mxShape);
  518. mxShapeAws3dFlatEdge.prototype.cst = {
  519. FLAT_EDGE : 'mxgraph.aws3d.flatEdge'
  520. };
  521. /**
  522. * Function: paintVertexShape
  523. *
  524. * Paints the vertex shape.
  525. */
  526. mxShapeAws3dFlatEdge.prototype.paintVertexShape = function(c, x, y, w, h)
  527. {
  528. c.translate(x, y);
  529. c.setFillColor('#F4B934');
  530. c.setStrokeColor('none');
  531. c.begin();
  532. c.moveTo(w - 46, 8.8);
  533. c.lineTo(w - 61.2, 0);
  534. c.lineTo(w, 0);
  535. c.lineTo(w, 35.5);
  536. c.lineTo(w - 15.4, 26.5);
  537. c.lineTo(30.7, h);
  538. c.lineTo(0, h - 17.7);
  539. c.fillAndStroke();
  540. };
  541. mxCellRenderer.registerShape(mxShapeAws3dFlatEdge.prototype.cst.FLAT_EDGE, mxShapeAws3dFlatEdge);
  542. //**********************************************************************************************************************************************************
  543. //Flat edge v2
  544. //**********************************************************************************************************************************************************
  545. /**
  546. * Extends mxShape.
  547. */
  548. function mxShapeAws3dFlatEdge2(bounds, fill, stroke, strokewidth)
  549. {
  550. mxShape.call(this);
  551. this.bounds = bounds;
  552. this.fill = fill;
  553. this.stroke = stroke;
  554. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  555. };
  556. /**
  557. * Extends mxShape.
  558. */
  559. mxUtils.extend(mxShapeAws3dFlatEdge2, mxShape);
  560. mxShapeAws3dFlatEdge2.prototype.cst = {
  561. FLAT_EDGE2 : 'mxgraph.aws3d.flatEdge2'
  562. };
  563. /**
  564. * Function: paintVertexShape
  565. *
  566. * Paints the vertex shape.
  567. */
  568. mxShapeAws3dFlatEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
  569. {
  570. c.translate(x, y);
  571. c.begin();
  572. c.moveTo(w - 46, 8.8);
  573. c.lineTo(w - 61.2, 0);
  574. c.lineTo(w, 0);
  575. c.lineTo(w, 35.5);
  576. c.lineTo(w - 15.4, 26.5);
  577. c.lineTo(30.7, h);
  578. c.lineTo(0, h - 17.7);
  579. c.close();
  580. c.fillAndStroke();
  581. };
  582. mxCellRenderer.registerShape(mxShapeAws3dFlatEdge2.prototype.cst.FLAT_EDGE2, mxShapeAws3dFlatEdge2);
  583. //**********************************************************************************************************************************************************
  584. //Flat double edge
  585. //**********************************************************************************************************************************************************
  586. /**
  587. * Extends mxShape.
  588. */
  589. function mxShapeAws3dFlatDoubleEdge(bounds, fill, stroke, strokewidth)
  590. {
  591. mxShape.call(this);
  592. this.bounds = bounds;
  593. this.fill = fill;
  594. this.stroke = stroke;
  595. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  596. };
  597. /**
  598. * Extends mxShape.
  599. */
  600. mxUtils.extend(mxShapeAws3dFlatDoubleEdge, mxShape);
  601. mxShapeAws3dFlatDoubleEdge.prototype.cst = {
  602. FLAT_DOUBLE_EDGE : 'mxgraph.aws3d.flatDoubleEdge'
  603. };
  604. /**
  605. * Function: paintVertexShape
  606. *
  607. * Paints the vertex shape.
  608. */
  609. mxShapeAws3dFlatDoubleEdge.prototype.paintVertexShape = function(c, x, y, w, h)
  610. {
  611. c.translate(x, y);
  612. c.setFillColor('#F4B934');
  613. c.setStrokeColor('none');
  614. c.begin();
  615. c.moveTo(15.3, 61.9);
  616. c.lineTo(30.8, 53.2);
  617. c.lineTo(15.4, 44.2);
  618. c.lineTo(0, 53.2);
  619. c.lineTo(15.4, 8.8);
  620. c.lineTo(92.1, 0);
  621. c.lineTo(76.5, 8.8);
  622. c.lineTo(92.1, 17.7);
  623. c.lineTo(107.4, 8.8);
  624. c.lineTo(w - 15.3, h - 61.9);
  625. c.lineTo(w - 30.8, h - 53.2);
  626. c.lineTo(w - 15.4, h - 44.2);
  627. c.lineTo(w, h - 53.2);
  628. c.lineTo(w - 15.4, h - 8.8);
  629. c.lineTo(w - 92.1, h);
  630. c.lineTo(w - 76.5, h - 8.8);
  631. c.lineTo(w - 92.1, h - 17.7);
  632. c.lineTo(w - 107.4, h - 8.8);
  633. c.fillAndStroke();
  634. };
  635. mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge.prototype.cst.FLAT_DOUBLE_EDGE, mxShapeAws3dFlatDoubleEdge);
  636. //**********************************************************************************************************************************************************
  637. //Flat double edge v2
  638. //**********************************************************************************************************************************************************
  639. /**
  640. * Extends mxShape.
  641. */
  642. function mxShapeAws3dFlatDoubleEdge2(bounds, fill, stroke, strokewidth)
  643. {
  644. mxShape.call(this);
  645. this.bounds = bounds;
  646. this.fill = fill;
  647. this.stroke = stroke;
  648. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  649. };
  650. /**
  651. * Extends mxShape.
  652. */
  653. mxUtils.extend(mxShapeAws3dFlatDoubleEdge2, mxShape);
  654. mxShapeAws3dFlatDoubleEdge2.prototype.cst = {
  655. FLAT_DOUBLE_EDGE2 : 'mxgraph.aws3d.flatDoubleEdge2'
  656. };
  657. /**
  658. * Function: paintVertexShape
  659. *
  660. * Paints the vertex shape.
  661. */
  662. mxShapeAws3dFlatDoubleEdge2.prototype.paintVertexShape = function(c, x, y, w, h)
  663. {
  664. c.translate(x, y);
  665. c.begin();
  666. c.moveTo(15.3, 61.9);
  667. c.lineTo(30.8, 53.2);
  668. c.lineTo(15.4, 44.2);
  669. c.lineTo(0, 53.2);
  670. c.lineTo(15.4, 8.8);
  671. c.lineTo(92.1, 0);
  672. c.lineTo(76.5, 8.8);
  673. c.lineTo(92.1, 17.7);
  674. c.lineTo(107.4, 8.8);
  675. c.lineTo(w - 15.3, h - 61.9);
  676. c.lineTo(w - 30.8, h - 53.2);
  677. c.lineTo(w - 15.4, h - 44.2);
  678. c.lineTo(w, h - 53.2);
  679. c.lineTo(w - 15.4, h - 8.8);
  680. c.lineTo(w - 92.1, h);
  681. c.lineTo(w - 76.5, h - 8.8);
  682. c.lineTo(w - 92.1, h - 17.7);
  683. c.lineTo(w - 107.4, h - 8.8);
  684. c.close();
  685. c.fillAndStroke();
  686. };
  687. mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge2.prototype.cst.FLAT_DOUBLE_EDGE2, mxShapeAws3dFlatDoubleEdge2);
  688. //**********************************************************************************************************************************************************
  689. //AMI
  690. //**********************************************************************************************************************************************************
  691. /**
  692. * Extends mxShape.
  693. */
  694. function mxShapeAws3dAMI(bounds, fill, stroke, strokewidth)
  695. {
  696. mxShape.call(this);
  697. this.bounds = bounds;
  698. this.fill = fill;
  699. this.stroke = stroke;
  700. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  701. };
  702. /**
  703. * Extends mxShape.
  704. */
  705. mxUtils.extend(mxShapeAws3dAMI, mxShape);
  706. mxShapeAws3dAMI.prototype.cst = {
  707. AMI : 'mxgraph.aws3d.ami',
  708. SHADING_COLORS : 'shadingCols'
  709. };
  710. mxShapeAws3dAMI.prototype.customProperties = [
  711. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  712. ];
  713. /**
  714. * Function: paintVertexShape
  715. *
  716. * Paints the vertex shape.
  717. */
  718. mxShapeAws3dAMI.prototype.paintVertexShape = function(c, x, y, w, h)
  719. {
  720. c.translate(x, y);
  721. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  722. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  723. var strokeWidth1 = strokeWidth * w / 92;
  724. var strokeWidth2 = strokeWidth * h / 60;
  725. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  726. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  727. c.setStrokeWidth(strokeWidth);
  728. c.setShadow(false);
  729. c.save();
  730. c.save();
  731. c.setStrokeWidth(2 * strokeWidth);
  732. c.setStrokeColor(strokeColor2);
  733. c.setLineJoin('round');
  734. if (isShadow == 1)
  735. {
  736. c.setShadow(true);
  737. }
  738. c.begin();
  739. c.moveTo(0, h * 0.6483);
  740. c.lineTo(w * 0.0684, h * 0.4133);
  741. c.lineTo(w * 0.5326, 0);
  742. c.lineTo(w * 0.6685, 0);
  743. c.lineTo(w * 0.9359, h * 0.2367);
  744. c.lineTo(w, h * 0.465);
  745. c.lineTo(w * 0.4, h);
  746. c.close();
  747. c.fillAndStroke();
  748. c.restore();
  749. c.setFillColor('#000000');
  750. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  751. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  752. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  753. c.begin();
  754. c.moveTo(0, h * 0.65);
  755. c.lineTo(w * 0.0652, h * 0.5);
  756. c.lineTo(w * 0.3326, h * 0.7667);
  757. c.lineTo(w * 0.4663, h * 0.7667);
  758. c.lineTo(w * 0.4, h);
  759. c.close();
  760. c.fill();
  761. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  762. c.begin();
  763. c.moveTo(w * 0.4, h);
  764. c.lineTo(w * 0.4641, h * 0.77);
  765. c.lineTo(w * 0.9326, h * 0.355);
  766. c.lineTo(w * 0.9347, h * 0.24);
  767. c.lineTo(w, h * 0.4667);
  768. c.close();
  769. c.fill();
  770. c.restore();
  771. c.setLineJoin('round');
  772. c.begin();
  773. c.moveTo(0, h * 0.65);
  774. c.lineTo(w * 0.0652, h * 0.5);
  775. c.lineTo(w * 0.3326, h * 0.7667);
  776. c.lineTo(w * 0.4663, h * 0.7667);
  777. c.lineTo(w * 0.4, h);
  778. c.close();
  779. c.stroke();
  780. c.begin();
  781. c.moveTo(w * 0.4, h);
  782. c.lineTo(w * 0.4641, h * 0.77);
  783. c.lineTo(w * 0.9326, h * 0.355);
  784. c.lineTo(w * 0.9347, h * 0.24);
  785. c.lineTo(w, h * 0.4667);
  786. c.close();
  787. c.stroke();
  788. c.begin();
  789. c.moveTo(w * 0.0652, h * 0.42);
  790. c.lineTo(w * 0.0652, h * 0.5);
  791. c.moveTo(w * 0.3337, h * 0.7667);
  792. c.lineTo(w * 0.4, h);
  793. c.moveTo(w * 0.9348, h * 0.355);
  794. c.lineTo(w, h * 0.4733);
  795. c.stroke();
  796. c.setLineJoin('miter');
  797. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  798. c.setFillColor(strokeColor);
  799. c.begin();
  800. c.moveTo(w * 0.1935, h * 0.42);
  801. c.lineTo(w * 0.5543, h * 0.0967);
  802. c.lineTo(w * 0.6652, h * 0.1967);
  803. c.lineTo(w * 0.3, h * 0.5133);
  804. c.close();
  805. c.moveTo(w * 0.2967, h * 0.4633);
  806. c.lineTo(w * 0.3837, h * 0.3883);
  807. c.lineTo(w * 0.3326, h * 0.3417);
  808. c.lineTo(w * 0.2467, h * 0.42);
  809. c.close();
  810. c.moveTo(w * 0.362, h * 0.32);
  811. c.lineTo(w * 0.412, h * 0.3633);
  812. c.lineTo(w * 0.5054, h * 0.2867);
  813. c.lineTo(w * 0.4522, h * 0.24);
  814. c.close();
  815. c.moveTo(w * 0.5293, h * 0.26);
  816. c.lineTo(w * 0.6109, h * 0.1933);
  817. c.lineTo(w * 0.5511, h * 0.145);
  818. c.lineTo(w * 0.4739, h * 0.2133);
  819. c.close();
  820. c.moveTo(w * 0.3528, h * 0.557);
  821. c.lineTo(w * 0.7137, h * 0.2337);
  822. c.lineTo(w * 0.8246, h * 0.3337);
  823. c.lineTo(w * 0.4593, h * 0.6503);
  824. c.close();
  825. c.moveTo(w * 0.4561, h * 0.6003);
  826. c.lineTo(w * 0.543, h * 0.5253);
  827. c.lineTo(w * 0.492, h * 0.4787);
  828. c.lineTo(w * 0.4061, h * 0.557);
  829. c.close();
  830. c.moveTo(w * 0.5213, h * 0.457);
  831. c.lineTo(w * 0.5713, h * 0.5003);
  832. c.lineTo(w * 0.6648, h * 0.4237);
  833. c.lineTo(w * 0.6115, h * 0.377);
  834. c.close();
  835. c.moveTo(w * 0.6887, h * 0.397);
  836. c.lineTo(w * 0.7702, h * 0.3303);
  837. c.lineTo(w * 0.7104, h * 0.282);
  838. c.lineTo(w * 0.6333, h * 0.3503);
  839. c.close();
  840. c.fill();
  841. c.setStrokeWidth(2 * strokeWidth);
  842. c.setStrokeColor(strokeColor2);
  843. c.setLineJoin('round');
  844. c.begin();
  845. c.moveTo(0, h * 0.6483);
  846. c.lineTo(w * 0.0684, h * 0.4133);
  847. c.lineTo(w * 0.5326, 0);
  848. c.lineTo(w * 0.6685, 0);
  849. c.lineTo(w * 0.9359, h * 0.2367);
  850. c.lineTo(w, h * 0.465);
  851. c.lineTo(w * 0.4, h);
  852. c.close();
  853. c.stroke();
  854. };
  855. mxCellRenderer.registerShape(mxShapeAws3dAMI.prototype.cst.AMI, mxShapeAws3dAMI);
  856. //**********************************************************************************************************************************************************
  857. //Snapshot
  858. //**********************************************************************************************************************************************************
  859. /**
  860. * Extends mxShape.
  861. */
  862. function mxShapeAws3dSnapshot(bounds, fill, stroke, strokewidth)
  863. {
  864. mxShape.call(this);
  865. this.bounds = bounds;
  866. this.fill = fill;
  867. this.stroke = stroke;
  868. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  869. };
  870. /**
  871. * Extends mxShape.
  872. */
  873. mxUtils.extend(mxShapeAws3dSnapshot, mxShape);
  874. mxShapeAws3dSnapshot.prototype.cst = {
  875. SNAPSHOT : 'mxgraph.aws3d.snapshot',
  876. SHADING_COLORS : 'shadingCols'
  877. };
  878. mxShapeAws3dSnapshot.prototype.customProperties = [
  879. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  880. ];
  881. /**
  882. * Function: paintVertexShape
  883. *
  884. * Paints the vertex shape.
  885. */
  886. mxShapeAws3dSnapshot.prototype.paintVertexShape = function(c, x, y, w, h)
  887. {
  888. c.translate(x, y);
  889. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  890. var strokeWidth1 = strokeWidth * w / 92;
  891. var strokeWidth2 = strokeWidth * h / 60;
  892. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  893. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  894. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  895. c.setStrokeWidth(strokeWidth);
  896. c.setShadow(false);
  897. c.save();
  898. c.save();
  899. c.setStrokeWidth(2 * strokeWidth);
  900. c.setStrokeColor(strokeColor2);
  901. c.setLineJoin('round');
  902. if(isShadow == 1)
  903. {
  904. c.setShadow(true);
  905. }
  906. c.begin();
  907. c.moveTo(w, h * 0.6483);
  908. c.lineTo(w * 0.9316, h * 0.4133);
  909. c.lineTo(w * 0.4674, 0);
  910. c.lineTo(w * 0.3315, 0);
  911. c.lineTo(w * 0.0641, h * 0.2367);
  912. c.lineTo(0, h * 0.465);
  913. c.lineTo(w * 0.6, h);
  914. c.close();
  915. c.fillAndStroke();
  916. c.restore();
  917. c.setFillColor('#000000');
  918. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSnapshot.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  919. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  920. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  921. c.begin();
  922. c.moveTo(w, h * 0.65);
  923. c.lineTo(w * 0.9348, h * 0.52);
  924. c.lineTo(w * 0.6674, h * 0.7667);
  925. c.lineTo(w * 0.5337, h * 0.7667);
  926. c.lineTo(w * 0.6, h);
  927. c.close();
  928. c.fill();
  929. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  930. c.begin();
  931. c.moveTo(w * 0.6, h);
  932. c.lineTo(w * 0.5359, h * 0.77);
  933. c.lineTo(w * 0.0674, h * 0.355);
  934. c.lineTo(w * 0.0653, h * 0.24);
  935. c.lineTo(0, h * 0.4667);
  936. c.close();
  937. c.fill();
  938. c.restore();
  939. c.setLineJoin('round');
  940. c.begin();
  941. c.moveTo(w, h * 0.65);
  942. c.lineTo(w * 0.9348, h * 0.52);
  943. c.lineTo(w * 0.6674, h * 0.7667);
  944. c.lineTo(w * 0.5337, h * 0.7667);
  945. c.lineTo(w * 0.6, h);
  946. c.close();
  947. c.stroke();
  948. c.begin();
  949. c.moveTo(w * 0.6, h);
  950. c.lineTo(w * 0.5359, h * 0.77);
  951. c.lineTo(w * 0.0674, h * 0.355);
  952. c.lineTo(w * 0.0653, h * 0.24);
  953. c.lineTo(0, h * 0.4667);
  954. c.close();
  955. c.stroke();
  956. c.begin();
  957. c.moveTo(w * 0.9348, h * 0.42);
  958. c.lineTo(w * 0.9348, h * 0.52);
  959. c.moveTo(w * 0.6663, h * 0.7667);
  960. c.lineTo(w * 0.6, h);
  961. c.moveTo(w * 0.0652, h * 0.355);
  962. c.lineTo(0, h * 0.4733);
  963. c.stroke();
  964. c.setStrokeWidth(2 * strokeWidth);
  965. c.setStrokeColor(strokeColor2);
  966. c.setLineJoin('round');
  967. c.begin();
  968. c.moveTo(w, h * 0.6483);
  969. c.lineTo(w * 0.9316, h * 0.4133);
  970. c.lineTo(w * 0.4674, 0);
  971. c.lineTo(w * 0.3315, 0);
  972. c.lineTo(w * 0.0641, h * 0.2367);
  973. c.lineTo(0, h * 0.465);
  974. c.lineTo(w * 0.6, h);
  975. c.close();
  976. c.stroke();
  977. };
  978. mxCellRenderer.registerShape(mxShapeAws3dSnapshot.prototype.cst.SNAPSHOT, mxShapeAws3dSnapshot);
  979. //**********************************************************************************************************************************************************
  980. //Application
  981. //**********************************************************************************************************************************************************
  982. /**
  983. * Extends mxShape.
  984. */
  985. function mxShapeAws3dApplication(bounds, fill, stroke, strokewidth)
  986. {
  987. mxShape.call(this);
  988. this.bounds = bounds;
  989. this.fill = fill;
  990. this.stroke = stroke;
  991. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  992. };
  993. /**
  994. * Extends mxShape.
  995. */
  996. mxUtils.extend(mxShapeAws3dApplication, mxShape);
  997. mxShapeAws3dApplication.prototype.cst = {
  998. APPLICATION : 'mxgraph.aws3d.application',
  999. SHADING_COLORS : 'shadingCols'
  1000. };
  1001. mxShapeAws3dApplication.prototype.customProperties = [
  1002. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  1003. ];
  1004. /**
  1005. * Function: paintVertexShape
  1006. *
  1007. * Paints the vertex shape.
  1008. */
  1009. mxShapeAws3dApplication.prototype.paintVertexShape = function(c, x, y, w, h)
  1010. {
  1011. c.translate(x, y);
  1012. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  1013. var strokeWidth1 = strokeWidth * w / 62;
  1014. var strokeWidth2 = strokeWidth * h / 68.8;
  1015. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  1016. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  1017. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  1018. c.setShadow(false);
  1019. c.setStrokeWidth(strokeWidth);
  1020. c.save();
  1021. c.save();
  1022. c.setStrokeWidth(2 * strokeWidth);
  1023. c.setStrokeColor(strokeColor2);
  1024. c.setLineJoin('round');
  1025. if (isShadow == 1)
  1026. {
  1027. c.setShadow(true);
  1028. }
  1029. c.begin();
  1030. c.moveTo(0, h * 0.2544);
  1031. c.lineTo(w * 0.5, 0);
  1032. c.lineTo(w, h * 0.2544);
  1033. c.lineTo(w, h * 0.7485);
  1034. c.lineTo(w * 0.5, h);
  1035. c.lineTo(0, h * 0.7485);
  1036. c.close();
  1037. c.fillAndStroke();
  1038. c.restore();
  1039. c.setFillColor('#000000');
  1040. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  1041. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  1042. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  1043. c.begin();
  1044. c.moveTo(0, h * 0.2544);
  1045. c.lineTo(w * 0.5, h * 0.5015);
  1046. c.lineTo(w * 0.5, h);
  1047. c.lineTo(0, h * 0.7485);
  1048. c.close();
  1049. c.fill();
  1050. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  1051. c.begin();
  1052. c.moveTo(w * 0.5, h * 0.5015);
  1053. c.lineTo(w, h * 0.2544);
  1054. c.lineTo(w, h * 0.7485);
  1055. c.lineTo(w * 0.5, h);
  1056. c.close();
  1057. c.fill();
  1058. c.restore();
  1059. c.setLineJoin('round');
  1060. c.begin();
  1061. c.moveTo(0, h * 0.2544);
  1062. c.lineTo(w * 0.5, h * 0.5015);
  1063. c.lineTo(w * 0.5, h);
  1064. c.lineTo(0, h * 0.7485);
  1065. c.close();
  1066. c.stroke();
  1067. c.begin();
  1068. c.moveTo(w * 0.5, h * 0.5015);
  1069. c.lineTo(w, h * 0.2544);
  1070. c.lineTo(w, h * 0.7485);
  1071. c.lineTo(w * 0.5, h);
  1072. c.close();
  1073. c.stroke();
  1074. c.setLineJoin('miter');
  1075. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  1076. c.setFillColor(strokeColor);
  1077. c.begin();
  1078. c.moveTo(w * 0.6694, h * 0.0872);
  1079. c.lineTo(w * 0.7629, h * 0.1337);
  1080. c.lineTo(w * 0.2661, h * 0.3882);
  1081. c.lineTo(w * 0.2661, h * 0.5407);
  1082. c.lineTo(w * 0.1742, h * 0.4953);
  1083. c.lineTo(w * 0.1742, h * 0.3459);
  1084. c.close();
  1085. c.moveTo(w * 0.8629, h * 0.1846);
  1086. c.lineTo(w * 0.379, h * 0.4331);
  1087. c.lineTo(w * 0.379, h * 0.5945);
  1088. c.lineTo(w * 0.2855, h * 0.5494);
  1089. c.lineTo(w * 0.2855, h * 0.3953);
  1090. c.lineTo(w * 0.7839, h * 0.1439);
  1091. c.close();
  1092. c.fill();
  1093. c.setStrokeWidth(2 * strokeWidth);
  1094. c.setStrokeColor(strokeColor2);
  1095. c.setLineJoin('round');
  1096. c.begin();
  1097. c.moveTo(0, h * 0.2544);
  1098. c.lineTo(w * 0.5, 0);
  1099. c.lineTo(w, h * 0.2544);
  1100. c.lineTo(w, h * 0.7485);
  1101. c.lineTo(w * 0.5, h);
  1102. c.lineTo(0, h * 0.7485);
  1103. c.close();
  1104. c.stroke();
  1105. };
  1106. mxCellRenderer.registerShape(mxShapeAws3dApplication.prototype.cst.APPLICATION, mxShapeAws3dApplication);
  1107. //**********************************************************************************************************************************************************
  1108. //Application Server
  1109. //**********************************************************************************************************************************************************
  1110. /**
  1111. * Extends mxShape.
  1112. */
  1113. function mxShapeAws3dApplicationServer(bounds, fill, stroke, strokewidth)
  1114. {
  1115. mxShape.call(this);
  1116. this.bounds = bounds;
  1117. this.fill = fill;
  1118. this.stroke = stroke;
  1119. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  1120. };
  1121. /**
  1122. * Extends mxShape.
  1123. */
  1124. mxUtils.extend(mxShapeAws3dApplicationServer, mxShape);
  1125. mxShapeAws3dApplicationServer.prototype.cst = {
  1126. APPLICATION_SERVER : 'mxgraph.aws3d.application_server',
  1127. SHADING_COLORS : 'shadingCols'
  1128. };
  1129. mxShapeAws3dApplicationServer.prototype.customProperties = [
  1130. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  1131. ];
  1132. /**
  1133. * Function: paintVertexShape
  1134. *
  1135. * Paints the vertex shape.
  1136. */
  1137. mxShapeAws3dApplicationServer.prototype.paintVertexShape = function(c, x, y, w, h)
  1138. {
  1139. c.translate(x, y);
  1140. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  1141. var strokeWidth1 = strokeWidth * w / 123;
  1142. var strokeWidth2 = strokeWidth * h / 124;
  1143. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  1144. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  1145. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  1146. c.setShadow(false);
  1147. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  1148. };
  1149. mxShapeAws3dApplicationServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  1150. {
  1151. c.setStrokeWidth(strokeWidth);
  1152. c.save();
  1153. c.save();
  1154. c.setStrokeWidth(2 * strokeWidth);
  1155. c.setStrokeColor(strokeColor2);
  1156. c.setLineJoin('round');
  1157. c.begin();
  1158. c.moveTo(0, h * 0.7236);
  1159. c.lineTo(0, h * 0.2863);
  1160. c.lineTo(w * 0.5, 0);
  1161. c.lineTo(w, h * 0.2863);
  1162. c.lineTo(w, h * 0.7236);
  1163. c.lineTo(w * 0.5, h);
  1164. c.close();
  1165. c.fillAndStroke();
  1166. };
  1167. mxShapeAws3dApplicationServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  1168. {
  1169. c.restore();
  1170. c.setShadow(false);
  1171. c.setFillColor('#000000');
  1172. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplicationServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  1173. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  1174. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  1175. c.begin();
  1176. c.moveTo(0, h * 0.2863);
  1177. c.lineTo(w * 0.5, h * 0.5726);
  1178. c.lineTo(w * 0.5, h);
  1179. c.lineTo(0, h * 0.7177);
  1180. c.close();
  1181. c.fill();
  1182. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  1183. c.begin();
  1184. c.moveTo(w, h * 0.2863);
  1185. c.lineTo(w * 0.5, h * 0.5726);
  1186. c.lineTo(w * 0.5, h);
  1187. c.lineTo(w, h * 0.7177);
  1188. c.close();
  1189. c.fill();
  1190. c.restore();
  1191. c.setShadow(false);
  1192. c.setLineJoin('round');
  1193. c.begin();
  1194. c.moveTo(0, h * 0.2863);
  1195. c.lineTo(w * 0.5, h * 0.5726);
  1196. c.lineTo(w * 0.5, h);
  1197. c.lineTo(0, h * 0.7177);
  1198. c.close();
  1199. c.stroke();
  1200. c.begin();
  1201. c.moveTo(w, h * 0.2863);
  1202. c.lineTo(w * 0.5, h * 0.5726);
  1203. c.lineTo(w * 0.5, h);
  1204. c.lineTo(w, h * 0.7177);
  1205. c.close();
  1206. c.stroke();
  1207. c.setLineJoin('miter');
  1208. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  1209. c.setFillColor(strokeColor);
  1210. c.begin();
  1211. c.moveTo(w * 0.374, h * 0.4435);
  1212. c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.374, h * 0.4153);
  1213. c.lineTo(w * 0.4797, h * 0.3548);
  1214. c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.5203, h * 0.3548);
  1215. c.lineTo(w * 0.626, h * 0.4153);
  1216. c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.626, h * 0.4411);
  1217. c.lineTo(w * 0.5203, h * 0.5016);
  1218. c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.4797, h * 0.5016);
  1219. c.close();
  1220. c.fill();
  1221. c.setStrokeWidth(2 * strokeWidth);
  1222. c.setStrokeColor(strokeColor2);
  1223. c.setLineJoin('round');
  1224. c.begin();
  1225. c.moveTo(0, h * 0.7236);
  1226. c.lineTo(0, h * 0.2863);
  1227. c.lineTo(w * 0.5, 0);
  1228. c.lineTo(w, h * 0.2863);
  1229. c.lineTo(w, h * 0.7236);
  1230. c.lineTo(w * 0.5, h);
  1231. c.close();
  1232. c.stroke();
  1233. };
  1234. mxCellRenderer.registerShape(mxShapeAws3dApplicationServer.prototype.cst.APPLICATION_SERVER, mxShapeAws3dApplicationServer);
  1235. //**********************************************************************************************************************************************************
  1236. //CloudFront
  1237. //**********************************************************************************************************************************************************
  1238. /**
  1239. * Extends mxShape.
  1240. */
  1241. function mxShapeAws3dCloudFront(bounds, fill, stroke, strokewidth)
  1242. {
  1243. mxShape.call(this);
  1244. this.bounds = bounds;
  1245. this.fill = fill;
  1246. this.stroke = stroke;
  1247. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  1248. };
  1249. /**
  1250. * Extends mxShape.
  1251. */
  1252. mxUtils.extend(mxShapeAws3dCloudFront, mxShape);
  1253. mxShapeAws3dCloudFront.prototype.cst = {
  1254. CLOUDFRONT : 'mxgraph.aws3d.cloudfront',
  1255. SHADING_COLORS : 'shadingCols'
  1256. };
  1257. mxShapeAws3dCloudFront.prototype.customProperties = [
  1258. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  1259. ];
  1260. /**
  1261. * Function: paintVertexShape
  1262. *
  1263. * Paints the vertex shape.
  1264. */
  1265. mxShapeAws3dCloudFront.prototype.paintVertexShape = function(c, x, y, w, h)
  1266. {
  1267. c.translate(x, y);
  1268. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  1269. var strokeWidth1 = strokeWidth * w / 103.8;
  1270. var strokeWidth2 = strokeWidth * h / 169.8;
  1271. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  1272. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  1273. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  1274. c.setShadow(false);
  1275. c.setStrokeWidth(strokeWidth);
  1276. c.save();
  1277. c.save();
  1278. c.setStrokeWidth(2 * strokeWidth);
  1279. c.setStrokeColor(strokeColor2);
  1280. c.setLineJoin('round');
  1281. if (isShadow == 1)
  1282. {
  1283. c.setShadow(true);
  1284. }
  1285. c.begin();
  1286. c.moveTo(0, h * 0.7915);
  1287. c.lineTo(0, h * 0.7491);
  1288. c.lineTo(w * 0.0588, h * 0.7279);
  1289. c.lineTo(w * 0.0588, h * 0.1036);
  1290. c.lineTo(w * 0.3526, 0);
  1291. c.lineTo(w * 0.9422, h * 0.2073);
  1292. c.lineTo(w * 0.9422, h * 0.8316);
  1293. c.lineTo(w, h * 0.8539);
  1294. c.lineTo(w, h * 0.894);
  1295. c.lineTo(w * 0.7013, h);
  1296. c.lineTo(w * 0.5877, h);
  1297. c.close();
  1298. c.fillAndStroke();
  1299. c.restore();
  1300. c.setFillColor('#000000');
  1301. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCloudFront.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  1302. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  1303. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  1304. c.begin();
  1305. c.moveTo(w * 0.0588, h * 0.106);
  1306. c.lineTo(w * 0.6474, h * 0.3121);
  1307. c.lineTo(w * 0.6474, h * 0.9352);
  1308. c.lineTo(w * 0.7052, h);
  1309. c.lineTo(w * 0.5915, h);
  1310. c.lineTo(0, h * 0.7915);
  1311. c.lineTo(0, h * 0.7491);
  1312. c.lineTo(w * 0.0588, h * 0.7279);
  1313. c.close();
  1314. c.fill();
  1315. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  1316. c.begin();
  1317. c.moveTo(w * 0.6474, h * 0.3121);
  1318. c.lineTo(w * 0.9422, h * 0.2073);
  1319. c.lineTo(w * 0.9422, h * 0.8363);
  1320. c.lineTo(w, h * 0.8539);
  1321. c.lineTo(w, h * 0.894);
  1322. c.lineTo(w * 0.7013, h);
  1323. c.lineTo(w * 0.6474, h * 0.9305);
  1324. c.close();
  1325. c.fill();
  1326. c.restore();
  1327. c.setLineJoin('round');
  1328. c.begin();
  1329. c.moveTo(0, h * 0.7915);
  1330. c.lineTo(w * 0.0559, h * 0.7291);
  1331. c.lineTo(w * 0.6474, h * 0.9364);
  1332. c.lineTo(w * 0.5896, h);
  1333. c.moveTo(w * 0.6493, h * 0.9364);
  1334. c.lineTo(w * 0.9412, h * 0.8333);
  1335. c.lineTo(w, h * 0.894);
  1336. c.stroke();
  1337. c.begin();
  1338. c.moveTo(w * 0.0588, h * 0.106);
  1339. c.lineTo(w * 0.6474, h * 0.3121);
  1340. c.lineTo(w * 0.6474, h * 0.9352);
  1341. c.lineTo(w * 0.7052, h);
  1342. c.lineTo(w * 0.5915, h);
  1343. c.lineTo(0, h * 0.7915);
  1344. c.lineTo(0, h * 0.7491);
  1345. c.lineTo(w * 0.0588, h * 0.7279);
  1346. c.close();
  1347. c.stroke();
  1348. c.begin();
  1349. c.moveTo(w * 0.6474, h * 0.3121);
  1350. c.lineTo(w * 0.9422, h * 0.2073);
  1351. c.lineTo(w * 0.9422, h * 0.8363);
  1352. c.lineTo(w, h * 0.8539);
  1353. c.lineTo(w, h * 0.894);
  1354. c.lineTo(w * 0.7013, h);
  1355. c.lineTo(w * 0.6474, h * 0.9305);
  1356. c.close();
  1357. c.stroke();
  1358. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  1359. c.setFillColor(strokeColor);
  1360. c.begin();
  1361. c.moveTo(w * 0.3333, h * 0.6643);
  1362. c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.2351, h * 0.6042);
  1363. c.arcTo(w * 0.4528, h * 0.2768, 0, 0, 1, w * 0.1724, h * 0.523);
  1364. c.lineTo(w * 0.2428, h * 0.5677);
  1365. c.lineTo(w * 0.2427, h * 0.5895);
  1366. c.lineTo(w * 0.2765, h * 0.5995);
  1367. c.close();
  1368. c.moveTo(w * 0.1599, h * 0.4935);
  1369. c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.1522, h * 0.4146);
  1370. c.arcTo(w * 0.1156, h * 0.0883, 0, 0, 1, w * 0.2071, h * 0.3486);
  1371. c.lineTo(w * 0.2013, h * 0.4187);
  1372. c.lineTo(w * 0.1859, h * 0.4146);
  1373. c.lineTo(w * 0.1859, h * 0.4464);
  1374. c.lineTo(w * 0.1907, h * 0.4493);
  1375. c.close();
  1376. c.moveTo(w * 0.2235, h * 0.3445);
  1377. c.arcTo(w * 0.1927, h * 0.1767, 0, 0, 1, w * 0.368, h * 0.361);
  1378. c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.468, h * 0.4299);
  1379. c.lineTo(w * 0.368, h * 0.4034);
  1380. c.lineTo(w * 0.368, h * 0.394);
  1381. c.lineTo(w * 0.3256, h * 0.3799);
  1382. c.lineTo(w * 0.3256, h * 0.3887);
  1383. c.close();
  1384. c.moveTo(w * 0.4855, h * 0.4499);
  1385. c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5337, h * 0.5395);
  1386. c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5328, h * 0.6302);
  1387. c.lineTo(w * 0.4952, h * 0.5589);
  1388. c.lineTo(w * 0.5019, h * 0.5595);
  1389. c.lineTo(w * 0.5019, h * 0.5265);
  1390. c.lineTo(w * 0.4855, h * 0.5194);
  1391. c.close();
  1392. c.moveTo(w * 0.5241, h * 0.6455);
  1393. c.arcTo(w * 0.0963, h * 0.0589, 0, 0, 1, w * 0.4663, h * 0.682);
  1394. c.arcTo(w * 0.1445, h * 0.0883, 0, 0, 1, w * 0.3642, h * 0.6761);
  1395. c.lineTo(w * 0.4239, h * 0.6525);
  1396. c.lineTo(w * 0.4566, h * 0.6643);
  1397. c.lineTo(w * 0.4566, h * 0.6413);
  1398. c.close();
  1399. c.moveTo(w * 0.3507, h * 0.6667);
  1400. c.lineTo(w * 0.2871, h * 0.5919);
  1401. c.lineTo(w * 0.4123, h * 0.6366);
  1402. c.close();
  1403. c.moveTo(w * 0.2563, h * 0.5595);
  1404. c.lineTo(w * 0.1753, h * 0.5088);
  1405. c.lineTo(w * 0.2052, h * 0.4594);
  1406. c.close();
  1407. c.moveTo(w * 0.2139, h * 0.4229);
  1408. c.lineTo(w * 0.2197, h * 0.3528);
  1409. c.lineTo(w * 0.3256, h * 0.4028);
  1410. c.lineTo(w * 0.2283, h * 0.4252);
  1411. c.close();
  1412. c.moveTo(w * 0.2264, h * 0.4417);
  1413. c.lineTo(w * 0.3218, h * 0.4146);
  1414. c.lineTo(w * 0.3353, h * 0.4181);
  1415. c.lineTo(w * 0.3353, h * 0.4971);
  1416. c.lineTo(w * 0.3208, h * 0.4912);
  1417. c.lineTo(w * 0.3208, h * 0.4965);
  1418. c.lineTo(w * 0.2264, h * 0.4482);
  1419. c.close();
  1420. c.moveTo(w * 0.2697, h * 0.5618);
  1421. c.lineTo(w * 0.2245, h * 0.4635);
  1422. c.lineTo(w * 0.2331, h * 0.4588);
  1423. c.lineTo(w * 0.3256, h * 0.5112);
  1424. c.lineTo(w * 0.3237, h * 0.5241);
  1425. c.close();
  1426. c.moveTo(w * 0.2852, h * 0.576);
  1427. c.lineTo(w * 0.2852, h * 0.5654);
  1428. c.lineTo(w * 0.3391, h * 0.53);
  1429. c.lineTo(w * 0.3516, h * 0.5347);
  1430. c.lineTo(w * 0.4133, h * 0.6213);
  1431. c.close();
  1432. c.moveTo(w * 0.368, h * 0.5141);
  1433. c.lineTo(w * 0.368, h * 0.5088);
  1434. c.lineTo(w * 0.3526, h * 0.5029);
  1435. c.lineTo(w * 0.3526, h * 0.4234);
  1436. c.lineTo(w * 0.3622, h * 0.4276);
  1437. c.lineTo(w * 0.4547, h * 0.5177);
  1438. c.lineTo(w * 0.4557, h * 0.5277);
  1439. c.close();
  1440. c.moveTo(w * 0.3671, h * 0.417);
  1441. c.lineTo(w * 0.4692, h * 0.4411);
  1442. c.lineTo(w * 0.4721, h * 0.52);
  1443. c.close();
  1444. c.moveTo(w * 0.368, h * 0.5253);
  1445. c.lineTo(w * 0.4566, h * 0.5359);
  1446. c.lineTo(w * 0.4566, h * 0.5453);
  1447. c.lineTo(w * 0.4663, h * 0.5465);
  1448. c.lineTo(w * 0.4335, h * 0.6201);
  1449. c.lineTo(w * 0.422, h * 0.616);
  1450. c.lineTo(w * 0.368, h * 0.5389);
  1451. c.close();
  1452. c.moveTo(w * 0.4798, h * 0.5583);
  1453. c.lineTo(w * 0.5183, h * 0.629);
  1454. c.lineTo(w * 0.4557, h * 0.6313);
  1455. c.lineTo(w * 0.4557, h * 0.6237);
  1456. c.lineTo(w * 0.447, h * 0.6225);
  1457. c.close();
  1458. c.fill();
  1459. c.setStrokeWidth(2 * strokeWidth);
  1460. c.setStrokeColor(strokeColor2);
  1461. c.setLineJoin('round');
  1462. c.begin();
  1463. c.moveTo(0, h * 0.7915);
  1464. c.lineTo(0, h * 0.7491);
  1465. c.lineTo(w * 0.0588, h * 0.7279);
  1466. c.lineTo(w * 0.0588, h * 0.1036);
  1467. c.lineTo(w * 0.3526, 0);
  1468. c.lineTo(w * 0.9422, h * 0.2073);
  1469. c.lineTo(w * 0.9422, h * 0.8316);
  1470. c.lineTo(w, h * 0.8539);
  1471. c.lineTo(w, h * 0.894);
  1472. c.lineTo(w * 0.7013, h);
  1473. c.lineTo(w * 0.5877, h);
  1474. c.close();
  1475. c.stroke();
  1476. };
  1477. mxCellRenderer.registerShape(mxShapeAws3dCloudFront.prototype.cst.CLOUDFRONT, mxShapeAws3dCloudFront);
  1478. //**********************************************************************************************************************************************************
  1479. //Data Center
  1480. //**********************************************************************************************************************************************************
  1481. /**
  1482. * Extends mxShape.
  1483. */
  1484. function mxShapeAws3dDataCenter(bounds, fill, stroke, strokewidth)
  1485. {
  1486. mxShape.call(this);
  1487. this.bounds = bounds;
  1488. this.fill = fill;
  1489. this.stroke = stroke;
  1490. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  1491. };
  1492. /**
  1493. * Extends mxShape.
  1494. */
  1495. mxUtils.extend(mxShapeAws3dDataCenter, mxShape);
  1496. mxShapeAws3dDataCenter.prototype.cst = {
  1497. DATA_CENTER : 'mxgraph.aws3d.dataCenter',
  1498. SHADING_COLORS : 'shadingCols'
  1499. };
  1500. mxShapeAws3dDataCenter.prototype.customProperties = [
  1501. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  1502. ];
  1503. /**
  1504. * Function: paintVertexShape
  1505. *
  1506. * Paints the vertex shape.
  1507. */
  1508. mxShapeAws3dDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)
  1509. {
  1510. c.translate(x, y);
  1511. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  1512. var strokeWidth1 = strokeWidth * w / 123;
  1513. var strokeWidth2 = strokeWidth * h / 142;
  1514. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  1515. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  1516. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  1517. c.setShadow(false);
  1518. c.setStrokeWidth(strokeWidth);
  1519. c.save();
  1520. c.save();
  1521. c.setStrokeWidth(2 * strokeWidth);
  1522. c.setStrokeColor(strokeColor2);
  1523. c.setLineJoin('round');
  1524. if (isShadow == 1)
  1525. {
  1526. c.setShadow(true);
  1527. }
  1528. c.begin();
  1529. c.moveTo(0, h * 0.7465);
  1530. c.lineTo(0, h * 0.25);
  1531. c.lineTo(w * 0.5, 0);
  1532. c.lineTo(w, h * 0.25);
  1533. c.lineTo(w, h * 0.7465);
  1534. c.lineTo(w * 0.5, h);
  1535. c.close();
  1536. c.fillAndStroke();
  1537. c.restore();
  1538. c.setFillColor('#000000');
  1539. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataCenter.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  1540. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  1541. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  1542. c.begin();
  1543. c.moveTo(0, h * 0.7465);
  1544. c.lineTo(0, h * 0.25);
  1545. c.lineTo(w * 0.5, h * 0.5);
  1546. c.lineTo(w * 0.5, h);
  1547. c.close();
  1548. c.fill();
  1549. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  1550. c.begin();
  1551. c.moveTo(w, h * 0.7465);
  1552. c.lineTo(w, h * 0.25);
  1553. c.lineTo(w * 0.5, h * 0.5);
  1554. c.lineTo(w * 0.5, h);
  1555. c.close();
  1556. c.fill();
  1557. c.restore();
  1558. c.setLineJoin('round');
  1559. c.begin();
  1560. c.moveTo(0, h * 0.7465);
  1561. c.lineTo(0, h * 0.25);
  1562. c.lineTo(w * 0.5, h * 0.5);
  1563. c.lineTo(w * 0.5, h);
  1564. c.close();
  1565. c.stroke();
  1566. c.begin();
  1567. c.moveTo(w, h * 0.7465);
  1568. c.lineTo(w, h * 0.25);
  1569. c.lineTo(w * 0.5, h * 0.5);
  1570. c.lineTo(w * 0.5, h);
  1571. c.close();
  1572. c.stroke();
  1573. c.setLineCap('round');
  1574. c.setStrokeWidth(3 * strokeWidth);
  1575. c.begin();
  1576. c.moveTo(w * 0.0894, h * 0.3838);
  1577. c.lineTo(w * 0.4187, h * 0.5493);
  1578. c.moveTo(w * 0.0894, h * 0.4331);
  1579. c.lineTo(w * 0.4187, h * 0.5986);
  1580. c.moveTo(w * 0.0894, h * 0.4824);
  1581. c.lineTo(w * 0.4187, h * 0.6479);
  1582. c.moveTo(w * 0.5854, h * 0.5493);
  1583. c.lineTo(w * 0.9146, h * 0.3838);
  1584. c.moveTo(w * 0.5854, h * 0.5986);
  1585. c.lineTo(w * 0.9146, h * 0.4331);
  1586. c.moveTo(w * 0.5854, h * 0.6479);
  1587. c.lineTo(w * 0.9146, h * 0.4824);
  1588. c.stroke();
  1589. c.setStrokeWidth(2 * strokeWidth);
  1590. c.setStrokeColor(strokeColor2);
  1591. c.setLineJoin('round');
  1592. c.begin();
  1593. c.moveTo(0, h * 0.7465);
  1594. c.lineTo(0, h * 0.25);
  1595. c.lineTo(w * 0.5, 0);
  1596. c.lineTo(w, h * 0.25);
  1597. c.lineTo(w, h * 0.7465);
  1598. c.lineTo(w * 0.5, h);
  1599. c.close();
  1600. c.stroke();
  1601. };
  1602. mxCellRenderer.registerShape(mxShapeAws3dDataCenter.prototype.cst.DATA_CENTER, mxShapeAws3dDataCenter);
  1603. //**********************************************************************************************************************************************************
  1604. //Data Server
  1605. //**********************************************************************************************************************************************************
  1606. /**
  1607. * Extends mxShape.
  1608. */
  1609. function mxShapeAws3dDataServer(bounds, fill, stroke, strokewidth)
  1610. {
  1611. mxShape.call(this);
  1612. this.bounds = bounds;
  1613. this.fill = fill;
  1614. this.stroke = stroke;
  1615. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  1616. };
  1617. /**
  1618. * Extends mxShape.
  1619. */
  1620. mxUtils.extend(mxShapeAws3dDataServer, mxShape);
  1621. mxShapeAws3dDataServer.prototype.cst = {
  1622. DATA_SERVER : 'mxgraph.aws3d.dataServer',
  1623. SHADING_COLORS : 'shadingCols'
  1624. };
  1625. mxShapeAws3dDataServer.prototype.customProperties = [
  1626. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  1627. ];
  1628. /**
  1629. * Function: paintVertexShape
  1630. *
  1631. * Paints the vertex shape.
  1632. */
  1633. mxShapeAws3dDataServer.prototype.paintVertexShape = function(c, x, y, w, h)
  1634. {
  1635. c.translate(x, y);
  1636. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  1637. var strokeWidth1 = strokeWidth * w / 123;
  1638. var strokeWidth2 = strokeWidth * h / 106;
  1639. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  1640. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  1641. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  1642. c.setShadow(false);
  1643. c.setStrokeWidth(strokeWidth);
  1644. c.save();
  1645. c.save();
  1646. c.setStrokeWidth(2 * strokeWidth);
  1647. c.setStrokeColor(strokeColor2);
  1648. c.setLineJoin('round');
  1649. if (isShadow == 1)
  1650. {
  1651. c.setShadow(true);
  1652. }
  1653. c.begin();
  1654. c.moveTo(0, h * 0.6651);
  1655. c.lineTo(0, h * 0.3349);
  1656. c.lineTo(w * 0.5, 0);
  1657. c.lineTo(w, h * 0.3349);
  1658. c.lineTo(w, h * 0.6651);
  1659. c.lineTo(w * 0.5, h);
  1660. c.close();
  1661. c.fillAndStroke();
  1662. c.restore();
  1663. c.setFillColor('#000000');
  1664. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  1665. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  1666. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  1667. c.begin();
  1668. c.moveTo(0, h * 0.6651);
  1669. c.lineTo(0, h * 0.3349);
  1670. c.lineTo(w * 0.5, h * 0.6698);
  1671. c.lineTo(w * 0.5, h);
  1672. c.close();
  1673. c.fill();
  1674. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  1675. c.begin();
  1676. c.moveTo(w, h * 0.6651);
  1677. c.lineTo(w, h * 0.3349);
  1678. c.lineTo(w * 0.5, h * 0.6698);
  1679. c.lineTo(w * 0.5, h);
  1680. c.close();
  1681. c.fill();
  1682. c.restore();
  1683. c.setLineJoin('round');
  1684. c.begin();
  1685. c.moveTo(0, h * 0.6651);
  1686. c.lineTo(0, h * 0.3349);
  1687. c.lineTo(w * 0.5, h * 0.6698);
  1688. c.lineTo(w * 0.5, h);
  1689. c.close();
  1690. c.stroke();
  1691. c.begin();
  1692. c.moveTo(w, h * 0.6651);
  1693. c.lineTo(w, h * 0.3349);
  1694. c.lineTo(w * 0.5, h * 0.6698);
  1695. c.lineTo(w * 0.5, h);
  1696. c.close();
  1697. c.stroke();
  1698. c.setLineCap('round');
  1699. c.setStrokeWidth(3 * strokeWidth);
  1700. c.begin();
  1701. c.moveTo(w * 0.0878, h * 0.4858);
  1702. c.lineTo(w * 0.4187, h * 0.7094);
  1703. c.moveTo(w * 0.587, h * 0.7094);
  1704. c.lineTo(w * 0.9187, h * 0.4858);
  1705. c.stroke();
  1706. c.setStrokeWidth(2 * strokeWidth);
  1707. c.setStrokeColor(strokeColor2);
  1708. c.setLineJoin('round');
  1709. c.begin();
  1710. c.moveTo(0, h * 0.6651);
  1711. c.lineTo(0, h * 0.3349);
  1712. c.lineTo(w * 0.5, 0);
  1713. c.lineTo(w, h * 0.3349);
  1714. c.lineTo(w, h * 0.6651);
  1715. c.lineTo(w * 0.5, h);
  1716. c.close();
  1717. c.stroke();
  1718. };
  1719. mxCellRenderer.registerShape(mxShapeAws3dDataServer.prototype.cst.DATA_SERVER, mxShapeAws3dDataServer);
  1720. //**********************************************************************************************************************************************************
  1721. //Elastic Load Balancing
  1722. //**********************************************************************************************************************************************************
  1723. /**
  1724. * Extends mxShape.
  1725. */
  1726. function mxShapeAws3dElasticLoadBalancing(bounds, fill, stroke, strokewidth)
  1727. {
  1728. mxShape.call(this);
  1729. this.bounds = bounds;
  1730. this.fill = fill;
  1731. this.stroke = stroke;
  1732. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  1733. };
  1734. /**
  1735. * Extends mxShape.
  1736. */
  1737. mxUtils.extend(mxShapeAws3dElasticLoadBalancing, mxShape);
  1738. mxShapeAws3dElasticLoadBalancing.prototype.cst = {
  1739. ELASTIC_LOAD_BALANCING : 'mxgraph.aws3d.elasticLoadBalancing',
  1740. SHADING_COLORS : 'shadingCols'
  1741. };
  1742. mxShapeAws3dElasticLoadBalancing.prototype.customProperties = [
  1743. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  1744. ];
  1745. /**
  1746. * Function: paintVertexShape
  1747. *
  1748. * Paints the vertex shape.
  1749. */
  1750. mxShapeAws3dElasticLoadBalancing.prototype.paintVertexShape = function(c, x, y, w, h)
  1751. {
  1752. c.translate(x, y);
  1753. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  1754. var strokeWidth1 = strokeWidth * w / 92;
  1755. var strokeWidth2 = strokeWidth * h / 88.17;
  1756. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  1757. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  1758. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  1759. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  1760. c.setShadow(false);
  1761. c.setStrokeWidth(strokeWidth);
  1762. c.save();
  1763. c.save();
  1764. c.save();
  1765. c.save();
  1766. c.setStrokeWidth(2 * strokeWidth);
  1767. c.setStrokeColor(strokeColor2);
  1768. c.setLineJoin('round');
  1769. if (isShadow == 1)
  1770. {
  1771. c.setShadow(true);
  1772. }
  1773. c.begin();
  1774. c.moveTo(0, h * 0.7996);
  1775. c.lineTo(0, h * 0.1985);
  1776. c.lineTo(w * 0.3315, 0);
  1777. c.lineTo(w * 0.6685, 0);
  1778. c.lineTo(w, h * 0.1985);
  1779. c.lineTo(w, h * 0.7996);
  1780. c.lineTo(w * 0.6685, h);
  1781. c.lineTo(w * 0.3315, h);
  1782. c.close();
  1783. c.fillAndStroke();
  1784. c.restore();
  1785. c.setFillColor('#000000');
  1786. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticLoadBalancing.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  1787. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  1788. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  1789. c.begin();
  1790. c.moveTo(0, h * 0.4026);
  1791. c.lineTo(w * 0.3315, h * 0.6011);
  1792. c.lineTo(w * 0.6685, h * 0.6011);
  1793. c.lineTo(w * 0.6685, h);
  1794. c.lineTo(w * 0.3315, h);
  1795. c.lineTo(0, h * 0.7996);
  1796. c.close();
  1797. c.fill();
  1798. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  1799. c.begin();
  1800. c.moveTo(w * 0.6685, h * 0.6011);
  1801. c.lineTo(w, h * 0.4026);
  1802. c.lineTo(w, h * 0.7996);
  1803. c.lineTo(w * 0.6685, h);
  1804. c.close();
  1805. c.fill();
  1806. c.restore();
  1807. c.setLineJoin('round');
  1808. c.begin();
  1809. c.moveTo(0, h * 0.4026);
  1810. c.lineTo(w * 0.3315, h * 0.6011);
  1811. c.lineTo(w * 0.6685, h * 0.6011);
  1812. c.lineTo(w * 0.6685, h);
  1813. c.lineTo(w * 0.3315, h);
  1814. c.lineTo(0, h * 0.7996);
  1815. c.close();
  1816. c.stroke();
  1817. c.begin();
  1818. c.moveTo(w * 0.6685, h * 0.6011);
  1819. c.lineTo(w, h * 0.4026);
  1820. c.lineTo(w, h * 0.7996);
  1821. c.lineTo(w * 0.6685, h);
  1822. c.close();
  1823. c.moveTo(w * 0.3315, h * 0.6011);
  1824. c.lineTo(w * 0.3315, h);
  1825. c.stroke();
  1826. c.restore();
  1827. c.setFillColor(strokeColor);
  1828. c.begin();
  1829. c.moveTo(w * 0.337, h * 0.1395);
  1830. c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.5, h * 0.1191);
  1831. c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.6739, h * 0.1645);
  1832. c.arcTo(w * 0.3261, h * 0.2155, 0, 0, 1, w * 0.8152, h * 0.3176);
  1833. c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.75, h * 0.4367);
  1834. c.arcTo(w * 0.3261, h * 0.3403, 0, 0, 1, w * 0.6033, h * 0.4854);
  1835. c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.4348, h * 0.4741);
  1836. c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2848, h * 0.4094);
  1837. c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2065, h * 0.3062);
  1838. c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.2446, h * 0.1928);
  1839. c.arcTo(w * 0.2717, h * 0.1701, 0, 0, 1, w * 0.337, h * 0.1395);
  1840. c.fill();
  1841. c.restore();
  1842. c.begin();
  1843. c.moveTo(w * 0.2826, h * 0.372);
  1844. c.lineTo(w * 0.362, h * 0.3232);
  1845. c.lineTo(w * 0.4054, h * 0.3482);
  1846. c.lineTo(w * 0.4457, h * 0.2654);
  1847. c.lineTo(w * 0.4185, h * 0.2643);
  1848. c.lineTo(w * 0.4728, h * 0.2132);
  1849. c.lineTo(w * 0.4348, h * 0.1928);
  1850. c.lineTo(w * 0.5141, h * 0.144);
  1851. c.lineTo(w * 0.5837, h * 0.1883);
  1852. c.lineTo(w * 0.5043, h * 0.2348);
  1853. c.lineTo(w * 0.4848, h * 0.2223);
  1854. c.lineTo(w * 0.4967, h * 0.2688);
  1855. c.lineTo(w * 0.463, h * 0.2665);
  1856. c.lineTo(w * 0.4304, h * 0.3346);
  1857. c.lineTo(w * 0.4946, h * 0.2949);
  1858. c.lineTo(w * 0.4761, h * 0.2858);
  1859. c.lineTo(w * 0.5511, h * 0.2631);
  1860. c.lineTo(w * 0.5261, h * 0.2472);
  1861. c.lineTo(w * 0.6043, h * 0.1996);
  1862. c.lineTo(w * 0.6761, h * 0.2404);
  1863. c.lineTo(w * 0.5978, h * 0.2892);
  1864. c.lineTo(w * 0.5652, h * 0.2699);
  1865. c.lineTo(w * 0.5293, h * 0.3198);
  1866. c.lineTo(w * 0.5087, h * 0.3051);
  1867. c.lineTo(w * 0.4543, h * 0.3391);
  1868. c.lineTo(w * 0.563, h * 0.3221);
  1869. c.lineTo(w * 0.5598, h * 0.3017);
  1870. c.lineTo(w * 0.6326, h * 0.3096);
  1871. c.lineTo(w * 0.6163, h * 0.2994);
  1872. c.lineTo(w * 0.6957, h * 0.2529);
  1873. c.lineTo(w * 0.7674, h * 0.2938);
  1874. c.lineTo(w * 0.687, h * 0.3425);
  1875. c.lineTo(w * 0.6489, h * 0.321);
  1876. c.lineTo(w * 0.5707, h * 0.3539);
  1877. c.lineTo(w * 0.5674, h * 0.3369);
  1878. c.lineTo(w * 0.4293, h * 0.3618);
  1879. c.lineTo(w * 0.4641, h * 0.3834);
  1880. c.lineTo(w * 0.3859, h * 0.4299);
  1881. c.close();
  1882. c.fill();
  1883. c.setStrokeWidth(2 * strokeWidth);
  1884. c.setStrokeColor(strokeColor2);
  1885. c.setLineJoin('round');
  1886. c.begin();
  1887. c.moveTo(0, h * 0.7996);
  1888. c.lineTo(0, h * 0.1985);
  1889. c.lineTo(w * 0.3315, 0);
  1890. c.lineTo(w * 0.6685, 0);
  1891. c.lineTo(w, h * 0.1985);
  1892. c.lineTo(w, h * 0.7996);
  1893. c.lineTo(w * 0.6685, h);
  1894. c.lineTo(w * 0.3315, h);
  1895. c.close();
  1896. c.stroke();
  1897. };
  1898. mxCellRenderer.registerShape(mxShapeAws3dElasticLoadBalancing.prototype.cst.ELASTIC_LOAD_BALANCING, mxShapeAws3dElasticLoadBalancing);
  1899. //**********************************************************************************************************************************************************
  1900. //Instance
  1901. //**********************************************************************************************************************************************************
  1902. /**
  1903. * Extends mxShape.
  1904. */
  1905. function mxShapeAws3dInstance(bounds, fill, stroke, strokewidth)
  1906. {
  1907. mxShape.call(this);
  1908. this.bounds = bounds;
  1909. this.fill = fill;
  1910. this.stroke = stroke;
  1911. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  1912. };
  1913. /**
  1914. * Extends mxShape.
  1915. */
  1916. mxUtils.extend(mxShapeAws3dInstance, mxShape);
  1917. mxShapeAws3dInstance.prototype.cst = {
  1918. INSTANCE : 'mxgraph.aws3d.instance',
  1919. SHADING_COLORS : 'shadingCols'
  1920. };
  1921. mxShapeAws3dInstance.prototype.customProperties = [
  1922. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  1923. ];
  1924. /**
  1925. * Function: paintVertexShape
  1926. *
  1927. * Paints the vertex shape.
  1928. */
  1929. mxShapeAws3dInstance.prototype.paintVertexShape = function(c, x, y, w, h)
  1930. {
  1931. c.translate(x, y);
  1932. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  1933. var strokeWidth1 = strokeWidth * w / 123;
  1934. var strokeWidth2 = strokeWidth * h / 97;
  1935. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  1936. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  1937. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  1938. c.setShadow(false);
  1939. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  1940. };
  1941. mxShapeAws3dInstance.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  1942. {
  1943. c.setStrokeWidth(strokeWidth);
  1944. c.save();
  1945. c.save();
  1946. c.setStrokeWidth(2 * strokeWidth);
  1947. c.setStrokeColor(strokeColor2);
  1948. c.setLineJoin('round');
  1949. c.begin();
  1950. c.moveTo(0, h * 0.634);
  1951. c.lineTo(0, h * 0.2732);
  1952. c.lineTo(w * 0.374, 0);
  1953. c.lineTo(w * 0.622, 0);
  1954. c.lineTo(w, h * 0.2732);
  1955. c.lineTo(w, h * 0.634);
  1956. c.lineTo(w * 0.5, h);
  1957. c.close();
  1958. c.fillAndStroke();
  1959. };
  1960. mxShapeAws3dInstance.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  1961. {
  1962. c.restore();
  1963. c.setShadow(false);
  1964. c.setFillColor('#000000');
  1965. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInstance.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  1966. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  1967. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  1968. c.begin();
  1969. c.moveTo(0, h * 0.2732);
  1970. c.lineTo(w * 0.5, h * 0.6392);
  1971. c.lineTo(w * 0.5, h);
  1972. c.lineTo(0, h * 0.634);
  1973. c.close();
  1974. c.fill();
  1975. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  1976. c.begin();
  1977. c.moveTo(w * 0.5, h * 0.6392);
  1978. c.lineTo(w, h * 0.2732);
  1979. c.lineTo(w, h * 0.6392);
  1980. c.lineTo(w * 0.5, h);
  1981. c.close();
  1982. c.fill();
  1983. c.restore();
  1984. c.setShadow(false);
  1985. c.setLineJoin('round');
  1986. c.begin();
  1987. c.moveTo(0, h * 0.2732);
  1988. c.lineTo(w * 0.5, h * 0.6392);
  1989. c.lineTo(w * 0.5, h);
  1990. c.lineTo(0, h * 0.634);
  1991. c.close();
  1992. c.stroke();
  1993. c.begin();
  1994. c.moveTo(w * 0.5, h * 0.6392);
  1995. c.lineTo(w, h * 0.2732);
  1996. c.lineTo(w, h * 0.6392);
  1997. c.lineTo(w * 0.5, h);
  1998. c.close();
  1999. c.stroke();
  2000. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  2001. c.setFillColor(strokeColor);
  2002. c.begin();
  2003. c.moveTo(w * 0.374, h * 0.4742);
  2004. c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.374, h * 0.4381);
  2005. c.lineTo(w * 0.4797, h * 0.3608);
  2006. c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.5203, h * 0.3608);
  2007. c.lineTo(w * 0.626, h * 0.4381);
  2008. c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.626, h * 0.4711);
  2009. c.lineTo(w * 0.5203, h * 0.5485);
  2010. c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.4797, h * 0.5485);
  2011. c.close();
  2012. c.fill();
  2013. c.setStrokeWidth(2 * strokeWidth);
  2014. c.setStrokeColor(strokeColor2);
  2015. c.setLineJoin('round');
  2016. c.begin();
  2017. c.moveTo(0, h * 0.634);
  2018. c.lineTo(0, h * 0.2732);
  2019. c.lineTo(w * 0.374, 0);
  2020. c.lineTo(w * 0.622, 0);
  2021. c.lineTo(w, h * 0.2732);
  2022. c.lineTo(w, h * 0.634);
  2023. c.lineTo(w * 0.5, h);
  2024. c.close();
  2025. c.stroke();
  2026. };
  2027. mxCellRenderer.registerShape(mxShapeAws3dInstance.prototype.cst.INSTANCE, mxShapeAws3dInstance);
  2028. //**********************************************************************************************************************************************************
  2029. //Internet Gateway
  2030. //**********************************************************************************************************************************************************
  2031. /**
  2032. * Extends mxShape.
  2033. */
  2034. function mxShapeAws3dInternetGateway(bounds, fill, stroke, strokewidth)
  2035. {
  2036. mxShape.call(this);
  2037. this.bounds = bounds;
  2038. this.fill = fill;
  2039. this.stroke = stroke;
  2040. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  2041. };
  2042. /**
  2043. * Extends mxShape.
  2044. */
  2045. mxUtils.extend(mxShapeAws3dInternetGateway, mxShape);
  2046. mxShapeAws3dInternetGateway.prototype.cst = {
  2047. INTERNET_GATEWAY : 'mxgraph.aws3d.internetGateway',
  2048. SHADING_COLORS : 'shadingCols'
  2049. };
  2050. mxShapeAws3dInternetGateway.prototype.customProperties = [
  2051. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  2052. ];
  2053. /**
  2054. * Function: paintVertexShape
  2055. *
  2056. * Paints the vertex shape.
  2057. */
  2058. mxShapeAws3dInternetGateway.prototype.paintVertexShape = function(c, x, y, w, h)
  2059. {
  2060. c.translate(x, y);
  2061. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  2062. var strokeWidth1 = strokeWidth * w / 116.7;
  2063. var strokeWidth2 = strokeWidth * h / 102.8;
  2064. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  2065. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  2066. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2067. c.setShadow(false);
  2068. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2069. };
  2070. mxShapeAws3dInternetGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2071. {
  2072. c.setStrokeWidth(strokeWidth);
  2073. c.save();
  2074. c.save();
  2075. c.save();
  2076. c.save();
  2077. c.save();
  2078. c.setStrokeWidth(2 * strokeWidth);
  2079. c.setStrokeColor(strokeColor2);
  2080. c.setLineJoin('round');
  2081. c.begin();
  2082. c.moveTo(w * 0.4199, h * 0.5447);
  2083. c.lineTo(w * 0.4199, h * 0.035);
  2084. c.lineTo(w * 0.8946, 0);
  2085. c.lineTo(w, h * 0.0691);
  2086. c.lineTo(w, h * 0.4134);
  2087. c.lineTo(w * 0.6812, h * 0.7247);
  2088. c.close();
  2089. c.fillAndStroke();
  2090. c.restore();
  2091. c.save();
  2092. c.setShadow(false);
  2093. c.setFillColor('#000000');
  2094. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  2095. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  2096. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  2097. c.begin();
  2098. c.moveTo(w * 0.4199, h * 0.5447);
  2099. c.lineTo(w * 0.4199, h * 0.035);
  2100. c.lineTo(w * 0.6838, h * 0.2072);
  2101. c.lineTo(w * 0.6838, h * 0.7247);
  2102. c.close();
  2103. c.fill();
  2104. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  2105. c.begin();
  2106. c.moveTo(w * 0.6838, h * 0.2072);
  2107. c.lineTo(w, h * 0.0691);
  2108. c.lineTo(w, h * 0.4134);
  2109. c.lineTo(w * 0.6838, h * 0.7247);
  2110. c.close();
  2111. c.fill();
  2112. c.restore();
  2113. c.setShadow(false);
  2114. c.begin();
  2115. c.moveTo(w * 0.4199, h * 0.5447);
  2116. c.lineTo(w * 0.4199, h * 0.035);
  2117. c.lineTo(w * 0.6838, h * 0.2072);
  2118. c.lineTo(w * 0.6838, h * 0.7247);
  2119. c.close();
  2120. c.stroke();
  2121. c.restore();
  2122. c.setLineJoin('round');
  2123. c.setShadow(false);
  2124. c.begin();
  2125. c.moveTo(w * 0.6838, h * 0.2072);
  2126. c.lineTo(w, h * 0.0691);
  2127. c.lineTo(w, h * 0.4134);
  2128. c.lineTo(w * 0.6838, h * 0.7247);
  2129. c.close();
  2130. c.stroke();
  2131. c.setStrokeWidth(2 * strokeWidth);
  2132. c.setStrokeColor(strokeColor2);
  2133. c.begin();
  2134. c.moveTo(w * 0.4199, h * 0.5447);
  2135. c.lineTo(w * 0.4199, h * 0.035);
  2136. c.lineTo(w * 0.8946, 0);
  2137. c.lineTo(w, h * 0.0691);
  2138. c.lineTo(w, h * 0.4134);
  2139. c.lineTo(w * 0.6812, h * 0.7247);
  2140. c.close();
  2141. c.stroke();
  2142. c.restore();
  2143. c.setStrokeWidth(2 * strokeWidth);
  2144. c.setStrokeColor(strokeColor2);
  2145. c.setLineJoin('round');
  2146. c.begin();
  2147. c.moveTo(0, h * 0.929);
  2148. c.lineTo(0, h * 0.5866);
  2149. c.lineTo(w * 0.3171, h * 0.1031);
  2150. c.lineTo(w * 0.5784, h * 0.2753);
  2151. c.lineTo(w * 0.5784, h * 0.7928);
  2152. c.lineTo(w * 0.1054, h);
  2153. c.close();
  2154. c.fillAndStroke();
  2155. };
  2156. mxShapeAws3dInternetGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2157. {
  2158. c.restore();
  2159. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  2160. c.setShadow(false);
  2161. c.setLineJoin('round');
  2162. c.setFillColor('#000000');
  2163. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  2164. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  2165. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  2166. c.begin();
  2167. c.moveTo(0, h * 0.929);
  2168. c.lineTo(0, h * 0.5866);
  2169. c.lineTo(w * 0.1054, h * 0.6537);
  2170. c.lineTo(w * 0.1054, h);
  2171. c.close();
  2172. c.fill();
  2173. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  2174. c.begin();
  2175. c.moveTo(w * 0.1054, h);
  2176. c.lineTo(w * 0.1054, h * 0.6537);
  2177. c.lineTo(w * 0.5784, h * 0.2753);
  2178. c.lineTo(w * 0.5784, h * 0.7928);
  2179. c.close();
  2180. c.fill();
  2181. c.restore();
  2182. c.setShadow(false);
  2183. c.setLineJoin('round');
  2184. c.begin();
  2185. c.moveTo(0, h * 0.929);
  2186. c.lineTo(0, h * 0.5866);
  2187. c.lineTo(w * 0.1054, h * 0.6537);
  2188. c.lineTo(w * 0.1054, h);
  2189. c.close();
  2190. c.stroke();
  2191. c.begin();
  2192. c.moveTo(w * 0.1054, h);
  2193. c.lineTo(w * 0.1054, h * 0.6537);
  2194. c.lineTo(w * 0.5784, h * 0.2753);
  2195. c.lineTo(w * 0.5784, h * 0.7928);
  2196. c.close();
  2197. c.stroke();
  2198. c.setStrokeWidth(2 * strokeWidth);
  2199. c.setStrokeColor(strokeColor2);
  2200. c.setLineJoin('round');
  2201. c.begin();
  2202. c.moveTo(0, h * 0.929);
  2203. c.lineTo(0, h * 0.5866);
  2204. c.lineTo(w * 0.3171, h * 0.1031);
  2205. c.lineTo(w * 0.5784, h * 0.2753);
  2206. c.lineTo(w * 0.5784, h * 0.7928);
  2207. c.lineTo(w * 0.1054, h);
  2208. c.close();
  2209. c.stroke();
  2210. c.setFillColor(strokeColor);
  2211. c.begin();
  2212. c.moveTo(w * 0.7849, h * 0.5039);
  2213. c.arcTo(w * 0.0343, h * 0.0632, 0, 0, 1, w * 0.7481, h * 0.4796);
  2214. c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.7661, h * 0.3911);
  2215. c.arcTo(w * 0.06, h * 0.0681, 0, 0, 1, w * 0.7712, h * 0.3356);
  2216. c.arcTo(w * 0.0257, h * 0.0292, 0, 0, 1, w * 0.7952, h * 0.32);
  2217. c.arcTo(w * 0.1285, h * 0.1459, 0, 0, 1, w * 0.8166, h * 0.2461);
  2218. c.arcTo(w * 0.06, h * 0.0973, 0, 0, 1, w * 0.8595, h * 0.2238);
  2219. c.arcTo(w * 0.0514, h * 0.0973, 0, 0, 1, w * 0.8937, h * 0.2743);
  2220. c.arcTo(w * 0.0428, h * 0.0778, 0, 0, 1, w * 0.9323, h * 0.3093);
  2221. c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.928, h * 0.3716);
  2222. c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8972, h * 0.4125);
  2223. c.close();
  2224. c.fill();
  2225. };
  2226. mxCellRenderer.registerShape(mxShapeAws3dInternetGateway.prototype.cst.INTERNET_GATEWAY, mxShapeAws3dInternetGateway);
  2227. //**********************************************************************************************************************************************************
  2228. //Oracle Data Center
  2229. //**********************************************************************************************************************************************************
  2230. /**
  2231. * Extends mxShape.
  2232. */
  2233. function mxShapeAws3dOracleDataCenter(bounds, fill, stroke, strokewidth)
  2234. {
  2235. mxShape.call(this);
  2236. this.bounds = bounds;
  2237. this.fill = fill;
  2238. this.stroke = stroke;
  2239. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  2240. };
  2241. /**
  2242. * Extends mxShape.
  2243. */
  2244. mxUtils.extend(mxShapeAws3dOracleDataCenter, mxShape);
  2245. mxShapeAws3dOracleDataCenter.prototype.cst = {
  2246. ORACLE_DATA_CENTER : 'mxgraph.aws3d.oracleDataCenter'
  2247. };
  2248. mxShapeAws3dOracleDataCenter.prototype.customProperties = [
  2249. {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},
  2250. {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},
  2251. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  2252. ];
  2253. /**
  2254. * Function: paintVertexShape
  2255. *
  2256. * Paints the vertex shape.
  2257. */
  2258. mxShapeAws3dOracleDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)
  2259. {
  2260. c.translate(x, y);
  2261. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  2262. var strokeWidth1 = strokeWidth * w / 123;
  2263. var strokeWidth2 = strokeWidth * h /142;
  2264. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  2265. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  2266. c.setStrokeWidth(strokeWidth);
  2267. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2268. c.setShadow(false);
  2269. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2270. };
  2271. mxShapeAws3dOracleDataCenter.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2272. {
  2273. c.save();
  2274. c.save();
  2275. c.save();
  2276. c.setStrokeWidth(2 * strokeWidth);
  2277. c.setStrokeColor(strokeColor2);
  2278. c.setLineJoin('round');
  2279. c.begin();
  2280. c.moveTo(0, h * 0.7464);
  2281. c.lineTo(0, h * 0.25);
  2282. c.lineTo(w * 0.5, 0);
  2283. c.lineTo(w, h * 0.25);
  2284. c.lineTo(w, h * 0.7464);
  2285. c.lineTo(w * 0.5, h);
  2286. c.close();
  2287. c.fillAndStroke();
  2288. };
  2289. mxShapeAws3dOracleDataCenter.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2290. {
  2291. var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');
  2292. var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');
  2293. c.restore();
  2294. c.setShadow(false);
  2295. c.setFillColor('#000000');
  2296. c.setAlpha('0.1');
  2297. c.begin();
  2298. c.moveTo(0, h * 0.7464);
  2299. c.lineTo(0, h * 0.25);
  2300. c.lineTo(w * 0.5, h * 0.5);
  2301. c.lineTo(w * 0.5, h);
  2302. c.close();
  2303. c.fill();
  2304. c.setAlpha('0.3');
  2305. c.begin();
  2306. c.moveTo(w * 0.5, h * 0.5);
  2307. c.lineTo(w, h * 0.25);
  2308. c.lineTo(w, h * 0.7464);
  2309. c.lineTo(w * 0.5, h);
  2310. c.close();
  2311. c.fill();
  2312. c.restore();
  2313. c.setShadow(false);
  2314. c.setLineJoin('round');
  2315. c.setFillColor(fillColor2);
  2316. c.begin();
  2317. c.moveTo(0, h * 0.5866);
  2318. c.lineTo(w * 0.5, h * 0.8359);
  2319. c.lineTo(w, h * 0.5866);
  2320. c.lineTo(w, h * 0.6986);
  2321. c.lineTo(w * 0.5, h * 0.9486);
  2322. c.lineTo(0, h * 0.6986);
  2323. c.fill();
  2324. c.setStrokeWidth(0.5 * strokeWidth);
  2325. c.setStrokeColor(fillColor3);
  2326. c.setFillColor(fillColor3);
  2327. c.begin();
  2328. c.moveTo(0, h * 0.5866);
  2329. c.lineTo(w * 0.5, h * 0.8359);
  2330. c.lineTo(w, h * 0.5866);
  2331. c.moveTo(w, h * 0.6986);
  2332. c.lineTo(w * 0.5, h * 0.9486);
  2333. c.lineTo(0, h * 0.6986);
  2334. c.stroke();
  2335. c.begin();
  2336. c.moveTo(w * 0.0813, h * 0.7113);
  2337. c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);
  2338. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);
  2339. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);
  2340. c.lineTo(w * 0.122, h * 0.6754);
  2341. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);
  2342. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);
  2343. c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);
  2344. c.close();
  2345. c.moveTo(w * 0.1163, h * 0.7183);
  2346. c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);
  2347. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);
  2348. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);
  2349. c.lineTo(w * 0.087, h * 0.6676);
  2350. c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);
  2351. c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);
  2352. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);
  2353. c.close();
  2354. c.moveTo(w * 0.1439, h * 0.743);
  2355. c.lineTo(w * 0.1439, h * 0.6866);
  2356. c.lineTo(w * 0.1846, h * 0.707);
  2357. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);
  2358. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);
  2359. c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);
  2360. c.lineTo(w * 0.1992, h * 0.769);
  2361. c.lineTo(w * 0.187, h * 0.7641);
  2362. c.lineTo(w * 0.1577, h * 0.7218);
  2363. c.lineTo(w * 0.1854, h * 0.7345);
  2364. c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);
  2365. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);
  2366. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);
  2367. c.lineTo(w * 0.1528, h * 0.7007);
  2368. c.lineTo(w * 0.1528, h * 0.7472);
  2369. c.close();
  2370. c.moveTo(w * 0.2008, h * 0.7711);
  2371. c.lineTo(w * 0.2293, h * 0.7338);
  2372. c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);
  2373. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);
  2374. c.lineTo(w * 0.2699, h * 0.8035);
  2375. c.lineTo(w * 0.2602, h * 0.8007);
  2376. c.lineTo(w * 0.252, h * 0.7859);
  2377. c.lineTo(w * 0.2293, h * 0.7754);
  2378. c.lineTo(w * 0.2244, h * 0.7634);
  2379. c.lineTo(w * 0.248, h * 0.7739);
  2380. c.lineTo(w * 0.235, h * 0.7444);
  2381. c.lineTo(w * 0.2122, h * 0.7768);
  2382. c.close();
  2383. c.moveTo(w * 0.3244, h * 0.8225);
  2384. c.lineTo(w * 0.3171, h * 0.8289);
  2385. c.lineTo(w * 0.2854, h * 0.8127);
  2386. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);
  2387. c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);
  2388. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);
  2389. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);
  2390. c.lineTo(w * 0.3228, h * 0.7761);
  2391. c.lineTo(w * 0.3179, h * 0.7831);
  2392. c.lineTo(w * 0.2878, h * 0.7683);
  2393. c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);
  2394. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);
  2395. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);
  2396. c.close();
  2397. c.moveTo(w * 0.3276, h * 0.7789);
  2398. c.lineTo(w * 0.3366, h * 0.7831);
  2399. c.lineTo(w * 0.3366, h * 0.8289);
  2400. c.lineTo(w * 0.3805, h * 0.8507);
  2401. c.lineTo(w * 0.3748, h * 0.857);
  2402. c.lineTo(w * 0.3317, h * 0.8359);
  2403. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);
  2404. c.close();
  2405. c.moveTo(w * 0.435, h * 0.8775);
  2406. c.lineTo(w * 0.4325, h * 0.8866);
  2407. c.lineTo(w * 0.3959, h * 0.8683);
  2408. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);
  2409. c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);
  2410. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);
  2411. c.lineTo(w * 0.435, h * 0.8324);
  2412. c.lineTo(w * 0.4285, h * 0.838);
  2413. c.lineTo(w * 0.4008, h * 0.8246);
  2414. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);
  2415. c.lineTo(w * 0.4333, h * 0.8542);
  2416. c.lineTo(w * 0.426, h * 0.8606);
  2417. c.lineTo(w * 0.3878, h * 0.8415);
  2418. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);
  2419. c.close();
  2420. c.moveTo(w * 0.6171, h * 0.8063);
  2421. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);
  2422. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);
  2423. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);
  2424. c.lineTo(w * 0.5894, h * 0.8761);
  2425. c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);
  2426. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);
  2427. c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);
  2428. c.close();
  2429. c.moveTo(w * 0.5886, h * 0.8296);
  2430. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);
  2431. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);
  2432. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);
  2433. c.lineTo(w * 0.6163, h * 0.8528);
  2434. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);
  2435. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);
  2436. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);
  2437. c.close();
  2438. c.moveTo(w * 0.64, h * 0.85);
  2439. c.lineTo(w * 0.64, h * 0.7930);
  2440. c.lineTo(w * 0.6854, h * 0.7718);
  2441. c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);
  2442. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);
  2443. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);
  2444. c.lineTo(w * 0.6992, h * 0.8218);
  2445. c.lineTo(w * 0.6854, h * 0.8282);
  2446. c.lineTo(w * 0.6569, h * 0.8141);
  2447. c.lineTo(w * 0.6805, h * 0.8021);
  2448. c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);
  2449. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);
  2450. c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);
  2451. c.lineTo(w * 0.6528, h * 0.7979);
  2452. c.lineTo(w * 0.6528, h * 0.8437);
  2453. c.close();
  2454. c.moveTo(w * 0.7, h * 0.8204);
  2455. c.lineTo(w * 0.7301, h * 0.7507);
  2456. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);
  2457. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);
  2458. c.lineTo(w * 0.7699, h * 0.7852);
  2459. c.lineTo(w * 0.7602, h * 0.7908);
  2460. c.lineTo(w * 0.7537, h * 0.7838);
  2461. c.lineTo(w * 0.7276, h * 0.7958);
  2462. c.lineTo(w * 0.7228, h * 0.788);
  2463. c.lineTo(w * 0.748, h * 0.7768);
  2464. c.lineTo(w * 0.7358, h * 0.7585);
  2465. c.lineTo(w * 0.7114, h * 0.8155);
  2466. c.close();
  2467. c.moveTo(w * 0.8244, h * 0.7486);
  2468. c.lineTo(w * 0.8171, h * 0.762);
  2469. c.lineTo(w * 0.7894, h * 0.7761);
  2470. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);
  2471. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);
  2472. c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);
  2473. c.lineTo(w * 0.822, h * 0.7035);
  2474. c.lineTo(w * 0.8171, h * 0.7155);
  2475. c.lineTo(w * 0.7902, h * 0.7296);
  2476. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);
  2477. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);
  2478. c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);
  2479. c.close();
  2480. c.moveTo(w * 0.8366, h * 0.6949);
  2481. c.lineTo(w * 0.8366, h * 0.7423);
  2482. c.lineTo(w * 0.878, h * 0.7231);
  2483. c.lineTo(w * 0.874, h * 0.7338);
  2484. c.lineTo(w * 0.8333, h * 0.7535);
  2485. c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);
  2486. c.lineTo(w * 0.8268, h * 0.7007);
  2487. c.close();
  2488. c.moveTo(w * 0.9342, h * 0.6472);
  2489. c.lineTo(w * 0.9293, h * 0.6599);
  2490. c.lineTo(w * 0.9033, h * 0.6725);
  2491. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);
  2492. c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);
  2493. c.lineTo(w * 0.9309, h * 0.6725);
  2494. c.lineTo(w * 0.9268, h * 0.6845);
  2495. c.lineTo(w * 0.887, h * 0.7035);
  2496. c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);
  2497. c.lineTo(w * 0.935, h * 0.693);
  2498. c.lineTo(w * 0.9285, h * 0.7063);
  2499. c.lineTo(w * 0.9008, h * 0.7197);
  2500. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);
  2501. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);
  2502. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);
  2503. c.fill();
  2504. c.restore();
  2505. c.setShadow(false);
  2506. c.setLineJoin('round');
  2507. c.begin();
  2508. c.moveTo(0, h * 0.7464);
  2509. c.lineTo(0, h * 0.25);
  2510. c.lineTo(w * 0.5, h * 0.5);
  2511. c.lineTo(w * 0.5, h);
  2512. c.close();
  2513. c.stroke();
  2514. c.begin();
  2515. c.moveTo(w * 0.5, h * 0.5);
  2516. c.lineTo(w, h * 0.25);
  2517. c.lineTo(w, h * 0.7464);
  2518. c.lineTo(w * 0.5, h);
  2519. c.close();
  2520. c.stroke();
  2521. c.setStrokeWidth(2 * strokeWidth);
  2522. c.setStrokeColor(strokeColor2);
  2523. c.setLineJoin('round');
  2524. c.begin();
  2525. c.moveTo(0, h * 0.7464);
  2526. c.lineTo(0, h * 0.25);
  2527. c.lineTo(w * 0.5, 0);
  2528. c.lineTo(w, h * 0.25);
  2529. c.lineTo(w, h * 0.7464);
  2530. c.lineTo(w * 0.5, h);
  2531. c.close();
  2532. c.stroke();
  2533. c.restore();
  2534. c.setShadow(false);
  2535. c.setStrokeWidth(3 * strokeWidth);
  2536. c.setLineCap('round');
  2537. c.begin();
  2538. c.moveTo(w * 0.0894, h * 0.3838);
  2539. c.lineTo(w * 0.4187, h * 0.5493);
  2540. c.moveTo(w * 0.0894, h * 0.4331);
  2541. c.lineTo(w * 0.4187, h * 0.5986);
  2542. c.moveTo(w * 0.0894, h * 0.4824);
  2543. c.lineTo(w * 0.4187, h * 0.6479);
  2544. c.moveTo(w * 0.5854, h * 0.5492);
  2545. c.lineTo(w * 0.9146, h * 0.3838);
  2546. c.moveTo(w * 0.5854, h * 0.5986);
  2547. c.lineTo(w * 0.9146, h * 0.4331);
  2548. c.moveTo(w * 0.5854, h * 0.6479);
  2549. c.lineTo(w * 0.9146, h * 0.4824);
  2550. c.stroke();
  2551. };
  2552. mxCellRenderer.registerShape(mxShapeAws3dOracleDataCenter.prototype.cst.ORACLE_DATA_CENTER, mxShapeAws3dOracleDataCenter);
  2553. //**********************************************************************************************************************************************************
  2554. //Oracle Database Server
  2555. //**********************************************************************************************************************************************************
  2556. /**
  2557. * Extends mxShape.
  2558. */
  2559. function mxShapeAws3dOracleDatabaseServer(bounds, fill, stroke, strokewidth)
  2560. {
  2561. mxShape.call(this);
  2562. this.bounds = bounds;
  2563. this.fill = fill;
  2564. this.stroke = stroke;
  2565. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  2566. };
  2567. /**
  2568. * Extends mxShape.
  2569. */
  2570. mxUtils.extend(mxShapeAws3dOracleDatabaseServer, mxShape);
  2571. mxShapeAws3dOracleDatabaseServer.prototype.cst = {
  2572. ORACLE_DB_SERVER : 'mxgraph.aws3d.oracleDbServer'
  2573. };
  2574. mxShapeAws3dOracleDatabaseServer.prototype.customProperties = [
  2575. {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},
  2576. {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},
  2577. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  2578. ];
  2579. /**
  2580. * Function: paintVertexShape
  2581. *
  2582. * Paints the vertex shape.
  2583. */
  2584. mxShapeAws3dOracleDatabaseServer.prototype.paintVertexShape = function(c, x, y, w, h)
  2585. {
  2586. c.translate(x, y);
  2587. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  2588. var strokeWidth1 = strokeWidth * w / 123;
  2589. var strokeWidth2 = strokeWidth * h /142;
  2590. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  2591. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  2592. c.setStrokeWidth(strokeWidth);
  2593. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2594. c.setShadow(false);
  2595. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2596. };
  2597. mxShapeAws3dOracleDatabaseServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2598. {
  2599. c.save();
  2600. c.save();
  2601. c.save();
  2602. c.setStrokeWidth(2 * strokeWidth);
  2603. c.setStrokeColor(strokeColor2);
  2604. c.setLineJoin('round');
  2605. c.begin();
  2606. c.moveTo(0, h * 0.7331);
  2607. c.lineTo(0, h * 0.3346);
  2608. c.lineTo(w * 0.126, h * 0.1316);
  2609. c.lineTo(w * 0.374, 0);
  2610. c.lineTo(w * 0.626, 0);
  2611. c.lineTo(w * 0.874, h * 0.1316);
  2612. c.lineTo(w, h * 0.3346);
  2613. c.lineTo(w, h * 0.7331);
  2614. c.lineTo(w * 0.5, h);
  2615. c.close();
  2616. c.fillAndStroke();
  2617. };
  2618. mxShapeAws3dOracleDatabaseServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2619. {
  2620. var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');
  2621. var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');
  2622. c.restore();
  2623. c.setShadow(false);
  2624. c.setFillColor('#000000');
  2625. c.setAlpha('0.1');
  2626. c.begin();
  2627. c.moveTo(w * 0.126, h * 0.1316);
  2628. c.lineTo(w * 0.126, h * 0.267);
  2629. c.lineTo(w * 0.378, h * 0.4023);
  2630. c.lineTo(w * 0.5, h * 0.6015);
  2631. c.lineTo(w * 0.5, h);
  2632. c.lineTo(0, h * 0.7331);
  2633. c.lineTo(0, h * 0.3346);
  2634. c.close();
  2635. c.moveTo(w * 0.874, h * 0.267);
  2636. c.lineTo(w * 0.874, h * 0.1316);
  2637. c.lineTo(w, h * 0.3308);
  2638. c.fill();
  2639. c.setAlpha('0.3');
  2640. c.begin();
  2641. c.moveTo(w * 0.5, h);
  2642. c.lineTo(w * 0.5, h * 0.6015);
  2643. c.lineTo(w * 0.622, h * 0.4023);
  2644. c.lineTo(w * 0.874, h * 0.267);
  2645. c.lineTo(w, h * 0.3308);
  2646. c.lineTo(w, h * 0.7331);
  2647. c.close();
  2648. c.fill();
  2649. c.restore();
  2650. c.setShadow(false);
  2651. c.setLineJoin('round');
  2652. c.setFillColor(fillColor2);
  2653. c.begin();
  2654. c.moveTo(0, h * 0.5586);
  2655. c.lineTo(w * 0.5, h * 0.8248);
  2656. c.lineTo(w, h * 0.5586);
  2657. c.lineTo(w, h * 0.6782);
  2658. c.lineTo(w * 0.5, h * 0.9453);
  2659. c.lineTo(0, h * 0.6782);
  2660. c.fill();
  2661. c.setStrokeWidth(0.5 * strokeWidth);
  2662. c.setStrokeColor(fillColor3);
  2663. c.setFillColor(fillColor3);
  2664. c.begin();
  2665. c.moveTo(0, h * 0.5586);
  2666. c.lineTo(w * 0.5, h * 0.8248);
  2667. c.lineTo(w, h * 0.5586);
  2668. c.moveTo(w, h * 0.6782);
  2669. c.lineTo(w * 0.5, h * 0.9453);
  2670. c.lineTo(0, h * 0.6782);
  2671. c.stroke();
  2672. c.begin();
  2673. c.moveTo(w * 0.0813, h * 0.6918);
  2674. c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.065, h * 0.6616);
  2675. c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.065, h * 0.6384);
  2676. c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.0797, h * 0.6315);
  2677. c.lineTo(w * 0.122, h * 0.6534);
  2678. c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.1358, h * 0.673);
  2679. c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.139, h * 0.7045);
  2680. c.arcTo(w * 0.0179, h * 0.0165, 0, 0, 1, w * 0.1187, h * 0.7113);
  2681. c.close();
  2682. c.moveTo(w * 0.1163, h * 0.6992);
  2683. c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.1285, h * 0.6955);
  2684. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1293, h * 0.6819);
  2685. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1179, h * 0.6616);
  2686. c.lineTo(w * 0.087, h * 0.6451);
  2687. c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.0764, h * 0.6473);
  2688. c.arcTo(w * 0.0325, h * 0.0376, 0, 0, 0, w * 0.078, h * 0.673);
  2689. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.087, h * 0.6834);
  2690. c.close();
  2691. c.moveTo(w * 0.1439, h * 0.7256);
  2692. c.lineTo(w * 0.1439, h * 0.6654);
  2693. c.lineTo(w * 0.1846, h * 0.6872);
  2694. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.1967, h * 0.6992);
  2695. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2, h * 0.7203);
  2696. c.arcTo(w * 0.0138, h * 0.0165, 0, 0, 1, w * 0.1813, h * 0.7256);
  2697. c.lineTo(w * 0.1992, h * 0.7534);
  2698. c.lineTo(w * 0.187, h * 0.7481);
  2699. c.lineTo(w * 0.1577, h * 0.7029);
  2700. c.lineTo(w * 0.1854, h * 0.7165);
  2701. c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.1911, h * 0.7135);
  2702. c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 0, w * 0.1894, h * 0.7037);
  2703. c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.1821, h * 0.6962);
  2704. c.lineTo(w * 0.1528, h * 0.6804);
  2705. c.lineTo(w * 0.1528, h * 0.7301);
  2706. c.close();
  2707. c.moveTo(w * 0.2008, h * 0.7556);
  2708. c.lineTo(w * 0.2293, h * 0.7158);
  2709. c.arcTo(w * 0.0065, h * 0.006, 0, 0, 1, w * 0.2382, h * 0.7143);
  2710. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2431, h * 0.724);
  2711. c.lineTo(w * 0.2699, h * 0.7902);
  2712. c.lineTo(w * 0.2602, h * 0.7872);
  2713. c.lineTo(w * 0.252, h * 0.7714);
  2714. c.lineTo(w * 0.2293, h * 0.7602);
  2715. c.lineTo(w * 0.2244, h * 0.7474);
  2716. c.lineTo(w * 0.248, h * 0.7586);
  2717. c.lineTo(w * 0.235, h * 0.7271);
  2718. c.lineTo(w * 0.2122, h * 0.7617);
  2719. c.close();
  2720. c.moveTo(w * 0.3244, h * 0.8105);
  2721. c.lineTo(w * 0.3171, h * 0.8173);
  2722. c.lineTo(w * 0.2854, h * 0.8);
  2723. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2724, h * 0.785);
  2724. c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.265, h * 0.7593);
  2725. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2683, h * 0.7459);
  2726. c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.2829, h * 0.7405);
  2727. c.lineTo(w * 0.3228, h * 0.7609);
  2728. c.lineTo(w * 0.3179, h * 0.7684);
  2729. c.lineTo(w * 0.2878, h * 0.7526);
  2730. c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.2789, h * 0.7541);
  2731. c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.2748, h * 0.7684);
  2732. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.2878, h * 0.7909);
  2733. c.close();
  2734. c.moveTo(w * 0.3276, h * 0.7639);
  2735. c.lineTo(w * 0.3366, h * 0.7684);
  2736. c.lineTo(w * 0.3366, h * 0.8173);
  2737. c.lineTo(w * 0.3805, h * 0.8406);
  2738. c.lineTo(w * 0.3748, h * 0.8473);
  2739. c.lineTo(w * 0.3317, h * 0.8248);
  2740. c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3276, h * 0.8158);
  2741. c.close();
  2742. c.moveTo(w * 0.435, h * 0.8692);
  2743. c.lineTo(w * 0.4325, h * 0.8789);
  2744. c.lineTo(w * 0.3959, h * 0.8594);
  2745. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.3862, h * 0.8466);
  2746. c.arcTo(w * 0.0528, h * 0.0489, 0, 0, 1, w * 0.3805, h * 0.806);
  2747. c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3951, h * 0.8008);
  2748. c.lineTo(w * 0.435, h * 0.821);
  2749. c.lineTo(w * 0.4285, h * 0.827);
  2750. c.lineTo(w * 0.4008, h * 0.8127);
  2751. c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.3878, h * 0.8196);
  2752. c.lineTo(w * 0.4333, h * 0.8443);
  2753. c.lineTo(w * 0.426, h * 0.8512);
  2754. c.lineTo(w * 0.3878, h * 0.8308);
  2755. c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.3976, h * 0.8489);
  2756. c.close();
  2757. c.moveTo(w * 0.6171, h * 0.7932);
  2758. c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.6366, h * 0.7963);
  2759. c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 1, w * 0.639, h * 0.8188);
  2760. c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.6211, h * 0.8497);
  2761. c.lineTo(w * 0.5894, h * 0.8677);
  2762. c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 1, w * 0.565, h * 0.8646);
  2763. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.5659, h * 0.8354);
  2764. c.arcTo(w * 0.0488, h * 0.0451, 0, 0, 1, w * 0.5805, h * 0.8127);
  2765. c.close();
  2766. c.moveTo(w * 0.5886, h * 0.8181);
  2767. c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.5748, h * 0.8368);
  2768. c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.574, h * 0.8527);
  2769. c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.587, h * 0.8586);
  2770. c.lineTo(w * 0.6163, h * 0.8428);
  2771. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.6285, h * 0.8248);
  2772. c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6293, h * 0.8105);
  2773. c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.6163, h * 0.803);
  2774. c.close();
  2775. c.moveTo(w * 0.64, h * 0.8398);
  2776. c.lineTo(w * 0.64, h * 0.779);
  2777. c.lineTo(w * 0.6854, h * 0.7563);
  2778. c.arcTo(w * 0.0106, h * 0.0098, 0, 0, 1, w * 0.7008, h * 0.7632);
  2779. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6959, h * 0.7865);
  2780. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6805, h * 0.8);
  2781. c.lineTo(w * 0.6992, h * 0.8097);
  2782. c.lineTo(w * 0.6854, h * 0.8166);
  2783. c.lineTo(w * 0.6569, h * 0.8015);
  2784. c.lineTo(w * 0.6805, h * 0.7887);
  2785. c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 0, w * 0.6894, h * 0.7782);
  2786. c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6894, h * 0.7699);
  2787. c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.6837, h * 0.7684);
  2788. c.lineTo(w * 0.6528, h * 0.7842);
  2789. c.lineTo(w * 0.6528, h * 0.8331);
  2790. c.close();
  2791. c.moveTo(w * 0.7, h * 0.8082);
  2792. c.lineTo(w * 0.7301, h * 0.7338);
  2793. c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7358, h * 0.7271);
  2794. c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7415, h * 0.7316);
  2795. c.lineTo(w * 0.7699, h * 0.7707);
  2796. c.lineTo(w * 0.7602, h * 0.7766);
  2797. c.lineTo(w * 0.7537, h * 0.7692);
  2798. c.lineTo(w * 0.7276, h * 0.782);
  2799. c.lineTo(w * 0.7228, h * 0.7736);
  2800. c.lineTo(w * 0.748, h * 0.7617);
  2801. c.lineTo(w * 0.7358, h * 0.7421);
  2802. c.lineTo(w * 0.7114, h * 0.803);
  2803. c.close();
  2804. c.moveTo(w * 0.8244, h * 0.7316);
  2805. c.lineTo(w * 0.8171, h * 0.7459);
  2806. c.lineTo(w * 0.7894, h * 0.7609);
  2807. c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 1, w * 0.7683, h * 0.7593);
  2808. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.7667, h * 0.7338);
  2809. c.arcTo(w * 0.0488, h * 0.0452, 0, 0, 1, w * 0.7937, h * 0.697);
  2810. c.lineTo(w * 0.822, h * 0.6834);
  2811. c.lineTo(w * 0.8171, h * 0.6962);
  2812. c.lineTo(w * 0.7902, h * 0.7113);
  2813. c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.778, h * 0.7256);
  2814. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.7756, h * 0.7444);
  2815. c.arcTo(w * 0.0077, h * 0.0072, 0, 0, 0, w * 0.787, h * 0.7512);
  2816. c.close();
  2817. c.moveTo(w * 0.8366, h * 0.6742);
  2818. c.lineTo(w * 0.8366, h * 0.7248);
  2819. c.lineTo(w * 0.878, h * 0.7043);
  2820. c.lineTo(w * 0.874, h * 0.7158);
  2821. c.lineTo(w * 0.8333, h * 0.7368);
  2822. c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 1, w * 0.8268, h * 0.7324);
  2823. c.lineTo(w * 0.8268, h * 0.6804);
  2824. c.close();
  2825. c.moveTo(w * 0.9342, h * 0.6233);
  2826. c.lineTo(w * 0.9293, h * 0.6369);
  2827. c.lineTo(w * 0.9033, h * 0.6503);
  2828. c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.8927, h * 0.6601);
  2829. c.arcTo(w * 0.0406, h * 0.0376, 0, 0, 0, w * 0.887, h * 0.6729);
  2830. c.lineTo(w * 0.9309, h * 0.6503);
  2831. c.lineTo(w * 0.9268, h * 0.6631);
  2832. c.lineTo(w * 0.887, h * 0.6834);
  2833. c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.8992, h * 0.691);
  2834. c.lineTo(w * 0.935, h * 0.6722);
  2835. c.lineTo(w * 0.9285, h * 0.6864);
  2836. c.lineTo(w * 0.9008, h * 0.7007);
  2837. c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.8829, h * 0.7015);
  2838. c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.8764, h * 0.6827);
  2839. c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.8959, h * 0.6443);
  2840. c.fill();
  2841. c.restore();
  2842. c.setShadow(false);
  2843. c.setLineJoin('round');
  2844. c.begin();
  2845. c.moveTo(w * 0.126, h * 0.1316);
  2846. c.lineTo(w * 0.126, h * 0.267);
  2847. c.lineTo(w * 0.378, h * 0.4023);
  2848. c.lineTo(w * 0.5, h * 0.6015);
  2849. c.lineTo(w * 0.622, h * 0.4023);
  2850. c.lineTo(w * 0.874, h * 0.267);
  2851. c.lineTo(w * 0.874, h * 0.1316);
  2852. c.moveTo(0, h * 0.3346);
  2853. c.lineTo(w * 0.126, h * 0.267);
  2854. c.moveTo(w * 0.5, h * 0.6015);
  2855. c.lineTo(w * 0.5, h);
  2856. c.moveTo(w, h * 0.3346);
  2857. c.lineTo(w * 0.87, h * 0.267);
  2858. c.moveTo(w * 0.378, h * 0.4023);
  2859. c.lineTo(w * 0.622, h * 0.4023);
  2860. c.stroke();
  2861. c.setStrokeWidth(2 * strokeWidth);
  2862. c.setStrokeColor(strokeColor2);
  2863. c.begin();
  2864. c.moveTo(0, h * 0.7331);
  2865. c.lineTo(0, h * 0.3346);
  2866. c.lineTo(w * 0.126, h * 0.1316);
  2867. c.lineTo(w * 0.374, 0);
  2868. c.lineTo(w * 0.626, 0);
  2869. c.lineTo(w * 0.874, h * 0.1316);
  2870. c.lineTo(w, h * 0.3346);
  2871. c.lineTo(w, h * 0.7331);
  2872. c.lineTo(w * 0.5, h);
  2873. c.close();
  2874. c.stroke();
  2875. };
  2876. mxCellRenderer.registerShape(mxShapeAws3dOracleDatabaseServer.prototype.cst.ORACLE_DB_SERVER, mxShapeAws3dOracleDatabaseServer);//zzz
  2877. //**********************************************************************************************************************************************************
  2878. //RDS Master
  2879. //**********************************************************************************************************************************************************
  2880. /**
  2881. * Extends mxShape.
  2882. */
  2883. function mxShapeAws3dRdsMaster(bounds, fill, stroke, strokewidth)
  2884. {
  2885. mxShape.call(this);
  2886. this.bounds = bounds;
  2887. this.fill = fill;
  2888. this.stroke = stroke;
  2889. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  2890. };
  2891. /**
  2892. * Extends mxShape.
  2893. */
  2894. mxUtils.extend(mxShapeAws3dRdsMaster, mxShape);
  2895. mxShapeAws3dRdsMaster.prototype.cst = {
  2896. RDS_MASTER : 'mxgraph.aws3d.rdsMaster',
  2897. SHADING_COLORS : 'shadingCols'
  2898. };
  2899. mxShapeAws3dRdsMaster.prototype.customProperties = [
  2900. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  2901. ];
  2902. /**
  2903. * Function: paintVertexShape
  2904. *
  2905. * Paints the vertex shape.
  2906. */
  2907. mxShapeAws3dRdsMaster.prototype.paintVertexShape = function(c, x, y, w, h)
  2908. {
  2909. c.translate(x, y);
  2910. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  2911. var strokeWidth1 = strokeWidth * w / 123;
  2912. var strokeWidth2 = strokeWidth * h /133;
  2913. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  2914. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  2915. c.setStrokeWidth(strokeWidth);
  2916. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2917. c.setShadow(false);
  2918. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  2919. };
  2920. mxShapeAws3dRdsMaster.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2921. {
  2922. c.save();
  2923. c.save();
  2924. c.setStrokeWidth(2 * strokeWidth);
  2925. c.setStrokeColor(strokeColor2);
  2926. c.setLineJoin('round');
  2927. c.begin();
  2928. c.moveTo(0, h * 0.7331);
  2929. c.lineTo(0, h * 0.3346);
  2930. c.lineTo(w * 0.126, h * 0.1316);
  2931. c.lineTo(w * 0.374, 0);
  2932. c.lineTo(w * 0.626, 0);
  2933. c.lineTo(w * 0.874, h * 0.1316);
  2934. c.lineTo(w, h * 0.3346);
  2935. c.lineTo(w, h * 0.7331);
  2936. c.lineTo(w * 0.5, h);
  2937. c.close();
  2938. c.fillAndStroke();
  2939. };
  2940. mxShapeAws3dRdsMaster.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  2941. {
  2942. c.restore();
  2943. c.setShadow(false);
  2944. c.setFillColor('#000000');
  2945. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRdsMaster.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  2946. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  2947. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  2948. c.begin();
  2949. c.moveTo(w * 0.126, h * 0.1316);
  2950. c.lineTo(w * 0.126, h * 0.267);
  2951. c.lineTo(w * 0.378, h * 0.4023);
  2952. c.lineTo(w * 0.5, h * 0.6015);
  2953. c.lineTo(w * 0.5, h);
  2954. c.lineTo(0, h * 0.7331);
  2955. c.lineTo(0, h * 0.3346);
  2956. c.close();
  2957. c.moveTo(w * 0.874, h * 0.267);
  2958. c.lineTo(w * 0.874, h * 0.1316);
  2959. c.lineTo(w, h * 0.3308);
  2960. c.fill();
  2961. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  2962. c.begin();
  2963. c.moveTo(w * 0.5, h);
  2964. c.lineTo(w * 0.5, h * 0.6015);
  2965. c.lineTo(w * 0.622, h * 0.4023);
  2966. c.lineTo(w * 0.874, h * 0.267);
  2967. c.lineTo(w, h * 0.3308);
  2968. c.lineTo(w, h * 0.7331);
  2969. c.close();
  2970. c.fill();
  2971. c.restore();
  2972. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  2973. c.setFillColor(strokeColor);
  2974. c.setShadow(false);
  2975. c.begin();
  2976. c.moveTo(w * 0.1878, h * 0.1932);
  2977. c.lineTo(w * 0.4854, h * 0.0414);
  2978. c.lineTo(w * 0.5886, h * 0.094);
  2979. c.lineTo(w * 0.4455, h * 0.2308);
  2980. c.lineTo(w * 0.7122, h * 0.1579);
  2981. c.lineTo(w * 0.8171, h * 0.2098);
  2982. c.lineTo(w * 0.5187, h * 0.3617);
  2983. c.lineTo(w * 0.4537, h * 0.3293);
  2984. c.lineTo(w * 0.7016, h * 0.2053);
  2985. c.lineTo(w * 0.3854, h * 0.2947);
  2986. c.lineTo(w * 0.3187, h * 0.2602);
  2987. c.lineTo(w * 0.4959, h * 0.0992);
  2988. c.lineTo(w * 0.2504, h * 0.2256);
  2989. c.close();
  2990. c.fill();
  2991. c.setLineJoin('round');
  2992. c.begin();
  2993. c.moveTo(w * 0.126, h * 0.1316);
  2994. c.lineTo(w * 0.126, h * 0.267);
  2995. c.lineTo(w * 0.378, h * 0.4023);
  2996. c.lineTo(w * 0.5, h * 0.6015);
  2997. c.lineTo(w * 0.622, h * 0.4023);
  2998. c.lineTo(w * 0.874, h * 0.267);
  2999. c.lineTo(w * 0.874, h * 0.1316);
  3000. c.moveTo(0, h * 0.3346);
  3001. c.lineTo(w * 0.126, h * 0.267);
  3002. c.moveTo(w * 0.5, h * 0.6015);
  3003. c.lineTo(w * 0.5, h);
  3004. c.moveTo(w, h * 0.3346);
  3005. c.lineTo(w * 0.87, h * 0.267);
  3006. c.moveTo(w * 0.378, h * 0.4023);
  3007. c.lineTo(w * 0.622, h * 0.4023);
  3008. c.stroke();
  3009. c.setStrokeWidth(2 * strokeWidth);
  3010. c.setStrokeColor(strokeColor2);
  3011. c.begin();
  3012. c.moveTo(0, h * 0.7331);
  3013. c.lineTo(0, h * 0.3346);
  3014. c.lineTo(w * 0.126, h * 0.1316);
  3015. c.lineTo(w * 0.374, 0);
  3016. c.lineTo(w * 0.626, 0);
  3017. c.lineTo(w * 0.874, h * 0.1316);
  3018. c.lineTo(w, h * 0.3346);
  3019. c.lineTo(w, h * 0.7331);
  3020. c.lineTo(w * 0.5, h);
  3021. c.close();
  3022. c.stroke();
  3023. };
  3024. mxCellRenderer.registerShape(mxShapeAws3dRdsMaster.prototype.cst.RDS_MASTER, mxShapeAws3dRdsMaster);
  3025. //**********************************************************************************************************************************************************
  3026. //RDS
  3027. //**********************************************************************************************************************************************************
  3028. /**
  3029. * Extends mxShape.
  3030. */
  3031. function mxShapeAws3dRds(bounds, fill, stroke, strokewidth)
  3032. {
  3033. mxShape.call(this);
  3034. this.bounds = bounds;
  3035. this.fill = fill;
  3036. this.stroke = stroke;
  3037. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  3038. };
  3039. /**
  3040. * Extends mxShape.
  3041. */
  3042. mxUtils.extend(mxShapeAws3dRds, mxShape);
  3043. mxShapeAws3dRds.prototype.cst = {
  3044. RDS : 'mxgraph.aws3d.rds',
  3045. SHADING_COLORS : 'shadingCols'
  3046. };
  3047. mxShapeAws3dRds.prototype.customProperties = [
  3048. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true},
  3049. {name: 'strokeColor3', dispName: 'Stroke Color 3', type: 'color', defVal:"#ffffff", primary: true}
  3050. ];
  3051. /**
  3052. * Function: paintVertexShape
  3053. *
  3054. * Paints the vertex shape.
  3055. */
  3056. mxShapeAws3dRds.prototype.paintVertexShape = function(c, x, y, w, h)
  3057. {
  3058. c.translate(x, y);
  3059. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  3060. var strokeWidth1 = strokeWidth * w / 123;
  3061. var strokeWidth2 = strokeWidth * h /133;
  3062. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  3063. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  3064. c.setStrokeWidth(strokeWidth);
  3065. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3066. c.setShadow(false);
  3067. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3068. };
  3069. mxShapeAws3dRds.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3070. {
  3071. c.save();
  3072. c.save();
  3073. c.setStrokeWidth(2 * strokeWidth);
  3074. c.setStrokeColor(strokeColor2);
  3075. c.setLineJoin('round');
  3076. c.begin();
  3077. c.moveTo(0, h * 0.7331);
  3078. c.lineTo(0, h * 0.3346);
  3079. c.lineTo(w * 0.126, h * 0.1316);
  3080. c.lineTo(w * 0.374, 0);
  3081. c.lineTo(w * 0.626, 0);
  3082. c.lineTo(w * 0.874, h * 0.1316);
  3083. c.lineTo(w, h * 0.3346);
  3084. c.lineTo(w, h * 0.7331);
  3085. c.lineTo(w * 0.5, h);
  3086. c.close();
  3087. c.fillAndStroke();
  3088. };
  3089. mxShapeAws3dRds.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3090. {
  3091. var strokeColor3 = mxUtils.getValue(this.style, 'strokeColor3', '#ffffff');
  3092. c.restore();
  3093. c.setShadow(false);
  3094. c.setFillColor('#000000');
  3095. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRds.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3096. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3097. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3098. c.begin();
  3099. c.moveTo(w * 0.126, h * 0.1316);
  3100. c.lineTo(w * 0.126, h * 0.267);
  3101. c.lineTo(w * 0.378, h * 0.4023);
  3102. c.lineTo(w * 0.5, h * 0.6015);
  3103. c.lineTo(w * 0.5, h);
  3104. c.lineTo(0, h * 0.7331);
  3105. c.lineTo(0, h * 0.3346);
  3106. c.close();
  3107. c.moveTo(w * 0.874, h * 0.267);
  3108. c.lineTo(w * 0.874, h * 0.1316);
  3109. c.lineTo(w, h * 0.3308);
  3110. c.fill();
  3111. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3112. c.begin();
  3113. c.moveTo(w * 0.5, h);
  3114. c.lineTo(w * 0.5, h * 0.6015);
  3115. c.lineTo(w * 0.622, h * 0.4023);
  3116. c.lineTo(w * 0.874, h * 0.267);
  3117. c.lineTo(w, h * 0.3308);
  3118. c.lineTo(w, h * 0.7331);
  3119. c.close();
  3120. c.fill();
  3121. c.restore();
  3122. c.setFillColor(strokeColor3);
  3123. c.setShadow(false);
  3124. c.begin();
  3125. c.moveTo(0, h * 0.6053);
  3126. c.lineTo(w * 0.5, h * 0.8722);
  3127. c.lineTo(w, h * 0.6053);
  3128. c.lineTo(w, h * 0.6278);
  3129. c.lineTo(w * 0.5, h * 0.8947);
  3130. c.lineTo(0, h * 0.6278);
  3131. c.close();
  3132. c.fill();
  3133. c.setLineJoin('round');
  3134. c.begin();
  3135. c.moveTo(w * 0.126, h * 0.1316);
  3136. c.lineTo(w * 0.126, h * 0.267);
  3137. c.lineTo(w * 0.378, h * 0.4023);
  3138. c.lineTo(w * 0.5, h * 0.6015);
  3139. c.lineTo(w * 0.622, h * 0.4023);
  3140. c.lineTo(w * 0.874, h * 0.267);
  3141. c.lineTo(w * 0.874, h * 0.1316);
  3142. c.moveTo(0, h * 0.3346);
  3143. c.lineTo(w * 0.126, h * 0.267);
  3144. c.moveTo(w * 0.5, h * 0.6015);
  3145. c.lineTo(w * 0.5, h);
  3146. c.moveTo(w, h * 0.3346);
  3147. c.lineTo(w * 0.87, h * 0.267);
  3148. c.moveTo(w * 0.378, h * 0.4023);
  3149. c.lineTo(w * 0.622, h * 0.4023);
  3150. c.stroke();
  3151. c.setStrokeWidth(2 * strokeWidth);
  3152. c.setStrokeColor(strokeColor2);
  3153. c.begin();
  3154. c.moveTo(0, h * 0.7331);
  3155. c.lineTo(0, h * 0.3346);
  3156. c.lineTo(w * 0.126, h * 0.1316);
  3157. c.lineTo(w * 0.374, 0);
  3158. c.lineTo(w * 0.626, 0);
  3159. c.lineTo(w * 0.874, h * 0.1316);
  3160. c.lineTo(w, h * 0.3346);
  3161. c.lineTo(w, h * 0.7331);
  3162. c.lineTo(w * 0.5, h);
  3163. c.close();
  3164. c.stroke();
  3165. };
  3166. mxCellRenderer.registerShape(mxShapeAws3dRds.prototype.cst.RDS, mxShapeAws3dRds);
  3167. //**********************************************************************************************************************************************************
  3168. //Route 53
  3169. //**********************************************************************************************************************************************************
  3170. /**
  3171. * Extends mxShape.
  3172. */
  3173. function mxShapeAws3dRoute53(bounds, fill, stroke, strokewidth)
  3174. {
  3175. mxShape.call(this);
  3176. this.bounds = bounds;
  3177. this.fill = fill;
  3178. this.stroke = stroke;
  3179. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  3180. };
  3181. /**
  3182. * Extends mxShape.
  3183. */
  3184. mxUtils.extend(mxShapeAws3dRoute53, mxShape);
  3185. mxShapeAws3dRoute53.prototype.cst = {
  3186. ROUTE_53 : 'mxgraph.aws3d.route53',
  3187. SHADING_COLORS : 'shadingCols'
  3188. };
  3189. mxShapeAws3dRoute53.prototype.customProperties = [
  3190. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  3191. ];
  3192. /**
  3193. * Function: paintVertexShape
  3194. *
  3195. * Paints the vertex shape.
  3196. */
  3197. mxShapeAws3dRoute53.prototype.paintVertexShape = function(c, x, y, w, h)
  3198. {
  3199. c.translate(x, y);
  3200. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  3201. var strokeWidth1 = strokeWidth * w / 117;
  3202. var strokeWidth2 = strokeWidth * h /134.4;
  3203. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  3204. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  3205. c.setStrokeWidth(strokeWidth);
  3206. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3207. c.setShadow(false);
  3208. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3209. };
  3210. mxShapeAws3dRoute53.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3211. {
  3212. c.save();
  3213. c.save();
  3214. c.setStrokeWidth(2 * strokeWidth);
  3215. c.setStrokeColor(strokeColor2);
  3216. c.setLineJoin('round');
  3217. c.begin();
  3218. c.moveTo(0, h * 0.6994);
  3219. c.lineTo(0, h * 0.2009);
  3220. c.lineTo(w * 0.0427, h * 0.0781);
  3221. c.lineTo(w * 0.7974, 0);
  3222. c.lineTo(w, h * 0.1004);
  3223. c.lineTo(w, h * 0.5915);
  3224. c.lineTo(w * 0.8376, h * 0.9784);
  3225. c.lineTo(w * 0.5983, h);
  3226. c.close();
  3227. c.fillAndStroke();
  3228. };
  3229. mxShapeAws3dRoute53.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3230. {
  3231. c.restore();
  3232. c.setShadow(false);
  3233. c.setFillColor('#000000');
  3234. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRoute53.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3235. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3236. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3237. c.begin();
  3238. c.moveTo(0, h * 0.2009);
  3239. c.lineTo(w * 0.6009, h * 0.5007);
  3240. c.lineTo(w * 0.8376, h * 0.4799);
  3241. c.lineTo(w * 0.8376, h * 0.9784);
  3242. c.lineTo(w * 0.5966, h);
  3243. c.lineTo(0, h * 0.6979);
  3244. c.close();
  3245. c.fill();
  3246. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3247. c.begin();
  3248. c.moveTo(w * 0.8348, h * 0.4861);
  3249. c.lineTo(w * 0.9985, h * 0.0992);
  3250. c.lineTo(w, h * 0.5952);
  3251. c.lineTo(w * 0.8404, h * 0.9747);
  3252. c.close();
  3253. c.fill();
  3254. c.restore();
  3255. c.setShadow(false);
  3256. c.setLineJoin('round');
  3257. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  3258. c.setFillColor(strokeColor);
  3259. c.begin();
  3260. c.moveTo(w * 0.5855, h * 0.1079);
  3261. c.arcTo(w * 0.094, h * 0.0744, 0, 0, 0, w * 0.6863, h * 0.1548);
  3262. c.arcTo(w * 0.0855, h * 0.0446, 0, 0, 0, w * 0.7761, h * 0.2031);
  3263. c.lineTo(w * 0.7726, h * 0.2455);
  3264. c.arcTo(w * 0.0769, h * 0.0298, 0, 0, 0, w * 0.694, h * 0.2693);
  3265. c.arcTo(w * 0.0684, h * 0.0446, 0, 0, 1, w * 0.5897, h * 0.3051);
  3266. c.arcTo(w * 0.4274, h * 0.372, 0, 0, 0, w * 0.4573, h * 0.2753);
  3267. c.arcTo(w * 0.0855, h * 0.0744, 0, 0, 0, w * 0.4188, h * 0.2344);
  3268. c.lineTo(w * 0.3846, h * 0.2083);
  3269. c.arcTo(w * 0.0769, h * 0.0372, 0, 0, 1, w * 0.4103, h * 0.1525);
  3270. c.arcTo(w * 0.0855, h * 0.0409, 0, 0, 0, w * 0.4906, h * 0.1079);
  3271. c.close();
  3272. c.fill();
  3273. c.begin();
  3274. c.moveTo(0, h * 0.2009);
  3275. c.lineTo(w * 0.6009, h * 0.5007);
  3276. c.lineTo(w * 0.8376, h * 0.4799);
  3277. c.lineTo(w * 0.8376, h * 0.9784);
  3278. c.lineTo(w * 0.5966, h);
  3279. c.lineTo(0, h * 0.6979);
  3280. c.close();
  3281. c.moveTo(w * 0.8348, h * 0.4861);
  3282. c.lineTo(w * 0.9985, h * 0.0992);
  3283. c.lineTo(w, h * 0.5952);
  3284. c.lineTo(w * 0.8404, h * 0.9747);
  3285. c.close();
  3286. c.moveTo(w * 0.6009, h * 0.5007);
  3287. c.lineTo(w * 0.6009, h);
  3288. c.stroke();
  3289. c.setStrokeWidth(2 * strokeWidth);
  3290. c.setStrokeColor(strokeColor2);
  3291. c.begin();
  3292. c.moveTo(0, h * 0.6994);
  3293. c.lineTo(0, h * 0.2009);
  3294. c.lineTo(w * 0.0427, h * 0.0781);
  3295. c.lineTo(w * 0.7974, 0);
  3296. c.lineTo(w, h * 0.1004);
  3297. c.lineTo(w, h * 0.5915);
  3298. c.lineTo(w * 0.8376, h * 0.9784);
  3299. c.lineTo(w * 0.5983, h);
  3300. c.close();
  3301. c.stroke();
  3302. };
  3303. mxCellRenderer.registerShape(mxShapeAws3dRoute53.prototype.cst.ROUTE_53, mxShapeAws3dRoute53);
  3304. //**********************************************************************************************************************************************************
  3305. //S3 Bucket
  3306. //**********************************************************************************************************************************************************
  3307. /**
  3308. * Extends mxShape.
  3309. */
  3310. function mxShapeAws3dS3Bucket(bounds, fill, stroke, strokewidth)
  3311. {
  3312. mxShape.call(this);
  3313. this.bounds = bounds;
  3314. this.fill = fill;
  3315. this.stroke = stroke;
  3316. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  3317. };
  3318. /**
  3319. * Extends mxShape.
  3320. */
  3321. mxUtils.extend(mxShapeAws3dS3Bucket, mxShape);
  3322. mxShapeAws3dS3Bucket.prototype.cst = {
  3323. S3_BUCKET : 'mxgraph.aws3d.s3Bucket',
  3324. SHADING_COLORS : 'shadingCols'
  3325. };
  3326. mxShapeAws3dS3Bucket.prototype.customProperties = [
  3327. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  3328. ];
  3329. /**
  3330. * Function: paintVertexShape
  3331. *
  3332. * Paints the vertex shape.
  3333. */
  3334. mxShapeAws3dS3Bucket.prototype.paintVertexShape = function(c, x, y, w, h)
  3335. {
  3336. c.translate(x, y);
  3337. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  3338. var strokeWidth1 = strokeWidth * w / 61.5;
  3339. var strokeWidth2 = strokeWidth * h / 63.8;
  3340. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  3341. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  3342. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  3343. c.setShadow(false);
  3344. c.setStrokeWidth(strokeWidth);
  3345. c.save();
  3346. c.save();
  3347. c.setStrokeWidth(2 * strokeWidth);
  3348. c.setStrokeColor(strokeColor2);
  3349. c.setLineJoin('round');
  3350. if (isShadow == 1)
  3351. {
  3352. c.setShadow(true);
  3353. }
  3354. c.begin();
  3355. c.moveTo(0, h * 0.2774);
  3356. c.lineTo(w * 0.5, 0);
  3357. c.lineTo(w, h * 0.2774);
  3358. c.lineTo(w * 0.7967, h * 0.8307);
  3359. c.lineTo(w * 0.5, h);
  3360. c.lineTo(w * 0.1951, h * 0.8307);
  3361. c.close();
  3362. c.fillAndStroke();
  3363. c.restore();
  3364. c.setFillColor('#000000');
  3365. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3Bucket.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3366. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3367. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3368. c.begin();
  3369. c.moveTo(0, h * 0.2774);
  3370. c.lineTo(w * 0.5, h * 0.5564);
  3371. c.lineTo(w * 0.5, h);
  3372. c.lineTo(w * 0.1984, h * 0.8307);
  3373. c.close();
  3374. c.fill();
  3375. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3376. c.begin();
  3377. c.moveTo(w * 0.5, h * 0.5533);
  3378. c.lineTo(w, h * 0.2774);
  3379. c.lineTo(w * 0.7967, h * 0.8307);
  3380. c.lineTo(w * 0.5, h);
  3381. c.close();
  3382. c.fill();
  3383. c.restore();
  3384. c.setLineJoin('round');
  3385. c.begin();
  3386. c.moveTo(0, h * 0.2774);
  3387. c.lineTo(w * 0.5, h * 0.5564);
  3388. c.lineTo(w, h * 0.2774);
  3389. c.stroke();
  3390. c.begin();
  3391. c.moveTo(w * 0.5, h * 0.5564);
  3392. c.lineTo(w * 0.5, h);
  3393. c.stroke();
  3394. c.setStrokeWidth(2 * strokeWidth);
  3395. c.setStrokeColor(strokeColor2);
  3396. c.setLineJoin('round');
  3397. c.begin();
  3398. c.moveTo(0, h * 0.2774);
  3399. c.lineTo(w * 0.5008, 0);
  3400. c.lineTo(w, h * 0.2774);
  3401. c.lineTo(w * 0.7967, h * 0.8307);
  3402. c.lineTo(w * 0.5008, h);
  3403. c.lineTo(w * 0.1951, h * 0.8307);
  3404. c.close();
  3405. c.stroke();
  3406. };
  3407. mxCellRenderer.registerShape(mxShapeAws3dS3Bucket.prototype.cst.S3_BUCKET, mxShapeAws3dS3Bucket);
  3408. //**********************************************************************************************************************************************************
  3409. //S3
  3410. //**********************************************************************************************************************************************************
  3411. /**
  3412. * Extends mxShape.
  3413. */
  3414. function mxShapeAws3dS3(bounds, fill, stroke, strokewidth)
  3415. {
  3416. mxShape.call(this);
  3417. this.bounds = bounds;
  3418. this.fill = fill;
  3419. this.stroke = stroke;
  3420. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  3421. };
  3422. /**
  3423. * Extends mxShape.
  3424. */
  3425. mxUtils.extend(mxShapeAws3dS3, mxShape);
  3426. mxShapeAws3dS3.prototype.cst = {
  3427. S3 : 'mxgraph.aws3d.s3',
  3428. SHADING_COLORS : 'shadingCols'
  3429. };
  3430. mxShapeAws3dS3.prototype.customProperties = [
  3431. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  3432. ];
  3433. /**
  3434. * Function: paintVertexShape
  3435. *
  3436. * Paints the vertex shape.
  3437. */
  3438. mxShapeAws3dS3.prototype.paintVertexShape = function(c, x, y, w, h)
  3439. {
  3440. c.translate(x, y);
  3441. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  3442. var strokeWidth1 = strokeWidth * w / 231.5;
  3443. var strokeWidth2 = strokeWidth * h / 239;
  3444. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  3445. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  3446. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3447. c.setShadow(false);
  3448. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3449. };
  3450. mxShapeAws3dS3.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3451. {
  3452. c.setStrokeWidth(strokeWidth);
  3453. c.save();
  3454. c.save();
  3455. c.setStrokeWidth(2 * strokeWidth);
  3456. c.setStrokeColor(strokeColor2);
  3457. c.setLineJoin('round');
  3458. c.begin();
  3459. c.moveTo(0, h * 0.7782);
  3460. c.lineTo(0, h * 0.3406);
  3461. c.lineTo(w * 0.5974, 0);
  3462. c.lineTo(w, h * 0.2218);
  3463. c.lineTo(w, h * 0.6674);
  3464. c.lineTo(w * 0.3991, h);
  3465. c.close();
  3466. c.fillAndStroke();
  3467. };
  3468. mxShapeAws3dS3.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3469. {
  3470. c.restore();
  3471. c.setShadow(false);
  3472. c.setFillColor('#000000');
  3473. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3474. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3475. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3476. c.begin();
  3477. c.moveTo(0, h * 0.3406);
  3478. c.lineTo(w * 0.3991, h * 0.5548);
  3479. c.lineTo(w * 0.3991, h);
  3480. c.lineTo(0, h * 0.7782);
  3481. c.close();
  3482. c.fill();
  3483. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3484. c.begin();
  3485. c.moveTo(w * 0.3991, h * 0.5548);
  3486. c.lineTo(w, h * 0.2218);
  3487. c.lineTo(w, h * 0.6661);
  3488. c.lineTo(w * 0.3991, h);
  3489. c.close();
  3490. c.fill();
  3491. c.restore();
  3492. c.setShadow(false);
  3493. c.setLineJoin('round');
  3494. c.begin();
  3495. c.moveTo(0, h * 0.3406);
  3496. c.lineTo(w * 0.3991, h * 0.5548);
  3497. c.lineTo(w, h * 0.2218);
  3498. c.moveTo(w * 0.3991, h * 0.5548);
  3499. c.lineTo(w * 0.3991, h);
  3500. c.moveTo(w * 0.3991, h * 0.3335);
  3501. c.lineTo(w * 0.2009, h * 0.448);
  3502. c.lineTo(w * 0.2009, h * 0.8891);
  3503. c.moveTo(w * 0.5983, h * 0.2209);
  3504. c.lineTo(w * 0.7948, h * 0.1109);
  3505. c.moveTo(w * 0.2022, h * 0.2218);
  3506. c.lineTo(w * 0.5991, h * 0.4448);
  3507. c.lineTo(w * 0.5991, h * 0.8891);
  3508. c.moveTo(w * 0.4004, h * 0.1117);
  3509. c.lineTo(w * 0.7978, h * 0.3335);
  3510. c.lineTo(w * 0.7978, h * 0.7791);
  3511. c.stroke();
  3512. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  3513. c.setFillColor(strokeColor);
  3514. c.begin();
  3515. c.moveTo(w * 0.4773, h * 0.2155);
  3516. c.arcTo(w * 0.0086, h * 0.0046, 0, 0, 1, w * 0.4903, h * 0.2096);
  3517. c.arcTo(w * 0.2808, h * 0.272, 0, 0, 1, w * 0.6004, h * 0.2619);
  3518. c.arcTo(w * 0.108, h * 0.105, 0, 0, 1, w * 0.6177, h * 0.277);
  3519. c.arcTo(w * 0.0065, h * 0.0063, 0, 0, 1, w * 0.6099, h * 0.2879);
  3520. c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.5378, h * 0.2607);
  3521. c.arcTo(w * 0.216, h * 0.2092, 0, 0, 1, w * 0.4773, h * 0.2155);
  3522. c.close();
  3523. c.fill();
  3524. c.begin();
  3525. c.moveTo(w * 0.4687, h * 0.2138);
  3526. c.arcTo(w * 0.1512, h * 0.1464, 0, 0, 0, w * 0.4838, h * 0.2343);
  3527. c.arcTo(w * 0.2376, h * 0.2301, 0, 0, 0, w * 0.5529, h * 0.2774);
  3528. c.arcTo(w * 0.1728, h * 0.1674, 0, 0, 0, w * 0.6091, h * 0.2954);
  3529. c.lineTo(w * 0.4946, h * 0.3339);
  3530. c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.4549, h * 0.3205);
  3531. c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.419, h * 0.3004);
  3532. c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.3965, h * 0.2795);
  3533. c.close();
  3534. c.fill();
  3535. c.setStrokeWidth(2 * strokeWidth);
  3536. c.setStrokeColor(strokeColor2);
  3537. c.setLineJoin('round');
  3538. c.begin();
  3539. c.moveTo(0, h * 0.7782);
  3540. c.lineTo(0, h * 0.3406);
  3541. c.lineTo(w * 0.5974, 0);
  3542. c.lineTo(w, h * 0.2218);
  3543. c.lineTo(w, h * 0.6674);
  3544. c.lineTo(w * 0.3991, h);
  3545. c.close();
  3546. c.stroke();
  3547. };
  3548. mxCellRenderer.registerShape(mxShapeAws3dS3.prototype.cst.S3, mxShapeAws3dS3);
  3549. //**********************************************************************************************************************************************************
  3550. //SimpleDB
  3551. //**********************************************************************************************************************************************************
  3552. /**
  3553. * Extends mxShape.
  3554. */
  3555. function mxShapeAws3dSimpleDB(bounds, fill, stroke, strokewidth)
  3556. {
  3557. mxShape.call(this);
  3558. this.bounds = bounds;
  3559. this.fill = fill;
  3560. this.stroke = stroke;
  3561. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  3562. };
  3563. /**
  3564. * Extends mxShape.
  3565. */
  3566. mxUtils.extend(mxShapeAws3dSimpleDB, mxShape);
  3567. mxShapeAws3dSimpleDB.prototype.cst = {
  3568. SIMPLE_DB : 'mxgraph.aws3d.simpleDb',
  3569. SHADING_COLORS : 'shadingCols'
  3570. };
  3571. mxShapeAws3dSimpleDB.prototype.customProperties = [
  3572. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  3573. ];
  3574. /**
  3575. * Function: paintVertexShape
  3576. *
  3577. * Paints the vertex shape.
  3578. */
  3579. mxShapeAws3dSimpleDB.prototype.paintVertexShape = function(c, x, y, w, h)
  3580. {
  3581. c.translate(x, y);
  3582. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  3583. var strokeWidth1 = strokeWidth * w / 123;
  3584. var strokeWidth2 = strokeWidth * h /133;
  3585. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  3586. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  3587. c.setStrokeWidth(strokeWidth);
  3588. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3589. c.setShadow(false);
  3590. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3591. };
  3592. mxShapeAws3dSimpleDB.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3593. {
  3594. c.save();
  3595. c.save();
  3596. c.save();
  3597. c.setStrokeWidth(2 * strokeWidth);
  3598. c.setStrokeColor(strokeColor2);
  3599. c.setLineJoin('round');
  3600. c.begin();
  3601. c.moveTo(0, h * 0.7331);
  3602. c.lineTo(0, h * 0.3346);
  3603. c.lineTo(w * 0.126, h * 0.1316);
  3604. c.lineTo(w * 0.374, 0);
  3605. c.lineTo(w * 0.626, 0);
  3606. c.lineTo(w * 0.874, h * 0.1316);
  3607. c.lineTo(w, h * 0.3346);
  3608. c.lineTo(w, h * 0.7331);
  3609. c.lineTo(w * 0.5, h);
  3610. c.close();
  3611. c.fillAndStroke();
  3612. };
  3613. mxShapeAws3dSimpleDB.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3614. {
  3615. c.restore();
  3616. c.setShadow(false);
  3617. c.setFillColor('#000000');
  3618. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3619. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3620. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3621. c.begin();
  3622. c.moveTo(w * 0.126, h * 0.1316);
  3623. c.lineTo(w * 0.126, h * 0.267);
  3624. c.lineTo(w * 0.378, h * 0.4023);
  3625. c.lineTo(w * 0.5, h * 0.6015);
  3626. c.lineTo(w * 0.5, h);
  3627. c.lineTo(0, h * 0.7331);
  3628. c.lineTo(0, h * 0.3346);
  3629. c.close();
  3630. c.moveTo(w * 0.874, h * 0.267);
  3631. c.lineTo(w * 0.874, h * 0.1316);
  3632. c.lineTo(w, h * 0.3308);
  3633. c.fill();
  3634. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3635. c.begin();
  3636. c.moveTo(w * 0.5, h);
  3637. c.lineTo(w * 0.5, h * 0.6015);
  3638. c.lineTo(w * 0.622, h * 0.4023);
  3639. c.lineTo(w * 0.874, h * 0.267);
  3640. c.lineTo(w, h * 0.3308);
  3641. c.lineTo(w, h * 0.7331);
  3642. c.close();
  3643. c.fill();
  3644. c.restore();
  3645. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  3646. c.setFillColor(strokeColor);
  3647. c.setShadow(false);
  3648. c.begin();
  3649. c.moveTo(w * 0.1821, h * 0.182);
  3650. c.lineTo(w * 0.4659, h * 0.0308);
  3651. c.lineTo(w * 0.822, h * 0.2218);
  3652. c.lineTo(w * 0.539, h * 0.3714);
  3653. c.close();
  3654. c.fill();
  3655. c.setLineJoin('round');
  3656. c.begin();
  3657. c.moveTo(w * 0.126, h * 0.1316);
  3658. c.lineTo(w * 0.126, h * 0.267);
  3659. c.lineTo(w * 0.378, h * 0.4023);
  3660. c.lineTo(w * 0.5, h * 0.6015);
  3661. c.lineTo(w * 0.622, h * 0.4023);
  3662. c.lineTo(w * 0.874, h * 0.267);
  3663. c.lineTo(w * 0.874, h * 0.1316);
  3664. c.moveTo(0, h * 0.3346);
  3665. c.lineTo(w * 0.126, h * 0.267);
  3666. c.moveTo(w * 0.5, h * 0.6015);
  3667. c.lineTo(w * 0.5, h);
  3668. c.moveTo(w, h * 0.3346);
  3669. c.lineTo(w * 0.87, h * 0.267);
  3670. c.moveTo(w * 0.378, h * 0.4023);
  3671. c.lineTo(w * 0.622, h * 0.4023);
  3672. c.stroke();
  3673. c.restore();
  3674. c.setShadow(false);
  3675. var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');
  3676. c.setStrokeColor(fillColor);
  3677. c.setStrokeWidth(2.2 * strokeWidth);
  3678. c.begin();
  3679. c.moveTo(w * 0.2382, h * 0.2218);
  3680. c.lineTo(w * 0.5415, h * 0.0602);
  3681. c.moveTo(w * 0.3821, h * 0.0564);
  3682. c.lineTo(w * 0.7737, h * 0.2656);
  3683. c.moveTo(w * 0.2967, h * 0.0915);
  3684. c.lineTo(w * 0.7114, h * 0.312);
  3685. c.moveTo(w * 0.2209, h * 0.1316);
  3686. c.lineTo(w * 0.6179, h * 0.3434);
  3687. c.stroke();
  3688. c.setStrokeWidth(2 * strokeWidth);
  3689. c.setStrokeColor(strokeColor2);
  3690. c.begin();
  3691. c.moveTo(0, h * 0.7331);
  3692. c.lineTo(0, h * 0.3346);
  3693. c.lineTo(w * 0.126, h * 0.1316);
  3694. c.lineTo(w * 0.374, 0);
  3695. c.lineTo(w * 0.626, 0);
  3696. c.lineTo(w * 0.874, h * 0.1316);
  3697. c.lineTo(w, h * 0.3346);
  3698. c.lineTo(w, h * 0.7331);
  3699. c.lineTo(w * 0.5, h);
  3700. c.close();
  3701. c.stroke();
  3702. };
  3703. mxCellRenderer.registerShape(mxShapeAws3dSimpleDB.prototype.cst.SIMPLE_DB, mxShapeAws3dSimpleDB);
  3704. //**********************************************************************************************************************************************************
  3705. //SQS
  3706. //**********************************************************************************************************************************************************
  3707. /**
  3708. * Extends mxShape.
  3709. */
  3710. function mxShapeAws3dSqs(bounds, fill, stroke, strokewidth)
  3711. {
  3712. mxShape.call(this);
  3713. this.bounds = bounds;
  3714. this.fill = fill;
  3715. this.stroke = stroke;
  3716. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  3717. };
  3718. /**
  3719. * Extends mxShape.
  3720. */
  3721. mxUtils.extend(mxShapeAws3dSqs, mxShape);
  3722. mxShapeAws3dSqs.prototype.cst = {
  3723. SQS : 'mxgraph.aws3d.sqs',
  3724. SHADING_COLORS : 'shadingCols'
  3725. };
  3726. mxShapeAws3dSqs.prototype.customProperties = [
  3727. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  3728. ];
  3729. /**
  3730. * Function: paintVertexShape
  3731. *
  3732. * Paints the vertex shape.
  3733. */
  3734. mxShapeAws3dSqs.prototype.paintVertexShape = function(c, x, y, w, h)
  3735. {
  3736. c.translate(x, y);
  3737. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  3738. var strokeWidth1 = strokeWidth * w / 184;
  3739. var strokeWidth2 = strokeWidth * h / 212.75;
  3740. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  3741. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  3742. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3743. c.setShadow(false);
  3744. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3745. };
  3746. mxShapeAws3dSqs.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3747. {
  3748. c.setStrokeWidth(strokeWidth);
  3749. c.save();
  3750. c.save();
  3751. c.setStrokeWidth(2 * strokeWidth);
  3752. c.setStrokeColor(strokeColor2);
  3753. c.setLineJoin('round');
  3754. c.begin();
  3755. c.moveTo(0, h * 0.7485);
  3756. c.lineTo(0, h * 0.584);
  3757. c.lineTo(w * 0.1658, h * 0.1666);
  3758. c.lineTo(w * 0.5, 0);
  3759. c.lineTo(w * 0.8337, h * 0.1666);
  3760. c.lineTo(w, h * 0.584);
  3761. c.lineTo(w, h * 0.7485);
  3762. c.lineTo(w * 0.5, h);
  3763. c.close();
  3764. c.fillAndStroke();
  3765. };
  3766. mxShapeAws3dSqs.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3767. {
  3768. c.restore();
  3769. c.setShadow(false);
  3770. c.setFillColor('#000000');
  3771. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3772. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3773. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3774. c.begin();
  3775. c.moveTo(w * 0.1658, h * 0.1671);
  3776. c.lineTo(w * 0.5, h * 0.334);
  3777. c.lineTo(w * 0.5, h);
  3778. c.lineTo(0, h * 0.7485);
  3779. c.lineTo(0, h * 0.584);
  3780. c.close();
  3781. c.fill();
  3782. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3783. c.begin();
  3784. c.moveTo(w * 0.5, h * 0.3344);
  3785. c.lineTo(w * 0.8332, h * 0.1671);
  3786. c.lineTo(w, h * 0.584);
  3787. c.lineTo(w, h * 0.7509);
  3788. c.lineTo(w * 0.5, h);
  3789. c.close();
  3790. c.fill();
  3791. c.restore();
  3792. c.setShadow(false);
  3793. c.setLineJoin('round');
  3794. c.begin();
  3795. c.moveTo(w * 0.6674, h * 0.0844);
  3796. c.lineTo(w * 0.3337, h * 0.2512);
  3797. c.lineTo(w * 0.25, h * 0.7109);
  3798. c.lineTo(w * 0.25, h * 0.8736);
  3799. c.moveTo(w * 0.3326, h * 0.0839);
  3800. c.lineTo(w * 0.6674, h * 0.2512);
  3801. c.lineTo(w * 0.75, h * 0.7053);
  3802. c.lineTo(w * 0.75, h * 0.874);
  3803. c.moveTo(0, h * 0.584);
  3804. c.lineTo(w * 0.5, h * 0.8331);
  3805. c.lineTo(w, h * 0.584);
  3806. c.moveTo(w * 0.1658, h * 0.1671);
  3807. c.lineTo(w * 0.5, h * 0.334);
  3808. c.lineTo(w * 0.8332, h * 0.1671);
  3809. c.moveTo(w * 0.5, h * 0.334);
  3810. c.lineTo(w * 0.5, h);
  3811. c.stroke();
  3812. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  3813. c.setFillColor(strokeColor);
  3814. c.begin();
  3815. c.moveTo(w * 0.3337, h * 0.1511);
  3816. c.lineTo(w * 0.4668, h * 0.0848);
  3817. c.lineTo(w * 0.6663, h * 0.184);
  3818. c.lineTo(w * 0.5337, h * 0.2503);
  3819. c.close();
  3820. c.fill();
  3821. var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');
  3822. c.setFillColor(fillColor);
  3823. c.begin();
  3824. c.moveTo(w * 0.3902, h * 0.153);
  3825. c.lineTo(w * 0.4701, h * 0.113);
  3826. c.lineTo(w * 0.4701, h * 0.153);
  3827. c.close();
  3828. c.moveTo(w * 0.4402, h * 0.1784);
  3829. c.lineTo(w * 0.5196, h * 0.1384);
  3830. c.lineTo(w * 0.5196, h * 0.1784);
  3831. c.close();
  3832. c.moveTo(w * 0.4908, h * 0.2033);
  3833. c.lineTo(w * 0.5701, h * 0.1633);
  3834. c.lineTo(w * 0.5701, h * 0.2033);
  3835. c.close();
  3836. c.fill();
  3837. c.setStrokeWidth(2 * strokeWidth);
  3838. c.setStrokeColor(strokeColor2);
  3839. c.setLineJoin('round');
  3840. c.begin();
  3841. c.moveTo(0, h * 0.7485);
  3842. c.lineTo(0, h * 0.584);
  3843. c.lineTo(w * 0.1658, h * 0.1666);
  3844. c.lineTo(w * 0.5, 0);
  3845. c.lineTo(w * 0.8337, h * 0.1666);
  3846. c.lineTo(w, h * 0.584);
  3847. c.lineTo(w, h * 0.7485);
  3848. c.lineTo(w * 0.5, h);
  3849. c.close();
  3850. c.stroke();
  3851. };
  3852. mxCellRenderer.registerShape(mxShapeAws3dSqs.prototype.cst.SQS, mxShapeAws3dSqs);
  3853. //**********************************************************************************************************************************************************
  3854. //VPC Gateway
  3855. //**********************************************************************************************************************************************************
  3856. /**
  3857. * Extends mxShape.
  3858. */
  3859. function mxShapeAws3dVpcGateway(bounds, fill, stroke, strokewidth)
  3860. {
  3861. mxShape.call(this);
  3862. this.bounds = bounds;
  3863. this.fill = fill;
  3864. this.stroke = stroke;
  3865. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  3866. };
  3867. /**
  3868. * Extends mxShape.
  3869. */
  3870. mxUtils.extend(mxShapeAws3dVpcGateway, mxShape);
  3871. mxShapeAws3dVpcGateway.prototype.cst = {
  3872. VPC_GATEWAY : 'mxgraph.aws3d.vpcGateway',
  3873. SHADING_COLORS : 'shadingCols'
  3874. };
  3875. mxShapeAws3dVpcGateway.prototype.customProperties = [
  3876. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  3877. ];
  3878. /**
  3879. * Function: paintVertexShape
  3880. *
  3881. * Paints the vertex shape.
  3882. */
  3883. mxShapeAws3dVpcGateway.prototype.paintVertexShape = function(c, x, y, w, h)
  3884. {
  3885. c.translate(x, y);
  3886. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  3887. var strokeWidth1 = strokeWidth * w / 116.7;
  3888. var strokeWidth2 = strokeWidth * h / 102.8;
  3889. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  3890. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  3891. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3892. c.setShadow(false);
  3893. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  3894. };
  3895. mxShapeAws3dVpcGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3896. {
  3897. c.setStrokeWidth(strokeWidth);
  3898. c.save();
  3899. c.save();
  3900. c.save();
  3901. c.save();
  3902. c.save();
  3903. c.setStrokeWidth(2 * strokeWidth);
  3904. c.setStrokeColor(strokeColor2);
  3905. c.setLineJoin('round');
  3906. c.begin();
  3907. c.moveTo(w * 0.5801, h * 0.5447);
  3908. c.lineTo(w * 0.5801, h * 0.035);
  3909. c.lineTo(w * 0.1054, 0);
  3910. c.lineTo(0, h * 0.0691);
  3911. c.lineTo(0, h * 0.4134);
  3912. c.lineTo(w * 0.3188, h * 0.7247);
  3913. c.close();
  3914. c.fillAndStroke();
  3915. c.restore();
  3916. c.save();
  3917. c.setShadow(false);
  3918. c.setFillColor('#000000');
  3919. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3920. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3921. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3922. c.begin();
  3923. c.moveTo(w * 0.5801, h * 0.5447);
  3924. c.lineTo(w * 0.5801, h * 0.035);
  3925. c.lineTo(w * 0.3162, h * 0.2072);
  3926. c.lineTo(w * 0.3162, h * 0.7247);
  3927. c.close();
  3928. c.fill();
  3929. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3930. c.begin();
  3931. c.moveTo(w * 0.3162, h * 0.2072);
  3932. c.lineTo(0, h * 0.0691);
  3933. c.lineTo(0, h * 0.4134);
  3934. c.lineTo(w * 0.3162, h * 0.7247);
  3935. c.close();
  3936. c.fill();
  3937. c.restore();
  3938. c.setShadow(false);
  3939. c.begin();
  3940. c.moveTo(w * 0.5801, h * 0.5447);
  3941. c.lineTo(w * 0.5801, h * 0.035);
  3942. c.lineTo(w * 0.3162, h * 0.2072);
  3943. c.lineTo(w * 0.3162, h * 0.7247);
  3944. c.close();
  3945. c.stroke();
  3946. c.restore();
  3947. c.setLineJoin('round');
  3948. c.setShadow(false);
  3949. c.begin();
  3950. c.moveTo(w * 0.3162, h * 0.2072);
  3951. c.lineTo(0, h * 0.0691);
  3952. c.lineTo(0, h * 0.4134);
  3953. c.lineTo(w * 0.3162, h * 0.7247);
  3954. c.close();
  3955. c.stroke();
  3956. c.setStrokeWidth(2 * strokeWidth);
  3957. c.setStrokeColor(strokeColor2);
  3958. c.begin();
  3959. c.moveTo(w * 0.5801, h * 0.5447);
  3960. c.lineTo(w * 0.5801, h * 0.035);
  3961. c.lineTo(w * 0.1054, 0);
  3962. c.lineTo(0, h * 0.0691);
  3963. c.lineTo(0, h * 0.4134);
  3964. c.lineTo(w * 0.3188, h * 0.7247);
  3965. c.close();
  3966. c.stroke();
  3967. c.restore();
  3968. c.setStrokeWidth(2 * strokeWidth);
  3969. c.setStrokeColor(strokeColor2);
  3970. c.setLineJoin('round');
  3971. c.begin();
  3972. c.moveTo(w, h * 0.929);
  3973. c.lineTo(w, h * 0.5866);
  3974. c.lineTo(w * 0.6829, h * 0.1031);
  3975. c.lineTo(w * 0.4216, h * 0.2753);
  3976. c.lineTo(w * 0.4216, h * 0.7928);
  3977. c.lineTo(w * 0.8946, h);
  3978. c.close();
  3979. c.fillAndStroke();
  3980. };
  3981. mxShapeAws3dVpcGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  3982. {
  3983. c.restore();
  3984. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  3985. c.setShadow(false);
  3986. c.setLineJoin('round');
  3987. c.setFillColor('#000000');
  3988. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  3989. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  3990. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  3991. c.begin();
  3992. c.moveTo(w, h * 0.929);
  3993. c.lineTo(w, h * 0.5866);
  3994. c.lineTo(w * 0.8946, h * 0.6537);
  3995. c.lineTo(w * 0.8946, h);
  3996. c.close();
  3997. c.fill();
  3998. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  3999. c.begin();
  4000. c.moveTo(w * 0.8946, h);
  4001. c.lineTo(w * 0.8946, h * 0.6537);
  4002. c.lineTo(w * 0.4216, h * 0.2753);
  4003. c.lineTo(w * 0.4216, h * 0.7928);
  4004. c.close();
  4005. c.fill();
  4006. c.restore();
  4007. c.setShadow(false);
  4008. c.setLineJoin('round');
  4009. c.begin();
  4010. c.moveTo(w, h * 0.929);
  4011. c.lineTo(w, h * 0.5866);
  4012. c.lineTo(w * 0.8946, h * 0.6537);
  4013. c.lineTo(w * 0.8946, h);
  4014. c.close();
  4015. c.stroke();
  4016. c.begin();
  4017. c.moveTo(w * 0.8946, h);
  4018. c.lineTo(w * 0.8946, h * 0.6537);
  4019. c.lineTo(w * 0.4216, h * 0.2753);
  4020. c.lineTo(w * 0.4216, h * 0.7928);
  4021. c.close();
  4022. c.stroke();
  4023. c.setStrokeWidth(2 * strokeWidth);
  4024. c.setStrokeColor(strokeColor2);
  4025. c.setLineJoin('round');
  4026. c.begin();
  4027. c.moveTo(w, h * 0.929);
  4028. c.lineTo(w, h * 0.5866);
  4029. c.lineTo(w * 0.6829, h * 0.1031);
  4030. c.lineTo(w * 0.4216, h * 0.2753);
  4031. c.lineTo(w * 0.4216, h * 0.7928);
  4032. c.lineTo(w * 0.8946, h);
  4033. c.close();
  4034. c.stroke();
  4035. c.setFillColor(strokeColor);
  4036. c.begin();
  4037. c.moveTo(w * 0.5587, h * 0.7743);
  4038. c.lineTo(w * 0.5587, h * 0.6274);
  4039. c.lineTo(w * 0.5775, h * 0.6342);
  4040. c.lineTo(w * 0.5775, h * 0.57);
  4041. c.arcTo(w * 0.0428, h * 0.0486, 0, 0, 1, w * 0.6058, h * 0.5253);
  4042. c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.6564, h * 0.5447);
  4043. c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.6847, h * 0.607);
  4044. c.lineTo(w * 0.6847, h * 0.6877);
  4045. c.lineTo(w * 0.7001, h * 0.6946);
  4046. c.lineTo(w * 0.7001, h * 0.8405);
  4047. c.close();
  4048. c.moveTo(w * 0.6564, h * 0.6741);
  4049. c.lineTo(w * 0.6564, h * 0.6177);
  4050. c.arcTo(w * 0.06, h * 0.0681, 0, 0, 0, w * 0.6392, h * 0.57);
  4051. c.arcTo(w * 0.0343, h * 0.0389, 0, 0, 0, w * 0.6195, h * 0.5574);
  4052. c.arcTo(w * 0.0111, h * 0.0126, 0, 0, 0, w * 0.6058, h * 0.5691);
  4053. c.lineTo(w * 0.6058, h * 0.6498);
  4054. c.close();
  4055. c.fill();
  4056. };
  4057. mxCellRenderer.registerShape(mxShapeAws3dVpcGateway.prototype.cst.VPC_GATEWAY, mxShapeAws3dVpcGateway);
  4058. //**********************************************************************************************************************************************************
  4059. //Web Server
  4060. //**********************************************************************************************************************************************************
  4061. /**
  4062. * Extends mxShape.
  4063. */
  4064. function mxShapeAws3dWebServer(bounds, fill, stroke, strokewidth)
  4065. {
  4066. mxShape.call(this);
  4067. this.bounds = bounds;
  4068. this.fill = fill;
  4069. this.stroke = stroke;
  4070. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  4071. };
  4072. /**
  4073. * Extends mxShape.
  4074. */
  4075. mxUtils.extend(mxShapeAws3dWebServer, mxShape);
  4076. mxShapeAws3dWebServer.prototype.cst = {
  4077. WEB_SERVER : 'mxgraph.aws3d.webServer',
  4078. SHADING_COLORS : 'shadingCols'
  4079. };
  4080. /**
  4081. * Function: paintVertexShape
  4082. *
  4083. * Paints the vertex shape.
  4084. */
  4085. mxShapeAws3dWebServer.prototype.paintVertexShape = function(c, x, y, w, h)
  4086. {
  4087. c.translate(x, y);
  4088. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  4089. var strokeWidth1 = strokeWidth * w / 123;
  4090. var strokeWidth2 = strokeWidth * h / 106;
  4091. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  4092. this.background(c, 0, 0, w, h, strokeWidth);
  4093. c.setShadow(false);
  4094. this.foreground(c, 0, 0, w, h, strokeWidth);
  4095. };
  4096. mxShapeAws3dWebServer.prototype.background = function(c, x, y, w, h, strokeWidth)
  4097. {
  4098. c.setStrokeWidth(strokeWidth);
  4099. c.save();
  4100. c.save();
  4101. c.setStrokeWidth(2 * strokeWidth);
  4102. c.setStrokeColor('#292929');
  4103. c.setLineJoin('round');
  4104. c.begin();
  4105. c.moveTo(0, h * 0.6651);
  4106. c.lineTo(0, h * 0.3349);
  4107. c.lineTo(w * 0.5, 0);
  4108. c.lineTo(w, h * 0.3349);
  4109. c.lineTo(w, h * 0.6651);
  4110. c.lineTo(w * 0.5, h);
  4111. c.close();
  4112. c.fillAndStroke();
  4113. };
  4114. mxShapeAws3dWebServer.prototype.foreground = function(c, x, y, w, h, strokeWidth)
  4115. {
  4116. c.restore();
  4117. c.setShadow(false);
  4118. c.setFillColor('#000000');
  4119. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWebServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  4120. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  4121. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  4122. c.begin();
  4123. c.moveTo(0, h * 0.3349);
  4124. c.lineTo(w * 0.5, h * 0.6651);
  4125. c.lineTo(w * 0.5, h);
  4126. c.lineTo(0, h * 0.6651);
  4127. c.close();
  4128. c.fill();
  4129. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  4130. c.begin();
  4131. c.moveTo(w * 0.5, h * 0.6651);
  4132. c.lineTo(w, h * 0.3349);
  4133. c.lineTo(w, h * 0.6651);
  4134. c.lineTo(w * 0.5, h);
  4135. c.close();
  4136. c.fill();
  4137. c.restore();
  4138. c.setShadow(false);
  4139. c.setLineJoin('round');
  4140. c.begin();
  4141. c.moveTo(0, h * 0.3349);
  4142. c.lineTo(w * 0.5, h * 0.6651);
  4143. c.lineTo(w * 0.5, h);
  4144. c.lineTo(0, h * 0.6651);
  4145. c.close();
  4146. c.stroke();
  4147. c.begin();
  4148. c.moveTo(w * 0.5, h * 0.6651);
  4149. c.lineTo(w, h * 0.3349);
  4150. c.lineTo(w, h * 0.6651);
  4151. c.lineTo(w * 0.5, h);
  4152. c.close();
  4153. c.stroke();
  4154. c.setLineJoin('miter');
  4155. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  4156. c.setFillColor(strokeColor);
  4157. c.begin();
  4158. c.moveTo(w * 0.374, h * 0.5189);
  4159. c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.374, h * 0.4858);
  4160. c.lineTo(w * 0.4797, h * 0.4151);
  4161. c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.5203, h * 0.4151);
  4162. c.lineTo(w * 0.626, h * 0.4858);
  4163. c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.626, h * 0.516);
  4164. c.lineTo(w * 0.5203, h * 0.5868);
  4165. c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.4797, h * 0.5868);
  4166. c.close();
  4167. c.fill();
  4168. c.setStrokeWidth(2 * strokeWidth);
  4169. c.setStrokeColor('#292929');
  4170. c.setLineJoin('round');
  4171. c.begin();
  4172. c.moveTo(0, h * 0.6651);
  4173. c.lineTo(0, h * 0.3349);
  4174. c.lineTo(w * 0.5, 0);
  4175. c.lineTo(w, h * 0.3349);
  4176. c.lineTo(w, h * 0.6651);
  4177. c.lineTo(w * 0.5, h);
  4178. c.close();
  4179. c.stroke();
  4180. };
  4181. mxCellRenderer.registerShape(mxShapeAws3dWebServer.prototype.cst.WEB_SERVER, mxShapeAws3dWebServer);
  4182. //**********************************************************************************************************************************************************
  4183. //DynamoDB
  4184. //**********************************************************************************************************************************************************
  4185. /**
  4186. * Extends mxShape.
  4187. */
  4188. function mxShapeAws3dDynamoDB(bounds, fill, stroke, strokewidth)
  4189. {
  4190. mxShape.call(this);
  4191. this.bounds = bounds;
  4192. this.fill = fill;
  4193. this.stroke = stroke;
  4194. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  4195. };
  4196. /**
  4197. * Extends mxShape.
  4198. */
  4199. mxUtils.extend(mxShapeAws3dDynamoDB, mxShape);
  4200. mxShapeAws3dDynamoDB.prototype.cst = {
  4201. DYNAMO_DB : 'mxgraph.aws3d.dynamoDb',
  4202. SHADING_COLORS : 'shadingCols'
  4203. };
  4204. mxShapeAws3dDynamoDB.prototype.customProperties = [
  4205. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  4206. ];
  4207. /**
  4208. * Function: paintVertexShape
  4209. *
  4210. * Paints the vertex shape.
  4211. */
  4212. mxShapeAws3dDynamoDB.prototype.paintVertexShape = function(c, x, y, w, h)
  4213. {
  4214. c.translate(x, y);
  4215. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  4216. var strokeWidth1 = strokeWidth * w / 181.5;
  4217. var strokeWidth2 = strokeWidth * h / 210;
  4218. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  4219. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  4220. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  4221. c.setShadow(false);
  4222. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  4223. };
  4224. mxShapeAws3dDynamoDB.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  4225. {
  4226. c.setStrokeWidth(strokeWidth);
  4227. c.save();
  4228. c.save();
  4229. c.setStrokeWidth(2 * strokeWidth);
  4230. c.setStrokeColor(strokeColor2);
  4231. c.setLineJoin('round');
  4232. c.begin();
  4233. c.moveTo(0, h * 0.8333);
  4234. c.lineTo(0, h * 0.1667);
  4235. c.lineTo(w * 0.3333, h * 0.0014);
  4236. c.lineTo(w * 0.4986, h * 0.1667);
  4237. c.lineTo(w * 0.6639, 0);
  4238. c.lineTo(w, h * 0.169);
  4239. c.lineTo(w, h * 0.8333);
  4240. c.lineTo(w * 0.6667, h);
  4241. c.lineTo(w * 0.5014, h * 0.9162);
  4242. c.lineTo(w * 0.3333, h);
  4243. c.close();
  4244. c.fillAndStroke();
  4245. };
  4246. mxShapeAws3dDynamoDB.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  4247. {
  4248. c.restore();
  4249. c.setShadow(false);
  4250. c.setFillColor('#000000');
  4251. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  4252. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  4253. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  4254. c.begin();
  4255. c.moveTo(w * 0.168, h * 0.3333);
  4256. c.lineTo(0, h * 0.3333);
  4257. c.lineTo(w * 0.3333, h * 0.5);
  4258. c.lineTo(w * 0.3333, h);
  4259. c.lineTo(0, h * 0.8333);
  4260. c.lineTo(0, h * 0.1714);
  4261. c.close();
  4262. c.moveTo(w * 0.4986, h * 0.1667);
  4263. c.lineTo(w * 0.6667, 0);
  4264. c.lineTo(w, h * 0.169);
  4265. c.lineTo(w * 0.832, h * 0.3348);//
  4266. c.lineTo(w, h * 0.3333);
  4267. c.lineTo(w * 0.6667, h * 0.5);
  4268. c.lineTo(w * 0.5014, h * 0.5);
  4269. c.lineTo(w * 0.832, h * 0.3348);
  4270. c.fill();
  4271. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  4272. c.begin();
  4273. c.moveTo(w * 0.3333, h * 0.5);
  4274. c.lineTo(w * 0.4986, h * 0.5);
  4275. c.lineTo(w * 0.4986, h * 0.9162);
  4276. c.lineTo(w * 0.3333, h);
  4277. c.close();
  4278. c.moveTo(w * 0.6667, h);
  4279. c.lineTo(w * 0.6667, h * 0.5);
  4280. c.lineTo(w, h * 0.3333);
  4281. c.lineTo(w * 0.832, h * 0.3348);
  4282. c.lineTo(w, h * 0.169);
  4283. c.lineTo(w, h * 0.831);
  4284. c.close();
  4285. c.fill();
  4286. c.restore();
  4287. c.setShadow(false);
  4288. c.setLineJoin('round');
  4289. c.begin();
  4290. c.moveTo(w * 0.168, h * 0.3333);
  4291. c.lineTo(0, h * 0.3333);
  4292. c.lineTo(w * 0.3333, h * 0.5);
  4293. c.lineTo(w * 0.3333, h);
  4294. c.lineTo(0, h * 0.8333);
  4295. c.lineTo(0, h * 0.1714);
  4296. c.close();
  4297. c.moveTo(w * 0.4986, h * 0.1667);
  4298. c.lineTo(w * 0.6667, 0);
  4299. c.lineTo(w, h * 0.169);
  4300. c.lineTo(w * 0.832, h * 0.3348);
  4301. c.lineTo(w, h * 0.3333);
  4302. c.lineTo(w * 0.6667, h * 0.5);
  4303. c.lineTo(w * 0.5014, h * 0.5);
  4304. c.lineTo(w * 0.832, h * 0.3348);
  4305. c.close();
  4306. c.moveTo(w * 0.3333, h * 0.5);
  4307. c.lineTo(w * 0.4986, h * 0.5);
  4308. c.lineTo(w * 0.4986, h * 0.9162);
  4309. c.lineTo(w * 0.3333, h);
  4310. c.close();
  4311. c.moveTo(w * 0.6667, h);
  4312. c.lineTo(w * 0.6667, h * 0.5);
  4313. c.lineTo(w, h * 0.3333);
  4314. c.lineTo(w, h * 0.831);
  4315. c.close();
  4316. c.moveTo(w * 0.168, h * 0.3333);
  4317. c.lineTo(w * 0.5, h * 0.1667);
  4318. c.moveTo(w * 0.168, h * 0.3333);
  4319. c.lineTo(w * 0.5014, h * 0.5);
  4320. c.stroke();
  4321. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  4322. c.setFillColor(strokeColor);
  4323. c.begin();
  4324. c.moveTo(w * 0.4876, h * 0.2262);
  4325. c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5647, h * 0.25);
  4326. c.arcTo(w * 0.4407, h * 0.381, 0, 0, 1, w * 0.6419, h * 0.2905);
  4327. c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.6799, h * 0.32);
  4328. c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.6634, h * 0.3314);
  4329. c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5978, h * 0.3119);
  4330. c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.508, h * 0.2667);
  4331. c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.4711, h * 0.2343);
  4332. c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.4876, h * 0.2262);
  4333. c.close();
  4334. c.fill();
  4335. c.begin();
  4336. c.moveTo(w * 0.5124, h * 0.4143);
  4337. c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.4683, h * 0.4095);
  4338. c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3829, h * 0.3757);
  4339. c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3196, h * 0.3371);
  4340. c.arcTo(w * 0.0661, h * 0.0357, 0, 0, 1, w * 0.3058, h * 0.3081);
  4341. c.lineTo(w * 0.4612, h * 0.2333);
  4342. c.arcTo(w * 0.0661, h * 0.0476, 0, 0, 0, w * 0.4744, h * 0.2548);
  4343. c.arcTo(w * 0.3306, h * 0.2857, 0, 0, 0, w * 0.53, h * 0.2905);
  4344. c.arcTo(w * 0.4408, h * 0.381, 0, 0, 0, w * 0.6198, h * 0.3295);
  4345. c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.665, h * 0.3367);
  4346. c.close();
  4347. c.moveTo(w * 0.5052, h * 0.3714);
  4348. c.arcTo(w * 0.0275, h * 0.019, 0, 0, 1, w * 0.5135, h * 0.3581);
  4349. c.arcTo(w * 0.0275, h * 0.0238, 0, 0, 1, w * 0.5344, h * 0.3571);
  4350. c.lineTo(w * 0.5405, h * 0.3471);
  4351. c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.5278, h * 0.3381);
  4352. c.arcTo(w * 0.022, h * 0.0119, 0, 0, 1, w * 0.5372, h * 0.3271);
  4353. c.lineTo(w * 0.5306, h * 0.3186);
  4354. c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.5041, h * 0.3143);
  4355. c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.4975, h * 0.3029);
  4356. c.lineTo(w * 0.4777, h * 0.2995);
  4357. c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4628, h * 0.3033);
  4358. c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4408, h * 0.2967);
  4359. c.lineTo(w * 0.4187, h * 0.3);
  4360. c.arcTo(w * 0.011, h * 0.0081, 0, 0, 1, w * 0.4132, h * 0.3124);
  4361. c.arcTo(w * 0.0386, h * 0.0333, 0, 0, 1, w * 0.395, h * 0.3129);
  4362. c.lineTo(w * 0.3873, h * 0.3224);
  4363. c.arcTo(w * 0.0165, h * 0.0143, 0, 0, 1, w * 0.3994, h * 0.3333);
  4364. c.arcTo(w * 0.0138, h * 0.0119, 0, 0, 1, w * 0.3901, h * 0.3433);
  4365. c.lineTo(w * 0.3994, h * 0.3514);
  4366. c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4215, h * 0.3548);
  4367. c.arcTo(w * 0.0165, h * 0.0119, 0, 0, 1, w * 0.4298, h * 0.3667);
  4368. c.lineTo(w * 0.449, h * 0.3714);
  4369. c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4711, h * 0.3657);
  4370. c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4887, h * 0.3724);
  4371. c.close();
  4372. c.moveTo(w * 0.4986, h * 0.351);
  4373. c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 1, w * 0.4804, h * 0.3552);
  4374. c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.443, h * 0.349);
  4375. c.lineTo(w * 0.4413, h * 0.3529);
  4376. c.lineTo(w * 0.4242, h * 0.3371);
  4377. c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4545, h * 0.3462);
  4378. c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4793, h * 0.3476);
  4379. c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 0, w * 0.4986, h * 0.3448);
  4380. c.close();
  4381. c.moveTo(w * 0.503, h * 0.3349);
  4382. c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4766, h * 0.3233);
  4383. c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 0, w * 0.4529, h * 0.32);
  4384. c.arcTo(w * 0.0551, h * 0.0476, 0, 0, 0, w * 0.4325, h * 0.3238);
  4385. c.lineTo(w * 0.427, h * 0.3195);
  4386. c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4556, h * 0.3157);
  4387. c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4851, h * 0.3232);
  4388. c.lineTo(w * 0.4876, h * 0.3181);
  4389. c.close();
  4390. c.fill();
  4391. c.setStrokeWidth(2 * strokeWidth);
  4392. c.setStrokeColor(strokeColor2);
  4393. c.setLineJoin('round');
  4394. c.begin();
  4395. c.moveTo(0, h * 0.8333);
  4396. c.lineTo(0, h * 0.1667);
  4397. c.lineTo(w * 0.3333, h * 0.0014);
  4398. c.lineTo(w * 0.4986, h * 0.1667);
  4399. c.lineTo(w * 0.6639, 0);
  4400. c.lineTo(w, h * 0.169);
  4401. c.lineTo(w, h * 0.8333);
  4402. c.lineTo(w * 0.6667, h);
  4403. c.lineTo(w * 0.5014, h * 0.9162);
  4404. c.lineTo(w * 0.3333, h);
  4405. c.close();
  4406. c.stroke();
  4407. };
  4408. mxCellRenderer.registerShape(mxShapeAws3dDynamoDB.prototype.cst.DYNAMO_DB, mxShapeAws3dDynamoDB);
  4409. //**********************************************************************************************************************************************************
  4410. //Elastic MapReduce
  4411. //**********************************************************************************************************************************************************
  4412. /**
  4413. * Extends mxShape.
  4414. */
  4415. function mxShapeAws3dElasticMapReduce(bounds, fill, stroke, strokewidth)
  4416. {
  4417. mxShape.call(this);
  4418. this.bounds = bounds;
  4419. this.fill = fill;
  4420. this.stroke = stroke;
  4421. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  4422. };
  4423. /**
  4424. * Extends mxShape.
  4425. */
  4426. mxUtils.extend(mxShapeAws3dElasticMapReduce, mxShape);
  4427. mxShapeAws3dElasticMapReduce.prototype.cst = {
  4428. ELASTIC_MAP_REDUCE : 'mxgraph.aws3d.elasticMapReduce',
  4429. SHADING_COLORS : 'shadingCols'
  4430. };
  4431. mxShapeAws3dElasticMapReduce.prototype.customProperties = [
  4432. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  4433. ];
  4434. /**
  4435. * Function: paintVertexShape
  4436. *
  4437. * Paints the vertex shape.
  4438. */
  4439. mxShapeAws3dElasticMapReduce.prototype.paintVertexShape = function(c, x, y, w, h)
  4440. {
  4441. c.translate(x, y);
  4442. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  4443. var strokeWidth1 = strokeWidth * w / 123;
  4444. var strokeWidth2 = strokeWidth * h /133;
  4445. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  4446. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  4447. c.setStrokeWidth(strokeWidth);
  4448. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  4449. c.setShadow(false);
  4450. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  4451. };
  4452. mxShapeAws3dElasticMapReduce.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  4453. {
  4454. c.save();
  4455. c.save();
  4456. c.setStrokeWidth(2 * strokeWidth);
  4457. c.setStrokeColor(strokeColor2);
  4458. c.setLineJoin('round');
  4459. c.begin();
  4460. c.moveTo(0, h * 0.7331);
  4461. c.lineTo(0, h * 0.3346);
  4462. c.lineTo(w * 0.126, h * 0.1316);
  4463. c.lineTo(w * 0.374, 0);
  4464. c.lineTo(w * 0.626, 0);
  4465. c.lineTo(w * 0.874, h * 0.1316);
  4466. c.lineTo(w, h * 0.3346);
  4467. c.lineTo(w, h * 0.7331);
  4468. c.lineTo(w * 0.5, h);
  4469. c.close();
  4470. c.fillAndStroke();
  4471. };
  4472. mxShapeAws3dElasticMapReduce.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  4473. {
  4474. c.restore();
  4475. c.setShadow(false);
  4476. c.setFillColor('#000000');
  4477. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  4478. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  4479. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  4480. c.begin();
  4481. c.moveTo(w * 0.126, h * 0.1316);
  4482. c.lineTo(w * 0.126, h * 0.267);
  4483. c.lineTo(w * 0.378, h * 0.4023);
  4484. c.lineTo(w * 0.5, h * 0.6015);
  4485. c.lineTo(w * 0.5, h);
  4486. c.lineTo(0, h * 0.7331);
  4487. c.lineTo(0, h * 0.3346);
  4488. c.close();
  4489. c.moveTo(w * 0.874, h * 0.267);
  4490. c.lineTo(w * 0.874, h * 0.1316);
  4491. c.lineTo(w, h * 0.3308);
  4492. c.fill();
  4493. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  4494. c.begin();
  4495. c.moveTo(w * 0.5, h);
  4496. c.lineTo(w * 0.5, h * 0.6015);
  4497. c.lineTo(w * 0.622, h * 0.4023);
  4498. c.lineTo(w * 0.874, h * 0.267);
  4499. c.lineTo(w, h * 0.3308);
  4500. c.lineTo(w, h * 0.7331);
  4501. c.close();
  4502. c.fill();
  4503. c.restore();
  4504. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  4505. c.setFillColor(strokeColor);
  4506. c.setShadow(false);
  4507. c.begin();
  4508. c.moveTo(w * 0.3336, h * 0.1789);
  4509. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.359, h * 0.1789);
  4510. c.lineTo(w * 0.4001, h * 0.2015);
  4511. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4008, h * 0.2135);
  4512. c.lineTo(w * 0.3574, h * 0.2368);
  4513. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.3352, h * 0.2368);
  4514. c.lineTo(w * 0.2934, h * 0.2143);
  4515. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.2934, h * 0.2015);
  4516. c.close();
  4517. c.moveTo(w * 0.3705, h * 0.1729);
  4518. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3705, h * 0.1602);
  4519. c.lineTo(w * 0.4139, h * 0.1368);
  4520. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4336, h * 0.1368);
  4521. c.lineTo(w * 0.4811, h * 0.1617);
  4522. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4811, h * 0.1708);
  4523. c.lineTo(w * 0.4328, h * 0.1955);
  4524. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4156, h * 0.1955);
  4525. c.close();
  4526. c.moveTo(w * 0.4467, h * 0.1308);
  4527. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4467, h * 0.1203);
  4528. c.lineTo(w * 0.491, h * 0.0962);
  4529. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5123, h * 0.0962);
  4530. c.lineTo(w * 0.559, h * 0.1203);
  4531. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.559, h * 0.1293);
  4532. c.lineTo(w * 0.5123, h * 0.1549);
  4533. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4918, h * 0.1549);
  4534. c.close();
  4535. c.moveTo(w * 0.568, h * 0.1383);
  4536. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5918, h * 0.1383);
  4537. c.lineTo(w * 0.6361, h * 0.1624);
  4538. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6366, h * 0.1714);
  4539. c.lineTo(w * 0.5885, h * 0.1955);
  4540. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.568, h * 0.1955);
  4541. c.lineTo(w * 0.523, h * 0.1714);
  4542. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.523, h * 0.1616);
  4543. c.close();
  4544. c.moveTo(w * 0.6451, h * 0.1789);
  4545. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6697, h * 0.1789);
  4546. c.lineTo(w * 0.7123, h * 0.2023);
  4547. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.7123, h * 0.2128);
  4548. c.lineTo(w * 0.6664, h * 0.2376);
  4549. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6492, h * 0.2376);
  4550. c.lineTo(w * 0.6016, h * 0.2135);
  4551. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6016, h * 0.2023);
  4552. c.close();
  4553. c.moveTo(w * 0.6369, h * 0.2451);
  4554. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6369, h * 0.2526);
  4555. c.lineTo(w * 0.5172, h * 0.3173);
  4556. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4893, h * 0.3173);
  4557. c.lineTo(w * 0.3697, h * 0.2541);
  4558. c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3697, h * 0.2436);
  4559. c.lineTo(w * 0.4918, h * 0.1782);
  4560. c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5131, h * 0.1782);
  4561. c.close();
  4562. c.fill();
  4563. c.moveTo(w * 0., h * 0.);
  4564. c.lineTo(w * 0., h * 0.);
  4565. c.arcTo(w * 0., h * 0., 0, 0, 1, w * 0., h * 0.);
  4566. c.setLineJoin('round');
  4567. c.begin();
  4568. c.moveTo(w * 0.126, h * 0.1316);
  4569. c.lineTo(w * 0.126, h * 0.267);
  4570. c.lineTo(w * 0.378, h * 0.4023);
  4571. c.lineTo(w * 0.5, h * 0.6015);
  4572. c.lineTo(w * 0.622, h * 0.4023);
  4573. c.lineTo(w * 0.874, h * 0.267);
  4574. c.lineTo(w * 0.874, h * 0.1316);
  4575. c.moveTo(0, h * 0.3346);
  4576. c.lineTo(w * 0.126, h * 0.267);
  4577. c.moveTo(w * 0.5, h * 0.6015);
  4578. c.lineTo(w * 0.5, h);
  4579. c.moveTo(w, h * 0.3346);
  4580. c.lineTo(w * 0.87, h * 0.267);
  4581. c.moveTo(w * 0.378, h * 0.4023);
  4582. c.lineTo(w * 0.622, h * 0.4023);
  4583. c.stroke();
  4584. c.setStrokeWidth(2 * strokeWidth);
  4585. c.setStrokeColor(strokeColor2);
  4586. c.begin();
  4587. c.moveTo(0, h * 0.7331);
  4588. c.lineTo(0, h * 0.3346);
  4589. c.lineTo(w * 0.126, h * 0.1316);
  4590. c.lineTo(w * 0.374, 0);
  4591. c.lineTo(w * 0.626, 0);
  4592. c.lineTo(w * 0.874, h * 0.1316);
  4593. c.lineTo(w, h * 0.3346);
  4594. c.lineTo(w, h * 0.7331);
  4595. c.lineTo(w * 0.5, h);
  4596. c.close();
  4597. c.stroke();
  4598. };
  4599. mxCellRenderer.registerShape(mxShapeAws3dElasticMapReduce.prototype.cst.ELASTIC_MAP_REDUCE, mxShapeAws3dElasticMapReduce);
  4600. //**********************************************************************************************************************************************************
  4601. //RDS Slave
  4602. //**********************************************************************************************************************************************************
  4603. /**
  4604. * Extends mxShape.
  4605. */
  4606. function mxShapeAws3dRdsSlave(bounds, fill, stroke, strokewidth)
  4607. {
  4608. mxShape.call(this);
  4609. this.bounds = bounds;
  4610. this.fill = fill;
  4611. this.stroke = stroke;
  4612. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  4613. };
  4614. /**
  4615. * Extends mxShape.
  4616. */
  4617. mxUtils.extend(mxShapeAws3dRdsSlave, mxShape);
  4618. mxShapeAws3dRdsSlave.prototype.cst = {
  4619. RDS_SLAVE : 'mxgraph.aws3d.rdsSlave'
  4620. };
  4621. mxShapeAws3dRdsSlave.prototype.customProperties = [
  4622. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  4623. ];
  4624. /**
  4625. * Function: paintVertexShape
  4626. *
  4627. * Paints the vertex shape.
  4628. */
  4629. mxShapeAws3dRdsSlave.prototype.paintVertexShape = function(c, x, y, w, h)
  4630. {
  4631. c.translate(x, y);
  4632. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  4633. var strokeWidth1 = strokeWidth * w / 123;
  4634. var strokeWidth2 = strokeWidth * h /133;
  4635. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  4636. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  4637. c.setStrokeWidth(strokeWidth);
  4638. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  4639. c.setShadow(false);
  4640. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  4641. };
  4642. mxShapeAws3dRdsSlave.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  4643. {
  4644. c.save();
  4645. c.save();
  4646. c.setStrokeWidth(2 * strokeWidth);
  4647. c.setStrokeColor(strokeColor2);
  4648. c.setLineJoin('round');
  4649. c.begin();
  4650. c.moveTo(0, h * 0.7331);
  4651. c.lineTo(0, h * 0.3346);
  4652. c.lineTo(w * 0.126, h * 0.1316);
  4653. c.lineTo(w * 0.374, 0);
  4654. c.lineTo(w * 0.626, 0);
  4655. c.lineTo(w * 0.874, h * 0.1316);
  4656. c.lineTo(w, h * 0.3346);
  4657. c.lineTo(w, h * 0.7331);
  4658. c.lineTo(w * 0.5, h);
  4659. c.close();
  4660. c.fillAndStroke();
  4661. };
  4662. mxShapeAws3dRdsSlave.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  4663. {
  4664. c.restore();
  4665. c.setShadow(false);
  4666. c.setFillColor('#000000');
  4667. c.setAlpha('0.1');
  4668. c.begin();
  4669. c.moveTo(w * 0.126, h * 0.1316);
  4670. c.lineTo(w * 0.126, h * 0.267);
  4671. c.lineTo(w * 0.378, h * 0.4023);
  4672. c.lineTo(w * 0.5, h * 0.6015);
  4673. c.lineTo(w * 0.5, h);
  4674. c.lineTo(0, h * 0.7331);
  4675. c.lineTo(0, h * 0.3346);
  4676. c.close();
  4677. c.moveTo(w * 0.874, h * 0.267);
  4678. c.lineTo(w * 0.874, h * 0.1316);
  4679. c.lineTo(w, h * 0.3308);
  4680. c.fill();
  4681. c.setAlpha('0.3');
  4682. c.begin();
  4683. c.moveTo(w * 0.5, h);
  4684. c.lineTo(w * 0.5, h * 0.6015);
  4685. c.lineTo(w * 0.622, h * 0.4023);
  4686. c.lineTo(w * 0.874, h * 0.267);
  4687. c.lineTo(w, h * 0.3308);
  4688. c.lineTo(w, h * 0.7331);
  4689. c.close();
  4690. c.fill();
  4691. c.restore();
  4692. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  4693. c.setFillColor(strokeColor);
  4694. c.setShadow(false);
  4695. c.begin();
  4696. c.moveTo(w * 0.2457, h * 0.2137);
  4697. c.lineTo(w * 0.5393, h * 0.0593);
  4698. c.lineTo(w * 0.6875, h * 0.1377);
  4699. c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.7137, h * 0.1625);
  4700. c.arcTo(w * 0.0348, h * 0.032, 0, 0, 1, w * 0.7076, h * 0.1968);
  4701. c.arcTo(w * 0.1743, h * 0.1599, 0, 0, 1, w * 0.6597, h * 0.2249);
  4702. c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5943, h * 0.232);
  4703. c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5542, h * 0.2225);
  4704. c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.5673, h * 0.2353);
  4705. c.arcTo(w * 0.0261, h * 0.024, 0, 0, 1, w * 0.5611, h * 0.2729);
  4706. c.lineTo(w * 0.4889, h * 0.316);
  4707. c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.4766, h * 0.3352);
  4708. c.lineTo(w * 0.4052, h * 0.2992);
  4709. c.arcTo(w * 0.0173, h * 0.0159, 0, 0, 1, w * 0.4121, h * 0.2841);
  4710. c.lineTo(w * 0.4914, h * 0.2368);
  4711. c.arcTo(w * 0.0218, h * 0.02, 0, 0, 0, w * 0.4897, h * 0.2129);
  4712. c.lineTo(w * 0.4409, h * 0.1857);
  4713. c.lineTo(w * 0.3145, h * 0.2529);
  4714. c.close();
  4715. c.moveTo(w * 0.4801, h * 0.1633);
  4716. c.lineTo(w * 0.5263, h * 0.1865);
  4717. c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 0, w * 0.583, h * 0.1905);
  4718. c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 0, w * 0.6196, h * 0.1721);
  4719. c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.6117, h * 0.1441);
  4720. c.lineTo(w * 0.5655, h * 0.1193);
  4721. c.fill();
  4722. c.setLineJoin('round');
  4723. c.begin();
  4724. c.moveTo(w * 0.126, h * 0.1316);
  4725. c.lineTo(w * 0.126, h * 0.267);
  4726. c.lineTo(w * 0.378, h * 0.4023);
  4727. c.lineTo(w * 0.5, h * 0.6015);
  4728. c.lineTo(w * 0.622, h * 0.4023);
  4729. c.lineTo(w * 0.874, h * 0.267);
  4730. c.lineTo(w * 0.874, h * 0.1316);
  4731. c.moveTo(0, h * 0.3346);
  4732. c.lineTo(w * 0.126, h * 0.267);
  4733. c.moveTo(w * 0.5, h * 0.6015);
  4734. c.lineTo(w * 0.5, h);
  4735. c.moveTo(w, h * 0.3346);
  4736. c.lineTo(w * 0.87, h * 0.267);
  4737. c.moveTo(w * 0.378, h * 0.4023);
  4738. c.lineTo(w * 0.622, h * 0.4023);
  4739. c.stroke();
  4740. c.setStrokeWidth(2 * strokeWidth);
  4741. c.setStrokeColor(strokeColor2);
  4742. c.begin();
  4743. c.moveTo(0, h * 0.7331);
  4744. c.lineTo(0, h * 0.3346);
  4745. c.lineTo(w * 0.126, h * 0.1316);
  4746. c.lineTo(w * 0.374, 0);
  4747. c.lineTo(w * 0.626, 0);
  4748. c.lineTo(w * 0.874, h * 0.1316);
  4749. c.lineTo(w, h * 0.3346);
  4750. c.lineTo(w, h * 0.7331);
  4751. c.lineTo(w * 0.5, h);
  4752. c.close();
  4753. c.stroke();
  4754. };
  4755. mxCellRenderer.registerShape(mxShapeAws3dRdsSlave.prototype.cst.RDS_SLAVE, mxShapeAws3dRdsSlave);
  4756. //**********************************************************************************************************************************************************
  4757. //AMI
  4758. //**********************************************************************************************************************************************************
  4759. /**
  4760. * Extends mxShape.
  4761. */
  4762. function mxShapeAws3dAMI2(bounds, fill, stroke, strokewidth)
  4763. {
  4764. mxShape.call(this);
  4765. this.bounds = bounds;
  4766. this.fill = fill;
  4767. this.stroke = stroke;
  4768. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  4769. };
  4770. /**
  4771. * Extends mxShape.
  4772. */
  4773. mxUtils.extend(mxShapeAws3dAMI2, mxShape);
  4774. mxShapeAws3dAMI2.prototype.cst = {
  4775. AMI_2 : 'mxgraph.aws3d.ami2',
  4776. SHADING_COLORS : 'shadingCols'
  4777. };
  4778. mxShapeAws3dAMI2.prototype.customProperties = [
  4779. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  4780. ];
  4781. /**
  4782. * Function: paintVertexShape
  4783. *
  4784. * Paints the vertex shape.
  4785. */
  4786. mxShapeAws3dAMI2.prototype.paintVertexShape = function(c, x, y, w, h)
  4787. {
  4788. c.translate(x, y);
  4789. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  4790. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  4791. var strokeWidth1 = strokeWidth * w / 92;
  4792. var strokeWidth2 = strokeWidth * h / 60;
  4793. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  4794. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  4795. c.setStrokeWidth(strokeWidth);
  4796. c.setShadow(false);
  4797. c.save();
  4798. c.save();
  4799. c.setStrokeWidth(2 * strokeWidth);
  4800. c.setStrokeColor(strokeColor2);
  4801. c.setLineJoin('round');
  4802. if (isShadow == 1)
  4803. {
  4804. c.setShadow(true);
  4805. }
  4806. c.begin();
  4807. c.moveTo(0, h * 0.572);
  4808. c.lineTo(w * 0.0865, h * 0.284);
  4809. c.lineTo(w * 0.4203, 0);
  4810. c.lineTo(w * 0.5865, 0);
  4811. c.lineTo(w * 0.919, h * 0.286);
  4812. c.lineTo(w, h * 0.566);
  4813. c.lineTo(w * 0.5027, h);
  4814. c.close();
  4815. c.fillAndStroke();
  4816. c.restore();
  4817. c.setFillColor('#000000');
  4818. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  4819. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  4820. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  4821. c.begin();
  4822. c.moveTo(0, h * 0.566);
  4823. c.lineTo(w * 0.0892, h * 0.282);
  4824. c.lineTo(w * 0.0878, h * 0.426);
  4825. c.lineTo(w * 0.4216, h * 0.712);
  4826. c.lineTo(w * 0.5865, h * 0.712);
  4827. c.lineTo(w * 0.5027, h);
  4828. c.close();
  4829. c.fill();
  4830. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  4831. c.begin();
  4832. c.moveTo(w * 0.5027, h);
  4833. c.lineTo(w * 0.5865, h * 0.712);
  4834. c.lineTo(w * 0.9176, h * 0.43);
  4835. c.lineTo(w, h * 0.566);
  4836. c.close();
  4837. c.fill();
  4838. c.restore();
  4839. c.setLineJoin('round');
  4840. c.begin();
  4841. c.moveTo(0, h * 0.566);
  4842. c.lineTo(w * 0.0892, h * 0.282);
  4843. c.lineTo(w * 0.0878, h * 0.426);
  4844. c.lineTo(w * 0.4216, h * 0.712);
  4845. c.lineTo(w * 0.5865, h * 0.712);
  4846. c.lineTo(w * 0.5027, h);
  4847. c.close();
  4848. c.moveTo(w * 0.5027, h);
  4849. c.lineTo(w * 0.5865, h * 0.712);
  4850. c.lineTo(w * 0.9176, h * 0.43);
  4851. c.lineTo(w, h * 0.566);
  4852. c.close();
  4853. c.moveTo(0, h * 0.572);
  4854. c.lineTo(w * 0.0892, h * 0.422);
  4855. c.moveTo(w * 0.5027, h);
  4856. c.lineTo(w * 0.4189, h * 0.708);
  4857. c.moveTo(w * 0.9176, h * 0.43);
  4858. c.lineTo(w * 0.9176, h * 0.29);
  4859. c.stroke();
  4860. c.setStrokeWidth(2 * strokeWidth);
  4861. c.setLineJoin('round');
  4862. c.begin();
  4863. c.moveTo(w * 0.2095, h * 0.376);
  4864. c.lineTo(w * 0.527, h * 0.104);
  4865. c.lineTo(w * 0.6338, h * 0.194);
  4866. c.lineTo(w * 0.3149, h * 0.468);
  4867. c.close();
  4868. c.moveTo(w * 0.3716, h * 0.518);
  4869. c.lineTo(w * 0.6892, h * 0.246);
  4870. c.lineTo(w * 0.796, h * 0.336);
  4871. c.lineTo(w * 0.477, h * 0.61);
  4872. c.close();
  4873. c.moveTo(w * 0.3108, h * 0.282);
  4874. c.lineTo(w * 0.4257, h * 0.38);
  4875. c.moveTo(w * 0.4189, h * 0.194);
  4876. c.lineTo(w * 0.5297, h * 0.288);
  4877. c.moveTo(w * 0.5838, h * 0.338);
  4878. c.lineTo(w * 0.6892, h * 0.426);
  4879. c.moveTo(w * 0.4757, h * 0.426);
  4880. c.lineTo(w * 0.5838, h * 0.518);
  4881. c.stroke();
  4882. c.setStrokeColor(strokeColor2);
  4883. c.begin();
  4884. c.moveTo(0, h * 0.572);
  4885. c.lineTo(w * 0.0865, h * 0.284);
  4886. c.lineTo(w * 0.4203, 0);
  4887. c.lineTo(w * 0.5865, 0);
  4888. c.lineTo(w * 0.919, h * 0.286);
  4889. c.lineTo(w, h * 0.566);
  4890. c.lineTo(w * 0.5027, h);
  4891. c.close();
  4892. c.stroke();
  4893. };
  4894. mxCellRenderer.registerShape(mxShapeAws3dAMI2.prototype.cst.AMI_2, mxShapeAws3dAMI2);
  4895. //**********************************************************************************************************************************************************
  4896. //EBS
  4897. //**********************************************************************************************************************************************************
  4898. /**
  4899. * Extends mxShape.
  4900. */
  4901. function mxShapeAws3dEbs(bounds, fill, stroke, strokewidth)
  4902. {
  4903. mxShape.call(this);
  4904. this.bounds = bounds;
  4905. this.fill = fill;
  4906. this.stroke = stroke;
  4907. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  4908. };
  4909. /**
  4910. * Extends mxShape.
  4911. */
  4912. mxUtils.extend(mxShapeAws3dEbs, mxShape);
  4913. mxShapeAws3dEbs.prototype.cst = {
  4914. EBS : 'mxgraph.aws3d.ebs',
  4915. SHADING_COLORS : 'shadingCols'
  4916. };
  4917. mxShapeAws3dEbs.prototype.customProperties = [
  4918. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  4919. ];
  4920. /**
  4921. * Function: paintVertexShape
  4922. *
  4923. * Paints the vertex shape.
  4924. */
  4925. mxShapeAws3dEbs.prototype.paintVertexShape = function(c, x, y, w, h)
  4926. {
  4927. c.translate(x, y);
  4928. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  4929. var strokeWidth1 = strokeWidth * w / 92;
  4930. var strokeWidth2 = strokeWidth * h / 60;
  4931. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  4932. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  4933. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  4934. c.setStrokeWidth(strokeWidth);
  4935. c.setShadow(false);
  4936. c.save();
  4937. c.save();
  4938. c.setStrokeWidth(2 * strokeWidth);
  4939. c.setStrokeColor(strokeColor2);
  4940. c.setLineJoin('round');
  4941. if(isShadow == 1)
  4942. {
  4943. c.setShadow(true);
  4944. }
  4945. c.begin();
  4946. c.moveTo(0, h * 0.5276);
  4947. c.lineTo(0, h * 0.4188);
  4948. c.lineTo(w * 0.071, h * 0.2898);
  4949. c.lineTo(w * 0.4033, 0);
  4950. c.lineTo(w * 0.9301, h * 0.464);
  4951. c.lineTo(w, h * 0.5863);
  4952. c.lineTo(w, h * 0.7035);
  4953. c.lineTo(w * 0.6667, h);
  4954. c.lineTo(w * 0.5355, h);
  4955. c.close();
  4956. c.fillAndStroke();
  4957. c.restore();
  4958. c.setFillColor('#000000');
  4959. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  4960. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  4961. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  4962. c.begin();
  4963. c.moveTo(w * 0.071, h * 0.2948);
  4964. c.lineTo(w * 0.6011, h * 0.7621);
  4965. c.lineTo(w * 0.6667, h);
  4966. c.lineTo(w * 0.5355, h);
  4967. c.lineTo(0, h * 0.5276);
  4968. c.lineTo(0, h * 0.4137);
  4969. c.close();
  4970. c.fill();
  4971. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  4972. c.begin();
  4973. c.moveTo(w * 0.6011, h * 0.7655);
  4974. c.lineTo(w * 0.9344, h * 0.4724);
  4975. c.lineTo(w, h * 0.7035);
  4976. c.lineTo(w * 0.6667, h);
  4977. c.close();
  4978. c.fill();
  4979. c.restore();
  4980. c.setLineJoin('round');
  4981. c.begin();
  4982. c.moveTo(w * 0.071, h * 0.2948);
  4983. c.lineTo(w * 0.6011, h * 0.7621);
  4984. c.lineTo(w * 0.6667, h);
  4985. c.lineTo(w * 0.5355, h);
  4986. c.lineTo(0, h * 0.5276);
  4987. c.lineTo(0, h * 0.4137);
  4988. c.close();
  4989. c.moveTo(w * 0.6011, h * 0.7655);
  4990. c.lineTo(w * 0.9344, h * 0.4724);
  4991. c.lineTo(w, h * 0.7035);
  4992. c.lineTo(w * 0.6667, h);
  4993. c.close();
  4994. c.moveTo(w * 0.0033, h * 0.5276);
  4995. c.lineTo(w * 0.071, h * 0.2898);
  4996. c.moveTo(w * 0.5325, h * 0.9976);
  4997. c.lineTo(w * 0.603, h * 0.7593);
  4998. c.stroke();
  4999. c.setStrokeWidth(2 * strokeWidth);
  5000. c.setStrokeColor(strokeColor2);
  5001. c.setLineJoin('round');
  5002. c.begin();
  5003. c.moveTo(0, h * 0.5276);
  5004. c.lineTo(0, h * 0.4188);
  5005. c.lineTo(w * 0.071, h * 0.2898);
  5006. c.lineTo(w * 0.4033, 0);
  5007. c.lineTo(w * 0.9301, h * 0.464);
  5008. c.lineTo(w, h * 0.5863);
  5009. c.lineTo(w, h * 0.7035);
  5010. c.lineTo(w * 0.6667, h);
  5011. c.lineTo(w * 0.5355, h);
  5012. c.close();
  5013. c.stroke();
  5014. };
  5015. mxCellRenderer.registerShape(mxShapeAws3dEbs.prototype.cst.EBS, mxShapeAws3dEbs);
  5016. //**********************************************************************************************************************************************************
  5017. //Oracle Server
  5018. //**********************************************************************************************************************************************************
  5019. /**
  5020. * Extends mxShape.
  5021. */
  5022. function mxShapeAws3dOracleServer(bounds, fill, stroke, strokewidth)
  5023. {
  5024. mxShape.call(this);
  5025. this.bounds = bounds;
  5026. this.fill = fill;
  5027. this.stroke = stroke;
  5028. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  5029. };
  5030. /**
  5031. * Extends mxShape.
  5032. */
  5033. mxUtils.extend(mxShapeAws3dOracleServer, mxShape);
  5034. mxShapeAws3dOracleServer.prototype.cst = {
  5035. ORACLE_SERVER : 'mxgraph.aws3d.oracleServer'
  5036. };
  5037. mxShapeAws3dOracleServer.prototype.customProperties = [
  5038. {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},
  5039. {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},
  5040. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  5041. ];
  5042. /**
  5043. * Function: paintVertexShape
  5044. *
  5045. * Paints the vertex shape.
  5046. */
  5047. mxShapeAws3dOracleServer.prototype.paintVertexShape = function(c, x, y, w, h)
  5048. {
  5049. c.translate(x, y);
  5050. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  5051. var strokeWidth1 = strokeWidth * w / 123;
  5052. var strokeWidth2 = strokeWidth * h /133;
  5053. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  5054. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  5055. c.setStrokeWidth(strokeWidth);
  5056. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  5057. c.setShadow(false);
  5058. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  5059. };
  5060. mxShapeAws3dOracleServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  5061. {
  5062. c.save();
  5063. c.save();
  5064. c.save();
  5065. c.setStrokeWidth(2 * strokeWidth);
  5066. c.setStrokeColor(strokeColor2);
  5067. c.setLineJoin('round');
  5068. c.begin();
  5069. c.moveTo(0, h * 0.7464);
  5070. c.lineTo(0, h * 0.25);
  5071. c.lineTo(w * 0.5, 0);
  5072. c.lineTo(w, h * 0.25);
  5073. c.lineTo(w, h * 0.7464);
  5074. c.lineTo(w * 0.5, h);
  5075. c.close();
  5076. c.fillAndStroke();
  5077. };
  5078. mxShapeAws3dOracleServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  5079. {
  5080. var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');
  5081. var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');
  5082. c.restore();
  5083. c.setShadow(false);
  5084. c.setFillColor('#000000');
  5085. c.setAlpha('0.1');
  5086. c.begin();
  5087. c.moveTo(0, h * 0.7464);
  5088. c.lineTo(0, h * 0.25);
  5089. c.lineTo(w * 0.5, h * 0.5);
  5090. c.lineTo(w * 0.5, h);
  5091. c.close();
  5092. c.fill();
  5093. c.setAlpha('0.3');
  5094. c.begin();
  5095. c.moveTo(w * 0.5, h * 0.5);
  5096. c.lineTo(w, h * 0.25);
  5097. c.lineTo(w, h * 0.7464);
  5098. c.lineTo(w * 0.5, h);
  5099. c.close();
  5100. c.fill();
  5101. c.restore();
  5102. c.setShadow(false);
  5103. c.setLineJoin('round');
  5104. c.setFillColor(fillColor2);
  5105. c.begin();
  5106. c.moveTo(0, h * 0.5866);
  5107. c.lineTo(w * 0.5, h * 0.8359);
  5108. c.lineTo(w, h * 0.5866);
  5109. c.lineTo(w, h * 0.6986);
  5110. c.lineTo(w * 0.5, h * 0.9486);
  5111. c.lineTo(0, h * 0.6986);
  5112. c.fill();
  5113. c.setStrokeWidth(0.5 * strokeWidth);
  5114. c.setStrokeColor(fillColor3);
  5115. c.setFillColor(fillColor3);
  5116. c.begin();
  5117. c.moveTo(0, h * 0.5866);
  5118. c.lineTo(w * 0.5, h * 0.8359);
  5119. c.lineTo(w, h * 0.5866);
  5120. c.moveTo(w, h * 0.6986);
  5121. c.lineTo(w * 0.5, h * 0.9486);
  5122. c.lineTo(0, h * 0.6986);
  5123. c.stroke();
  5124. c.begin();
  5125. c.moveTo(w * 0.0813, h * 0.7113);
  5126. c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);
  5127. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);
  5128. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);
  5129. c.lineTo(w * 0.122, h * 0.6754);
  5130. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);
  5131. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);
  5132. c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);
  5133. c.close();
  5134. c.moveTo(w * 0.1163, h * 0.7183);
  5135. c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);
  5136. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);
  5137. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);
  5138. c.lineTo(w * 0.087, h * 0.6676);
  5139. c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);
  5140. c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);
  5141. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);
  5142. c.close();
  5143. c.moveTo(w * 0.1439, h * 0.743);
  5144. c.lineTo(w * 0.1439, h * 0.6866);
  5145. c.lineTo(w * 0.1846, h * 0.707);
  5146. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);
  5147. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);
  5148. c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);
  5149. c.lineTo(w * 0.1992, h * 0.769);
  5150. c.lineTo(w * 0.187, h * 0.7641);
  5151. c.lineTo(w * 0.1577, h * 0.7218);
  5152. c.lineTo(w * 0.1854, h * 0.7345);
  5153. c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);
  5154. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);
  5155. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);
  5156. c.lineTo(w * 0.1528, h * 0.7007);
  5157. c.lineTo(w * 0.1528, h * 0.7472);
  5158. c.close();
  5159. c.moveTo(w * 0.2008, h * 0.7711);
  5160. c.lineTo(w * 0.2293, h * 0.7338);
  5161. c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);
  5162. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);
  5163. c.lineTo(w * 0.2699, h * 0.8035);
  5164. c.lineTo(w * 0.2602, h * 0.8007);
  5165. c.lineTo(w * 0.252, h * 0.7859);
  5166. c.lineTo(w * 0.2293, h * 0.7754);
  5167. c.lineTo(w * 0.2244, h * 0.7634);
  5168. c.lineTo(w * 0.248, h * 0.7739);
  5169. c.lineTo(w * 0.235, h * 0.7444);
  5170. c.lineTo(w * 0.2122, h * 0.7768);
  5171. c.close();
  5172. c.moveTo(w * 0.3244, h * 0.8225);
  5173. c.lineTo(w * 0.3171, h * 0.8289);
  5174. c.lineTo(w * 0.2854, h * 0.8127);
  5175. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);
  5176. c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);
  5177. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);
  5178. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);
  5179. c.lineTo(w * 0.3228, h * 0.7761);
  5180. c.lineTo(w * 0.3179, h * 0.7831);
  5181. c.lineTo(w * 0.2878, h * 0.7683);
  5182. c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);
  5183. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);
  5184. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);
  5185. c.close();
  5186. c.moveTo(w * 0.3276, h * 0.7789);
  5187. c.lineTo(w * 0.3366, h * 0.7831);
  5188. c.lineTo(w * 0.3366, h * 0.8289);
  5189. c.lineTo(w * 0.3805, h * 0.8507);
  5190. c.lineTo(w * 0.3748, h * 0.857);
  5191. c.lineTo(w * 0.3317, h * 0.8359);
  5192. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);
  5193. c.close();
  5194. c.moveTo(w * 0.435, h * 0.8775);
  5195. c.lineTo(w * 0.4325, h * 0.8866);
  5196. c.lineTo(w * 0.3959, h * 0.8683);
  5197. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);
  5198. c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);
  5199. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);
  5200. c.lineTo(w * 0.435, h * 0.8324);
  5201. c.lineTo(w * 0.4285, h * 0.838);
  5202. c.lineTo(w * 0.4008, h * 0.8246);
  5203. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);
  5204. c.lineTo(w * 0.4333, h * 0.8542);
  5205. c.lineTo(w * 0.426, h * 0.8606);
  5206. c.lineTo(w * 0.3878, h * 0.8415);
  5207. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);
  5208. c.close();
  5209. c.moveTo(w * 0.6171, h * 0.8063);
  5210. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);
  5211. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);
  5212. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);
  5213. c.lineTo(w * 0.5894, h * 0.8761);
  5214. c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);
  5215. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);
  5216. c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);
  5217. c.close();
  5218. c.moveTo(w * 0.5886, h * 0.8296);
  5219. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);
  5220. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);
  5221. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);
  5222. c.lineTo(w * 0.6163, h * 0.8528);
  5223. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);
  5224. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);
  5225. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);
  5226. c.close();
  5227. c.moveTo(w * 0.64, h * 0.85);
  5228. c.lineTo(w * 0.64, h * 0.7930);
  5229. c.lineTo(w * 0.6854, h * 0.7718);
  5230. c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);
  5231. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);
  5232. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);
  5233. c.lineTo(w * 0.6992, h * 0.8218);
  5234. c.lineTo(w * 0.6854, h * 0.8282);
  5235. c.lineTo(w * 0.6569, h * 0.8141);
  5236. c.lineTo(w * 0.6805, h * 0.8021);
  5237. c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);
  5238. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);
  5239. c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);
  5240. c.lineTo(w * 0.6528, h * 0.7979);
  5241. c.lineTo(w * 0.6528, h * 0.8437);
  5242. c.close();
  5243. c.moveTo(w * 0.7, h * 0.8204);
  5244. c.lineTo(w * 0.7301, h * 0.7507);
  5245. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);
  5246. c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);
  5247. c.lineTo(w * 0.7699, h * 0.7852);
  5248. c.lineTo(w * 0.7602, h * 0.7908);
  5249. c.lineTo(w * 0.7537, h * 0.7838);
  5250. c.lineTo(w * 0.7276, h * 0.7958);
  5251. c.lineTo(w * 0.7228, h * 0.788);
  5252. c.lineTo(w * 0.748, h * 0.7768);
  5253. c.lineTo(w * 0.7358, h * 0.7585);
  5254. c.lineTo(w * 0.7114, h * 0.8155);
  5255. c.close();
  5256. c.moveTo(w * 0.8244, h * 0.7486);
  5257. c.lineTo(w * 0.8171, h * 0.762);
  5258. c.lineTo(w * 0.7894, h * 0.7761);
  5259. c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);
  5260. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);
  5261. c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);
  5262. c.lineTo(w * 0.822, h * 0.7035);
  5263. c.lineTo(w * 0.8171, h * 0.7155);
  5264. c.lineTo(w * 0.7902, h * 0.7296);
  5265. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);
  5266. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);
  5267. c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);
  5268. c.close();
  5269. c.moveTo(w * 0.8366, h * 0.6949);
  5270. c.lineTo(w * 0.8366, h * 0.7423);
  5271. c.lineTo(w * 0.878, h * 0.7231);
  5272. c.lineTo(w * 0.874, h * 0.7338);
  5273. c.lineTo(w * 0.8333, h * 0.7535);
  5274. c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);
  5275. c.lineTo(w * 0.8268, h * 0.7007);
  5276. c.close();
  5277. c.moveTo(w * 0.9342, h * 0.6472);
  5278. c.lineTo(w * 0.9293, h * 0.6599);
  5279. c.lineTo(w * 0.9033, h * 0.6725);
  5280. c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);
  5281. c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);
  5282. c.lineTo(w * 0.9309, h * 0.6725);
  5283. c.lineTo(w * 0.9268, h * 0.6845);
  5284. c.lineTo(w * 0.887, h * 0.7035);
  5285. c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);
  5286. c.lineTo(w * 0.935, h * 0.693);
  5287. c.lineTo(w * 0.9285, h * 0.7063);
  5288. c.lineTo(w * 0.9008, h * 0.7197);
  5289. c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);
  5290. c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);
  5291. c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);
  5292. c.fill();
  5293. c.restore();
  5294. c.setShadow(false);
  5295. c.setLineJoin('round');
  5296. c.begin();
  5297. c.moveTo(0, h * 0.7464);
  5298. c.lineTo(0, h * 0.25);
  5299. c.lineTo(w * 0.5, h * 0.5);
  5300. c.lineTo(w * 0.5, h);
  5301. c.close();
  5302. c.moveTo(w * 0.5, h * 0.5);
  5303. c.lineTo(w, h * 0.25);
  5304. c.lineTo(w, h * 0.7464);
  5305. c.lineTo(w * 0.5, h);
  5306. c.close();
  5307. c.stroke();
  5308. c.setLineJoin('miter');
  5309. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  5310. c.setFillColor(strokeColor);
  5311. c.begin();
  5312. c.moveTo(w * 0.374, h * 0.3873);
  5313. c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.374, h * 0.3626);
  5314. c.lineTo(w * 0.4797, h * 0.3098);
  5315. c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.5203, h * 0.3098);
  5316. c.lineTo(w * 0.626, h * 0.3626);
  5317. c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.626, h * 0.3852);
  5318. c.lineTo(w * 0.5203, h * 0.438);
  5319. c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.4797, h * 0.438);
  5320. c.close();
  5321. c.fill();
  5322. c.setStrokeWidth(2 * strokeWidth);
  5323. c.setStrokeColor(strokeColor2);
  5324. c.setLineJoin('round');
  5325. c.begin();
  5326. c.moveTo(0, h * 0.7464);
  5327. c.lineTo(0, h * 0.25);
  5328. c.lineTo(w * 0.5, 0);
  5329. c.lineTo(w, h * 0.25);
  5330. c.lineTo(w, h * 0.7464);
  5331. c.lineTo(w * 0.5, h);
  5332. c.close();
  5333. c.stroke();
  5334. };
  5335. mxCellRenderer.registerShape(mxShapeAws3dOracleServer.prototype.cst.ORACLE_SERVER, mxShapeAws3dOracleServer);
  5336. //**********************************************************************************************************************************************************
  5337. //Secure Connection
  5338. //**********************************************************************************************************************************************************
  5339. /**
  5340. * Extends mxShape.
  5341. */
  5342. function mxShapeAws3dSecureConnection(bounds, fill, stroke, strokewidth)
  5343. {
  5344. mxShape.call(this);
  5345. this.bounds = bounds;
  5346. this.fill = fill;
  5347. this.stroke = stroke;
  5348. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  5349. };
  5350. /**
  5351. * Extends mxShape.
  5352. */
  5353. mxUtils.extend(mxShapeAws3dSecureConnection, mxShape);
  5354. mxShapeAws3dSecureConnection.prototype.cst = {
  5355. SECURE_CONNECTION : 'mxgraph.aws3d.secureConnection'
  5356. };
  5357. /**
  5358. * Function: paintVertexShape
  5359. *
  5360. * Paints the vertex shape.
  5361. */
  5362. mxShapeAws3dSecureConnection.prototype.paintVertexShape = function(c, x, y, w, h)
  5363. {
  5364. c.translate(x, y);
  5365. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  5366. var strokeWidth1 = strokeWidth * w / 57;
  5367. var strokeWidth2 = strokeWidth * h /34;
  5368. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  5369. c.setStrokeWidth(strokeWidth);
  5370. this.background(c, 0, 0, w, h, strokeWidth);
  5371. c.setShadow(false);
  5372. this.foreground(c, 0, 0, w, h, strokeWidth);
  5373. };
  5374. mxShapeAws3dSecureConnection.prototype.background = function(c, x, y, w, h, strokeWidth)
  5375. {
  5376. c.begin();
  5377. c.moveTo(w * 0.0058, h * 0.3889);
  5378. c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0774, h * 0.1856);
  5379. c.arcTo(w * 0.5241, h * 0.8839, 0, 0, 1, w * 0.308, h * 0.0262);
  5380. c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.6417, h * 0.056);
  5381. c.arcTo(w * 0.6988, h * 1.1786, 0, 0, 1, w * 0.9106, h * 0.277);
  5382. c.arcTo(w * 0.2621, h * 0.442, 0, 0, 1, w, h * 0.5451);
  5383. c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.9474, h * 0.7808);
  5384. c.arcTo(w * 0.4368, h * 0.7366, 0, 0, 1, w * 0.7186, h * 0.9605);
  5385. c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.3045, h * 0.9104);
  5386. c.arcTo(w * 0.6115, h * 1.0312, 0, 0, 1, w * 0.0687, h * 0.6747);
  5387. c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0058, h * 0.3889);
  5388. c.close();
  5389. c.fill();
  5390. };
  5391. mxShapeAws3dSecureConnection.prototype.foreground = function(c, x, y, w, h, strokeWidth)
  5392. {
  5393. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  5394. c.setFillColor(strokeColor);
  5395. c.begin();
  5396. c.moveTo(w * 0.2661, h * 0.5068);
  5397. c.lineTo(w * 0.5002, h * 0.7336);
  5398. c.lineTo(w * 0.6626, h * 0.5775);
  5399. c.lineTo(w * 0.6469, h * 0.5539);
  5400. c.lineTo(w * 0.6958, h * 0.5097);
  5401. c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.7325, h * 0.4066);
  5402. c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.6889, h * 0.3153);
  5403. c.arcTo(w * 0.1747, h * 0.2946, 0, 0, 0, w * 0.5928, h * 0.2622);
  5404. c.arcTo(w * 0.1398, h * 0.2357, 0, 0, 0, w * 0.5107, h * 0.3005);
  5405. c.lineTo(w * 0.446, h * 0.3654);
  5406. c.lineTo(w * 0.4268, h * 0.3477);
  5407. c.close();
  5408. c.moveTo(w * 0.4949, h * 0.4184);
  5409. c.lineTo(w * 0.5491, h * 0.3624);
  5410. c.arcTo(w * 0.1222, h * 0.2062, 0, 0, 1, w * 0.6277, h * 0.3536);
  5411. c.arcTo(w * 0.0874, h * 0.1179, 0, 0, 1, w * 0.6679, h * 0.3978);
  5412. c.arcTo(w * 0.0175, h * 0.0295, 0, 0, 1, w * 0.6626, h * 0.439);
  5413. c.lineTo(w * 0.5928, h * 0.5068);
  5414. c.close();
  5415. c.fill();
  5416. };
  5417. mxCellRenderer.registerShape(mxShapeAws3dSecureConnection.prototype.cst.SECURE_CONNECTION, mxShapeAws3dSecureConnection);
  5418. //**********************************************************************************************************************************************************
  5419. //Email Service
  5420. //**********************************************************************************************************************************************************
  5421. /**
  5422. * Extends mxShape.
  5423. */
  5424. function mxShapeAws3dEmailService(bounds, fill, stroke, strokewidth)
  5425. {
  5426. mxShape.call(this);
  5427. this.bounds = bounds;
  5428. this.fill = fill;
  5429. this.stroke = stroke;
  5430. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  5431. };
  5432. /**
  5433. * Extends mxShape.
  5434. */
  5435. mxUtils.extend(mxShapeAws3dEmailService, mxShape);
  5436. mxShapeAws3dEmailService.prototype.cst = {
  5437. EMAIL_SERVICE : 'mxgraph.aws3d.email_service',
  5438. SHADING_COLORS : 'shadingCols'
  5439. };
  5440. mxShapeAws3dEmailService.prototype.customProperties = [
  5441. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  5442. ];
  5443. /**
  5444. * Function: paintVertexShape
  5445. *
  5446. * Paints the vertex shape.
  5447. */
  5448. mxShapeAws3dEmailService.prototype.paintVertexShape = function(c, x, y, w, h)
  5449. {
  5450. c.translate(x, y);
  5451. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  5452. var strokeWidth1 = strokeWidth * w / 151;
  5453. var strokeWidth2 = strokeWidth * h / 192;
  5454. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  5455. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  5456. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  5457. c.setShadow(false);
  5458. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  5459. };
  5460. mxShapeAws3dEmailService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  5461. {
  5462. c.setStrokeWidth(strokeWidth);
  5463. c.save();
  5464. c.save();
  5465. c.setStrokeWidth(2 * strokeWidth);
  5466. c.setStrokeColor(strokeColor2);
  5467. c.setLineJoin('round');
  5468. c.begin();
  5469. c.moveTo(0, h * 0.8182);
  5470. c.lineTo(0, h * 0.1818);
  5471. c.lineTo(w * 0.4007, 0);
  5472. c.lineTo(w * 0.606, 0);
  5473. c.lineTo(w, h * 0.1792);
  5474. c.lineTo(w, h * 0.8182);
  5475. c.lineTo(w * 0.5993, h);
  5476. c.lineTo(w * 0.4007, h);
  5477. c.close();
  5478. c.fillAndStroke();
  5479. };
  5480. mxShapeAws3dEmailService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  5481. {
  5482. c.restore();
  5483. c.setShadow(false);
  5484. c.setFillColor('#000000');
  5485. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEmailService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  5486. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  5487. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  5488. c.begin();
  5489. c.moveTo(0, h * 0.2727);
  5490. c.lineTo(w * 0.4007, h * 0.4546);
  5491. c.lineTo(w * 0.5993, h * 0.4546);
  5492. c.lineTo(w * 0.5993, h);
  5493. c.lineTo(w * 0.4007, h);
  5494. c.lineTo(0, h * 0.8182);
  5495. c.close();
  5496. c.fill();
  5497. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  5498. c.begin();
  5499. c.moveTo(w * 0.5993, h * 0.4546);
  5500. c.lineTo(w, h * 0.2727);
  5501. c.lineTo(w * 0.8013, h * 0.1792);
  5502. c.lineTo(w * 0.8013, h * 0.0883);
  5503. c.lineTo(w, h * 0.1792);
  5504. c.lineTo(w, h * 0.8182);
  5505. c.lineTo(w * 0.5993, h);
  5506. c.close();
  5507. c.fill();
  5508. c.restore();
  5509. c.setShadow(false);
  5510. c.setLineJoin('round');
  5511. c.begin();
  5512. c.moveTo(0, h * 0.2727);
  5513. c.lineTo(w * 0.4007, h * 0.4546);
  5514. c.lineTo(w * 0.5993, h * 0.4546);
  5515. c.lineTo(w * 0.5993, h);
  5516. c.lineTo(w * 0.4007, h);
  5517. c.lineTo(0, h * 0.8182);
  5518. c.close();
  5519. c.stroke();
  5520. c.begin();
  5521. c.moveTo(w * 0.5993, h * 0.4546);
  5522. c.lineTo(w, h * 0.2727);
  5523. c.lineTo(w * 0.8013, h * 0.1792);
  5524. c.lineTo(w * 0.8013, h * 0.0883);
  5525. c.lineTo(w, h * 0.1792);
  5526. c.lineTo(w, h * 0.8182);
  5527. c.lineTo(w * 0.5993, h);
  5528. c.close();
  5529. c.stroke();
  5530. c.begin();
  5531. c.moveTo(w * 0.202, h * 0.0883);
  5532. c.lineTo(w * 0.202, h * 0.1818);
  5533. c.lineTo(w * 0.4007, h * 0.2727);
  5534. c.lineTo(w * 0.5993, h * 0.2727);
  5535. c.lineTo(w * 0.798, h * 0.1818);
  5536. c.moveTo(w * 0.2053, h * 0.1818);
  5537. c.lineTo(w * 0.0033, h * 0.2714);
  5538. c.moveTo(w * 0.4007, h * 0.2727);
  5539. c.lineTo(w * 0.4007, h * 0.9961);
  5540. c.moveTo(w * 0.5993, h * 0.2727);
  5541. c.lineTo(w * 0.5993, h * 0.4546);
  5542. c.stroke();
  5543. c.setLineJoin('miter');
  5544. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  5545. c.setFillColor(strokeColor);
  5546. c.begin();
  5547. c.moveTo(w * 0.4437, h * 0.0779);
  5548. c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 1, w * 0.404, h * 0.0706);
  5549. c.arcTo(w * 0.0464, h * 0.0364, 0, 0, 1, w * 0.3815, h * 0.0421);
  5550. c.arcTo(w * 0.053, h * 0.026, 0, 0, 1, w * 0.4205, h * 0.0187);
  5551. c.arcTo(w * 0.1987, h * 0.1558, 0, 0, 1, w * 0.4768, h * 0.0203);
  5552. c.arcTo(w * 0.0795, h * 0.0364, 0, 0, 1, w * 0.5199, h * 0.0494);
  5553. c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.5099, h * 0.0649);
  5554. c.arcTo(w * 0.0795, h * 0.0623, 0, 0, 1, w * 0.4536, h * 0.0727);
  5555. c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4404, h * 0.0597);
  5556. c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4219, h * 0.0566);
  5557. c.arcTo(w * 0.0199, h * 0.0114, 0, 0, 1, w * 0.4172, h * 0.0431);
  5558. c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4483, h * 0.0416);
  5559. c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 1, w * 0.457, h * 0.053);
  5560. c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 0, w * 0.4669, h * 0.0431);
  5561. c.arcTo(w * 0.0166, h * 0.0166, 0, 0, 0, w * 0.4464, h * 0.0358);
  5562. c.lineTo(w * 0.4437, h * 0.0338);
  5563. c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4603, h * 0.0322);
  5564. c.arcTo(w * 0.0397, h * 0.0156, 0, 0, 1, w * 0.4755, h * 0.0462);
  5565. c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4669, h * 0.0545);
  5566. c.arcTo(w * 0.053, h * 0.0416, 0, 0, 1, w * 0.453, h * 0.0608);
  5567. c.arcTo(w * 0.0099, h * 0.0078, 0, 0, 0, w * 0.4636, h * 0.0675);
  5568. c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.498, h * 0.0623);
  5569. c.arcTo(w * 0.0185, h * 0.0145, 0, 0, 0, w * 0.5079, h * 0.0457);
  5570. c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4848, h * 0.0296);
  5571. c.arcTo(w * 0.0993, h * 0.0779, 0, 0, 0, w * 0.455, h * 0.0234);
  5572. c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.4172, h * 0.026);
  5573. c.arcTo(w * 0.0397, h * 0.0312, 0, 0, 0, w * 0.3927, h * 0.039);
  5574. c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 0, w * 0.3974, h * 0.0571);
  5575. c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4205, h * 0.0701);
  5576. c.arcTo(w * 0.0331, h * 0.026, 0, 0, 0, w * 0.4404, h * 0.0722);
  5577. c.moveTo(w * 0.42, h * 0.049);
  5578. c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.055);
  5579. c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.45, h * 0.049);
  5580. c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.043);
  5581. c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.42, h * 0.049);
  5582. c.close();
  5583. c.moveTo(w * 0.4669, h * 0.0894);
  5584. c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.5099, h * 0.0831);
  5585. c.lineTo(w * 0.6689, h * 0.1543);
  5586. c.lineTo(w * 0.4887, h * 0.1371);
  5587. c.close();
  5588. c.moveTo(w * 0.3887, h * 0.0769);
  5589. c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.4205, h * 0.0888);
  5590. c.arcTo(w * 0.0662, h * 0.026, 0, 0, 0, w * 0.447, h * 0.0894);
  5591. c.lineTo(w * 0.4735, h * 0.1512);
  5592. c.lineTo(w * 0.6689, h * 0.1688);
  5593. c.lineTo(w * 0.5199, h * 0.2364);
  5594. c.lineTo(w * 0.2815, h * 0.1273);
  5595. c.close();
  5596. c.fill();
  5597. c.setStrokeWidth(2 * strokeWidth);
  5598. c.setStrokeColor(strokeColor2);
  5599. c.setLineJoin('round');
  5600. c.begin();
  5601. c.moveTo(0, h * 0.8182);
  5602. c.lineTo(0, h * 0.1818);
  5603. c.lineTo(w * 0.4007, 0);
  5604. c.lineTo(w * 0.606, 0);
  5605. c.lineTo(w, h * 0.1792);
  5606. c.lineTo(w, h * 0.8182);
  5607. c.lineTo(w * 0.5993, h);
  5608. c.lineTo(w * 0.4007, h);
  5609. c.close();
  5610. c.stroke();
  5611. };
  5612. mxCellRenderer.registerShape(mxShapeAws3dEmailService.prototype.cst.EMAIL_SERVICE, mxShapeAws3dEmailService);
  5613. //**********************************************************************************************************************************************************
  5614. //Worker
  5615. //**********************************************************************************************************************************************************
  5616. /**
  5617. * Extends mxShape.
  5618. */
  5619. function mxShapeAws3dWorker(bounds, fill, stroke, strokewidth)
  5620. {
  5621. mxShape.call(this);
  5622. this.bounds = bounds;
  5623. this.fill = fill;
  5624. this.stroke = stroke;
  5625. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  5626. };
  5627. /**
  5628. * Extends mxShape.
  5629. */
  5630. mxUtils.extend(mxShapeAws3dWorker, mxShape);
  5631. mxShapeAws3dWorker.prototype.cst = {
  5632. WORKER : 'mxgraph.aws3d.worker',
  5633. SHADING_COLORS : 'shadingCols'
  5634. };
  5635. mxShapeAws3dWorker.prototype.customProperties = [
  5636. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  5637. ];
  5638. /**
  5639. * Function: paintVertexShape
  5640. *
  5641. * Paints the vertex shape.
  5642. */
  5643. mxShapeAws3dWorker.prototype.paintVertexShape = function(c, x, y, w, h)
  5644. {
  5645. c.translate(x, y);
  5646. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  5647. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  5648. var strokeWidth1 = strokeWidth * w / 74;
  5649. var strokeWidth2 = strokeWidth * h / 50;
  5650. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  5651. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  5652. c.setStrokeWidth(strokeWidth);
  5653. c.setShadow(false);
  5654. c.save();
  5655. c.save();
  5656. c.setStrokeWidth(2 * strokeWidth);
  5657. c.setStrokeColor(strokeColor2);
  5658. c.setLineJoin('round');
  5659. if (isShadow == 1)
  5660. {
  5661. c.setShadow(true);
  5662. }
  5663. c.begin();
  5664. c.moveTo(0, h * 0.572);
  5665. c.lineTo(w * 0.0865, h * 0.284);
  5666. c.lineTo(w * 0.4203, 0);
  5667. c.lineTo(w * 0.5865, 0);
  5668. c.lineTo(w * 0.919, h * 0.286);
  5669. c.lineTo(w, h * 0.566);
  5670. c.lineTo(w * 0.5027, h);
  5671. c.close();
  5672. c.fillAndStroke();
  5673. c.restore();
  5674. c.setFillColor('#000000');
  5675. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorker.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  5676. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  5677. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  5678. c.begin();
  5679. c.moveTo(0, h * 0.566);
  5680. c.lineTo(w * 0.0892, h * 0.282);
  5681. c.lineTo(w * 0.0878, h * 0.426);
  5682. c.lineTo(w * 0.4216, h * 0.712);
  5683. c.lineTo(w * 0.5865, h * 0.712);
  5684. c.lineTo(w * 0.5027, h);
  5685. c.close();
  5686. c.fill();
  5687. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  5688. c.begin();
  5689. c.moveTo(w * 0.5027, h);
  5690. c.lineTo(w * 0.5865, h * 0.712);
  5691. c.lineTo(w * 0.9176, h * 0.43);
  5692. c.lineTo(w, h * 0.566);
  5693. c.close();
  5694. c.fill();
  5695. c.restore();
  5696. c.setLineJoin('round');
  5697. c.begin();
  5698. c.moveTo(0, h * 0.566);
  5699. c.lineTo(w * 0.0892, h * 0.282);
  5700. c.lineTo(w * 0.0878, h * 0.426);
  5701. c.lineTo(w * 0.4216, h * 0.712);
  5702. c.lineTo(w * 0.5865, h * 0.712);
  5703. c.lineTo(w * 0.5027, h);
  5704. c.close();
  5705. c.moveTo(w * 0.5027, h);
  5706. c.lineTo(w * 0.5865, h * 0.712);
  5707. c.lineTo(w * 0.9176, h * 0.43);
  5708. c.lineTo(w, h * 0.566);
  5709. c.close();
  5710. c.moveTo(0, h * 0.572);
  5711. c.lineTo(w * 0.0892, h * 0.422);
  5712. c.moveTo(w * 0.5027, h);
  5713. c.lineTo(w * 0.4189, h * 0.708);
  5714. c.moveTo(w * 0.9176, h * 0.43);
  5715. c.lineTo(w * 0.9176, h * 0.29);
  5716. c.stroke();
  5717. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  5718. c.setFillColor(strokeColor);
  5719. c.setLineJoin('round');
  5720. c.begin();
  5721. c.moveTo(w * 0.2892, h * 0.2104);
  5722. c.lineTo(w * 0.3595, h * 0.1503);
  5723. c.lineTo(w * 0.3973, h * 0.1844);
  5724. c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.4486, h * 0.1703);
  5725. c.lineTo(w * 0.4486, h * 0.1242);
  5726. c.lineTo(w * 0.5527, h * 0.1242);
  5727. c.lineTo(w * 0.5527, h * 0.1703);
  5728. c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.6149, h * 0.1924);
  5729. c.lineTo(w * 0.6527, h * 0.1603);
  5730. c.lineTo(w * 0.7257, h * 0.2224);
  5731. c.lineTo(w * 0.6892, h * 0.2545);
  5732. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.7162, h * 0.3106);
  5733. c.lineTo(w * 0.7676, h * 0.3106);
  5734. c.lineTo(w * 0.7676, h * 0.3988);
  5735. c.lineTo(w * 0.7162, h * 0.3988);
  5736. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.6973, h * 0.4409);
  5737. c.lineTo(w * 0.7378, h * 0.475);
  5738. c.lineTo(w * 0.6635, h * 0.5371);
  5739. c.lineTo(w * 0.6297, h * 0.505);
  5740. c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.5527, h * 0.5351);
  5741. c.lineTo(w * 0.5527, h * 0.5812);
  5742. c.lineTo(w * 0.45, h * 0.5812);
  5743. c.lineTo(w * 0.45, h * 0.5351);
  5744. c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.3878, h * 0.513);
  5745. c.lineTo(w * 0.3514, h * 0.5431);
  5746. c.lineTo(w * 0.2784, h * 0.481);
  5747. c.lineTo(w * 0.3149, h * 0.4509);
  5748. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.2865, h * 0.3968);
  5749. c.lineTo(w * 0.2351, h * 0.3968);
  5750. c.lineTo(w * 0.2351, h * 0.3086);
  5751. c.lineTo(w * 0.2865, h * 0.3086);
  5752. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.3203, h * 0.2425);
  5753. c.close();
  5754. c.moveTo(w * 0.4054, h * 0.2445);
  5755. c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.3554, h * 0.2986);
  5756. c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.3432, h * 0.3567);
  5757. c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.3635, h * 0.4208);
  5758. c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.4122, h * 0.4649);
  5759. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4122, h * 0.4649);
  5760. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5676, h * 0.4749);
  5761. c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.6351, h * 0.4228);
  5762. c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.6595, h * 0.3467);
  5763. c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.6149, h * 0.2605);
  5764. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5419, h * 0.2204);
  5765. c.arcTo(w * 0.3378, h * 0.501, 0, 0, 0, w * 0.4649, h * 0.2184);
  5766. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4054, h * 0.2445);
  5767. c.close();
  5768. c.moveTo(w * 0.473, h * 0.2806);
  5769. c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.55, h * 0.2866);
  5770. c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 1, w * 0.5892, h * 0.3307);
  5771. c.arcTo(w * 0.0338, h * 0.0501, 0, 0, 1, w * 0.5824, h * 0.3888);
  5772. c.arcTo(w * 0.0946, h * 0.1403, 0, 0, 1, w * 0.5216, h * 0.4269);
  5773. c.arcTo(w * 0.1622, h * 0.2405, 0, 0, 1, w * 0.4432, h * 0.4128);
  5774. c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4108, h * 0.3527);
  5775. c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4351, h * 0.2986);
  5776. c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 1, w * 0.473, h * 0.2806);
  5777. c.close();
  5778. c.fill();
  5779. c.setStrokeWidth(2 * strokeWidth);
  5780. c.setStrokeColor(strokeColor2);
  5781. c.begin();
  5782. c.moveTo(0, h * 0.572);
  5783. c.lineTo(w * 0.0865, h * 0.284);
  5784. c.lineTo(w * 0.4203, 0);
  5785. c.lineTo(w * 0.5865, 0);
  5786. c.lineTo(w * 0.919, h * 0.286);
  5787. c.lineTo(w, h * 0.566);
  5788. c.lineTo(w * 0.5027, h);
  5789. c.close();
  5790. c.stroke();
  5791. };
  5792. mxCellRenderer.registerShape(mxShapeAws3dWorker.prototype.cst.WORKER, mxShapeAws3dWorker);
  5793. //**********************************************************************************************************************************************************
  5794. //Application
  5795. //**********************************************************************************************************************************************************
  5796. /**
  5797. * Extends mxShape.
  5798. */
  5799. function mxShapeAws3dApplication2(bounds, fill, stroke, strokewidth)
  5800. {
  5801. mxShape.call(this);
  5802. this.bounds = bounds;
  5803. this.fill = fill;
  5804. this.stroke = stroke;
  5805. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  5806. };
  5807. /**
  5808. * Extends mxShape.
  5809. */
  5810. mxUtils.extend(mxShapeAws3dApplication2, mxShape);
  5811. mxShapeAws3dApplication2.prototype.cst = {
  5812. APPLICATION2 : 'mxgraph.aws3d.application2',
  5813. SHADING_COLORS : 'shadingCols'
  5814. };
  5815. mxShapeAws3dApplication2.prototype.customProperties = [
  5816. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  5817. ];
  5818. /**
  5819. * Function: paintVertexShape
  5820. *
  5821. * Paints the vertex shape.
  5822. */
  5823. mxShapeAws3dApplication2.prototype.paintVertexShape = function(c, x, y, w, h)
  5824. {
  5825. c.translate(x, y);
  5826. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  5827. var strokeWidth1 = strokeWidth * w / 62;
  5828. var strokeWidth2 = strokeWidth * h / 53.5;
  5829. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  5830. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  5831. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  5832. c.setShadow(false);
  5833. c.setStrokeWidth(strokeWidth);
  5834. c.save();
  5835. c.save();
  5836. c.setStrokeWidth(2 * strokeWidth);
  5837. c.setStrokeColor(strokeColor2);
  5838. c.setLineJoin('round');
  5839. if (isShadow == 1)
  5840. {
  5841. c.setShadow(true);
  5842. }
  5843. c.begin();
  5844. c.moveTo(0, h * 0.6766);
  5845. c.lineTo(0, h * 0.3271);
  5846. c.lineTo(w * 0.5, 0);
  5847. c.lineTo(w, h * 0.3271);
  5848. c.lineTo(w, h * 0.6766);
  5849. c.lineTo(w * 0.5, h);
  5850. c.close();
  5851. c.fillAndStroke();
  5852. c.restore();
  5853. c.setFillColor('#000000');
  5854. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  5855. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  5856. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  5857. c.begin();
  5858. c.moveTo(0, h * 0.3271);
  5859. c.lineTo(w * 0.5, h * 0.6449);
  5860. c.lineTo(w * 0.5, h);
  5861. c.lineTo(0, h * 0.6766);
  5862. c.close();
  5863. c.fill();
  5864. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  5865. c.begin();
  5866. c.moveTo(w * 0.5, h * 0.6449);
  5867. c.lineTo(w, h * 0.3271);
  5868. c.lineTo(w, h * 0.6766);
  5869. c.lineTo(w * 0.5, h);
  5870. c.close();
  5871. c.fill();
  5872. c.restore();
  5873. c.setLineJoin('round');
  5874. c.begin();
  5875. c.moveTo(0, h * 0.3271);
  5876. c.lineTo(w * 0.5, h * 0.6449);
  5877. c.lineTo(w * 0.5, h);
  5878. c.lineTo(0, h * 0.6766);
  5879. c.close();
  5880. c.stroke();
  5881. c.begin();
  5882. c.moveTo(w * 0.5, h * 0.6449);
  5883. c.lineTo(w, h * 0.3271);
  5884. c.lineTo(w, h * 0.6766);
  5885. c.lineTo(w * 0.5, h);
  5886. c.close();
  5887. c.stroke();
  5888. c.setLineJoin('miter');
  5889. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  5890. c.setFillColor(strokeColor);
  5891. c.begin();
  5892. c.moveTo(w * 0.1742, h * 0.6355);
  5893. c.lineTo(w * 0.1742, h * 0.4393);
  5894. c.lineTo(w * 0.6726, h * 0.1121);
  5895. c.lineTo(w * 0.7661, h * 0.1738);
  5896. c.lineTo(w * 0.2661, h * 0.4991);
  5897. c.lineTo(w * 0.2661, h * 0.6916);
  5898. c.close();
  5899. c.moveTo(w * 0.2871, h * 0.7084);
  5900. c.lineTo(w * 0.2871, h * 0.514);
  5901. c.lineTo(w * 0.7823, h * 0.1869);
  5902. c.lineTo(w * 0.8629, h * 0.2374);
  5903. c.lineTo(w * 0.379, h * 0.5626);
  5904. c.lineTo(w * 0.379, h * 0.7607);
  5905. c.close();
  5906. c.fill();
  5907. c.setStrokeWidth(2 * strokeWidth);
  5908. c.setStrokeColor(strokeColor2);
  5909. c.setLineJoin('round');
  5910. c.begin();
  5911. c.moveTo(0, h * 0.6766);
  5912. c.lineTo(0, h * 0.3271);
  5913. c.lineTo(w * 0.5, 0);
  5914. c.lineTo(w, h * 0.3271);
  5915. c.lineTo(w, h * 0.6766);
  5916. c.lineTo(w * 0.5, h);
  5917. c.close();
  5918. c.stroke();
  5919. };
  5920. mxCellRenderer.registerShape(mxShapeAws3dApplication2.prototype.cst.APPLICATION2, mxShapeAws3dApplication2);
  5921. //**********************************************************************************************************************************************************
  5922. //Elastic Beanstalk
  5923. //**********************************************************************************************************************************************************
  5924. /**
  5925. * Extends mxShape.
  5926. */
  5927. function mxShapeAws3dElasticBeanstalk(bounds, fill, stroke, strokewidth)
  5928. {
  5929. mxShape.call(this);
  5930. this.bounds = bounds;
  5931. this.fill = fill;
  5932. this.stroke = stroke;
  5933. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  5934. };
  5935. /**
  5936. * Extends mxShape.
  5937. */
  5938. mxUtils.extend(mxShapeAws3dElasticBeanstalk, mxShape);
  5939. mxShapeAws3dElasticBeanstalk.prototype.cst = {
  5940. ELASTIC_BEANSTALK : 'mxgraph.aws3d.elasticBeanstalk',
  5941. SHADING_COLORS : 'shadingCols'
  5942. };
  5943. mxShapeAws3dElasticBeanstalk.prototype.customProperties = [
  5944. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  5945. ];
  5946. /**
  5947. * Function: paintVertexShape
  5948. *
  5949. * Paints the vertex shape.
  5950. */
  5951. mxShapeAws3dElasticBeanstalk.prototype.paintVertexShape = function(c, x, y, w, h)
  5952. {
  5953. c.translate(x, y);
  5954. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  5955. var strokeWidth1 = strokeWidth * w / 181.5;
  5956. var strokeWidth2 = strokeWidth * h / 140;
  5957. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  5958. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  5959. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  5960. c.setShadow(false);
  5961. c.setStrokeWidth(strokeWidth);
  5962. c.save();
  5963. c.save();
  5964. c.save();
  5965. c.setStrokeWidth(2 * strokeWidth);
  5966. c.setStrokeColor(strokeColor2);
  5967. c.setLineJoin('round');
  5968. if (isShadow == 1)
  5969. {
  5970. c.setShadow(true);
  5971. }
  5972. c.begin();
  5973. c.moveTo(0, h * 0.6239);
  5974. c.lineTo(0, h * 0.3754);
  5975. c.lineTo(w * 0.5, 0);
  5976. c.lineTo(w, h * 0.3754);
  5977. c.lineTo(w, h * 0.6239);
  5978. c.lineTo(w * 0.5, h);
  5979. c.close();
  5980. c.fillAndStroke();
  5981. c.restore();
  5982. c.setFillColor('#000000');
  5983. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticBeanstalk.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  5984. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  5985. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  5986. c.begin();
  5987. c.moveTo(0, h * 0.3754);
  5988. c.lineTo(w * 0.5, h * 0.7514);
  5989. c.lineTo(w * 0.5, h);
  5990. c.lineTo(0, h * 0.6239);
  5991. c.close();
  5992. c.fill();
  5993. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  5994. c.begin();
  5995. c.moveTo(w * 0.5, h * 0.7514);
  5996. c.lineTo(w, h * 0.3754);
  5997. c.lineTo(w, h * 0.6239);
  5998. c.lineTo(w * 0.5, h);
  5999. c.close();
  6000. c.fill();
  6001. c.restore();
  6002. c.setLineJoin('round');
  6003. c.begin();
  6004. c.moveTo(0, h * 0.3754);
  6005. c.lineTo(w * 0.5, h * 0.7514);
  6006. c.lineTo(w * 0.5, h);
  6007. c.lineTo(0, h * 0.6239);
  6008. c.close();
  6009. c.moveTo(w * 0.5, h * 0.7514);
  6010. c.lineTo(w, h * 0.3754);
  6011. c.lineTo(w, h * 0.6239);
  6012. c.lineTo(w * 0.5, h);
  6013. c.close();
  6014. c.moveTo(w * 0.2485, h * 0.187);
  6015. c.lineTo(w * 0.7493, h * 0.5623);
  6016. c.lineTo(w * 0.7493, h * 0.8123);
  6017. c.stroke();
  6018. c.setLineJoin('miter');
  6019. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  6020. c.setFillColor(strokeColor);
  6021. c.begin();
  6022. c.moveTo(w * 0.7763, h * 0.2063);
  6023. c.lineTo(w * 0.2749, h * 0.5817);
  6024. c.lineTo(w * 0.2749, h * 0.8309);
  6025. c.lineTo(w * 0.2204, h * 0.7894);
  6026. c.lineTo(w * 0.2204, h * 0.5394);
  6027. c.lineTo(w * 0.7185, h * 0.1619);
  6028. c.close();
  6029. c.fill();
  6030. c.restore();
  6031. c.begin();
  6032. c.moveTo(w * 0.1713, h * 0.543);
  6033. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2028, h * 0.5723);
  6034. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2281, h * 0.6096);
  6035. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2402, h * 0.644);
  6036. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2424, h * 0.6848);
  6037. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.216, h * 0.6612);
  6038. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.1895, h * 0.6239);
  6039. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.1719, h * 0.5824);
  6040. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.1713, h * 0.543);
  6041. c.close();
  6042. c.moveTo(w * 0.2507, h * 0.7794);
  6043. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.254, h * 0.7421);
  6044. c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.27, h * 0.7264);
  6045. c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2986, h * 0.73);
  6046. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3234, h * 0.7457);
  6047. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3218, h * 0.7815);
  6048. c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.3019, h * 0.7987);
  6049. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.27, h * 0.7923);
  6050. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2507, h * 0.7794);
  6051. c.close();
  6052. c.moveTo(w * 0.2799, h * 0.5265);
  6053. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.3003, h * 0.515);
  6054. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3317, h * 0.515);
  6055. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3774, h * 0.5315);
  6056. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4033, h * 0.5487);
  6057. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3906, h * 0.5595);
  6058. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3493, h * 0.5616);
  6059. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3069, h * 0.5444);
  6060. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2799, h * 0.5265);
  6061. c.close();
  6062. c.moveTo(w * 0.2887, h * 0.3933);
  6063. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.314, h * 0.414);
  6064. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3322, h * 0.4391);
  6065. c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.3344, h * 0.4699);
  6066. c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.3196, h * 0.485);
  6067. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2887, h * 0.4592);
  6068. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.27, h * 0.4269);
  6069. c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.2727, h * 0.4054);
  6070. c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2887, h * 0.3933);
  6071. c.close();
  6072. c.moveTo(w * 0.4613, h * 0.262);
  6073. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4867, h * 0.2827);
  6074. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5049, h * 0.3078);
  6075. c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.5071, h * 0.3386);
  6076. c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4922, h * 0.3537);
  6077. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4613, h * 0.3279);
  6078. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4426, h * 0.2956);
  6079. c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.4453, h * 0.2741);
  6080. c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4613, h * 0.262);
  6081. c.close();
  6082. c.moveTo(w * 0.4525, h * 0.3952);
  6083. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4729, h * 0.3837);
  6084. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5043, h * 0.3837);
  6085. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.55, h * 0.4002);
  6086. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5759, h * 0.4174);
  6087. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5633, h * 0.4282);
  6088. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5219, h * 0.4303);
  6089. c.arcTo(w * 0.1653, h * 0.1074, 0, 0, 1, w * 0.4795, h * 0.4131);
  6090. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4525, h * 0.3952);
  6091. c.close();
  6092. c.moveTo(w * 0.6217, h * 0.1426);
  6093. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6471, h * 0.1633);
  6094. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6652, h * 0.1884);
  6095. c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.6674, h * 0.2192);
  6096. c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6526, h * 0.2342);
  6097. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6217, h * 0.2085);
  6098. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.603, h * 0.1762);
  6099. c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.6057, h * 0.1547);
  6100. c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6217, h * 0.1426);
  6101. c.close();
  6102. c.moveTo(w * 0.6129, h * 0.2758);
  6103. c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.6333, h * 0.2643);
  6104. c.arcTo(w * 0.0826, h * 0.1433, 0, 0, 1, w * 0.6647, h * 0.2643);
  6105. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7104, h * 0.2808);
  6106. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);
  6107. c.arcTo(w * 0.0826, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);
  6108. c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.6823, h * 0.3109);
  6109. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6399, h * 0.2937);
  6110. c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6129, h * 0.2758);
  6111. c.close();
  6112. c.fillAndStroke();
  6113. c.setStrokeWidth(2 * strokeWidth);
  6114. c.setStrokeColor(strokeColor2);
  6115. c.setLineJoin('round');
  6116. c.begin();
  6117. c.moveTo(0, h * 0.6239);
  6118. c.lineTo(0, h * 0.3754);
  6119. c.lineTo(w * 0.5, 0);
  6120. c.lineTo(w, h * 0.3754);
  6121. c.lineTo(w, h * 0.6239);
  6122. c.lineTo(w * 0.5, h);
  6123. c.close();
  6124. c.stroke();
  6125. };
  6126. mxCellRenderer.registerShape(mxShapeAws3dElasticBeanstalk.prototype.cst.ELASTIC_BEANSTALK, mxShapeAws3dElasticBeanstalk);
  6127. //**********************************************************************************************************************************************************
  6128. //SimpleDB 2
  6129. //**********************************************************************************************************************************************************
  6130. /**
  6131. * Extends mxShape.
  6132. */
  6133. function mxShapeAws3dSimpleDB2(bounds, fill, stroke, strokewidth)
  6134. {
  6135. mxShape.call(this);
  6136. this.bounds = bounds;
  6137. this.fill = fill;
  6138. this.stroke = stroke;
  6139. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  6140. };
  6141. /**
  6142. * Extends mxShape.
  6143. */
  6144. mxUtils.extend(mxShapeAws3dSimpleDB2, mxShape);
  6145. mxShapeAws3dSimpleDB2.prototype.cst = {
  6146. SIMPLE_DB_2 : 'mxgraph.aws3d.simpleDb2',
  6147. SHADING_COLORS : 'shadingCols'
  6148. };
  6149. mxShapeAws3dSimpleDB2.prototype.customProperties = [
  6150. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  6151. ];
  6152. /**
  6153. * Function: paintVertexShape
  6154. *
  6155. * Paints the vertex shape.
  6156. */
  6157. mxShapeAws3dSimpleDB2.prototype.paintVertexShape = function(c, x, y, w, h)
  6158. {
  6159. c.translate(x, y);
  6160. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  6161. var strokeWidth1 = strokeWidth * w / 181.5;
  6162. var strokeWidth2 = strokeWidth * h / 210;
  6163. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  6164. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  6165. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6166. c.setShadow(false);
  6167. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6168. };
  6169. mxShapeAws3dSimpleDB2.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6170. {
  6171. c.setStrokeWidth(strokeWidth);
  6172. c.save();
  6173. c.save();
  6174. c.save();
  6175. c.setStrokeWidth(2 * strokeWidth);
  6176. c.setStrokeColor(strokeColor2);
  6177. c.setLineJoin('round');
  6178. c.begin();
  6179. c.moveTo(0, h * 0.8183);
  6180. c.lineTo(0, h * 0.1848);
  6181. c.lineTo(w * 0.3366, 0);
  6182. c.lineTo(w * 0.6293, h * 0.0021);
  6183. c.lineTo(w, h * 0.1833);
  6184. c.lineTo(w, h * 0.8183);
  6185. c.lineTo(w * 0.6694, h);
  6186. c.lineTo(w * 0.4986, h * 0.9091);
  6187. c.lineTo(w * 0.3333, h);
  6188. c.close();
  6189. c.fillAndStroke();
  6190. };
  6191. mxShapeAws3dSimpleDB2.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6192. {
  6193. c.restore();
  6194. c.setShadow(false);
  6195. c.setFillColor('#000000');
  6196. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  6197. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  6198. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  6199. c.begin();
  6200. c.moveTo(0, h * 0.1848);
  6201. c.lineTo(w * 0.168, h * 0.1833);
  6202. c.lineTo(0, h * 0.365);
  6203. c.lineTo(w * 0.3333, h * 0.5467);
  6204. c.lineTo(w * 0.3333, h);
  6205. c.lineTo(0, h * 0.8183);
  6206. c.close();
  6207. c.moveTo(w * 0.4986, h * 0.9078);
  6208. c.lineTo(w * 0.4986, h * 0.3655);
  6209. c.lineTo(w * 0.6667, h * 0.5457);
  6210. c.lineTo(w * 0.6667, h);
  6211. c.close();
  6212. c.fill();
  6213. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  6214. c.begin();
  6215. c.moveTo(w * 0.3333, h * 0.5467);
  6216. c.lineTo(w * 0.4986, h * 0.3655);
  6217. c.lineTo(w * 0.4986, h * 0.9076);
  6218. c.lineTo(w * 0.3333, h);
  6219. c.close();
  6220. c.moveTo(w * 0.8292, h * 0.1822);
  6221. c.lineTo(w, h * 0.1848);
  6222. c.lineTo(w, h * 0.8183);
  6223. c.lineTo(w * 0.6667, h);
  6224. c.lineTo(w * 0.6667, h * 0.5441);
  6225. c.lineTo(w, h * 0.3666);
  6226. c.close();
  6227. c.fill();
  6228. c.restore();
  6229. c.setShadow(false);
  6230. c.setLineJoin('round');
  6231. c.begin();
  6232. c.moveTo(0, h * 0.1848);
  6233. c.lineTo(w * 0.168, h * 0.1833);
  6234. c.lineTo(0, h * 0.365);
  6235. c.lineTo(w * 0.3333, h * 0.5467);
  6236. c.lineTo(w * 0.3333, h);
  6237. c.lineTo(0, h * 0.8183);
  6238. c.close();
  6239. c.moveTo(w * 0.4986, h * 0.9078);
  6240. c.lineTo(w * 0.4986, h * 0.3655);
  6241. c.lineTo(w * 0.6667, h * 0.5457);
  6242. c.lineTo(w * 0.6667, h);
  6243. c.close();
  6244. c.moveTo(w * 0.3333, h * 0.5467);
  6245. c.lineTo(w * 0.4986, h * 0.3655);
  6246. c.lineTo(w * 0.4986, h * 0.9076);
  6247. c.lineTo(w * 0.3333, h);
  6248. c.close();
  6249. c.moveTo(w * 0.8292, h * 0.1822);
  6250. c.lineTo(w, h * 0.1848);
  6251. c.lineTo(w, h * 0.8183);
  6252. c.lineTo(w * 0.6667, h);
  6253. c.lineTo(w * 0.6667, h * 0.5441);
  6254. c.lineTo(w, h * 0.3666);
  6255. c.close();
  6256. c.moveTo(w * 0.1669, h * 0.1828);
  6257. c.lineTo(w * 0.4986, h * 0.3655);
  6258. c.lineTo(w * 0.8314, h * 0.1833);
  6259. c.lineTo(w * 0.4986, h * 0.0031);
  6260. c.close();
  6261. c.stroke();
  6262. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  6263. c.setFillColor(strokeColor);
  6264. c.begin();
  6265. c.moveTo(w * 0.2634, h * 0.1833);
  6266. c.lineTo(w * 0.5003, h * 0.0535);
  6267. c.lineTo(w * 0.7394, h * 0.1833);
  6268. c.lineTo(w * 0.5003, h * 0.3136);
  6269. c.close();
  6270. c.fill();
  6271. var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');
  6272. c.restore();
  6273. c.setShadow(false);
  6274. c.setStrokeWidth(3 * strokeWidth);
  6275. c.setStrokeColor(fillColor);
  6276. c.begin();
  6277. c.moveTo(w * 0.3003, h * 0.2108);
  6278. c.lineTo(w * 0.5642, h * 0.068);
  6279. c.moveTo(w * 0.4429, h * 0.0693);
  6280. c.lineTo(w * 0.7059, h * 0.2121);
  6281. c.moveTo(w * 0.6667, h * 0.2458);
  6282. c.lineTo(w * 0.3974, h * 0.0992);
  6283. c.moveTo(w * 0.3499, h * 0.1277);
  6284. c.lineTo(w * 0.6088, h * 0.2698);
  6285. c.moveTo(w * 0.3009, h * 0.1556);
  6286. c.lineTo(w * 0.5496, h * 0.2913);
  6287. c.stroke();
  6288. c.setStrokeWidth(2 * strokeWidth);
  6289. c.setStrokeColor(strokeColor2);
  6290. c.setLineJoin('round');
  6291. c.begin();
  6292. c.moveTo(0, h * 0.8183);
  6293. c.lineTo(0, h * 0.1848);
  6294. c.lineTo(w * 0.3366, 0);
  6295. c.lineTo(w * 0.6293, h * 0.0021);
  6296. c.lineTo(w, h * 0.1833);
  6297. c.lineTo(w, h * 0.8183);
  6298. c.lineTo(w * 0.6694, h);
  6299. c.lineTo(w * 0.4986, h * 0.9091);
  6300. c.lineTo(w * 0.3333, h);
  6301. c.close();
  6302. c.stroke();
  6303. };
  6304. mxCellRenderer.registerShape(mxShapeAws3dSimpleDB2.prototype.cst.SIMPLE_DB_2, mxShapeAws3dSimpleDB2);
  6305. //**********************************************************************************************************************************************************
  6306. //Workflow Service
  6307. //**********************************************************************************************************************************************************
  6308. /**
  6309. * Extends mxShape.
  6310. */
  6311. function mxShapeAws3dWorkflowService(bounds, fill, stroke, strokewidth)
  6312. {
  6313. mxShape.call(this);
  6314. this.bounds = bounds;
  6315. this.fill = fill;
  6316. this.stroke = stroke;
  6317. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  6318. };
  6319. /**
  6320. * Extends mxShape.
  6321. */
  6322. mxUtils.extend(mxShapeAws3dWorkflowService, mxShape);
  6323. mxShapeAws3dWorkflowService.prototype.cst = {
  6324. WORKFLOW_SERVICE : 'mxgraph.aws3d.workflowService',
  6325. SHADING_COLORS : 'shadingCols'
  6326. };
  6327. mxShapeAws3dWorkflowService.prototype.customProperties = [
  6328. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  6329. ];
  6330. /**
  6331. * Function: paintVertexShape
  6332. *
  6333. * Paints the vertex shape.
  6334. */
  6335. mxShapeAws3dWorkflowService.prototype.paintVertexShape = function(c, x, y, w, h)
  6336. {
  6337. c.translate(x, y);
  6338. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  6339. var strokeWidth1 = strokeWidth * w / 181.5;
  6340. var strokeWidth2 = strokeWidth * h / 210;
  6341. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  6342. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  6343. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6344. c.setShadow(false);
  6345. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6346. };
  6347. mxShapeAws3dWorkflowService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6348. {
  6349. c.setStrokeWidth(strokeWidth);
  6350. c.save();
  6351. c.save();
  6352. c.save();
  6353. c.setStrokeWidth(2 * strokeWidth);
  6354. c.setStrokeColor(strokeColor2);
  6355. c.setLineJoin('round');
  6356. c.begin();
  6357. c.moveTo(0, h * 0.6456);
  6358. c.lineTo(w * 0.2481, 0);
  6359. c.lineTo(w * 0.7497, 0);
  6360. c.lineTo(w, h * 0.6456);
  6361. c.lineTo(w * 0.4984, h);
  6362. c.close();
  6363. c.fillAndStroke();
  6364. };
  6365. mxShapeAws3dWorkflowService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6366. {
  6367. c.restore();
  6368. c.setShadow(false);
  6369. c.setFillColor('#000000');
  6370. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorkflowService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  6371. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  6372. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  6373. c.begin();
  6374. c.moveTo(0, h * 0.6456);
  6375. c.lineTo(w * 0.2486, 0);
  6376. c.lineTo(w * 0.2486, h * 0.3531);
  6377. c.lineTo(w * 0.4984, h);
  6378. c.close();
  6379. c.moveTo(w * 0.7497, h * 0.3531);
  6380. c.lineTo(w * 0.7497, 0);
  6381. c.lineTo(w, h * 0.6456);
  6382. c.close();
  6383. c.fill();
  6384. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  6385. c.begin();
  6386. c.moveTo(w * 0.4984, h);
  6387. c.lineTo(w * 0.7486, h * 0.3531);
  6388. c.lineTo(w, h * 0.6456);
  6389. c.lineTo(w * 0.4967, h);
  6390. c.close();
  6391. c.fill();
  6392. c.restore();
  6393. c.setShadow(false);
  6394. c.setLineJoin('round');
  6395. c.begin();
  6396. c.moveTo(w * 0.7497, h * 0.3531);
  6397. c.lineTo(w * 0.7497, 0);
  6398. c.lineTo(w, h * 0.6456);
  6399. c.close();
  6400. c.moveTo(0, h * 0.6456);
  6401. c.lineTo(w * 0.2486, 0);
  6402. c.lineTo(w * 0.2486, h * 0.3531);
  6403. c.lineTo(w * 0.4984, h);
  6404. c.lineTo(w * 0.7486, h * 0.3531);
  6405. c.lineTo(w, h * 0.6456);
  6406. c.lineTo(w * 0.4967, h);
  6407. c.close();
  6408. c.moveTo(w * 0.2486, h * 0.3531);
  6409. c.lineTo(w * 0.7508, h * 0.3531);
  6410. c.moveTo(w * 0.2488, h * 0.353);
  6411. c.lineTo(0, h * 0.6486);
  6412. c.stroke();
  6413. c.restore();
  6414. c.setShadow(false);
  6415. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  6416. c.setFillColor(strokeColor);
  6417. c.setStrokeWidth(2 * strokeWidth);
  6418. c.begin();
  6419. c.ellipse(w * 0.2925, h * 0.031, w * 0.4116, h * 0.2925);
  6420. c.fill();
  6421. var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');
  6422. c.setStrokeColor(fillColor);
  6423. c.begin();
  6424. c.moveTo(w * 0.5252, h * 0.0465);
  6425. c.lineTo(w * 0.5873, h * 0.0903);
  6426. c.lineTo(w * 0.5483, h * 0.1173);
  6427. c.lineTo(w * 0.4874, h * 0.0728);
  6428. c.close();
  6429. c.moveTo(w * 0.4896, h * 0.1132);
  6430. c.lineTo(w * 0.5005, h * 0.1705);
  6431. c.lineTo(w * 0.4182, h * 0.1631);
  6432. c.lineTo(w * 0.4122, h * 0.1058);
  6433. c.close();
  6434. c.moveTo(w * 0.3584, h * 0.1631);
  6435. c.lineTo(w * 0.4204, h * 0.2062);
  6436. c.lineTo(w * 0.3825, h * 0.2332);
  6437. c.lineTo(w * 0.32, h * 0.19);
  6438. c.close();
  6439. c.moveTo(w * 0.4594, h * 0.2338);
  6440. c.lineTo(w * 0.5214, h * 0.2783);
  6441. c.lineTo(w * 0.4835, h * 0.3053);
  6442. c.lineTo(w * 0.4215, h * 0.2608);
  6443. c.close();
  6444. c.moveTo(w * 0.5187, h * 0.0943);
  6445. c.lineTo(w * 0.4879, h * 0.1152);
  6446. c.moveTo(w * 0.421, h * 0.1624);
  6447. c.lineTo(w * 0.3895, h * 0.1846);
  6448. c.moveTo(w * 0.5, h * 0.1698);
  6449. c.lineTo(w * 0.5554, h * 0.2089);
  6450. c.lineTo(w * 0.4885, h * 0.2567);
  6451. c.stroke();
  6452. c.setStrokeWidth(2 * strokeWidth);
  6453. c.setStrokeColor(strokeColor2);
  6454. c.setLineJoin('round');
  6455. c.begin();
  6456. c.moveTo(0, h * 0.6456);
  6457. c.lineTo(w * 0.2481, 0);
  6458. c.lineTo(w * 0.7497, 0);
  6459. c.lineTo(w, h * 0.6456);
  6460. c.lineTo(w * 0.4984, h);
  6461. c.close();
  6462. c.close();
  6463. c.stroke();
  6464. };
  6465. mxCellRenderer.registerShape(mxShapeAws3dWorkflowService.prototype.cst.WORKFLOW_SERVICE, mxShapeAws3dWorkflowService);
  6466. //**********************************************************************************************************************************************************
  6467. //Decider
  6468. //**********************************************************************************************************************************************************
  6469. /**
  6470. * Extends mxShape.
  6471. */
  6472. function mxShapeAws3dDecider(bounds, fill, stroke, strokewidth)
  6473. {
  6474. mxShape.call(this);
  6475. this.bounds = bounds;
  6476. this.fill = fill;
  6477. this.stroke = stroke;
  6478. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  6479. };
  6480. /**
  6481. * Extends mxShape.
  6482. */
  6483. mxUtils.extend(mxShapeAws3dDecider, mxShape);
  6484. mxShapeAws3dDecider.prototype.cst = {
  6485. DECIDER : 'mxgraph.aws3d.decider',
  6486. SHADING_COLORS : 'shadingCols'
  6487. };
  6488. mxShapeAws3dDecider.prototype.customProperties = [
  6489. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  6490. ];
  6491. /**
  6492. * Function: paintVertexShape
  6493. *
  6494. * Paints the vertex shape.
  6495. */
  6496. mxShapeAws3dDecider.prototype.paintVertexShape = function(c, x, y, w, h)
  6497. {
  6498. c.translate(x, y);
  6499. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  6500. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  6501. var strokeWidth1 = strokeWidth * w / 74;
  6502. var strokeWidth2 = strokeWidth * h / 50;
  6503. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  6504. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  6505. c.setStrokeWidth(strokeWidth);
  6506. c.setShadow(false);
  6507. c.save();
  6508. c.save();
  6509. c.setStrokeWidth(2 * strokeWidth);
  6510. c.setStrokeColor(strokeColor2);
  6511. c.setLineJoin('round');
  6512. if (isShadow == 1)
  6513. {
  6514. c.setShadow(true);
  6515. }
  6516. c.begin();
  6517. c.moveTo(0, h * 0.572);
  6518. c.lineTo(w * 0.0865, h * 0.284);
  6519. c.lineTo(w * 0.4203, 0);
  6520. c.lineTo(w * 0.5865, 0);
  6521. c.lineTo(w * 0.919, h * 0.286);
  6522. c.lineTo(w, h * 0.566);
  6523. c.lineTo(w * 0.5027, h);
  6524. c.close();
  6525. c.fillAndStroke();
  6526. c.restore();
  6527. c.setFillColor('#000000');
  6528. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDecider.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  6529. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  6530. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  6531. c.begin();
  6532. c.moveTo(0, h * 0.566);
  6533. c.lineTo(w * 0.0892, h * 0.282);
  6534. c.lineTo(w * 0.0878, h * 0.426);
  6535. c.lineTo(w * 0.4216, h * 0.712);
  6536. c.lineTo(w * 0.5865, h * 0.712);
  6537. c.lineTo(w * 0.5027, h);
  6538. c.close();
  6539. c.fill();
  6540. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  6541. c.begin();
  6542. c.moveTo(w * 0.5027, h);
  6543. c.lineTo(w * 0.5865, h * 0.712);
  6544. c.lineTo(w * 0.9176, h * 0.43);
  6545. c.lineTo(w, h * 0.566);
  6546. c.close();
  6547. c.fill();
  6548. c.restore();
  6549. c.setLineJoin('round');
  6550. c.begin();
  6551. c.moveTo(0, h * 0.566);
  6552. c.lineTo(w * 0.0892, h * 0.282);
  6553. c.lineTo(w * 0.0878, h * 0.426);
  6554. c.lineTo(w * 0.4216, h * 0.712);
  6555. c.lineTo(w * 0.5865, h * 0.712);
  6556. c.lineTo(w * 0.5027, h);
  6557. c.close();
  6558. c.moveTo(w * 0.5027, h);
  6559. c.lineTo(w * 0.5865, h * 0.712);
  6560. c.lineTo(w * 0.9176, h * 0.43);
  6561. c.lineTo(w, h * 0.566);
  6562. c.close();
  6563. c.moveTo(0, h * 0.572);
  6564. c.lineTo(w * 0.0892, h * 0.422);
  6565. c.moveTo(w * 0.5027, h);
  6566. c.lineTo(w * 0.4189, h * 0.708);
  6567. c.moveTo(w * 0.9176, h * 0.43);
  6568. c.lineTo(w * 0.9176, h * 0.29);
  6569. c.stroke();
  6570. c.setStrokeWidth(1.6 * strokeWidth);
  6571. c.setLineJoin('square');
  6572. c.begin();
  6573. c.moveTo(w * 0.4973, h * 0.1523);
  6574. c.lineTo(w * 0.5608, h * 0.0982);
  6575. c.lineTo(w * 0.6581, h * 0.1844);
  6576. c.lineTo(w * 0.5986, h * 0.2365);
  6577. c.close();
  6578. c.moveTo(w * 0.3784, h * 0.2164);
  6579. c.lineTo(w * 0.5054, h * 0.2305);
  6580. c.lineTo(w * 0.5203, h * 0.3407);
  6581. c.lineTo(w * 0.3892, h * 0.3246);
  6582. c.close();
  6583. c.moveTo(w * 0.2932, h * 0.3246);
  6584. c.lineTo(w * 0.3919, h * 0.4128);
  6585. c.lineTo(w * 0.3334, h * 0.4647);
  6586. c.lineTo(w * 0.2357, h * 0.38);
  6587. c.close();
  6588. c.moveTo(w * 0.4568, h * 0.4649);
  6589. c.lineTo(w * 0.5554, h * 0.5511);
  6590. c.lineTo(w * 0.4932, h * 0.6032);
  6591. c.lineTo(w * 0.3946, h * 0.517);
  6592. c.close();
  6593. c.moveTo(w * 0.5473, h * 0.1924);
  6594. c.lineTo(w * 0.5027, h * 0.2365);
  6595. c.moveTo(w * 0.4, h * 0.3186);
  6596. c.lineTo(w * 0.3446, h * 0.3667);
  6597. c.moveTo(w * 0.5189, h * 0.3387);
  6598. c.lineTo(w * 0.6081, h * 0.4148);
  6599. c.lineTo(w * 0.5068, h * 0.501);
  6600. c.stroke();
  6601. c.setStrokeColor(strokeColor2);
  6602. c.begin();
  6603. c.moveTo(0, h * 0.572);
  6604. c.lineTo(w * 0.0865, h * 0.284);
  6605. c.lineTo(w * 0.4203, 0);
  6606. c.lineTo(w * 0.5865, 0);
  6607. c.lineTo(w * 0.919, h * 0.286);
  6608. c.lineTo(w, h * 0.566);
  6609. c.lineTo(w * 0.5027, h);
  6610. c.close();
  6611. c.stroke();
  6612. };
  6613. mxCellRenderer.registerShape(mxShapeAws3dDecider.prototype.cst.DECIDER, mxShapeAws3dDecider);
  6614. //**********************************************************************************************************************************************************
  6615. //Search Engine
  6616. //**********************************************************************************************************************************************************
  6617. /**
  6618. * Extends mxShape.
  6619. */
  6620. function mxShapeAws3dSearchEngine(bounds, fill, stroke, strokewidth)
  6621. {
  6622. mxShape.call(this);
  6623. this.bounds = bounds;
  6624. this.fill = fill;
  6625. this.stroke = stroke;
  6626. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  6627. };
  6628. /**
  6629. * Extends mxShape.
  6630. */
  6631. mxUtils.extend(mxShapeAws3dSearchEngine, mxShape);
  6632. mxShapeAws3dSearchEngine.prototype.cst = {
  6633. SEARCH_ENGINE : 'mxgraph.aws3d.searchEngine',
  6634. SHADING_COLORS : 'shadingCols'
  6635. };
  6636. mxShapeAws3dSearchEngine.prototype.customProperties = [
  6637. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  6638. ];
  6639. /**
  6640. * Function: paintVertexShape
  6641. *
  6642. * Paints the vertex shape.
  6643. */
  6644. mxShapeAws3dSearchEngine.prototype.paintVertexShape = function(c, x, y, w, h)
  6645. {
  6646. c.translate(x, y);
  6647. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  6648. var strokeWidth1 = strokeWidth * w / 180;
  6649. var strokeWidth2 = strokeWidth * h / 192;
  6650. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  6651. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  6652. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6653. c.setShadow(false);
  6654. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6655. };
  6656. mxShapeAws3dSearchEngine.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6657. {
  6658. c.setStrokeWidth(strokeWidth);
  6659. c.save();
  6660. c.save();
  6661. c.save();
  6662. c.setStrokeWidth(2 * strokeWidth);
  6663. c.setStrokeColor(strokeColor2);
  6664. c.setLineJoin('round');
  6665. c.begin();
  6666. c.moveTo(0, h * 0.7281);
  6667. c.lineTo(w * 0.1667, h * 0.5444);
  6668. c.lineTo(w * 0.1667, h * 0.1832);
  6669. c.lineTo(w * 0.5011, 0);
  6670. c.lineTo(w * 0.8333, h * 0.1832);
  6671. c.lineTo(w * 0.8333, h * 0.5446);
  6672. c.lineTo(w, h * 0.7281);
  6673. c.lineTo(w * 0.7486, h * 0.7735);
  6674. c.lineTo(w * 0.5819, h * 0.8617);
  6675. c.lineTo(w * 0.5011, h);
  6676. c.lineTo(w * 0.4169, h * 0.8653);
  6677. c.lineTo(w * 0.2475, h * 0.7704);
  6678. c.close();
  6679. c.fillAndStroke();
  6680. };
  6681. mxShapeAws3dSearchEngine.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6682. {
  6683. c.restore();
  6684. c.setShadow(false);
  6685. c.setFillColor('#000000');
  6686. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSearchEngine.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  6687. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  6688. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  6689. c.begin();
  6690. c.moveTo(w * 0.1672, h * 0.1837);
  6691. c.lineTo(w * 0.4989, h * 0.3638);
  6692. c.lineTo(w * 0.4989, h * 0.7291);
  6693. c.lineTo(w * 0.5825, h * 0.8633);
  6694. c.lineTo(w * 0.4989, h);
  6695. c.lineTo(w * 0.4164, h * 0.8622);
  6696. c.lineTo(w * 0.2458, h * 0.7719);
  6697. c.lineTo(0, h * 0.7276);
  6698. c.lineTo(w * 0.1661, h * 0.5454);
  6699. c.close();
  6700. c.moveTo(w * 0.7486, h * 0.7714);
  6701. c.lineTo(w * 0.8317, h * 0.5459);
  6702. c.lineTo(w, h * 0.727);
  6703. c.close();
  6704. c.fill();
  6705. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  6706. c.begin();
  6707. c.moveTo(w * 0.4989, h * 0.3643);
  6708. c.lineTo(w * 0.8317, h * 0.1827);
  6709. c.lineTo(w * 0.8317, h * 0.5465);
  6710. c.lineTo(w * 0.7508, h * 0.7714);
  6711. c.lineTo(w * 0.5836, h * 0.8633);
  6712. c.lineTo(w * 0.4989, h * 0.727);
  6713. c.close();
  6714. c.fill();
  6715. c.restore();
  6716. c.setShadow(false);
  6717. c.setLineJoin('round');
  6718. c.begin();
  6719. c.moveTo(w * 0.1672, h * 0.1837);
  6720. c.lineTo(w * 0.4989, h * 0.3638);
  6721. c.lineTo(w * 0.4989, h * 0.7291);
  6722. c.lineTo(w * 0.5825, h * 0.8633);
  6723. c.lineTo(w * 0.4989, h);
  6724. c.lineTo(w * 0.4164, h * 0.8622);
  6725. c.lineTo(w * 0.2458, h * 0.7719);
  6726. c.lineTo(0, h * 0.7276);
  6727. c.lineTo(w * 0.1661, h * 0.5454);
  6728. c.close();
  6729. c.moveTo(w * 0.7486, h * 0.7714);
  6730. c.lineTo(w * 0.8317, h * 0.5459);
  6731. c.lineTo(w, h * 0.727);
  6732. c.close();
  6733. c.moveTo(w * 0.4989, h * 0.3643);
  6734. c.lineTo(w * 0.8317, h * 0.1827);
  6735. c.lineTo(w * 0.8317, h * 0.5465);
  6736. c.lineTo(w * 0.7508, h * 0.7714);
  6737. c.lineTo(w * 0.5836, h * 0.8633);
  6738. c.lineTo(w * 0.4989, h * 0.727);
  6739. c.close();
  6740. c.moveTo(w * 0.1667, h * 0.5459);
  6741. c.lineTo(w * 0.2486, h * 0.7704);
  6742. c.moveTo(w * 0.4164, h * 0.8633);
  6743. c.lineTo(w * 0.4989, h * 0.727);
  6744. c.lineTo(w * 0.4989, h);
  6745. c.stroke();
  6746. c.restore();
  6747. c.setShadow(false);
  6748. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  6749. c.setFillColor(strokeColor);
  6750. c.begin();
  6751. c.moveTo(w * 0.3427, h * 0.179);
  6752. c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 1, w * 0.3267, h * 0.1487);
  6753. c.arcTo(w * 0.0664, h * 0.0365, 0, 0, 1, w * 0.3621, h * 0.1227);
  6754. c.arcTo(w * 0.1052, h * 0.0992, 0, 0, 1, w * 0.4247, h * 0.1195);
  6755. c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4884, h * 0.1018);
  6756. c.arcTo(w * 0.1329, h * 0.1253, 0, 0, 1, w * 0.5548, h * 0.1112);
  6757. c.arcTo(w * 0.0377, h * 0.0344, 0, 0, 1, w * 0.572, h * 0.166);
  6758. c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.6047, h * 0.1775);
  6759. c.arcTo(w * 0.021, h * 0.0198, 0, 0, 1, w * 0.5936, h * 0.2046);
  6760. c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.6008, h * 0.2416);
  6761. c.arcTo(w * 0.072, h * 0.0678, 0, 0, 1, w * 0.5437, h * 0.2677);
  6762. c.arcTo(w * 0.1052, h * 0.0939, 0, 0, 1, w * 0.4828, h * 0.2563);
  6763. c.close();
  6764. c.moveTo(w * 0.448, h * 0.2156);
  6765. c.arcTo(w * 0.0111, h * 0.0104, 0, 0, 0, w * 0.459, h * 0.2255);
  6766. c.arcTo(w * 0.0138, h * 0.013, 0, 0, 0, w * 0.4729, h * 0.2182);
  6767. c.lineTo(w * 0.4773, h * 0.1874);
  6768. c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.5116, h * 0.1759);
  6769. c.arcTo(w * 0.0277, h * 0.0626, 0, 0, 0, w * 0.5233, h * 0.1503);
  6770. c.arcTo(w * 0.0554, h * 0.0261, 0, 0, 0, w * 0.5022, h * 0.1336);
  6771. c.arcTo(w * 0.0886, h * 0.0835, 0, 0, 0, w * 0.4607, h * 0.1305);
  6772. c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4313, h * 0.142);
  6773. c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.4175, h * 0.1597);
  6774. c.arcTo(w * 0.0249, h * 0.0235, 0, 0, 0, w * 0.4313, h * 0.1822);
  6775. c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 0, w * 0.4535, h * 0.1884);
  6776. c.close();
  6777. c.moveTo(w * 0.4718, h * 0.1764);
  6778. c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 1, w * 0.4496, h * 0.1754);
  6779. c.arcTo(w * 0.0221, h * 0.0157, 0, 0, 1, w * 0.4369, h * 0.1634);
  6780. c.arcTo(w * 0.0221, h * 0.0183, 0, 0, 1, w * 0.4496, h * 0.1467);
  6781. c.arcTo(w * 0.0609, h * 0.0574, 0, 0, 1, w * 0.4759, h * 0.1414);
  6782. c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.5033, h * 0.1514);
  6783. c.arcTo(w * 0.0443, h * 0.0209, 0, 0, 1, w * 0.495, h * 0.1701);
  6784. c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.4718, h * 0.1764);
  6785. c.close();
  6786. c.fill();
  6787. c.setStrokeWidth(2 * strokeWidth);
  6788. c.setStrokeColor(strokeColor2);
  6789. c.setLineJoin('round');
  6790. c.begin();
  6791. c.moveTo(0, h * 0.7281);
  6792. c.lineTo(w * 0.1667, h * 0.5444);
  6793. c.lineTo(w * 0.1667, h * 0.1832);
  6794. c.lineTo(w * 0.5011, 0);
  6795. c.lineTo(w * 0.8333, h * 0.1832);
  6796. c.lineTo(w * 0.8333, h * 0.5446);
  6797. c.lineTo(w, h * 0.7281);
  6798. c.lineTo(w * 0.7486, h * 0.7735);
  6799. c.lineTo(w * 0.5819, h * 0.8617);
  6800. c.lineTo(w * 0.5011, h);
  6801. c.lineTo(w * 0.4169, h * 0.8653);
  6802. c.lineTo(w * 0.2475, h * 0.7704);
  6803. c.close();
  6804. c.stroke();
  6805. };
  6806. mxCellRenderer.registerShape(mxShapeAws3dSearchEngine.prototype.cst.SEARCH_ENGINE, mxShapeAws3dSearchEngine);
  6807. //**********************************************************************************************************************************************************
  6808. //Security Token Service
  6809. //**********************************************************************************************************************************************************
  6810. /**
  6811. * Extends mxShape.
  6812. */
  6813. function mxShapeAws3dSecurityTokenService(bounds, fill, stroke, strokewidth)
  6814. {
  6815. mxShape.call(this);
  6816. this.bounds = bounds;
  6817. this.fill = fill;
  6818. this.stroke = stroke;
  6819. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  6820. };
  6821. /**
  6822. * Extends mxShape.
  6823. */
  6824. mxUtils.extend(mxShapeAws3dSecurityTokenService, mxShape);
  6825. mxShapeAws3dSecurityTokenService.prototype.cst = {
  6826. SECURITY_TOKEN_SERVICE : 'mxgraph.aws3d.securityTokenService',
  6827. SHADING_COLORS : 'shadingCols'
  6828. };
  6829. mxShapeAws3dSecurityTokenService.prototype.customProperties = [
  6830. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  6831. ];
  6832. /**
  6833. * Function: paintVertexShape
  6834. *
  6835. * Paints the vertex shape.
  6836. */
  6837. mxShapeAws3dSecurityTokenService.prototype.paintVertexShape = function(c, x, y, w, h)
  6838. {
  6839. c.translate(x, y);
  6840. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  6841. var strokeWidth1 = strokeWidth * w / 180;
  6842. var strokeWidth2 = strokeWidth * h / 192;
  6843. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  6844. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  6845. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6846. c.setShadow(false);
  6847. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  6848. };
  6849. mxShapeAws3dSecurityTokenService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6850. {
  6851. c.setStrokeWidth(strokeWidth);
  6852. c.save();
  6853. c.save();
  6854. c.save();
  6855. c.setStrokeWidth(2 * strokeWidth);
  6856. c.setStrokeColor(strokeColor2);
  6857. c.setLineJoin('round');
  6858. c.begin();
  6859. c.moveTo(0, h * 0.7281);
  6860. c.lineTo(w * 0.1667, h * 0.5444);
  6861. c.lineTo(w * 0.1667, h * 0.1832);
  6862. c.lineTo(w * 0.5011, 0);
  6863. c.lineTo(w * 0.8333, h * 0.1832);
  6864. c.lineTo(w * 0.8333, h * 0.5446);
  6865. c.lineTo(w, h * 0.7281);
  6866. c.lineTo(w * 0.7486, h * 0.7735);
  6867. c.lineTo(w * 0.5819, h * 0.8617);
  6868. c.lineTo(w * 0.5011, h);
  6869. c.lineTo(w * 0.4169, h * 0.8653);
  6870. c.lineTo(w * 0.2475, h * 0.7704);
  6871. c.close();
  6872. c.fillAndStroke();
  6873. };
  6874. mxShapeAws3dSecurityTokenService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  6875. {
  6876. c.restore();
  6877. c.setShadow(false);
  6878. c.setFillColor('#000000');
  6879. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSecurityTokenService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  6880. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  6881. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  6882. c.begin();
  6883. c.moveTo(w * 0.1672, h * 0.1837);
  6884. c.lineTo(w * 0.4989, h * 0.3638);
  6885. c.lineTo(w * 0.4989, h * 0.7291);
  6886. c.lineTo(w * 0.5825, h * 0.8633);
  6887. c.lineTo(w * 0.4989, h);
  6888. c.lineTo(w * 0.4164, h * 0.8622);
  6889. c.lineTo(w * 0.2458, h * 0.7719);
  6890. c.lineTo(0, h * 0.7276);
  6891. c.lineTo(w * 0.1661, h * 0.5454);
  6892. c.close();
  6893. c.moveTo(w * 0.7486, h * 0.7714);
  6894. c.lineTo(w * 0.8317, h * 0.5459);
  6895. c.lineTo(w, h * 0.727);
  6896. c.close();
  6897. c.fill();
  6898. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  6899. c.begin();
  6900. c.moveTo(w * 0.4989, h * 0.3643);
  6901. c.lineTo(w * 0.8317, h * 0.1827);
  6902. c.lineTo(w * 0.8317, h * 0.5465);
  6903. c.lineTo(w * 0.7508, h * 0.7714);
  6904. c.lineTo(w * 0.5836, h * 0.8633);
  6905. c.lineTo(w * 0.4989, h * 0.727);
  6906. c.close();
  6907. c.fill();
  6908. c.restore();
  6909. c.setShadow(false);
  6910. c.setLineJoin('round');
  6911. c.begin();
  6912. c.moveTo(w * 0.1672, h * 0.1837);
  6913. c.lineTo(w * 0.4989, h * 0.3638);
  6914. c.lineTo(w * 0.4989, h * 0.7291);
  6915. c.lineTo(w * 0.5825, h * 0.8633);
  6916. c.lineTo(w * 0.4989, h);
  6917. c.lineTo(w * 0.4164, h * 0.8622);
  6918. c.lineTo(w * 0.2458, h * 0.7719);
  6919. c.lineTo(0, h * 0.7276);
  6920. c.lineTo(w * 0.1661, h * 0.5454);
  6921. c.close();
  6922. c.moveTo(w * 0.7486, h * 0.7714);
  6923. c.lineTo(w * 0.8317, h * 0.5459);
  6924. c.lineTo(w, h * 0.727);
  6925. c.close();
  6926. c.moveTo(w * 0.4989, h * 0.3643);
  6927. c.lineTo(w * 0.8317, h * 0.1827);
  6928. c.lineTo(w * 0.8317, h * 0.5465);
  6929. c.lineTo(w * 0.7508, h * 0.7714);
  6930. c.lineTo(w * 0.5836, h * 0.8633);
  6931. c.lineTo(w * 0.4989, h * 0.727);
  6932. c.close();
  6933. c.moveTo(w * 0.1667, h * 0.5459);
  6934. c.lineTo(w * 0.2486, h * 0.7704);
  6935. c.moveTo(w * 0.4164, h * 0.8633);
  6936. c.lineTo(w * 0.4989, h * 0.727);
  6937. c.lineTo(w * 0.4989, h);
  6938. c.stroke();
  6939. c.restore();
  6940. c.setShadow(false);
  6941. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  6942. c.setFillColor(strokeColor);
  6943. c.begin();
  6944. c.moveTo(w * 0.4773, h * 0.1915);
  6945. c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4358, h * 0.1968);
  6946. c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.3937, h * 0.1905);
  6947. c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 1, w * 0.3682, h * 0.1707);
  6948. c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.3699, h * 0.1414);
  6949. c.arcTo(w * 0.0775, h * 0.0731, 0, 0, 1, w * 0.4009, h * 0.118);
  6950. c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.4524, h * 0.1059);
  6951. c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.5028, h * 0.1112);
  6952. c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 1, w * 0.531, h * 0.1315);
  6953. c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.531, h * 0.1597);
  6954. c.lineTo(w * 0.5615, h * 0.1754);
  6955. c.lineTo(w * 0.5526, h * 0.1905);
  6956. c.lineTo(w * 0.5759, h * 0.1999);
  6957. c.lineTo(w * 0.5753, h * 0.2109);
  6958. c.lineTo(w * 0.5792, h * 0.2161);
  6959. c.lineTo(w * 0.6135, h * 0.2182);
  6960. c.lineTo(w * 0.6113, h * 0.2416);
  6961. c.lineTo(w * 0.5819, h * 0.2474);
  6962. c.close();
  6963. c.moveTo(w * 0.4756, h * 0.1816);
  6964. c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.5, h * 0.1691);
  6965. c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.5144, h * 0.1435);
  6966. c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 0, w * 0.4967, h * 0.1247);
  6967. c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.4729, h * 0.1174);
  6968. c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 0, w * 0.4452, h * 0.1169);
  6969. c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4197, h * 0.1232);
  6970. c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.397, h * 0.1357);
  6971. c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 0, w * 0.3859, h * 0.1555);
  6972. c.arcTo(w * 0.0305, h * 0.0287, 0, 0, 0, w * 0.4053, h * 0.178);
  6973. c.arcTo(w * 0.072, h * 0.0678, 0, 0, 0, w * 0.4385, h * 0.1863);
  6974. c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4596, h * 0.1848);
  6975. c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4756, h * 0.1816);
  6976. c.fill();
  6977. c.setStrokeWidth(1.5 * strokeWidth);
  6978. c.setLineJoin('round');
  6979. c.setLineCap('round');
  6980. c.begin();
  6981. c.moveTo(w * 0.4939, h * 0.1326);
  6982. c.lineTo(w * 0.4474, h * 0.1508);
  6983. c.lineTo(w * 0.4812, h * 0.1576);
  6984. c.moveTo(w * 0.4889, h * 0.1733);
  6985. c.lineTo(w * 0.4939, h * 0.1775);
  6986. c.moveTo(w * 0.5061, h * 0.1576);
  6987. c.lineTo(w * 0.5199, h * 0.1597);
  6988. c.moveTo(w * 0.5094, h * 0.1394);
  6989. c.lineTo(w * 0.5244, h * 0.1378);
  6990. c.moveTo(w * 0.4945, h * 0.1247);
  6991. c.lineTo(w * 0.4994, h * 0.1185);
  6992. c.moveTo(w * 0.4679, h * 0.1175);
  6993. c.lineTo(w * 0.4707, h * 0.1117);
  6994. c.moveTo(w * 0.4396, h * 0.1195);
  6995. c.lineTo(w * 0.4374, h * 0.1138);
  6996. c.moveTo(w * 0.412, h * 0.1284);
  6997. c.lineTo(w * 0.4059, h * 0.1232);
  6998. c.moveTo(w * 0.3948, h * 0.1441);
  6999. c.lineTo(w * 0.3804, h * 0.1425);
  7000. c.moveTo(w * 0.3931, h * 0.1608);
  7001. c.lineTo(w * 0.3804, h * 0.1649);
  7002. c.moveTo(w * 0.4059, h * 0.1754);
  7003. c.lineTo(w * 0.3998, h * 0.1801);
  7004. c.moveTo(w * 0.4308, h * 0.1822);
  7005. c.lineTo(w * 0.4286, h * 0.1884);
  7006. c.moveTo(w * 0.4618, h * 0.1827);
  7007. c.lineTo(w * 0.4635, h * 0.1868);
  7008. c.stroke();
  7009. c.setStrokeWidth(2 * strokeWidth);
  7010. c.setStrokeColor(strokeColor2);
  7011. c.begin();
  7012. c.moveTo(0, h * 0.7281);
  7013. c.lineTo(w * 0.1667, h * 0.5444);
  7014. c.lineTo(w * 0.1667, h * 0.1832);
  7015. c.lineTo(w * 0.5011, 0);
  7016. c.lineTo(w * 0.8333, h * 0.1832);
  7017. c.lineTo(w * 0.8333, h * 0.5446);
  7018. c.lineTo(w, h * 0.7281);
  7019. c.lineTo(w * 0.7486, h * 0.7735);
  7020. c.lineTo(w * 0.5819, h * 0.8617);
  7021. c.lineTo(w * 0.5011, h);
  7022. c.lineTo(w * 0.4169, h * 0.8653);
  7023. c.lineTo(w * 0.2475, h * 0.7704);
  7024. c.close();
  7025. c.stroke();
  7026. };
  7027. mxCellRenderer.registerShape(mxShapeAws3dSecurityTokenService.prototype.cst.SECURITY_TOKEN_SERVICE, mxShapeAws3dSecurityTokenService);
  7028. //**********************************************************************************************************************************************************
  7029. //Glacier
  7030. //**********************************************************************************************************************************************************
  7031. /**
  7032. * Extends mxShape.
  7033. */
  7034. function mxShapeAws3dGlacier(bounds, fill, stroke, strokewidth)
  7035. {
  7036. mxShape.call(this);
  7037. this.bounds = bounds;
  7038. this.fill = fill;
  7039. this.stroke = stroke;
  7040. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  7041. };
  7042. /**
  7043. * Extends mxShape.
  7044. */
  7045. mxUtils.extend(mxShapeAws3dGlacier, mxShape);
  7046. mxShapeAws3dGlacier.prototype.cst = {
  7047. GLACIER : 'mxgraph.aws3d.glacier',
  7048. SHADING_COLORS : 'shadingCols'
  7049. };
  7050. mxShapeAws3dGlacier.prototype.customProperties = [
  7051. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  7052. ];
  7053. /**
  7054. * Function: paintVertexShape
  7055. *
  7056. * Paints the vertex shape.
  7057. */
  7058. mxShapeAws3dGlacier.prototype.paintVertexShape = function(c, x, y, w, h)
  7059. {
  7060. c.translate(x, y);
  7061. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  7062. var strokeWidth1 = strokeWidth * w / 180;
  7063. var strokeWidth2 = strokeWidth * h / 192;
  7064. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  7065. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  7066. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7067. c.setShadow(false);
  7068. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7069. };
  7070. mxShapeAws3dGlacier.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7071. {
  7072. c.setStrokeWidth(strokeWidth);
  7073. c.save();
  7074. c.save();
  7075. c.setStrokeWidth(2 * strokeWidth);
  7076. c.setStrokeColor(strokeColor2);
  7077. c.setLineJoin('round');
  7078. c.begin();
  7079. c.moveTo(0, h * 0.8177);
  7080. c.lineTo(0, h * 0.5448);
  7081. c.lineTo(w * 0.168, h * 0.1792);
  7082. c.lineTo(w * 0.5008, 0);
  7083. c.lineTo(w * 0.8309, h * 0.1812);
  7084. c.lineTo(w, h * 0.5469);
  7085. c.lineTo(w, h * 0.8188);
  7086. c.lineTo(w * 0.6661, h);
  7087. c.lineTo(w * 0.3333, h);
  7088. c.close();
  7089. c.fillAndStroke();
  7090. };
  7091. mxShapeAws3dGlacier.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7092. {
  7093. c.restore();
  7094. c.setShadow(false);
  7095. c.setFillColor('#000000');
  7096. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dGlacier.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  7097. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  7098. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  7099. c.begin();
  7100. c.moveTo(w * 0.1658, h * 0.1802);
  7101. c.lineTo(w * 0.5008, h * 0.3651);
  7102. c.lineTo(w * 0.6661, h * 0.9089);
  7103. c.lineTo(w * 0.6661, h);
  7104. c.lineTo(w * 0.3339, h);
  7105. c.lineTo(0, h * 0.8177);
  7106. c.lineTo(0, h * 0.5427);
  7107. c.close();
  7108. c.fill();
  7109. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  7110. c.begin();
  7111. c.moveTo(w * 0.5008, h * 0.362);
  7112. c.lineTo(w * 0.8314, h * 0.1823);
  7113. c.lineTo(w, h * 0.5469);
  7114. c.lineTo(w, h * 0.8177);
  7115. c.lineTo(w * 0.6661, h);
  7116. c.lineTo(w * 0.6661, h * 0.9089);
  7117. c.close();
  7118. c.fill();
  7119. c.restore();
  7120. c.setShadow(false);
  7121. c.setLineJoin('round');
  7122. c.begin();
  7123. c.moveTo(w * 0.1658, h * 0.1802);
  7124. c.lineTo(w * 0.5008, h * 0.3651);
  7125. c.lineTo(w * 0.6661, h * 0.9089);
  7126. c.lineTo(w * 0.6661, h);
  7127. c.lineTo(w * 0.3339, h);
  7128. c.lineTo(0, h * 0.8177);
  7129. c.lineTo(0, h * 0.5427);
  7130. c.close();
  7131. c.moveTo(w * 0.5008, h * 0.362);
  7132. c.lineTo(w * 0.8314, h * 0.1823);
  7133. c.lineTo(w, h * 0.5469);
  7134. c.lineTo(w, h * 0.8177);
  7135. c.lineTo(w * 0.6661, h);
  7136. c.lineTo(w * 0.6661, h * 0.9089);
  7137. c.close();
  7138. c.moveTo(w * 0.1675, h * 0.1797);
  7139. c.lineTo(0, h * 0.7281);
  7140. c.lineTo(w * 0.3284, h * 0.9089);
  7141. c.lineTo(w * 0.6661, h * 0.9089);
  7142. c.lineTo(w, h * 0.7266);
  7143. c.lineTo(w * 0.8309, h * 0.1823);
  7144. c.moveTo(w * 0.5003, h * 0.362);
  7145. c.lineTo(w * 0.3311, h * 0.9089);
  7146. c.lineTo(w * 0.3311, h);
  7147. c.stroke();
  7148. c.setStrokeWidth(2 * strokeWidth);
  7149. c.setStrokeColor(strokeColor2);
  7150. c.begin();
  7151. c.moveTo(0, h * 0.8177);
  7152. c.lineTo(0, h * 0.5448);
  7153. c.lineTo(w * 0.168, h * 0.1792);
  7154. c.lineTo(w * 0.5008, 0);
  7155. c.lineTo(w * 0.8309, h * 0.1812);
  7156. c.lineTo(w, h * 0.5469);
  7157. c.lineTo(w, h * 0.8188);
  7158. c.lineTo(w * 0.6661, h);
  7159. c.lineTo(w * 0.3333, h);
  7160. c.close();
  7161. c.stroke();
  7162. };
  7163. mxCellRenderer.registerShape(mxShapeAws3dGlacier.prototype.cst.GLACIER, mxShapeAws3dGlacier);
  7164. //**********************************************************************************************************************************************************
  7165. //Customer Gateway
  7166. //**********************************************************************************************************************************************************
  7167. /**
  7168. * Extends mxShape.
  7169. */
  7170. function mxShapeAws3dCustomerGateway(bounds, fill, stroke, strokewidth)
  7171. {
  7172. mxShape.call(this);
  7173. this.bounds = bounds;
  7174. this.fill = fill;
  7175. this.stroke = stroke;
  7176. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  7177. };
  7178. /**
  7179. * Extends mxShape.
  7180. */
  7181. mxUtils.extend(mxShapeAws3dCustomerGateway, mxShape);
  7182. mxShapeAws3dCustomerGateway.prototype.cst = {
  7183. CUSTOMER_GATEWAY : 'mxgraph.aws3d.customerGateway',
  7184. SHADING_COLORS : 'shadingCols'
  7185. };
  7186. mxShapeAws3dCustomerGateway.prototype.customProperties = [
  7187. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  7188. ];
  7189. /**
  7190. * Function: paintVertexShape
  7191. *
  7192. * Paints the vertex shape.
  7193. */
  7194. mxShapeAws3dCustomerGateway.prototype.paintVertexShape = function(c, x, y, w, h)
  7195. {
  7196. c.translate(x, y);
  7197. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  7198. var strokeWidth1 = strokeWidth * w / 116.7;
  7199. var strokeWidth2 = strokeWidth * h / 102.8;
  7200. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  7201. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  7202. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7203. c.setShadow(false);
  7204. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7205. };
  7206. mxShapeAws3dCustomerGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7207. {
  7208. c.setStrokeWidth(strokeWidth);
  7209. c.save();
  7210. c.save();
  7211. c.save();
  7212. c.save();
  7213. c.save();
  7214. c.setStrokeWidth(2 * strokeWidth);
  7215. c.setStrokeColor(strokeColor2);
  7216. c.setLineJoin('round');
  7217. c.begin();
  7218. c.moveTo(w * 0.4199, h * 0.5447);
  7219. c.lineTo(w * 0.4199, h * 0.035);
  7220. c.lineTo(w * 0.8946, 0);
  7221. c.lineTo(w, h * 0.0691);
  7222. c.lineTo(w, h * 0.4134);
  7223. c.lineTo(w * 0.6812, h * 0.7247);
  7224. c.close();
  7225. c.fillAndStroke();
  7226. c.restore();
  7227. c.save();
  7228. c.setShadow(false);
  7229. c.setFillColor('#000000');
  7230. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  7231. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  7232. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  7233. c.begin();
  7234. c.moveTo(w * 0.4199, h * 0.5447);
  7235. c.lineTo(w * 0.4199, h * 0.035);
  7236. c.lineTo(w * 0.6838, h * 0.2072);
  7237. c.lineTo(w * 0.6838, h * 0.7247);
  7238. c.close();
  7239. c.fill();
  7240. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  7241. c.begin();
  7242. c.moveTo(w * 0.6838, h * 0.2072);
  7243. c.lineTo(w, h * 0.0691);
  7244. c.lineTo(w, h * 0.4134);
  7245. c.lineTo(w * 0.6838, h * 0.7247);
  7246. c.close();
  7247. c.fill();
  7248. c.restore();
  7249. c.setShadow(false);
  7250. c.begin();
  7251. c.moveTo(w * 0.4199, h * 0.5447);
  7252. c.lineTo(w * 0.4199, h * 0.035);
  7253. c.lineTo(w * 0.6838, h * 0.2072);
  7254. c.lineTo(w * 0.6838, h * 0.7247);
  7255. c.close();
  7256. c.stroke();
  7257. c.restore();
  7258. c.setLineJoin('round');
  7259. c.setShadow(false);
  7260. c.begin();
  7261. c.moveTo(w * 0.6838, h * 0.2072);
  7262. c.lineTo(w, h * 0.0691);
  7263. c.lineTo(w, h * 0.4134);
  7264. c.lineTo(w * 0.6838, h * 0.7247);
  7265. c.close();
  7266. c.stroke();
  7267. c.setStrokeWidth(2 * strokeWidth);
  7268. c.setStrokeColor(strokeColor2);
  7269. c.begin();
  7270. c.moveTo(w * 0.4199, h * 0.5447);
  7271. c.lineTo(w * 0.4199, h * 0.035);
  7272. c.lineTo(w * 0.8946, 0);
  7273. c.lineTo(w, h * 0.0691);
  7274. c.lineTo(w, h * 0.4134);
  7275. c.lineTo(w * 0.6812, h * 0.7247);
  7276. c.close();
  7277. c.stroke();
  7278. c.restore();
  7279. c.setStrokeWidth(2 * strokeWidth);
  7280. c.setStrokeColor(strokeColor2);
  7281. c.setLineJoin('round');
  7282. c.begin();
  7283. c.moveTo(0, h * 0.929);
  7284. c.lineTo(0, h * 0.5866);
  7285. c.lineTo(w * 0.3171, h * 0.1031);
  7286. c.lineTo(w * 0.5784, h * 0.2753);
  7287. c.lineTo(w * 0.5784, h * 0.7928);
  7288. c.lineTo(w * 0.1054, h);
  7289. c.close();
  7290. c.fillAndStroke();
  7291. };
  7292. mxShapeAws3dCustomerGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7293. {
  7294. c.restore();
  7295. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  7296. c.setShadow(false);
  7297. c.setLineJoin('round');
  7298. c.setFillColor('#000000');
  7299. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  7300. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  7301. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  7302. c.begin();
  7303. c.moveTo(0, h * 0.929);
  7304. c.lineTo(0, h * 0.5866);
  7305. c.lineTo(w * 0.1054, h * 0.6537);
  7306. c.lineTo(w * 0.1054, h);
  7307. c.close();
  7308. c.fill();
  7309. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  7310. c.begin();
  7311. c.moveTo(w * 0.1054, h);
  7312. c.lineTo(w * 0.1054, h * 0.6537);
  7313. c.lineTo(w * 0.5784, h * 0.2753);
  7314. c.lineTo(w * 0.5784, h * 0.7928);
  7315. c.close();
  7316. c.fill();
  7317. c.restore();
  7318. c.setShadow(false);
  7319. c.setLineJoin('round');
  7320. c.begin();
  7321. c.moveTo(0, h * 0.929);
  7322. c.lineTo(0, h * 0.5866);
  7323. c.lineTo(w * 0.1054, h * 0.6537);
  7324. c.lineTo(w * 0.1054, h);
  7325. c.close();
  7326. c.stroke();
  7327. c.begin();
  7328. c.moveTo(w * 0.1054, h);
  7329. c.lineTo(w * 0.1054, h * 0.6537);
  7330. c.lineTo(w * 0.5784, h * 0.2753);
  7331. c.lineTo(w * 0.5784, h * 0.7928);
  7332. c.close();
  7333. c.stroke();
  7334. c.setStrokeWidth(2 * strokeWidth);
  7335. c.setStrokeColor(strokeColor2);
  7336. c.setLineJoin('round');
  7337. c.begin();
  7338. c.moveTo(0, h * 0.929);
  7339. c.lineTo(0, h * 0.5866);
  7340. c.lineTo(w * 0.3171, h * 0.1031);
  7341. c.lineTo(w * 0.5784, h * 0.2753);
  7342. c.lineTo(w * 0.5784, h * 0.7928);
  7343. c.lineTo(w * 0.1054, h);
  7344. c.close();
  7345. c.stroke();
  7346. c.setFillColor(strokeColor);
  7347. c.begin();
  7348. c.moveTo(w * 0.7575, h * 0.3969);
  7349. c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.7686, h * 0.3259);
  7350. c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8055, h * 0.2481);
  7351. c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8406, h * 0.2091);
  7352. c.lineTo(w * 0.8269, h * 0.2665);
  7353. c.lineTo(w * 0.8372, h * 0.2607);
  7354. c.lineTo(w * 0.8372, h * 0.3444);
  7355. c.lineTo(w * 0.7832, h * 0.3804);
  7356. c.lineTo(w * 0.7832, h * 0.3658);
  7357. c.close();
  7358. c.moveTo(w * 0.8466, h * 0.2082);
  7359. c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.8766, h * 0.1955);
  7360. c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.9186, h * 0.2286);
  7361. c.arcTo(w * 0.12, h * 0.1362, 0, 0, 1, w * 0.9297, h * 0.2821);
  7362. c.lineTo(w * 0.9006, h * 0.2831);
  7363. c.lineTo(w * 0.9006, h * 0.3016);
  7364. c.lineTo(w * 0.85, h * 0.3366);
  7365. c.lineTo(w * 0.85, h * 0.251);
  7366. c.lineTo(w * 0.8586, h * 0.2471);
  7367. c.close();
  7368. c.moveTo(w * 0.9297, h * 0.2967);
  7369. c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.9195, h * 0.3667);
  7370. c.arcTo(w * 0.2571, h * 0.2918, 0, 0, 1, w * 0.8869, h * 0.4436);
  7371. c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.8466, h * 0.4903);
  7372. c.lineTo(w * 0.8595, h * 0.4358);
  7373. c.lineTo(w * 0.8492, h * 0.4416);
  7374. c.lineTo(w * 0.8492, h * 0.357);
  7375. c.lineTo(w * 0.9006, h * 0.32004);
  7376. c.lineTo(w * 0.9006, h * 0.3346);
  7377. c.close();
  7378. c.moveTo(w * 0.838, h * 0.4942);
  7379. c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8072, h * 0.5049);
  7380. c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.7712, h * 0.4815);
  7381. c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.7566, h * 0.4163);
  7382. c.lineTo(w * 0.7832, h * 0.4173);
  7383. c.lineTo(w * 0.7832, h * 0.4008);
  7384. c.lineTo(w * 0.8372, h * 0.3638);
  7385. c.lineTo(w * 0.8372, h * 0.4494);
  7386. c.lineTo(w * 0.8278, h * 0.4562);
  7387. c.close();
  7388. c.fill();
  7389. };
  7390. mxCellRenderer.registerShape(mxShapeAws3dCustomerGateway.prototype.cst.CUSTOMER_GATEWAY, mxShapeAws3dCustomerGateway);
  7391. //**********************************************************************************************************************************************************
  7392. //Redshift
  7393. //**********************************************************************************************************************************************************
  7394. /**
  7395. * Extends mxShape.
  7396. */
  7397. function mxShapeAws3dRedshift(bounds, fill, stroke, strokewidth)
  7398. {
  7399. mxShape.call(this);
  7400. this.bounds = bounds;
  7401. this.fill = fill;
  7402. this.stroke = stroke;
  7403. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  7404. };
  7405. /**
  7406. * Extends mxShape.
  7407. */
  7408. mxUtils.extend(mxShapeAws3dRedshift, mxShape);
  7409. mxShapeAws3dRedshift.prototype.cst = {
  7410. REDSHIFT : 'mxgraph.aws3d.redshift',
  7411. SHADING_COLORS : 'shadingCols'
  7412. };
  7413. mxShapeAws3dRedshift.prototype.customProperties = [
  7414. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  7415. ];
  7416. /**
  7417. * Function: paintVertexShape
  7418. *
  7419. * Paints the vertex shape.
  7420. */
  7421. mxShapeAws3dRedshift.prototype.paintVertexShape = function(c, x, y, w, h)
  7422. {
  7423. c.translate(x, y);
  7424. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  7425. var strokeWidth1 = strokeWidth * w / 149.5;
  7426. var strokeWidth2 = strokeWidth * h / 187.5;
  7427. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  7428. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  7429. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7430. c.setShadow(false);
  7431. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7432. };
  7433. mxShapeAws3dRedshift.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7434. {
  7435. c.setStrokeWidth(strokeWidth);
  7436. c.save();
  7437. c.save();
  7438. c.save();
  7439. c.setStrokeWidth(2 * strokeWidth);
  7440. c.setStrokeColor(strokeColor2);
  7441. c.setLineJoin('round');
  7442. c.begin();
  7443. c.moveTo(0, h * 0.6517);
  7444. c.lineTo(0, h * 0.0912);
  7445. c.lineTo(w * 0.0368, h * 0.0155);
  7446. c.lineTo(w * 0.2047, 0);
  7447. c.lineTo(w * 0.3378, h * 0.0619);
  7448. c.lineTo(w * 0.3378, h * 0.0912);
  7449. c.lineTo(w * 0.3819, h * 0.0693);
  7450. c.lineTo(w * 0.6154, h * 0.0693);
  7451. c.lineTo(w * 0.8502, h * 0.1776);
  7452. c.lineTo(w * 0.8502, h * 0.3083);
  7453. c.lineTo(w * 0.8682, h * 0.3061);
  7454. c.lineTo(w, h * 0.3664);
  7455. c.lineTo(w, h * 0.9099);
  7456. c.lineTo(w * 0.9672, h * 0.9861);
  7457. c.lineTo(w * 0.7926, h);
  7458. c.lineTo(w * 0.6629, h * 0.9392);
  7459. c.lineTo(w * 0.6629, h * 0.9099);
  7460. c.lineTo(w * 0.6167, h * 0.9317);
  7461. c.lineTo(w * 0.3813, h * 0.9317);
  7462. c.lineTo(w * 0.1478, h * 0.8219);
  7463. c.lineTo(w * 0.1478, h * 0.7093);
  7464. c.lineTo(w * 0.1365, h * 0.7163);
  7465. c.close();
  7466. c.fillAndStroke();
  7467. };
  7468. mxShapeAws3dRedshift.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7469. {
  7470. c.restore();
  7471. c.setShadow(false);
  7472. c.setFillColor('#000000');
  7473. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRedshift.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  7474. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  7475. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  7476. c.begin();
  7477. c.moveTo(0, h * 0.6541);
  7478. c.lineTo(0, h * 0.0933);
  7479. c.lineTo(w * 0.1371, h * 0.1573);
  7480. c.lineTo(w * 0.1371, h * 0.7157);
  7481. c.close();
  7482. c.moveTo(w * 0.1485, h * 0.8219);
  7483. c.lineTo(w * 0.1485, h * 0.2864);
  7484. c.lineTo(w * 0.3846, h * 0.3941);
  7485. c.lineTo(w * 0.3846, h * 0.9317);
  7486. c.close();
  7487. c.moveTo(w * 0.6642, h * 0.9392);
  7488. c.lineTo(w * 0.6642, h * 0.4011);
  7489. c.lineTo(w * 0.796, h * 0.4597);
  7490. c.lineTo(w * 0.796, h);
  7491. c.close();
  7492. c.fill();
  7493. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  7494. c.begin();
  7495. c.moveTo(w * 0.1371, h * 0.7157);
  7496. c.lineTo(w * 0.1371, h * 0.1568);
  7497. c.lineTo(w * 0.2027, h * 0.1525);
  7498. c.lineTo(w * 0.1498, h * 0.1771);
  7499. c.lineTo(w * 0.1498, h * 0.7061);
  7500. c.close();
  7501. c.moveTo(w * 0.3846, h * 0.3941);
  7502. c.lineTo(w * 0.614, h * 0.3941);
  7503. c.lineTo(w * 0.6809, h * 0.3632);
  7504. c.lineTo(w * 0.6642, h * 0.4);
  7505. c.lineTo(w * 0.6642, h * 0.9067);
  7506. c.lineTo(w * 0.6191, h * 0.9317);
  7507. c.lineTo(w * 0.3833, h * 0.9317);
  7508. c.close();
  7509. c.moveTo(w * 0.796, h * 0.4608);
  7510. c.lineTo(w * 0.9639, h * 0.4469);
  7511. c.lineTo(w, h * 0.3691);
  7512. c.lineTo(w, h * 0.9077);
  7513. c.lineTo(w * 0.9686, h * 0.9856);
  7514. c.lineTo(w * 0.796, h);
  7515. c.close();
  7516. c.moveTo(w * 0.3378, h * 0.0608);
  7517. c.lineTo(w * 0.3378, h * 0.0907);
  7518. c.lineTo(w * 0.3197, h * 0.1008);
  7519. c.close();
  7520. c.moveTo(w * 0.8502, h * 0.2843);
  7521. c.lineTo(w * 0.8502, h * 0.3083);
  7522. c.lineTo(w * 0.794, h * 0.3136);
  7523. c.close();
  7524. c.fill();
  7525. c.restore();
  7526. c.setShadow(false);
  7527. c.setLineJoin('round');
  7528. c.begin();
  7529. c.moveTo(0, h * 0.6541);
  7530. c.lineTo(0, h * 0.0933);
  7531. c.lineTo(w * 0.1371, h * 0.1573);
  7532. c.lineTo(w * 0.1371, h * 0.7157);
  7533. c.close();
  7534. c.moveTo(w * 0.1485, h * 0.8219);
  7535. c.lineTo(w * 0.1485, h * 0.2864);
  7536. c.lineTo(w * 0.3846, h * 0.3941);
  7537. c.lineTo(w * 0.3846, h * 0.9317);
  7538. c.close();
  7539. c.moveTo(w * 0.6642, h * 0.9392);
  7540. c.lineTo(w * 0.6642, h * 0.4011);
  7541. c.lineTo(w * 0.796, h * 0.4597);
  7542. c.lineTo(w * 0.796, h);
  7543. c.close();
  7544. c.moveTo(w * 0.1371, h * 0.7157);
  7545. c.lineTo(w * 0.1371, h * 0.1568);
  7546. c.lineTo(w * 0.2027, h * 0.1525);
  7547. c.lineTo(w * 0.1498, h * 0.1771);
  7548. c.lineTo(w * 0.1498, h * 0.7061);
  7549. c.close();
  7550. c.moveTo(w * 0.3846, h * 0.3941);
  7551. c.lineTo(w * 0.614, h * 0.3941);
  7552. c.lineTo(w * 0.6809, h * 0.3632);
  7553. c.lineTo(w * 0.6642, h * 0.4);
  7554. c.lineTo(w * 0.6642, h * 0.9067);
  7555. c.lineTo(w * 0.6191, h * 0.9317);
  7556. c.lineTo(w * 0.3833, h * 0.9317);
  7557. c.close();
  7558. c.moveTo(w * 0.796, h * 0.4608);
  7559. c.lineTo(w * 0.9639, h * 0.4469);
  7560. c.lineTo(w, h * 0.3691);
  7561. c.lineTo(w, h * 0.9077);
  7562. c.lineTo(w * 0.9686, h * 0.9856);
  7563. c.lineTo(w * 0.796, h);
  7564. c.close();
  7565. c.moveTo(w * 0.3378, h * 0.0608);
  7566. c.lineTo(w * 0.3378, h * 0.0907);
  7567. c.lineTo(w * 0.3197, h * 0.1008);
  7568. c.close();
  7569. c.moveTo(w * 0.8502, h * 0.2843);
  7570. c.lineTo(w * 0.8502, h * 0.3083);
  7571. c.lineTo(w * 0.794, h * 0.3136);
  7572. c.close();
  7573. c.moveTo(w * 0.6167, h * 0.3941);
  7574. c.lineTo(w * 0.6167, h * 0.9317);
  7575. c.moveTo(w * 0.9652, h * 0.4448);
  7576. c.lineTo(w * 0.9652, h * 0.9851);
  7577. c.stroke();
  7578. c.restore();
  7579. c.setShadow(false);
  7580. var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  7581. c.setFillColor(strokeColor);
  7582. c.begin();
  7583. c.moveTo(w * 0.4903, h * 0.1259);
  7584. c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.5023, h * 0.1189);
  7585. c.arcTo(w * 0.2007, h * 0.16, 0, 0, 1, w * 0.5639, h * 0.1333);
  7586. c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.7157, h * 0.2005);
  7587. c.arcTo(w * 0.2006, h * 0.16, 0, 0, 1, w * 0.7565, h * 0.2315);
  7588. c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.7445, h * 0.2421);
  7589. c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.6742, h * 0.2251);
  7590. c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.5204, h * 0.1541);
  7591. c.arcTo(w * 0.1338, h * 0.1067, 0, 0, 1, w * 0.4903, h * 0.1259);
  7592. c.close();
  7593. c.moveTo(w * 0.4789, h * 0.1275);
  7594. c.arcTo(w * 0.0334, h * 0.0267, 0, 0, 0, w * 0.487, h * 0.1461);
  7595. c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 0, w * 0.5237, h * 0.1728);
  7596. c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 0, w * 0.6609, h * 0.2352);
  7597. c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 0, w * 0.7244, h * 0.2501);
  7598. c.arcTo(w * 0.0201, h * 0.016, 0, 0, 0, w * 0.7411, h * 0.2475);
  7599. c.lineTo(w * 0.5385, h * 0.3408);
  7600. c.arcTo(w * 0.0669, h * 0.05333, 0, 0, 1, w * 0.512, h * 0.3397);
  7601. c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.4548, h * 0.3248);
  7602. c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 1, w * 0.3084, h * 0.2565);
  7603. c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 1, w * 0.2776, h * 0.2304);
  7604. c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.2776, h * 0.2197);
  7605. c.close();
  7606. c.fill();
  7607. var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');
  7608. c.setFillColor(fillColor);
  7609. c.setLineJoin('round');
  7610. c.setLineCap('round');
  7611. c.begin();
  7612. c.moveTo(w * 0.3398, h * 0.2421);
  7613. c.lineTo(w * 0.4769, h * 0.1797);
  7614. c.lineTo(w * 0.6341, h * 0.2512);
  7615. c.lineTo(w * 0.4936, h * 0.3147);
  7616. c.fill();
  7617. c.begin();
  7618. c.moveTo(w * 0.4334, h * 0.1941);
  7619. c.lineTo(w * 0.6207, h * 0.2811);
  7620. c.moveTo(w * 0.5338, h * 0.1995);
  7621. c.lineTo(w * 0.3866, h * 0.2688);
  7622. c.moveTo(w * 0.5873, h * 0.2235);
  7623. c.lineTo(w * 0.4334, h * 0.2955);
  7624. c.stroke();
  7625. c.setStrokeWidth(2 * strokeWidth);
  7626. c.setStrokeColor(strokeColor2);
  7627. c.begin();
  7628. c.moveTo(0, h * 0.6517);
  7629. c.lineTo(0, h * 0.0912);
  7630. c.lineTo(w * 0.0368, h * 0.0155);
  7631. c.lineTo(w * 0.2047, 0);
  7632. c.lineTo(w * 0.3378, h * 0.0619);
  7633. c.lineTo(w * 0.3378, h * 0.0912);
  7634. c.lineTo(w * 0.3819, h * 0.0693);
  7635. c.lineTo(w * 0.6154, h * 0.0693);
  7636. c.lineTo(w * 0.8502, h * 0.1776);
  7637. c.lineTo(w * 0.8502, h * 0.3083);
  7638. c.lineTo(w * 0.8682, h * 0.3061);
  7639. c.lineTo(w, h * 0.3664);
  7640. c.lineTo(w, h * 0.9099);
  7641. c.lineTo(w * 0.9672, h * 0.9861);
  7642. c.lineTo(w * 0.7926, h);
  7643. c.lineTo(w * 0.6629, h * 0.9392);
  7644. c.lineTo(w * 0.6629, h * 0.9099);
  7645. c.lineTo(w * 0.6167, h * 0.9317);
  7646. c.lineTo(w * 0.3813, h * 0.9317);
  7647. c.lineTo(w * 0.1478, h * 0.8219);
  7648. c.lineTo(w * 0.1478, h * 0.7093);
  7649. c.lineTo(w * 0.1365, h * 0.7163);
  7650. c.close();
  7651. c.stroke();
  7652. };
  7653. mxCellRenderer.registerShape(mxShapeAws3dRedshift.prototype.cst.REDSHIFT, mxShapeAws3dRedshift);
  7654. //**********************************************************************************************************************************************************
  7655. //Lambda
  7656. //**********************************************************************************************************************************************************
  7657. /**
  7658. * Extends mxShape.
  7659. */
  7660. function mxShapeAws3dLambda(bounds, fill, stroke, strokewidth)
  7661. {
  7662. mxShape.call(this);
  7663. this.bounds = bounds;
  7664. this.fill = fill;
  7665. this.stroke = stroke;
  7666. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  7667. };
  7668. /**
  7669. * Extends mxShape.
  7670. */
  7671. mxUtils.extend(mxShapeAws3dLambda, mxShape);
  7672. mxShapeAws3dLambda.prototype.cst = {
  7673. LAMBDA : 'mxgraph.aws3d.lambda',
  7674. SHADING_COLORS : 'shadingCols'
  7675. };
  7676. mxShapeAws3dLambda.prototype.customProperties = [
  7677. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true},
  7678. {name: 'strokeColor3', dispName: 'Stroke Color 3', type: 'color', defVal:"#ffffff", primary: true}
  7679. ];
  7680. /**
  7681. * Function: paintVertexShape
  7682. *
  7683. * Paints the vertex shape.
  7684. */
  7685. mxShapeAws3dLambda.prototype.paintVertexShape = function(c, x, y, w, h)
  7686. {
  7687. c.translate(x, y);
  7688. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  7689. var strokeWidth1 = strokeWidth * w / 92;
  7690. var strokeWidth2 = strokeWidth * h / 109.5;
  7691. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  7692. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  7693. this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7694. c.setShadow(false);
  7695. this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);
  7696. };
  7697. mxShapeAws3dLambda.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7698. {
  7699. c.setStrokeWidth(strokeWidth);
  7700. c.save();
  7701. c.save();
  7702. c.setStrokeWidth(2 * strokeWidth);
  7703. c.setStrokeColor(strokeColor2);
  7704. c.setLineJoin('round');
  7705. c.begin();
  7706. c.moveTo(0, h * 0.1671);
  7707. c.lineTo(w * 0.3424, 0);
  7708. c.lineTo(w * 0.663, 0);
  7709. c.lineTo(w, h * 0.1671);
  7710. c.lineTo(w, h * 0.8365);
  7711. c.lineTo(w * 0.663, h);
  7712. c.lineTo(w * 0.3424, h);
  7713. c.lineTo(0, h * 0.8365);
  7714. c.close();
  7715. c.fillAndStroke();
  7716. };
  7717. mxShapeAws3dLambda.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)
  7718. {
  7719. c.restore();
  7720. c.setShadow(false);
  7721. c.setFillColor('#000000');
  7722. var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#5E5E5E');
  7723. var strokeColor3 = mxUtils.getValue(this.style, 'strokeColor3', '#ffffff');
  7724. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dLambda.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  7725. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  7726. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  7727. c.begin();
  7728. c.moveTo(0, h * 0.3242);
  7729. c.lineTo(w * 0.3424, h * 0.4895);
  7730. c.lineTo(w * 0.663, h * 0.4895);
  7731. c.lineTo(w * 0.663, h);
  7732. c.lineTo(w * 0.3424, h);
  7733. c.lineTo(0, h * 0.8365);
  7734. c.close();
  7735. c.moveTo(w * 0., h * 0.);
  7736. c.lineTo(w * 0., h * 0.);
  7737. c.lineTo(w * 0., h * 0.);
  7738. c.lineTo(w * 0., h * 0.);
  7739. c.lineTo(w * 0., h * 0.);
  7740. c.lineTo(w * 0., h * 0.);
  7741. c.close();
  7742. c.moveTo(w * 0., h * 0.);
  7743. c.lineTo(w * 0., h * 0.);
  7744. c.lineTo(w * 0., h * 0.);
  7745. c.lineTo(w * 0., h * 0.);
  7746. c.lineTo(w * 0., h * 0.);
  7747. c.lineTo(w * 0., h * 0.);
  7748. c.close();
  7749. c.fill();
  7750. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  7751. c.begin();
  7752. c.moveTo(w * 0.663, h * 0.4895);
  7753. c.lineTo(w, h * 0.3242);
  7754. c.lineTo(w, h * 0.8365);
  7755. c.lineTo(w * 0.663, h);
  7756. c.close();
  7757. c.fill();
  7758. c.restore();
  7759. c.setShadow(false);
  7760. c.setLineJoin('round');
  7761. c.begin();
  7762. c.moveTo(0, h * 0.3242);
  7763. c.lineTo(w * 0.3424, h * 0.4895);
  7764. c.lineTo(w * 0.663, h * 0.4895);
  7765. c.lineTo(w, h * 0.3242);
  7766. c.moveTo(w * 0.3424, h * 0.4895);
  7767. c.lineTo(w * 0.3424, h);
  7768. c.moveTo(w * 0.663, h * 0.4895);
  7769. c.lineTo(w * 0.663, h);
  7770. c.stroke();
  7771. c.setFillColor(strokeColor);
  7772. c.begin();
  7773. c.moveTo(w * 0.3804, h * 0.1169);
  7774. c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.6087, h * 0.1123);
  7775. c.arcTo(w * 0.33804, h * 0.3196, 0, 0, 1, w * 0.725, h * 0.1553);
  7776. c.arcTo(w * 0.1304, h * 0.1096, 0, 0, 1, w * 0.7924, h * 0.2402);
  7777. c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.725, h * 0.3333);
  7778. c.arcTo(w * 0.4416, h * 0.274, 0, 0, 1, w * 0.6087, h * 0.3772);
  7779. c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.3804, h * 0.3708);
  7780. c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.2772, h * 0.3324);
  7781. c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2163, h * 0.2539);
  7782. c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2663, h * 0.1644);
  7783. c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.3804, h * 0.1169);
  7784. c.fill();
  7785. c.setFillColor(strokeColor3);
  7786. c.begin();
  7787. c.moveTo(w * 0.5565, h * 0.2174);
  7788. c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.5837, h * 0.1945);
  7789. c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 0, w * 0.5793, h * 0.1671);
  7790. c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.525, h * 0.1598);
  7791. c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 1, w * 0.5543, h * 0.1443);
  7792. c.arcTo(w * 0.0761, h * 0.0639, 0, 0, 1, w * 0.6163, h * 0.1662);
  7793. c.arcTo(w * 0.0598, h * 0.0502, 0, 0, 1, w * 0.6087, h * 0.2091);
  7794. c.lineTo(w * 0.5, h * 0.3032);
  7795. c.arcTo(w * 0.0978, h * 0.0822, 0, 0, 0, w * 0.4728, h * 0.3379);
  7796. c.arcTo(w * 0.0272, h * 0.0228, 0, 0, 0, w * 0.4924, h * 0.3571);
  7797. c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 1, w * 0.4489, h * 0.3571);
  7798. c.arcTo(w * 0.038, h * 0.032, 0, 0, 1, w * 0.437, h * 0.3242);
  7799. c.arcTo(w * 0.1087, h * 0.0913, 0, 0, 1, w * 0.4674, h * 0.2886);
  7800. c.lineTo(w * 0.5141, h * 0.2557);
  7801. c.lineTo(w * 0.3185, h * 0.2895);
  7802. c.lineTo(w * 0.2641, h * 0.2648);
  7803. c.close();
  7804. c.fill();
  7805. c.setStrokeWidth(2 * strokeWidth);
  7806. c.setStrokeColor(strokeColor2);
  7807. c.begin();
  7808. c.moveTo(0, h * 0.1671);
  7809. c.lineTo(w * 0.3424, 0);
  7810. c.lineTo(w * 0.663, 0);
  7811. c.lineTo(w, h * 0.1671);
  7812. c.lineTo(w, h * 0.8365);
  7813. c.lineTo(w * 0.663, h);
  7814. c.lineTo(w * 0.3424, h);
  7815. c.lineTo(0, h * 0.8365);
  7816. c.close();
  7817. c.stroke();
  7818. };
  7819. mxCellRenderer.registerShape(mxShapeAws3dLambda.prototype.cst.LAMBDA, mxShapeAws3dLambda);
  7820. //**********************************************************************************************************************************************************
  7821. //EBS 2
  7822. //**********************************************************************************************************************************************************
  7823. /**
  7824. * Extends mxShape.
  7825. */
  7826. function mxShapeAws3dEbs2(bounds, fill, stroke, strokewidth)
  7827. {
  7828. mxShape.call(this);
  7829. this.bounds = bounds;
  7830. this.fill = fill;
  7831. this.stroke = stroke;
  7832. this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  7833. };
  7834. /**
  7835. * Extends mxShape.
  7836. */
  7837. mxUtils.extend(mxShapeAws3dEbs2, mxShape);
  7838. mxShapeAws3dEbs2.prototype.cst = {
  7839. EBS2 : 'mxgraph.aws3d.ebs2',
  7840. SHADING_COLORS : 'shadingCols'
  7841. };
  7842. mxShapeAws3dEbs2.prototype.customProperties = [
  7843. {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}
  7844. ];
  7845. /**
  7846. * Function: paintVertexShape
  7847. *
  7848. * Paints the vertex shape.
  7849. */
  7850. mxShapeAws3dEbs2.prototype.paintVertexShape = function(c, x, y, w, h)
  7851. {
  7852. c.translate(x, y);
  7853. var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  7854. var strokeWidth1 = strokeWidth * w / 92;
  7855. var strokeWidth2 = strokeWidth * h / 60;
  7856. var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  7857. var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');
  7858. strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  7859. c.setStrokeWidth(strokeWidth);
  7860. c.setShadow(false);
  7861. c.save();
  7862. c.save();
  7863. c.setStrokeWidth(2 * strokeWidth);
  7864. c.setStrokeColor(strokeColor2);
  7865. c.setLineJoin('round');
  7866. if(isShadow == 1)
  7867. {
  7868. c.setShadow(true);
  7869. }
  7870. c.begin();
  7871. c.moveTo(0, h * 0.5276);
  7872. c.lineTo(0, h * 0.4188);
  7873. c.lineTo(w * 0.071, h * 0.2898);
  7874. c.lineTo(w * 0.4033, 0);
  7875. c.lineTo(w * 0.9301, h * 0.464);
  7876. c.lineTo(w, h * 0.5863);
  7877. c.lineTo(w, h * 0.7035);
  7878. c.lineTo(w * 0.6667, h);
  7879. c.lineTo(w * 0.5355, h);
  7880. c.close();
  7881. c.fillAndStroke();
  7882. c.restore();
  7883. c.setFillColor('#000000');
  7884. var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  7885. var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  7886. (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  7887. c.begin();
  7888. c.moveTo(w * 0.071, h * 0.2948);
  7889. c.lineTo(w * 0.6011, h * 0.7621);
  7890. c.lineTo(w * 0.6667, h);
  7891. c.lineTo(w * 0.5355, h);
  7892. c.lineTo(0, h * 0.5276);
  7893. c.lineTo(0, h * 0.4137);
  7894. c.close();
  7895. c.fill();
  7896. (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  7897. c.begin();
  7898. c.moveTo(w * 0.6011, h * 0.7655);
  7899. c.lineTo(w * 0.9344, h * 0.4724);
  7900. c.lineTo(w, h * 0.7035);
  7901. c.lineTo(w * 0.6667, h);
  7902. c.close();
  7903. c.fill();
  7904. c.restore();
  7905. c.setLineJoin('round');
  7906. c.begin();
  7907. c.moveTo(w * 0.071, h * 0.2948);
  7908. c.lineTo(w * 0.6011, h * 0.7621);
  7909. c.lineTo(w * 0.6667, h);
  7910. c.lineTo(w * 0.5355, h);
  7911. c.lineTo(0, h * 0.5276);
  7912. c.lineTo(0, h * 0.4137);
  7913. c.close();
  7914. c.moveTo(w * 0.6011, h * 0.7655);
  7915. c.lineTo(w * 0.9344, h * 0.4724);
  7916. c.lineTo(w, h * 0.7035);
  7917. c.lineTo(w * 0.6667, h);
  7918. c.close();
  7919. c.moveTo(w * 0.0033, h * 0.5276);
  7920. c.lineTo(w * 0.071, h * 0.2898);
  7921. c.moveTo(w * 0.5325, h * 0.9976);
  7922. c.lineTo(w * 0.603, h * 0.7593);
  7923. c.stroke();
  7924. c.setStrokeWidth(2 * strokeWidth);
  7925. c.setLineCap('round');
  7926. c.begin();
  7927. c.moveTo(w * 0.3388, h * 0.3802);
  7928. c.lineTo(w * 0.5027, h * 0.2345);
  7929. c.lineTo(w * 0.6667, h * 0.3802);
  7930. c.lineTo(w * 0.5027, h * 0.526);
  7931. c.close();
  7932. c.moveTo(w * 0.4426, h * 0.3802);
  7933. c.lineTo(w * 0.5027, h * 0.3266);
  7934. c.lineTo(w * 0.5628, h * 0.3802);
  7935. c.lineTo(w * 0.5027, h * 0.4338);
  7936. c.close();
  7937. c.moveTo(w * 0.3867, h * 0.3284);
  7938. c.lineTo(w * 0.3541, h * 0.2998);
  7939. c.moveTo(w * 0.4436, h * 0.2748);
  7940. c.lineTo(w * 0.4077, h * 0.2412);
  7941. c.moveTo(w * 0.5704, h * 0.2803);
  7942. c.lineTo(w * 0.5992, h * 0.2513);
  7943. c.moveTo(w * 0.6231, h * 0.3284);
  7944. c.lineTo(w * 0.6503, h * 0.3032);
  7945. c.moveTo(w * 0.622, h * 0.4338);
  7946. c.lineTo(w * 0.6557, h * 0.4606);
  7947. c.moveTo(w * 0.5667, h * 0.4845);
  7948. c.lineTo(w * 0.5992, h * 0.5156);
  7949. c.moveTo(w * 0.4414, h * 0.4874);
  7950. c.lineTo(w * 0.412, h * 0.5159);
  7951. c.moveTo(w * 0.3889, h * 0.4405);
  7952. c.lineTo(w * 0.3607, h * 0.4657);
  7953. c.stroke();
  7954. c.setStrokeColor(strokeColor2);
  7955. c.setLineJoin('round');
  7956. c.begin();
  7957. c.moveTo(0, h * 0.5276);
  7958. c.lineTo(0, h * 0.4188);
  7959. c.lineTo(w * 0.071, h * 0.2898);
  7960. c.lineTo(w * 0.4033, 0);
  7961. c.lineTo(w * 0.9301, h * 0.464);
  7962. c.lineTo(w, h * 0.5863);
  7963. c.lineTo(w, h * 0.7035);
  7964. c.lineTo(w * 0.6667, h);
  7965. c.lineTo(w * 0.5355, h);
  7966. c.close();
  7967. c.stroke();
  7968. };
  7969. mxCellRenderer.registerShape(mxShapeAws3dEbs2.prototype.cst.EBS2, mxShapeAws3dEbs2);
  7970. //**********************************************************************************************************************************************************
  7971. //Elasticache
  7972. //**********************************************************************************************************************************************************
  7973. ///**
  7974. //* Extends mxShape.
  7975. //*/
  7976. //function mxShapeAws3dElasticache(bounds, fill, stroke, strokewidth)
  7977. //{
  7978. // mxShape.call(this);
  7979. // this.bounds = bounds;
  7980. // this.fill = fill;
  7981. // this.stroke = stroke;
  7982. // this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  7983. //};
  7984. //
  7985. ///**
  7986. //* Extends mxShape.
  7987. //*/
  7988. //mxUtils.extend(mxShapeAws3dElasticache, mxShape);
  7989. //
  7990. //mxShapeAws3dElasticache.prototype.cst = {
  7991. // ELASTICACHE : 'mxgraph.aws3d.elasticache',
  7992. // SHADING_COLORS : 'shadingCols'
  7993. //};
  7994. //
  7995. ///**
  7996. //* Function: paintVertexShape
  7997. //*
  7998. //* Paints the vertex shape.
  7999. //*/
  8000. //mxShapeAws3dElasticache.prototype.paintVertexShape = function(c, x, y, w, h)
  8001. //{
  8002. // c.translate(x, y);
  8003. //
  8004. // var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  8005. // var strokeWidth1 = strokeWidth * w / 123;
  8006. // var strokeWidth2 = strokeWidth * h / 143;
  8007. // var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  8008. //
  8009. // strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  8010. //
  8011. // c.setStrokeWidth(strokeWidth);
  8012. // c.setShadow(false);
  8013. // c.save();
  8014. // c.save();
  8015. // c.setStrokeWidth(2 * strokeWidth);
  8016. // c.setStrokeColor('#292929');
  8017. // c.setLineJoin('round');
  8018. //
  8019. // if(isShadow == 1)
  8020. // {
  8021. // c.setShadow(true);
  8022. // }
  8023. //
  8024. // c.begin();
  8025. // c.moveTo(0, h * 0.7483);
  8026. // c.lineTo(0, h * 0.6294);
  8027. // c.lineTo(w * 0.061, h * 0.5944);
  8028. // c.lineTo(0, h * 0.563);
  8029. // c.lineTo(0, h * 0.4406);
  8030. // c.lineTo(w * 0.061, h * 0.4091);
  8031. // c.lineTo(0, h * 0.3776);
  8032. // c.lineTo(0, h * 0.2517);
  8033. // c.lineTo(w * 0.5041, 0);
  8034. // c.lineTo(w, h * 0.2483);
  8035. // c.lineTo(w, h * 0.3741);
  8036. // c.lineTo(w * 0.939, h * 0.4091);
  8037. // c.lineTo(w, h * 0.4406);
  8038. // c.lineTo(w, h * 0.563);
  8039. // c.lineTo(w * 0.939, h * 0.5944);
  8040. // c.lineTo(w, h * 0.6294);
  8041. // c.lineTo(w, h * 0.751);
  8042. // c.lineTo(w * 0.5041, h);
  8043. // c.close();
  8044. // c.fillAndStroke();
  8045. //
  8046. // c.restore();
  8047. // c.setFillColor('#000000');
  8048. //
  8049. // var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticache.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  8050. // var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  8051. // (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  8052. //
  8053. // c.begin();
  8054. // c.moveTo(0, h * 0.2517);
  8055. // c.lineTo(w * 0.5041, h * 0.4965);
  8056. // c.lineTo(w * 0.5041, h * 0.6294);
  8057. // c.lineTo(0, h * 0.3776);
  8058. // c.close();
  8059. // c.moveTo(0, h * 0.4406);
  8060. // c.lineTo(w * 0.5041, h * 0.6853);
  8061. // c.lineTo(w * 0.5041, h * 0.8112);
  8062. // c.lineTo(0, h * 0.5629);
  8063. // c.close();
  8064. // c.moveTo(0, h * 0.6294);
  8065. // c.lineTo(w * 0.5041, h * 0.8741);
  8066. // c.lineTo(w * 0.5041, h);
  8067. // c.lineTo(0, h * 0.7483);
  8068. // c.close();
  8069. // c.moveTo(w * 0.6179, h * 0.2517);
  8070. // c.lineTo(w * 0.752, h * 0.1853);
  8071. // c.lineTo(w * 0.752, h * 0.3217);
  8072. // c.close();
  8073. // c.fill();
  8074. //
  8075. // (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  8076. // c.begin();
  8077. // c.moveTo(w * 0.5041, h * 0.4965);
  8078. // c.lineTo(w, h * 0.2517);
  8079. // c.lineTo(w, h * 0.3741);
  8080. // c.lineTo(w * 0.5041, h * 0.6294);
  8081. // c.close();
  8082. // c.moveTo(w * 0.5041, h * 0.6853);
  8083. // c.lineTo(w, h * 0.4406);
  8084. // c.lineTo(w, h * 0.5629);
  8085. // c.lineTo(w * 0.5041, h * 0.8112);
  8086. // c.close();
  8087. // c.moveTo(w * 0.5041, h * 0.8741);
  8088. // c.lineTo(w, h * 0.6294);
  8089. // c.lineTo(w, h * 0.7483);
  8090. // c.lineTo(w * 0.5041, h);
  8091. // c.close();
  8092. // c.moveTo(w * 0.752, h * 0.1853);
  8093. // c.lineTo(w * 0.8821, h * 0.2517);
  8094. // c.lineTo(w * 0.752, h * 0.3217);
  8095. // c.close();
  8096. // c.fill();
  8097. //
  8098. // c.restore();
  8099. // c.setLineJoin('round');
  8100. //
  8101. // c.begin();
  8102. // c.moveTo(0, h * 0.2517);
  8103. // c.lineTo(w * 0.5041, h * 0.4965);
  8104. // c.lineTo(w * 0.5041, h * 0.6294);
  8105. // c.lineTo(0, h * 0.3776);
  8106. // c.close();
  8107. // c.moveTo(0, h * 0.4406);
  8108. // c.lineTo(w * 0.5041, h * 0.6853);
  8109. // c.lineTo(w * 0.5041, h * 0.8112);
  8110. // c.lineTo(0, h * 0.5629);
  8111. // c.close();
  8112. // c.moveTo(0, h * 0.6294);
  8113. // c.lineTo(w * 0.5041, h * 0.8741);
  8114. // c.lineTo(w * 0.5041, h);
  8115. // c.lineTo(0, h * 0.7483);
  8116. // c.close();
  8117. // c.moveTo(w * 0.5041, h * 0.4965);
  8118. // c.lineTo(w, h * 0.2517);
  8119. // c.lineTo(w, h * 0.3741);
  8120. // c.lineTo(w * 0.5041, h * 0.6294);
  8121. // c.close();
  8122. // c.moveTo(w * 0.5041, h * 0.6853);
  8123. // c.lineTo(w, h * 0.4406);
  8124. // c.lineTo(w, h * 0.5629);
  8125. // c.lineTo(w * 0.5041, h * 0.8112);
  8126. // c.close();
  8127. // c.moveTo(w * 0.5041, h * 0.8741);
  8128. // c.lineTo(w, h * 0.6294);
  8129. // c.lineTo(w, h * 0.7483);
  8130. // c.lineTo(w * 0.5041, h);
  8131. // c.close();
  8132. // c.stroke();
  8133. //
  8134. // c.setStrokeWidth(2 * strokeWidth);
  8135. // c.setLineCap('round');
  8136. // var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');
  8137. // c.setFillColor(strokeColor);
  8138. //
  8139. // c.begin();
  8140. // c.moveTo(w * 0.222, h * 0.2028);
  8141. // c.arcTo(w * 0.1463, h * 0.1259, 0, 0, 1, w * 0.3154, h * 0.2014);
  8142. // c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3642, h * 0.2245);
  8143. // c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.3618, h * 0.2552);
  8144. // c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3252, h * 0.2798);
  8145. // c.arcTo(w * 0.1626, h * 0.1399, 0, 0, 1, w * 0.2276, h * 0.2797);
  8146. // c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.187, h * 0.2622);
  8147. // c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.187, h * 0.2238);
  8148. // c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.222, h * 0.2028);
  8149. // c.close();
  8150. // c.moveTo(w * 0.3618, h * 0.1434);
  8151. // c.lineTo(w * 0.4309, h * 0.1189);
  8152. // c.lineTo(w * 0.4309, h * 0.0755);
  8153. // c.lineTo(w * 0.4992, h * 0.1014);
  8154. // c.lineTo(w * 0.5813, h * 0.0874);
  8155. // c.lineTo(w * 0.5488, h * 0.1294);
  8156. // c.lineTo(w * 0.6057, h * 0.1608);
  8157. // c.lineTo(w * 0.5163, h * 0.1608);
  8158. // c.lineTo(w * 0.4634, h * 0.2028);
  8159. // c.lineTo(w * 0.4431, h * 0.1538);
  8160. // c.close();
  8161. // c.moveTo(w * 0.3821, h * 0.3601);
  8162. // c.lineTo(w * 0.5894, h * 0.3322);
  8163. // c.lineTo(w * 0.5325, h * 0.4394);
  8164. // c.close();
  8165. // c.fill();
  8166. //
  8167. // c.setStrokeColor('#292929');
  8168. // c.setLineJoin('round');
  8169. //
  8170. // c.begin();
  8171. // c.moveTo(0, h * 0.7483);
  8172. // c.lineTo(0, h * 0.6294);
  8173. // c.lineTo(w * 0.061, h * 0.5944);
  8174. // c.lineTo(0, h * 0.563);
  8175. // c.lineTo(0, h * 0.4406);
  8176. // c.lineTo(w * 0.061, h * 0.4091);
  8177. // c.lineTo(0, h * 0.3776);
  8178. // c.lineTo(0, h * 0.2517);
  8179. // c.lineTo(w * 0.5041, 0);
  8180. // c.lineTo(w, h * 0.2483);
  8181. // c.lineTo(w, h * 0.3741);
  8182. // c.lineTo(w * 0.939, h * 0.4091);
  8183. // c.lineTo(w, h * 0.4406);
  8184. // c.lineTo(w, h * 0.563);
  8185. // c.lineTo(w * 0.939, h * 0.5944);
  8186. // c.lineTo(w, h * 0.6294);
  8187. // c.lineTo(w, h * 0.751);
  8188. // c.lineTo(w * 0.5041, h);
  8189. // c.close();
  8190. // c.stroke();
  8191. //};
  8192. //
  8193. //mxCellRenderer.registerShape(mxShapeAws3dElasticache.prototype.cst.ELASTICACHE, mxShapeAws3dElasticache);
  8194. //**********************************************************************************************************************************************************
  8195. //Kinesis Stream
  8196. //**********************************************************************************************************************************************************
  8197. /**
  8198. * Extends mxShape.
  8199. */
  8200. //function mxShapeAws3dKinesisStream(bounds, fill, stroke, strokewidth)
  8201. //{
  8202. // mxShape.call(this);
  8203. // this.bounds = bounds;
  8204. // this.fill = fill;
  8205. // this.stroke = stroke;
  8206. // this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  8207. //};
  8208. //
  8209. ///**
  8210. //* Extends mxShape.
  8211. //*/
  8212. //mxUtils.extend(mxShapeAws3dKinesisStream, mxShape);
  8213. //
  8214. //mxShapeAws3dKinesisStream.prototype.cst = {
  8215. // KINESIS_STREAM : 'mxgraph.aws3d.kinesisStream',
  8216. // SHADING_COLORS : 'shadingCols'
  8217. //};
  8218. //
  8219. ///**
  8220. //* Function: paintVertexShape
  8221. //*
  8222. //* Paints the vertex shape.
  8223. //*/
  8224. //mxShapeAws3dKinesisStream.prototype.paintVertexShape = function(c, x, y, w, h)
  8225. //{
  8226. // c.translate(x, y);
  8227. //
  8228. // var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  8229. // var strokeWidth1 = strokeWidth * w / 220;
  8230. // var strokeWidth2 = strokeWidth * h / 160;
  8231. // var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  8232. //
  8233. // strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  8234. //
  8235. // c.setStrokeWidth(strokeWidth);
  8236. // c.setShadow(false);
  8237. // c.save();
  8238. // c.save();
  8239. // c.setStrokeWidth(2 * strokeWidth);
  8240. // c.setStrokeColor('#292929');
  8241. // c.setLineJoin('round');
  8242. //
  8243. // if(isShadow == 1)
  8244. // {
  8245. // c.setShadow(true);
  8246. // }
  8247. //
  8248. // c.begin();
  8249. // c.moveTo(0, h * 0.5503);
  8250. // c.lineTo(w * 0.0455, h * 0.4623);
  8251. // c.lineTo(w * 0.6054, h * 0.0157);
  8252. // c.lineTo(w * 0.6623, h * 0.0629);
  8253. // c.lineTo(w * 0.7396, 0);
  8254. // c.lineTo(w * 0.8239, h * 0.0692);
  8255. // c.lineTo(w * 0.8671, h * 0.2233);
  8256. // c.lineTo(w * 0.9513, h * 0.2943);
  8257. // c.lineTo(w, h * 0.4528);
  8258. // c.lineTo(w * 0.9595, h * 0.5365);
  8259. // c.lineTo(w * 0.396, h * 0.9843);
  8260. // c.lineTo(w * 0.3391, h * 0.9403);
  8261. // c.lineTo(w * 0.2617, h);
  8262. // c.lineTo(w * 0.173, h * 0.9308);
  8263. // c.lineTo(w * 0.1297, h * 0.7736);
  8264. // c.lineTo(w * 0.0432, h * 0.7044);
  8265. // c.close();
  8266. // c.fillAndStroke();
  8267. //
  8268. // c.restore();
  8269. // c.setFillColor('#000000');
  8270. //
  8271. // var shading = mxUtils.getValue(this.state.style, mxShapeAws3dKinesisStream.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  8272. // var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  8273. // (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  8274. //
  8275. // c.begin();
  8276. // c.moveTo(w * 0.0432, h * 0.4654);
  8277. // c.lineTo(w * 0.132, h * 0.5314);
  8278. // c.lineTo(w * 0.1775, h * 0.4465);
  8279. // c.lineTo(w * 0.264, h * 0.5189);
  8280. // c.lineTo(w * 0.3072, h * 0.673);
  8281. // c.lineTo(w * 0.396, h * 0.7453);
  8282. // c.lineTo(w * 0.4392, h * 0.8994);
  8283. // c.lineTo(w * 0.396, h * 0.9843);
  8284. // c.lineTo(w * 0.305, h * 0.9151);
  8285. // c.lineTo(w * 0.2617, h);
  8286. // c.lineTo(w * 0.173, h * 0.9308);
  8287. // c.lineTo(w * 0.1297, h * 0.7736);
  8288. // c.lineTo(w * 0.0432, h * 0.7044);
  8289. // c.lineTo(0, h * 0.5503);
  8290. // c.close();
  8291. // c.fill();
  8292. //
  8293. // (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  8294. // c.begin();
  8295. // c.moveTo(w * 0.264, h * 0.5204);
  8296. // c.lineTo(w * 0.8239, h * 0.0676);
  8297. // c.lineTo(w * 0.8694, h * 0.228);
  8298. // c.lineTo(w * 0.3072, h * 0.673);
  8299. // c.close();
  8300. // c.moveTo(w * 0.3937, h * 0.7453);
  8301. // c.lineTo(w * 0.9536, h * 0.2956);
  8302. // c.lineTo(w, h * 0.4528);
  8303. // c.lineTo(w * 0.9558, h * 0.5377);
  8304. // c.lineTo(w * 0.396, h * 0.9843);
  8305. // c.lineTo(w * 0.4392, h * 0.8994);
  8306. // c.close();
  8307. // c.moveTo(w * 0.2617, h);
  8308. // c.lineTo(w * 0.305, h * 0.9151);
  8309. // c.lineTo(w * 0.3368, h * 0.9403);
  8310. // c.close();
  8311. // c.fill();
  8312. //
  8313. // c.setAlpha('0.5');
  8314. // c.begin();
  8315. // c.moveTo(w * 0.0546, h * 0.5094);
  8316. // c.lineTo(w * 0.1161, h * 0.5597);
  8317. // c.lineTo(w * 0.1479, h * 0.6761);
  8318. // c.lineTo(w * 0.1183, h * 0.7264);
  8319. // c.lineTo(w * 0.0569, h * 0.6792);
  8320. // c.lineTo(w * 0.025, h * 0.566);
  8321. // c.close();
  8322. // c.moveTo(w * 0.1889, h * 0.4937);
  8323. // c.lineTo(w * 0.2503, h * 0.544);
  8324. // c.lineTo(w * 0.2822, h * 0.6572);
  8325. // c.lineTo(w * 0.2526, h * 0.717);
  8326. // c.lineTo(w * 0.1934, h * 0.6667);
  8327. // c.lineTo(w * 0.1593, h * 0.5566);
  8328. // c.close();
  8329. // c.moveTo(w * 0.3195, h * 0.7201);
  8330. // c.lineTo(w * 0.3801, h * 0.7704);
  8331. // c.lineTo(w * 0.4137, h * 0.8805);
  8332. // c.lineTo(w * 0.3819, h * 0.9403);
  8333. // c.lineTo(w * 0.3209, h * 0.8912);
  8334. // c.lineTo(w * 0.2904, h * 0.783);
  8335. // c.close();
  8336. // c.moveTo(w * 0.1866, h * 0.7358);
  8337. // c.lineTo(w * 0.2458, h * 0.783);
  8338. // c.lineTo(w * 0.2776, h * 0.8962);
  8339. // c.lineTo(w * 0.2481, h * 0.956);
  8340. // c.lineTo(w * 0.1866, h * 0.9057);
  8341. // c.lineTo(w * 0.157, h * 0.7893);
  8342. // c.close();
  8343. // c.fill();
  8344. //
  8345. // c.restore();
  8346. // c.setLineJoin('round');
  8347. //
  8348. // c.begin();
  8349. // c.moveTo(w * 0.0432, h * 0.4654);
  8350. // c.lineTo(w * 0.132, h * 0.5314);
  8351. // c.lineTo(w * 0.1775, h * 0.4465);
  8352. // c.lineTo(w * 0.264, h * 0.5189);
  8353. // c.lineTo(w * 0.3072, h * 0.673);
  8354. // c.lineTo(w * 0.396, h * 0.7453);
  8355. // c.lineTo(w * 0.4392, h * 0.8994);
  8356. // c.lineTo(w * 0.396, h * 0.9843);
  8357. // c.lineTo(w * 0.305, h * 0.9151);
  8358. // c.lineTo(w * 0.2617, h);
  8359. // c.lineTo(w * 0.173, h * 0.9308);
  8360. // c.lineTo(w * 0.1297, h * 0.7736);
  8361. // c.lineTo(w * 0.0432, h * 0.7044);
  8362. // c.lineTo(0, h * 0.5503);
  8363. // c.close();
  8364. // c.moveTo(w * 0.264, h * 0.5204);
  8365. // c.lineTo(w * 0.8239, h * 0.0676);
  8366. // c.lineTo(w * 0.8694, h * 0.228);
  8367. // c.lineTo(w * 0.3072, h * 0.673);
  8368. // c.close();
  8369. // c.moveTo(w * 0.3937, h * 0.7453);
  8370. // c.lineTo(w * 0.9536, h * 0.2956);
  8371. // c.lineTo(w, h * 0.4528);
  8372. // c.lineTo(w * 0.9558, h * 0.5377);
  8373. // c.lineTo(w * 0.396, h * 0.9843);
  8374. // c.lineTo(w * 0.4392, h * 0.8994);
  8375. // c.close();
  8376. // c.moveTo(w * 0.2617, h);
  8377. // c.lineTo(w * 0.305, h * 0.9151);
  8378. // c.lineTo(w * 0.3368, h * 0.9403);
  8379. // c.close();
  8380. // c.moveTo(w * 0.0546, h * 0.5094);
  8381. // c.lineTo(w * 0.1161, h * 0.5597);
  8382. // c.lineTo(w * 0.1479, h * 0.6761);
  8383. // c.lineTo(w * 0.1183, h * 0.7264);
  8384. // c.lineTo(w * 0.0569, h * 0.6792);
  8385. // c.lineTo(w * 0.025, h * 0.566);
  8386. // c.close();
  8387. // c.moveTo(w * 0.1889, h * 0.4937);
  8388. // c.lineTo(w * 0.2503, h * 0.544);
  8389. // c.lineTo(w * 0.2822, h * 0.6572);
  8390. // c.lineTo(w * 0.2526, h * 0.717);
  8391. // c.lineTo(w * 0.1934, h * 0.6667);
  8392. // c.lineTo(w * 0.1593, h * 0.5566);
  8393. // c.close();
  8394. // c.moveTo(w * 0.3195, h * 0.7201);
  8395. // c.lineTo(w * 0.3801, h * 0.7704);
  8396. // c.lineTo(w * 0.4137, h * 0.8805);
  8397. // c.lineTo(w * 0.3819, h * 0.9403);
  8398. // c.lineTo(w * 0.3209, h * 0.8912);
  8399. // c.lineTo(w * 0.2904, h * 0.783);
  8400. // c.close();
  8401. // c.moveTo(w * 0.1866, h * 0.7358);
  8402. // c.lineTo(w * 0.2458, h * 0.783);
  8403. // c.lineTo(w * 0.2776, h * 0.8962);
  8404. // c.lineTo(w * 0.2481, h * 0.956);
  8405. // c.lineTo(w * 0.1866, h * 0.9057);
  8406. // c.lineTo(w * 0.157, h * 0.7893);
  8407. // c.close();
  8408. // c.moveTo(w * 0.1775, h * 0.4465);
  8409. // c.lineTo(w * 0.7374, 0);
  8410. // c.moveTo(w * 0.4392, h * 0.8994);
  8411. // c.lineTo(w, h * 0.4528);
  8412. // c.moveTo(w * 0.1331, h * 0.533);
  8413. // c.lineTo(w * 0.1809, h * 0.6934);
  8414. // c.lineTo(w * 0.2617, h * 0.7626);
  8415. // c.lineTo(w * 0.3061, h * 0.9151);
  8416. // c.moveTo(w * 0.1295, h * 0.7764);
  8417. // c.lineTo(w * 0.1807, h * 0.6928);
  8418. // c.moveTo(w * 0.264, h * 0.7642);
  8419. // c.lineTo(w * 0.3095, h * 0.673);
  8420. // c.moveTo(w * 0.3641, h * 0.2327);
  8421. // c.lineTo(w * 0.3241, h * 0.2673);
  8422. // c.lineTo(w * 0.3619, h * 0.2987);
  8423. // c.moveTo(w * 0.3468, h * 0.2736);
  8424. // c.lineTo(w * 0.3596, h * 0.261);
  8425. // c.moveTo(w * 0.3573, h * 0.283);
  8426. // c.lineTo(w * 0.3823, h * 0.261);
  8427. // c.moveTo(w * 0.4916, h * 0.217);
  8428. // c.lineTo(w * 0.4483, h * 0.2547);
  8429. // c.lineTo(w * 0.5052, h * 0.3019);
  8430. // c.moveTo(w * 0.4679, h * 0.2591);
  8431. // c.lineTo(w * 0.4802, h * 0.2478);
  8432. // c.moveTo(w * 0.4811, h * 0.2673);
  8433. // c.lineTo(w * 0.5098, h * 0.2421);
  8434. // c.moveTo(w * 0.4939, h * 0.2767);
  8435. // c.lineTo(w * 0.5121, h * 0.261);
  8436. // c.moveTo(w * 0.5043, h * 0.2868);
  8437. // c.lineTo(w * 0.5371, h * 0.2579);
  8438. // c.moveTo(w * 0.6259, h * 0.4371);
  8439. // c.lineTo(w * 0.5826, h * 0.4717);
  8440. // c.lineTo(w * 0.6418, h * 0.522);
  8441. // c.moveTo(w * 0.6039, h * 0.4755);
  8442. // c.lineTo(w * 0.6187, h * 0.463);
  8443. // c.moveTo(w * 0.6158, h * 0.4862);
  8444. // c.lineTo(w * 0.6418, h * 0.4623);
  8445. // c.moveTo(w * 0.6281, h * 0.4969);
  8446. // c.lineTo(w * 0.6486, h * 0.478);
  8447. // c.moveTo(w * 0.6395, h * 0.5063);
  8448. // c.lineTo(w * 0.6736, h * 0.478);
  8449. //
  8450. // c.stroke();
  8451. //
  8452. // c.setStrokeWidth(2 * strokeWidth);
  8453. // c.setLineCap('round');
  8454. //
  8455. // c.setStrokeColor('#292929');
  8456. // c.setLineJoin('round');
  8457. //
  8458. // c.begin();
  8459. // c.moveTo(0, h * 0.5503);
  8460. // c.lineTo(w * 0.0455, h * 0.4623);
  8461. // c.lineTo(w * 0.6054, h * 0.0157);
  8462. // c.lineTo(w * 0.6623, h * 0.0629);
  8463. // c.lineTo(w * 0.7396, 0);
  8464. // c.lineTo(w * 0.8239, h * 0.0692);
  8465. // c.lineTo(w * 0.8671, h * 0.2233);
  8466. // c.lineTo(w * 0.9513, h * 0.2943);
  8467. // c.lineTo(w, h * 0.4528);
  8468. // c.lineTo(w * 0.9595, h * 0.5365);
  8469. // c.lineTo(w * 0.396, h * 0.9843);
  8470. // c.lineTo(w * 0.3391, h * 0.9403);
  8471. // c.lineTo(w * 0.2617, h);
  8472. // c.lineTo(w * 0.173, h * 0.9308);
  8473. // c.lineTo(w * 0.1297, h * 0.7736);
  8474. // c.lineTo(w * 0.0432, h * 0.7044);
  8475. // c.close();
  8476. // c.stroke();
  8477. //};
  8478. //
  8479. //mxCellRenderer.registerShape(mxShapeAws3dKinesisStream.prototype.cst.KINESIS_STREAM, mxShapeAws3dKinesisStream);
  8480. //**********************************************************************************************************************************************************
  8481. //SQS 2
  8482. //**********************************************************************************************************************************************************
  8483. ///**
  8484. //* Extends mxShape.
  8485. //*/
  8486. //function mxShapeAws3dSqs2(bounds, fill, stroke, strokewidth)
  8487. //{
  8488. // mxShape.call(this);
  8489. // this.bounds = bounds;
  8490. // this.fill = fill;
  8491. // this.stroke = stroke;
  8492. // this.strokewidth = (strokewidth != null) ? strokewidth : 1;
  8493. //};
  8494. //
  8495. ///**
  8496. //* Extends mxShape.
  8497. //*/
  8498. //mxUtils.extend(mxShapeAws3dSqs2, mxShape);
  8499. //
  8500. //mxShapeAws3dSqs2.prototype.cst = {
  8501. // SQS2 : 'mxgraph.aws3d.sqs2',
  8502. // SHADING_COLORS : 'shadingCols'
  8503. //};
  8504. //
  8505. ///**
  8506. //* Function: paintVertexShape
  8507. //*
  8508. //* Paints the vertex shape.
  8509. //*/
  8510. //mxShapeAws3dSqs2.prototype.paintVertexShape = function(c, x, y, w, h)
  8511. //{
  8512. // c.translate(x, y);
  8513. //
  8514. // var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));
  8515. // var strokeWidth1 = strokeWidth * w / 160;
  8516. // var strokeWidth2 = strokeWidth * h / 93;
  8517. // var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));
  8518. //
  8519. // strokeWidth = Math.min(strokeWidth1, strokeWidth2);
  8520. //
  8521. // c.setStrokeWidth(strokeWidth);
  8522. // c.setShadow(false);
  8523. // c.save();
  8524. // c.save();
  8525. // c.setStrokeWidth(2 * strokeWidth);
  8526. // c.setStrokeColor('#292929');
  8527. // c.setLineJoin('round');
  8528. //
  8529. // if(isShadow == 1)
  8530. // {
  8531. // c.setShadow(true);
  8532. // }
  8533. //
  8534. // c.begin();
  8535. // c.moveTo(0, h * 0.4737);
  8536. // c.lineTo(w * 0.4652, 0);
  8537. // c.lineTo(w * 0.6231, h * 0.0602);
  8538. // c.lineTo(w * 0.6231, h * 0.1676);
  8539. // c.lineTo(w * 0.1567, h * 0.6316);
  8540. // c.close();
  8541. // c.moveTo(w * 0.3756, h * 0.8443);
  8542. // c.lineTo(w * 0.3756, h * 0.7454);
  8543. // c.lineTo(w * 0.8439, h * 0.275);
  8544. // c.lineTo(w, h * 0.5328);
  8545. // c.lineTo(w * 0.5311, h);
  8546. // c.close();
  8547. // c.fillAndStroke();
  8548. //
  8549. // c.restore();
  8550. // c.setFillColor('#000000');
  8551. //
  8552. // var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');
  8553. // var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');
  8554. // (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]);
  8555. //
  8556. // c.begin();
  8557. // c.moveTo(0, h * 0.4737);
  8558. // c.lineTo(w * 0.1567, h * 0.5274);
  8559. // c.lineTo(w * 0.1567, h * 0.6394);
  8560. // c.close();
  8561. // c.moveTo(w * 0.3756, h * 0.7454);
  8562. // c.lineTo(w * 0.5311, h);
  8563. // c.lineTo(w * 0.3756, h * 0.8443);
  8564. // c.close();
  8565. // c.fill();
  8566. //
  8567. // (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]);
  8568. // c.begin();
  8569. // c.moveTo(w * 0.1567, h * 0.5274);
  8570. // c.lineTo(w * 0.6231, h * 0.0602);
  8571. // c.lineTo(w * 0.6231, h * 0.1676);
  8572. // c.lineTo(w * 0.1567, h * 0.6294);
  8573. // c.close();
  8574. // c.fill();
  8575. //
  8576. // c.restore();
  8577. // c.setLineJoin('round');
  8578. //
  8579. // c.begin();
  8580. // c.moveTo(0, h * 0.4737);
  8581. // c.lineTo(w * 0.1567, h * 0.5274);
  8582. // c.lineTo(w * 0.1567, h * 0.6294);
  8583. // c.close();
  8584. // c.moveTo(w * 0.3756, h * 0.7454);
  8585. // c.lineTo(w * 0.5311, h);
  8586. // c.lineTo(w * 0.3756, h * 0.8443);
  8587. // c.close();
  8588. // c.moveTo(w * 0.1567, h * 0.5274);
  8589. // c.lineTo(w * 0.6231, h * 0.0602);
  8590. // c.lineTo(w * 0.6231, h * 0.1676);
  8591. // c.lineTo(w * 0.1567, h * 0.6294);
  8592. // c.close();
  8593. // c.stroke();
  8594. //
  8595. // c.setStrokeWidth(2 * strokeWidth);
  8596. // c.setLineCap('round');
  8597. //
  8598. // c.setStrokeColor('#292929');
  8599. // c.setLineJoin('round');
  8600. //
  8601. // c.begin();
  8602. // c.moveTo(0, h * 0.4737);
  8603. // c.lineTo(w * 0.4652, 0);
  8604. // c.lineTo(w * 0.6231, h * 0.0602);
  8605. // c.lineTo(w * 0.6231, h * 0.1676);
  8606. // c.lineTo(w * 0.1567, h * 0.6316);
  8607. // c.close();
  8608. // c.moveTo(w * 0.3756, h * 0.8443);
  8609. // c.lineTo(w * 0.3756, h * 0.7454);
  8610. // c.lineTo(w * 0.8439, h * 0.275);
  8611. // c.lineTo(w, h * 0.5328);
  8612. // c.lineTo(w * 0.5311, h);
  8613. // c.close();
  8614. // c.stroke();
  8615. //
  8616. // c.setFillColor('#F4B934');
  8617. //
  8618. // c.begin();
  8619. // c.moveTo(w * 0.1256, h * 0.812);
  8620. // c.lineTo(w * 0.24, h * 0.7605);
  8621. // c.lineTo(w * 0.1853, h * 0.8829);
  8622. // c.close();
  8623. // c.moveTo(w * 0.2417, h * 0.6957);
  8624. // c.lineTo(w * 0.3562, h * 0.6441);
  8625. // c.lineTo(w * 0.3014, h * 0.7666);
  8626. // c.close();
  8627. // c.moveTo(w * 0.3588, h * 0.5793);
  8628. // c.lineTo(w * 0.4733, h * 0.5277);
  8629. // c.lineTo(w * 0.4185, h * 0.6502);
  8630. // c.close();
  8631. // c.moveTo(w * 0.477, h * 0.4611);
  8632. // c.lineTo(w * 0.5914, h * 0.4096);
  8633. // c.lineTo(w * 0.5367, h * 0.532);
  8634. // c.close();
  8635. // c.moveTo(w * 0.591, h * 0.343);
  8636. // c.lineTo(w * 0.7054, h * 0.2914);
  8637. // c.lineTo(w * 0.6507, h * 0.4139);
  8638. // c.close();
  8639. // c.moveTo(w * 0.7091, h * 0.2302);
  8640. // c.lineTo(w * 0.8236, h * 0.1786);
  8641. // c.lineTo(w * 0.7688, h * 0.3011);
  8642. // c.close();
  8643. // c.fillAndStroke();
  8644. //};
  8645. //
  8646. //mxCellRenderer.registerShape(mxShapeAws3dSqs2.prototype.cst.SQS2, mxShapeAws3dSqs2);