1/**2 * Copyright (c) 2006-2015, JGraph Holdings Ltd3 */45//**********************************************************************************************************************************************************6//Arrow NE7//**********************************************************************************************************************************************************8/**9* Extends mxShape.10*/11function mxShapeAws3dArrowNE(bounds, fill, stroke, strokewidth)12{13 mxShape.call(this);14 this.bounds = bounds;15 this.fill = fill;16 this.stroke = stroke;17 this.strokewidth = (strokewidth != null) ? strokewidth : 1;18};1920/**21* Extends mxShape.22*/23mxUtils.extend(mxShapeAws3dArrowNE, mxShape);2425mxShapeAws3dArrowNE.prototype.cst = {26 ARROW_NE : 'mxgraph.aws3d.arrowNE'27};2829/**30* Function: paintVertexShape31* 32* Paints the vertex shape.33*/34mxShapeAws3dArrowNE.prototype.paintVertexShape = function(c, x, y, w, h)35{36 c.translate(x, y);3738 c.begin();39 c.moveTo(w - 17, 8);40 c.lineTo(w - 21, 5.5);41 c.lineTo(w, 0);42 c.lineTo(w - 9.7, 12.2);43 c.lineTo(w - 13.9, 9.8);44 c.lineTo(9.7, h - 3.5);45 c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);46 c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);47 c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);48 c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);49 c.close();50 c.fillAndStroke();51};5253mxCellRenderer.registerShape(mxShapeAws3dArrowNE.prototype.cst.ARROW_NE, mxShapeAws3dArrowNE);5455//**********************************************************************************************************************************************************56//Arrow SE57//**********************************************************************************************************************************************************58/**59* Extends mxShape.60*/61function mxShapeAws3dArrowSE(bounds, fill, stroke, strokewidth)62{63 mxShape.call(this);64 this.bounds = bounds;65 this.fill = fill;66 this.stroke = stroke;67 this.strokewidth = (strokewidth != null) ? strokewidth : 1;68};6970/**71* Extends mxShape.72*/73mxUtils.extend(mxShapeAws3dArrowSE, mxShape);7475mxShapeAws3dArrowSE.prototype.cst = {76 ARROW_SE : 'mxgraph.aws3d.arrowSE'77};78798081/**82* Function: paintVertexShape83* 84* Paints the vertex shape.85*/86mxShapeAws3dArrowSE.prototype.paintVertexShape = function(c, x, y, w, h)87{88 c.translate(x, y);8990 c.begin();91 c.moveTo(w - 17, h - 8);92 c.lineTo(w - 21, h - 5.5);93 c.lineTo(w, h);94 c.lineTo(w - 9.7, h - 12.2);95 c.lineTo(w - 13.9, h - 9.8);96 c.lineTo(9.7, 3.5);97 c.arcTo(6, 3, 0, 0, 0, 9, 0.4);98 c.arcTo(5.2, 3, 0, 0, 0, 1, 1.4);99 c.arcTo(6, 2.8, 0, 0, 0, 3, 5.4);100 c.arcTo(5, 3, 0, 0, 0, 6.7, 5.2);101 c.close();102 c.fillAndStroke();103};104105mxCellRenderer.registerShape(mxShapeAws3dArrowSE.prototype.cst.ARROW_SE, mxShapeAws3dArrowSE);106107//**********************************************************************************************************************************************************108//Arrow SW109//**********************************************************************************************************************************************************110/**111* Extends mxShape.112*/113function mxShapeAws3dArrowSW(bounds, fill, stroke, strokewidth)114{115 mxShape.call(this);116 this.bounds = bounds;117 this.fill = fill;118 this.stroke = stroke;119 this.strokewidth = (strokewidth != null) ? strokewidth : 1;120};121122/**123* Extends mxShape.124*/125mxUtils.extend(mxShapeAws3dArrowSW, mxShape);126127mxShapeAws3dArrowSW.prototype.cst = {128 ARROW_SW : 'mxgraph.aws3d.arrowSW'129};130131/**132* Function: paintVertexShape133* 134* Paints the vertex shape.135*/136mxShapeAws3dArrowSW.prototype.paintVertexShape = function(c, x, y, w, h)137{138 c.translate(x, y);139140 c.begin();141 c.moveTo(17, h - 8);142 c.lineTo(21, h - 5.5);143 c.lineTo(0, h);144 c.lineTo(9.7, h - 12.2);145 c.lineTo(13.9, h - 9.8);146 c.lineTo(w - 9.7, 3.5);147 c.arcTo(6, 3, 0, 0, 1, w - 9, 0.4);148 c.arcTo(5.2, 3, 0, 0, 1, w - 1, 1.4);149 c.arcTo(6, 2.8, 0, 0, 1, w - 3, 5.4);150 c.arcTo(5, 3, 0, 0, 1, w - 6.7, 5.2);151 c.close();152 c.fillAndStroke();153};154155mxCellRenderer.registerShape(mxShapeAws3dArrowSW.prototype.cst.ARROW_SW, mxShapeAws3dArrowSW);156157//**********************************************************************************************************************************************************158//Arrow NW159//**********************************************************************************************************************************************************160/**161* Extends mxShape.162*/163function mxShapeAws3dArrowNW(bounds, fill, stroke, strokewidth)164{165 mxShape.call(this);166 this.bounds = bounds;167 this.fill = fill;168 this.stroke = stroke;169 this.strokewidth = (strokewidth != null) ? strokewidth : 1;170};171172/**173* Extends mxShape.174*/175mxUtils.extend(mxShapeAws3dArrowNW, mxShape);176177mxShapeAws3dArrowNW.prototype.cst = {178 ARROW_NW : 'mxgraph.aws3d.arrowNW'179};180181/**182* Function: paintVertexShape183* 184* Paints the vertex shape.185*/186mxShapeAws3dArrowNW.prototype.paintVertexShape = function(c, x, y, w, h)187{188 c.translate(x, y);189190 c.begin();191 c.moveTo(17, 8);192 c.lineTo(21, 5.5);193 c.lineTo(0, 0);194 c.lineTo(9.7, 12.2);195 c.lineTo(13.9, 9.8);196 c.lineTo(w - 9.7, h - 3.5);197 c.arcTo(6, 3, 0, 0, 0, w - 9, h - 0.4);198 c.arcTo(5.2, 3, 0, 0, 0, w - 1, h - 1.4);199 c.arcTo(6, 2.8, 0, 0, 0, w - 3, h - 5.4);200 c.arcTo(5, 3, 0, 0, 0, w - 6.7, h - 5.2);201 c.close();202 c.fillAndStroke();203};204205mxCellRenderer.registerShape(mxShapeAws3dArrowNW.prototype.cst.ARROW_NW, mxShapeAws3dArrowNW);206207//**********************************************************************************************************************************************************208//Arrowless NE209//**********************************************************************************************************************************************************210/**211* Extends mxShape.212*/213function mxShapeAws3dArrowlessNE(bounds, fill, stroke, strokewidth)214{215 mxShape.call(this);216 this.bounds = bounds;217 this.fill = fill;218 this.stroke = stroke;219 this.strokewidth = (strokewidth != null) ? strokewidth : 1;220};221222/**223* Extends mxShape.224*/225mxUtils.extend(mxShapeAws3dArrowlessNE, mxShape);226227mxShapeAws3dArrowlessNE.prototype.cst = {228 ARROWLESS_NE : 'mxgraph.aws3d.arrowlessNE'229};230231/**232* Function: paintVertexShape233* 234* Paints the vertex shape.235*/236mxShapeAws3dArrowlessNE.prototype.paintVertexShape = function(c, x, y, w, h)237{238 c.translate(x, y);239240 c.begin();241 c.moveTo(w - 3.1, 0);242 c.lineTo(w, 1.8);243 c.lineTo(9.7, h - 3.5);244 c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);245 c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);246 c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);247 c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);248 c.close();249 c.fillAndStroke();250};251252mxCellRenderer.registerShape(mxShapeAws3dArrowlessNE.prototype.cst.ARROWLESS_NE, mxShapeAws3dArrowlessNE);253254//**********************************************************************************************************************************************************255//Dashed edge with double arrow256//**********************************************************************************************************************************************************257/**258* Extends mxShape.259*/260function mxShapeAws3dDashedEdgeDouble(bounds, fill, stroke, strokewidth)261{262 mxShape.call(this);263 this.bounds = bounds;264 this.fill = fill;265 this.stroke = stroke;266 this.strokewidth = (strokewidth != null) ? strokewidth : 1;267};268269/**270* Extends mxShape.271*/272mxUtils.extend(mxShapeAws3dDashedEdgeDouble, mxShape);273274mxShapeAws3dDashedEdgeDouble.prototype.cst = {275 DASHED_EDGE_DOUBLE : 'mxgraph.aws3d.dashedEdgeDouble'276};277278/**279* Function: paintVertexShape280* 281* Paints the vertex shape.282*/283mxShapeAws3dDashedEdgeDouble.prototype.paintVertexShape = function(c, x, y, w, h)284{285 c.translate(x, y);286 287 c.setFillColor('#2D6195');288 c.save();289 c.setStrokeColor('none');290 c.begin();291 c.moveTo(21, 5.5);292 c.lineTo(0, 0);293 c.lineTo(9.7, 12.2);294 c.fillAndStroke();295 296 c.begin();297 c.moveTo(w - 21, h - 5.5);298 c.lineTo(w, h);299 c.lineTo(w - 9.7, h - 12.2);300 c.fillAndStroke();301 302 c.restore();303 c.setStrokeColor('#2D6195');304 c.setStrokeWidth('4');305 c.setDashed('true');306 c.setLineCap('round');307 308 c.begin();309 c.moveTo(7.675, 4.425);310 c.lineTo(w - 7.675, h - 4.425);311 c.stroke();312};313314mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble.prototype.cst.DASHED_EDGE_DOUBLE, mxShapeAws3dDashedEdgeDouble);315316//**********************************************************************************************************************************************************317//Dashed edge with double arrow v2318//**********************************************************************************************************************************************************319/**320* Extends mxShape.321*/322function mxShapeAws3dDashedEdgeDouble2(bounds, fill, stroke, strokewidth)323{324 mxShape.call(this);325 this.bounds = bounds;326 this.fill = fill;327 this.stroke = stroke;328 this.strokewidth = (strokewidth != null) ? strokewidth : 1;329};330331/**332* Extends mxShape.333*/334mxUtils.extend(mxShapeAws3dDashedEdgeDouble2, mxShape);335336mxShapeAws3dDashedEdgeDouble2.prototype.cst = {337 DASHED_EDGE_DOUBLE2 : 'mxgraph.aws3d.dashedEdgeDouble2'338};339340/**341* Function: paintVertexShape342* 343* Paints the vertex shape.344*/345mxShapeAws3dDashedEdgeDouble2.prototype.paintVertexShape = function(c, x, y, w, h)346{347 c.translate(x, y);348 var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#000000');349 350 c.save();351 c.setStrokeColor('none');352 c.setFillColor(strokeColor);353 c.begin();354 c.moveTo(21, 5.5);355 c.lineTo(0, 0);356 c.lineTo(9.7, 12.2);357 c.fillAndStroke();358 359 c.begin();360 c.moveTo(w - 21, h - 5.5);361 c.lineTo(w, h);362 c.lineTo(w - 9.7, h - 12.2);363 c.fillAndStroke();364 365 c.restore();366 c.setStrokeWidth('4');367 c.setDashed('true');368 c.setLineCap('round');369 370 c.begin();371 c.moveTo(7.675, 4.425);372 c.lineTo(w - 7.675, h - 4.425);373 c.stroke();374};375376mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble2.prototype.cst.DASHED_EDGE_DOUBLE2, mxShapeAws3dDashedEdgeDouble2);377378//**********************************************************************************************************************************************************379//Dashed arrowless edge380//**********************************************************************************************************************************************************381/**382* Extends mxShape.383*/384function mxShapeAws3dDashedArrowlessEdge(bounds, fill, stroke, strokewidth)385{386 mxShape.call(this);387 this.bounds = bounds;388 this.fill = fill;389 this.stroke = stroke;390 this.strokewidth = (strokewidth != null) ? strokewidth : 1;391};392393/**394* Extends mxShape.395*/396mxUtils.extend(mxShapeAws3dDashedArrowlessEdge, mxShape);397398mxShapeAws3dDashedArrowlessEdge.prototype.cst = {399 DASHED_ARROWLESS_EDGE : 'mxgraph.aws3d.dashedArrowlessEdge'400};401402/**403* Function: paintVertexShape404* 405* Paints the vertex shape.406*/407mxShapeAws3dDashedArrowlessEdge.prototype.paintVertexShape = function(c, x, y, w, h)408{409 c.translate(x, y);410 411 c.setStrokeColor('#2D6195');412 c.setStrokeWidth('4');413 c.setDashed('true');414 c.setLineCap('round');415 416 c.begin();417 c.moveTo(0, 0);418 c.lineTo(w, h);419 c.stroke();420};421422mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge.prototype.cst.DASHED_ARROWLESS_EDGE, mxShapeAws3dDashedArrowlessEdge);423424//**********************************************************************************************************************************************************425//Dashed arrowless edge426//**********************************************************************************************************************************************************427/**428* Extends mxShape.429*/430function mxShapeAws3dDashedArrowlessEdge2(bounds, fill, stroke, strokewidth)431{432 mxShape.call(this);433 this.bounds = bounds;434 this.fill = fill;435 this.stroke = stroke;436 this.strokewidth = (strokewidth != null) ? strokewidth : 1;437};438439/**440* Extends mxShape.441*/442mxUtils.extend(mxShapeAws3dDashedArrowlessEdge2, mxShape);443444mxShapeAws3dDashedArrowlessEdge2.prototype.cst = {445 DASHED_ARROWLESS_EDGE2 : 'mxgraph.aws3d.dashedArrowlessEdge2'446};447448/**449* Function: paintVertexShape450* 451* Paints the vertex shape.452*/453mxShapeAws3dDashedArrowlessEdge2.prototype.paintVertexShape = function(c, x, y, w, h)454{455 c.translate(x, y);456 457 c.setStrokeWidth('4');458 c.setDashed('true');459 c.setLineCap('round');460 461 c.begin();462 c.moveTo(0, 0);463 c.lineTo(w, h);464 c.stroke();465};466467mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge2.prototype.cst.DASHED_ARROWLESS_EDGE2, mxShapeAws3dDashedArrowlessEdge2);468469//**********************************************************************************************************************************************************470//Dashed edge471//**********************************************************************************************************************************************************472/**473* Extends mxShape.474*/475function mxShapeAws3dDashedEdge(bounds, fill, stroke, strokewidth)476{477 mxShape.call(this);478 this.bounds = bounds;479 this.fill = fill;480 this.stroke = stroke;481 this.strokewidth = (strokewidth != null) ? strokewidth : 1;482};483484/**485* Extends mxShape.486*/487mxUtils.extend(mxShapeAws3dDashedEdge, mxShape);488489mxShapeAws3dDashedEdge.prototype.cst = {490 DASHED_EDGE : 'mxgraph.aws3d.dashedEdge'491};492493/**494* Function: paintVertexShape495* 496* Paints the vertex shape.497*/498mxShapeAws3dDashedEdge.prototype.paintVertexShape = function(c, x, y, w, h)499{500 c.translate(x, y);501 502 c.setFillColor('#2D6195');503 c.save();504 c.setStrokeColor('none');505 c.begin();506 c.moveTo(w - 21, 5.5);507 c.lineTo(w, 0);508 c.lineTo(w - 9.7, 12.2);509 c.fillAndStroke();510 511 c.restore();512 c.setStrokeColor('#2D6195');513 c.setStrokeWidth('4');514 c.setDashed('true');515 c.setLineCap('round');516 517 c.begin();518 c.moveTo(w - 7.675, 4.425);519 c.lineTo(0, h);520 c.stroke();521};522523mxCellRenderer.registerShape(mxShapeAws3dDashedEdge.prototype.cst.DASHED_EDGE, mxShapeAws3dDashedEdge);524525//**********************************************************************************************************************************************************526//Dashed edge v2527//**********************************************************************************************************************************************************528/**529* Extends mxShape.530*/531function mxShapeAws3dDashedEdge2(bounds, fill, stroke, strokewidth)532{533 mxShape.call(this);534 this.bounds = bounds;535 this.fill = fill;536 this.stroke = stroke;537 this.strokewidth = (strokewidth != null) ? strokewidth : 1;538};539540/**541* Extends mxShape.542*/543mxUtils.extend(mxShapeAws3dDashedEdge2, mxShape);544545mxShapeAws3dDashedEdge2.prototype.cst = {546 DASHED_EDGE2 : 'mxgraph.aws3d.dashedEdge2'547};548549/**550* Function: paintVertexShape551* 552* Paints the vertex shape.553*/554mxShapeAws3dDashedEdge2.prototype.paintVertexShape = function(c, x, y, w, h)555{556 c.translate(x, y);557 var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#000000');558 559 c.save();560 c.setStrokeColor('none');561 c.setFillColor(strokeColor);562 c.begin();563 c.moveTo(w - 21, 5.5);564 c.lineTo(w, 0);565 c.lineTo(w - 9.7, 12.2);566 c.fillAndStroke();567 568 c.restore();569 c.setStrokeWidth('4');570 c.setDashed('true');571 c.setLineCap('round');572 573 c.begin();574 c.moveTo(w - 7.675, 4.425);575 c.lineTo(0, h);576 c.stroke();577};578579mxCellRenderer.registerShape(mxShapeAws3dDashedEdge2.prototype.cst.DASHED_EDGE2, mxShapeAws3dDashedEdge2);580581//**********************************************************************************************************************************************************582//Flat edge583//**********************************************************************************************************************************************************584/**585* Extends mxShape.586*/587function mxShapeAws3dFlatEdge(bounds, fill, stroke, strokewidth)588{589 mxShape.call(this);590 this.bounds = bounds;591 this.fill = fill;592 this.stroke = stroke;593 this.strokewidth = (strokewidth != null) ? strokewidth : 1;594};595596/**597* Extends mxShape.598*/599mxUtils.extend(mxShapeAws3dFlatEdge, mxShape);600601mxShapeAws3dFlatEdge.prototype.cst = {602 FLAT_EDGE : 'mxgraph.aws3d.flatEdge'603};604605/**606* Function: paintVertexShape607* 608* Paints the vertex shape.609*/610mxShapeAws3dFlatEdge.prototype.paintVertexShape = function(c, x, y, w, h)611{612 c.translate(x, y);613 614 c.setFillColor('#F4B934');615 c.setStrokeColor('none');616 c.begin();617 c.moveTo(w - 46, 8.8);618 c.lineTo(w - 61.2, 0);619 c.lineTo(w, 0);620 c.lineTo(w, 35.5);621 c.lineTo(w - 15.4, 26.5);622 c.lineTo(30.7, h);623 c.lineTo(0, h - 17.7);624 c.fillAndStroke();625};626627mxCellRenderer.registerShape(mxShapeAws3dFlatEdge.prototype.cst.FLAT_EDGE, mxShapeAws3dFlatEdge);628629//**********************************************************************************************************************************************************630//Flat edge v2631//**********************************************************************************************************************************************************632/**633* Extends mxShape.634*/635function mxShapeAws3dFlatEdge2(bounds, fill, stroke, strokewidth)636{637 mxShape.call(this);638 this.bounds = bounds;639 this.fill = fill;640 this.stroke = stroke;641 this.strokewidth = (strokewidth != null) ? strokewidth : 1;642};643644/**645* Extends mxShape.646*/647mxUtils.extend(mxShapeAws3dFlatEdge2, mxShape);648649mxShapeAws3dFlatEdge2.prototype.cst = {650 FLAT_EDGE2 : 'mxgraph.aws3d.flatEdge2'651};652653/**654* Function: paintVertexShape655* 656* Paints the vertex shape.657*/658mxShapeAws3dFlatEdge2.prototype.paintVertexShape = function(c, x, y, w, h)659{660 c.translate(x, y);661 662 c.begin();663 c.moveTo(w - 46, 8.8);664 c.lineTo(w - 61.2, 0);665 c.lineTo(w, 0);666 c.lineTo(w, 35.5);667 c.lineTo(w - 15.4, 26.5);668 c.lineTo(30.7, h);669 c.lineTo(0, h - 17.7);670 c.close();671 c.fillAndStroke();672};673674mxCellRenderer.registerShape(mxShapeAws3dFlatEdge2.prototype.cst.FLAT_EDGE2, mxShapeAws3dFlatEdge2);675676//**********************************************************************************************************************************************************677//Flat double edge678//**********************************************************************************************************************************************************679/**680* Extends mxShape.681*/682function mxShapeAws3dFlatDoubleEdge(bounds, fill, stroke, strokewidth)683{684 mxShape.call(this);685 this.bounds = bounds;686 this.fill = fill;687 this.stroke = stroke;688 this.strokewidth = (strokewidth != null) ? strokewidth : 1;689};690691/**692* Extends mxShape.693*/694mxUtils.extend(mxShapeAws3dFlatDoubleEdge, mxShape);695696mxShapeAws3dFlatDoubleEdge.prototype.cst = {697 FLAT_DOUBLE_EDGE : 'mxgraph.aws3d.flatDoubleEdge'698};699700/**701* Function: paintVertexShape702* 703* Paints the vertex shape.704*/705mxShapeAws3dFlatDoubleEdge.prototype.paintVertexShape = function(c, x, y, w, h)706{707 c.translate(x, y);708 709 c.setFillColor('#F4B934');710 c.setStrokeColor('none');711712 c.begin();713 c.moveTo(15.3, 61.9);714 c.lineTo(30.8, 53.2);715 c.lineTo(15.4, 44.2);716 c.lineTo(0, 53.2);717 c.lineTo(15.4, 8.8);718 c.lineTo(92.1, 0);719 c.lineTo(76.5, 8.8);720 c.lineTo(92.1, 17.7);721 c.lineTo(107.4, 8.8);722 723 c.lineTo(w - 15.3, h - 61.9);724 c.lineTo(w - 30.8, h - 53.2);725 c.lineTo(w - 15.4, h - 44.2);726 c.lineTo(w, h - 53.2);727 c.lineTo(w - 15.4, h - 8.8);728 c.lineTo(w - 92.1, h);729 c.lineTo(w - 76.5, h - 8.8);730 c.lineTo(w - 92.1, h - 17.7);731 c.lineTo(w - 107.4, h - 8.8);732 c.fillAndStroke();733};734735mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge.prototype.cst.FLAT_DOUBLE_EDGE, mxShapeAws3dFlatDoubleEdge);736737//**********************************************************************************************************************************************************738//Flat double edge v2739//**********************************************************************************************************************************************************740/**741* Extends mxShape.742*/743function mxShapeAws3dFlatDoubleEdge2(bounds, fill, stroke, strokewidth)744{745 mxShape.call(this);746 this.bounds = bounds;747 this.fill = fill;748 this.stroke = stroke;749 this.strokewidth = (strokewidth != null) ? strokewidth : 1;750};751752/**753* Extends mxShape.754*/755mxUtils.extend(mxShapeAws3dFlatDoubleEdge2, mxShape);756757mxShapeAws3dFlatDoubleEdge2.prototype.cst = {758 FLAT_DOUBLE_EDGE2 : 'mxgraph.aws3d.flatDoubleEdge2'759};760761/**762* Function: paintVertexShape763* 764* Paints the vertex shape.765*/766mxShapeAws3dFlatDoubleEdge2.prototype.paintVertexShape = function(c, x, y, w, h)767{768 c.translate(x, y);769 770 c.begin();771 c.moveTo(15.3, 61.9);772 c.lineTo(30.8, 53.2);773 c.lineTo(15.4, 44.2);774 c.lineTo(0, 53.2);775 c.lineTo(15.4, 8.8);776 c.lineTo(92.1, 0);777 c.lineTo(76.5, 8.8);778 c.lineTo(92.1, 17.7);779 c.lineTo(107.4, 8.8);780 781 c.lineTo(w - 15.3, h - 61.9);782 c.lineTo(w - 30.8, h - 53.2);783 c.lineTo(w - 15.4, h - 44.2);784 c.lineTo(w, h - 53.2);785 c.lineTo(w - 15.4, h - 8.8);786 c.lineTo(w - 92.1, h);787 c.lineTo(w - 76.5, h - 8.8);788 c.lineTo(w - 92.1, h - 17.7);789 c.lineTo(w - 107.4, h - 8.8);790 c.close();791 c.fillAndStroke();792};793794mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge2.prototype.cst.FLAT_DOUBLE_EDGE2, mxShapeAws3dFlatDoubleEdge2);795796//**********************************************************************************************************************************************************797//AMI798//**********************************************************************************************************************************************************799/**800* Extends mxShape.801*/802function mxShapeAws3dAMI(bounds, fill, stroke, strokewidth)803{804 mxShape.call(this);805 this.bounds = bounds;806 this.fill = fill;807 this.stroke = stroke;808 this.strokewidth = (strokewidth != null) ? strokewidth : 1;809};810811/**812* Extends mxShape.813*/814mxUtils.extend(mxShapeAws3dAMI, mxShape);815816mxShapeAws3dAMI.prototype.cst = {817 AMI : 'mxgraph.aws3d.ami',818 SHADING_COLORS : 'shadingCols' 819};820821mxShapeAws3dAMI.prototype.customProperties = [822 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}823];824825/**826* Function: paintVertexShape827* 828* Paints the vertex shape.829*/830mxShapeAws3dAMI.prototype.paintVertexShape = function(c, x, y, w, h)831{832 c.translate(x, y);833834 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));835 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));836 var strokeWidth1 = strokeWidth * w / 92;837 var strokeWidth2 = strokeWidth * h / 60;838 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');839 840 strokeWidth = Math.min(strokeWidth1, strokeWidth2);841 842 c.setStrokeWidth(strokeWidth);843 c.setShadow(false);844 c.save();845 c.save();846 c.setStrokeWidth(2 * strokeWidth);847 c.setStrokeColor(strokeColor2);848 c.setLineJoin('round');849850 if (isShadow == 1)851 {852 c.setShadow(true);853 }854855 c.begin();856 c.moveTo(0, h * 0.6483);857 c.lineTo(w * 0.0684, h * 0.4133);858 c.lineTo(w * 0.5326, 0);859 c.lineTo(w * 0.6685, 0);860 c.lineTo(w * 0.9359, h * 0.2367);861 c.lineTo(w, h * 0.465);862 c.lineTo(w * 0.4, h);863 c.close();864 c.fillAndStroke();865 866 c.restore();867 c.setFillColor('#000000');868 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');869 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');870 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 871 872 c.begin();873 c.moveTo(0, h * 0.65);874 c.lineTo(w * 0.0652, h * 0.5);875 c.lineTo(w * 0.3326, h * 0.7667);876 c.lineTo(w * 0.4663, h * 0.7667);877 c.lineTo(w * 0.4, h);878 c.close();879 c.fill();880881 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 882 c.begin();883 c.moveTo(w * 0.4, h);884 c.lineTo(w * 0.4641, h * 0.77);885 c.lineTo(w * 0.9326, h * 0.355);886 c.lineTo(w * 0.9347, h * 0.24);887 c.lineTo(w, h * 0.4667);888 c.close();889 c.fill();890 891 c.restore();892 c.setLineJoin('round');893 894 c.begin();895 c.moveTo(0, h * 0.65);896 c.lineTo(w * 0.0652, h * 0.5);897 c.lineTo(w * 0.3326, h * 0.7667);898 c.lineTo(w * 0.4663, h * 0.7667);899 c.lineTo(w * 0.4, h);900 c.close();901 c.stroke();902903 c.begin();904 c.moveTo(w * 0.4, h);905 c.lineTo(w * 0.4641, h * 0.77);906 c.lineTo(w * 0.9326, h * 0.355);907 c.lineTo(w * 0.9347, h * 0.24);908 c.lineTo(w, h * 0.4667);909 c.close();910 c.stroke();911 912 c.begin();913 c.moveTo(w * 0.0652, h * 0.42);914 c.lineTo(w * 0.0652, h * 0.5);915 c.moveTo(w * 0.3337, h * 0.7667);916 c.lineTo(w * 0.4, h);917 c.moveTo(w * 0.9348, h * 0.355);918 c.lineTo(w, h * 0.4733);919 c.stroke();920 921 c.setLineJoin('miter');922 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');923 c.setFillColor(strokeColor);924 c.begin();925 c.moveTo(w * 0.1935, h * 0.42);926 c.lineTo(w * 0.5543, h * 0.0967);927 c.lineTo(w * 0.6652, h * 0.1967);928 c.lineTo(w * 0.3, h * 0.5133);929 c.close();930 c.moveTo(w * 0.2967, h * 0.4633);931 c.lineTo(w * 0.3837, h * 0.3883);932 c.lineTo(w * 0.3326, h * 0.3417);933 c.lineTo(w * 0.2467, h * 0.42);934 c.close();935 c.moveTo(w * 0.362, h * 0.32);936 c.lineTo(w * 0.412, h * 0.3633);937 c.lineTo(w * 0.5054, h * 0.2867);938 c.lineTo(w * 0.4522, h * 0.24);939 c.close();940 c.moveTo(w * 0.5293, h * 0.26);941 c.lineTo(w * 0.6109, h * 0.1933);942 c.lineTo(w * 0.5511, h * 0.145);943 c.lineTo(w * 0.4739, h * 0.2133);944 c.close();945 c.moveTo(w * 0.3528, h * 0.557);946 c.lineTo(w * 0.7137, h * 0.2337);947 c.lineTo(w * 0.8246, h * 0.3337);948 c.lineTo(w * 0.4593, h * 0.6503);949 c.close();950 c.moveTo(w * 0.4561, h * 0.6003);951 c.lineTo(w * 0.543, h * 0.5253);952 c.lineTo(w * 0.492, h * 0.4787);953 c.lineTo(w * 0.4061, h * 0.557);954 c.close();955 c.moveTo(w * 0.5213, h * 0.457);956 c.lineTo(w * 0.5713, h * 0.5003);957 c.lineTo(w * 0.6648, h * 0.4237);958 c.lineTo(w * 0.6115, h * 0.377);959 c.close();960 c.moveTo(w * 0.6887, h * 0.397);961 c.lineTo(w * 0.7702, h * 0.3303);962 c.lineTo(w * 0.7104, h * 0.282);963 c.lineTo(w * 0.6333, h * 0.3503);964 c.close();965 c.fill();966967 c.setStrokeWidth(2 * strokeWidth);968 c.setStrokeColor(strokeColor2);969 c.setLineJoin('round');970971 c.begin();972 c.moveTo(0, h * 0.6483);973 c.lineTo(w * 0.0684, h * 0.4133);974 c.lineTo(w * 0.5326, 0);975 c.lineTo(w * 0.6685, 0);976 c.lineTo(w * 0.9359, h * 0.2367);977 c.lineTo(w, h * 0.465);978 c.lineTo(w * 0.4, h);979 c.close();980 c.stroke();981};982983mxCellRenderer.registerShape(mxShapeAws3dAMI.prototype.cst.AMI, mxShapeAws3dAMI);984985//**********************************************************************************************************************************************************986//Snapshot987//**********************************************************************************************************************************************************988/**989* Extends mxShape.990*/991function mxShapeAws3dSnapshot(bounds, fill, stroke, strokewidth)992{993 mxShape.call(this);994 this.bounds = bounds;995 this.fill = fill;996 this.stroke = stroke;997 this.strokewidth = (strokewidth != null) ? strokewidth : 1;998};9991000/**1001* Extends mxShape.1002*/1003mxUtils.extend(mxShapeAws3dSnapshot, mxShape);10041005mxShapeAws3dSnapshot.prototype.cst = {1006 SNAPSHOT : 'mxgraph.aws3d.snapshot',1007 SHADING_COLORS : 'shadingCols'1008};10091010mxShapeAws3dSnapshot.prototype.customProperties = [1011 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}1012];10131014/**1015* Function: paintVertexShape1016* 1017* Paints the vertex shape.1018*/1019mxShapeAws3dSnapshot.prototype.paintVertexShape = function(c, x, y, w, h)1020{1021 c.translate(x, y);10221023 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1024 var strokeWidth1 = strokeWidth * w / 92;1025 var strokeWidth2 = strokeWidth * h / 60;1026 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1027 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');1028 1029 strokeWidth = Math.min(strokeWidth1, strokeWidth2);1030 1031 c.setStrokeWidth(strokeWidth);1032 c.setShadow(false);1033 c.save();1034 c.save();1035 c.setStrokeWidth(2 * strokeWidth);1036 c.setStrokeColor(strokeColor2);1037 c.setLineJoin('round');10381039 if(isShadow == 1)1040 {1041 c.setShadow(true);1042 }1043 1044 c.begin();1045 c.moveTo(w, h * 0.6483);1046 c.lineTo(w * 0.9316, h * 0.4133);1047 c.lineTo(w * 0.4674, 0);1048 c.lineTo(w * 0.3315, 0);1049 c.lineTo(w * 0.0641, h * 0.2367);1050 c.lineTo(0, h * 0.465);1051 c.lineTo(w * 0.6, h);1052 c.close();1053 c.fillAndStroke();1054 1055 c.restore();1056 c.setFillColor('#000000');10571058 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSnapshot.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1059 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1060 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1061 1062 c.begin();1063 c.moveTo(w, h * 0.65);1064 c.lineTo(w * 0.9348, h * 0.52);1065 c.lineTo(w * 0.6674, h * 0.7667);1066 c.lineTo(w * 0.5337, h * 0.7667);1067 c.lineTo(w * 0.6, h);1068 c.close();1069 c.fill();10701071 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1072 c.begin();1073 c.moveTo(w * 0.6, h);1074 c.lineTo(w * 0.5359, h * 0.77);1075 c.lineTo(w * 0.0674, h * 0.355);1076 c.lineTo(w * 0.0653, h * 0.24);1077 c.lineTo(0, h * 0.4667);1078 c.close();1079 c.fill();1080 1081 c.restore();1082 c.setLineJoin('round');1083 1084 c.begin();1085 c.moveTo(w, h * 0.65);1086 c.lineTo(w * 0.9348, h * 0.52);1087 c.lineTo(w * 0.6674, h * 0.7667);1088 c.lineTo(w * 0.5337, h * 0.7667);1089 c.lineTo(w * 0.6, h);1090 c.close();1091 c.stroke();10921093 c.begin();1094 c.moveTo(w * 0.6, h);1095 c.lineTo(w * 0.5359, h * 0.77);1096 c.lineTo(w * 0.0674, h * 0.355);1097 c.lineTo(w * 0.0653, h * 0.24);1098 c.lineTo(0, h * 0.4667);1099 c.close();1100 c.stroke();1101 1102 c.begin();1103 c.moveTo(w * 0.9348, h * 0.42);1104 c.lineTo(w * 0.9348, h * 0.52);1105 c.moveTo(w * 0.6663, h * 0.7667);1106 c.lineTo(w * 0.6, h);1107 c.moveTo(w * 0.0652, h * 0.355);1108 c.lineTo(0, h * 0.4733);1109 c.stroke();1110 1111 c.setStrokeWidth(2 * strokeWidth);1112 c.setStrokeColor(strokeColor2);1113 c.setLineJoin('round');11141115 c.begin();1116 c.moveTo(w, h * 0.6483);1117 c.lineTo(w * 0.9316, h * 0.4133);1118 c.lineTo(w * 0.4674, 0);1119 c.lineTo(w * 0.3315, 0);1120 c.lineTo(w * 0.0641, h * 0.2367);1121 c.lineTo(0, h * 0.465);1122 c.lineTo(w * 0.6, h);1123 c.close();1124 c.stroke();1125};11261127mxCellRenderer.registerShape(mxShapeAws3dSnapshot.prototype.cst.SNAPSHOT, mxShapeAws3dSnapshot);11281129//**********************************************************************************************************************************************************1130//Application1131//**********************************************************************************************************************************************************1132/**1133* Extends mxShape.1134*/1135function mxShapeAws3dApplication(bounds, fill, stroke, strokewidth)1136{1137 mxShape.call(this);1138 this.bounds = bounds;1139 this.fill = fill;1140 this.stroke = stroke;1141 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1142};11431144/**1145* Extends mxShape.1146*/1147mxUtils.extend(mxShapeAws3dApplication, mxShape);11481149mxShapeAws3dApplication.prototype.cst = {1150 APPLICATION : 'mxgraph.aws3d.application',1151 SHADING_COLORS : 'shadingCols'1152};11531154mxShapeAws3dApplication.prototype.customProperties = [1155 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}1156];11571158/**1159* Function: paintVertexShape1160* 1161* Paints the vertex shape.1162*/1163mxShapeAws3dApplication.prototype.paintVertexShape = function(c, x, y, w, h)1164{1165 c.translate(x, y);11661167 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1168 var strokeWidth1 = strokeWidth * w / 62;1169 var strokeWidth2 = strokeWidth * h / 68.8;1170 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1171 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');1172 1173 strokeWidth = Math.min(strokeWidth1, strokeWidth2);11741175 c.setShadow(false);1176 c.setStrokeWidth(strokeWidth);1177 c.save();1178 c.save();1179 c.setStrokeWidth(2 * strokeWidth);1180 c.setStrokeColor(strokeColor2);1181 c.setLineJoin('round');11821183 if (isShadow == 1)1184 {1185 c.setShadow(true);1186 }1187 1188 c.begin();1189 c.moveTo(0, h * 0.2544);1190 c.lineTo(w * 0.5, 0);1191 c.lineTo(w, h * 0.2544);1192 c.lineTo(w, h * 0.7485);1193 c.lineTo(w * 0.5, h);1194 c.lineTo(0, h * 0.7485);1195 c.close();1196 c.fillAndStroke();1197 1198 c.restore();1199 c.setFillColor('#000000');1200 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1201 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1202 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1203 1204 c.begin();1205 c.moveTo(0, h * 0.2544);1206 c.lineTo(w * 0.5, h * 0.5015);1207 c.lineTo(w * 0.5, h);1208 c.lineTo(0, h * 0.7485);1209 c.close();1210 c.fill();12111212 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1213 c.begin();1214 c.moveTo(w * 0.5, h * 0.5015);1215 c.lineTo(w, h * 0.2544);1216 c.lineTo(w, h * 0.7485);1217 c.lineTo(w * 0.5, h);1218 c.close();1219 c.fill();1220 1221 c.restore();1222 c.setLineJoin('round');1223 1224 c.begin();1225 c.moveTo(0, h * 0.2544);1226 c.lineTo(w * 0.5, h * 0.5015);1227 c.lineTo(w * 0.5, h);1228 c.lineTo(0, h * 0.7485);1229 c.close();1230 c.stroke();12311232 c.begin();1233 c.moveTo(w * 0.5, h * 0.5015);1234 c.lineTo(w, h * 0.2544);1235 c.lineTo(w, h * 0.7485);1236 c.lineTo(w * 0.5, h);1237 c.close();1238 c.stroke();1239 1240 c.setLineJoin('miter');1241 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1242 c.setFillColor(strokeColor);1243 c.begin();1244 c.moveTo(w * 0.6694, h * 0.0872);1245 c.lineTo(w * 0.7629, h * 0.1337);1246 c.lineTo(w * 0.2661, h * 0.3882);1247 c.lineTo(w * 0.2661, h * 0.5407);1248 c.lineTo(w * 0.1742, h * 0.4953);1249 c.lineTo(w * 0.1742, h * 0.3459);1250 c.close();1251 c.moveTo(w * 0.8629, h * 0.1846);1252 c.lineTo(w * 0.379, h * 0.4331);1253 c.lineTo(w * 0.379, h * 0.5945);1254 c.lineTo(w * 0.2855, h * 0.5494);1255 c.lineTo(w * 0.2855, h * 0.3953);1256 c.lineTo(w * 0.7839, h * 0.1439);1257 c.close();1258 c.fill();12591260 c.setStrokeWidth(2 * strokeWidth);1261 c.setStrokeColor(strokeColor2);1262 c.setLineJoin('round');12631264 c.begin();1265 c.moveTo(0, h * 0.2544);1266 c.lineTo(w * 0.5, 0);1267 c.lineTo(w, h * 0.2544);1268 c.lineTo(w, h * 0.7485);1269 c.lineTo(w * 0.5, h);1270 c.lineTo(0, h * 0.7485);1271 c.close();1272 c.stroke();1273};12741275mxCellRenderer.registerShape(mxShapeAws3dApplication.prototype.cst.APPLICATION, mxShapeAws3dApplication);12761277//**********************************************************************************************************************************************************1278//Application Server1279//**********************************************************************************************************************************************************1280/**1281* Extends mxShape.1282*/1283function mxShapeAws3dApplicationServer(bounds, fill, stroke, strokewidth)1284{1285 mxShape.call(this);1286 this.bounds = bounds;1287 this.fill = fill;1288 this.stroke = stroke;1289 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1290};12911292/**1293* Extends mxShape.1294*/1295mxUtils.extend(mxShapeAws3dApplicationServer, mxShape);12961297mxShapeAws3dApplicationServer.prototype.cst = {1298 APPLICATION_SERVER : 'mxgraph.aws3d.application_server',1299 SHADING_COLORS : 'shadingCols'1300};13011302mxShapeAws3dApplicationServer.prototype.customProperties = [1303 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}1304];13051306/**1307* Function: paintVertexShape1308* 1309* Paints the vertex shape.1310*/1311mxShapeAws3dApplicationServer.prototype.paintVertexShape = function(c, x, y, w, h)1312{1313 c.translate(x, y);1314 1315 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1316 var strokeWidth1 = strokeWidth * w / 123;1317 var strokeWidth2 = strokeWidth * h / 124;1318 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');1319 1320 strokeWidth = Math.min(strokeWidth1, strokeWidth2);13211322 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);1323 c.setShadow(false);1324 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);1325};13261327mxShapeAws3dApplicationServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)1328{1329 c.setStrokeWidth(strokeWidth);1330 c.save();1331 c.save();1332 c.setStrokeWidth(2 * strokeWidth);1333 c.setStrokeColor(strokeColor2);1334 c.setLineJoin('round');13351336 c.begin();1337 c.moveTo(0, h * 0.7236);1338 c.lineTo(0, h * 0.2863);1339 c.lineTo(w * 0.5, 0);1340 c.lineTo(w, h * 0.2863);1341 c.lineTo(w, h * 0.7236);1342 c.lineTo(w * 0.5, h);1343 c.close();1344 c.fillAndStroke();1345};13461347mxShapeAws3dApplicationServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)1348{1349 c.restore();1350 c.setShadow(false);1351 c.setFillColor('#000000');1352 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplicationServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1353 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1354 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1355 1356 c.begin();1357 c.moveTo(0, h * 0.2863);1358 c.lineTo(w * 0.5, h * 0.5726);1359 c.lineTo(w * 0.5, h);1360 c.lineTo(0, h * 0.7177);1361 c.close();1362 c.fill();13631364 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1365 c.begin();1366 c.moveTo(w, h * 0.2863);1367 c.lineTo(w * 0.5, h * 0.5726);1368 c.lineTo(w * 0.5, h);1369 c.lineTo(w, h * 0.7177);1370 c.close();1371 c.fill();1372 1373 c.restore();1374 c.setShadow(false);1375 c.setLineJoin('round');1376 1377 c.begin();1378 c.moveTo(0, h * 0.2863);1379 c.lineTo(w * 0.5, h * 0.5726);1380 c.lineTo(w * 0.5, h);1381 c.lineTo(0, h * 0.7177);1382 c.close();1383 c.stroke();13841385 c.begin();1386 c.moveTo(w, h * 0.2863);1387 c.lineTo(w * 0.5, h * 0.5726);1388 c.lineTo(w * 0.5, h);1389 c.lineTo(w, h * 0.7177);1390 c.close();1391 c.stroke();1392 1393 c.setLineJoin('miter');1394 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1395 c.setFillColor(strokeColor);1396 c.begin();1397 c.moveTo(w * 0.374, h * 0.4435);1398 c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.374, h * 0.4153);1399 c.lineTo(w * 0.4797, h * 0.3548);1400 c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.5203, h * 0.3548);1401 c.lineTo(w * 0.626, h * 0.4153);1402 c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.626, h * 0.4411);1403 c.lineTo(w * 0.5203, h * 0.5016);1404 c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.4797, h * 0.5016);1405 c.close();1406 c.fill();14071408 c.setStrokeWidth(2 * strokeWidth);1409 c.setStrokeColor(strokeColor2);1410 c.setLineJoin('round');14111412 c.begin();1413 c.moveTo(0, h * 0.7236);1414 c.lineTo(0, h * 0.2863);1415 c.lineTo(w * 0.5, 0);1416 c.lineTo(w, h * 0.2863);1417 c.lineTo(w, h * 0.7236);1418 c.lineTo(w * 0.5, h);1419 c.close();1420 c.stroke();1421};14221423mxCellRenderer.registerShape(mxShapeAws3dApplicationServer.prototype.cst.APPLICATION_SERVER, mxShapeAws3dApplicationServer);14241425//**********************************************************************************************************************************************************1426//CloudFront1427//**********************************************************************************************************************************************************1428/**1429* Extends mxShape.1430*/1431function mxShapeAws3dCloudFront(bounds, fill, stroke, strokewidth)1432{1433 mxShape.call(this);1434 this.bounds = bounds;1435 this.fill = fill;1436 this.stroke = stroke;1437 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1438};14391440/**1441* Extends mxShape.1442*/1443mxUtils.extend(mxShapeAws3dCloudFront, mxShape);14441445mxShapeAws3dCloudFront.prototype.cst = {1446 CLOUDFRONT : 'mxgraph.aws3d.cloudfront',1447 SHADING_COLORS : 'shadingCols'1448};14491450mxShapeAws3dCloudFront.prototype.customProperties = [1451 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}1452];14531454/**1455* Function: paintVertexShape1456* 1457* Paints the vertex shape.1458*/1459mxShapeAws3dCloudFront.prototype.paintVertexShape = function(c, x, y, w, h)1460{1461 c.translate(x, y);14621463 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1464 var strokeWidth1 = strokeWidth * w / 103.8;1465 var strokeWidth2 = strokeWidth * h / 169.8;1466 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1467 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');1468 1469 strokeWidth = Math.min(strokeWidth1, strokeWidth2);14701471 c.setShadow(false);1472 c.setStrokeWidth(strokeWidth);1473 c.save();1474 c.save();1475 c.setStrokeWidth(2 * strokeWidth);1476 c.setStrokeColor(strokeColor2);1477 c.setLineJoin('round');14781479 if (isShadow == 1)1480 {1481 c.setShadow(true);1482 }1483 1484 c.begin();1485 c.moveTo(0, h * 0.7915);1486 c.lineTo(0, h * 0.7491);1487 c.lineTo(w * 0.0588, h * 0.7279);1488 c.lineTo(w * 0.0588, h * 0.1036);1489 c.lineTo(w * 0.3526, 0);1490 c.lineTo(w * 0.9422, h * 0.2073);1491 c.lineTo(w * 0.9422, h * 0.8316);1492 c.lineTo(w, h * 0.8539);1493 c.lineTo(w, h * 0.894);1494 c.lineTo(w * 0.7013, h);1495 c.lineTo(w * 0.5877, h);1496 c.close();1497 c.fillAndStroke();1498 1499 c.restore();1500 c.setFillColor('#000000');1501 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCloudFront.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1502 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1503 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1504 1505 c.begin();1506 c.moveTo(w * 0.0588, h * 0.106);1507 c.lineTo(w * 0.6474, h * 0.3121);1508 c.lineTo(w * 0.6474, h * 0.9352);1509 c.lineTo(w * 0.7052, h);1510 c.lineTo(w * 0.5915, h);1511 c.lineTo(0, h * 0.7915);1512 c.lineTo(0, h * 0.7491);1513 c.lineTo(w * 0.0588, h * 0.7279);1514 c.close();1515 c.fill();15161517 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1518 c.begin();1519 c.moveTo(w * 0.6474, h * 0.3121);1520 c.lineTo(w * 0.9422, h * 0.2073);1521 c.lineTo(w * 0.9422, h * 0.8363);1522 c.lineTo(w, h * 0.8539);1523 c.lineTo(w, h * 0.894);1524 c.lineTo(w * 0.7013, h);1525 c.lineTo(w * 0.6474, h * 0.9305);1526 c.close();1527 c.fill();1528 1529 c.restore();1530 c.setLineJoin('round');1531 c.begin();1532 c.moveTo(0, h * 0.7915);1533 c.lineTo(w * 0.0559, h * 0.7291);1534 c.lineTo(w * 0.6474, h * 0.9364);1535 c.lineTo(w * 0.5896, h);1536 c.moveTo(w * 0.6493, h * 0.9364);1537 c.lineTo(w * 0.9412, h * 0.8333);1538 c.lineTo(w, h * 0.894);1539 c.stroke();15401541 c.begin();1542 c.moveTo(w * 0.0588, h * 0.106);1543 c.lineTo(w * 0.6474, h * 0.3121);1544 c.lineTo(w * 0.6474, h * 0.9352);1545 c.lineTo(w * 0.7052, h);1546 c.lineTo(w * 0.5915, h);1547 c.lineTo(0, h * 0.7915);1548 c.lineTo(0, h * 0.7491);1549 c.lineTo(w * 0.0588, h * 0.7279);1550 c.close();1551 c.stroke();15521553 c.begin();1554 c.moveTo(w * 0.6474, h * 0.3121);1555 c.lineTo(w * 0.9422, h * 0.2073);1556 c.lineTo(w * 0.9422, h * 0.8363);1557 c.lineTo(w, h * 0.8539);1558 c.lineTo(w, h * 0.894);1559 c.lineTo(w * 0.7013, h);1560 c.lineTo(w * 0.6474, h * 0.9305);1561 c.close();1562 c.stroke();15631564 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1565 c.setFillColor(strokeColor);1566 1567 c.begin();1568 c.moveTo(w * 0.3333, h * 0.6643);1569 c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.2351, h * 0.6042);1570 c.arcTo(w * 0.4528, h * 0.2768, 0, 0, 1, w * 0.1724, h * 0.523);1571 c.lineTo(w * 0.2428, h * 0.5677);1572 c.lineTo(w * 0.2427, h * 0.5895);1573 c.lineTo(w * 0.2765, h * 0.5995);1574 c.close();1575 c.moveTo(w * 0.1599, h * 0.4935);1576 c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.1522, h * 0.4146);1577 c.arcTo(w * 0.1156, h * 0.0883, 0, 0, 1, w * 0.2071, h * 0.3486);1578 c.lineTo(w * 0.2013, h * 0.4187);1579 c.lineTo(w * 0.1859, h * 0.4146);1580 c.lineTo(w * 0.1859, h * 0.4464);1581 c.lineTo(w * 0.1907, h * 0.4493);1582 c.close();1583 c.moveTo(w * 0.2235, h * 0.3445);1584 c.arcTo(w * 0.1927, h * 0.1767, 0, 0, 1, w * 0.368, h * 0.361);1585 c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.468, h * 0.4299);1586 c.lineTo(w * 0.368, h * 0.4034);1587 c.lineTo(w * 0.368, h * 0.394);1588 c.lineTo(w * 0.3256, h * 0.3799);1589 c.lineTo(w * 0.3256, h * 0.3887);1590 c.close();1591 c.moveTo(w * 0.4855, h * 0.4499);1592 c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5337, h * 0.5395);1593 c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5328, h * 0.6302);1594 c.lineTo(w * 0.4952, h * 0.5589);1595 c.lineTo(w * 0.5019, h * 0.5595);1596 c.lineTo(w * 0.5019, h * 0.5265);1597 c.lineTo(w * 0.4855, h * 0.5194);1598 c.close();1599 c.moveTo(w * 0.5241, h * 0.6455);1600 c.arcTo(w * 0.0963, h * 0.0589, 0, 0, 1, w * 0.4663, h * 0.682);1601 c.arcTo(w * 0.1445, h * 0.0883, 0, 0, 1, w * 0.3642, h * 0.6761);1602 c.lineTo(w * 0.4239, h * 0.6525);1603 c.lineTo(w * 0.4566, h * 0.6643);1604 c.lineTo(w * 0.4566, h * 0.6413);1605 c.close();1606 c.moveTo(w * 0.3507, h * 0.6667);1607 c.lineTo(w * 0.2871, h * 0.5919);1608 c.lineTo(w * 0.4123, h * 0.6366);1609 c.close();1610 c.moveTo(w * 0.2563, h * 0.5595);1611 c.lineTo(w * 0.1753, h * 0.5088);1612 c.lineTo(w * 0.2052, h * 0.4594);1613 c.close();1614 c.moveTo(w * 0.2139, h * 0.4229);1615 c.lineTo(w * 0.2197, h * 0.3528);1616 c.lineTo(w * 0.3256, h * 0.4028);1617 c.lineTo(w * 0.2283, h * 0.4252);1618 c.close();1619 c.moveTo(w * 0.2264, h * 0.4417);1620 c.lineTo(w * 0.3218, h * 0.4146);1621 c.lineTo(w * 0.3353, h * 0.4181);1622 c.lineTo(w * 0.3353, h * 0.4971);1623 c.lineTo(w * 0.3208, h * 0.4912);1624 c.lineTo(w * 0.3208, h * 0.4965);1625 c.lineTo(w * 0.2264, h * 0.4482);1626 c.close();1627 c.moveTo(w * 0.2697, h * 0.5618);1628 c.lineTo(w * 0.2245, h * 0.4635);1629 c.lineTo(w * 0.2331, h * 0.4588);1630 c.lineTo(w * 0.3256, h * 0.5112);1631 c.lineTo(w * 0.3237, h * 0.5241);1632 c.close();1633 c.moveTo(w * 0.2852, h * 0.576);1634 c.lineTo(w * 0.2852, h * 0.5654);1635 c.lineTo(w * 0.3391, h * 0.53);1636 c.lineTo(w * 0.3516, h * 0.5347);1637 c.lineTo(w * 0.4133, h * 0.6213);1638 c.close();1639 c.moveTo(w * 0.368, h * 0.5141);1640 c.lineTo(w * 0.368, h * 0.5088);1641 c.lineTo(w * 0.3526, h * 0.5029);1642 c.lineTo(w * 0.3526, h * 0.4234);1643 c.lineTo(w * 0.3622, h * 0.4276);1644 c.lineTo(w * 0.4547, h * 0.5177);1645 c.lineTo(w * 0.4557, h * 0.5277);1646 c.close();1647 c.moveTo(w * 0.3671, h * 0.417);1648 c.lineTo(w * 0.4692, h * 0.4411);1649 c.lineTo(w * 0.4721, h * 0.52);1650 c.close();1651 c.moveTo(w * 0.368, h * 0.5253);1652 c.lineTo(w * 0.4566, h * 0.5359);1653 c.lineTo(w * 0.4566, h * 0.5453);1654 c.lineTo(w * 0.4663, h * 0.5465);1655 c.lineTo(w * 0.4335, h * 0.6201);1656 c.lineTo(w * 0.422, h * 0.616);1657 c.lineTo(w * 0.368, h * 0.5389);1658 c.close();1659 c.moveTo(w * 0.4798, h * 0.5583);1660 c.lineTo(w * 0.5183, h * 0.629);1661 c.lineTo(w * 0.4557, h * 0.6313);1662 c.lineTo(w * 0.4557, h * 0.6237);1663 c.lineTo(w * 0.447, h * 0.6225);1664 c.close();1665 c.fill();16661667 c.setStrokeWidth(2 * strokeWidth);1668 c.setStrokeColor(strokeColor2);1669 c.setLineJoin('round');16701671 c.begin();1672 c.moveTo(0, h * 0.7915);1673 c.lineTo(0, h * 0.7491);1674 c.lineTo(w * 0.0588, h * 0.7279);1675 c.lineTo(w * 0.0588, h * 0.1036);1676 c.lineTo(w * 0.3526, 0);1677 c.lineTo(w * 0.9422, h * 0.2073);1678 c.lineTo(w * 0.9422, h * 0.8316);1679 c.lineTo(w, h * 0.8539);1680 c.lineTo(w, h * 0.894);1681 c.lineTo(w * 0.7013, h);1682 c.lineTo(w * 0.5877, h);1683 c.close();1684 c.stroke();1685};16861687mxCellRenderer.registerShape(mxShapeAws3dCloudFront.prototype.cst.CLOUDFRONT, mxShapeAws3dCloudFront);16881689//**********************************************************************************************************************************************************1690//Data Center1691//**********************************************************************************************************************************************************1692/**1693* Extends mxShape.1694*/1695function mxShapeAws3dDataCenter(bounds, fill, stroke, strokewidth)1696{1697 mxShape.call(this);1698 this.bounds = bounds;1699 this.fill = fill;1700 this.stroke = stroke;1701 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1702};17031704/**1705* Extends mxShape.1706*/1707mxUtils.extend(mxShapeAws3dDataCenter, mxShape);17081709mxShapeAws3dDataCenter.prototype.cst = {1710 DATA_CENTER : 'mxgraph.aws3d.dataCenter',1711 SHADING_COLORS : 'shadingCols'1712};17131714mxShapeAws3dDataCenter.prototype.customProperties = [1715 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}1716];17171718/**1719* Function: paintVertexShape1720* 1721* Paints the vertex shape.1722*/1723mxShapeAws3dDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)1724{1725 c.translate(x, y);17261727 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1728 var strokeWidth1 = strokeWidth * w / 123;1729 var strokeWidth2 = strokeWidth * h / 142;1730 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1731 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');1732 1733 strokeWidth = Math.min(strokeWidth1, strokeWidth2);17341735 c.setShadow(false);1736 c.setStrokeWidth(strokeWidth);1737 c.save();1738 c.save();1739 c.setStrokeWidth(2 * strokeWidth);1740 c.setStrokeColor(strokeColor2);1741 c.setLineJoin('round');17421743 if (isShadow == 1)1744 {1745 c.setShadow(true);1746 }1747 1748 c.begin();1749 c.moveTo(0, h * 0.7465);1750 c.lineTo(0, h * 0.25);1751 c.lineTo(w * 0.5, 0);1752 c.lineTo(w, h * 0.25);1753 c.lineTo(w, h * 0.7465);1754 c.lineTo(w * 0.5, h);1755 c.close();1756 c.fillAndStroke();1757 1758 c.restore();1759 c.setFillColor('#000000');1760 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataCenter.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1761 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1762 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1763 1764 c.begin();1765 c.moveTo(0, h * 0.7465);1766 c.lineTo(0, h * 0.25);1767 c.lineTo(w * 0.5, h * 0.5);1768 c.lineTo(w * 0.5, h);1769 c.close();1770 c.fill();17711772 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1773 c.begin();1774 c.moveTo(w, h * 0.7465);1775 c.lineTo(w, h * 0.25);1776 c.lineTo(w * 0.5, h * 0.5);1777 c.lineTo(w * 0.5, h);1778 c.close();1779 c.fill();1780 1781 c.restore();1782 c.setLineJoin('round');1783 c.begin();1784 c.moveTo(0, h * 0.7465);1785 c.lineTo(0, h * 0.25);1786 c.lineTo(w * 0.5, h * 0.5);1787 c.lineTo(w * 0.5, h);1788 c.close();1789 c.stroke();17901791 c.begin();1792 c.moveTo(w, h * 0.7465);1793 c.lineTo(w, h * 0.25);1794 c.lineTo(w * 0.5, h * 0.5);1795 c.lineTo(w * 0.5, h);1796 c.close();1797 c.stroke();17981799 c.setLineCap('round');1800 c.setStrokeWidth(3 * strokeWidth);18011802 c.begin();1803 c.moveTo(w * 0.0894, h * 0.3838);1804 c.lineTo(w * 0.4187, h * 0.5493);1805 c.moveTo(w * 0.0894, h * 0.4331);1806 c.lineTo(w * 0.4187, h * 0.5986);1807 c.moveTo(w * 0.0894, h * 0.4824);1808 c.lineTo(w * 0.4187, h * 0.6479);1809 c.moveTo(w * 0.5854, h * 0.5493);1810 c.lineTo(w * 0.9146, h * 0.3838);1811 c.moveTo(w * 0.5854, h * 0.5986);1812 c.lineTo(w * 0.9146, h * 0.4331);1813 c.moveTo(w * 0.5854, h * 0.6479);1814 c.lineTo(w * 0.9146, h * 0.4824);1815 c.stroke();18161817 c.setStrokeWidth(2 * strokeWidth);1818 c.setStrokeColor(strokeColor2);1819 c.setLineJoin('round');18201821 c.begin();1822 c.moveTo(0, h * 0.7465);1823 c.lineTo(0, h * 0.25);1824 c.lineTo(w * 0.5, 0);1825 c.lineTo(w, h * 0.25);1826 c.lineTo(w, h * 0.7465);1827 c.lineTo(w * 0.5, h);1828 c.close();1829 c.stroke();1830};18311832mxCellRenderer.registerShape(mxShapeAws3dDataCenter.prototype.cst.DATA_CENTER, mxShapeAws3dDataCenter);18331834//**********************************************************************************************************************************************************1835//Data Server1836//**********************************************************************************************************************************************************1837/**1838* Extends mxShape.1839*/1840function mxShapeAws3dDataServer(bounds, fill, stroke, strokewidth)1841{1842 mxShape.call(this);1843 this.bounds = bounds;1844 this.fill = fill;1845 this.stroke = stroke;1846 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1847};18481849/**1850* Extends mxShape.1851*/1852mxUtils.extend(mxShapeAws3dDataServer, mxShape);18531854mxShapeAws3dDataServer.prototype.cst = {1855 DATA_SERVER : 'mxgraph.aws3d.dataServer',1856 SHADING_COLORS : 'shadingCols'1857};18581859mxShapeAws3dDataServer.prototype.customProperties = [1860 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}1861];18621863/**1864* Function: paintVertexShape1865* 1866* Paints the vertex shape.1867*/1868mxShapeAws3dDataServer.prototype.paintVertexShape = function(c, x, y, w, h)1869{1870 c.translate(x, y);18711872 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1873 var strokeWidth1 = strokeWidth * w / 123;1874 var strokeWidth2 = strokeWidth * h / 106;1875 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1876 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');1877 1878 strokeWidth = Math.min(strokeWidth1, strokeWidth2);18791880 c.setShadow(false);1881 c.setStrokeWidth(strokeWidth);1882 c.save();1883 c.save();1884 c.setStrokeWidth(2 * strokeWidth);1885 c.setStrokeColor(strokeColor2);1886 c.setLineJoin('round');18871888 if (isShadow == 1)1889 {1890 c.setShadow(true);1891 }1892 1893 c.begin();1894 c.moveTo(0, h * 0.6651);1895 c.lineTo(0, h * 0.3349);1896 c.lineTo(w * 0.5, 0);1897 c.lineTo(w, h * 0.3349);1898 c.lineTo(w, h * 0.6651);1899 c.lineTo(w * 0.5, h);1900 c.close();1901 c.fillAndStroke();1902 1903 c.restore();1904 c.setFillColor('#000000');1905 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1906 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1907 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1908 1909 c.begin();1910 c.moveTo(0, h * 0.6651);1911 c.lineTo(0, h * 0.3349);1912 c.lineTo(w * 0.5, h * 0.6698);1913 c.lineTo(w * 0.5, h);1914 c.close();1915 c.fill();19161917 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1918 c.begin();1919 c.moveTo(w, h * 0.6651);1920 c.lineTo(w, h * 0.3349);1921 c.lineTo(w * 0.5, h * 0.6698);1922 c.lineTo(w * 0.5, h);1923 c.close();1924 c.fill();1925 1926 c.restore();1927 c.setLineJoin('round');1928 c.begin();1929 c.moveTo(0, h * 0.6651);1930 c.lineTo(0, h * 0.3349);1931 c.lineTo(w * 0.5, h * 0.6698);1932 c.lineTo(w * 0.5, h);1933 c.close();1934 c.stroke();19351936 c.begin();1937 c.moveTo(w, h * 0.6651);1938 c.lineTo(w, h * 0.3349);1939 c.lineTo(w * 0.5, h * 0.6698);1940 c.lineTo(w * 0.5, h);1941 c.close();1942 c.stroke();19431944 c.setLineCap('round');1945 c.setStrokeWidth(3 * strokeWidth);19461947 c.begin();1948 c.moveTo(w * 0.0878, h * 0.4858);1949 c.lineTo(w * 0.4187, h * 0.7094);1950 c.moveTo(w * 0.587, h * 0.7094);1951 c.lineTo(w * 0.9187, h * 0.4858);1952 c.stroke();19531954 c.setStrokeWidth(2 * strokeWidth);1955 c.setStrokeColor(strokeColor2);1956 c.setLineJoin('round');19571958 c.begin();1959 c.moveTo(0, h * 0.6651);1960 c.lineTo(0, h * 0.3349);1961 c.lineTo(w * 0.5, 0);1962 c.lineTo(w, h * 0.3349);1963 c.lineTo(w, h * 0.6651);1964 c.lineTo(w * 0.5, h);1965 c.close();1966 c.stroke();1967};19681969mxCellRenderer.registerShape(mxShapeAws3dDataServer.prototype.cst.DATA_SERVER, mxShapeAws3dDataServer);19701971//**********************************************************************************************************************************************************1972//Elastic Load Balancing1973//**********************************************************************************************************************************************************1974/**1975* Extends mxShape.1976*/1977function mxShapeAws3dElasticLoadBalancing(bounds, fill, stroke, strokewidth)1978{1979 mxShape.call(this);1980 this.bounds = bounds;1981 this.fill = fill;1982 this.stroke = stroke;1983 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1984};19851986/**1987* Extends mxShape.1988*/1989mxUtils.extend(mxShapeAws3dElasticLoadBalancing, mxShape);19901991mxShapeAws3dElasticLoadBalancing.prototype.cst = {1992 ELASTIC_LOAD_BALANCING : 'mxgraph.aws3d.elasticLoadBalancing',1993 SHADING_COLORS : 'shadingCols'1994};19951996mxShapeAws3dElasticLoadBalancing.prototype.customProperties = [1997 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}1998];19992000/**2001* Function: paintVertexShape2002* 2003* Paints the vertex shape.2004*/2005mxShapeAws3dElasticLoadBalancing.prototype.paintVertexShape = function(c, x, y, w, h)2006{2007 c.translate(x, y);20082009 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2010 var strokeWidth1 = strokeWidth * w / 92;2011 var strokeWidth2 = strokeWidth * h / 88.17;2012 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');2013 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));2014 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');2015 2016 strokeWidth = Math.min(strokeWidth1, strokeWidth2);20172018 c.setShadow(false);2019 c.setStrokeWidth(strokeWidth);2020 c.save();2021 c.save();2022 c.save();2023 c.save();2024 c.setStrokeWidth(2 * strokeWidth);2025 c.setStrokeColor(strokeColor2);2026 c.setLineJoin('round');20272028 if (isShadow == 1)2029 {2030 c.setShadow(true);2031 }2032 2033 c.begin();2034 c.moveTo(0, h * 0.7996);2035 c.lineTo(0, h * 0.1985);2036 c.lineTo(w * 0.3315, 0);2037 c.lineTo(w * 0.6685, 0);2038 c.lineTo(w, h * 0.1985);2039 c.lineTo(w, h * 0.7996);2040 c.lineTo(w * 0.6685, h);2041 c.lineTo(w * 0.3315, h);2042 c.close();2043 c.fillAndStroke();2044 2045 c.restore();2046 c.setFillColor('#000000');2047 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticLoadBalancing.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');2048 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');2049 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 2050 2051 c.begin();2052 c.moveTo(0, h * 0.4026);2053 c.lineTo(w * 0.3315, h * 0.6011);2054 c.lineTo(w * 0.6685, h * 0.6011);2055 c.lineTo(w * 0.6685, h);2056 c.lineTo(w * 0.3315, h);2057 c.lineTo(0, h * 0.7996);2058 c.close();2059 c.fill();20602061 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 2062 c.begin();2063 c.moveTo(w * 0.6685, h * 0.6011);2064 c.lineTo(w, h * 0.4026);2065 c.lineTo(w, h * 0.7996);2066 c.lineTo(w * 0.6685, h);2067 c.close();2068 c.fill();2069 2070 c.restore();2071 c.setLineJoin('round');2072 c.begin();2073 c.moveTo(0, h * 0.4026);2074 c.lineTo(w * 0.3315, h * 0.6011);2075 c.lineTo(w * 0.6685, h * 0.6011);2076 c.lineTo(w * 0.6685, h);2077 c.lineTo(w * 0.3315, h);2078 c.lineTo(0, h * 0.7996);2079 c.close();2080 c.stroke();20812082 c.begin();2083 c.moveTo(w * 0.6685, h * 0.6011);2084 c.lineTo(w, h * 0.4026);2085 c.lineTo(w, h * 0.7996);2086 c.lineTo(w * 0.6685, h);2087 c.close();2088 c.moveTo(w * 0.3315, h * 0.6011);2089 c.lineTo(w * 0.3315, h);2090 c.stroke();20912092 c.restore();2093 c.setFillColor(strokeColor);2094 c.begin();2095 c.moveTo(w * 0.337, h * 0.1395);2096 c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.5, h * 0.1191);2097 c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.6739, h * 0.1645);2098 c.arcTo(w * 0.3261, h * 0.2155, 0, 0, 1, w * 0.8152, h * 0.3176);2099 c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.75, h * 0.4367);2100 c.arcTo(w * 0.3261, h * 0.3403, 0, 0, 1, w * 0.6033, h * 0.4854);2101 c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.4348, h * 0.4741);2102 c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2848, h * 0.4094);2103 c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2065, h * 0.3062);2104 c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.2446, h * 0.1928);2105 c.arcTo(w * 0.2717, h * 0.1701, 0, 0, 1, w * 0.337, h * 0.1395);2106 c.fill();21072108 c.restore();2109 c.begin();2110 c.moveTo(w * 0.2826, h * 0.372);2111 c.lineTo(w * 0.362, h * 0.3232);2112 c.lineTo(w * 0.4054, h * 0.3482);2113 c.lineTo(w * 0.4457, h * 0.2654);2114 c.lineTo(w * 0.4185, h * 0.2643);2115 c.lineTo(w * 0.4728, h * 0.2132);2116 c.lineTo(w * 0.4348, h * 0.1928);2117 c.lineTo(w * 0.5141, h * 0.144);2118 c.lineTo(w * 0.5837, h * 0.1883);2119 c.lineTo(w * 0.5043, h * 0.2348);2120 c.lineTo(w * 0.4848, h * 0.2223);2121 c.lineTo(w * 0.4967, h * 0.2688);2122 c.lineTo(w * 0.463, h * 0.2665);2123 c.lineTo(w * 0.4304, h * 0.3346);2124 c.lineTo(w * 0.4946, h * 0.2949);2125 c.lineTo(w * 0.4761, h * 0.2858);2126 c.lineTo(w * 0.5511, h * 0.2631);2127 c.lineTo(w * 0.5261, h * 0.2472);2128 c.lineTo(w * 0.6043, h * 0.1996);2129 c.lineTo(w * 0.6761, h * 0.2404);2130 c.lineTo(w * 0.5978, h * 0.2892);2131 c.lineTo(w * 0.5652, h * 0.2699);2132 c.lineTo(w * 0.5293, h * 0.3198);2133 c.lineTo(w * 0.5087, h * 0.3051);2134 c.lineTo(w * 0.4543, h * 0.3391);2135 c.lineTo(w * 0.563, h * 0.3221);2136 c.lineTo(w * 0.5598, h * 0.3017);2137 c.lineTo(w * 0.6326, h * 0.3096);2138 c.lineTo(w * 0.6163, h * 0.2994);2139 c.lineTo(w * 0.6957, h * 0.2529);2140 c.lineTo(w * 0.7674, h * 0.2938);2141 c.lineTo(w * 0.687, h * 0.3425);2142 c.lineTo(w * 0.6489, h * 0.321);2143 c.lineTo(w * 0.5707, h * 0.3539);2144 c.lineTo(w * 0.5674, h * 0.3369);2145 c.lineTo(w * 0.4293, h * 0.3618);2146 c.lineTo(w * 0.4641, h * 0.3834);2147 c.lineTo(w * 0.3859, h * 0.4299);2148 c.close();2149 c.fill();2150 2151 c.setStrokeWidth(2 * strokeWidth);2152 c.setStrokeColor(strokeColor2);2153 c.setLineJoin('round');21542155 c.begin();2156 c.moveTo(0, h * 0.7996);2157 c.lineTo(0, h * 0.1985);2158 c.lineTo(w * 0.3315, 0);2159 c.lineTo(w * 0.6685, 0);2160 c.lineTo(w, h * 0.1985);2161 c.lineTo(w, h * 0.7996);2162 c.lineTo(w * 0.6685, h);2163 c.lineTo(w * 0.3315, h);2164 c.close();2165 c.stroke();2166};21672168mxCellRenderer.registerShape(mxShapeAws3dElasticLoadBalancing.prototype.cst.ELASTIC_LOAD_BALANCING, mxShapeAws3dElasticLoadBalancing);21692170//**********************************************************************************************************************************************************2171//Instance2172//**********************************************************************************************************************************************************2173/**2174* Extends mxShape.2175*/2176function mxShapeAws3dInstance(bounds, fill, stroke, strokewidth)2177{2178 mxShape.call(this);2179 this.bounds = bounds;2180 this.fill = fill;2181 this.stroke = stroke;2182 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2183};21842185/**2186* Extends mxShape.2187*/2188mxUtils.extend(mxShapeAws3dInstance, mxShape);21892190mxShapeAws3dInstance.prototype.cst = {2191 INSTANCE : 'mxgraph.aws3d.instance',2192 SHADING_COLORS : 'shadingCols'2193};21942195mxShapeAws3dInstance.prototype.customProperties = [2196 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}2197];21982199/**2200* Function: paintVertexShape2201* 2202* Paints the vertex shape.2203*/2204mxShapeAws3dInstance.prototype.paintVertexShape = function(c, x, y, w, h)2205{2206 c.translate(x, y);2207 2208 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2209 var strokeWidth1 = strokeWidth * w / 123;2210 var strokeWidth2 = strokeWidth * h / 97;2211 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');2212 2213 strokeWidth = Math.min(strokeWidth1, strokeWidth2);22142215 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);2216 c.setShadow(false);2217 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);2218};22192220mxShapeAws3dInstance.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)2221{2222 c.setStrokeWidth(strokeWidth);2223 c.save();2224 c.save();2225 c.setStrokeWidth(2 * strokeWidth);2226 c.setStrokeColor(strokeColor2);2227 c.setLineJoin('round');22282229 c.begin();2230 c.moveTo(0, h * 0.634);2231 c.lineTo(0, h * 0.2732);2232 c.lineTo(w * 0.374, 0);2233 c.lineTo(w * 0.622, 0);2234 c.lineTo(w, h * 0.2732);2235 c.lineTo(w, h * 0.634);2236 c.lineTo(w * 0.5, h);2237 c.close();2238 c.fillAndStroke();2239};22402241mxShapeAws3dInstance.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)2242{2243 c.restore();2244 c.setShadow(false);2245 c.setFillColor('#000000');2246 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInstance.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');2247 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');2248 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 2249 2250 c.begin();2251 c.moveTo(0, h * 0.2732);2252 c.lineTo(w * 0.5, h * 0.6392);2253 c.lineTo(w * 0.5, h);2254 c.lineTo(0, h * 0.634);2255 c.close();2256 c.fill();22572258 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 2259 c.begin();2260 c.moveTo(w * 0.5, h * 0.6392);2261 c.lineTo(w, h * 0.2732);2262 c.lineTo(w, h * 0.6392);2263 c.lineTo(w * 0.5, h);2264 c.close();2265 c.fill();2266 2267 c.restore();2268 c.setShadow(false);2269 c.setLineJoin('round');2270 2271 c.begin();2272 c.moveTo(0, h * 0.2732);2273 c.lineTo(w * 0.5, h * 0.6392);2274 c.lineTo(w * 0.5, h);2275 c.lineTo(0, h * 0.634);2276 c.close();2277 c.stroke();22782279 c.begin();2280 c.moveTo(w * 0.5, h * 0.6392);2281 c.lineTo(w, h * 0.2732);2282 c.lineTo(w, h * 0.6392);2283 c.lineTo(w * 0.5, h);2284 c.close();2285 c.stroke();2286 2287 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');2288 c.setFillColor(strokeColor);2289 c.begin();2290 c.moveTo(w * 0.374, h * 0.4742);2291 c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.374, h * 0.4381);2292 c.lineTo(w * 0.4797, h * 0.3608);2293 c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.5203, h * 0.3608);2294 c.lineTo(w * 0.626, h * 0.4381);2295 c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.626, h * 0.4711);2296 c.lineTo(w * 0.5203, h * 0.5485);2297 c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.4797, h * 0.5485);2298 c.close();2299 c.fill();23002301 c.setStrokeWidth(2 * strokeWidth);2302 c.setStrokeColor(strokeColor2);2303 c.setLineJoin('round');23042305 c.begin();2306 c.moveTo(0, h * 0.634);2307 c.lineTo(0, h * 0.2732);2308 c.lineTo(w * 0.374, 0);2309 c.lineTo(w * 0.622, 0);2310 c.lineTo(w, h * 0.2732);2311 c.lineTo(w, h * 0.634);2312 c.lineTo(w * 0.5, h);2313 c.close();2314 c.stroke();2315};23162317mxCellRenderer.registerShape(mxShapeAws3dInstance.prototype.cst.INSTANCE, mxShapeAws3dInstance);23182319//**********************************************************************************************************************************************************2320//Internet Gateway2321//**********************************************************************************************************************************************************2322/**2323* Extends mxShape.2324*/2325function mxShapeAws3dInternetGateway(bounds, fill, stroke, strokewidth)2326{2327 mxShape.call(this);2328 this.bounds = bounds;2329 this.fill = fill;2330 this.stroke = stroke;2331 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2332};23332334/**2335* Extends mxShape.2336*/2337mxUtils.extend(mxShapeAws3dInternetGateway, mxShape);23382339mxShapeAws3dInternetGateway.prototype.cst = {2340 INTERNET_GATEWAY : 'mxgraph.aws3d.internetGateway',2341 SHADING_COLORS : 'shadingCols'2342};23432344mxShapeAws3dInternetGateway.prototype.customProperties = [2345 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}2346];23472348/**2349* Function: paintVertexShape2350* 2351* Paints the vertex shape.2352*/2353mxShapeAws3dInternetGateway.prototype.paintVertexShape = function(c, x, y, w, h)2354{2355 c.translate(x, y);2356 2357 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2358 var strokeWidth1 = strokeWidth * w / 116.7;2359 var strokeWidth2 = strokeWidth * h / 102.8;2360 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');2361 2362 strokeWidth = Math.min(strokeWidth1, strokeWidth2);23632364 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);2365 c.setShadow(false);2366 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);2367};23682369mxShapeAws3dInternetGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)2370{2371 c.setStrokeWidth(strokeWidth);2372 c.save();2373 c.save();2374 c.save();2375 c.save();2376 c.save();2377 c.setStrokeWidth(2 * strokeWidth);2378 c.setStrokeColor(strokeColor2);2379 c.setLineJoin('round');23802381 c.begin();2382 c.moveTo(w * 0.4199, h * 0.5447);2383 c.lineTo(w * 0.4199, h * 0.035);2384 c.lineTo(w * 0.8946, 0);2385 c.lineTo(w, h * 0.0691);2386 c.lineTo(w, h * 0.4134);2387 c.lineTo(w * 0.6812, h * 0.7247);2388 c.close();2389 c.fillAndStroke();23902391 c.restore();2392 c.save();2393 c.setShadow(false);2394 c.setFillColor('#000000');2395 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');2396 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');2397 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 2398 c.begin();2399 c.moveTo(w * 0.4199, h * 0.5447);2400 c.lineTo(w * 0.4199, h * 0.035);2401 c.lineTo(w * 0.6838, h * 0.2072);2402 c.lineTo(w * 0.6838, h * 0.7247);2403 c.close();2404 c.fill();2405 2406 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 2407 c.begin();2408 c.moveTo(w * 0.6838, h * 0.2072);2409 c.lineTo(w, h * 0.0691);2410 c.lineTo(w, h * 0.4134);2411 c.lineTo(w * 0.6838, h * 0.7247);2412 c.close();2413 c.fill();24142415 c.restore();2416 c.setShadow(false);2417 c.begin();2418 c.moveTo(w * 0.4199, h * 0.5447);2419 c.lineTo(w * 0.4199, h * 0.035);2420 c.lineTo(w * 0.6838, h * 0.2072);2421 c.lineTo(w * 0.6838, h * 0.7247);2422 c.close();2423 c.stroke();24242425 c.restore();2426 c.setLineJoin('round');2427 c.setShadow(false);24282429 c.begin();2430 c.moveTo(w * 0.6838, h * 0.2072);2431 c.lineTo(w, h * 0.0691);2432 c.lineTo(w, h * 0.4134);2433 c.lineTo(w * 0.6838, h * 0.7247);2434 c.close();2435 c.stroke();24362437 c.setStrokeWidth(2 * strokeWidth);2438 c.setStrokeColor(strokeColor2);2439 2440 c.begin();2441 c.moveTo(w * 0.4199, h * 0.5447);2442 c.lineTo(w * 0.4199, h * 0.035);2443 c.lineTo(w * 0.8946, 0);2444 c.lineTo(w, h * 0.0691);2445 c.lineTo(w, h * 0.4134);2446 c.lineTo(w * 0.6812, h * 0.7247);2447 c.close();2448 c.stroke();24492450 c.restore();2451 c.setStrokeWidth(2 * strokeWidth);2452 c.setStrokeColor(strokeColor2);2453 c.setLineJoin('round');24542455 c.begin();2456 c.moveTo(0, h * 0.929);2457 c.lineTo(0, h * 0.5866);2458 c.lineTo(w * 0.3171, h * 0.1031);2459 c.lineTo(w * 0.5784, h * 0.2753);2460 c.lineTo(w * 0.5784, h * 0.7928);2461 c.lineTo(w * 0.1054, h);2462 c.close();2463 c.fillAndStroke();2464};24652466mxShapeAws3dInternetGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)2467{2468 c.restore();2469 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');2470 c.setShadow(false);2471 c.setLineJoin('round');2472 c.setFillColor('#000000');2473 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');2474 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');2475 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 2476 2477 c.begin();2478 c.moveTo(0, h * 0.929);2479 c.lineTo(0, h * 0.5866);2480 c.lineTo(w * 0.1054, h * 0.6537);2481 c.lineTo(w * 0.1054, h);2482 c.close();2483 c.fill();24842485 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 2486 c.begin();2487 c.moveTo(w * 0.1054, h);2488 c.lineTo(w * 0.1054, h * 0.6537);2489 c.lineTo(w * 0.5784, h * 0.2753);2490 c.lineTo(w * 0.5784, h * 0.7928);2491 c.close();2492 c.fill();2493 2494 c.restore();2495 c.setShadow(false);2496 c.setLineJoin('round');2497 2498 c.begin();2499 c.moveTo(0, h * 0.929);2500 c.lineTo(0, h * 0.5866);2501 c.lineTo(w * 0.1054, h * 0.6537);2502 c.lineTo(w * 0.1054, h);2503 c.close();2504 c.stroke();25052506 c.begin();2507 c.moveTo(w * 0.1054, h);2508 c.lineTo(w * 0.1054, h * 0.6537);2509 c.lineTo(w * 0.5784, h * 0.2753);2510 c.lineTo(w * 0.5784, h * 0.7928);2511 c.close();2512 c.stroke();2513 2514 c.setStrokeWidth(2 * strokeWidth);2515 c.setStrokeColor(strokeColor2);2516 c.setLineJoin('round');25172518 c.begin();2519 c.moveTo(0, h * 0.929);2520 c.lineTo(0, h * 0.5866);2521 c.lineTo(w * 0.3171, h * 0.1031);2522 c.lineTo(w * 0.5784, h * 0.2753);2523 c.lineTo(w * 0.5784, h * 0.7928);2524 c.lineTo(w * 0.1054, h);2525 c.close();2526 c.stroke();2527 2528 c.setFillColor(strokeColor);2529 c.begin();2530 c.moveTo(w * 0.7849, h * 0.5039);2531 c.arcTo(w * 0.0343, h * 0.0632, 0, 0, 1, w * 0.7481, h * 0.4796);2532 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.7661, h * 0.3911);2533 c.arcTo(w * 0.06, h * 0.0681, 0, 0, 1, w * 0.7712, h * 0.3356);2534 c.arcTo(w * 0.0257, h * 0.0292, 0, 0, 1, w * 0.7952, h * 0.32);2535 c.arcTo(w * 0.1285, h * 0.1459, 0, 0, 1, w * 0.8166, h * 0.2461);2536 c.arcTo(w * 0.06, h * 0.0973, 0, 0, 1, w * 0.8595, h * 0.2238);2537 c.arcTo(w * 0.0514, h * 0.0973, 0, 0, 1, w * 0.8937, h * 0.2743);2538 c.arcTo(w * 0.0428, h * 0.0778, 0, 0, 1, w * 0.9323, h * 0.3093);2539 c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.928, h * 0.3716);2540 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8972, h * 0.4125);2541 c.close();2542 c.fill();2543};25442545mxCellRenderer.registerShape(mxShapeAws3dInternetGateway.prototype.cst.INTERNET_GATEWAY, mxShapeAws3dInternetGateway);25462547//**********************************************************************************************************************************************************2548//Oracle Data Center2549//**********************************************************************************************************************************************************2550/**2551* Extends mxShape.2552*/2553function mxShapeAws3dOracleDataCenter(bounds, fill, stroke, strokewidth)2554{2555 mxShape.call(this);2556 this.bounds = bounds;2557 this.fill = fill;2558 this.stroke = stroke;2559 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2560};25612562/**2563* Extends mxShape.2564*/2565mxUtils.extend(mxShapeAws3dOracleDataCenter, mxShape);25662567mxShapeAws3dOracleDataCenter.prototype.cst = {2568 ORACLE_DATA_CENTER : 'mxgraph.aws3d.oracleDataCenter'2569};25702571mxShapeAws3dOracleDataCenter.prototype.customProperties = [2572 {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},2573 {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},2574 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}2575];25762577/**2578* Function: paintVertexShape2579* 2580* Paints the vertex shape.2581*/2582mxShapeAws3dOracleDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)2583{2584 c.translate(x, y);2585 2586 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2587 var strokeWidth1 = strokeWidth * w / 123;2588 var strokeWidth2 = strokeWidth * h /142;2589 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');2590 2591 strokeWidth = Math.min(strokeWidth1, strokeWidth2);2592 c.setStrokeWidth(strokeWidth);2593 2594 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);2595 c.setShadow(false);2596 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);2597};25982599mxShapeAws3dOracleDataCenter.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)2600{2601 c.save();2602 c.save();2603 c.save();2604 c.setStrokeWidth(2 * strokeWidth);2605 c.setStrokeColor(strokeColor2);2606 c.setLineJoin('round');26072608 c.begin();2609 c.moveTo(0, h * 0.7464);2610 c.lineTo(0, h * 0.25);2611 c.lineTo(w * 0.5, 0);2612 c.lineTo(w, h * 0.25);2613 c.lineTo(w, h * 0.7464);2614 c.lineTo(w * 0.5, h);2615 c.close();2616 c.fillAndStroke();2617};26182619mxShapeAws3dOracleDataCenter.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)2620{2621 var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');2622 var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');26232624 c.restore();2625 c.setShadow(false);2626 c.setFillColor('#000000');2627 c.setAlpha('0.1');2628 2629 c.begin();2630 c.moveTo(0, h * 0.7464);2631 c.lineTo(0, h * 0.25);2632 c.lineTo(w * 0.5, h * 0.5);2633 c.lineTo(w * 0.5, h);2634 c.close();2635 c.fill();26362637 c.setAlpha('0.3');2638 c.begin();2639 c.moveTo(w * 0.5, h * 0.5);2640 c.lineTo(w, h * 0.25);2641 c.lineTo(w, h * 0.7464);2642 c.lineTo(w * 0.5, h);2643 c.close();2644 c.fill();2645 2646 c.restore();2647 c.setShadow(false);2648 c.setLineJoin('round');2649 2650 c.setFillColor(fillColor2);26512652 c.begin();2653 c.moveTo(0, h * 0.5866);2654 c.lineTo(w * 0.5, h * 0.8359);2655 c.lineTo(w, h * 0.5866);2656 c.lineTo(w, h * 0.6986);2657 c.lineTo(w * 0.5, h * 0.9486);2658 c.lineTo(0, h * 0.6986);2659 c.fill();26602661 c.setStrokeWidth(0.5 * strokeWidth);2662 c.setStrokeColor(fillColor3);2663 c.setFillColor(fillColor3);2664 2665 c.begin();2666 c.moveTo(0, h * 0.5866);2667 c.lineTo(w * 0.5, h * 0.8359);2668 c.lineTo(w, h * 0.5866);2669 c.moveTo(w, h * 0.6986);2670 c.lineTo(w * 0.5, h * 0.9486);2671 c.lineTo(0, h * 0.6986);2672 c.stroke();2673 2674 c.begin();2675 c.moveTo(w * 0.0813, h * 0.7113);2676 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);2677 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);2678 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);2679 c.lineTo(w * 0.122, h * 0.6754);2680 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);2681 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);2682 c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);2683 c.close();2684 c.moveTo(w * 0.1163, h * 0.7183);2685 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);2686 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);2687 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);2688 c.lineTo(w * 0.087, h * 0.6676);2689 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);2690 c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);2691 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);2692 c.close();2693 c.moveTo(w * 0.1439, h * 0.743);2694 c.lineTo(w * 0.1439, h * 0.6866);2695 c.lineTo(w * 0.1846, h * 0.707);2696 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);2697 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);2698 c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);2699 c.lineTo(w * 0.1992, h * 0.769);2700 c.lineTo(w * 0.187, h * 0.7641);2701 c.lineTo(w * 0.1577, h * 0.7218);2702 c.lineTo(w * 0.1854, h * 0.7345);2703 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);2704 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);2705 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);2706 c.lineTo(w * 0.1528, h * 0.7007);2707 c.lineTo(w * 0.1528, h * 0.7472);2708 c.close();2709 c.moveTo(w * 0.2008, h * 0.7711);2710 c.lineTo(w * 0.2293, h * 0.7338);2711 c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);2712 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);2713 c.lineTo(w * 0.2699, h * 0.8035);2714 c.lineTo(w * 0.2602, h * 0.8007);2715 c.lineTo(w * 0.252, h * 0.7859);2716 c.lineTo(w * 0.2293, h * 0.7754);2717 c.lineTo(w * 0.2244, h * 0.7634);2718 c.lineTo(w * 0.248, h * 0.7739);2719 c.lineTo(w * 0.235, h * 0.7444);2720 c.lineTo(w * 0.2122, h * 0.7768);2721 c.close();2722 c.moveTo(w * 0.3244, h * 0.8225);2723 c.lineTo(w * 0.3171, h * 0.8289);2724 c.lineTo(w * 0.2854, h * 0.8127);2725 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);2726 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);2727 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);2728 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);2729 c.lineTo(w * 0.3228, h * 0.7761);2730 c.lineTo(w * 0.3179, h * 0.7831);2731 c.lineTo(w * 0.2878, h * 0.7683);2732 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);2733 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);2734 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);2735 c.close();2736 c.moveTo(w * 0.3276, h * 0.7789);2737 c.lineTo(w * 0.3366, h * 0.7831);2738 c.lineTo(w * 0.3366, h * 0.8289);2739 c.lineTo(w * 0.3805, h * 0.8507);2740 c.lineTo(w * 0.3748, h * 0.857);2741 c.lineTo(w * 0.3317, h * 0.8359);2742 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);2743 c.close();2744 c.moveTo(w * 0.435, h * 0.8775);2745 c.lineTo(w * 0.4325, h * 0.8866);2746 c.lineTo(w * 0.3959, h * 0.8683);2747 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);2748 c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);2749 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);2750 c.lineTo(w * 0.435, h * 0.8324);2751 c.lineTo(w * 0.4285, h * 0.838);2752 c.lineTo(w * 0.4008, h * 0.8246);2753 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);2754 c.lineTo(w * 0.4333, h * 0.8542);2755 c.lineTo(w * 0.426, h * 0.8606);2756 c.lineTo(w * 0.3878, h * 0.8415);2757 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);2758 c.close();27592760 c.moveTo(w * 0.6171, h * 0.8063);2761 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);2762 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);2763 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);2764 c.lineTo(w * 0.5894, h * 0.8761);2765 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);2766 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);2767 c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);2768 c.close();2769 c.moveTo(w * 0.5886, h * 0.8296);2770 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);2771 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);2772 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);2773 c.lineTo(w * 0.6163, h * 0.8528);2774 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);2775 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);2776 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);2777 c.close();27782779 c.moveTo(w * 0.64, h * 0.85);2780 c.lineTo(w * 0.64, h * 0.7930);2781 c.lineTo(w * 0.6854, h * 0.7718);2782 c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);2783 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);2784 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);2785 c.lineTo(w * 0.6992, h * 0.8218);2786 c.lineTo(w * 0.6854, h * 0.8282);2787 c.lineTo(w * 0.6569, h * 0.8141);2788 c.lineTo(w * 0.6805, h * 0.8021);2789 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);2790 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);2791 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);2792 c.lineTo(w * 0.6528, h * 0.7979);2793 c.lineTo(w * 0.6528, h * 0.8437);2794 c.close();2795 c.moveTo(w * 0.7, h * 0.8204);2796 c.lineTo(w * 0.7301, h * 0.7507);2797 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);2798 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);2799 c.lineTo(w * 0.7699, h * 0.7852);2800 c.lineTo(w * 0.7602, h * 0.7908);2801 c.lineTo(w * 0.7537, h * 0.7838);2802 c.lineTo(w * 0.7276, h * 0.7958);2803 c.lineTo(w * 0.7228, h * 0.788);2804 c.lineTo(w * 0.748, h * 0.7768);2805 c.lineTo(w * 0.7358, h * 0.7585);2806 c.lineTo(w * 0.7114, h * 0.8155);2807 c.close();2808 c.moveTo(w * 0.8244, h * 0.7486);2809 c.lineTo(w * 0.8171, h * 0.762);2810 c.lineTo(w * 0.7894, h * 0.7761);2811 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);2812 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);2813 c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);2814 c.lineTo(w * 0.822, h * 0.7035);2815 c.lineTo(w * 0.8171, h * 0.7155);2816 c.lineTo(w * 0.7902, h * 0.7296);2817 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);2818 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);2819 c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);2820 c.close();2821 c.moveTo(w * 0.8366, h * 0.6949);2822 c.lineTo(w * 0.8366, h * 0.7423);2823 c.lineTo(w * 0.878, h * 0.7231);2824 c.lineTo(w * 0.874, h * 0.7338);2825 c.lineTo(w * 0.8333, h * 0.7535);2826 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);2827 c.lineTo(w * 0.8268, h * 0.7007);2828 c.close();2829 c.moveTo(w * 0.9342, h * 0.6472);2830 c.lineTo(w * 0.9293, h * 0.6599);2831 c.lineTo(w * 0.9033, h * 0.6725);2832 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);2833 c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);2834 c.lineTo(w * 0.9309, h * 0.6725);2835 c.lineTo(w * 0.9268, h * 0.6845);2836 c.lineTo(w * 0.887, h * 0.7035);2837 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);2838 c.lineTo(w * 0.935, h * 0.693);2839 c.lineTo(w * 0.9285, h * 0.7063);2840 c.lineTo(w * 0.9008, h * 0.7197);2841 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);2842 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);2843 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);2844 c.fill();28452846 c.restore();2847 c.setShadow(false);2848 c.setLineJoin('round');28492850 c.begin();2851 c.moveTo(0, h * 0.7464);2852 c.lineTo(0, h * 0.25);2853 c.lineTo(w * 0.5, h * 0.5);2854 c.lineTo(w * 0.5, h);2855 c.close();2856 c.stroke();28572858 c.begin();2859 c.moveTo(w * 0.5, h * 0.5);2860 c.lineTo(w, h * 0.25);2861 c.lineTo(w, h * 0.7464);2862 c.lineTo(w * 0.5, h);2863 c.close();2864 c.stroke();2865 2866 c.setStrokeWidth(2 * strokeWidth);2867 c.setStrokeColor(strokeColor2);2868 c.setLineJoin('round');28692870 c.begin();2871 c.moveTo(0, h * 0.7464);2872 c.lineTo(0, h * 0.25);2873 c.lineTo(w * 0.5, 0);2874 c.lineTo(w, h * 0.25);2875 c.lineTo(w, h * 0.7464);2876 c.lineTo(w * 0.5, h);2877 c.close();2878 c.stroke();2879 2880 c.restore();2881 c.setShadow(false);2882 c.setStrokeWidth(3 * strokeWidth);2883 c.setLineCap('round');2884 c.begin();2885 c.moveTo(w * 0.0894, h * 0.3838);2886 c.lineTo(w * 0.4187, h * 0.5493);2887 c.moveTo(w * 0.0894, h * 0.4331);2888 c.lineTo(w * 0.4187, h * 0.5986);2889 c.moveTo(w * 0.0894, h * 0.4824);2890 c.lineTo(w * 0.4187, h * 0.6479);2891 c.moveTo(w * 0.5854, h * 0.5492);2892 c.lineTo(w * 0.9146, h * 0.3838);2893 c.moveTo(w * 0.5854, h * 0.5986);2894 c.lineTo(w * 0.9146, h * 0.4331);2895 c.moveTo(w * 0.5854, h * 0.6479);2896 c.lineTo(w * 0.9146, h * 0.4824);2897 c.stroke();2898};28992900mxCellRenderer.registerShape(mxShapeAws3dOracleDataCenter.prototype.cst.ORACLE_DATA_CENTER, mxShapeAws3dOracleDataCenter);29012902//**********************************************************************************************************************************************************2903//Oracle Database Server2904//**********************************************************************************************************************************************************2905/**2906* Extends mxShape.2907*/2908function mxShapeAws3dOracleDatabaseServer(bounds, fill, stroke, strokewidth)2909{2910 mxShape.call(this);2911 this.bounds = bounds;2912 this.fill = fill;2913 this.stroke = stroke;2914 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2915};29162917/**2918* Extends mxShape.2919*/2920mxUtils.extend(mxShapeAws3dOracleDatabaseServer, mxShape);29212922mxShapeAws3dOracleDatabaseServer.prototype.cst = {2923 ORACLE_DB_SERVER : 'mxgraph.aws3d.oracleDbServer'2924};29252926mxShapeAws3dOracleDatabaseServer.prototype.customProperties = [2927 {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},2928 {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},2929 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}2930];29312932/**2933* Function: paintVertexShape2934* 2935* Paints the vertex shape.2936*/2937mxShapeAws3dOracleDatabaseServer.prototype.paintVertexShape = function(c, x, y, w, h)2938{2939 c.translate(x, y);2940 2941 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2942 var strokeWidth1 = strokeWidth * w / 123;2943 var strokeWidth2 = strokeWidth * h /142;2944 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');2945 2946 strokeWidth = Math.min(strokeWidth1, strokeWidth2);2947 c.setStrokeWidth(strokeWidth);2948 2949 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);2950 c.setShadow(false);2951 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);2952};29532954mxShapeAws3dOracleDatabaseServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)2955{2956 c.save();2957 c.save();2958 c.save();2959 c.setStrokeWidth(2 * strokeWidth);2960 c.setStrokeColor(strokeColor2);2961 c.setLineJoin('round');29622963 c.begin();2964 c.moveTo(0, h * 0.7331);2965 c.lineTo(0, h * 0.3346);2966 c.lineTo(w * 0.126, h * 0.1316);2967 c.lineTo(w * 0.374, 0);2968 c.lineTo(w * 0.626, 0);2969 c.lineTo(w * 0.874, h * 0.1316);2970 c.lineTo(w, h * 0.3346);2971 c.lineTo(w, h * 0.7331);2972 c.lineTo(w * 0.5, h);2973 c.close();2974 c.fillAndStroke();2975};29762977mxShapeAws3dOracleDatabaseServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)2978{2979 var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');2980 var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');29812982 c.restore();2983 c.setShadow(false);2984 c.setFillColor('#000000');2985 c.setAlpha('0.1');2986 2987 c.begin();2988 c.moveTo(w * 0.126, h * 0.1316);2989 c.lineTo(w * 0.126, h * 0.267);2990 c.lineTo(w * 0.378, h * 0.4023);2991 c.lineTo(w * 0.5, h * 0.6015);2992 c.lineTo(w * 0.5, h);2993 c.lineTo(0, h * 0.7331);2994 c.lineTo(0, h * 0.3346);2995 c.close();2996 c.moveTo(w * 0.874, h * 0.267);2997 c.lineTo(w * 0.874, h * 0.1316);2998 c.lineTo(w, h * 0.3308);2999 c.fill();30003001 c.setAlpha('0.3');3002 c.begin();3003 c.moveTo(w * 0.5, h);3004 c.lineTo(w * 0.5, h * 0.6015);3005 c.lineTo(w * 0.622, h * 0.4023);3006 c.lineTo(w * 0.874, h * 0.267);3007 c.lineTo(w, h * 0.3308);3008 c.lineTo(w, h * 0.7331);3009 c.close();3010 c.fill();3011 3012 c.restore();3013 c.setShadow(false);3014 c.setLineJoin('round');3015 3016 c.setFillColor(fillColor2);30173018 c.begin();3019 c.moveTo(0, h * 0.5586);3020 c.lineTo(w * 0.5, h * 0.8248);3021 c.lineTo(w, h * 0.5586);3022 c.lineTo(w, h * 0.6782);3023 c.lineTo(w * 0.5, h * 0.9453);3024 c.lineTo(0, h * 0.6782);3025 c.fill();30263027 c.setStrokeWidth(0.5 * strokeWidth);3028 c.setStrokeColor(fillColor3);3029 c.setFillColor(fillColor3);3030 3031 c.begin();3032 c.moveTo(0, h * 0.5586);3033 c.lineTo(w * 0.5, h * 0.8248);3034 c.lineTo(w, h * 0.5586);3035 c.moveTo(w, h * 0.6782);3036 c.lineTo(w * 0.5, h * 0.9453);3037 c.lineTo(0, h * 0.6782);3038 c.stroke();3039 3040 c.begin();3041 c.moveTo(w * 0.0813, h * 0.6918);3042 c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.065, h * 0.6616);3043 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.065, h * 0.6384);3044 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.0797, h * 0.6315);3045 c.lineTo(w * 0.122, h * 0.6534);3046 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.1358, h * 0.673);3047 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.139, h * 0.7045);3048 c.arcTo(w * 0.0179, h * 0.0165, 0, 0, 1, w * 0.1187, h * 0.7113);3049 c.close();3050 c.moveTo(w * 0.1163, h * 0.6992);3051 c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.1285, h * 0.6955);3052 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1293, h * 0.6819);3053 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1179, h * 0.6616);3054 c.lineTo(w * 0.087, h * 0.6451);3055 c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.0764, h * 0.6473);3056 c.arcTo(w * 0.0325, h * 0.0376, 0, 0, 0, w * 0.078, h * 0.673);3057 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.087, h * 0.6834);3058 c.close();3059 c.moveTo(w * 0.1439, h * 0.7256);3060 c.lineTo(w * 0.1439, h * 0.6654);3061 c.lineTo(w * 0.1846, h * 0.6872);3062 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.1967, h * 0.6992);3063 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2, h * 0.7203);3064 c.arcTo(w * 0.0138, h * 0.0165, 0, 0, 1, w * 0.1813, h * 0.7256);3065 c.lineTo(w * 0.1992, h * 0.7534);3066 c.lineTo(w * 0.187, h * 0.7481);3067 c.lineTo(w * 0.1577, h * 0.7029);3068 c.lineTo(w * 0.1854, h * 0.7165);3069 c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.1911, h * 0.7135);3070 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 0, w * 0.1894, h * 0.7037);3071 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.1821, h * 0.6962);3072 c.lineTo(w * 0.1528, h * 0.6804);3073 c.lineTo(w * 0.1528, h * 0.7301);3074 c.close();3075 c.moveTo(w * 0.2008, h * 0.7556);3076 c.lineTo(w * 0.2293, h * 0.7158);3077 c.arcTo(w * 0.0065, h * 0.006, 0, 0, 1, w * 0.2382, h * 0.7143);3078 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2431, h * 0.724);3079 c.lineTo(w * 0.2699, h * 0.7902);3080 c.lineTo(w * 0.2602, h * 0.7872);3081 c.lineTo(w * 0.252, h * 0.7714);3082 c.lineTo(w * 0.2293, h * 0.7602);3083 c.lineTo(w * 0.2244, h * 0.7474);3084 c.lineTo(w * 0.248, h * 0.7586);3085 c.lineTo(w * 0.235, h * 0.7271);3086 c.lineTo(w * 0.2122, h * 0.7617);3087 c.close();3088 c.moveTo(w * 0.3244, h * 0.8105);3089 c.lineTo(w * 0.3171, h * 0.8173);3090 c.lineTo(w * 0.2854, h * 0.8);3091 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2724, h * 0.785);3092 c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.265, h * 0.7593);3093 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2683, h * 0.7459);3094 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.2829, h * 0.7405);3095 c.lineTo(w * 0.3228, h * 0.7609);3096 c.lineTo(w * 0.3179, h * 0.7684);3097 c.lineTo(w * 0.2878, h * 0.7526);3098 c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.2789, h * 0.7541);3099 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.2748, h * 0.7684);3100 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.2878, h * 0.7909);3101 c.close();3102 c.moveTo(w * 0.3276, h * 0.7639);3103 c.lineTo(w * 0.3366, h * 0.7684);3104 c.lineTo(w * 0.3366, h * 0.8173);3105 c.lineTo(w * 0.3805, h * 0.8406);3106 c.lineTo(w * 0.3748, h * 0.8473);3107 c.lineTo(w * 0.3317, h * 0.8248);3108 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3276, h * 0.8158);3109 c.close();3110 c.moveTo(w * 0.435, h * 0.8692);3111 c.lineTo(w * 0.4325, h * 0.8789);3112 c.lineTo(w * 0.3959, h * 0.8594);3113 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.3862, h * 0.8466);3114 c.arcTo(w * 0.0528, h * 0.0489, 0, 0, 1, w * 0.3805, h * 0.806);3115 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3951, h * 0.8008);3116 c.lineTo(w * 0.435, h * 0.821);3117 c.lineTo(w * 0.4285, h * 0.827);3118 c.lineTo(w * 0.4008, h * 0.8127);3119 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.3878, h * 0.8196);3120 c.lineTo(w * 0.4333, h * 0.8443);3121 c.lineTo(w * 0.426, h * 0.8512);3122 c.lineTo(w * 0.3878, h * 0.8308);3123 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.3976, h * 0.8489);3124 c.close();31253126 c.moveTo(w * 0.6171, h * 0.7932);3127 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.6366, h * 0.7963);3128 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 1, w * 0.639, h * 0.8188);3129 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.6211, h * 0.8497);3130 c.lineTo(w * 0.5894, h * 0.8677);3131 c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 1, w * 0.565, h * 0.8646);3132 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.5659, h * 0.8354);3133 c.arcTo(w * 0.0488, h * 0.0451, 0, 0, 1, w * 0.5805, h * 0.8127);3134 c.close();3135 c.moveTo(w * 0.5886, h * 0.8181);3136 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.5748, h * 0.8368);3137 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.574, h * 0.8527);3138 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.587, h * 0.8586);3139 c.lineTo(w * 0.6163, h * 0.8428);3140 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.6285, h * 0.8248);3141 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6293, h * 0.8105);3142 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.6163, h * 0.803);3143 c.close();3144 c.moveTo(w * 0.64, h * 0.8398);3145 c.lineTo(w * 0.64, h * 0.779);3146 c.lineTo(w * 0.6854, h * 0.7563);3147 c.arcTo(w * 0.0106, h * 0.0098, 0, 0, 1, w * 0.7008, h * 0.7632);3148 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6959, h * 0.7865);3149 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6805, h * 0.8);3150 c.lineTo(w * 0.6992, h * 0.8097);3151 c.lineTo(w * 0.6854, h * 0.8166);3152 c.lineTo(w * 0.6569, h * 0.8015);3153 c.lineTo(w * 0.6805, h * 0.7887);3154 c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 0, w * 0.6894, h * 0.7782);3155 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6894, h * 0.7699);3156 c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.6837, h * 0.7684);3157 c.lineTo(w * 0.6528, h * 0.7842);3158 c.lineTo(w * 0.6528, h * 0.8331);3159 c.close();3160 c.moveTo(w * 0.7, h * 0.8082);3161 c.lineTo(w * 0.7301, h * 0.7338);3162 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7358, h * 0.7271);3163 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7415, h * 0.7316);3164 c.lineTo(w * 0.7699, h * 0.7707);3165 c.lineTo(w * 0.7602, h * 0.7766);3166 c.lineTo(w * 0.7537, h * 0.7692);3167 c.lineTo(w * 0.7276, h * 0.782);3168 c.lineTo(w * 0.7228, h * 0.7736);3169 c.lineTo(w * 0.748, h * 0.7617);3170 c.lineTo(w * 0.7358, h * 0.7421);3171 c.lineTo(w * 0.7114, h * 0.803);3172 c.close();3173 c.moveTo(w * 0.8244, h * 0.7316);3174 c.lineTo(w * 0.8171, h * 0.7459);3175 c.lineTo(w * 0.7894, h * 0.7609);3176 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 1, w * 0.7683, h * 0.7593);3177 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.7667, h * 0.7338);3178 c.arcTo(w * 0.0488, h * 0.0452, 0, 0, 1, w * 0.7937, h * 0.697);3179 c.lineTo(w * 0.822, h * 0.6834);3180 c.lineTo(w * 0.8171, h * 0.6962);3181 c.lineTo(w * 0.7902, h * 0.7113);3182 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.778, h * 0.7256);3183 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.7756, h * 0.7444);3184 c.arcTo(w * 0.0077, h * 0.0072, 0, 0, 0, w * 0.787, h * 0.7512);3185 c.close();3186 c.moveTo(w * 0.8366, h * 0.6742);3187 c.lineTo(w * 0.8366, h * 0.7248);3188 c.lineTo(w * 0.878, h * 0.7043);3189 c.lineTo(w * 0.874, h * 0.7158);3190 c.lineTo(w * 0.8333, h * 0.7368);3191 c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 1, w * 0.8268, h * 0.7324);3192 c.lineTo(w * 0.8268, h * 0.6804);3193 c.close();3194 c.moveTo(w * 0.9342, h * 0.6233);3195 c.lineTo(w * 0.9293, h * 0.6369);3196 c.lineTo(w * 0.9033, h * 0.6503);3197 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.8927, h * 0.6601);3198 c.arcTo(w * 0.0406, h * 0.0376, 0, 0, 0, w * 0.887, h * 0.6729);3199 c.lineTo(w * 0.9309, h * 0.6503);3200 c.lineTo(w * 0.9268, h * 0.6631);3201 c.lineTo(w * 0.887, h * 0.6834);3202 c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.8992, h * 0.691);3203 c.lineTo(w * 0.935, h * 0.6722);3204 c.lineTo(w * 0.9285, h * 0.6864);3205 c.lineTo(w * 0.9008, h * 0.7007);3206 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.8829, h * 0.7015);3207 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.8764, h * 0.6827);3208 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.8959, h * 0.6443);3209 c.fill();32103211 c.restore();3212 c.setShadow(false);3213 c.setLineJoin('round');32143215 c.begin();3216 c.moveTo(w * 0.126, h * 0.1316);3217 c.lineTo(w * 0.126, h * 0.267);3218 c.lineTo(w * 0.378, h * 0.4023);3219 c.lineTo(w * 0.5, h * 0.6015);3220 c.lineTo(w * 0.622, h * 0.4023);3221 c.lineTo(w * 0.874, h * 0.267);3222 c.lineTo(w * 0.874, h * 0.1316);3223 c.moveTo(0, h * 0.3346);3224 c.lineTo(w * 0.126, h * 0.267);3225 c.moveTo(w * 0.5, h * 0.6015);3226 c.lineTo(w * 0.5, h);3227 c.moveTo(w, h * 0.3346);3228 c.lineTo(w * 0.87, h * 0.267);3229 c.moveTo(w * 0.378, h * 0.4023);3230 c.lineTo(w * 0.622, h * 0.4023);3231 c.stroke();32323233 c.setStrokeWidth(2 * strokeWidth);3234 c.setStrokeColor(strokeColor2);32353236 c.begin();3237 c.moveTo(0, h * 0.7331);3238 c.lineTo(0, h * 0.3346);3239 c.lineTo(w * 0.126, h * 0.1316);3240 c.lineTo(w * 0.374, 0);3241 c.lineTo(w * 0.626, 0);3242 c.lineTo(w * 0.874, h * 0.1316);3243 c.lineTo(w, h * 0.3346);3244 c.lineTo(w, h * 0.7331);3245 c.lineTo(w * 0.5, h);3246 c.close();3247 c.stroke();3248};32493250mxCellRenderer.registerShape(mxShapeAws3dOracleDatabaseServer.prototype.cst.ORACLE_DB_SERVER, mxShapeAws3dOracleDatabaseServer);//zzz32513252//**********************************************************************************************************************************************************3253//RDS Master3254//**********************************************************************************************************************************************************3255/**3256* Extends mxShape.3257*/3258function mxShapeAws3dRdsMaster(bounds, fill, stroke, strokewidth)3259{3260 mxShape.call(this);3261 this.bounds = bounds;3262 this.fill = fill;3263 this.stroke = stroke;3264 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3265};32663267/**3268* Extends mxShape.3269*/3270mxUtils.extend(mxShapeAws3dRdsMaster, mxShape);32713272mxShapeAws3dRdsMaster.prototype.cst = {3273 RDS_MASTER : 'mxgraph.aws3d.rdsMaster',3274 SHADING_COLORS : 'shadingCols'3275};32763277mxShapeAws3dRdsMaster.prototype.customProperties = [3278 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}3279];32803281/**3282* Function: paintVertexShape3283* 3284* Paints the vertex shape.3285*/3286mxShapeAws3dRdsMaster.prototype.paintVertexShape = function(c, x, y, w, h)3287{3288 c.translate(x, y);3289 3290 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3291 var strokeWidth1 = strokeWidth * w / 123;3292 var strokeWidth2 = strokeWidth * h /133;3293 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');3294 3295 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3296 c.setStrokeWidth(strokeWidth);3297 3298 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);3299 c.setShadow(false);3300 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);3301};33023303mxShapeAws3dRdsMaster.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)3304{3305 c.save();3306 c.save();3307 c.setStrokeWidth(2 * strokeWidth);3308 c.setStrokeColor(strokeColor2);3309 c.setLineJoin('round');33103311 c.begin();3312 c.moveTo(0, h * 0.7331);3313 c.lineTo(0, h * 0.3346);3314 c.lineTo(w * 0.126, h * 0.1316);3315 c.lineTo(w * 0.374, 0);3316 c.lineTo(w * 0.626, 0);3317 c.lineTo(w * 0.874, h * 0.1316);3318 c.lineTo(w, h * 0.3346);3319 c.lineTo(w, h * 0.7331);3320 c.lineTo(w * 0.5, h);3321 c.close();3322 c.fillAndStroke();3323};33243325mxShapeAws3dRdsMaster.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)3326{3327 c.restore();3328 c.setShadow(false);3329 c.setFillColor('#000000');3330 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRdsMaster.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3331 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3332 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3333 3334 c.begin();3335 c.moveTo(w * 0.126, h * 0.1316);3336 c.lineTo(w * 0.126, h * 0.267);3337 c.lineTo(w * 0.378, h * 0.4023);3338 c.lineTo(w * 0.5, h * 0.6015);3339 c.lineTo(w * 0.5, h);3340 c.lineTo(0, h * 0.7331);3341 c.lineTo(0, h * 0.3346);3342 c.close();3343 c.moveTo(w * 0.874, h * 0.267);3344 c.lineTo(w * 0.874, h * 0.1316);3345 c.lineTo(w, h * 0.3308);3346 c.fill();33473348 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3349 c.begin();3350 c.moveTo(w * 0.5, h);3351 c.lineTo(w * 0.5, h * 0.6015);3352 c.lineTo(w * 0.622, h * 0.4023);3353 c.lineTo(w * 0.874, h * 0.267);3354 c.lineTo(w, h * 0.3308);3355 c.lineTo(w, h * 0.7331);3356 c.close();3357 c.fill();3358 3359 c.restore();33603361 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3362 c.setFillColor(strokeColor);3363 c.setShadow(false);33643365 c.begin();3366 c.moveTo(w * 0.1878, h * 0.1932);3367 c.lineTo(w * 0.4854, h * 0.0414);3368 c.lineTo(w * 0.5886, h * 0.094);3369 c.lineTo(w * 0.4455, h * 0.2308);3370 c.lineTo(w * 0.7122, h * 0.1579);3371 c.lineTo(w * 0.8171, h * 0.2098);3372 c.lineTo(w * 0.5187, h * 0.3617);3373 c.lineTo(w * 0.4537, h * 0.3293);3374 c.lineTo(w * 0.7016, h * 0.2053);3375 c.lineTo(w * 0.3854, h * 0.2947);3376 c.lineTo(w * 0.3187, h * 0.2602);3377 c.lineTo(w * 0.4959, h * 0.0992);3378 c.lineTo(w * 0.2504, h * 0.2256);3379 c.close();3380 c.fill();3381 3382 c.setLineJoin('round');33833384 c.begin();3385 c.moveTo(w * 0.126, h * 0.1316);3386 c.lineTo(w * 0.126, h * 0.267);3387 c.lineTo(w * 0.378, h * 0.4023);3388 c.lineTo(w * 0.5, h * 0.6015);3389 c.lineTo(w * 0.622, h * 0.4023);3390 c.lineTo(w * 0.874, h * 0.267);3391 c.lineTo(w * 0.874, h * 0.1316);3392 c.moveTo(0, h * 0.3346);3393 c.lineTo(w * 0.126, h * 0.267);3394 c.moveTo(w * 0.5, h * 0.6015);3395 c.lineTo(w * 0.5, h);3396 c.moveTo(w, h * 0.3346);3397 c.lineTo(w * 0.87, h * 0.267);3398 c.moveTo(w * 0.378, h * 0.4023);3399 c.lineTo(w * 0.622, h * 0.4023);3400 c.stroke();34013402 c.setStrokeWidth(2 * strokeWidth);3403 c.setStrokeColor(strokeColor2);34043405 c.begin();3406 c.moveTo(0, h * 0.7331);3407 c.lineTo(0, h * 0.3346);3408 c.lineTo(w * 0.126, h * 0.1316);3409 c.lineTo(w * 0.374, 0);3410 c.lineTo(w * 0.626, 0);3411 c.lineTo(w * 0.874, h * 0.1316);3412 c.lineTo(w, h * 0.3346);3413 c.lineTo(w, h * 0.7331);3414 c.lineTo(w * 0.5, h);3415 c.close();3416 c.stroke();3417};34183419mxCellRenderer.registerShape(mxShapeAws3dRdsMaster.prototype.cst.RDS_MASTER, mxShapeAws3dRdsMaster);34203421//**********************************************************************************************************************************************************3422//RDS3423//**********************************************************************************************************************************************************3424/**3425* Extends mxShape.3426*/3427function mxShapeAws3dRds(bounds, fill, stroke, strokewidth)3428{3429 mxShape.call(this);3430 this.bounds = bounds;3431 this.fill = fill;3432 this.stroke = stroke;3433 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3434};34353436/**3437* Extends mxShape.3438*/3439mxUtils.extend(mxShapeAws3dRds, mxShape);34403441mxShapeAws3dRds.prototype.cst = {3442 RDS : 'mxgraph.aws3d.rds',3443 SHADING_COLORS : 'shadingCols'3444};34453446mxShapeAws3dRds.prototype.customProperties = [3447 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true},3448 {name: 'strokeColor3', dispName: 'Stroke Color 3', type: 'color', defVal:"#ffffff", primary: true}3449];34503451/**3452* Function: paintVertexShape3453* 3454* Paints the vertex shape.3455*/3456mxShapeAws3dRds.prototype.paintVertexShape = function(c, x, y, w, h)3457{3458 c.translate(x, y);3459 3460 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3461 var strokeWidth1 = strokeWidth * w / 123;3462 var strokeWidth2 = strokeWidth * h /133;3463 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');3464 3465 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3466 c.setStrokeWidth(strokeWidth);3467 3468 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);3469 c.setShadow(false);3470 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);3471};34723473mxShapeAws3dRds.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)3474{3475 c.save();3476 c.save();3477 c.setStrokeWidth(2 * strokeWidth);3478 c.setStrokeColor(strokeColor2);3479 c.setLineJoin('round');34803481 c.begin();3482 c.moveTo(0, h * 0.7331);3483 c.lineTo(0, h * 0.3346);3484 c.lineTo(w * 0.126, h * 0.1316);3485 c.lineTo(w * 0.374, 0);3486 c.lineTo(w * 0.626, 0);3487 c.lineTo(w * 0.874, h * 0.1316);3488 c.lineTo(w, h * 0.3346);3489 c.lineTo(w, h * 0.7331);3490 c.lineTo(w * 0.5, h);3491 c.close();3492 c.fillAndStroke();3493};34943495mxShapeAws3dRds.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)3496{3497 var strokeColor3 = mxUtils.getValue(this.style, 'strokeColor3', '#ffffff');34983499 c.restore();3500 c.setShadow(false);3501 c.setFillColor('#000000');3502 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRds.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3503 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3504 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3505 3506 c.begin();3507 c.moveTo(w * 0.126, h * 0.1316);3508 c.lineTo(w * 0.126, h * 0.267);3509 c.lineTo(w * 0.378, h * 0.4023);3510 c.lineTo(w * 0.5, h * 0.6015);3511 c.lineTo(w * 0.5, h);3512 c.lineTo(0, h * 0.7331);3513 c.lineTo(0, h * 0.3346);3514 c.close();3515 c.moveTo(w * 0.874, h * 0.267);3516 c.lineTo(w * 0.874, h * 0.1316);3517 c.lineTo(w, h * 0.3308);3518 c.fill();35193520 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3521 c.begin();3522 c.moveTo(w * 0.5, h);3523 c.lineTo(w * 0.5, h * 0.6015);3524 c.lineTo(w * 0.622, h * 0.4023);3525 c.lineTo(w * 0.874, h * 0.267);3526 c.lineTo(w, h * 0.3308);3527 c.lineTo(w, h * 0.7331);3528 c.close();3529 c.fill();3530 3531 c.restore();35323533 c.setFillColor(strokeColor3);3534 c.setShadow(false);3535 c.begin();3536 c.moveTo(0, h * 0.6053);3537 c.lineTo(w * 0.5, h * 0.8722);3538 c.lineTo(w, h * 0.6053);3539 c.lineTo(w, h * 0.6278);3540 c.lineTo(w * 0.5, h * 0.8947);3541 c.lineTo(0, h * 0.6278);3542 c.close();3543 c.fill();35443545 c.setLineJoin('round');35463547 c.begin();3548 c.moveTo(w * 0.126, h * 0.1316);3549 c.lineTo(w * 0.126, h * 0.267);3550 c.lineTo(w * 0.378, h * 0.4023);3551 c.lineTo(w * 0.5, h * 0.6015);3552 c.lineTo(w * 0.622, h * 0.4023);3553 c.lineTo(w * 0.874, h * 0.267);3554 c.lineTo(w * 0.874, h * 0.1316);3555 c.moveTo(0, h * 0.3346);3556 c.lineTo(w * 0.126, h * 0.267);3557 c.moveTo(w * 0.5, h * 0.6015);3558 c.lineTo(w * 0.5, h);3559 c.moveTo(w, h * 0.3346);3560 c.lineTo(w * 0.87, h * 0.267);3561 c.moveTo(w * 0.378, h * 0.4023);3562 c.lineTo(w * 0.622, h * 0.4023);3563 c.stroke();35643565 c.setStrokeWidth(2 * strokeWidth);3566 c.setStrokeColor(strokeColor2);35673568 c.begin();3569 c.moveTo(0, h * 0.7331);3570 c.lineTo(0, h * 0.3346);3571 c.lineTo(w * 0.126, h * 0.1316);3572 c.lineTo(w * 0.374, 0);3573 c.lineTo(w * 0.626, 0);3574 c.lineTo(w * 0.874, h * 0.1316);3575 c.lineTo(w, h * 0.3346);3576 c.lineTo(w, h * 0.7331);3577 c.lineTo(w * 0.5, h);3578 c.close();3579 c.stroke();3580};35813582mxCellRenderer.registerShape(mxShapeAws3dRds.prototype.cst.RDS, mxShapeAws3dRds);35833584//**********************************************************************************************************************************************************3585//Route 533586//**********************************************************************************************************************************************************3587/**3588* Extends mxShape.3589*/3590function mxShapeAws3dRoute53(bounds, fill, stroke, strokewidth)3591{3592 mxShape.call(this);3593 this.bounds = bounds;3594 this.fill = fill;3595 this.stroke = stroke;3596 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3597};35983599/**3600* Extends mxShape.3601*/3602mxUtils.extend(mxShapeAws3dRoute53, mxShape);36033604mxShapeAws3dRoute53.prototype.cst = {3605 ROUTE_53 : 'mxgraph.aws3d.route53',3606 SHADING_COLORS : 'shadingCols'3607};36083609mxShapeAws3dRoute53.prototype.customProperties = [3610 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}3611];36123613/**3614* Function: paintVertexShape3615* 3616* Paints the vertex shape.3617*/3618mxShapeAws3dRoute53.prototype.paintVertexShape = function(c, x, y, w, h)3619{3620 c.translate(x, y);3621 3622 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3623 var strokeWidth1 = strokeWidth * w / 117;3624 var strokeWidth2 = strokeWidth * h /134.4;3625 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');3626 3627 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3628 c.setStrokeWidth(strokeWidth);3629 3630 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);3631 c.setShadow(false);3632 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);3633};36343635mxShapeAws3dRoute53.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)3636{3637 c.save();3638 c.save();3639 c.setStrokeWidth(2 * strokeWidth);3640 c.setStrokeColor(strokeColor2);3641 c.setLineJoin('round');36423643 c.begin();3644 c.moveTo(0, h * 0.6994);3645 c.lineTo(0, h * 0.2009);3646 c.lineTo(w * 0.0427, h * 0.0781);3647 c.lineTo(w * 0.7974, 0);3648 c.lineTo(w, h * 0.1004);3649 c.lineTo(w, h * 0.5915);3650 c.lineTo(w * 0.8376, h * 0.9784);3651 c.lineTo(w * 0.5983, h);3652 c.close();3653 c.fillAndStroke();3654};36553656mxShapeAws3dRoute53.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)3657{3658 c.restore();3659 c.setShadow(false);3660 c.setFillColor('#000000');3661 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRoute53.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3662 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3663 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3664 3665 c.begin();3666 c.moveTo(0, h * 0.2009);3667 c.lineTo(w * 0.6009, h * 0.5007);3668 c.lineTo(w * 0.8376, h * 0.4799);3669 c.lineTo(w * 0.8376, h * 0.9784);3670 c.lineTo(w * 0.5966, h);3671 c.lineTo(0, h * 0.6979);3672 c.close();3673 c.fill();36743675 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3676 c.begin();3677 c.moveTo(w * 0.8348, h * 0.4861);3678 c.lineTo(w * 0.9985, h * 0.0992);3679 c.lineTo(w, h * 0.5952);3680 c.lineTo(w * 0.8404, h * 0.9747);3681 c.close();3682 c.fill();3683 3684 c.restore();3685 c.setShadow(false);3686 c.setLineJoin('round');36873688 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3689 c.setFillColor(strokeColor);36903691 c.begin();3692 c.moveTo(w * 0.5855, h * 0.1079);3693 c.arcTo(w * 0.094, h * 0.0744, 0, 0, 0, w * 0.6863, h * 0.1548);3694 c.arcTo(w * 0.0855, h * 0.0446, 0, 0, 0, w * 0.7761, h * 0.2031);3695 c.lineTo(w * 0.7726, h * 0.2455);3696 c.arcTo(w * 0.0769, h * 0.0298, 0, 0, 0, w * 0.694, h * 0.2693);3697 c.arcTo(w * 0.0684, h * 0.0446, 0, 0, 1, w * 0.5897, h * 0.3051);3698 c.arcTo(w * 0.4274, h * 0.372, 0, 0, 0, w * 0.4573, h * 0.2753);3699 c.arcTo(w * 0.0855, h * 0.0744, 0, 0, 0, w * 0.4188, h * 0.2344);3700 c.lineTo(w * 0.3846, h * 0.2083);3701 c.arcTo(w * 0.0769, h * 0.0372, 0, 0, 1, w * 0.4103, h * 0.1525);3702 c.arcTo(w * 0.0855, h * 0.0409, 0, 0, 0, w * 0.4906, h * 0.1079);3703 c.close();3704 c.fill();37053706 c.begin();3707 c.moveTo(0, h * 0.2009);3708 c.lineTo(w * 0.6009, h * 0.5007);3709 c.lineTo(w * 0.8376, h * 0.4799);3710 c.lineTo(w * 0.8376, h * 0.9784);3711 c.lineTo(w * 0.5966, h);3712 c.lineTo(0, h * 0.6979);3713 c.close();3714 c.moveTo(w * 0.8348, h * 0.4861);3715 c.lineTo(w * 0.9985, h * 0.0992);3716 c.lineTo(w, h * 0.5952);3717 c.lineTo(w * 0.8404, h * 0.9747);3718 c.close();3719 c.moveTo(w * 0.6009, h * 0.5007);3720 c.lineTo(w * 0.6009, h);3721 c.stroke();37223723 c.setStrokeWidth(2 * strokeWidth);3724 c.setStrokeColor(strokeColor2);37253726 c.begin();3727 c.moveTo(0, h * 0.6994);3728 c.lineTo(0, h * 0.2009);3729 c.lineTo(w * 0.0427, h * 0.0781);3730 c.lineTo(w * 0.7974, 0);3731 c.lineTo(w, h * 0.1004);3732 c.lineTo(w, h * 0.5915);3733 c.lineTo(w * 0.8376, h * 0.9784);3734 c.lineTo(w * 0.5983, h);3735 c.close();3736 c.stroke();3737};37383739mxCellRenderer.registerShape(mxShapeAws3dRoute53.prototype.cst.ROUTE_53, mxShapeAws3dRoute53);37403741//**********************************************************************************************************************************************************3742//S3 Bucket3743//**********************************************************************************************************************************************************3744/**3745* Extends mxShape.3746*/3747function mxShapeAws3dS3Bucket(bounds, fill, stroke, strokewidth)3748{3749 mxShape.call(this);3750 this.bounds = bounds;3751 this.fill = fill;3752 this.stroke = stroke;3753 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3754};37553756/**3757* Extends mxShape.3758*/3759mxUtils.extend(mxShapeAws3dS3Bucket, mxShape);37603761mxShapeAws3dS3Bucket.prototype.cst = {3762 S3_BUCKET : 'mxgraph.aws3d.s3Bucket',3763 SHADING_COLORS : 'shadingCols'3764};37653766mxShapeAws3dS3Bucket.prototype.customProperties = [3767 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}3768];37693770/**3771* Function: paintVertexShape3772* 3773* Paints the vertex shape.3774*/3775mxShapeAws3dS3Bucket.prototype.paintVertexShape = function(c, x, y, w, h)3776{3777 c.translate(x, y);37783779 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3780 var strokeWidth1 = strokeWidth * w / 61.5;3781 var strokeWidth2 = strokeWidth * h / 63.8;3782 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));3783 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');3784 3785 strokeWidth = Math.min(strokeWidth1, strokeWidth2);37863787 c.setShadow(false);3788 c.setStrokeWidth(strokeWidth);3789 c.save();3790 c.save();3791 c.setStrokeWidth(2 * strokeWidth);3792 c.setStrokeColor(strokeColor2);3793 c.setLineJoin('round');37943795 if (isShadow == 1)3796 {3797 c.setShadow(true);3798 }3799 3800 c.begin();3801 c.moveTo(0, h * 0.2774);3802 c.lineTo(w * 0.5, 0);3803 c.lineTo(w, h * 0.2774);3804 c.lineTo(w * 0.7967, h * 0.8307);3805 c.lineTo(w * 0.5, h);3806 c.lineTo(w * 0.1951, h * 0.8307);3807 c.close();3808 c.fillAndStroke();3809 3810 c.restore();3811 c.setFillColor('#000000');3812 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3Bucket.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3813 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3814 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3815 3816 c.begin();3817 c.moveTo(0, h * 0.2774);3818 c.lineTo(w * 0.5, h * 0.5564);3819 c.lineTo(w * 0.5, h);3820 c.lineTo(w * 0.1984, h * 0.8307);3821 c.close();3822 c.fill();38233824 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3825 c.begin();3826 c.moveTo(w * 0.5, h * 0.5533);3827 c.lineTo(w, h * 0.2774);3828 c.lineTo(w * 0.7967, h * 0.8307);3829 c.lineTo(w * 0.5, h);3830 c.close();3831 c.fill();3832 3833 c.restore();3834 c.setLineJoin('round');3835 3836 c.begin();3837 c.moveTo(0, h * 0.2774);3838 c.lineTo(w * 0.5, h * 0.5564);3839 c.lineTo(w, h * 0.2774);3840 c.stroke();38413842 c.begin();3843 c.moveTo(w * 0.5, h * 0.5564);3844 c.lineTo(w * 0.5, h);3845 c.stroke();38463847 c.setStrokeWidth(2 * strokeWidth);3848 c.setStrokeColor(strokeColor2);3849 c.setLineJoin('round');38503851 c.begin();3852 c.moveTo(0, h * 0.2774);3853 c.lineTo(w * 0.5008, 0);3854 c.lineTo(w, h * 0.2774);3855 c.lineTo(w * 0.7967, h * 0.8307);3856 c.lineTo(w * 0.5008, h);3857 c.lineTo(w * 0.1951, h * 0.8307);3858 c.close();3859 c.stroke();3860};38613862mxCellRenderer.registerShape(mxShapeAws3dS3Bucket.prototype.cst.S3_BUCKET, mxShapeAws3dS3Bucket);38633864//**********************************************************************************************************************************************************3865//S33866//**********************************************************************************************************************************************************3867/**3868* Extends mxShape.3869*/3870function mxShapeAws3dS3(bounds, fill, stroke, strokewidth)3871{3872 mxShape.call(this);3873 this.bounds = bounds;3874 this.fill = fill;3875 this.stroke = stroke;3876 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3877};38783879/**3880* Extends mxShape.3881*/3882mxUtils.extend(mxShapeAws3dS3, mxShape);38833884mxShapeAws3dS3.prototype.cst = {3885 S3 : 'mxgraph.aws3d.s3',3886 SHADING_COLORS : 'shadingCols'3887};38883889mxShapeAws3dS3.prototype.customProperties = [3890 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}3891];38923893/**3894* Function: paintVertexShape3895* 3896* Paints the vertex shape.3897*/3898mxShapeAws3dS3.prototype.paintVertexShape = function(c, x, y, w, h)3899{3900 c.translate(x, y);3901 3902 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3903 var strokeWidth1 = strokeWidth * w / 231.5;3904 var strokeWidth2 = strokeWidth * h / 239;3905 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');3906 3907 strokeWidth = Math.min(strokeWidth1, strokeWidth2);39083909 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);3910 c.setShadow(false);3911 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);3912};39133914mxShapeAws3dS3.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)3915{3916 c.setStrokeWidth(strokeWidth);3917 c.save();3918 c.save();3919 c.setStrokeWidth(2 * strokeWidth);3920 c.setStrokeColor(strokeColor2);3921 c.setLineJoin('round');39223923 c.begin();3924 c.moveTo(0, h * 0.7782);3925 c.lineTo(0, h * 0.3406);3926 c.lineTo(w * 0.5974, 0);3927 c.lineTo(w, h * 0.2218);3928 c.lineTo(w, h * 0.6674);3929 c.lineTo(w * 0.3991, h);3930 c.close();3931 c.fillAndStroke();3932};39333934mxShapeAws3dS3.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)3935{3936 c.restore();3937 c.setShadow(false);3938 c.setFillColor('#000000');3939 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3940 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3941 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3942 3943 c.begin();3944 c.moveTo(0, h * 0.3406);3945 c.lineTo(w * 0.3991, h * 0.5548);3946 c.lineTo(w * 0.3991, h);3947 c.lineTo(0, h * 0.7782);3948 c.close();3949 c.fill();39503951 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3952 c.begin();3953 c.moveTo(w * 0.3991, h * 0.5548);3954 c.lineTo(w, h * 0.2218);3955 c.lineTo(w, h * 0.6661);3956 c.lineTo(w * 0.3991, h);3957 c.close();3958 c.fill();3959 3960 c.restore();3961 c.setShadow(false);3962 c.setLineJoin('round');3963 3964 c.begin();3965 c.moveTo(0, h * 0.3406);3966 c.lineTo(w * 0.3991, h * 0.5548);3967 c.lineTo(w, h * 0.2218);3968 c.moveTo(w * 0.3991, h * 0.5548);3969 c.lineTo(w * 0.3991, h);3970 c.moveTo(w * 0.3991, h * 0.3335);3971 c.lineTo(w * 0.2009, h * 0.448);3972 c.lineTo(w * 0.2009, h * 0.8891);3973 c.moveTo(w * 0.5983, h * 0.2209);3974 c.lineTo(w * 0.7948, h * 0.1109);3975 c.moveTo(w * 0.2022, h * 0.2218);3976 c.lineTo(w * 0.5991, h * 0.4448);3977 c.lineTo(w * 0.5991, h * 0.8891);3978 c.moveTo(w * 0.4004, h * 0.1117);3979 c.lineTo(w * 0.7978, h * 0.3335);3980 c.lineTo(w * 0.7978, h * 0.7791);3981 c.stroke();39823983 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3984 c.setFillColor(strokeColor);3985 c.begin();3986 c.moveTo(w * 0.4773, h * 0.2155);3987 c.arcTo(w * 0.0086, h * 0.0046, 0, 0, 1, w * 0.4903, h * 0.2096);3988 c.arcTo(w * 0.2808, h * 0.272, 0, 0, 1, w * 0.6004, h * 0.2619);3989 c.arcTo(w * 0.108, h * 0.105, 0, 0, 1, w * 0.6177, h * 0.277);3990 c.arcTo(w * 0.0065, h * 0.0063, 0, 0, 1, w * 0.6099, h * 0.2879);3991 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.5378, h * 0.2607);3992 c.arcTo(w * 0.216, h * 0.2092, 0, 0, 1, w * 0.4773, h * 0.2155);3993 c.close();3994 c.fill();39953996 c.begin();3997 c.moveTo(w * 0.4687, h * 0.2138);3998 c.arcTo(w * 0.1512, h * 0.1464, 0, 0, 0, w * 0.4838, h * 0.2343);3999 c.arcTo(w * 0.2376, h * 0.2301, 0, 0, 0, w * 0.5529, h * 0.2774);4000 c.arcTo(w * 0.1728, h * 0.1674, 0, 0, 0, w * 0.6091, h * 0.2954);4001 c.lineTo(w * 0.4946, h * 0.3339);4002 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.4549, h * 0.3205);4003 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.419, h * 0.3004);4004 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.3965, h * 0.2795);4005 c.close();4006 c.fill();40074008 c.setStrokeWidth(2 * strokeWidth);4009 c.setStrokeColor(strokeColor2);4010 c.setLineJoin('round');40114012 c.begin();4013 c.moveTo(0, h * 0.7782);4014 c.lineTo(0, h * 0.3406);4015 c.lineTo(w * 0.5974, 0);4016 c.lineTo(w, h * 0.2218);4017 c.lineTo(w, h * 0.6674);4018 c.lineTo(w * 0.3991, h);4019 c.close();4020 c.stroke();4021};40224023mxCellRenderer.registerShape(mxShapeAws3dS3.prototype.cst.S3, mxShapeAws3dS3);40244025//**********************************************************************************************************************************************************4026//SimpleDB4027//**********************************************************************************************************************************************************4028/**4029* Extends mxShape.4030*/4031function mxShapeAws3dSimpleDB(bounds, fill, stroke, strokewidth)4032{4033 mxShape.call(this);4034 this.bounds = bounds;4035 this.fill = fill;4036 this.stroke = stroke;4037 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4038};40394040/**4041* Extends mxShape.4042*/4043mxUtils.extend(mxShapeAws3dSimpleDB, mxShape);40444045mxShapeAws3dSimpleDB.prototype.cst = {4046 SIMPLE_DB : 'mxgraph.aws3d.simpleDb',4047 SHADING_COLORS : 'shadingCols'4048};40494050mxShapeAws3dSimpleDB.prototype.customProperties = [4051 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}4052];40534054/**4055* Function: paintVertexShape4056* 4057* Paints the vertex shape.4058*/4059mxShapeAws3dSimpleDB.prototype.paintVertexShape = function(c, x, y, w, h)4060{4061 c.translate(x, y);4062 4063 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4064 var strokeWidth1 = strokeWidth * w / 123;4065 var strokeWidth2 = strokeWidth * h /133;4066 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');4067 4068 strokeWidth = Math.min(strokeWidth1, strokeWidth2);4069 c.setStrokeWidth(strokeWidth);4070 4071 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);4072 c.setShadow(false);4073 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);4074};40754076mxShapeAws3dSimpleDB.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)4077{4078 c.save();4079 c.save();4080 c.save();4081 c.setStrokeWidth(2 * strokeWidth);4082 c.setStrokeColor(strokeColor2);4083 c.setLineJoin('round');40844085 c.begin();4086 c.moveTo(0, h * 0.7331);4087 c.lineTo(0, h * 0.3346);4088 c.lineTo(w * 0.126, h * 0.1316);4089 c.lineTo(w * 0.374, 0);4090 c.lineTo(w * 0.626, 0);4091 c.lineTo(w * 0.874, h * 0.1316);4092 c.lineTo(w, h * 0.3346);4093 c.lineTo(w, h * 0.7331);4094 c.lineTo(w * 0.5, h);4095 c.close();4096 c.fillAndStroke();4097};40984099mxShapeAws3dSimpleDB.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)4100{4101 c.restore();4102 c.setShadow(false);4103 c.setFillColor('#000000');4104 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4105 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4106 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4107 4108 c.begin();4109 c.moveTo(w * 0.126, h * 0.1316);4110 c.lineTo(w * 0.126, h * 0.267);4111 c.lineTo(w * 0.378, h * 0.4023);4112 c.lineTo(w * 0.5, h * 0.6015);4113 c.lineTo(w * 0.5, h);4114 c.lineTo(0, h * 0.7331);4115 c.lineTo(0, h * 0.3346);4116 c.close();4117 c.moveTo(w * 0.874, h * 0.267);4118 c.lineTo(w * 0.874, h * 0.1316);4119 c.lineTo(w, h * 0.3308);4120 c.fill();41214122 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4123 c.begin();4124 c.moveTo(w * 0.5, h);4125 c.lineTo(w * 0.5, h * 0.6015);4126 c.lineTo(w * 0.622, h * 0.4023);4127 c.lineTo(w * 0.874, h * 0.267);4128 c.lineTo(w, h * 0.3308);4129 c.lineTo(w, h * 0.7331);4130 c.close();4131 c.fill();4132 4133 c.restore();41344135 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4136 c.setFillColor(strokeColor);4137 c.setShadow(false);41384139 c.begin();4140 c.moveTo(w * 0.1821, h * 0.182);4141 c.lineTo(w * 0.4659, h * 0.0308);4142 c.lineTo(w * 0.822, h * 0.2218);4143 c.lineTo(w * 0.539, h * 0.3714);4144 c.close();4145 c.fill();4146 4147 c.setLineJoin('round');41484149 c.begin();4150 c.moveTo(w * 0.126, h * 0.1316);4151 c.lineTo(w * 0.126, h * 0.267);4152 c.lineTo(w * 0.378, h * 0.4023);4153 c.lineTo(w * 0.5, h * 0.6015);4154 c.lineTo(w * 0.622, h * 0.4023);4155 c.lineTo(w * 0.874, h * 0.267);4156 c.lineTo(w * 0.874, h * 0.1316);4157 c.moveTo(0, h * 0.3346);4158 c.lineTo(w * 0.126, h * 0.267);4159 c.moveTo(w * 0.5, h * 0.6015);4160 c.lineTo(w * 0.5, h);4161 c.moveTo(w, h * 0.3346);4162 c.lineTo(w * 0.87, h * 0.267);4163 c.moveTo(w * 0.378, h * 0.4023);4164 c.lineTo(w * 0.622, h * 0.4023);4165 c.stroke();41664167 c.restore();4168 c.setShadow(false);4169 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');4170 c.setStrokeColor(fillColor);4171 c.setStrokeWidth(2.2 * strokeWidth);4172 c.begin();4173 c.moveTo(w * 0.2382, h * 0.2218);4174 c.lineTo(w * 0.5415, h * 0.0602);41754176 c.moveTo(w * 0.3821, h * 0.0564);4177 c.lineTo(w * 0.7737, h * 0.2656);4178 4179 c.moveTo(w * 0.2967, h * 0.0915);4180 c.lineTo(w * 0.7114, h * 0.312);4181 4182 c.moveTo(w * 0.2209, h * 0.1316);4183 c.lineTo(w * 0.6179, h * 0.3434);4184 c.stroke();4185 4186 c.setStrokeWidth(2 * strokeWidth);4187 c.setStrokeColor(strokeColor2);41884189 c.begin();4190 c.moveTo(0, h * 0.7331);4191 c.lineTo(0, h * 0.3346);4192 c.lineTo(w * 0.126, h * 0.1316);4193 c.lineTo(w * 0.374, 0);4194 c.lineTo(w * 0.626, 0);4195 c.lineTo(w * 0.874, h * 0.1316);4196 c.lineTo(w, h * 0.3346);4197 c.lineTo(w, h * 0.7331);4198 c.lineTo(w * 0.5, h);4199 c.close();4200 c.stroke();4201};42024203mxCellRenderer.registerShape(mxShapeAws3dSimpleDB.prototype.cst.SIMPLE_DB, mxShapeAws3dSimpleDB);42044205//**********************************************************************************************************************************************************4206//SQS4207//**********************************************************************************************************************************************************4208/**4209* Extends mxShape.4210*/4211function mxShapeAws3dSqs(bounds, fill, stroke, strokewidth)4212{4213 mxShape.call(this);4214 this.bounds = bounds;4215 this.fill = fill;4216 this.stroke = stroke;4217 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4218};42194220/**4221* Extends mxShape.4222*/4223mxUtils.extend(mxShapeAws3dSqs, mxShape);42244225mxShapeAws3dSqs.prototype.cst = {4226 SQS : 'mxgraph.aws3d.sqs',4227 SHADING_COLORS : 'shadingCols'4228};42294230mxShapeAws3dSqs.prototype.customProperties = [4231 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}4232];42334234/**4235* Function: paintVertexShape4236* 4237* Paints the vertex shape.4238*/4239mxShapeAws3dSqs.prototype.paintVertexShape = function(c, x, y, w, h)4240{4241 c.translate(x, y);4242 4243 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4244 var strokeWidth1 = strokeWidth * w / 184;4245 var strokeWidth2 = strokeWidth * h / 212.75;4246 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');4247 4248 strokeWidth = Math.min(strokeWidth1, strokeWidth2);42494250 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);4251 c.setShadow(false);4252 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);4253};42544255mxShapeAws3dSqs.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)4256{4257 c.setStrokeWidth(strokeWidth);4258 c.save();4259 c.save();4260 c.setStrokeWidth(2 * strokeWidth);4261 c.setStrokeColor(strokeColor2);4262 c.setLineJoin('round');42634264 c.begin();4265 c.moveTo(0, h * 0.7485);4266 c.lineTo(0, h * 0.584);4267 c.lineTo(w * 0.1658, h * 0.1666);4268 c.lineTo(w * 0.5, 0);4269 c.lineTo(w * 0.8337, h * 0.1666);4270 c.lineTo(w, h * 0.584);4271 c.lineTo(w, h * 0.7485);4272 c.lineTo(w * 0.5, h);4273 c.close();4274 c.fillAndStroke();4275};42764277mxShapeAws3dSqs.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)4278{4279 c.restore();4280 c.setShadow(false);4281 c.setFillColor('#000000');4282 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4283 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4284 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4285 4286 c.begin();4287 c.moveTo(w * 0.1658, h * 0.1671);4288 c.lineTo(w * 0.5, h * 0.334);4289 c.lineTo(w * 0.5, h);4290 c.lineTo(0, h * 0.7485);4291 c.lineTo(0, h * 0.584);4292 c.close();4293 c.fill();42944295 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4296 c.begin();4297 c.moveTo(w * 0.5, h * 0.3344);4298 c.lineTo(w * 0.8332, h * 0.1671);4299 c.lineTo(w, h * 0.584);4300 c.lineTo(w, h * 0.7509);4301 c.lineTo(w * 0.5, h);4302 c.close();4303 c.fill();4304 4305 c.restore();4306 c.setShadow(false);4307 c.setLineJoin('round');4308 4309 c.begin();4310 c.moveTo(w * 0.6674, h * 0.0844);4311 c.lineTo(w * 0.3337, h * 0.2512);4312 c.lineTo(w * 0.25, h * 0.7109);4313 c.lineTo(w * 0.25, h * 0.8736);43144315 c.moveTo(w * 0.3326, h * 0.0839);4316 c.lineTo(w * 0.6674, h * 0.2512);4317 c.lineTo(w * 0.75, h * 0.7053);4318 c.lineTo(w * 0.75, h * 0.874);43194320 c.moveTo(0, h * 0.584);4321 c.lineTo(w * 0.5, h * 0.8331);4322 c.lineTo(w, h * 0.584);43234324 c.moveTo(w * 0.1658, h * 0.1671);4325 c.lineTo(w * 0.5, h * 0.334);4326 c.lineTo(w * 0.8332, h * 0.1671);43274328 c.moveTo(w * 0.5, h * 0.334);4329 c.lineTo(w * 0.5, h);4330 c.stroke();43314332 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4333 c.setFillColor(strokeColor);4334 c.begin();4335 c.moveTo(w * 0.3337, h * 0.1511);4336 c.lineTo(w * 0.4668, h * 0.0848);4337 c.lineTo(w * 0.6663, h * 0.184);4338 c.lineTo(w * 0.5337, h * 0.2503);4339 c.close();4340 c.fill();43414342 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');4343 c.setFillColor(fillColor);43444345 c.begin();4346 c.moveTo(w * 0.3902, h * 0.153);4347 c.lineTo(w * 0.4701, h * 0.113);4348 c.lineTo(w * 0.4701, h * 0.153);4349 c.close();4350 c.moveTo(w * 0.4402, h * 0.1784);4351 c.lineTo(w * 0.5196, h * 0.1384);4352 c.lineTo(w * 0.5196, h * 0.1784);4353 c.close();4354 c.moveTo(w * 0.4908, h * 0.2033);4355 c.lineTo(w * 0.5701, h * 0.1633);4356 c.lineTo(w * 0.5701, h * 0.2033);4357 c.close();4358 c.fill();43594360 c.setStrokeWidth(2 * strokeWidth);4361 c.setStrokeColor(strokeColor2);4362 c.setLineJoin('round');43634364 c.begin();4365 c.moveTo(0, h * 0.7485);4366 c.lineTo(0, h * 0.584);4367 c.lineTo(w * 0.1658, h * 0.1666);4368 c.lineTo(w * 0.5, 0);4369 c.lineTo(w * 0.8337, h * 0.1666);4370 c.lineTo(w, h * 0.584);4371 c.lineTo(w, h * 0.7485);4372 c.lineTo(w * 0.5, h);4373 c.close();4374 c.stroke();4375};43764377mxCellRenderer.registerShape(mxShapeAws3dSqs.prototype.cst.SQS, mxShapeAws3dSqs);43784379//**********************************************************************************************************************************************************4380//VPC Gateway4381//**********************************************************************************************************************************************************4382/**4383* Extends mxShape.4384*/4385function mxShapeAws3dVpcGateway(bounds, fill, stroke, strokewidth)4386{4387 mxShape.call(this);4388 this.bounds = bounds;4389 this.fill = fill;4390 this.stroke = stroke;4391 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4392};43934394/**4395* Extends mxShape.4396*/4397mxUtils.extend(mxShapeAws3dVpcGateway, mxShape);43984399mxShapeAws3dVpcGateway.prototype.cst = {4400 VPC_GATEWAY : 'mxgraph.aws3d.vpcGateway',4401 SHADING_COLORS : 'shadingCols'4402};44034404mxShapeAws3dVpcGateway.prototype.customProperties = [4405 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}4406];44074408/**4409* Function: paintVertexShape4410* 4411* Paints the vertex shape.4412*/4413mxShapeAws3dVpcGateway.prototype.paintVertexShape = function(c, x, y, w, h)4414{4415 c.translate(x, y);4416 4417 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4418 var strokeWidth1 = strokeWidth * w / 116.7;4419 var strokeWidth2 = strokeWidth * h / 102.8;4420 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');4421 4422 strokeWidth = Math.min(strokeWidth1, strokeWidth2);44234424 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);4425 c.setShadow(false);4426 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);4427};44284429mxShapeAws3dVpcGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)4430{4431 c.setStrokeWidth(strokeWidth);4432 c.save();4433 c.save();4434 c.save();4435 c.save();4436 c.save();4437 c.setStrokeWidth(2 * strokeWidth);4438 c.setStrokeColor(strokeColor2);4439 c.setLineJoin('round');44404441 c.begin();4442 c.moveTo(w * 0.5801, h * 0.5447);4443 c.lineTo(w * 0.5801, h * 0.035);4444 c.lineTo(w * 0.1054, 0);4445 c.lineTo(0, h * 0.0691);4446 c.lineTo(0, h * 0.4134);4447 c.lineTo(w * 0.3188, h * 0.7247);4448 c.close();4449 c.fillAndStroke();44504451 c.restore();4452 c.save();4453 c.setShadow(false);4454 c.setFillColor('#000000');4455 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4456 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4457 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4458 c.begin();4459 c.moveTo(w * 0.5801, h * 0.5447);4460 c.lineTo(w * 0.5801, h * 0.035);4461 c.lineTo(w * 0.3162, h * 0.2072);4462 c.lineTo(w * 0.3162, h * 0.7247);4463 c.close();4464 c.fill();4465 4466 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4467 c.begin();4468 c.moveTo(w * 0.3162, h * 0.2072);4469 c.lineTo(0, h * 0.0691);4470 c.lineTo(0, h * 0.4134);4471 c.lineTo(w * 0.3162, h * 0.7247);4472 c.close();4473 c.fill();44744475 c.restore();4476 c.setShadow(false);4477 c.begin();4478 c.moveTo(w * 0.5801, h * 0.5447);4479 c.lineTo(w * 0.5801, h * 0.035);4480 c.lineTo(w * 0.3162, h * 0.2072);4481 c.lineTo(w * 0.3162, h * 0.7247);4482 c.close();4483 c.stroke();44844485 c.restore();4486 c.setLineJoin('round');4487 c.setShadow(false);44884489 c.begin();4490 c.moveTo(w * 0.3162, h * 0.2072);4491 c.lineTo(0, h * 0.0691);4492 c.lineTo(0, h * 0.4134);4493 c.lineTo(w * 0.3162, h * 0.7247);4494 c.close();4495 c.stroke();44964497 c.setStrokeWidth(2 * strokeWidth);4498 c.setStrokeColor(strokeColor2);4499 4500 c.begin();4501 c.moveTo(w * 0.5801, h * 0.5447);4502 c.lineTo(w * 0.5801, h * 0.035);4503 c.lineTo(w * 0.1054, 0);4504 c.lineTo(0, h * 0.0691);4505 c.lineTo(0, h * 0.4134);4506 c.lineTo(w * 0.3188, h * 0.7247);4507 c.close();4508 c.stroke();45094510 c.restore();4511 c.setStrokeWidth(2 * strokeWidth);4512 c.setStrokeColor(strokeColor2);4513 c.setLineJoin('round');45144515 c.begin();4516 c.moveTo(w, h * 0.929);4517 c.lineTo(w, h * 0.5866);4518 c.lineTo(w * 0.6829, h * 0.1031);4519 c.lineTo(w * 0.4216, h * 0.2753);4520 c.lineTo(w * 0.4216, h * 0.7928);4521 c.lineTo(w * 0.8946, h);4522 c.close();4523 c.fillAndStroke();4524};45254526mxShapeAws3dVpcGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)4527{4528 c.restore();4529 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4530 c.setShadow(false);4531 c.setLineJoin('round');4532 c.setFillColor('#000000');4533 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4534 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4535 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4536 4537 c.begin();4538 c.moveTo(w, h * 0.929);4539 c.lineTo(w, h * 0.5866);4540 c.lineTo(w * 0.8946, h * 0.6537);4541 c.lineTo(w * 0.8946, h);4542 c.close();4543 c.fill();45444545 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4546 c.begin();4547 c.moveTo(w * 0.8946, h);4548 c.lineTo(w * 0.8946, h * 0.6537);4549 c.lineTo(w * 0.4216, h * 0.2753);4550 c.lineTo(w * 0.4216, h * 0.7928);4551 c.close();4552 c.fill();4553 4554 c.restore();4555 c.setShadow(false);4556 c.setLineJoin('round');4557 4558 c.begin();4559 c.moveTo(w, h * 0.929);4560 c.lineTo(w, h * 0.5866);4561 c.lineTo(w * 0.8946, h * 0.6537);4562 c.lineTo(w * 0.8946, h);4563 c.close();4564 c.stroke();45654566 c.begin();4567 c.moveTo(w * 0.8946, h);4568 c.lineTo(w * 0.8946, h * 0.6537);4569 c.lineTo(w * 0.4216, h * 0.2753);4570 c.lineTo(w * 0.4216, h * 0.7928);4571 c.close();4572 c.stroke();4573 4574 c.setStrokeWidth(2 * strokeWidth);4575 c.setStrokeColor(strokeColor2);4576 c.setLineJoin('round');45774578 c.begin();4579 c.moveTo(w, h * 0.929);4580 c.lineTo(w, h * 0.5866);4581 c.lineTo(w * 0.6829, h * 0.1031);4582 c.lineTo(w * 0.4216, h * 0.2753);4583 c.lineTo(w * 0.4216, h * 0.7928);4584 c.lineTo(w * 0.8946, h);4585 c.close();4586 c.stroke();45874588 c.setFillColor(strokeColor);4589 c.begin();4590 c.moveTo(w * 0.5587, h * 0.7743);4591 c.lineTo(w * 0.5587, h * 0.6274);4592 c.lineTo(w * 0.5775, h * 0.6342);4593 c.lineTo(w * 0.5775, h * 0.57);4594 c.arcTo(w * 0.0428, h * 0.0486, 0, 0, 1, w * 0.6058, h * 0.5253);4595 c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.6564, h * 0.5447);4596 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.6847, h * 0.607);4597 c.lineTo(w * 0.6847, h * 0.6877);4598 c.lineTo(w * 0.7001, h * 0.6946);4599 c.lineTo(w * 0.7001, h * 0.8405);4600 c.close();4601 c.moveTo(w * 0.6564, h * 0.6741);4602 c.lineTo(w * 0.6564, h * 0.6177);4603 c.arcTo(w * 0.06, h * 0.0681, 0, 0, 0, w * 0.6392, h * 0.57);4604 c.arcTo(w * 0.0343, h * 0.0389, 0, 0, 0, w * 0.6195, h * 0.5574);4605 c.arcTo(w * 0.0111, h * 0.0126, 0, 0, 0, w * 0.6058, h * 0.5691);4606 c.lineTo(w * 0.6058, h * 0.6498);4607 c.close();4608 c.fill();4609};46104611mxCellRenderer.registerShape(mxShapeAws3dVpcGateway.prototype.cst.VPC_GATEWAY, mxShapeAws3dVpcGateway);46124613//**********************************************************************************************************************************************************4614//Web Server4615//**********************************************************************************************************************************************************4616/**4617* Extends mxShape.4618*/4619function mxShapeAws3dWebServer(bounds, fill, stroke, strokewidth)4620{4621 mxShape.call(this);4622 this.bounds = bounds;4623 this.fill = fill;4624 this.stroke = stroke;4625 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4626};46274628/**4629* Extends mxShape.4630*/4631mxUtils.extend(mxShapeAws3dWebServer, mxShape);46324633mxShapeAws3dWebServer.prototype.cst = {4634 WEB_SERVER : 'mxgraph.aws3d.webServer',4635 SHADING_COLORS : 'shadingCols'4636};46374638/**4639* Function: paintVertexShape4640* 4641* Paints the vertex shape.4642*/4643mxShapeAws3dWebServer.prototype.paintVertexShape = function(c, x, y, w, h)4644{4645 c.translate(x, y);4646 4647 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4648 var strokeWidth1 = strokeWidth * w / 123;4649 var strokeWidth2 = strokeWidth * h / 106;4650 4651 strokeWidth = Math.min(strokeWidth1, strokeWidth2);46524653 this.background(c, 0, 0, w, h, strokeWidth);4654 c.setShadow(false);4655 this.foreground(c, 0, 0, w, h, strokeWidth);4656};46574658mxShapeAws3dWebServer.prototype.background = function(c, x, y, w, h, strokeWidth)4659{4660 c.setStrokeWidth(strokeWidth);4661 c.save();4662 c.save();4663 c.setStrokeWidth(2 * strokeWidth);4664 c.setStrokeColor('#292929');4665 c.setLineJoin('round');46664667 c.begin();4668 c.moveTo(0, h * 0.6651);4669 c.lineTo(0, h * 0.3349);4670 c.lineTo(w * 0.5, 0);4671 c.lineTo(w, h * 0.3349);4672 c.lineTo(w, h * 0.6651);4673 c.lineTo(w * 0.5, h);4674 c.close();4675 c.fillAndStroke();4676};46774678mxShapeAws3dWebServer.prototype.foreground = function(c, x, y, w, h, strokeWidth)4679{4680 c.restore();4681 c.setShadow(false);4682 c.setFillColor('#000000');4683 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWebServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4684 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4685 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4686 4687 c.begin();4688 c.moveTo(0, h * 0.3349);4689 c.lineTo(w * 0.5, h * 0.6651);4690 c.lineTo(w * 0.5, h);4691 c.lineTo(0, h * 0.6651);4692 c.close();4693 c.fill();46944695 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4696 c.begin();4697 c.moveTo(w * 0.5, h * 0.6651);4698 c.lineTo(w, h * 0.3349);4699 c.lineTo(w, h * 0.6651);4700 c.lineTo(w * 0.5, h);4701 c.close();4702 c.fill();4703 4704 c.restore();4705 c.setShadow(false);4706 c.setLineJoin('round');4707 4708 c.begin();4709 c.moveTo(0, h * 0.3349);4710 c.lineTo(w * 0.5, h * 0.6651);4711 c.lineTo(w * 0.5, h);4712 c.lineTo(0, h * 0.6651);4713 c.close();4714 c.stroke();47154716 c.begin();4717 c.moveTo(w * 0.5, h * 0.6651);4718 c.lineTo(w, h * 0.3349);4719 c.lineTo(w, h * 0.6651);4720 c.lineTo(w * 0.5, h);4721 c.close();4722 c.stroke();4723 4724 c.setLineJoin('miter');4725 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4726 c.setFillColor(strokeColor);4727 c.begin();4728 c.moveTo(w * 0.374, h * 0.5189);4729 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.374, h * 0.4858);4730 c.lineTo(w * 0.4797, h * 0.4151);4731 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.5203, h * 0.4151);4732 c.lineTo(w * 0.626, h * 0.4858);4733 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.626, h * 0.516);4734 c.lineTo(w * 0.5203, h * 0.5868);4735 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.4797, h * 0.5868);4736 c.close();4737 c.fill();47384739 c.setStrokeWidth(2 * strokeWidth);4740 c.setStrokeColor('#292929');4741 c.setLineJoin('round');47424743 c.begin();4744 c.moveTo(0, h * 0.6651);4745 c.lineTo(0, h * 0.3349);4746 c.lineTo(w * 0.5, 0);4747 c.lineTo(w, h * 0.3349);4748 c.lineTo(w, h * 0.6651);4749 c.lineTo(w * 0.5, h);4750 c.close();4751 c.stroke();4752};47534754mxCellRenderer.registerShape(mxShapeAws3dWebServer.prototype.cst.WEB_SERVER, mxShapeAws3dWebServer);47554756//**********************************************************************************************************************************************************4757//DynamoDB4758//**********************************************************************************************************************************************************4759/**4760* Extends mxShape.4761*/4762function mxShapeAws3dDynamoDB(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};47704771/**4772* Extends mxShape.4773*/4774mxUtils.extend(mxShapeAws3dDynamoDB, mxShape);47754776mxShapeAws3dDynamoDB.prototype.cst = {4777 DYNAMO_DB : 'mxgraph.aws3d.dynamoDb',4778 SHADING_COLORS : 'shadingCols'4779};47804781mxShapeAws3dDynamoDB.prototype.customProperties = [4782 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}4783];47844785/**4786* Function: paintVertexShape4787* 4788* Paints the vertex shape.4789*/4790mxShapeAws3dDynamoDB.prototype.paintVertexShape = function(c, x, y, w, h)4791{4792 c.translate(x, y);4793 4794 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4795 var strokeWidth1 = strokeWidth * w / 181.5;4796 var strokeWidth2 = strokeWidth * h / 210;4797 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');4798 4799 strokeWidth = Math.min(strokeWidth1, strokeWidth2);48004801 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);4802 c.setShadow(false);4803 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);4804};48054806mxShapeAws3dDynamoDB.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)4807{4808 c.setStrokeWidth(strokeWidth);4809 c.save();4810 c.save();4811 c.setStrokeWidth(2 * strokeWidth);4812 c.setStrokeColor(strokeColor2);4813 c.setLineJoin('round');48144815 c.begin();4816 c.moveTo(0, h * 0.8333);4817 c.lineTo(0, h * 0.1667);4818 c.lineTo(w * 0.3333, h * 0.0014);4819 c.lineTo(w * 0.4986, h * 0.1667);4820 c.lineTo(w * 0.6639, 0);4821 c.lineTo(w, h * 0.169);4822 c.lineTo(w, h * 0.8333);4823 c.lineTo(w * 0.6667, h);4824 c.lineTo(w * 0.5014, h * 0.9162);4825 c.lineTo(w * 0.3333, h);4826 c.close();4827 c.fillAndStroke();4828};48294830mxShapeAws3dDynamoDB.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)4831{4832 c.restore();4833 c.setShadow(false);4834 c.setFillColor('#000000');4835 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4836 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4837 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4838 4839 c.begin();4840 c.moveTo(w * 0.168, h * 0.3333);4841 c.lineTo(0, h * 0.3333);4842 c.lineTo(w * 0.3333, h * 0.5);4843 c.lineTo(w * 0.3333, h);4844 c.lineTo(0, h * 0.8333);4845 c.lineTo(0, h * 0.1714);4846 c.close();4847 c.moveTo(w * 0.4986, h * 0.1667);4848 c.lineTo(w * 0.6667, 0);4849 c.lineTo(w, h * 0.169);4850 c.lineTo(w * 0.832, h * 0.3348);//4851 c.lineTo(w, h * 0.3333);4852 c.lineTo(w * 0.6667, h * 0.5);4853 c.lineTo(w * 0.5014, h * 0.5);4854 c.lineTo(w * 0.832, h * 0.3348);4855 c.fill();48564857 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4858 c.begin();4859 c.moveTo(w * 0.3333, h * 0.5);4860 c.lineTo(w * 0.4986, h * 0.5);4861 c.lineTo(w * 0.4986, h * 0.9162);4862 c.lineTo(w * 0.3333, h);4863 c.close();4864 c.moveTo(w * 0.6667, h);4865 c.lineTo(w * 0.6667, h * 0.5);4866 c.lineTo(w, h * 0.3333);4867 c.lineTo(w * 0.832, h * 0.3348);4868 c.lineTo(w, h * 0.169);4869 c.lineTo(w, h * 0.831);4870 c.close();4871 c.fill();4872 4873 c.restore();4874 c.setShadow(false);4875 c.setLineJoin('round');4876 4877 c.begin();4878 c.moveTo(w * 0.168, h * 0.3333);4879 c.lineTo(0, h * 0.3333);4880 c.lineTo(w * 0.3333, h * 0.5);4881 c.lineTo(w * 0.3333, h);4882 c.lineTo(0, h * 0.8333);4883 c.lineTo(0, h * 0.1714);4884 c.close();4885 c.moveTo(w * 0.4986, h * 0.1667);4886 c.lineTo(w * 0.6667, 0);4887 c.lineTo(w, h * 0.169);4888 c.lineTo(w * 0.832, h * 0.3348);4889 c.lineTo(w, h * 0.3333);4890 c.lineTo(w * 0.6667, h * 0.5);4891 c.lineTo(w * 0.5014, h * 0.5);4892 c.lineTo(w * 0.832, h * 0.3348);4893 c.close();4894 c.moveTo(w * 0.3333, h * 0.5);4895 c.lineTo(w * 0.4986, h * 0.5);4896 c.lineTo(w * 0.4986, h * 0.9162);4897 c.lineTo(w * 0.3333, h);4898 c.close();4899 c.moveTo(w * 0.6667, h);4900 c.lineTo(w * 0.6667, h * 0.5);4901 c.lineTo(w, h * 0.3333);4902 c.lineTo(w, h * 0.831);4903 c.close();4904 c.moveTo(w * 0.168, h * 0.3333);4905 c.lineTo(w * 0.5, h * 0.1667);4906 c.moveTo(w * 0.168, h * 0.3333);4907 c.lineTo(w * 0.5014, h * 0.5);4908 c.stroke();49094910 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4911 c.setFillColor(strokeColor);4912 c.begin();4913 c.moveTo(w * 0.4876, h * 0.2262);4914 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5647, h * 0.25);4915 c.arcTo(w * 0.4407, h * 0.381, 0, 0, 1, w * 0.6419, h * 0.2905);4916 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.6799, h * 0.32);4917 c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.6634, h * 0.3314);4918 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5978, h * 0.3119);4919 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.508, h * 0.2667);4920 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.4711, h * 0.2343);4921 c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.4876, h * 0.2262);4922 c.close();4923 c.fill();49244925 c.begin();4926 c.moveTo(w * 0.5124, h * 0.4143);4927 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.4683, h * 0.4095);4928 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3829, h * 0.3757);4929 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3196, h * 0.3371);4930 c.arcTo(w * 0.0661, h * 0.0357, 0, 0, 1, w * 0.3058, h * 0.3081);4931 c.lineTo(w * 0.4612, h * 0.2333);4932 c.arcTo(w * 0.0661, h * 0.0476, 0, 0, 0, w * 0.4744, h * 0.2548);4933 c.arcTo(w * 0.3306, h * 0.2857, 0, 0, 0, w * 0.53, h * 0.2905);4934 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 0, w * 0.6198, h * 0.3295);4935 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.665, h * 0.3367);4936 c.close();4937 c.moveTo(w * 0.5052, h * 0.3714);4938 c.arcTo(w * 0.0275, h * 0.019, 0, 0, 1, w * 0.5135, h * 0.3581);4939 c.arcTo(w * 0.0275, h * 0.0238, 0, 0, 1, w * 0.5344, h * 0.3571);4940 c.lineTo(w * 0.5405, h * 0.3471);4941 c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.5278, h * 0.3381);4942 c.arcTo(w * 0.022, h * 0.0119, 0, 0, 1, w * 0.5372, h * 0.3271);4943 c.lineTo(w * 0.5306, h * 0.3186);4944 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.5041, h * 0.3143);4945 c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.4975, h * 0.3029);4946 c.lineTo(w * 0.4777, h * 0.2995);4947 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4628, h * 0.3033);4948 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4408, h * 0.2967);4949 c.lineTo(w * 0.4187, h * 0.3);4950 c.arcTo(w * 0.011, h * 0.0081, 0, 0, 1, w * 0.4132, h * 0.3124);4951 c.arcTo(w * 0.0386, h * 0.0333, 0, 0, 1, w * 0.395, h * 0.3129);4952 c.lineTo(w * 0.3873, h * 0.3224);4953 c.arcTo(w * 0.0165, h * 0.0143, 0, 0, 1, w * 0.3994, h * 0.3333);4954 c.arcTo(w * 0.0138, h * 0.0119, 0, 0, 1, w * 0.3901, h * 0.3433);4955 c.lineTo(w * 0.3994, h * 0.3514);4956 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4215, h * 0.3548);4957 c.arcTo(w * 0.0165, h * 0.0119, 0, 0, 1, w * 0.4298, h * 0.3667);4958 c.lineTo(w * 0.449, h * 0.3714);4959 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4711, h * 0.3657);4960 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4887, h * 0.3724);4961 c.close();4962 c.moveTo(w * 0.4986, h * 0.351);4963 c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 1, w * 0.4804, h * 0.3552);4964 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.443, h * 0.349);4965 c.lineTo(w * 0.4413, h * 0.3529);4966 c.lineTo(w * 0.4242, h * 0.3371);4967 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4545, h * 0.3462);4968 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4793, h * 0.3476);4969 c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 0, w * 0.4986, h * 0.3448);4970 c.close();4971 c.moveTo(w * 0.503, h * 0.3349);4972 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4766, h * 0.3233);4973 c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 0, w * 0.4529, h * 0.32);4974 c.arcTo(w * 0.0551, h * 0.0476, 0, 0, 0, w * 0.4325, h * 0.3238);4975 c.lineTo(w * 0.427, h * 0.3195);4976 c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4556, h * 0.3157);4977 c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4851, h * 0.3232);4978 c.lineTo(w * 0.4876, h * 0.3181);4979 c.close();4980 c.fill();49814982 c.setStrokeWidth(2 * strokeWidth);4983 c.setStrokeColor(strokeColor2);4984 c.setLineJoin('round');49854986 c.begin();4987 c.moveTo(0, h * 0.8333);4988 c.lineTo(0, h * 0.1667);4989 c.lineTo(w * 0.3333, h * 0.0014);4990 c.lineTo(w * 0.4986, h * 0.1667);4991 c.lineTo(w * 0.6639, 0);4992 c.lineTo(w, h * 0.169);4993 c.lineTo(w, h * 0.8333);4994 c.lineTo(w * 0.6667, h);4995 c.lineTo(w * 0.5014, h * 0.9162);4996 c.lineTo(w * 0.3333, h);4997 c.close();4998 c.stroke();4999};50005001mxCellRenderer.registerShape(mxShapeAws3dDynamoDB.prototype.cst.DYNAMO_DB, mxShapeAws3dDynamoDB);50025003//**********************************************************************************************************************************************************5004//Elastic MapReduce5005//**********************************************************************************************************************************************************5006/**5007* Extends mxShape.5008*/5009function mxShapeAws3dElasticMapReduce(bounds, fill, stroke, strokewidth)5010{5011 mxShape.call(this);5012 this.bounds = bounds;5013 this.fill = fill;5014 this.stroke = stroke;5015 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5016};50175018/**5019* Extends mxShape.5020*/5021mxUtils.extend(mxShapeAws3dElasticMapReduce, mxShape);50225023mxShapeAws3dElasticMapReduce.prototype.cst = {5024 ELASTIC_MAP_REDUCE : 'mxgraph.aws3d.elasticMapReduce',5025 SHADING_COLORS : 'shadingCols'5026};50275028mxShapeAws3dElasticMapReduce.prototype.customProperties = [5029 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}5030];50315032/**5033* Function: paintVertexShape5034* 5035* Paints the vertex shape.5036*/5037mxShapeAws3dElasticMapReduce.prototype.paintVertexShape = function(c, x, y, w, h)5038{5039 c.translate(x, y);5040 5041 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5042 var strokeWidth1 = strokeWidth * w / 123;5043 var strokeWidth2 = strokeWidth * h /133;5044 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');5045 5046 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5047 c.setStrokeWidth(strokeWidth);5048 5049 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);5050 c.setShadow(false);5051 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);5052};50535054mxShapeAws3dElasticMapReduce.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)5055{5056 c.save();5057 c.save();5058 c.setStrokeWidth(2 * strokeWidth);5059 c.setStrokeColor(strokeColor2);5060 c.setLineJoin('round');50615062 c.begin();5063 c.moveTo(0, h * 0.7331);5064 c.lineTo(0, h * 0.3346);5065 c.lineTo(w * 0.126, h * 0.1316);5066 c.lineTo(w * 0.374, 0);5067 c.lineTo(w * 0.626, 0);5068 c.lineTo(w * 0.874, h * 0.1316);5069 c.lineTo(w, h * 0.3346);5070 c.lineTo(w, h * 0.7331);5071 c.lineTo(w * 0.5, h);5072 c.close();5073 c.fillAndStroke();5074};50755076mxShapeAws3dElasticMapReduce.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)5077{5078 c.restore();5079 c.setShadow(false);5080 c.setFillColor('#000000');5081 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');5082 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');5083 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 5084 5085 c.begin();5086 c.moveTo(w * 0.126, h * 0.1316);5087 c.lineTo(w * 0.126, h * 0.267);5088 c.lineTo(w * 0.378, h * 0.4023);5089 c.lineTo(w * 0.5, h * 0.6015);5090 c.lineTo(w * 0.5, h);5091 c.lineTo(0, h * 0.7331);5092 c.lineTo(0, h * 0.3346);5093 c.close();5094 c.moveTo(w * 0.874, h * 0.267);5095 c.lineTo(w * 0.874, h * 0.1316);5096 c.lineTo(w, h * 0.3308);5097 c.fill();50985099 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 5100 c.begin();5101 c.moveTo(w * 0.5, h);5102 c.lineTo(w * 0.5, h * 0.6015);5103 c.lineTo(w * 0.622, h * 0.4023);5104 c.lineTo(w * 0.874, h * 0.267);5105 c.lineTo(w, h * 0.3308);5106 c.lineTo(w, h * 0.7331);5107 c.close();5108 c.fill();5109 5110 c.restore();51115112 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5113 c.setFillColor(strokeColor);5114 c.setShadow(false);51155116 c.begin();5117 c.moveTo(w * 0.3336, h * 0.1789);5118 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.359, h * 0.1789);5119 c.lineTo(w * 0.4001, h * 0.2015);5120 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4008, h * 0.2135);5121 c.lineTo(w * 0.3574, h * 0.2368);5122 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.3352, h * 0.2368);5123 c.lineTo(w * 0.2934, h * 0.2143);5124 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.2934, h * 0.2015);5125 c.close();5126 c.moveTo(w * 0.3705, h * 0.1729);5127 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3705, h * 0.1602);5128 c.lineTo(w * 0.4139, h * 0.1368);5129 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4336, h * 0.1368);5130 c.lineTo(w * 0.4811, h * 0.1617);5131 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4811, h * 0.1708);5132 c.lineTo(w * 0.4328, h * 0.1955);5133 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4156, h * 0.1955);5134 c.close();5135 c.moveTo(w * 0.4467, h * 0.1308);5136 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4467, h * 0.1203);5137 c.lineTo(w * 0.491, h * 0.0962);5138 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5123, h * 0.0962);5139 c.lineTo(w * 0.559, h * 0.1203);5140 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.559, h * 0.1293);5141 c.lineTo(w * 0.5123, h * 0.1549);5142 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4918, h * 0.1549);5143 c.close();5144 c.moveTo(w * 0.568, h * 0.1383);5145 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5918, h * 0.1383);5146 c.lineTo(w * 0.6361, h * 0.1624);5147 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6366, h * 0.1714);5148 c.lineTo(w * 0.5885, h * 0.1955);5149 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.568, h * 0.1955);5150 c.lineTo(w * 0.523, h * 0.1714);5151 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.523, h * 0.1616);5152 c.close();5153 c.moveTo(w * 0.6451, h * 0.1789);5154 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6697, h * 0.1789);5155 c.lineTo(w * 0.7123, h * 0.2023);5156 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.7123, h * 0.2128);5157 c.lineTo(w * 0.6664, h * 0.2376);5158 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6492, h * 0.2376);5159 c.lineTo(w * 0.6016, h * 0.2135);5160 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6016, h * 0.2023);5161 c.close();5162 c.moveTo(w * 0.6369, h * 0.2451);5163 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6369, h * 0.2526);5164 c.lineTo(w * 0.5172, h * 0.3173);5165 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4893, h * 0.3173);5166 c.lineTo(w * 0.3697, h * 0.2541);5167 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3697, h * 0.2436);5168 c.lineTo(w * 0.4918, h * 0.1782);5169 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5131, h * 0.1782);5170 c.close();5171 c.fill();51725173 c.moveTo(w * 0., h * 0.);5174 c.lineTo(w * 0., h * 0.);5175 c.arcTo(w * 0., h * 0., 0, 0, 1, w * 0., h * 0.);5176 5177 c.setLineJoin('round');51785179 c.begin();5180 c.moveTo(w * 0.126, h * 0.1316);5181 c.lineTo(w * 0.126, h * 0.267);5182 c.lineTo(w * 0.378, h * 0.4023);5183 c.lineTo(w * 0.5, h * 0.6015);5184 c.lineTo(w * 0.622, h * 0.4023);5185 c.lineTo(w * 0.874, h * 0.267);5186 c.lineTo(w * 0.874, h * 0.1316);5187 c.moveTo(0, h * 0.3346);5188 c.lineTo(w * 0.126, h * 0.267);5189 c.moveTo(w * 0.5, h * 0.6015);5190 c.lineTo(w * 0.5, h);5191 c.moveTo(w, h * 0.3346);5192 c.lineTo(w * 0.87, h * 0.267);5193 c.moveTo(w * 0.378, h * 0.4023);5194 c.lineTo(w * 0.622, h * 0.4023);5195 c.stroke();51965197 c.setStrokeWidth(2 * strokeWidth);5198 c.setStrokeColor(strokeColor2);51995200 c.begin();5201 c.moveTo(0, h * 0.7331);5202 c.lineTo(0, h * 0.3346);5203 c.lineTo(w * 0.126, h * 0.1316);5204 c.lineTo(w * 0.374, 0);5205 c.lineTo(w * 0.626, 0);5206 c.lineTo(w * 0.874, h * 0.1316);5207 c.lineTo(w, h * 0.3346);5208 c.lineTo(w, h * 0.7331);5209 c.lineTo(w * 0.5, h);5210 c.close();5211 c.stroke();5212};52135214mxCellRenderer.registerShape(mxShapeAws3dElasticMapReduce.prototype.cst.ELASTIC_MAP_REDUCE, mxShapeAws3dElasticMapReduce);52155216//**********************************************************************************************************************************************************5217//RDS Slave5218//**********************************************************************************************************************************************************5219/**5220* Extends mxShape.5221*/5222function mxShapeAws3dRdsSlave(bounds, fill, stroke, strokewidth)5223{5224 mxShape.call(this);5225 this.bounds = bounds;5226 this.fill = fill;5227 this.stroke = stroke;5228 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5229};52305231/**5232* Extends mxShape.5233*/5234mxUtils.extend(mxShapeAws3dRdsSlave, mxShape);52355236mxShapeAws3dRdsSlave.prototype.cst = {5237 RDS_SLAVE : 'mxgraph.aws3d.rdsSlave'5238};52395240mxShapeAws3dRdsSlave.prototype.customProperties = [5241 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}5242];52435244/**5245* Function: paintVertexShape5246* 5247* Paints the vertex shape.5248*/5249mxShapeAws3dRdsSlave.prototype.paintVertexShape = function(c, x, y, w, h)5250{5251 c.translate(x, y);5252 5253 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5254 var strokeWidth1 = strokeWidth * w / 123;5255 var strokeWidth2 = strokeWidth * h /133;5256 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');5257 5258 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5259 c.setStrokeWidth(strokeWidth);5260 5261 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);5262 c.setShadow(false);5263 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);5264};52655266mxShapeAws3dRdsSlave.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)5267{5268 c.save();5269 c.save();5270 c.setStrokeWidth(2 * strokeWidth);5271 c.setStrokeColor(strokeColor2);5272 c.setLineJoin('round');52735274 c.begin();5275 c.moveTo(0, h * 0.7331);5276 c.lineTo(0, h * 0.3346);5277 c.lineTo(w * 0.126, h * 0.1316);5278 c.lineTo(w * 0.374, 0);5279 c.lineTo(w * 0.626, 0);5280 c.lineTo(w * 0.874, h * 0.1316);5281 c.lineTo(w, h * 0.3346);5282 c.lineTo(w, h * 0.7331);5283 c.lineTo(w * 0.5, h);5284 c.close();5285 c.fillAndStroke();5286};52875288mxShapeAws3dRdsSlave.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)5289{5290 c.restore();5291 c.setShadow(false);5292 c.setFillColor('#000000');5293 c.setAlpha('0.1');5294 5295 c.begin();5296 c.moveTo(w * 0.126, h * 0.1316);5297 c.lineTo(w * 0.126, h * 0.267);5298 c.lineTo(w * 0.378, h * 0.4023);5299 c.lineTo(w * 0.5, h * 0.6015);5300 c.lineTo(w * 0.5, h);5301 c.lineTo(0, h * 0.7331);5302 c.lineTo(0, h * 0.3346);5303 c.close();5304 c.moveTo(w * 0.874, h * 0.267);5305 c.lineTo(w * 0.874, h * 0.1316);5306 c.lineTo(w, h * 0.3308);5307 c.fill();53085309 c.setAlpha('0.3');5310 c.begin();5311 c.moveTo(w * 0.5, h);5312 c.lineTo(w * 0.5, h * 0.6015);5313 c.lineTo(w * 0.622, h * 0.4023);5314 c.lineTo(w * 0.874, h * 0.267);5315 c.lineTo(w, h * 0.3308);5316 c.lineTo(w, h * 0.7331);5317 c.close();5318 c.fill();5319 5320 c.restore();53215322 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5323 c.setFillColor(strokeColor);5324 c.setShadow(false);53255326 c.begin();5327 c.moveTo(w * 0.2457, h * 0.2137);5328 c.lineTo(w * 0.5393, h * 0.0593);5329 c.lineTo(w * 0.6875, h * 0.1377);5330 c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.7137, h * 0.1625);5331 c.arcTo(w * 0.0348, h * 0.032, 0, 0, 1, w * 0.7076, h * 0.1968);5332 c.arcTo(w * 0.1743, h * 0.1599, 0, 0, 1, w * 0.6597, h * 0.2249);5333 c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5943, h * 0.232);5334 c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5542, h * 0.2225);5335 c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.5673, h * 0.2353);5336 c.arcTo(w * 0.0261, h * 0.024, 0, 0, 1, w * 0.5611, h * 0.2729);5337 c.lineTo(w * 0.4889, h * 0.316);5338 c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.4766, h * 0.3352);5339 c.lineTo(w * 0.4052, h * 0.2992);5340 c.arcTo(w * 0.0173, h * 0.0159, 0, 0, 1, w * 0.4121, h * 0.2841);5341 c.lineTo(w * 0.4914, h * 0.2368);5342 c.arcTo(w * 0.0218, h * 0.02, 0, 0, 0, w * 0.4897, h * 0.2129);5343 c.lineTo(w * 0.4409, h * 0.1857);5344 c.lineTo(w * 0.3145, h * 0.2529);5345 c.close();5346 c.moveTo(w * 0.4801, h * 0.1633);5347 c.lineTo(w * 0.5263, h * 0.1865);5348 c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 0, w * 0.583, h * 0.1905);5349 c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 0, w * 0.6196, h * 0.1721);5350 c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.6117, h * 0.1441);5351 c.lineTo(w * 0.5655, h * 0.1193);5352 c.fill();53535354 c.setLineJoin('round');53555356 c.begin();5357 c.moveTo(w * 0.126, h * 0.1316);5358 c.lineTo(w * 0.126, h * 0.267);5359 c.lineTo(w * 0.378, h * 0.4023);5360 c.lineTo(w * 0.5, h * 0.6015);5361 c.lineTo(w * 0.622, h * 0.4023);5362 c.lineTo(w * 0.874, h * 0.267);5363 c.lineTo(w * 0.874, h * 0.1316);5364 c.moveTo(0, h * 0.3346);5365 c.lineTo(w * 0.126, h * 0.267);5366 c.moveTo(w * 0.5, h * 0.6015);5367 c.lineTo(w * 0.5, h);5368 c.moveTo(w, h * 0.3346);5369 c.lineTo(w * 0.87, h * 0.267);5370 c.moveTo(w * 0.378, h * 0.4023);5371 c.lineTo(w * 0.622, h * 0.4023);5372 c.stroke();53735374 c.setStrokeWidth(2 * strokeWidth);5375 c.setStrokeColor(strokeColor2);53765377 c.begin();5378 c.moveTo(0, h * 0.7331);5379 c.lineTo(0, h * 0.3346);5380 c.lineTo(w * 0.126, h * 0.1316);5381 c.lineTo(w * 0.374, 0);5382 c.lineTo(w * 0.626, 0);5383 c.lineTo(w * 0.874, h * 0.1316);5384 c.lineTo(w, h * 0.3346);5385 c.lineTo(w, h * 0.7331);5386 c.lineTo(w * 0.5, h);5387 c.close();5388 c.stroke();5389};53905391mxCellRenderer.registerShape(mxShapeAws3dRdsSlave.prototype.cst.RDS_SLAVE, mxShapeAws3dRdsSlave);53925393//**********************************************************************************************************************************************************5394//AMI5395//**********************************************************************************************************************************************************5396/**5397* Extends mxShape.5398*/5399function mxShapeAws3dAMI2(bounds, fill, stroke, strokewidth)5400{5401 mxShape.call(this);5402 this.bounds = bounds;5403 this.fill = fill;5404 this.stroke = stroke;5405 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5406};54075408/**5409* Extends mxShape.5410*/5411mxUtils.extend(mxShapeAws3dAMI2, mxShape);54125413mxShapeAws3dAMI2.prototype.cst = {5414 AMI_2 : 'mxgraph.aws3d.ami2',5415 SHADING_COLORS : 'shadingCols'5416};54175418mxShapeAws3dAMI2.prototype.customProperties = [5419 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}5420];54215422/**5423* Function: paintVertexShape5424* 5425* Paints the vertex shape.5426*/5427mxShapeAws3dAMI2.prototype.paintVertexShape = function(c, x, y, w, h)5428{5429 c.translate(x, y);54305431 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5432 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));5433 var strokeWidth1 = strokeWidth * w / 92;5434 var strokeWidth2 = strokeWidth * h / 60;5435 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');5436 5437 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5438 5439 c.setStrokeWidth(strokeWidth);5440 c.setShadow(false);5441 c.save();5442 c.save();5443 c.setStrokeWidth(2 * strokeWidth);5444 c.setStrokeColor(strokeColor2);5445 c.setLineJoin('round');54465447 if (isShadow == 1)5448 {5449 c.setShadow(true);5450 }54515452 c.begin();5453 c.moveTo(0, h * 0.572);5454 c.lineTo(w * 0.0865, h * 0.284);5455 c.lineTo(w * 0.4203, 0);5456 c.lineTo(w * 0.5865, 0);5457 c.lineTo(w * 0.919, h * 0.286);5458 c.lineTo(w, h * 0.566);5459 c.lineTo(w * 0.5027, h);5460 c.close();5461 c.fillAndStroke();5462 5463 c.restore();5464 c.setFillColor('#000000');5465 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');5466 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');5467 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 5468 5469 c.begin();5470 c.moveTo(0, h * 0.566);5471 c.lineTo(w * 0.0892, h * 0.282);5472 c.lineTo(w * 0.0878, h * 0.426);5473 c.lineTo(w * 0.4216, h * 0.712);5474 c.lineTo(w * 0.5865, h * 0.712);5475 c.lineTo(w * 0.5027, h);5476 c.close();5477 c.fill();54785479 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 5480 c.begin();5481 c.moveTo(w * 0.5027, h);5482 c.lineTo(w * 0.5865, h * 0.712);5483 c.lineTo(w * 0.9176, h * 0.43);5484 c.lineTo(w, h * 0.566);5485 c.close();5486 c.fill();5487 5488 c.restore();5489 c.setLineJoin('round');5490 5491 c.begin();5492 c.moveTo(0, h * 0.566);5493 c.lineTo(w * 0.0892, h * 0.282);5494 c.lineTo(w * 0.0878, h * 0.426);5495 c.lineTo(w * 0.4216, h * 0.712);5496 c.lineTo(w * 0.5865, h * 0.712);5497 c.lineTo(w * 0.5027, h);5498 c.close();5499 c.moveTo(w * 0.5027, h);5500 c.lineTo(w * 0.5865, h * 0.712);5501 c.lineTo(w * 0.9176, h * 0.43);5502 c.lineTo(w, h * 0.566);5503 c.close();5504 c.moveTo(0, h * 0.572);5505 c.lineTo(w * 0.0892, h * 0.422);5506 c.moveTo(w * 0.5027, h);5507 c.lineTo(w * 0.4189, h * 0.708);5508 c.moveTo(w * 0.9176, h * 0.43);5509 c.lineTo(w * 0.9176, h * 0.29);5510 c.stroke();5511 5512 c.setStrokeWidth(2 * strokeWidth);5513 c.setLineJoin('round');5514 c.begin();5515 c.moveTo(w * 0.2095, h * 0.376);5516 c.lineTo(w * 0.527, h * 0.104);5517 c.lineTo(w * 0.6338, h * 0.194);5518 c.lineTo(w * 0.3149, h * 0.468);5519 c.close();5520 c.moveTo(w * 0.3716, h * 0.518);5521 c.lineTo(w * 0.6892, h * 0.246);5522 c.lineTo(w * 0.796, h * 0.336);5523 c.lineTo(w * 0.477, h * 0.61);5524 c.close();5525 c.moveTo(w * 0.3108, h * 0.282);5526 c.lineTo(w * 0.4257, h * 0.38);5527 c.moveTo(w * 0.4189, h * 0.194);5528 c.lineTo(w * 0.5297, h * 0.288);5529 c.moveTo(w * 0.5838, h * 0.338);5530 c.lineTo(w * 0.6892, h * 0.426);5531 c.moveTo(w * 0.4757, h * 0.426);5532 c.lineTo(w * 0.5838, h * 0.518);5533 c.stroke();55345535 c.setStrokeColor(strokeColor2);55365537 c.begin();5538 c.moveTo(0, h * 0.572);5539 c.lineTo(w * 0.0865, h * 0.284);5540 c.lineTo(w * 0.4203, 0);5541 c.lineTo(w * 0.5865, 0);5542 c.lineTo(w * 0.919, h * 0.286);5543 c.lineTo(w, h * 0.566);5544 c.lineTo(w * 0.5027, h);5545 c.close();5546 c.stroke();5547};55485549mxCellRenderer.registerShape(mxShapeAws3dAMI2.prototype.cst.AMI_2, mxShapeAws3dAMI2);55505551//**********************************************************************************************************************************************************5552//EBS5553//**********************************************************************************************************************************************************5554/**5555* Extends mxShape.5556*/5557function mxShapeAws3dEbs(bounds, fill, stroke, strokewidth)5558{5559 mxShape.call(this);5560 this.bounds = bounds;5561 this.fill = fill;5562 this.stroke = stroke;5563 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5564};55655566/**5567* Extends mxShape.5568*/5569mxUtils.extend(mxShapeAws3dEbs, mxShape);55705571mxShapeAws3dEbs.prototype.cst = {5572 EBS : 'mxgraph.aws3d.ebs',5573 SHADING_COLORS : 'shadingCols'5574};55755576mxShapeAws3dEbs.prototype.customProperties = [5577 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}5578];55795580/**5581* Function: paintVertexShape5582* 5583* Paints the vertex shape.5584*/5585mxShapeAws3dEbs.prototype.paintVertexShape = function(c, x, y, w, h)5586{5587 c.translate(x, y);55885589 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5590 var strokeWidth1 = strokeWidth * w / 92;5591 var strokeWidth2 = strokeWidth * h / 60;5592 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));5593 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');5594 5595 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5596 5597 c.setStrokeWidth(strokeWidth);5598 c.setShadow(false);5599 c.save();5600 c.save();5601 c.setStrokeWidth(2 * strokeWidth);5602 c.setStrokeColor(strokeColor2);5603 c.setLineJoin('round');56045605 if(isShadow == 1)5606 {5607 c.setShadow(true);5608 }5609 5610 c.begin();5611 c.moveTo(0, h * 0.5276);5612 c.lineTo(0, h * 0.4188);5613 c.lineTo(w * 0.071, h * 0.2898);5614 c.lineTo(w * 0.4033, 0);5615 c.lineTo(w * 0.9301, h * 0.464);5616 c.lineTo(w, h * 0.5863);5617 c.lineTo(w, h * 0.7035);5618 c.lineTo(w * 0.6667, h);5619 c.lineTo(w * 0.5355, h);5620 c.close();5621 c.fillAndStroke();5622 5623 c.restore();5624 c.setFillColor('#000000');5625 5626 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');5627 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');5628 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 5629 5630 c.begin();5631 c.moveTo(w * 0.071, h * 0.2948);5632 c.lineTo(w * 0.6011, h * 0.7621);5633 c.lineTo(w * 0.6667, h);5634 c.lineTo(w * 0.5355, h);5635 c.lineTo(0, h * 0.5276);5636 c.lineTo(0, h * 0.4137);5637 c.close();5638 c.fill();56395640 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 5641 c.begin();5642 c.moveTo(w * 0.6011, h * 0.7655);5643 c.lineTo(w * 0.9344, h * 0.4724);5644 c.lineTo(w, h * 0.7035);5645 c.lineTo(w * 0.6667, h);5646 c.close();5647 c.fill();5648 5649 c.restore();5650 c.setLineJoin('round');5651 5652 c.begin();5653 c.moveTo(w * 0.071, h * 0.2948);5654 c.lineTo(w * 0.6011, h * 0.7621);5655 c.lineTo(w * 0.6667, h);5656 c.lineTo(w * 0.5355, h);5657 c.lineTo(0, h * 0.5276);5658 c.lineTo(0, h * 0.4137);5659 c.close();5660 c.moveTo(w * 0.6011, h * 0.7655);5661 c.lineTo(w * 0.9344, h * 0.4724);5662 c.lineTo(w, h * 0.7035);5663 c.lineTo(w * 0.6667, h);5664 c.close();5665 c.moveTo(w * 0.0033, h * 0.5276);5666 c.lineTo(w * 0.071, h * 0.2898);5667 c.moveTo(w * 0.5325, h * 0.9976);5668 c.lineTo(w * 0.603, h * 0.7593);5669 c.stroke();56705671 c.setStrokeWidth(2 * strokeWidth);5672 c.setStrokeColor(strokeColor2);5673 c.setLineJoin('round');56745675 c.begin();5676 c.moveTo(0, h * 0.5276);5677 c.lineTo(0, h * 0.4188);5678 c.lineTo(w * 0.071, h * 0.2898);5679 c.lineTo(w * 0.4033, 0);5680 c.lineTo(w * 0.9301, h * 0.464);5681 c.lineTo(w, h * 0.5863);5682 c.lineTo(w, h * 0.7035);5683 c.lineTo(w * 0.6667, h);5684 c.lineTo(w * 0.5355, h);5685 c.close();5686 c.stroke();5687};56885689mxCellRenderer.registerShape(mxShapeAws3dEbs.prototype.cst.EBS, mxShapeAws3dEbs);56905691//**********************************************************************************************************************************************************5692//Oracle Server5693//**********************************************************************************************************************************************************5694/**5695* Extends mxShape.5696*/5697function mxShapeAws3dOracleServer(bounds, fill, stroke, strokewidth)5698{5699 mxShape.call(this);5700 this.bounds = bounds;5701 this.fill = fill;5702 this.stroke = stroke;5703 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5704};57055706/**5707* Extends mxShape.5708*/5709mxUtils.extend(mxShapeAws3dOracleServer, mxShape);57105711mxShapeAws3dOracleServer.prototype.cst = {5712 ORACLE_SERVER : 'mxgraph.aws3d.oracleServer'5713};57145715mxShapeAws3dOracleServer.prototype.customProperties = [5716 {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color', defVal:"#ff0000", primary: true},5717 {name: 'fillColor3', dispName: 'Fill Color 3', type: 'color', defVal:"#ffffff", primary: true},5718 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}5719];57205721/**5722* Function: paintVertexShape5723* 5724* Paints the vertex shape.5725*/5726mxShapeAws3dOracleServer.prototype.paintVertexShape = function(c, x, y, w, h)5727{5728 c.translate(x, y);5729 5730 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5731 var strokeWidth1 = strokeWidth * w / 123;5732 var strokeWidth2 = strokeWidth * h /133;5733 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');5734 5735 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5736 c.setStrokeWidth(strokeWidth);5737 5738 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);5739 c.setShadow(false);5740 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);5741};57425743mxShapeAws3dOracleServer.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)5744{5745 c.save();5746 c.save();5747 c.save();5748 c.setStrokeWidth(2 * strokeWidth);5749 c.setStrokeColor(strokeColor2);5750 c.setLineJoin('round');57515752 c.begin();5753 c.moveTo(0, h * 0.7464);5754 c.lineTo(0, h * 0.25);5755 c.lineTo(w * 0.5, 0);5756 c.lineTo(w, h * 0.25);5757 c.lineTo(w, h * 0.7464);5758 c.lineTo(w * 0.5, h);5759 c.close();5760 c.fillAndStroke();5761};57625763mxShapeAws3dOracleServer.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)5764{5765 var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#ff0000');5766 var fillColor3 = mxUtils.getValue(this.style, 'fillColor3', '#ffffff');57675768 c.restore();5769 c.setShadow(false);5770 c.setFillColor('#000000');5771 c.setAlpha('0.1');5772 5773 c.begin();5774 c.moveTo(0, h * 0.7464);5775 c.lineTo(0, h * 0.25);5776 c.lineTo(w * 0.5, h * 0.5);5777 c.lineTo(w * 0.5, h);5778 c.close();5779 c.fill();57805781 c.setAlpha('0.3');5782 c.begin();5783 c.moveTo(w * 0.5, h * 0.5);5784 c.lineTo(w, h * 0.25);5785 c.lineTo(w, h * 0.7464);5786 c.lineTo(w * 0.5, h);5787 c.close();5788 c.fill();5789 5790 c.restore();5791 c.setShadow(false);5792 c.setLineJoin('round');5793 5794 c.setFillColor(fillColor2);57955796 c.begin();5797 c.moveTo(0, h * 0.5866);5798 c.lineTo(w * 0.5, h * 0.8359);5799 c.lineTo(w, h * 0.5866);5800 c.lineTo(w, h * 0.6986);5801 c.lineTo(w * 0.5, h * 0.9486);5802 c.lineTo(0, h * 0.6986);5803 c.fill();58045805 c.setStrokeWidth(0.5 * strokeWidth);5806 c.setStrokeColor(fillColor3);5807 c.setFillColor(fillColor3);5808 5809 c.begin();5810 c.moveTo(0, h * 0.5866);5811 c.lineTo(w * 0.5, h * 0.8359);5812 c.lineTo(w, h * 0.5866);5813 c.moveTo(w, h * 0.6986);5814 c.lineTo(w * 0.5, h * 0.9486);5815 c.lineTo(0, h * 0.6986);5816 c.stroke();5817 5818 c.begin();5819 c.moveTo(w * 0.0813, h * 0.7113);5820 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);5821 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);5822 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);5823 c.lineTo(w * 0.122, h * 0.6754);5824 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);5825 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);5826 c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);5827 c.close();5828 c.moveTo(w * 0.1163, h * 0.7183);5829 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);5830 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);5831 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);5832 c.lineTo(w * 0.087, h * 0.6676);5833 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);5834 c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);5835 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);5836 c.close();5837 c.moveTo(w * 0.1439, h * 0.743);5838 c.lineTo(w * 0.1439, h * 0.6866);5839 c.lineTo(w * 0.1846, h * 0.707);5840 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);5841 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);5842 c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);5843 c.lineTo(w * 0.1992, h * 0.769);5844 c.lineTo(w * 0.187, h * 0.7641);5845 c.lineTo(w * 0.1577, h * 0.7218);5846 c.lineTo(w * 0.1854, h * 0.7345);5847 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);5848 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);5849 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);5850 c.lineTo(w * 0.1528, h * 0.7007);5851 c.lineTo(w * 0.1528, h * 0.7472);5852 c.close();5853 c.moveTo(w * 0.2008, h * 0.7711);5854 c.lineTo(w * 0.2293, h * 0.7338);5855 c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);5856 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);5857 c.lineTo(w * 0.2699, h * 0.8035);5858 c.lineTo(w * 0.2602, h * 0.8007);5859 c.lineTo(w * 0.252, h * 0.7859);5860 c.lineTo(w * 0.2293, h * 0.7754);5861 c.lineTo(w * 0.2244, h * 0.7634);5862 c.lineTo(w * 0.248, h * 0.7739);5863 c.lineTo(w * 0.235, h * 0.7444);5864 c.lineTo(w * 0.2122, h * 0.7768);5865 c.close();5866 c.moveTo(w * 0.3244, h * 0.8225);5867 c.lineTo(w * 0.3171, h * 0.8289);5868 c.lineTo(w * 0.2854, h * 0.8127);5869 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);5870 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);5871 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);5872 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);5873 c.lineTo(w * 0.3228, h * 0.7761);5874 c.lineTo(w * 0.3179, h * 0.7831);5875 c.lineTo(w * 0.2878, h * 0.7683);5876 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);5877 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);5878 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);5879 c.close();5880 c.moveTo(w * 0.3276, h * 0.7789);5881 c.lineTo(w * 0.3366, h * 0.7831);5882 c.lineTo(w * 0.3366, h * 0.8289);5883 c.lineTo(w * 0.3805, h * 0.8507);5884 c.lineTo(w * 0.3748, h * 0.857);5885 c.lineTo(w * 0.3317, h * 0.8359);5886 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);5887 c.close();5888 c.moveTo(w * 0.435, h * 0.8775);5889 c.lineTo(w * 0.4325, h * 0.8866);5890 c.lineTo(w * 0.3959, h * 0.8683);5891 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);5892 c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);5893 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);5894 c.lineTo(w * 0.435, h * 0.8324);5895 c.lineTo(w * 0.4285, h * 0.838);5896 c.lineTo(w * 0.4008, h * 0.8246);5897 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);5898 c.lineTo(w * 0.4333, h * 0.8542);5899 c.lineTo(w * 0.426, h * 0.8606);5900 c.lineTo(w * 0.3878, h * 0.8415);5901 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);5902 c.close();59035904 c.moveTo(w * 0.6171, h * 0.8063);5905 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);5906 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);5907 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);5908 c.lineTo(w * 0.5894, h * 0.8761);5909 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);5910 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);5911 c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);5912 c.close();5913 c.moveTo(w * 0.5886, h * 0.8296);5914 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);5915 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);5916 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);5917 c.lineTo(w * 0.6163, h * 0.8528);5918 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);5919 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);5920 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);5921 c.close();59225923 c.moveTo(w * 0.64, h * 0.85);5924 c.lineTo(w * 0.64, h * 0.7930);5925 c.lineTo(w * 0.6854, h * 0.7718);5926 c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);5927 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);5928 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);5929 c.lineTo(w * 0.6992, h * 0.8218);5930 c.lineTo(w * 0.6854, h * 0.8282);5931 c.lineTo(w * 0.6569, h * 0.8141);5932 c.lineTo(w * 0.6805, h * 0.8021);5933 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);5934 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);5935 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);5936 c.lineTo(w * 0.6528, h * 0.7979);5937 c.lineTo(w * 0.6528, h * 0.8437);5938 c.close();5939 c.moveTo(w * 0.7, h * 0.8204);5940 c.lineTo(w * 0.7301, h * 0.7507);5941 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);5942 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);5943 c.lineTo(w * 0.7699, h * 0.7852);5944 c.lineTo(w * 0.7602, h * 0.7908);5945 c.lineTo(w * 0.7537, h * 0.7838);5946 c.lineTo(w * 0.7276, h * 0.7958);5947 c.lineTo(w * 0.7228, h * 0.788);5948 c.lineTo(w * 0.748, h * 0.7768);5949 c.lineTo(w * 0.7358, h * 0.7585);5950 c.lineTo(w * 0.7114, h * 0.8155);5951 c.close();5952 c.moveTo(w * 0.8244, h * 0.7486);5953 c.lineTo(w * 0.8171, h * 0.762);5954 c.lineTo(w * 0.7894, h * 0.7761);5955 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);5956 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);5957 c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);5958 c.lineTo(w * 0.822, h * 0.7035);5959 c.lineTo(w * 0.8171, h * 0.7155);5960 c.lineTo(w * 0.7902, h * 0.7296);5961 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);5962 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);5963 c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);5964 c.close();5965 c.moveTo(w * 0.8366, h * 0.6949);5966 c.lineTo(w * 0.8366, h * 0.7423);5967 c.lineTo(w * 0.878, h * 0.7231);5968 c.lineTo(w * 0.874, h * 0.7338);5969 c.lineTo(w * 0.8333, h * 0.7535);5970 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);5971 c.lineTo(w * 0.8268, h * 0.7007);5972 c.close();5973 c.moveTo(w * 0.9342, h * 0.6472);5974 c.lineTo(w * 0.9293, h * 0.6599);5975 c.lineTo(w * 0.9033, h * 0.6725);5976 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);5977 c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);5978 c.lineTo(w * 0.9309, h * 0.6725);5979 c.lineTo(w * 0.9268, h * 0.6845);5980 c.lineTo(w * 0.887, h * 0.7035);5981 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);5982 c.lineTo(w * 0.935, h * 0.693);5983 c.lineTo(w * 0.9285, h * 0.7063);5984 c.lineTo(w * 0.9008, h * 0.7197);5985 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);5986 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);5987 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);5988 c.fill();5989 5990 c.restore();5991 c.setShadow(false);5992 c.setLineJoin('round');5993 5994 c.begin();5995 c.moveTo(0, h * 0.7464);5996 c.lineTo(0, h * 0.25);5997 c.lineTo(w * 0.5, h * 0.5);5998 c.lineTo(w * 0.5, h);5999 c.close();6000 c.moveTo(w * 0.5, h * 0.5);6001 c.lineTo(w, h * 0.25);6002 c.lineTo(w, h * 0.7464);6003 c.lineTo(w * 0.5, h);6004 c.close();6005 c.stroke();60066007 c.setLineJoin('miter');6008 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6009 c.setFillColor(strokeColor);6010 c.begin();6011 c.moveTo(w * 0.374, h * 0.3873);6012 c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.374, h * 0.3626);6013 c.lineTo(w * 0.4797, h * 0.3098);6014 c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.5203, h * 0.3098);6015 c.lineTo(w * 0.626, h * 0.3626);6016 c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.626, h * 0.3852);6017 c.lineTo(w * 0.5203, h * 0.438);6018 c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.4797, h * 0.438);6019 c.close();6020 c.fill();60216022 c.setStrokeWidth(2 * strokeWidth);6023 c.setStrokeColor(strokeColor2);6024 c.setLineJoin('round');60256026 c.begin();6027 c.moveTo(0, h * 0.7464);6028 c.lineTo(0, h * 0.25);6029 c.lineTo(w * 0.5, 0);6030 c.lineTo(w, h * 0.25);6031 c.lineTo(w, h * 0.7464);6032 c.lineTo(w * 0.5, h);6033 c.close();6034 c.stroke();6035};60366037mxCellRenderer.registerShape(mxShapeAws3dOracleServer.prototype.cst.ORACLE_SERVER, mxShapeAws3dOracleServer);60386039//**********************************************************************************************************************************************************6040//Secure Connection6041//**********************************************************************************************************************************************************6042/**6043* Extends mxShape.6044*/6045function mxShapeAws3dSecureConnection(bounds, fill, stroke, strokewidth)6046{6047 mxShape.call(this);6048 this.bounds = bounds;6049 this.fill = fill;6050 this.stroke = stroke;6051 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6052};60536054/**6055* Extends mxShape.6056*/6057mxUtils.extend(mxShapeAws3dSecureConnection, mxShape);60586059mxShapeAws3dSecureConnection.prototype.cst = {6060 SECURE_CONNECTION : 'mxgraph.aws3d.secureConnection'6061};60626063/**6064* Function: paintVertexShape6065* 6066* Paints the vertex shape.6067*/6068mxShapeAws3dSecureConnection.prototype.paintVertexShape = function(c, x, y, w, h)6069{6070 c.translate(x, y);6071 6072 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6073 var strokeWidth1 = strokeWidth * w / 57;6074 var strokeWidth2 = strokeWidth * h /34;6075 6076 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6077 c.setStrokeWidth(strokeWidth);6078 6079 this.background(c, 0, 0, w, h, strokeWidth);6080 c.setShadow(false);6081 this.foreground(c, 0, 0, w, h, strokeWidth);6082};60836084mxShapeAws3dSecureConnection.prototype.background = function(c, x, y, w, h, strokeWidth)6085{6086 c.begin();6087 c.moveTo(w * 0.0058, h * 0.3889);6088 c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0774, h * 0.1856);6089 c.arcTo(w * 0.5241, h * 0.8839, 0, 0, 1, w * 0.308, h * 0.0262);6090 c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.6417, h * 0.056);6091 c.arcTo(w * 0.6988, h * 1.1786, 0, 0, 1, w * 0.9106, h * 0.277);6092 c.arcTo(w * 0.2621, h * 0.442, 0, 0, 1, w, h * 0.5451);6093 c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.9474, h * 0.7808);6094 c.arcTo(w * 0.4368, h * 0.7366, 0, 0, 1, w * 0.7186, h * 0.9605);6095 c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.3045, h * 0.9104);6096 c.arcTo(w * 0.6115, h * 1.0312, 0, 0, 1, w * 0.0687, h * 0.6747);6097 c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0058, h * 0.3889);6098 c.close();6099 c.fill();6100};61016102mxShapeAws3dSecureConnection.prototype.foreground = function(c, x, y, w, h, strokeWidth)6103{6104 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6105 c.setFillColor(strokeColor);61066107 c.begin();6108 c.moveTo(w * 0.2661, h * 0.5068);6109 c.lineTo(w * 0.5002, h * 0.7336);6110 c.lineTo(w * 0.6626, h * 0.5775);6111 c.lineTo(w * 0.6469, h * 0.5539);6112 c.lineTo(w * 0.6958, h * 0.5097);6113 c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.7325, h * 0.4066);6114 c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.6889, h * 0.3153);6115 c.arcTo(w * 0.1747, h * 0.2946, 0, 0, 0, w * 0.5928, h * 0.2622);6116 c.arcTo(w * 0.1398, h * 0.2357, 0, 0, 0, w * 0.5107, h * 0.3005);6117 c.lineTo(w * 0.446, h * 0.3654);6118 c.lineTo(w * 0.4268, h * 0.3477);6119 c.close();6120 c.moveTo(w * 0.4949, h * 0.4184);6121 c.lineTo(w * 0.5491, h * 0.3624);6122 c.arcTo(w * 0.1222, h * 0.2062, 0, 0, 1, w * 0.6277, h * 0.3536);6123 c.arcTo(w * 0.0874, h * 0.1179, 0, 0, 1, w * 0.6679, h * 0.3978);6124 c.arcTo(w * 0.0175, h * 0.0295, 0, 0, 1, w * 0.6626, h * 0.439);6125 c.lineTo(w * 0.5928, h * 0.5068);6126 c.close();6127 c.fill();6128};61296130mxCellRenderer.registerShape(mxShapeAws3dSecureConnection.prototype.cst.SECURE_CONNECTION, mxShapeAws3dSecureConnection);61316132//**********************************************************************************************************************************************************6133//Email Service6134//**********************************************************************************************************************************************************6135/**6136* Extends mxShape.6137*/6138function mxShapeAws3dEmailService(bounds, fill, stroke, strokewidth)6139{6140 mxShape.call(this);6141 this.bounds = bounds;6142 this.fill = fill;6143 this.stroke = stroke;6144 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6145};61466147/**6148* Extends mxShape.6149*/6150mxUtils.extend(mxShapeAws3dEmailService, mxShape);61516152mxShapeAws3dEmailService.prototype.cst = {6153 EMAIL_SERVICE : 'mxgraph.aws3d.email_service',6154 SHADING_COLORS : 'shadingCols'6155};61566157mxShapeAws3dEmailService.prototype.customProperties = [6158 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}6159];61606161/**6162* Function: paintVertexShape6163* 6164* Paints the vertex shape.6165*/6166mxShapeAws3dEmailService.prototype.paintVertexShape = function(c, x, y, w, h)6167{6168 c.translate(x, y);6169 6170 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6171 var strokeWidth1 = strokeWidth * w / 151;6172 var strokeWidth2 = strokeWidth * h / 192;6173 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');6174 6175 strokeWidth = Math.min(strokeWidth1, strokeWidth2);61766177 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);6178 c.setShadow(false);6179 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);6180};61816182mxShapeAws3dEmailService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)6183{6184 c.setStrokeWidth(strokeWidth);6185 c.save();6186 c.save();6187 c.setStrokeWidth(2 * strokeWidth);6188 c.setStrokeColor(strokeColor2);6189 c.setLineJoin('round');61906191 c.begin();6192 c.moveTo(0, h * 0.8182);6193 c.lineTo(0, h * 0.1818);6194 c.lineTo(w * 0.4007, 0);6195 c.lineTo(w * 0.606, 0);6196 c.lineTo(w, h * 0.1792);6197 c.lineTo(w, h * 0.8182);6198 c.lineTo(w * 0.5993, h);6199 c.lineTo(w * 0.4007, h);6200 c.close();6201 c.fillAndStroke();6202};62036204mxShapeAws3dEmailService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)6205{6206 c.restore();6207 c.setShadow(false);6208 c.setFillColor('#000000');6209 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEmailService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6210 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6211 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6212 6213 c.begin();6214 c.moveTo(0, h * 0.2727);6215 c.lineTo(w * 0.4007, h * 0.4546);6216 c.lineTo(w * 0.5993, h * 0.4546);6217 c.lineTo(w * 0.5993, h);6218 c.lineTo(w * 0.4007, h);6219 c.lineTo(0, h * 0.8182);6220 c.close();6221 c.fill();62226223 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6224 c.begin();6225 c.moveTo(w * 0.5993, h * 0.4546);6226 c.lineTo(w, h * 0.2727);6227 c.lineTo(w * 0.8013, h * 0.1792);6228 c.lineTo(w * 0.8013, h * 0.0883);6229 c.lineTo(w, h * 0.1792);6230 c.lineTo(w, h * 0.8182);6231 c.lineTo(w * 0.5993, h);6232 c.close();6233 c.fill();6234 6235 c.restore();6236 c.setShadow(false);6237 c.setLineJoin('round');6238 6239 c.begin();6240 c.moveTo(0, h * 0.2727);6241 c.lineTo(w * 0.4007, h * 0.4546);6242 c.lineTo(w * 0.5993, h * 0.4546);6243 c.lineTo(w * 0.5993, h);6244 c.lineTo(w * 0.4007, h);6245 c.lineTo(0, h * 0.8182);6246 c.close();6247 c.stroke();62486249 c.begin();6250 c.moveTo(w * 0.5993, h * 0.4546);6251 c.lineTo(w, h * 0.2727);6252 c.lineTo(w * 0.8013, h * 0.1792);6253 c.lineTo(w * 0.8013, h * 0.0883);6254 c.lineTo(w, h * 0.1792);6255 c.lineTo(w, h * 0.8182);6256 c.lineTo(w * 0.5993, h);6257 c.close();6258 c.stroke();6259 6260 c.begin();6261 c.moveTo(w * 0.202, h * 0.0883);6262 c.lineTo(w * 0.202, h * 0.1818);6263 c.lineTo(w * 0.4007, h * 0.2727);6264 c.lineTo(w * 0.5993, h * 0.2727);6265 c.lineTo(w * 0.798, h * 0.1818);6266 c.moveTo(w * 0.2053, h * 0.1818);6267 c.lineTo(w * 0.0033, h * 0.2714);6268 c.moveTo(w * 0.4007, h * 0.2727);6269 c.lineTo(w * 0.4007, h * 0.9961);6270 c.moveTo(w * 0.5993, h * 0.2727);6271 c.lineTo(w * 0.5993, h * 0.4546);6272 c.stroke();6273 6274 c.setLineJoin('miter');6275 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6276 c.setFillColor(strokeColor);6277 c.begin();6278 c.moveTo(w * 0.4437, h * 0.0779);6279 c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 1, w * 0.404, h * 0.0706);6280 c.arcTo(w * 0.0464, h * 0.0364, 0, 0, 1, w * 0.3815, h * 0.0421);6281 c.arcTo(w * 0.053, h * 0.026, 0, 0, 1, w * 0.4205, h * 0.0187);6282 c.arcTo(w * 0.1987, h * 0.1558, 0, 0, 1, w * 0.4768, h * 0.0203);6283 c.arcTo(w * 0.0795, h * 0.0364, 0, 0, 1, w * 0.5199, h * 0.0494);6284 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.5099, h * 0.0649);6285 c.arcTo(w * 0.0795, h * 0.0623, 0, 0, 1, w * 0.4536, h * 0.0727);6286 c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4404, h * 0.0597);6287 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4219, h * 0.0566);6288 c.arcTo(w * 0.0199, h * 0.0114, 0, 0, 1, w * 0.4172, h * 0.0431);6289 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4483, h * 0.0416);6290 c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 1, w * 0.457, h * 0.053);6291 c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 0, w * 0.4669, h * 0.0431);6292 c.arcTo(w * 0.0166, h * 0.0166, 0, 0, 0, w * 0.4464, h * 0.0358);6293 c.lineTo(w * 0.4437, h * 0.0338);6294 c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4603, h * 0.0322);6295 c.arcTo(w * 0.0397, h * 0.0156, 0, 0, 1, w * 0.4755, h * 0.0462);6296 c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4669, h * 0.0545);6297 c.arcTo(w * 0.053, h * 0.0416, 0, 0, 1, w * 0.453, h * 0.0608);6298 c.arcTo(w * 0.0099, h * 0.0078, 0, 0, 0, w * 0.4636, h * 0.0675);6299 c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.498, h * 0.0623);6300 c.arcTo(w * 0.0185, h * 0.0145, 0, 0, 0, w * 0.5079, h * 0.0457);6301 c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4848, h * 0.0296);6302 c.arcTo(w * 0.0993, h * 0.0779, 0, 0, 0, w * 0.455, h * 0.0234);6303 c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.4172, h * 0.026);6304 c.arcTo(w * 0.0397, h * 0.0312, 0, 0, 0, w * 0.3927, h * 0.039);6305 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 0, w * 0.3974, h * 0.0571);6306 c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4205, h * 0.0701);6307 c.arcTo(w * 0.0331, h * 0.026, 0, 0, 0, w * 0.4404, h * 0.0722);6308 c.moveTo(w * 0.42, h * 0.049);6309 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.055);6310 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.45, h * 0.049);6311 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.043);6312 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.42, h * 0.049);6313 c.close();6314 c.moveTo(w * 0.4669, h * 0.0894);6315 c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.5099, h * 0.0831);6316 c.lineTo(w * 0.6689, h * 0.1543);6317 c.lineTo(w * 0.4887, h * 0.1371);6318 c.close();6319 c.moveTo(w * 0.3887, h * 0.0769);6320 c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.4205, h * 0.0888);6321 c.arcTo(w * 0.0662, h * 0.026, 0, 0, 0, w * 0.447, h * 0.0894);6322 c.lineTo(w * 0.4735, h * 0.1512);6323 c.lineTo(w * 0.6689, h * 0.1688);6324 c.lineTo(w * 0.5199, h * 0.2364);6325 c.lineTo(w * 0.2815, h * 0.1273);6326 c.close();6327 c.fill();63286329 c.setStrokeWidth(2 * strokeWidth);6330 c.setStrokeColor(strokeColor2);6331 c.setLineJoin('round');63326333 c.begin();6334 c.moveTo(0, h * 0.8182);6335 c.lineTo(0, h * 0.1818);6336 c.lineTo(w * 0.4007, 0);6337 c.lineTo(w * 0.606, 0);6338 c.lineTo(w, h * 0.1792);6339 c.lineTo(w, h * 0.8182);6340 c.lineTo(w * 0.5993, h);6341 c.lineTo(w * 0.4007, h);6342 c.close();6343 c.stroke();6344};63456346mxCellRenderer.registerShape(mxShapeAws3dEmailService.prototype.cst.EMAIL_SERVICE, mxShapeAws3dEmailService);63476348//**********************************************************************************************************************************************************6349//Worker6350//**********************************************************************************************************************************************************6351/**6352* Extends mxShape.6353*/6354function mxShapeAws3dWorker(bounds, fill, stroke, strokewidth)6355{6356 mxShape.call(this);6357 this.bounds = bounds;6358 this.fill = fill;6359 this.stroke = stroke;6360 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6361};63626363/**6364* Extends mxShape.6365*/6366mxUtils.extend(mxShapeAws3dWorker, mxShape);63676368mxShapeAws3dWorker.prototype.cst = {6369 WORKER : 'mxgraph.aws3d.worker',6370 SHADING_COLORS : 'shadingCols'6371};63726373mxShapeAws3dWorker.prototype.customProperties = [6374 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}6375];63766377/**6378* Function: paintVertexShape6379* 6380* Paints the vertex shape.6381*/6382mxShapeAws3dWorker.prototype.paintVertexShape = function(c, x, y, w, h)6383{6384 c.translate(x, y);63856386 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6387 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));6388 var strokeWidth1 = strokeWidth * w / 74;6389 var strokeWidth2 = strokeWidth * h / 50;6390 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');6391 6392 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6393 6394 c.setStrokeWidth(strokeWidth);6395 c.setShadow(false);6396 c.save();6397 c.save();6398 c.setStrokeWidth(2 * strokeWidth);6399 c.setStrokeColor(strokeColor2);6400 c.setLineJoin('round');64016402 if (isShadow == 1)6403 {6404 c.setShadow(true);6405 }64066407 c.begin();6408 c.moveTo(0, h * 0.572);6409 c.lineTo(w * 0.0865, h * 0.284);6410 c.lineTo(w * 0.4203, 0);6411 c.lineTo(w * 0.5865, 0);6412 c.lineTo(w * 0.919, h * 0.286);6413 c.lineTo(w, h * 0.566);6414 c.lineTo(w * 0.5027, h);6415 c.close();6416 c.fillAndStroke();6417 6418 c.restore();6419 c.setFillColor('#000000');6420 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorker.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6421 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6422 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6423 6424 c.begin();6425 c.moveTo(0, h * 0.566);6426 c.lineTo(w * 0.0892, h * 0.282);6427 c.lineTo(w * 0.0878, h * 0.426);6428 c.lineTo(w * 0.4216, h * 0.712);6429 c.lineTo(w * 0.5865, h * 0.712);6430 c.lineTo(w * 0.5027, h);6431 c.close();6432 c.fill();64336434 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6435 c.begin();6436 c.moveTo(w * 0.5027, h);6437 c.lineTo(w * 0.5865, h * 0.712);6438 c.lineTo(w * 0.9176, h * 0.43);6439 c.lineTo(w, h * 0.566);6440 c.close();6441 c.fill();6442 6443 c.restore();6444 c.setLineJoin('round');6445 6446 c.begin();6447 c.moveTo(0, h * 0.566);6448 c.lineTo(w * 0.0892, h * 0.282);6449 c.lineTo(w * 0.0878, h * 0.426);6450 c.lineTo(w * 0.4216, h * 0.712);6451 c.lineTo(w * 0.5865, h * 0.712);6452 c.lineTo(w * 0.5027, h);6453 c.close();6454 c.moveTo(w * 0.5027, h);6455 c.lineTo(w * 0.5865, h * 0.712);6456 c.lineTo(w * 0.9176, h * 0.43);6457 c.lineTo(w, h * 0.566);6458 c.close();6459 c.moveTo(0, h * 0.572);6460 c.lineTo(w * 0.0892, h * 0.422);6461 c.moveTo(w * 0.5027, h);6462 c.lineTo(w * 0.4189, h * 0.708);6463 c.moveTo(w * 0.9176, h * 0.43);6464 c.lineTo(w * 0.9176, h * 0.29);6465 c.stroke();64666467 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6468 c.setFillColor(strokeColor);6469 c.setLineJoin('round');6470 c.begin();6471 c.moveTo(w * 0.2892, h * 0.2104);6472 c.lineTo(w * 0.3595, h * 0.1503);6473 c.lineTo(w * 0.3973, h * 0.1844);6474 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.4486, h * 0.1703);6475 c.lineTo(w * 0.4486, h * 0.1242);6476 c.lineTo(w * 0.5527, h * 0.1242);6477 c.lineTo(w * 0.5527, h * 0.1703);6478 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.6149, h * 0.1924);6479 c.lineTo(w * 0.6527, h * 0.1603);6480 c.lineTo(w * 0.7257, h * 0.2224);6481 c.lineTo(w * 0.6892, h * 0.2545);6482 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.7162, h * 0.3106);6483 c.lineTo(w * 0.7676, h * 0.3106);6484 c.lineTo(w * 0.7676, h * 0.3988);6485 c.lineTo(w * 0.7162, h * 0.3988);6486 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.6973, h * 0.4409);6487 c.lineTo(w * 0.7378, h * 0.475);6488 c.lineTo(w * 0.6635, h * 0.5371);6489 c.lineTo(w * 0.6297, h * 0.505);6490 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.5527, h * 0.5351);6491 c.lineTo(w * 0.5527, h * 0.5812);6492 c.lineTo(w * 0.45, h * 0.5812);6493 c.lineTo(w * 0.45, h * 0.5351);6494 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.3878, h * 0.513);6495 c.lineTo(w * 0.3514, h * 0.5431);6496 c.lineTo(w * 0.2784, h * 0.481);6497 c.lineTo(w * 0.3149, h * 0.4509);6498 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.2865, h * 0.3968);6499 c.lineTo(w * 0.2351, h * 0.3968);6500 c.lineTo(w * 0.2351, h * 0.3086);6501 c.lineTo(w * 0.2865, h * 0.3086);6502 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.3203, h * 0.2425);6503 c.close();6504 c.moveTo(w * 0.4054, h * 0.2445);6505 c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.3554, h * 0.2986);6506 c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.3432, h * 0.3567);6507 c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.3635, h * 0.4208);6508 c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.4122, h * 0.4649);6509 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4122, h * 0.4649);6510 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5676, h * 0.4749);6511 c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.6351, h * 0.4228);6512 c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.6595, h * 0.3467);6513 c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.6149, h * 0.2605);6514 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5419, h * 0.2204);6515 c.arcTo(w * 0.3378, h * 0.501, 0, 0, 0, w * 0.4649, h * 0.2184);6516 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4054, h * 0.2445);6517 c.close();6518 c.moveTo(w * 0.473, h * 0.2806);6519 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.55, h * 0.2866);6520 c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 1, w * 0.5892, h * 0.3307);6521 c.arcTo(w * 0.0338, h * 0.0501, 0, 0, 1, w * 0.5824, h * 0.3888);6522 c.arcTo(w * 0.0946, h * 0.1403, 0, 0, 1, w * 0.5216, h * 0.4269);6523 c.arcTo(w * 0.1622, h * 0.2405, 0, 0, 1, w * 0.4432, h * 0.4128);6524 c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4108, h * 0.3527);6525 c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4351, h * 0.2986);6526 c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 1, w * 0.473, h * 0.2806);6527 c.close();6528 c.fill();65296530 c.setStrokeWidth(2 * strokeWidth);6531 c.setStrokeColor(strokeColor2);65326533 c.begin();6534 c.moveTo(0, h * 0.572);6535 c.lineTo(w * 0.0865, h * 0.284);6536 c.lineTo(w * 0.4203, 0);6537 c.lineTo(w * 0.5865, 0);6538 c.lineTo(w * 0.919, h * 0.286);6539 c.lineTo(w, h * 0.566);6540 c.lineTo(w * 0.5027, h);6541 c.close();6542 c.stroke();6543};65446545mxCellRenderer.registerShape(mxShapeAws3dWorker.prototype.cst.WORKER, mxShapeAws3dWorker);65466547//**********************************************************************************************************************************************************6548//Application6549//**********************************************************************************************************************************************************6550/**6551* Extends mxShape.6552*/6553function mxShapeAws3dApplication2(bounds, fill, stroke, strokewidth)6554{6555 mxShape.call(this);6556 this.bounds = bounds;6557 this.fill = fill;6558 this.stroke = stroke;6559 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6560};65616562/**6563* Extends mxShape.6564*/6565mxUtils.extend(mxShapeAws3dApplication2, mxShape);65666567mxShapeAws3dApplication2.prototype.cst = {6568 APPLICATION2 : 'mxgraph.aws3d.application2',6569 SHADING_COLORS : 'shadingCols'6570};65716572mxShapeAws3dApplication2.prototype.customProperties = [6573 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}6574];65756576/**6577* Function: paintVertexShape6578* 6579* Paints the vertex shape.6580*/6581mxShapeAws3dApplication2.prototype.paintVertexShape = function(c, x, y, w, h)6582{6583 c.translate(x, y);65846585 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6586 var strokeWidth1 = strokeWidth * w / 62;6587 var strokeWidth2 = strokeWidth * h / 53.5;6588 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));6589 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');6590 6591 strokeWidth = Math.min(strokeWidth1, strokeWidth2);65926593 c.setShadow(false);6594 c.setStrokeWidth(strokeWidth);6595 c.save();6596 c.save();6597 c.setStrokeWidth(2 * strokeWidth);6598 c.setStrokeColor(strokeColor2);6599 c.setLineJoin('round');66006601 if (isShadow == 1)6602 {6603 c.setShadow(true);6604 }6605 6606 c.begin();6607 c.moveTo(0, h * 0.6766);6608 c.lineTo(0, h * 0.3271);6609 c.lineTo(w * 0.5, 0);6610 c.lineTo(w, h * 0.3271);6611 c.lineTo(w, h * 0.6766);6612 c.lineTo(w * 0.5, h);6613 c.close();6614 c.fillAndStroke();6615 6616 c.restore();6617 c.setFillColor('#000000');6618 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6619 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6620 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6621 6622 c.begin();6623 c.moveTo(0, h * 0.3271);6624 c.lineTo(w * 0.5, h * 0.6449);6625 c.lineTo(w * 0.5, h);6626 c.lineTo(0, h * 0.6766);6627 c.close();6628 c.fill();66296630 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6631 c.begin();6632 c.moveTo(w * 0.5, h * 0.6449);6633 c.lineTo(w, h * 0.3271);6634 c.lineTo(w, h * 0.6766);6635 c.lineTo(w * 0.5, h);6636 c.close();6637 c.fill();6638 6639 c.restore();6640 c.setLineJoin('round');6641 6642 c.begin();6643 c.moveTo(0, h * 0.3271);6644 c.lineTo(w * 0.5, h * 0.6449);6645 c.lineTo(w * 0.5, h);6646 c.lineTo(0, h * 0.6766);6647 c.close();6648 c.stroke();66496650 c.begin();6651 c.moveTo(w * 0.5, h * 0.6449);6652 c.lineTo(w, h * 0.3271);6653 c.lineTo(w, h * 0.6766);6654 c.lineTo(w * 0.5, h);6655 c.close();6656 c.stroke();6657 6658 c.setLineJoin('miter');6659 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6660 c.setFillColor(strokeColor);6661 c.begin();6662 c.moveTo(w * 0.1742, h * 0.6355);6663 c.lineTo(w * 0.1742, h * 0.4393);6664 c.lineTo(w * 0.6726, h * 0.1121);6665 c.lineTo(w * 0.7661, h * 0.1738);6666 c.lineTo(w * 0.2661, h * 0.4991);6667 c.lineTo(w * 0.2661, h * 0.6916);6668 c.close();6669 c.moveTo(w * 0.2871, h * 0.7084);6670 c.lineTo(w * 0.2871, h * 0.514);6671 c.lineTo(w * 0.7823, h * 0.1869);6672 c.lineTo(w * 0.8629, h * 0.2374);6673 c.lineTo(w * 0.379, h * 0.5626);6674 c.lineTo(w * 0.379, h * 0.7607);6675 c.close();6676 c.fill();66776678 c.setStrokeWidth(2 * strokeWidth);6679 c.setStrokeColor(strokeColor2);6680 c.setLineJoin('round');66816682 c.begin();6683 c.moveTo(0, h * 0.6766);6684 c.lineTo(0, h * 0.3271);6685 c.lineTo(w * 0.5, 0);6686 c.lineTo(w, h * 0.3271);6687 c.lineTo(w, h * 0.6766);6688 c.lineTo(w * 0.5, h);6689 c.close();6690 c.stroke();6691};66926693mxCellRenderer.registerShape(mxShapeAws3dApplication2.prototype.cst.APPLICATION2, mxShapeAws3dApplication2);66946695//**********************************************************************************************************************************************************6696//Elastic Beanstalk6697//**********************************************************************************************************************************************************6698/**6699* Extends mxShape.6700*/6701function mxShapeAws3dElasticBeanstalk(bounds, fill, stroke, strokewidth)6702{6703 mxShape.call(this);6704 this.bounds = bounds;6705 this.fill = fill;6706 this.stroke = stroke;6707 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6708};67096710/**6711* Extends mxShape.6712*/6713mxUtils.extend(mxShapeAws3dElasticBeanstalk, mxShape);67146715mxShapeAws3dElasticBeanstalk.prototype.cst = {6716 ELASTIC_BEANSTALK : 'mxgraph.aws3d.elasticBeanstalk',6717 SHADING_COLORS : 'shadingCols'6718};67196720mxShapeAws3dElasticBeanstalk.prototype.customProperties = [6721 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}6722];67236724/**6725* Function: paintVertexShape6726* 6727* Paints the vertex shape.6728*/6729mxShapeAws3dElasticBeanstalk.prototype.paintVertexShape = function(c, x, y, w, h)6730{6731 c.translate(x, y);67326733 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6734 var strokeWidth1 = strokeWidth * w / 181.5;6735 var strokeWidth2 = strokeWidth * h / 140;6736 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));6737 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');6738 6739 strokeWidth = Math.min(strokeWidth1, strokeWidth2);67406741 c.setShadow(false);6742 c.setStrokeWidth(strokeWidth);6743 c.save();6744 c.save();6745 c.save();6746 c.setStrokeWidth(2 * strokeWidth);6747 c.setStrokeColor(strokeColor2);6748 c.setLineJoin('round');67496750 if (isShadow == 1)6751 {6752 c.setShadow(true);6753 }6754 6755 c.begin();6756 c.moveTo(0, h * 0.6239);6757 c.lineTo(0, h * 0.3754);6758 c.lineTo(w * 0.5, 0);6759 c.lineTo(w, h * 0.3754);6760 c.lineTo(w, h * 0.6239);6761 c.lineTo(w * 0.5, h);6762 c.close();6763 c.fillAndStroke();6764 6765 c.restore();6766 c.setFillColor('#000000');6767 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticBeanstalk.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6768 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6769 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6770 6771 c.begin();6772 c.moveTo(0, h * 0.3754);6773 c.lineTo(w * 0.5, h * 0.7514);6774 c.lineTo(w * 0.5, h);6775 c.lineTo(0, h * 0.6239);6776 c.close();6777 c.fill();67786779 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6780 c.begin();6781 c.moveTo(w * 0.5, h * 0.7514);6782 c.lineTo(w, h * 0.3754);6783 c.lineTo(w, h * 0.6239);6784 c.lineTo(w * 0.5, h);6785 c.close();6786 c.fill();6787 6788 c.restore();6789 c.setLineJoin('round');6790 6791 c.begin();6792 c.moveTo(0, h * 0.3754);6793 c.lineTo(w * 0.5, h * 0.7514);6794 c.lineTo(w * 0.5, h);6795 c.lineTo(0, h * 0.6239);6796 c.close();6797 c.moveTo(w * 0.5, h * 0.7514);6798 c.lineTo(w, h * 0.3754);6799 c.lineTo(w, h * 0.6239);6800 c.lineTo(w * 0.5, h);6801 c.close();6802 c.moveTo(w * 0.2485, h * 0.187);6803 c.lineTo(w * 0.7493, h * 0.5623);6804 c.lineTo(w * 0.7493, h * 0.8123);6805 c.stroke();6806 6807 c.setLineJoin('miter');6808 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6809 c.setFillColor(strokeColor);6810 c.begin();6811 c.moveTo(w * 0.7763, h * 0.2063);6812 c.lineTo(w * 0.2749, h * 0.5817);6813 c.lineTo(w * 0.2749, h * 0.8309);6814 c.lineTo(w * 0.2204, h * 0.7894);6815 c.lineTo(w * 0.2204, h * 0.5394);6816 c.lineTo(w * 0.7185, h * 0.1619);6817 c.close();6818 c.fill();68196820 c.restore();6821 c.begin();6822 c.moveTo(w * 0.1713, h * 0.543);6823 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2028, h * 0.5723);6824 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2281, h * 0.6096);6825 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2402, h * 0.644);6826 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2424, h * 0.6848);6827 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.216, h * 0.6612);6828 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.1895, h * 0.6239);6829 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.1719, h * 0.5824);6830 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.1713, h * 0.543);6831 c.close();6832 c.moveTo(w * 0.2507, h * 0.7794);6833 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.254, h * 0.7421);6834 c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.27, h * 0.7264);6835 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2986, h * 0.73);6836 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3234, h * 0.7457);6837 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3218, h * 0.7815);6838 c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.3019, h * 0.7987);6839 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.27, h * 0.7923);6840 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2507, h * 0.7794);6841 c.close();6842 c.moveTo(w * 0.2799, h * 0.5265);6843 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.3003, h * 0.515);6844 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3317, h * 0.515);6845 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3774, h * 0.5315);6846 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4033, h * 0.5487);6847 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3906, h * 0.5595);6848 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3493, h * 0.5616);6849 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3069, h * 0.5444);6850 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2799, h * 0.5265);6851 c.close();6852 c.moveTo(w * 0.2887, h * 0.3933);6853 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.314, h * 0.414);6854 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3322, h * 0.4391);6855 c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.3344, h * 0.4699);6856 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.3196, h * 0.485);6857 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2887, h * 0.4592);6858 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.27, h * 0.4269);6859 c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.2727, h * 0.4054);6860 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2887, h * 0.3933);6861 c.close();6862 c.moveTo(w * 0.4613, h * 0.262);6863 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4867, h * 0.2827);6864 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5049, h * 0.3078);6865 c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.5071, h * 0.3386);6866 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4922, h * 0.3537);6867 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4613, h * 0.3279);6868 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4426, h * 0.2956);6869 c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.4453, h * 0.2741);6870 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4613, h * 0.262);6871 c.close();6872 c.moveTo(w * 0.4525, h * 0.3952);6873 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4729, h * 0.3837);6874 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5043, h * 0.3837);6875 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.55, h * 0.4002);6876 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5759, h * 0.4174);6877 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5633, h * 0.4282);6878 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5219, h * 0.4303);6879 c.arcTo(w * 0.1653, h * 0.1074, 0, 0, 1, w * 0.4795, h * 0.4131);6880 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4525, h * 0.3952);6881 c.close();6882 c.moveTo(w * 0.6217, h * 0.1426);6883 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6471, h * 0.1633);6884 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6652, h * 0.1884);6885 c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.6674, h * 0.2192);6886 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6526, h * 0.2342);6887 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6217, h * 0.2085);6888 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.603, h * 0.1762);6889 c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.6057, h * 0.1547);6890 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6217, h * 0.1426);6891 c.close();6892 c.moveTo(w * 0.6129, h * 0.2758);6893 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.6333, h * 0.2643);6894 c.arcTo(w * 0.0826, h * 0.1433, 0, 0, 1, w * 0.6647, h * 0.2643);6895 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7104, h * 0.2808);6896 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);6897 c.arcTo(w * 0.0826, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);6898 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.6823, h * 0.3109);6899 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6399, h * 0.2937);6900 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6129, h * 0.2758);6901 c.close();6902 c.fillAndStroke();6903 6904 c.setStrokeWidth(2 * strokeWidth);6905 c.setStrokeColor(strokeColor2);6906 c.setLineJoin('round');69076908 c.begin();6909 c.moveTo(0, h * 0.6239);6910 c.lineTo(0, h * 0.3754);6911 c.lineTo(w * 0.5, 0);6912 c.lineTo(w, h * 0.3754);6913 c.lineTo(w, h * 0.6239);6914 c.lineTo(w * 0.5, h);6915 c.close();6916 c.stroke();6917};69186919mxCellRenderer.registerShape(mxShapeAws3dElasticBeanstalk.prototype.cst.ELASTIC_BEANSTALK, mxShapeAws3dElasticBeanstalk);69206921//**********************************************************************************************************************************************************6922//SimpleDB 26923//**********************************************************************************************************************************************************6924/**6925* Extends mxShape.6926*/6927function mxShapeAws3dSimpleDB2(bounds, fill, stroke, strokewidth)6928{6929 mxShape.call(this);6930 this.bounds = bounds;6931 this.fill = fill;6932 this.stroke = stroke;6933 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6934};69356936/**6937* Extends mxShape.6938*/6939mxUtils.extend(mxShapeAws3dSimpleDB2, mxShape);69406941mxShapeAws3dSimpleDB2.prototype.cst = {6942 SIMPLE_DB_2 : 'mxgraph.aws3d.simpleDb2',6943 SHADING_COLORS : 'shadingCols'6944};69456946mxShapeAws3dSimpleDB2.prototype.customProperties = [6947 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}6948];69496950/**6951* Function: paintVertexShape6952* 6953* Paints the vertex shape.6954*/6955mxShapeAws3dSimpleDB2.prototype.paintVertexShape = function(c, x, y, w, h)6956{6957 c.translate(x, y);6958 6959 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6960 var strokeWidth1 = strokeWidth * w / 181.5;6961 var strokeWidth2 = strokeWidth * h / 210;6962 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');6963 6964 strokeWidth = Math.min(strokeWidth1, strokeWidth2);69656966 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);6967 c.setShadow(false);6968 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);6969};69706971mxShapeAws3dSimpleDB2.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)6972{6973 c.setStrokeWidth(strokeWidth);6974 c.save();6975 c.save();6976 c.save();6977 c.setStrokeWidth(2 * strokeWidth);6978 c.setStrokeColor(strokeColor2);6979 c.setLineJoin('round');69806981 c.begin();6982 c.moveTo(0, h * 0.8183);6983 c.lineTo(0, h * 0.1848);6984 c.lineTo(w * 0.3366, 0);6985 c.lineTo(w * 0.6293, h * 0.0021);6986 c.lineTo(w, h * 0.1833);6987 c.lineTo(w, h * 0.8183);6988 c.lineTo(w * 0.6694, h);6989 c.lineTo(w * 0.4986, h * 0.9091);6990 c.lineTo(w * 0.3333, h);6991 c.close();6992 c.fillAndStroke();6993};69946995mxShapeAws3dSimpleDB2.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)6996{6997 c.restore();6998 c.setShadow(false);6999 c.setFillColor('#000000');7000 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7001 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7002 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7003 7004 c.begin();7005 c.moveTo(0, h * 0.1848);7006 c.lineTo(w * 0.168, h * 0.1833);7007 c.lineTo(0, h * 0.365);7008 c.lineTo(w * 0.3333, h * 0.5467);7009 c.lineTo(w * 0.3333, h);7010 c.lineTo(0, h * 0.8183);7011 c.close();7012 c.moveTo(w * 0.4986, h * 0.9078);7013 c.lineTo(w * 0.4986, h * 0.3655);7014 c.lineTo(w * 0.6667, h * 0.5457);7015 c.lineTo(w * 0.6667, h);7016 c.close();7017 c.fill();70187019 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7020 c.begin();7021 c.moveTo(w * 0.3333, h * 0.5467);7022 c.lineTo(w * 0.4986, h * 0.3655);7023 c.lineTo(w * 0.4986, h * 0.9076);7024 c.lineTo(w * 0.3333, h);7025 c.close();7026 c.moveTo(w * 0.8292, h * 0.1822);7027 c.lineTo(w, h * 0.1848);7028 c.lineTo(w, h * 0.8183);7029 c.lineTo(w * 0.6667, h);7030 c.lineTo(w * 0.6667, h * 0.5441);7031 c.lineTo(w, h * 0.3666);7032 c.close();7033 c.fill();7034 7035 c.restore();7036 c.setShadow(false);7037 c.setLineJoin('round');7038 7039 c.begin();7040 c.moveTo(0, h * 0.1848);7041 c.lineTo(w * 0.168, h * 0.1833);7042 c.lineTo(0, h * 0.365);7043 c.lineTo(w * 0.3333, h * 0.5467);7044 c.lineTo(w * 0.3333, h);7045 c.lineTo(0, h * 0.8183);7046 c.close();7047 c.moveTo(w * 0.4986, h * 0.9078);7048 c.lineTo(w * 0.4986, h * 0.3655);7049 c.lineTo(w * 0.6667, h * 0.5457);7050 c.lineTo(w * 0.6667, h);7051 c.close();7052 c.moveTo(w * 0.3333, h * 0.5467);7053 c.lineTo(w * 0.4986, h * 0.3655);7054 c.lineTo(w * 0.4986, h * 0.9076);7055 c.lineTo(w * 0.3333, h);7056 c.close();7057 c.moveTo(w * 0.8292, h * 0.1822);7058 c.lineTo(w, h * 0.1848);7059 c.lineTo(w, h * 0.8183);7060 c.lineTo(w * 0.6667, h);7061 c.lineTo(w * 0.6667, h * 0.5441);7062 c.lineTo(w, h * 0.3666);7063 c.close();7064 c.moveTo(w * 0.1669, h * 0.1828);7065 c.lineTo(w * 0.4986, h * 0.3655);7066 c.lineTo(w * 0.8314, h * 0.1833);7067 c.lineTo(w * 0.4986, h * 0.0031);7068 c.close();7069 c.stroke();70707071 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');7072 c.setFillColor(strokeColor);7073 c.begin();7074 c.moveTo(w * 0.2634, h * 0.1833);7075 c.lineTo(w * 0.5003, h * 0.0535);7076 c.lineTo(w * 0.7394, h * 0.1833);7077 c.lineTo(w * 0.5003, h * 0.3136);7078 c.close();7079 c.fill();70807081 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');7082 c.restore();7083 c.setShadow(false);7084 c.setStrokeWidth(3 * strokeWidth);7085 c.setStrokeColor(fillColor);7086 7087 c.begin();7088 c.moveTo(w * 0.3003, h * 0.2108);7089 c.lineTo(w * 0.5642, h * 0.068);7090 c.moveTo(w * 0.4429, h * 0.0693);7091 c.lineTo(w * 0.7059, h * 0.2121);7092 c.moveTo(w * 0.6667, h * 0.2458);7093 c.lineTo(w * 0.3974, h * 0.0992);7094 c.moveTo(w * 0.3499, h * 0.1277);7095 c.lineTo(w * 0.6088, h * 0.2698);7096 c.moveTo(w * 0.3009, h * 0.1556);7097 c.lineTo(w * 0.5496, h * 0.2913);7098 c.stroke();70997100 c.setStrokeWidth(2 * strokeWidth);7101 c.setStrokeColor(strokeColor2);7102 c.setLineJoin('round');71037104 c.begin();7105 c.moveTo(0, h * 0.8183);7106 c.lineTo(0, h * 0.1848);7107 c.lineTo(w * 0.3366, 0);7108 c.lineTo(w * 0.6293, h * 0.0021);7109 c.lineTo(w, h * 0.1833);7110 c.lineTo(w, h * 0.8183);7111 c.lineTo(w * 0.6694, h);7112 c.lineTo(w * 0.4986, h * 0.9091);7113 c.lineTo(w * 0.3333, h);7114 c.close();7115 c.stroke();7116};71177118mxCellRenderer.registerShape(mxShapeAws3dSimpleDB2.prototype.cst.SIMPLE_DB_2, mxShapeAws3dSimpleDB2);71197120//**********************************************************************************************************************************************************7121//Workflow Service7122//**********************************************************************************************************************************************************7123/**7124* Extends mxShape.7125*/7126function mxShapeAws3dWorkflowService(bounds, fill, stroke, strokewidth)7127{7128 mxShape.call(this);7129 this.bounds = bounds;7130 this.fill = fill;7131 this.stroke = stroke;7132 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7133};71347135/**7136* Extends mxShape.7137*/7138mxUtils.extend(mxShapeAws3dWorkflowService, mxShape);71397140mxShapeAws3dWorkflowService.prototype.cst = {7141 WORKFLOW_SERVICE : 'mxgraph.aws3d.workflowService',7142 SHADING_COLORS : 'shadingCols'7143};71447145mxShapeAws3dWorkflowService.prototype.customProperties = [7146 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}7147];71487149/**7150* Function: paintVertexShape7151* 7152* Paints the vertex shape.7153*/7154mxShapeAws3dWorkflowService.prototype.paintVertexShape = function(c, x, y, w, h)7155{7156 c.translate(x, y);7157 7158 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7159 var strokeWidth1 = strokeWidth * w / 181.5;7160 var strokeWidth2 = strokeWidth * h / 210;7161 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');7162 7163 strokeWidth = Math.min(strokeWidth1, strokeWidth2);71647165 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);7166 c.setShadow(false);7167 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);7168};71697170mxShapeAws3dWorkflowService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)7171{7172 c.setStrokeWidth(strokeWidth);7173 c.save();7174 c.save();7175 c.save();7176 c.setStrokeWidth(2 * strokeWidth);7177 c.setStrokeColor(strokeColor2);7178 c.setLineJoin('round');71797180 c.begin();7181 c.moveTo(0, h * 0.6456);7182 c.lineTo(w * 0.2481, 0);7183 c.lineTo(w * 0.7497, 0);7184 c.lineTo(w, h * 0.6456);7185 c.lineTo(w * 0.4984, h);7186 c.close();7187 c.fillAndStroke();7188};71897190mxShapeAws3dWorkflowService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)7191{7192 c.restore();7193 c.setShadow(false);7194 c.setFillColor('#000000');7195 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorkflowService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7196 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7197 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7198 7199 c.begin();7200 c.moveTo(0, h * 0.6456);7201 c.lineTo(w * 0.2486, 0);7202 c.lineTo(w * 0.2486, h * 0.3531);7203 c.lineTo(w * 0.4984, h);7204 c.close();7205 c.moveTo(w * 0.7497, h * 0.3531);7206 c.lineTo(w * 0.7497, 0);7207 c.lineTo(w, h * 0.6456);7208 c.close();7209 c.fill();72107211 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7212 c.begin();7213 c.moveTo(w * 0.4984, h);7214 c.lineTo(w * 0.7486, h * 0.3531);7215 c.lineTo(w, h * 0.6456);7216 c.lineTo(w * 0.4967, h);7217 c.close();7218 c.fill();7219 7220 c.restore();7221 c.setShadow(false);7222 c.setLineJoin('round');7223 7224 c.begin();7225 c.moveTo(w * 0.7497, h * 0.3531);7226 c.lineTo(w * 0.7497, 0);7227 c.lineTo(w, h * 0.6456);7228 c.close();7229 c.moveTo(0, h * 0.6456);7230 c.lineTo(w * 0.2486, 0);7231 c.lineTo(w * 0.2486, h * 0.3531);7232 c.lineTo(w * 0.4984, h);7233 c.lineTo(w * 0.7486, h * 0.3531);7234 c.lineTo(w, h * 0.6456);7235 c.lineTo(w * 0.4967, h);7236 c.close();7237 c.moveTo(w * 0.2486, h * 0.3531);7238 c.lineTo(w * 0.7508, h * 0.3531);7239 c.moveTo(w * 0.2488, h * 0.353);7240 c.lineTo(0, h * 0.6486);7241 c.stroke();72427243 c.restore();7244 c.setShadow(false);7245 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');7246 c.setFillColor(strokeColor);7247 c.setStrokeWidth(2 * strokeWidth);72487249 c.begin();7250 c.ellipse(w * 0.2925, h * 0.031, w * 0.4116, h * 0.2925);7251 c.fill();7252 7253 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');7254 c.setStrokeColor(fillColor);7255 7256 c.begin();7257 c.moveTo(w * 0.5252, h * 0.0465);7258 c.lineTo(w * 0.5873, h * 0.0903);7259 c.lineTo(w * 0.5483, h * 0.1173);7260 c.lineTo(w * 0.4874, h * 0.0728);7261 c.close();7262 c.moveTo(w * 0.4896, h * 0.1132);7263 c.lineTo(w * 0.5005, h * 0.1705);7264 c.lineTo(w * 0.4182, h * 0.1631);7265 c.lineTo(w * 0.4122, h * 0.1058);7266 c.close();7267 c.moveTo(w * 0.3584, h * 0.1631);7268 c.lineTo(w * 0.4204, h * 0.2062);7269 c.lineTo(w * 0.3825, h * 0.2332);7270 c.lineTo(w * 0.32, h * 0.19);7271 c.close();7272 c.moveTo(w * 0.4594, h * 0.2338);7273 c.lineTo(w * 0.5214, h * 0.2783);7274 c.lineTo(w * 0.4835, h * 0.3053);7275 c.lineTo(w * 0.4215, h * 0.2608);7276 c.close();7277 c.moveTo(w * 0.5187, h * 0.0943);7278 c.lineTo(w * 0.4879, h * 0.1152);7279 c.moveTo(w * 0.421, h * 0.1624);7280 c.lineTo(w * 0.3895, h * 0.1846);7281 c.moveTo(w * 0.5, h * 0.1698);7282 c.lineTo(w * 0.5554, h * 0.2089);7283 c.lineTo(w * 0.4885, h * 0.2567);7284 c.stroke();72857286 c.setStrokeWidth(2 * strokeWidth);7287 c.setStrokeColor(strokeColor2);7288 c.setLineJoin('round');72897290 c.begin();7291 c.moveTo(0, h * 0.6456);7292 c.lineTo(w * 0.2481, 0);7293 c.lineTo(w * 0.7497, 0);7294 c.lineTo(w, h * 0.6456);7295 c.lineTo(w * 0.4984, h);7296 c.close();7297 c.close();7298 c.stroke();7299};73007301mxCellRenderer.registerShape(mxShapeAws3dWorkflowService.prototype.cst.WORKFLOW_SERVICE, mxShapeAws3dWorkflowService);73027303//**********************************************************************************************************************************************************7304//Decider7305//**********************************************************************************************************************************************************7306/**7307* Extends mxShape.7308*/7309function mxShapeAws3dDecider(bounds, fill, stroke, strokewidth)7310{7311 mxShape.call(this);7312 this.bounds = bounds;7313 this.fill = fill;7314 this.stroke = stroke;7315 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7316};73177318/**7319* Extends mxShape.7320*/7321mxUtils.extend(mxShapeAws3dDecider, mxShape);73227323mxShapeAws3dDecider.prototype.cst = {7324 DECIDER : 'mxgraph.aws3d.decider',7325 SHADING_COLORS : 'shadingCols'7326};73277328mxShapeAws3dDecider.prototype.customProperties = [7329 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}7330];73317332/**7333* Function: paintVertexShape7334* 7335* Paints the vertex shape.7336*/7337mxShapeAws3dDecider.prototype.paintVertexShape = function(c, x, y, w, h)7338{7339 c.translate(x, y);73407341 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7342 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));7343 var strokeWidth1 = strokeWidth * w / 74;7344 var strokeWidth2 = strokeWidth * h / 50;7345 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');7346 7347 strokeWidth = Math.min(strokeWidth1, strokeWidth2);7348 7349 c.setStrokeWidth(strokeWidth);7350 c.setShadow(false);7351 c.save();7352 c.save();7353 c.setStrokeWidth(2 * strokeWidth);7354 c.setStrokeColor(strokeColor2);7355 c.setLineJoin('round');73567357 if (isShadow == 1)7358 {7359 c.setShadow(true);7360 }73617362 c.begin();7363 c.moveTo(0, h * 0.572);7364 c.lineTo(w * 0.0865, h * 0.284);7365 c.lineTo(w * 0.4203, 0);7366 c.lineTo(w * 0.5865, 0);7367 c.lineTo(w * 0.919, h * 0.286);7368 c.lineTo(w, h * 0.566);7369 c.lineTo(w * 0.5027, h);7370 c.close();7371 c.fillAndStroke();7372 7373 c.restore();7374 c.setFillColor('#000000');7375 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDecider.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7376 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7377 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7378 7379 c.begin();7380 c.moveTo(0, h * 0.566);7381 c.lineTo(w * 0.0892, h * 0.282);7382 c.lineTo(w * 0.0878, h * 0.426);7383 c.lineTo(w * 0.4216, h * 0.712);7384 c.lineTo(w * 0.5865, h * 0.712);7385 c.lineTo(w * 0.5027, h);7386 c.close();7387 c.fill();73887389 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7390 c.begin();7391 c.moveTo(w * 0.5027, h);7392 c.lineTo(w * 0.5865, h * 0.712);7393 c.lineTo(w * 0.9176, h * 0.43);7394 c.lineTo(w, h * 0.566);7395 c.close();7396 c.fill();7397 7398 c.restore();7399 c.setLineJoin('round');7400 7401 c.begin();7402 c.moveTo(0, h * 0.566);7403 c.lineTo(w * 0.0892, h * 0.282);7404 c.lineTo(w * 0.0878, h * 0.426);7405 c.lineTo(w * 0.4216, h * 0.712);7406 c.lineTo(w * 0.5865, h * 0.712);7407 c.lineTo(w * 0.5027, h);7408 c.close();7409 c.moveTo(w * 0.5027, h);7410 c.lineTo(w * 0.5865, h * 0.712);7411 c.lineTo(w * 0.9176, h * 0.43);7412 c.lineTo(w, h * 0.566);7413 c.close();7414 c.moveTo(0, h * 0.572);7415 c.lineTo(w * 0.0892, h * 0.422);7416 c.moveTo(w * 0.5027, h);7417 c.lineTo(w * 0.4189, h * 0.708);7418 c.moveTo(w * 0.9176, h * 0.43);7419 c.lineTo(w * 0.9176, h * 0.29);7420 c.stroke();74217422 c.setStrokeWidth(1.6 * strokeWidth);7423 c.setLineJoin('square');7424 c.begin();7425 c.moveTo(w * 0.4973, h * 0.1523);7426 c.lineTo(w * 0.5608, h * 0.0982);7427 c.lineTo(w * 0.6581, h * 0.1844);7428 c.lineTo(w * 0.5986, h * 0.2365);7429 c.close();7430 c.moveTo(w * 0.3784, h * 0.2164);7431 c.lineTo(w * 0.5054, h * 0.2305);7432 c.lineTo(w * 0.5203, h * 0.3407);7433 c.lineTo(w * 0.3892, h * 0.3246);7434 c.close();7435 c.moveTo(w * 0.2932, h * 0.3246);7436 c.lineTo(w * 0.3919, h * 0.4128);7437 c.lineTo(w * 0.3334, h * 0.4647);7438 c.lineTo(w * 0.2357, h * 0.38);7439 c.close();7440 c.moveTo(w * 0.4568, h * 0.4649);7441 c.lineTo(w * 0.5554, h * 0.5511);7442 c.lineTo(w * 0.4932, h * 0.6032);7443 c.lineTo(w * 0.3946, h * 0.517);7444 c.close();7445 c.moveTo(w * 0.5473, h * 0.1924);7446 c.lineTo(w * 0.5027, h * 0.2365);7447 c.moveTo(w * 0.4, h * 0.3186);7448 c.lineTo(w * 0.3446, h * 0.3667);7449 c.moveTo(w * 0.5189, h * 0.3387);7450 c.lineTo(w * 0.6081, h * 0.4148);7451 c.lineTo(w * 0.5068, h * 0.501);7452 c.stroke();74537454 c.setStrokeColor(strokeColor2);74557456 c.begin();7457 c.moveTo(0, h * 0.572);7458 c.lineTo(w * 0.0865, h * 0.284);7459 c.lineTo(w * 0.4203, 0);7460 c.lineTo(w * 0.5865, 0);7461 c.lineTo(w * 0.919, h * 0.286);7462 c.lineTo(w, h * 0.566);7463 c.lineTo(w * 0.5027, h);7464 c.close();7465 c.stroke();7466};74677468mxCellRenderer.registerShape(mxShapeAws3dDecider.prototype.cst.DECIDER, mxShapeAws3dDecider);74697470//**********************************************************************************************************************************************************7471//Search Engine7472//**********************************************************************************************************************************************************7473/**7474* Extends mxShape.7475*/7476function mxShapeAws3dSearchEngine(bounds, fill, stroke, strokewidth)7477{7478 mxShape.call(this);7479 this.bounds = bounds;7480 this.fill = fill;7481 this.stroke = stroke;7482 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7483};74847485/**7486* Extends mxShape.7487*/7488mxUtils.extend(mxShapeAws3dSearchEngine, mxShape);74897490mxShapeAws3dSearchEngine.prototype.cst = {7491 SEARCH_ENGINE : 'mxgraph.aws3d.searchEngine',7492 SHADING_COLORS : 'shadingCols'7493};74947495mxShapeAws3dSearchEngine.prototype.customProperties = [7496 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}7497];74987499/**7500* Function: paintVertexShape7501* 7502* Paints the vertex shape.7503*/7504mxShapeAws3dSearchEngine.prototype.paintVertexShape = function(c, x, y, w, h)7505{7506 c.translate(x, y);7507 7508 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7509 var strokeWidth1 = strokeWidth * w / 180;7510 var strokeWidth2 = strokeWidth * h / 192;7511 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');7512 7513 strokeWidth = Math.min(strokeWidth1, strokeWidth2);75147515 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);7516 c.setShadow(false);7517 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);7518};75197520mxShapeAws3dSearchEngine.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)7521{7522 c.setStrokeWidth(strokeWidth);7523 c.save();7524 c.save();7525 c.save();7526 c.setStrokeWidth(2 * strokeWidth);7527 c.setStrokeColor(strokeColor2);7528 c.setLineJoin('round');75297530 c.begin();7531 c.moveTo(0, h * 0.7281);7532 c.lineTo(w * 0.1667, h * 0.5444);7533 c.lineTo(w * 0.1667, h * 0.1832);7534 c.lineTo(w * 0.5011, 0);7535 c.lineTo(w * 0.8333, h * 0.1832);7536 c.lineTo(w * 0.8333, h * 0.5446);7537 c.lineTo(w, h * 0.7281);7538 c.lineTo(w * 0.7486, h * 0.7735);7539 c.lineTo(w * 0.5819, h * 0.8617);7540 c.lineTo(w * 0.5011, h);7541 c.lineTo(w * 0.4169, h * 0.8653);7542 c.lineTo(w * 0.2475, h * 0.7704);7543 c.close();7544 c.fillAndStroke();7545};75467547mxShapeAws3dSearchEngine.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)7548{7549 c.restore();7550 c.setShadow(false);7551 c.setFillColor('#000000');7552 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSearchEngine.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7553 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7554 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7555 7556 c.begin();7557 c.moveTo(w * 0.1672, h * 0.1837);7558 c.lineTo(w * 0.4989, h * 0.3638);7559 c.lineTo(w * 0.4989, h * 0.7291);7560 c.lineTo(w * 0.5825, h * 0.8633);7561 c.lineTo(w * 0.4989, h);7562 c.lineTo(w * 0.4164, h * 0.8622);7563 c.lineTo(w * 0.2458, h * 0.7719);7564 c.lineTo(0, h * 0.7276);7565 c.lineTo(w * 0.1661, h * 0.5454);7566 c.close();7567 c.moveTo(w * 0.7486, h * 0.7714);7568 c.lineTo(w * 0.8317, h * 0.5459);7569 c.lineTo(w, h * 0.727);7570 c.close();7571 c.fill();75727573 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7574 c.begin();7575 c.moveTo(w * 0.4989, h * 0.3643);7576 c.lineTo(w * 0.8317, h * 0.1827);7577 c.lineTo(w * 0.8317, h * 0.5465);7578 c.lineTo(w * 0.7508, h * 0.7714);7579 c.lineTo(w * 0.5836, h * 0.8633);7580 c.lineTo(w * 0.4989, h * 0.727);7581 c.close();7582 c.fill();7583 7584 c.restore();7585 c.setShadow(false);7586 c.setLineJoin('round');7587 7588 c.begin();7589 c.moveTo(w * 0.1672, h * 0.1837);7590 c.lineTo(w * 0.4989, h * 0.3638);7591 c.lineTo(w * 0.4989, h * 0.7291);7592 c.lineTo(w * 0.5825, h * 0.8633);7593 c.lineTo(w * 0.4989, h);7594 c.lineTo(w * 0.4164, h * 0.8622);7595 c.lineTo(w * 0.2458, h * 0.7719);7596 c.lineTo(0, h * 0.7276);7597 c.lineTo(w * 0.1661, h * 0.5454);7598 c.close();7599 c.moveTo(w * 0.7486, h * 0.7714);7600 c.lineTo(w * 0.8317, h * 0.5459);7601 c.lineTo(w, h * 0.727);7602 c.close();7603 c.moveTo(w * 0.4989, h * 0.3643);7604 c.lineTo(w * 0.8317, h * 0.1827);7605 c.lineTo(w * 0.8317, h * 0.5465);7606 c.lineTo(w * 0.7508, h * 0.7714);7607 c.lineTo(w * 0.5836, h * 0.8633);7608 c.lineTo(w * 0.4989, h * 0.727);7609 c.close();7610 c.moveTo(w * 0.1667, h * 0.5459);7611 c.lineTo(w * 0.2486, h * 0.7704);7612 c.moveTo(w * 0.4164, h * 0.8633);7613 c.lineTo(w * 0.4989, h * 0.727);7614 c.lineTo(w * 0.4989, h);7615 c.stroke();76167617 c.restore();7618 c.setShadow(false);7619 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');7620 c.setFillColor(strokeColor);7621 7622 c.begin();7623 c.moveTo(w * 0.3427, h * 0.179);7624 c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 1, w * 0.3267, h * 0.1487);7625 c.arcTo(w * 0.0664, h * 0.0365, 0, 0, 1, w * 0.3621, h * 0.1227);7626 c.arcTo(w * 0.1052, h * 0.0992, 0, 0, 1, w * 0.4247, h * 0.1195);7627 c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4884, h * 0.1018);7628 c.arcTo(w * 0.1329, h * 0.1253, 0, 0, 1, w * 0.5548, h * 0.1112);7629 c.arcTo(w * 0.0377, h * 0.0344, 0, 0, 1, w * 0.572, h * 0.166);7630 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.6047, h * 0.1775);7631 c.arcTo(w * 0.021, h * 0.0198, 0, 0, 1, w * 0.5936, h * 0.2046);7632 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.6008, h * 0.2416);7633 c.arcTo(w * 0.072, h * 0.0678, 0, 0, 1, w * 0.5437, h * 0.2677);7634 c.arcTo(w * 0.1052, h * 0.0939, 0, 0, 1, w * 0.4828, h * 0.2563);7635 c.close();7636 c.moveTo(w * 0.448, h * 0.2156);7637 c.arcTo(w * 0.0111, h * 0.0104, 0, 0, 0, w * 0.459, h * 0.2255);7638 c.arcTo(w * 0.0138, h * 0.013, 0, 0, 0, w * 0.4729, h * 0.2182);7639 c.lineTo(w * 0.4773, h * 0.1874);7640 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.5116, h * 0.1759);7641 c.arcTo(w * 0.0277, h * 0.0626, 0, 0, 0, w * 0.5233, h * 0.1503);7642 c.arcTo(w * 0.0554, h * 0.0261, 0, 0, 0, w * 0.5022, h * 0.1336);7643 c.arcTo(w * 0.0886, h * 0.0835, 0, 0, 0, w * 0.4607, h * 0.1305);7644 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4313, h * 0.142);7645 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.4175, h * 0.1597);7646 c.arcTo(w * 0.0249, h * 0.0235, 0, 0, 0, w * 0.4313, h * 0.1822);7647 c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 0, w * 0.4535, h * 0.1884);7648 c.close();7649 c.moveTo(w * 0.4718, h * 0.1764);7650 c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 1, w * 0.4496, h * 0.1754);7651 c.arcTo(w * 0.0221, h * 0.0157, 0, 0, 1, w * 0.4369, h * 0.1634);7652 c.arcTo(w * 0.0221, h * 0.0183, 0, 0, 1, w * 0.4496, h * 0.1467);7653 c.arcTo(w * 0.0609, h * 0.0574, 0, 0, 1, w * 0.4759, h * 0.1414);7654 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.5033, h * 0.1514);7655 c.arcTo(w * 0.0443, h * 0.0209, 0, 0, 1, w * 0.495, h * 0.1701);7656 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.4718, h * 0.1764);7657 c.close();7658 c.fill();76597660 c.setStrokeWidth(2 * strokeWidth);7661 c.setStrokeColor(strokeColor2);7662 c.setLineJoin('round');76637664 c.begin();7665 c.moveTo(0, h * 0.7281);7666 c.lineTo(w * 0.1667, h * 0.5444);7667 c.lineTo(w * 0.1667, h * 0.1832);7668 c.lineTo(w * 0.5011, 0);7669 c.lineTo(w * 0.8333, h * 0.1832);7670 c.lineTo(w * 0.8333, h * 0.5446);7671 c.lineTo(w, h * 0.7281);7672 c.lineTo(w * 0.7486, h * 0.7735);7673 c.lineTo(w * 0.5819, h * 0.8617);7674 c.lineTo(w * 0.5011, h);7675 c.lineTo(w * 0.4169, h * 0.8653);7676 c.lineTo(w * 0.2475, h * 0.7704);7677 c.close();7678 c.stroke();7679};76807681mxCellRenderer.registerShape(mxShapeAws3dSearchEngine.prototype.cst.SEARCH_ENGINE, mxShapeAws3dSearchEngine);76827683//**********************************************************************************************************************************************************7684//Security Token Service7685//**********************************************************************************************************************************************************7686/**7687* Extends mxShape.7688*/7689function mxShapeAws3dSecurityTokenService(bounds, fill, stroke, strokewidth)7690{7691 mxShape.call(this);7692 this.bounds = bounds;7693 this.fill = fill;7694 this.stroke = stroke;7695 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7696};76977698/**7699* Extends mxShape.7700*/7701mxUtils.extend(mxShapeAws3dSecurityTokenService, mxShape);77027703mxShapeAws3dSecurityTokenService.prototype.cst = {7704 SECURITY_TOKEN_SERVICE : 'mxgraph.aws3d.securityTokenService',7705 SHADING_COLORS : 'shadingCols'7706};77077708mxShapeAws3dSecurityTokenService.prototype.customProperties = [7709 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}7710];77117712/**7713* Function: paintVertexShape7714* 7715* Paints the vertex shape.7716*/7717mxShapeAws3dSecurityTokenService.prototype.paintVertexShape = function(c, x, y, w, h)7718{7719 c.translate(x, y);7720 7721 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7722 var strokeWidth1 = strokeWidth * w / 180;7723 var strokeWidth2 = strokeWidth * h / 192;7724 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');7725 7726 strokeWidth = Math.min(strokeWidth1, strokeWidth2);77277728 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);7729 c.setShadow(false);7730 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);7731};77327733mxShapeAws3dSecurityTokenService.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)7734{7735 c.setStrokeWidth(strokeWidth);7736 c.save();7737 c.save();7738 c.save();7739 c.setStrokeWidth(2 * strokeWidth);7740 c.setStrokeColor(strokeColor2);7741 c.setLineJoin('round');77427743 c.begin();7744 c.moveTo(0, h * 0.7281);7745 c.lineTo(w * 0.1667, h * 0.5444);7746 c.lineTo(w * 0.1667, h * 0.1832);7747 c.lineTo(w * 0.5011, 0);7748 c.lineTo(w * 0.8333, h * 0.1832);7749 c.lineTo(w * 0.8333, h * 0.5446);7750 c.lineTo(w, h * 0.7281);7751 c.lineTo(w * 0.7486, h * 0.7735);7752 c.lineTo(w * 0.5819, h * 0.8617);7753 c.lineTo(w * 0.5011, h);7754 c.lineTo(w * 0.4169, h * 0.8653);7755 c.lineTo(w * 0.2475, h * 0.7704);7756 c.close();7757 c.fillAndStroke();7758};77597760mxShapeAws3dSecurityTokenService.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)7761{7762 c.restore();7763 c.setShadow(false);7764 c.setFillColor('#000000');7765 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSecurityTokenService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7766 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7767 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7768 7769 c.begin();7770 c.moveTo(w * 0.1672, h * 0.1837);7771 c.lineTo(w * 0.4989, h * 0.3638);7772 c.lineTo(w * 0.4989, h * 0.7291);7773 c.lineTo(w * 0.5825, h * 0.8633);7774 c.lineTo(w * 0.4989, h);7775 c.lineTo(w * 0.4164, h * 0.8622);7776 c.lineTo(w * 0.2458, h * 0.7719);7777 c.lineTo(0, h * 0.7276);7778 c.lineTo(w * 0.1661, h * 0.5454);7779 c.close();7780 c.moveTo(w * 0.7486, h * 0.7714);7781 c.lineTo(w * 0.8317, h * 0.5459);7782 c.lineTo(w, h * 0.727);7783 c.close();7784 c.fill();77857786 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7787 c.begin();7788 c.moveTo(w * 0.4989, h * 0.3643);7789 c.lineTo(w * 0.8317, h * 0.1827);7790 c.lineTo(w * 0.8317, h * 0.5465);7791 c.lineTo(w * 0.7508, h * 0.7714);7792 c.lineTo(w * 0.5836, h * 0.8633);7793 c.lineTo(w * 0.4989, h * 0.727);7794 c.close();7795 c.fill();7796 7797 c.restore();7798 c.setShadow(false);7799 c.setLineJoin('round');7800 7801 c.begin();7802 c.moveTo(w * 0.1672, h * 0.1837);7803 c.lineTo(w * 0.4989, h * 0.3638);7804 c.lineTo(w * 0.4989, h * 0.7291);7805 c.lineTo(w * 0.5825, h * 0.8633);7806 c.lineTo(w * 0.4989, h);7807 c.lineTo(w * 0.4164, h * 0.8622);7808 c.lineTo(w * 0.2458, h * 0.7719);7809 c.lineTo(0, h * 0.7276);7810 c.lineTo(w * 0.1661, h * 0.5454);7811 c.close();7812 c.moveTo(w * 0.7486, h * 0.7714);7813 c.lineTo(w * 0.8317, h * 0.5459);7814 c.lineTo(w, h * 0.727);7815 c.close();7816 c.moveTo(w * 0.4989, h * 0.3643);7817 c.lineTo(w * 0.8317, h * 0.1827);7818 c.lineTo(w * 0.8317, h * 0.5465);7819 c.lineTo(w * 0.7508, h * 0.7714);7820 c.lineTo(w * 0.5836, h * 0.8633);7821 c.lineTo(w * 0.4989, h * 0.727);7822 c.close();7823 c.moveTo(w * 0.1667, h * 0.5459);7824 c.lineTo(w * 0.2486, h * 0.7704);7825 c.moveTo(w * 0.4164, h * 0.8633);7826 c.lineTo(w * 0.4989, h * 0.727);7827 c.lineTo(w * 0.4989, h);7828 c.stroke();78297830 c.restore();7831 c.setShadow(false);7832 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');7833 c.setFillColor(strokeColor);7834 7835 c.begin();7836 c.moveTo(w * 0.4773, h * 0.1915);7837 c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4358, h * 0.1968);7838 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.3937, h * 0.1905);7839 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 1, w * 0.3682, h * 0.1707);7840 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.3699, h * 0.1414);7841 c.arcTo(w * 0.0775, h * 0.0731, 0, 0, 1, w * 0.4009, h * 0.118);7842 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.4524, h * 0.1059);7843 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.5028, h * 0.1112);7844 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 1, w * 0.531, h * 0.1315);7845 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.531, h * 0.1597);7846 c.lineTo(w * 0.5615, h * 0.1754);7847 c.lineTo(w * 0.5526, h * 0.1905);7848 c.lineTo(w * 0.5759, h * 0.1999);7849 c.lineTo(w * 0.5753, h * 0.2109);7850 c.lineTo(w * 0.5792, h * 0.2161);7851 c.lineTo(w * 0.6135, h * 0.2182);7852 c.lineTo(w * 0.6113, h * 0.2416);7853 c.lineTo(w * 0.5819, h * 0.2474);7854 c.close();78557856 c.moveTo(w * 0.4756, h * 0.1816);7857 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.5, h * 0.1691);7858 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.5144, h * 0.1435);7859 c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 0, w * 0.4967, h * 0.1247);7860 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.4729, h * 0.1174);7861 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 0, w * 0.4452, h * 0.1169);7862 c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4197, h * 0.1232);7863 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.397, h * 0.1357);7864 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 0, w * 0.3859, h * 0.1555);7865 c.arcTo(w * 0.0305, h * 0.0287, 0, 0, 0, w * 0.4053, h * 0.178);7866 c.arcTo(w * 0.072, h * 0.0678, 0, 0, 0, w * 0.4385, h * 0.1863);7867 c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4596, h * 0.1848);7868 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4756, h * 0.1816);7869 c.fill();78707871 c.setStrokeWidth(1.5 * strokeWidth);7872 c.setLineJoin('round');7873 c.setLineCap('round');7874 c.begin();7875 c.moveTo(w * 0.4939, h * 0.1326);7876 c.lineTo(w * 0.4474, h * 0.1508);7877 c.lineTo(w * 0.4812, h * 0.1576);7878 c.moveTo(w * 0.4889, h * 0.1733);7879 c.lineTo(w * 0.4939, h * 0.1775);7880 c.moveTo(w * 0.5061, h * 0.1576);7881 c.lineTo(w * 0.5199, h * 0.1597);7882 c.moveTo(w * 0.5094, h * 0.1394);7883 c.lineTo(w * 0.5244, h * 0.1378);7884 c.moveTo(w * 0.4945, h * 0.1247);7885 c.lineTo(w * 0.4994, h * 0.1185);7886 c.moveTo(w * 0.4679, h * 0.1175);7887 c.lineTo(w * 0.4707, h * 0.1117);7888 c.moveTo(w * 0.4396, h * 0.1195);7889 c.lineTo(w * 0.4374, h * 0.1138);7890 c.moveTo(w * 0.412, h * 0.1284);7891 c.lineTo(w * 0.4059, h * 0.1232);7892 c.moveTo(w * 0.3948, h * 0.1441);7893 c.lineTo(w * 0.3804, h * 0.1425);7894 c.moveTo(w * 0.3931, h * 0.1608);7895 c.lineTo(w * 0.3804, h * 0.1649);7896 c.moveTo(w * 0.4059, h * 0.1754);7897 c.lineTo(w * 0.3998, h * 0.1801);7898 c.moveTo(w * 0.4308, h * 0.1822);7899 c.lineTo(w * 0.4286, h * 0.1884);7900 c.moveTo(w * 0.4618, h * 0.1827);7901 c.lineTo(w * 0.4635, h * 0.1868);7902 c.stroke();79037904 c.setStrokeWidth(2 * strokeWidth);7905 c.setStrokeColor(strokeColor2);79067907 c.begin();7908 c.moveTo(0, h * 0.7281);7909 c.lineTo(w * 0.1667, h * 0.5444);7910 c.lineTo(w * 0.1667, h * 0.1832);7911 c.lineTo(w * 0.5011, 0);7912 c.lineTo(w * 0.8333, h * 0.1832);7913 c.lineTo(w * 0.8333, h * 0.5446);7914 c.lineTo(w, h * 0.7281);7915 c.lineTo(w * 0.7486, h * 0.7735);7916 c.lineTo(w * 0.5819, h * 0.8617);7917 c.lineTo(w * 0.5011, h);7918 c.lineTo(w * 0.4169, h * 0.8653);7919 c.lineTo(w * 0.2475, h * 0.7704);7920 c.close();7921 c.stroke();7922};79237924mxCellRenderer.registerShape(mxShapeAws3dSecurityTokenService.prototype.cst.SECURITY_TOKEN_SERVICE, mxShapeAws3dSecurityTokenService);79257926//**********************************************************************************************************************************************************7927//Glacier7928//**********************************************************************************************************************************************************7929/**7930* Extends mxShape.7931*/7932function mxShapeAws3dGlacier(bounds, fill, stroke, strokewidth)7933{7934 mxShape.call(this);7935 this.bounds = bounds;7936 this.fill = fill;7937 this.stroke = stroke;7938 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7939};79407941/**7942* Extends mxShape.7943*/7944mxUtils.extend(mxShapeAws3dGlacier, mxShape);79457946mxShapeAws3dGlacier.prototype.cst = {7947 GLACIER : 'mxgraph.aws3d.glacier',7948 SHADING_COLORS : 'shadingCols'7949};79507951mxShapeAws3dGlacier.prototype.customProperties = [7952 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}7953];79547955/**7956* Function: paintVertexShape7957* 7958* Paints the vertex shape.7959*/7960mxShapeAws3dGlacier.prototype.paintVertexShape = function(c, x, y, w, h)7961{7962 c.translate(x, y);7963 7964 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7965 var strokeWidth1 = strokeWidth * w / 180;7966 var strokeWidth2 = strokeWidth * h / 192;7967 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');7968 7969 strokeWidth = Math.min(strokeWidth1, strokeWidth2);79707971 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);7972 c.setShadow(false);7973 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);7974};79757976mxShapeAws3dGlacier.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)7977{7978 c.setStrokeWidth(strokeWidth);7979 c.save();7980 c.save();7981 c.setStrokeWidth(2 * strokeWidth);7982 c.setStrokeColor(strokeColor2);7983 c.setLineJoin('round');79847985 c.begin();7986 c.moveTo(0, h * 0.8177);7987 c.lineTo(0, h * 0.5448);7988 c.lineTo(w * 0.168, h * 0.1792);7989 c.lineTo(w * 0.5008, 0);7990 c.lineTo(w * 0.8309, h * 0.1812);7991 c.lineTo(w, h * 0.5469);7992 c.lineTo(w, h * 0.8188);7993 c.lineTo(w * 0.6661, h);7994 c.lineTo(w * 0.3333, h);7995 c.close();7996 c.fillAndStroke();7997};79987999mxShapeAws3dGlacier.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)8000{8001 c.restore();8002 c.setShadow(false);8003 c.setFillColor('#000000');8004 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dGlacier.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8005 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8006 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8007 8008 c.begin();8009 c.moveTo(w * 0.1658, h * 0.1802);8010 c.lineTo(w * 0.5008, h * 0.3651);8011 c.lineTo(w * 0.6661, h * 0.9089);8012 c.lineTo(w * 0.6661, h);8013 c.lineTo(w * 0.3339, h);8014 c.lineTo(0, h * 0.8177);8015 c.lineTo(0, h * 0.5427);8016 c.close();8017 c.fill();80188019 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8020 c.begin();8021 c.moveTo(w * 0.5008, h * 0.362);8022 c.lineTo(w * 0.8314, h * 0.1823);8023 c.lineTo(w, h * 0.5469);8024 c.lineTo(w, h * 0.8177);8025 c.lineTo(w * 0.6661, h);8026 c.lineTo(w * 0.6661, h * 0.9089);8027 c.close();8028 c.fill();8029 8030 c.restore();8031 c.setShadow(false);8032 c.setLineJoin('round');8033 8034 c.begin();8035 c.moveTo(w * 0.1658, h * 0.1802);8036 c.lineTo(w * 0.5008, h * 0.3651);8037 c.lineTo(w * 0.6661, h * 0.9089);8038 c.lineTo(w * 0.6661, h);8039 c.lineTo(w * 0.3339, h);8040 c.lineTo(0, h * 0.8177);8041 c.lineTo(0, h * 0.5427);8042 c.close();8043 c.moveTo(w * 0.5008, h * 0.362);8044 c.lineTo(w * 0.8314, h * 0.1823);8045 c.lineTo(w, h * 0.5469);8046 c.lineTo(w, h * 0.8177);8047 c.lineTo(w * 0.6661, h);8048 c.lineTo(w * 0.6661, h * 0.9089);8049 c.close();8050 c.moveTo(w * 0.1675, h * 0.1797);8051 c.lineTo(0, h * 0.7281);8052 c.lineTo(w * 0.3284, h * 0.9089);8053 c.lineTo(w * 0.6661, h * 0.9089);8054 c.lineTo(w, h * 0.7266);8055 c.lineTo(w * 0.8309, h * 0.1823);8056 c.moveTo(w * 0.5003, h * 0.362);8057 c.lineTo(w * 0.3311, h * 0.9089);8058 c.lineTo(w * 0.3311, h);8059 c.stroke();80608061 c.setStrokeWidth(2 * strokeWidth);8062 c.setStrokeColor(strokeColor2);80638064 c.begin();8065 c.moveTo(0, h * 0.8177);8066 c.lineTo(0, h * 0.5448);8067 c.lineTo(w * 0.168, h * 0.1792);8068 c.lineTo(w * 0.5008, 0);8069 c.lineTo(w * 0.8309, h * 0.1812);8070 c.lineTo(w, h * 0.5469);8071 c.lineTo(w, h * 0.8188);8072 c.lineTo(w * 0.6661, h);8073 c.lineTo(w * 0.3333, h);8074 c.close();8075 c.stroke();8076};80778078mxCellRenderer.registerShape(mxShapeAws3dGlacier.prototype.cst.GLACIER, mxShapeAws3dGlacier);80798080//**********************************************************************************************************************************************************8081//Customer Gateway8082//**********************************************************************************************************************************************************8083/**8084* Extends mxShape.8085*/8086function mxShapeAws3dCustomerGateway(bounds, fill, stroke, strokewidth)8087{8088 mxShape.call(this);8089 this.bounds = bounds;8090 this.fill = fill;8091 this.stroke = stroke;8092 this.strokewidth = (strokewidth != null) ? strokewidth : 1;8093};80948095/**8096* Extends mxShape.8097*/8098mxUtils.extend(mxShapeAws3dCustomerGateway, mxShape);80998100mxShapeAws3dCustomerGateway.prototype.cst = {8101 CUSTOMER_GATEWAY : 'mxgraph.aws3d.customerGateway',8102 SHADING_COLORS : 'shadingCols'8103};81048105mxShapeAws3dCustomerGateway.prototype.customProperties = [8106 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}8107];81088109/**8110* Function: paintVertexShape8111* 8112* Paints the vertex shape.8113*/8114mxShapeAws3dCustomerGateway.prototype.paintVertexShape = function(c, x, y, w, h)8115{8116 c.translate(x, y);8117 8118 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));8119 var strokeWidth1 = strokeWidth * w / 116.7;8120 var strokeWidth2 = strokeWidth * h / 102.8;8121 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');8122 8123 strokeWidth = Math.min(strokeWidth1, strokeWidth2);81248125 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);8126 c.setShadow(false);8127 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);8128};81298130mxShapeAws3dCustomerGateway.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)8131{8132 c.setStrokeWidth(strokeWidth);8133 c.save();8134 c.save();8135 c.save();8136 c.save();8137 c.save();8138 c.setStrokeWidth(2 * strokeWidth);8139 c.setStrokeColor(strokeColor2);8140 c.setLineJoin('round');81418142 c.begin();8143 c.moveTo(w * 0.4199, h * 0.5447);8144 c.lineTo(w * 0.4199, h * 0.035);8145 c.lineTo(w * 0.8946, 0);8146 c.lineTo(w, h * 0.0691);8147 c.lineTo(w, h * 0.4134);8148 c.lineTo(w * 0.6812, h * 0.7247);8149 c.close();8150 c.fillAndStroke();81518152 c.restore();8153 c.save();8154 c.setShadow(false);8155 c.setFillColor('#000000');8156 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8157 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8158 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8159 c.begin();8160 c.moveTo(w * 0.4199, h * 0.5447);8161 c.lineTo(w * 0.4199, h * 0.035);8162 c.lineTo(w * 0.6838, h * 0.2072);8163 c.lineTo(w * 0.6838, h * 0.7247);8164 c.close();8165 c.fill();8166 8167 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8168 c.begin();8169 c.moveTo(w * 0.6838, h * 0.2072);8170 c.lineTo(w, h * 0.0691);8171 c.lineTo(w, h * 0.4134);8172 c.lineTo(w * 0.6838, h * 0.7247);8173 c.close();8174 c.fill();81758176 c.restore();8177 c.setShadow(false);8178 c.begin();8179 c.moveTo(w * 0.4199, h * 0.5447);8180 c.lineTo(w * 0.4199, h * 0.035);8181 c.lineTo(w * 0.6838, h * 0.2072);8182 c.lineTo(w * 0.6838, h * 0.7247);8183 c.close();8184 c.stroke();81858186 c.restore();8187 c.setLineJoin('round');8188 c.setShadow(false);81898190 c.begin();8191 c.moveTo(w * 0.6838, h * 0.2072);8192 c.lineTo(w, h * 0.0691);8193 c.lineTo(w, h * 0.4134);8194 c.lineTo(w * 0.6838, h * 0.7247);8195 c.close();8196 c.stroke();81978198 c.setStrokeWidth(2 * strokeWidth);8199 c.setStrokeColor(strokeColor2);8200 8201 c.begin();8202 c.moveTo(w * 0.4199, h * 0.5447);8203 c.lineTo(w * 0.4199, h * 0.035);8204 c.lineTo(w * 0.8946, 0);8205 c.lineTo(w, h * 0.0691);8206 c.lineTo(w, h * 0.4134);8207 c.lineTo(w * 0.6812, h * 0.7247);8208 c.close();8209 c.stroke();82108211 c.restore();8212 c.setStrokeWidth(2 * strokeWidth);8213 c.setStrokeColor(strokeColor2);8214 c.setLineJoin('round');82158216 c.begin();8217 c.moveTo(0, h * 0.929);8218 c.lineTo(0, h * 0.5866);8219 c.lineTo(w * 0.3171, h * 0.1031);8220 c.lineTo(w * 0.5784, h * 0.2753);8221 c.lineTo(w * 0.5784, h * 0.7928);8222 c.lineTo(w * 0.1054, h);8223 c.close();8224 c.fillAndStroke();8225};82268227mxShapeAws3dCustomerGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)8228{8229 c.restore();8230 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');8231 c.setShadow(false);8232 c.setLineJoin('round');8233 c.setFillColor('#000000');8234 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8235 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8236 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8237 8238 c.begin();8239 c.moveTo(0, h * 0.929);8240 c.lineTo(0, h * 0.5866);8241 c.lineTo(w * 0.1054, h * 0.6537);8242 c.lineTo(w * 0.1054, h);8243 c.close();8244 c.fill();82458246 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8247 c.begin();8248 c.moveTo(w * 0.1054, h);8249 c.lineTo(w * 0.1054, h * 0.6537);8250 c.lineTo(w * 0.5784, h * 0.2753);8251 c.lineTo(w * 0.5784, h * 0.7928);8252 c.close();8253 c.fill();8254 8255 c.restore();8256 c.setShadow(false);8257 c.setLineJoin('round');8258 8259 c.begin();8260 c.moveTo(0, h * 0.929);8261 c.lineTo(0, h * 0.5866);8262 c.lineTo(w * 0.1054, h * 0.6537);8263 c.lineTo(w * 0.1054, h);8264 c.close();8265 c.stroke();82668267 c.begin();8268 c.moveTo(w * 0.1054, h);8269 c.lineTo(w * 0.1054, h * 0.6537);8270 c.lineTo(w * 0.5784, h * 0.2753);8271 c.lineTo(w * 0.5784, h * 0.7928);8272 c.close();8273 c.stroke();8274 8275 c.setStrokeWidth(2 * strokeWidth);8276 c.setStrokeColor(strokeColor2);8277 c.setLineJoin('round');82788279 c.begin();8280 c.moveTo(0, h * 0.929);8281 c.lineTo(0, h * 0.5866);8282 c.lineTo(w * 0.3171, h * 0.1031);8283 c.lineTo(w * 0.5784, h * 0.2753);8284 c.lineTo(w * 0.5784, h * 0.7928);8285 c.lineTo(w * 0.1054, h);8286 c.close();8287 c.stroke();8288 8289 c.setFillColor(strokeColor);8290 c.begin();8291 c.moveTo(w * 0.7575, h * 0.3969);8292 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.7686, h * 0.3259);8293 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8055, h * 0.2481);8294 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8406, h * 0.2091);8295 c.lineTo(w * 0.8269, h * 0.2665);8296 c.lineTo(w * 0.8372, h * 0.2607);8297 c.lineTo(w * 0.8372, h * 0.3444);8298 c.lineTo(w * 0.7832, h * 0.3804);8299 c.lineTo(w * 0.7832, h * 0.3658);8300 c.close();8301 c.moveTo(w * 0.8466, h * 0.2082);8302 c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.8766, h * 0.1955);8303 c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.9186, h * 0.2286);8304 c.arcTo(w * 0.12, h * 0.1362, 0, 0, 1, w * 0.9297, h * 0.2821);8305 c.lineTo(w * 0.9006, h * 0.2831);8306 c.lineTo(w * 0.9006, h * 0.3016);8307 c.lineTo(w * 0.85, h * 0.3366);8308 c.lineTo(w * 0.85, h * 0.251);8309 c.lineTo(w * 0.8586, h * 0.2471);8310 c.close();8311 c.moveTo(w * 0.9297, h * 0.2967);8312 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.9195, h * 0.3667);8313 c.arcTo(w * 0.2571, h * 0.2918, 0, 0, 1, w * 0.8869, h * 0.4436);8314 c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.8466, h * 0.4903);8315 c.lineTo(w * 0.8595, h * 0.4358);8316 c.lineTo(w * 0.8492, h * 0.4416);8317 c.lineTo(w * 0.8492, h * 0.357);8318 c.lineTo(w * 0.9006, h * 0.32004);8319 c.lineTo(w * 0.9006, h * 0.3346);8320 c.close();8321 c.moveTo(w * 0.838, h * 0.4942);8322 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8072, h * 0.5049);8323 c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.7712, h * 0.4815);8324 c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.7566, h * 0.4163);8325 c.lineTo(w * 0.7832, h * 0.4173);8326 c.lineTo(w * 0.7832, h * 0.4008);8327 c.lineTo(w * 0.8372, h * 0.3638);8328 c.lineTo(w * 0.8372, h * 0.4494);8329 c.lineTo(w * 0.8278, h * 0.4562);8330 c.close();8331 c.fill();8332};83338334mxCellRenderer.registerShape(mxShapeAws3dCustomerGateway.prototype.cst.CUSTOMER_GATEWAY, mxShapeAws3dCustomerGateway);83358336//**********************************************************************************************************************************************************8337//Redshift8338//**********************************************************************************************************************************************************8339/**8340* Extends mxShape.8341*/8342function mxShapeAws3dRedshift(bounds, fill, stroke, strokewidth)8343{8344 mxShape.call(this);8345 this.bounds = bounds;8346 this.fill = fill;8347 this.stroke = stroke;8348 this.strokewidth = (strokewidth != null) ? strokewidth : 1;8349};83508351/**8352* Extends mxShape.8353*/8354mxUtils.extend(mxShapeAws3dRedshift, mxShape);83558356mxShapeAws3dRedshift.prototype.cst = {8357 REDSHIFT : 'mxgraph.aws3d.redshift',8358 SHADING_COLORS : 'shadingCols'8359};83608361mxShapeAws3dRedshift.prototype.customProperties = [8362 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}8363];83648365/**8366* Function: paintVertexShape8367* 8368* Paints the vertex shape.8369*/8370mxShapeAws3dRedshift.prototype.paintVertexShape = function(c, x, y, w, h)8371{8372 c.translate(x, y);8373 8374 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));8375 var strokeWidth1 = strokeWidth * w / 149.5;8376 var strokeWidth2 = strokeWidth * h / 187.5;8377 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');8378 8379 strokeWidth = Math.min(strokeWidth1, strokeWidth2);83808381 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);8382 c.setShadow(false);8383 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);8384};83858386mxShapeAws3dRedshift.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)8387{8388 c.setStrokeWidth(strokeWidth);8389 c.save();8390 c.save();8391 c.save();8392 c.setStrokeWidth(2 * strokeWidth);8393 c.setStrokeColor(strokeColor2);8394 c.setLineJoin('round');83958396 c.begin();8397 c.moveTo(0, h * 0.6517);8398 c.lineTo(0, h * 0.0912);8399 c.lineTo(w * 0.0368, h * 0.0155);8400 c.lineTo(w * 0.2047, 0);8401 c.lineTo(w * 0.3378, h * 0.0619);8402 c.lineTo(w * 0.3378, h * 0.0912);8403 c.lineTo(w * 0.3819, h * 0.0693);8404 c.lineTo(w * 0.6154, h * 0.0693);8405 c.lineTo(w * 0.8502, h * 0.1776);8406 c.lineTo(w * 0.8502, h * 0.3083);8407 c.lineTo(w * 0.8682, h * 0.3061);8408 c.lineTo(w, h * 0.3664);8409 c.lineTo(w, h * 0.9099);8410 c.lineTo(w * 0.9672, h * 0.9861);8411 c.lineTo(w * 0.7926, h);8412 c.lineTo(w * 0.6629, h * 0.9392);8413 c.lineTo(w * 0.6629, h * 0.9099);8414 c.lineTo(w * 0.6167, h * 0.9317);8415 c.lineTo(w * 0.3813, h * 0.9317);8416 c.lineTo(w * 0.1478, h * 0.8219);8417 c.lineTo(w * 0.1478, h * 0.7093);8418 c.lineTo(w * 0.1365, h * 0.7163);8419 c.close();8420 c.fillAndStroke();8421};84228423mxShapeAws3dRedshift.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)8424{8425 c.restore();8426 c.setShadow(false);8427 c.setFillColor('#000000');8428 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRedshift.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8429 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8430 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8431 8432 c.begin();8433 c.moveTo(0, h * 0.6541);8434 c.lineTo(0, h * 0.0933);8435 c.lineTo(w * 0.1371, h * 0.1573);8436 c.lineTo(w * 0.1371, h * 0.7157);8437 c.close();8438 c.moveTo(w * 0.1485, h * 0.8219);8439 c.lineTo(w * 0.1485, h * 0.2864);8440 c.lineTo(w * 0.3846, h * 0.3941);8441 c.lineTo(w * 0.3846, h * 0.9317);8442 c.close();8443 c.moveTo(w * 0.6642, h * 0.9392);8444 c.lineTo(w * 0.6642, h * 0.4011);8445 c.lineTo(w * 0.796, h * 0.4597);8446 c.lineTo(w * 0.796, h);8447 c.close();8448 c.fill();84498450 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8451 c.begin();8452 c.moveTo(w * 0.1371, h * 0.7157);8453 c.lineTo(w * 0.1371, h * 0.1568);8454 c.lineTo(w * 0.2027, h * 0.1525);8455 c.lineTo(w * 0.1498, h * 0.1771);8456 c.lineTo(w * 0.1498, h * 0.7061);8457 c.close();8458 c.moveTo(w * 0.3846, h * 0.3941);8459 c.lineTo(w * 0.614, h * 0.3941);8460 c.lineTo(w * 0.6809, h * 0.3632);8461 c.lineTo(w * 0.6642, h * 0.4);8462 c.lineTo(w * 0.6642, h * 0.9067);8463 c.lineTo(w * 0.6191, h * 0.9317);8464 c.lineTo(w * 0.3833, h * 0.9317);8465 c.close();8466 c.moveTo(w * 0.796, h * 0.4608);8467 c.lineTo(w * 0.9639, h * 0.4469);8468 c.lineTo(w, h * 0.3691);8469 c.lineTo(w, h * 0.9077);8470 c.lineTo(w * 0.9686, h * 0.9856);8471 c.lineTo(w * 0.796, h);8472 c.close();8473 c.moveTo(w * 0.3378, h * 0.0608);8474 c.lineTo(w * 0.3378, h * 0.0907);8475 c.lineTo(w * 0.3197, h * 0.1008);8476 c.close();8477 c.moveTo(w * 0.8502, h * 0.2843);8478 c.lineTo(w * 0.8502, h * 0.3083);8479 c.lineTo(w * 0.794, h * 0.3136);8480 c.close();8481 c.fill();8482 8483 c.restore();8484 c.setShadow(false);8485 c.setLineJoin('round');8486 8487 c.begin();8488 c.moveTo(0, h * 0.6541);8489 c.lineTo(0, h * 0.0933);8490 c.lineTo(w * 0.1371, h * 0.1573);8491 c.lineTo(w * 0.1371, h * 0.7157);8492 c.close();8493 c.moveTo(w * 0.1485, h * 0.8219);8494 c.lineTo(w * 0.1485, h * 0.2864);8495 c.lineTo(w * 0.3846, h * 0.3941);8496 c.lineTo(w * 0.3846, h * 0.9317);8497 c.close();8498 c.moveTo(w * 0.6642, h * 0.9392);8499 c.lineTo(w * 0.6642, h * 0.4011);8500 c.lineTo(w * 0.796, h * 0.4597);8501 c.lineTo(w * 0.796, h);8502 c.close();8503 c.moveTo(w * 0.1371, h * 0.7157);8504 c.lineTo(w * 0.1371, h * 0.1568);8505 c.lineTo(w * 0.2027, h * 0.1525);8506 c.lineTo(w * 0.1498, h * 0.1771);8507 c.lineTo(w * 0.1498, h * 0.7061);8508 c.close();8509 c.moveTo(w * 0.3846, h * 0.3941);8510 c.lineTo(w * 0.614, h * 0.3941);8511 c.lineTo(w * 0.6809, h * 0.3632);8512 c.lineTo(w * 0.6642, h * 0.4);8513 c.lineTo(w * 0.6642, h * 0.9067);8514 c.lineTo(w * 0.6191, h * 0.9317);8515 c.lineTo(w * 0.3833, h * 0.9317);8516 c.close();8517 c.moveTo(w * 0.796, h * 0.4608);8518 c.lineTo(w * 0.9639, h * 0.4469);8519 c.lineTo(w, h * 0.3691);8520 c.lineTo(w, h * 0.9077);8521 c.lineTo(w * 0.9686, h * 0.9856);8522 c.lineTo(w * 0.796, h);8523 c.close();8524 c.moveTo(w * 0.3378, h * 0.0608);8525 c.lineTo(w * 0.3378, h * 0.0907);8526 c.lineTo(w * 0.3197, h * 0.1008);8527 c.close();8528 c.moveTo(w * 0.8502, h * 0.2843);8529 c.lineTo(w * 0.8502, h * 0.3083);8530 c.lineTo(w * 0.794, h * 0.3136);8531 c.close();8532 c.moveTo(w * 0.6167, h * 0.3941);8533 c.lineTo(w * 0.6167, h * 0.9317);8534 c.moveTo(w * 0.9652, h * 0.4448);8535 c.lineTo(w * 0.9652, h * 0.9851);8536 c.stroke();85378538 c.restore();8539 c.setShadow(false);8540 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');8541 c.setFillColor(strokeColor);8542 8543 c.begin();8544 c.moveTo(w * 0.4903, h * 0.1259);8545 c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.5023, h * 0.1189);8546 c.arcTo(w * 0.2007, h * 0.16, 0, 0, 1, w * 0.5639, h * 0.1333);8547 c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.7157, h * 0.2005);8548 c.arcTo(w * 0.2006, h * 0.16, 0, 0, 1, w * 0.7565, h * 0.2315);8549 c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.7445, h * 0.2421);8550 c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.6742, h * 0.2251);8551 c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.5204, h * 0.1541);8552 c.arcTo(w * 0.1338, h * 0.1067, 0, 0, 1, w * 0.4903, h * 0.1259);8553 c.close();8554 c.moveTo(w * 0.4789, h * 0.1275);8555 c.arcTo(w * 0.0334, h * 0.0267, 0, 0, 0, w * 0.487, h * 0.1461);8556 c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 0, w * 0.5237, h * 0.1728);8557 c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 0, w * 0.6609, h * 0.2352);8558 c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 0, w * 0.7244, h * 0.2501);8559 c.arcTo(w * 0.0201, h * 0.016, 0, 0, 0, w * 0.7411, h * 0.2475);8560 c.lineTo(w * 0.5385, h * 0.3408);8561 c.arcTo(w * 0.0669, h * 0.05333, 0, 0, 1, w * 0.512, h * 0.3397);8562 c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.4548, h * 0.3248);8563 c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 1, w * 0.3084, h * 0.2565);8564 c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 1, w * 0.2776, h * 0.2304);8565 c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.2776, h * 0.2197);8566 c.close();8567 c.fill();85688569 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');8570 c.setFillColor(fillColor);8571 c.setLineJoin('round');8572 c.setLineCap('round');8573 c.begin();8574 c.moveTo(w * 0.3398, h * 0.2421);8575 c.lineTo(w * 0.4769, h * 0.1797);8576 c.lineTo(w * 0.6341, h * 0.2512);8577 c.lineTo(w * 0.4936, h * 0.3147);8578 c.fill();85798580 c.begin();8581 c.moveTo(w * 0.4334, h * 0.1941);8582 c.lineTo(w * 0.6207, h * 0.2811);8583 c.moveTo(w * 0.5338, h * 0.1995);8584 c.lineTo(w * 0.3866, h * 0.2688);8585 c.moveTo(w * 0.5873, h * 0.2235);8586 c.lineTo(w * 0.4334, h * 0.2955);8587 c.stroke();8588 c.setStrokeWidth(2 * strokeWidth);8589 c.setStrokeColor(strokeColor2);85908591 c.begin();8592 c.moveTo(0, h * 0.6517);8593 c.lineTo(0, h * 0.0912);8594 c.lineTo(w * 0.0368, h * 0.0155);8595 c.lineTo(w * 0.2047, 0);8596 c.lineTo(w * 0.3378, h * 0.0619);8597 c.lineTo(w * 0.3378, h * 0.0912);8598 c.lineTo(w * 0.3819, h * 0.0693);8599 c.lineTo(w * 0.6154, h * 0.0693);8600 c.lineTo(w * 0.8502, h * 0.1776);8601 c.lineTo(w * 0.8502, h * 0.3083);8602 c.lineTo(w * 0.8682, h * 0.3061);8603 c.lineTo(w, h * 0.3664);8604 c.lineTo(w, h * 0.9099);8605 c.lineTo(w * 0.9672, h * 0.9861);8606 c.lineTo(w * 0.7926, h);8607 c.lineTo(w * 0.6629, h * 0.9392);8608 c.lineTo(w * 0.6629, h * 0.9099);8609 c.lineTo(w * 0.6167, h * 0.9317);8610 c.lineTo(w * 0.3813, h * 0.9317);8611 c.lineTo(w * 0.1478, h * 0.8219);8612 c.lineTo(w * 0.1478, h * 0.7093);8613 c.lineTo(w * 0.1365, h * 0.7163);8614 c.close();8615 c.stroke();8616};86178618mxCellRenderer.registerShape(mxShapeAws3dRedshift.prototype.cst.REDSHIFT, mxShapeAws3dRedshift);86198620//**********************************************************************************************************************************************************8621//Lambda8622//**********************************************************************************************************************************************************8623/**8624* Extends mxShape.8625*/8626function mxShapeAws3dLambda(bounds, fill, stroke, strokewidth)8627{8628 mxShape.call(this);8629 this.bounds = bounds;8630 this.fill = fill;8631 this.stroke = stroke;8632 this.strokewidth = (strokewidth != null) ? strokewidth : 1;8633};86348635/**8636* Extends mxShape.8637*/8638mxUtils.extend(mxShapeAws3dLambda, mxShape);86398640mxShapeAws3dLambda.prototype.cst = {8641 LAMBDA : 'mxgraph.aws3d.lambda',8642 SHADING_COLORS : 'shadingCols'8643};86448645mxShapeAws3dLambda.prototype.customProperties = [8646 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true},8647 {name: 'strokeColor3', dispName: 'Stroke Color 3', type: 'color', defVal:"#ffffff", primary: true}8648];86498650/**8651* Function: paintVertexShape8652* 8653* Paints the vertex shape.8654*/8655mxShapeAws3dLambda.prototype.paintVertexShape = function(c, x, y, w, h)8656{8657 c.translate(x, y);8658 8659 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));8660 var strokeWidth1 = strokeWidth * w / 92;8661 var strokeWidth2 = strokeWidth * h / 109.5;8662 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');8663 8664 strokeWidth = Math.min(strokeWidth1, strokeWidth2);86658666 this.background(c, 0, 0, w, h, strokeWidth, strokeColor2);8667 c.setShadow(false);8668 this.foreground(c, 0, 0, w, h, strokeWidth, strokeColor2);8669};86708671mxShapeAws3dLambda.prototype.background = function(c, x, y, w, h, strokeWidth, strokeColor2)8672{8673 c.setStrokeWidth(strokeWidth);8674 c.save();8675 c.save();8676 c.setStrokeWidth(2 * strokeWidth);8677 c.setStrokeColor(strokeColor2);8678 c.setLineJoin('round');86798680 c.begin();8681 c.moveTo(0, h * 0.1671);8682 c.lineTo(w * 0.3424, 0);8683 c.lineTo(w * 0.663, 0);8684 c.lineTo(w, h * 0.1671);8685 c.lineTo(w, h * 0.8365);8686 c.lineTo(w * 0.663, h);8687 c.lineTo(w * 0.3424, h);8688 c.lineTo(0, h * 0.8365);8689 c.close();8690 c.fillAndStroke();8691};86928693mxShapeAws3dLambda.prototype.foreground = function(c, x, y, w, h, strokeWidth, strokeColor2)8694{8695 c.restore();8696 c.setShadow(false);8697 c.setFillColor('#000000');8698 var strokeColor = mxUtils.getValue(this.style, 'strokeColor', '#5E5E5E');8699 var strokeColor3 = mxUtils.getValue(this.style, 'strokeColor3', '#ffffff');8700 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dLambda.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8701 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8702 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8703 8704 c.begin();8705 c.moveTo(0, h * 0.3242);8706 c.lineTo(w * 0.3424, h * 0.4895);8707 c.lineTo(w * 0.663, h * 0.4895);8708 c.lineTo(w * 0.663, h);8709 c.lineTo(w * 0.3424, h);8710 c.lineTo(0, h * 0.8365);8711 c.close();8712 c.moveTo(w * 0., h * 0.);8713 c.lineTo(w * 0., h * 0.);8714 c.lineTo(w * 0., h * 0.);8715 c.lineTo(w * 0., h * 0.);8716 c.lineTo(w * 0., h * 0.);8717 c.lineTo(w * 0., h * 0.);8718 c.close();8719 c.moveTo(w * 0., h * 0.);8720 c.lineTo(w * 0., h * 0.);8721 c.lineTo(w * 0., h * 0.);8722 c.lineTo(w * 0., h * 0.);8723 c.lineTo(w * 0., h * 0.);8724 c.lineTo(w * 0., h * 0.);8725 c.close();8726 c.fill();87278728 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8729 c.begin();8730 c.moveTo(w * 0.663, h * 0.4895);8731 c.lineTo(w, h * 0.3242);8732 c.lineTo(w, h * 0.8365);8733 c.lineTo(w * 0.663, h);8734 c.close();8735 c.fill();8736 8737 c.restore();8738 c.setShadow(false);8739 c.setLineJoin('round');8740 8741 c.begin();8742 c.moveTo(0, h * 0.3242);8743 c.lineTo(w * 0.3424, h * 0.4895);8744 c.lineTo(w * 0.663, h * 0.4895);8745 c.lineTo(w, h * 0.3242);8746 c.moveTo(w * 0.3424, h * 0.4895);8747 c.lineTo(w * 0.3424, h);8748 c.moveTo(w * 0.663, h * 0.4895);8749 c.lineTo(w * 0.663, h);8750 c.stroke();87518752 c.setFillColor(strokeColor);8753 8754 c.begin();8755 c.moveTo(w * 0.3804, h * 0.1169);8756 c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.6087, h * 0.1123);8757 c.arcTo(w * 0.33804, h * 0.3196, 0, 0, 1, w * 0.725, h * 0.1553);8758 c.arcTo(w * 0.1304, h * 0.1096, 0, 0, 1, w * 0.7924, h * 0.2402);8759 c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.725, h * 0.3333);8760 c.arcTo(w * 0.4416, h * 0.274, 0, 0, 1, w * 0.6087, h * 0.3772);8761 c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.3804, h * 0.3708);8762 c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.2772, h * 0.3324);8763 c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2163, h * 0.2539);8764 c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2663, h * 0.1644);8765 c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.3804, h * 0.1169);8766 c.fill();87678768 c.setFillColor(strokeColor3);87698770 c.begin();8771 c.moveTo(w * 0.5565, h * 0.2174);8772 c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.5837, h * 0.1945);8773 c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 0, w * 0.5793, h * 0.1671);8774 c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.525, h * 0.1598);8775 c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 1, w * 0.5543, h * 0.1443);8776 c.arcTo(w * 0.0761, h * 0.0639, 0, 0, 1, w * 0.6163, h * 0.1662);8777 c.arcTo(w * 0.0598, h * 0.0502, 0, 0, 1, w * 0.6087, h * 0.2091);8778 c.lineTo(w * 0.5, h * 0.3032);8779 c.arcTo(w * 0.0978, h * 0.0822, 0, 0, 0, w * 0.4728, h * 0.3379);8780 c.arcTo(w * 0.0272, h * 0.0228, 0, 0, 0, w * 0.4924, h * 0.3571);8781 c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 1, w * 0.4489, h * 0.3571);8782 c.arcTo(w * 0.038, h * 0.032, 0, 0, 1, w * 0.437, h * 0.3242);8783 c.arcTo(w * 0.1087, h * 0.0913, 0, 0, 1, w * 0.4674, h * 0.2886);8784 c.lineTo(w * 0.5141, h * 0.2557);8785 c.lineTo(w * 0.3185, h * 0.2895);8786 c.lineTo(w * 0.2641, h * 0.2648);8787 c.close();8788 c.fill();87898790 c.setStrokeWidth(2 * strokeWidth);8791 c.setStrokeColor(strokeColor2);87928793 c.begin();8794 c.moveTo(0, h * 0.1671);8795 c.lineTo(w * 0.3424, 0);8796 c.lineTo(w * 0.663, 0);8797 c.lineTo(w, h * 0.1671);8798 c.lineTo(w, h * 0.8365);8799 c.lineTo(w * 0.663, h);8800 c.lineTo(w * 0.3424, h);8801 c.lineTo(0, h * 0.8365);8802 c.close();8803 c.stroke();8804};88058806mxCellRenderer.registerShape(mxShapeAws3dLambda.prototype.cst.LAMBDA, mxShapeAws3dLambda);88078808//**********************************************************************************************************************************************************8809//EBS 28810//**********************************************************************************************************************************************************8811/**8812* Extends mxShape.8813*/8814function mxShapeAws3dEbs2(bounds, fill, stroke, strokewidth)8815{8816 mxShape.call(this);8817 this.bounds = bounds;8818 this.fill = fill;8819 this.stroke = stroke;8820 this.strokewidth = (strokewidth != null) ? strokewidth : 1;8821};88228823/**8824* Extends mxShape.8825*/8826mxUtils.extend(mxShapeAws3dEbs2, mxShape);88278828mxShapeAws3dEbs2.prototype.cst = {8829 EBS2 : 'mxgraph.aws3d.ebs2',8830 SHADING_COLORS : 'shadingCols'8831};88328833mxShapeAws3dEbs2.prototype.customProperties = [8834 {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color', defVal:"#292929", primary: true}8835];88368837/**8838* Function: paintVertexShape8839* 8840* Paints the vertex shape.8841*/8842mxShapeAws3dEbs2.prototype.paintVertexShape = function(c, x, y, w, h)8843{8844 c.translate(x, y);88458846 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));8847 var strokeWidth1 = strokeWidth * w / 92;8848 var strokeWidth2 = strokeWidth * h / 60;8849 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));8850 var strokeColor2 = mxUtils.getValue(this.style, 'strokeColor2', '#292929');8851 8852 strokeWidth = Math.min(strokeWidth1, strokeWidth2);8853 8854 c.setStrokeWidth(strokeWidth);8855 c.setShadow(false);8856 c.save();8857 c.save();8858 c.setStrokeWidth(2 * strokeWidth);8859 c.setStrokeColor(strokeColor2);8860 c.setLineJoin('round');88618862 if(isShadow == 1)8863 {8864 c.setShadow(true);8865 }8866 8867 c.begin();8868 c.moveTo(0, h * 0.5276);8869 c.lineTo(0, h * 0.4188);8870 c.lineTo(w * 0.071, h * 0.2898);8871 c.lineTo(w * 0.4033, 0);8872 c.lineTo(w * 0.9301, h * 0.464);8873 c.lineTo(w, h * 0.5863);8874 c.lineTo(w, h * 0.7035);8875 c.lineTo(w * 0.6667, h);8876 c.lineTo(w * 0.5355, h);8877 c.close();8878 c.fillAndStroke();8879 8880 c.restore();8881 c.setFillColor('#000000');8882 8883 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8884 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8885 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8886 8887 c.begin();8888 c.moveTo(w * 0.071, h * 0.2948);8889 c.lineTo(w * 0.6011, h * 0.7621);8890 c.lineTo(w * 0.6667, h);8891 c.lineTo(w * 0.5355, h);8892 c.lineTo(0, h * 0.5276);8893 c.lineTo(0, h * 0.4137);8894 c.close();8895 c.fill();88968897 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8898 c.begin();8899 c.moveTo(w * 0.6011, h * 0.7655);8900 c.lineTo(w * 0.9344, h * 0.4724);8901 c.lineTo(w, h * 0.7035);8902 c.lineTo(w * 0.6667, h);8903 c.close();8904 c.fill();8905 8906 c.restore();8907 c.setLineJoin('round');8908 8909 c.begin();8910 c.moveTo(w * 0.071, h * 0.2948);8911 c.lineTo(w * 0.6011, h * 0.7621);8912 c.lineTo(w * 0.6667, h);8913 c.lineTo(w * 0.5355, h);8914 c.lineTo(0, h * 0.5276);8915 c.lineTo(0, h * 0.4137);8916 c.close();8917 c.moveTo(w * 0.6011, h * 0.7655);8918 c.lineTo(w * 0.9344, h * 0.4724);8919 c.lineTo(w, h * 0.7035);8920 c.lineTo(w * 0.6667, h);8921 c.close();8922 c.moveTo(w * 0.0033, h * 0.5276);8923 c.lineTo(w * 0.071, h * 0.2898);8924 c.moveTo(w * 0.5325, h * 0.9976);8925 c.lineTo(w * 0.603, h * 0.7593);8926 c.stroke();89278928 c.setStrokeWidth(2 * strokeWidth);8929 c.setLineCap('round');8930 8931 c.begin();8932 c.moveTo(w * 0.3388, h * 0.3802);8933 c.lineTo(w * 0.5027, h * 0.2345);8934 c.lineTo(w * 0.6667, h * 0.3802);8935 c.lineTo(w * 0.5027, h * 0.526);8936 c.close();8937 c.moveTo(w * 0.4426, h * 0.3802);8938 c.lineTo(w * 0.5027, h * 0.3266);8939 c.lineTo(w * 0.5628, h * 0.3802);8940 c.lineTo(w * 0.5027, h * 0.4338);8941 c.close();8942 c.moveTo(w * 0.3867, h * 0.3284);8943 c.lineTo(w * 0.3541, h * 0.2998);8944 c.moveTo(w * 0.4436, h * 0.2748);8945 c.lineTo(w * 0.4077, h * 0.2412);8946 c.moveTo(w * 0.5704, h * 0.2803);8947 c.lineTo(w * 0.5992, h * 0.2513);8948 c.moveTo(w * 0.6231, h * 0.3284);8949 c.lineTo(w * 0.6503, h * 0.3032);8950 c.moveTo(w * 0.622, h * 0.4338);8951 c.lineTo(w * 0.6557, h * 0.4606);8952 c.moveTo(w * 0.5667, h * 0.4845);8953 c.lineTo(w * 0.5992, h * 0.5156);8954 c.moveTo(w * 0.4414, h * 0.4874);8955 c.lineTo(w * 0.412, h * 0.5159);8956 c.moveTo(w * 0.3889, h * 0.4405);8957 c.lineTo(w * 0.3607, h * 0.4657);8958 c.stroke();8959 8960 c.setStrokeColor(strokeColor2);8961 c.setLineJoin('round');89628963 c.begin();8964 c.moveTo(0, h * 0.5276);8965 c.lineTo(0, h * 0.4188);8966 c.lineTo(w * 0.071, h * 0.2898);8967 c.lineTo(w * 0.4033, 0);8968 c.lineTo(w * 0.9301, h * 0.464);8969 c.lineTo(w, h * 0.5863);8970 c.lineTo(w, h * 0.7035);8971 c.lineTo(w * 0.6667, h);8972 c.lineTo(w * 0.5355, h);8973 c.close();8974 c.stroke();8975};89768977mxCellRenderer.registerShape(mxShapeAws3dEbs2.prototype.cst.EBS2, mxShapeAws3dEbs2);89788979//**********************************************************************************************************************************************************8980//Elasticache8981//**********************************************************************************************************************************************************8982///**8983//* Extends mxShape.8984//*/8985//function mxShapeAws3dElasticache(bounds, fill, stroke, strokewidth)8986//{8987// mxShape.call(this);8988// this.bounds = bounds;8989// this.fill = fill;8990// this.stroke = stroke;8991// this.strokewidth = (strokewidth != null) ? strokewidth : 1;8992//};8993//8994///**8995//* Extends mxShape.8996//*/8997//mxUtils.extend(mxShapeAws3dElasticache, mxShape);8998//8999//mxShapeAws3dElasticache.prototype.cst = {9000// ELASTICACHE : 'mxgraph.aws3d.elasticache',9001// SHADING_COLORS : 'shadingCols'9002//};9003//9004///**9005//* Function: paintVertexShape9006//* 9007//* Paints the vertex shape.9008//*/9009//mxShapeAws3dElasticache.prototype.paintVertexShape = function(c, x, y, w, h)9010//{9011// c.translate(x, y);9012//9013// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));9014// var strokeWidth1 = strokeWidth * w / 123;9015// var strokeWidth2 = strokeWidth * h / 143;9016// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));9017// 9018// strokeWidth = Math.min(strokeWidth1, strokeWidth2);9019// 9020// c.setStrokeWidth(strokeWidth);9021// c.setShadow(false);9022// c.save();9023// c.save();9024// c.setStrokeWidth(2 * strokeWidth);9025// c.setStrokeColor('#292929');9026// c.setLineJoin('round');9027//9028// if(isShadow == 1)9029// {9030// c.setShadow(true);9031// }9032// 9033// c.begin();9034// c.moveTo(0, h * 0.7483);9035// c.lineTo(0, h * 0.6294);9036// c.lineTo(w * 0.061, h * 0.5944);9037// c.lineTo(0, h * 0.563);9038// c.lineTo(0, h * 0.4406);9039// c.lineTo(w * 0.061, h * 0.4091);9040// c.lineTo(0, h * 0.3776);9041// c.lineTo(0, h * 0.2517);9042// c.lineTo(w * 0.5041, 0);9043// c.lineTo(w, h * 0.2483);9044// c.lineTo(w, h * 0.3741);9045// c.lineTo(w * 0.939, h * 0.4091);9046// c.lineTo(w, h * 0.4406);9047// c.lineTo(w, h * 0.563);9048// c.lineTo(w * 0.939, h * 0.5944);9049// c.lineTo(w, h * 0.6294);9050// c.lineTo(w, h * 0.751);9051// c.lineTo(w * 0.5041, h);9052// c.close();9053// c.fillAndStroke();9054// 9055// c.restore();9056// c.setFillColor('#000000');9057// 9058// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticache.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');9059// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');9060// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 9061// 9062// c.begin();9063// c.moveTo(0, h * 0.2517);9064// c.lineTo(w * 0.5041, h * 0.4965);9065// c.lineTo(w * 0.5041, h * 0.6294);9066// c.lineTo(0, h * 0.3776);9067// c.close();9068// c.moveTo(0, h * 0.4406);9069// c.lineTo(w * 0.5041, h * 0.6853);9070// c.lineTo(w * 0.5041, h * 0.8112);9071// c.lineTo(0, h * 0.5629);9072// c.close();9073// c.moveTo(0, h * 0.6294);9074// c.lineTo(w * 0.5041, h * 0.8741);9075// c.lineTo(w * 0.5041, h);9076// c.lineTo(0, h * 0.7483);9077// c.close();9078// c.moveTo(w * 0.6179, h * 0.2517);9079// c.lineTo(w * 0.752, h * 0.1853);9080// c.lineTo(w * 0.752, h * 0.3217);9081// c.close();9082// c.fill();9083//9084// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 9085// c.begin();9086// c.moveTo(w * 0.5041, h * 0.4965);9087// c.lineTo(w, h * 0.2517);9088// c.lineTo(w, h * 0.3741);9089// c.lineTo(w * 0.5041, h * 0.6294);9090// c.close();9091// c.moveTo(w * 0.5041, h * 0.6853);9092// c.lineTo(w, h * 0.4406);9093// c.lineTo(w, h * 0.5629);9094// c.lineTo(w * 0.5041, h * 0.8112);9095// c.close();9096// c.moveTo(w * 0.5041, h * 0.8741);9097// c.lineTo(w, h * 0.6294);9098// c.lineTo(w, h * 0.7483);9099// c.lineTo(w * 0.5041, h);9100// c.close();9101// c.moveTo(w * 0.752, h * 0.1853);9102// c.lineTo(w * 0.8821, h * 0.2517);9103// c.lineTo(w * 0.752, h * 0.3217);9104// c.close();9105// c.fill();9106// 9107// c.restore();9108// c.setLineJoin('round');9109// 9110// c.begin();9111// c.moveTo(0, h * 0.2517);9112// c.lineTo(w * 0.5041, h * 0.4965);9113// c.lineTo(w * 0.5041, h * 0.6294);9114// c.lineTo(0, h * 0.3776);9115// c.close();9116// c.moveTo(0, h * 0.4406);9117// c.lineTo(w * 0.5041, h * 0.6853);9118// c.lineTo(w * 0.5041, h * 0.8112);9119// c.lineTo(0, h * 0.5629);9120// c.close();9121// c.moveTo(0, h * 0.6294);9122// c.lineTo(w * 0.5041, h * 0.8741);9123// c.lineTo(w * 0.5041, h);9124// c.lineTo(0, h * 0.7483);9125// c.close();9126// c.moveTo(w * 0.5041, h * 0.4965);9127// c.lineTo(w, h * 0.2517);9128// c.lineTo(w, h * 0.3741);9129// c.lineTo(w * 0.5041, h * 0.6294);9130// c.close();9131// c.moveTo(w * 0.5041, h * 0.6853);9132// c.lineTo(w, h * 0.4406);9133// c.lineTo(w, h * 0.5629);9134// c.lineTo(w * 0.5041, h * 0.8112);9135// c.close();9136// c.moveTo(w * 0.5041, h * 0.8741);9137// c.lineTo(w, h * 0.6294);9138// c.lineTo(w, h * 0.7483);9139// c.lineTo(w * 0.5041, h);9140// c.close();9141// c.stroke();9142//9143// c.setStrokeWidth(2 * strokeWidth);9144// c.setLineCap('round');9145// var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');9146// c.setFillColor(strokeColor);9147//9148// c.begin();9149// c.moveTo(w * 0.222, h * 0.2028);9150// c.arcTo(w * 0.1463, h * 0.1259, 0, 0, 1, w * 0.3154, h * 0.2014);9151// c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3642, h * 0.2245);9152// c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.3618, h * 0.2552);9153// c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3252, h * 0.2798);9154// c.arcTo(w * 0.1626, h * 0.1399, 0, 0, 1, w * 0.2276, h * 0.2797);9155// c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.187, h * 0.2622);9156// c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.187, h * 0.2238);9157// c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.222, h * 0.2028);9158// c.close();9159// c.moveTo(w * 0.3618, h * 0.1434);9160// c.lineTo(w * 0.4309, h * 0.1189);9161// c.lineTo(w * 0.4309, h * 0.0755);9162// c.lineTo(w * 0.4992, h * 0.1014);9163// c.lineTo(w * 0.5813, h * 0.0874);9164// c.lineTo(w * 0.5488, h * 0.1294);9165// c.lineTo(w * 0.6057, h * 0.1608);9166// c.lineTo(w * 0.5163, h * 0.1608);9167// c.lineTo(w * 0.4634, h * 0.2028);9168// c.lineTo(w * 0.4431, h * 0.1538);9169// c.close();9170// c.moveTo(w * 0.3821, h * 0.3601);9171// c.lineTo(w * 0.5894, h * 0.3322);9172// c.lineTo(w * 0.5325, h * 0.4394);9173// c.close();9174// c.fill();9175// 9176// c.setStrokeColor('#292929');9177// c.setLineJoin('round');9178//9179// c.begin();9180// c.moveTo(0, h * 0.7483);9181// c.lineTo(0, h * 0.6294);9182// c.lineTo(w * 0.061, h * 0.5944);9183// c.lineTo(0, h * 0.563);9184// c.lineTo(0, h * 0.4406);9185// c.lineTo(w * 0.061, h * 0.4091);9186// c.lineTo(0, h * 0.3776);9187// c.lineTo(0, h * 0.2517);9188// c.lineTo(w * 0.5041, 0);9189// c.lineTo(w, h * 0.2483);9190// c.lineTo(w, h * 0.3741);9191// c.lineTo(w * 0.939, h * 0.4091);9192// c.lineTo(w, h * 0.4406);9193// c.lineTo(w, h * 0.563);9194// c.lineTo(w * 0.939, h * 0.5944);9195// c.lineTo(w, h * 0.6294);9196// c.lineTo(w, h * 0.751);9197// c.lineTo(w * 0.5041, h);9198// c.close();9199// c.stroke();9200//};9201//9202//mxCellRenderer.registerShape(mxShapeAws3dElasticache.prototype.cst.ELASTICACHE, mxShapeAws3dElasticache);92039204//**********************************************************************************************************************************************************9205//Kinesis Stream9206//**********************************************************************************************************************************************************9207/**9208* Extends mxShape.9209*/9210//function mxShapeAws3dKinesisStream(bounds, fill, stroke, strokewidth)9211//{9212// mxShape.call(this);9213// this.bounds = bounds;9214// this.fill = fill;9215// this.stroke = stroke;9216// this.strokewidth = (strokewidth != null) ? strokewidth : 1;9217//};9218//9219///**9220//* Extends mxShape.9221//*/9222//mxUtils.extend(mxShapeAws3dKinesisStream, mxShape);9223//9224//mxShapeAws3dKinesisStream.prototype.cst = {9225// KINESIS_STREAM : 'mxgraph.aws3d.kinesisStream',9226// SHADING_COLORS : 'shadingCols'9227//};9228//9229///**9230//* Function: paintVertexShape9231//* 9232//* Paints the vertex shape.9233//*/9234//mxShapeAws3dKinesisStream.prototype.paintVertexShape = function(c, x, y, w, h)9235//{9236// c.translate(x, y);9237//9238// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));9239// var strokeWidth1 = strokeWidth * w / 220;9240// var strokeWidth2 = strokeWidth * h / 160;9241// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));9242// 9243// strokeWidth = Math.min(strokeWidth1, strokeWidth2);9244// 9245// c.setStrokeWidth(strokeWidth);9246// c.setShadow(false);9247// c.save();9248// c.save();9249// c.setStrokeWidth(2 * strokeWidth);9250// c.setStrokeColor('#292929');9251// c.setLineJoin('round');9252//9253// if(isShadow == 1)9254// {9255// c.setShadow(true);9256// }9257// 9258// c.begin();9259// c.moveTo(0, h * 0.5503);9260// c.lineTo(w * 0.0455, h * 0.4623);9261// c.lineTo(w * 0.6054, h * 0.0157);9262// c.lineTo(w * 0.6623, h * 0.0629);9263// c.lineTo(w * 0.7396, 0);9264// c.lineTo(w * 0.8239, h * 0.0692);9265// c.lineTo(w * 0.8671, h * 0.2233);9266// c.lineTo(w * 0.9513, h * 0.2943);9267// c.lineTo(w, h * 0.4528);9268// c.lineTo(w * 0.9595, h * 0.5365);9269// c.lineTo(w * 0.396, h * 0.9843);9270// c.lineTo(w * 0.3391, h * 0.9403);9271// c.lineTo(w * 0.2617, h);9272// c.lineTo(w * 0.173, h * 0.9308);9273// c.lineTo(w * 0.1297, h * 0.7736);9274// c.lineTo(w * 0.0432, h * 0.7044);9275// c.close();9276// c.fillAndStroke();9277// 9278// c.restore();9279// c.setFillColor('#000000');9280// 9281// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dKinesisStream.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');9282// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');9283// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 9284// 9285// c.begin();9286// c.moveTo(w * 0.0432, h * 0.4654);9287// c.lineTo(w * 0.132, h * 0.5314);9288// c.lineTo(w * 0.1775, h * 0.4465);9289// c.lineTo(w * 0.264, h * 0.5189);9290// c.lineTo(w * 0.3072, h * 0.673);9291// c.lineTo(w * 0.396, h * 0.7453);9292// c.lineTo(w * 0.4392, h * 0.8994);9293// c.lineTo(w * 0.396, h * 0.9843);9294// c.lineTo(w * 0.305, h * 0.9151);9295// c.lineTo(w * 0.2617, h);9296// c.lineTo(w * 0.173, h * 0.9308);9297// c.lineTo(w * 0.1297, h * 0.7736);9298// c.lineTo(w * 0.0432, h * 0.7044);9299// c.lineTo(0, h * 0.5503);9300// c.close();9301// c.fill();9302//9303// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 9304// c.begin();9305// c.moveTo(w * 0.264, h * 0.5204);9306// c.lineTo(w * 0.8239, h * 0.0676);9307// c.lineTo(w * 0.8694, h * 0.228);9308// c.lineTo(w * 0.3072, h * 0.673);9309// c.close();9310// c.moveTo(w * 0.3937, h * 0.7453);9311// c.lineTo(w * 0.9536, h * 0.2956);9312// c.lineTo(w, h * 0.4528);9313// c.lineTo(w * 0.9558, h * 0.5377);9314// c.lineTo(w * 0.396, h * 0.9843);9315// c.lineTo(w * 0.4392, h * 0.8994);9316// c.close();9317// c.moveTo(w * 0.2617, h);9318// c.lineTo(w * 0.305, h * 0.9151);9319// c.lineTo(w * 0.3368, h * 0.9403);9320// c.close();9321// c.fill();9322// 9323// c.setAlpha('0.5');9324// c.begin();9325// c.moveTo(w * 0.0546, h * 0.5094);9326// c.lineTo(w * 0.1161, h * 0.5597);9327// c.lineTo(w * 0.1479, h * 0.6761);9328// c.lineTo(w * 0.1183, h * 0.7264);9329// c.lineTo(w * 0.0569, h * 0.6792);9330// c.lineTo(w * 0.025, h * 0.566);9331// c.close();9332// c.moveTo(w * 0.1889, h * 0.4937);9333// c.lineTo(w * 0.2503, h * 0.544);9334// c.lineTo(w * 0.2822, h * 0.6572);9335// c.lineTo(w * 0.2526, h * 0.717);9336// c.lineTo(w * 0.1934, h * 0.6667);9337// c.lineTo(w * 0.1593, h * 0.5566);9338// c.close();9339// c.moveTo(w * 0.3195, h * 0.7201);9340// c.lineTo(w * 0.3801, h * 0.7704);9341// c.lineTo(w * 0.4137, h * 0.8805);9342// c.lineTo(w * 0.3819, h * 0.9403);9343// c.lineTo(w * 0.3209, h * 0.8912);9344// c.lineTo(w * 0.2904, h * 0.783);9345// c.close();9346// c.moveTo(w * 0.1866, h * 0.7358);9347// c.lineTo(w * 0.2458, h * 0.783);9348// c.lineTo(w * 0.2776, h * 0.8962);9349// c.lineTo(w * 0.2481, h * 0.956);9350// c.lineTo(w * 0.1866, h * 0.9057);9351// c.lineTo(w * 0.157, h * 0.7893);9352// c.close();9353// c.fill();9354//9355// c.restore();9356// c.setLineJoin('round');9357// 9358// c.begin();9359// c.moveTo(w * 0.0432, h * 0.4654);9360// c.lineTo(w * 0.132, h * 0.5314);9361// c.lineTo(w * 0.1775, h * 0.4465);9362// c.lineTo(w * 0.264, h * 0.5189);9363// c.lineTo(w * 0.3072, h * 0.673);9364// c.lineTo(w * 0.396, h * 0.7453);9365// c.lineTo(w * 0.4392, h * 0.8994);9366// c.lineTo(w * 0.396, h * 0.9843);9367// c.lineTo(w * 0.305, h * 0.9151);9368// c.lineTo(w * 0.2617, h);9369// c.lineTo(w * 0.173, h * 0.9308);9370// c.lineTo(w * 0.1297, h * 0.7736);9371// c.lineTo(w * 0.0432, h * 0.7044);9372// c.lineTo(0, h * 0.5503);9373// c.close();9374// c.moveTo(w * 0.264, h * 0.5204);9375// c.lineTo(w * 0.8239, h * 0.0676);9376// c.lineTo(w * 0.8694, h * 0.228);9377// c.lineTo(w * 0.3072, h * 0.673);9378// c.close();9379// c.moveTo(w * 0.3937, h * 0.7453);9380// c.lineTo(w * 0.9536, h * 0.2956);9381// c.lineTo(w, h * 0.4528);9382// c.lineTo(w * 0.9558, h * 0.5377);9383// c.lineTo(w * 0.396, h * 0.9843);9384// c.lineTo(w * 0.4392, h * 0.8994);9385// c.close();9386// c.moveTo(w * 0.2617, h);9387// c.lineTo(w * 0.305, h * 0.9151);9388// c.lineTo(w * 0.3368, h * 0.9403);9389// c.close();9390// c.moveTo(w * 0.0546, h * 0.5094);9391// c.lineTo(w * 0.1161, h * 0.5597);9392// c.lineTo(w * 0.1479, h * 0.6761);9393// c.lineTo(w * 0.1183, h * 0.7264);9394// c.lineTo(w * 0.0569, h * 0.6792);9395// c.lineTo(w * 0.025, h * 0.566);9396// c.close();9397// c.moveTo(w * 0.1889, h * 0.4937);9398// c.lineTo(w * 0.2503, h * 0.544);9399// c.lineTo(w * 0.2822, h * 0.6572);9400// c.lineTo(w * 0.2526, h * 0.717);9401// c.lineTo(w * 0.1934, h * 0.6667);9402// c.lineTo(w * 0.1593, h * 0.5566);9403// c.close();9404// c.moveTo(w * 0.3195, h * 0.7201);9405// c.lineTo(w * 0.3801, h * 0.7704);9406// c.lineTo(w * 0.4137, h * 0.8805);9407// c.lineTo(w * 0.3819, h * 0.9403);9408// c.lineTo(w * 0.3209, h * 0.8912);9409// c.lineTo(w * 0.2904, h * 0.783);9410// c.close();9411// c.moveTo(w * 0.1866, h * 0.7358);9412// c.lineTo(w * 0.2458, h * 0.783);9413// c.lineTo(w * 0.2776, h * 0.8962);9414// c.lineTo(w * 0.2481, h * 0.956);9415// c.lineTo(w * 0.1866, h * 0.9057);9416// c.lineTo(w * 0.157, h * 0.7893);9417// c.close();9418// c.moveTo(w * 0.1775, h * 0.4465);9419// c.lineTo(w * 0.7374, 0);9420// c.moveTo(w * 0.4392, h * 0.8994);9421// c.lineTo(w, h * 0.4528);9422// c.moveTo(w * 0.1331, h * 0.533);9423// c.lineTo(w * 0.1809, h * 0.6934);9424// c.lineTo(w * 0.2617, h * 0.7626);9425// c.lineTo(w * 0.3061, h * 0.9151);9426// c.moveTo(w * 0.1295, h * 0.7764);9427// c.lineTo(w * 0.1807, h * 0.6928);9428// c.moveTo(w * 0.264, h * 0.7642);9429// c.lineTo(w * 0.3095, h * 0.673);9430// c.moveTo(w * 0.3641, h * 0.2327);9431// c.lineTo(w * 0.3241, h * 0.2673);9432// c.lineTo(w * 0.3619, h * 0.2987);9433// c.moveTo(w * 0.3468, h * 0.2736);9434// c.lineTo(w * 0.3596, h * 0.261);9435// c.moveTo(w * 0.3573, h * 0.283);9436// c.lineTo(w * 0.3823, h * 0.261);9437// c.moveTo(w * 0.4916, h * 0.217);9438// c.lineTo(w * 0.4483, h * 0.2547);9439// c.lineTo(w * 0.5052, h * 0.3019);9440// c.moveTo(w * 0.4679, h * 0.2591);9441// c.lineTo(w * 0.4802, h * 0.2478);9442// c.moveTo(w * 0.4811, h * 0.2673);9443// c.lineTo(w * 0.5098, h * 0.2421);9444// c.moveTo(w * 0.4939, h * 0.2767);9445// c.lineTo(w * 0.5121, h * 0.261);9446// c.moveTo(w * 0.5043, h * 0.2868);9447// c.lineTo(w * 0.5371, h * 0.2579);9448// c.moveTo(w * 0.6259, h * 0.4371);9449// c.lineTo(w * 0.5826, h * 0.4717);9450// c.lineTo(w * 0.6418, h * 0.522);9451// c.moveTo(w * 0.6039, h * 0.4755);9452// c.lineTo(w * 0.6187, h * 0.463);9453// c.moveTo(w * 0.6158, h * 0.4862);9454// c.lineTo(w * 0.6418, h * 0.4623);9455// c.moveTo(w * 0.6281, h * 0.4969);9456// c.lineTo(w * 0.6486, h * 0.478);9457// c.moveTo(w * 0.6395, h * 0.5063);9458// c.lineTo(w * 0.6736, h * 0.478);9459// 9460// c.stroke();9461//9462// c.setStrokeWidth(2 * strokeWidth);9463// c.setLineCap('round');9464//9465// c.setStrokeColor('#292929');9466// c.setLineJoin('round');9467//9468// c.begin();9469// c.moveTo(0, h * 0.5503);9470// c.lineTo(w * 0.0455, h * 0.4623);9471// c.lineTo(w * 0.6054, h * 0.0157);9472// c.lineTo(w * 0.6623, h * 0.0629);9473// c.lineTo(w * 0.7396, 0);9474// c.lineTo(w * 0.8239, h * 0.0692);9475// c.lineTo(w * 0.8671, h * 0.2233);9476// c.lineTo(w * 0.9513, h * 0.2943);9477// c.lineTo(w, h * 0.4528);9478// c.lineTo(w * 0.9595, h * 0.5365);9479// c.lineTo(w * 0.396, h * 0.9843);9480// c.lineTo(w * 0.3391, h * 0.9403);9481// c.lineTo(w * 0.2617, h);9482// c.lineTo(w * 0.173, h * 0.9308);9483// c.lineTo(w * 0.1297, h * 0.7736);9484// c.lineTo(w * 0.0432, h * 0.7044);9485// c.close();9486// c.stroke();9487//};9488//9489//mxCellRenderer.registerShape(mxShapeAws3dKinesisStream.prototype.cst.KINESIS_STREAM, mxShapeAws3dKinesisStream);94909491//**********************************************************************************************************************************************************9492//SQS 29493//**********************************************************************************************************************************************************9494///**9495//* Extends mxShape.9496//*/9497//function mxShapeAws3dSqs2(bounds, fill, stroke, strokewidth)9498//{9499// mxShape.call(this);9500// this.bounds = bounds;9501// this.fill = fill;9502// this.stroke = stroke;9503// this.strokewidth = (strokewidth != null) ? strokewidth : 1;9504//};9505//9506///**9507//* Extends mxShape.9508//*/9509//mxUtils.extend(mxShapeAws3dSqs2, mxShape);9510//9511//mxShapeAws3dSqs2.prototype.cst = {9512// SQS2 : 'mxgraph.aws3d.sqs2',9513// SHADING_COLORS : 'shadingCols'9514//};9515//9516///**9517//* Function: paintVertexShape9518//* 9519//* Paints the vertex shape.9520//*/9521//mxShapeAws3dSqs2.prototype.paintVertexShape = function(c, x, y, w, h)9522//{9523// c.translate(x, y);9524//9525// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));9526// var strokeWidth1 = strokeWidth * w / 160;9527// var strokeWidth2 = strokeWidth * h / 93;9528// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));9529// 9530// strokeWidth = Math.min(strokeWidth1, strokeWidth2);9531// 9532// c.setStrokeWidth(strokeWidth);9533// c.setShadow(false);9534// c.save();9535// c.save();9536// c.setStrokeWidth(2 * strokeWidth);9537// c.setStrokeColor('#292929');9538// c.setLineJoin('round');9539//9540// if(isShadow == 1)9541// {9542// c.setShadow(true);9543// }9544// 9545// c.begin();9546// c.moveTo(0, h * 0.4737);9547// c.lineTo(w * 0.4652, 0);9548// c.lineTo(w * 0.6231, h * 0.0602);9549// c.lineTo(w * 0.6231, h * 0.1676);9550// c.lineTo(w * 0.1567, h * 0.6316);9551// c.close();9552// c.moveTo(w * 0.3756, h * 0.8443);9553// c.lineTo(w * 0.3756, h * 0.7454);9554// c.lineTo(w * 0.8439, h * 0.275);9555// c.lineTo(w, h * 0.5328);9556// c.lineTo(w * 0.5311, h);9557// c.close();9558// c.fillAndStroke();9559// 9560// c.restore();9561// c.setFillColor('#000000');9562// 9563// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');9564// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');9565// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 9566// 9567// c.begin();9568// c.moveTo(0, h * 0.4737);9569// c.lineTo(w * 0.1567, h * 0.5274);9570// c.lineTo(w * 0.1567, h * 0.6394);9571// c.close();9572// c.moveTo(w * 0.3756, h * 0.7454);9573// c.lineTo(w * 0.5311, h);9574// c.lineTo(w * 0.3756, h * 0.8443);9575// c.close();9576// c.fill();9577//9578// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 9579// c.begin();9580// c.moveTo(w * 0.1567, h * 0.5274);9581// c.lineTo(w * 0.6231, h * 0.0602);9582// c.lineTo(w * 0.6231, h * 0.1676);9583// c.lineTo(w * 0.1567, h * 0.6294);9584// c.close();9585// c.fill();9586// 9587// c.restore();9588// c.setLineJoin('round');9589// 9590// c.begin();9591// c.moveTo(0, h * 0.4737);9592// c.lineTo(w * 0.1567, h * 0.5274);9593// c.lineTo(w * 0.1567, h * 0.6294);9594// c.close();9595// c.moveTo(w * 0.3756, h * 0.7454);9596// c.lineTo(w * 0.5311, h);9597// c.lineTo(w * 0.3756, h * 0.8443);9598// c.close();9599// c.moveTo(w * 0.1567, h * 0.5274);9600// c.lineTo(w * 0.6231, h * 0.0602);9601// c.lineTo(w * 0.6231, h * 0.1676);9602// c.lineTo(w * 0.1567, h * 0.6294);9603// c.close();9604// c.stroke();9605//9606// c.setStrokeWidth(2 * strokeWidth);9607// c.setLineCap('round');9608//9609// c.setStrokeColor('#292929');9610// c.setLineJoin('round');9611//9612// c.begin();9613// c.moveTo(0, h * 0.4737);9614// c.lineTo(w * 0.4652, 0);9615// c.lineTo(w * 0.6231, h * 0.0602);9616// c.lineTo(w * 0.6231, h * 0.1676);9617// c.lineTo(w * 0.1567, h * 0.6316);9618// c.close();9619// c.moveTo(w * 0.3756, h * 0.8443);9620// c.lineTo(w * 0.3756, h * 0.7454);9621// c.lineTo(w * 0.8439, h * 0.275);9622// c.lineTo(w, h * 0.5328);9623// c.lineTo(w * 0.5311, h);9624// c.close();9625// c.stroke();9626// 9627// c.setFillColor('#F4B934');9628// 9629// c.begin();9630// c.moveTo(w * 0.1256, h * 0.812);9631// c.lineTo(w * 0.24, h * 0.7605);9632// c.lineTo(w * 0.1853, h * 0.8829);9633// c.close();9634// c.moveTo(w * 0.2417, h * 0.6957);9635// c.lineTo(w * 0.3562, h * 0.6441);9636// c.lineTo(w * 0.3014, h * 0.7666);9637// c.close();9638// c.moveTo(w * 0.3588, h * 0.5793);9639// c.lineTo(w * 0.4733, h * 0.5277);9640// c.lineTo(w * 0.4185, h * 0.6502);9641// c.close();9642// c.moveTo(w * 0.477, h * 0.4611);9643// c.lineTo(w * 0.5914, h * 0.4096);9644// c.lineTo(w * 0.5367, h * 0.532);9645// c.close();9646// c.moveTo(w * 0.591, h * 0.343);9647// c.lineTo(w * 0.7054, h * 0.2914);9648// c.lineTo(w * 0.6507, h * 0.4139);9649// c.close();9650// c.moveTo(w * 0.7091, h * 0.2302);9651// c.lineTo(w * 0.8236, h * 0.1786);9652// c.lineTo(w * 0.7688, h * 0.3011);9653// c.close();9654// c.fillAndStroke();9655//};9656//9657//mxCellRenderer.registerShape(mxShapeAws3dSqs2.prototype.cst.SQS2, mxShapeAws3dSqs2);9658