How to use lineTo method in wpt

Best JavaScript code snippet using wpt

mxAWS3D.js

Source:mxAWS3D.js Github

copy

Full Screen

...32{33 c.translate(x, y);34 c.begin();35 c.moveTo(w - 17, 8);36 c.lineTo(w - 21, 5.5);37 c.lineTo(w, 0);38 c.lineTo(w - 9.7, 12.2);39 c.lineTo(w - 13.9, 9.8);40 c.lineTo(9.7, h - 3.5);41 c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);42 c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);43 c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);44 c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);45 c.close();46 c.fillAndStroke();47};48mxCellRenderer.registerShape(mxShapeAws3dArrowNE.prototype.cst.ARROW_NE, mxShapeAws3dArrowNE);49//**********************************************************************************************************************************************************50//Arrow SE51//**********************************************************************************************************************************************************52/**53* Extends mxShape.54*/55function mxShapeAws3dArrowSE(bounds, fill, stroke, strokewidth)56{57 mxShape.call(this);58 this.bounds = bounds;59 this.fill = fill;60 this.stroke = stroke;61 this.strokewidth = (strokewidth != null) ? strokewidth : 1;62};63/**64* Extends mxShape.65*/66mxUtils.extend(mxShapeAws3dArrowSE, mxShape);67mxShapeAws3dArrowSE.prototype.cst = {68 ARROW_SE : 'mxgraph.aws3d.arrowSE'69};70/**71* Function: paintVertexShape72* 73* Paints the vertex shape.74*/75mxShapeAws3dArrowSE.prototype.paintVertexShape = function(c, x, y, w, h)76{77 c.translate(x, y);78 c.begin();79 c.moveTo(w - 17, h - 8);80 c.lineTo(w - 21, h - 5.5);81 c.lineTo(w, h);82 c.lineTo(w - 9.7, h - 12.2);83 c.lineTo(w - 13.9, h - 9.8);84 c.lineTo(9.7, 3.5);85 c.arcTo(6, 3, 0, 0, 0, 9, 0.4);86 c.arcTo(5.2, 3, 0, 0, 0, 1, 1.4);87 c.arcTo(6, 2.8, 0, 0, 0, 3, 5.4);88 c.arcTo(5, 3, 0, 0, 0, 6.7, 5.2);89 c.close();90 c.fillAndStroke();91};92mxCellRenderer.registerShape(mxShapeAws3dArrowSE.prototype.cst.ARROW_SE, mxShapeAws3dArrowSE);93//**********************************************************************************************************************************************************94//Arrow SW95//**********************************************************************************************************************************************************96/**97* Extends mxShape.98*/99function mxShapeAws3dArrowSW(bounds, fill, stroke, strokewidth)100{101 mxShape.call(this);102 this.bounds = bounds;103 this.fill = fill;104 this.stroke = stroke;105 this.strokewidth = (strokewidth != null) ? strokewidth : 1;106};107/**108* Extends mxShape.109*/110mxUtils.extend(mxShapeAws3dArrowSW, mxShape);111mxShapeAws3dArrowSW.prototype.cst = {112 ARROW_SW : 'mxgraph.aws3d.arrowSW'113};114/**115* Function: paintVertexShape116* 117* Paints the vertex shape.118*/119mxShapeAws3dArrowSW.prototype.paintVertexShape = function(c, x, y, w, h)120{121 c.translate(x, y);122 c.begin();123 c.moveTo(17, h - 8);124 c.lineTo(21, h - 5.5);125 c.lineTo(0, h);126 c.lineTo(9.7, h - 12.2);127 c.lineTo(13.9, h - 9.8);128 c.lineTo(w - 9.7, 3.5);129 c.arcTo(6, 3, 0, 0, 1, w - 9, 0.4);130 c.arcTo(5.2, 3, 0, 0, 1, w - 1, 1.4);131 c.arcTo(6, 2.8, 0, 0, 1, w - 3, 5.4);132 c.arcTo(5, 3, 0, 0, 1, w - 6.7, 5.2);133 c.close();134 c.fillAndStroke();135};136mxCellRenderer.registerShape(mxShapeAws3dArrowSW.prototype.cst.ARROW_SW, mxShapeAws3dArrowSW);137//**********************************************************************************************************************************************************138//Arrow NW139//**********************************************************************************************************************************************************140/**141* Extends mxShape.142*/143function mxShapeAws3dArrowNW(bounds, fill, stroke, strokewidth)144{145 mxShape.call(this);146 this.bounds = bounds;147 this.fill = fill;148 this.stroke = stroke;149 this.strokewidth = (strokewidth != null) ? strokewidth : 1;150};151/**152* Extends mxShape.153*/154mxUtils.extend(mxShapeAws3dArrowNW, mxShape);155mxShapeAws3dArrowNW.prototype.cst = {156 ARROW_NW : 'mxgraph.aws3d.arrowNW'157};158/**159* Function: paintVertexShape160* 161* Paints the vertex shape.162*/163mxShapeAws3dArrowNW.prototype.paintVertexShape = function(c, x, y, w, h)164{165 c.translate(x, y);166 c.begin();167 c.moveTo(17, 8);168 c.lineTo(21, 5.5);169 c.lineTo(0, 0);170 c.lineTo(9.7, 12.2);171 c.lineTo(13.9, 9.8);172 c.lineTo(w - 9.7, h - 3.5);173 c.arcTo(6, 3, 0, 0, 0, w - 9, h - 0.4);174 c.arcTo(5.2, 3, 0, 0, 0, w - 1, h - 1.4);175 c.arcTo(6, 2.8, 0, 0, 0, w - 3, h - 5.4);176 c.arcTo(5, 3, 0, 0, 0, w - 6.7, h - 5.2);177 c.close();178 c.fillAndStroke();179};180mxCellRenderer.registerShape(mxShapeAws3dArrowNW.prototype.cst.ARROW_NW, mxShapeAws3dArrowNW);181//**********************************************************************************************************************************************************182//Arrowless NE183//**********************************************************************************************************************************************************184/**185* Extends mxShape.186*/187function mxShapeAws3dArrowlessNE(bounds, fill, stroke, strokewidth)188{189 mxShape.call(this);190 this.bounds = bounds;191 this.fill = fill;192 this.stroke = stroke;193 this.strokewidth = (strokewidth != null) ? strokewidth : 1;194};195/**196* Extends mxShape.197*/198mxUtils.extend(mxShapeAws3dArrowlessNE, mxShape);199mxShapeAws3dArrowlessNE.prototype.cst = {200 ARROWLESS_NE : 'mxgraph.aws3d.arrowlessNE'201};202/**203* Function: paintVertexShape204* 205* Paints the vertex shape.206*/207mxShapeAws3dArrowlessNE.prototype.paintVertexShape = function(c, x, y, w, h)208{209 c.translate(x, y);210 c.begin();211 c.moveTo(w - 3.1, 0);212 c.lineTo(w, 1.8);213 c.lineTo(9.7, h - 3.5);214 c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4);215 c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4);216 c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4);217 c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2);218 c.close();219 c.fillAndStroke();220};221mxCellRenderer.registerShape(mxShapeAws3dArrowlessNE.prototype.cst.ARROWLESS_NE, mxShapeAws3dArrowlessNE);222//**********************************************************************************************************************************************************223//Dashed edge with double arrow224//**********************************************************************************************************************************************************225/**226* Extends mxShape.227*/228function mxShapeAws3dDashedEdgeDouble(bounds, fill, stroke, strokewidth)229{230 mxShape.call(this);231 this.bounds = bounds;232 this.fill = fill;233 this.stroke = stroke;234 this.strokewidth = (strokewidth != null) ? strokewidth : 1;235};236/**237* Extends mxShape.238*/239mxUtils.extend(mxShapeAws3dDashedEdgeDouble, mxShape);240mxShapeAws3dDashedEdgeDouble.prototype.cst = {241 DASHED_EDGE_DOUBLE : 'mxgraph.aws3d.dashedEdgeDouble'242};243/**244* Function: paintVertexShape245* 246* Paints the vertex shape.247*/248mxShapeAws3dDashedEdgeDouble.prototype.paintVertexShape = function(c, x, y, w, h)249{250 c.translate(x, y);251 252 c.setFillColor('#2D6195');253 c.save();254 c.setStrokeColor('none');255 c.begin();256 c.moveTo(21, 5.5);257 c.lineTo(0, 0);258 c.lineTo(9.7, 12.2);259 c.fillAndStroke();260 261 c.begin();262 c.moveTo(w - 21, h - 5.5);263 c.lineTo(w, h);264 c.lineTo(w - 9.7, h - 12.2);265 c.fillAndStroke();266 267 c.restore();268 c.setStrokeColor('#2D6195');269 c.setStrokeWidth('4');270 c.setDashed('true');271 c.setLineCap('round');272 273 c.begin();274 c.moveTo(7.675, 4.425);275 c.lineTo(w - 7.675, h - 4.425);276 c.stroke();277};278mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble.prototype.cst.DASHED_EDGE_DOUBLE, mxShapeAws3dDashedEdgeDouble);279//**********************************************************************************************************************************************************280//Dashed arrowless edge281//**********************************************************************************************************************************************************282/**283* Extends mxShape.284*/285function mxShapeAws3dDashedArrowlessEdge(bounds, fill, stroke, strokewidth)286{287 mxShape.call(this);288 this.bounds = bounds;289 this.fill = fill;290 this.stroke = stroke;291 this.strokewidth = (strokewidth != null) ? strokewidth : 1;292};293/**294* Extends mxShape.295*/296mxUtils.extend(mxShapeAws3dDashedArrowlessEdge, mxShape);297mxShapeAws3dDashedArrowlessEdge.prototype.cst = {298 DASHED_ARROWLESS_EDGE : 'mxgraph.aws3d.dashedArrowlessEdge'299};300/**301* Function: paintVertexShape302* 303* Paints the vertex shape.304*/305mxShapeAws3dDashedArrowlessEdge.prototype.paintVertexShape = function(c, x, y, w, h)306{307 c.translate(x, y);308 309 c.setStrokeColor('#2D6195');310 c.setStrokeWidth('4');311 c.setDashed('true');312 c.setLineCap('round');313 314 c.begin();315 c.moveTo(0, 0);316 c.lineTo(w, h);317 c.stroke();318};319mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge.prototype.cst.DASHED_ARROWLESS_EDGE, mxShapeAws3dDashedArrowlessEdge);320//**********************************************************************************************************************************************************321//Dashed edge322//**********************************************************************************************************************************************************323/**324* Extends mxShape.325*/326function mxShapeAws3dDashedEdge(bounds, fill, stroke, strokewidth)327{328 mxShape.call(this);329 this.bounds = bounds;330 this.fill = fill;331 this.stroke = stroke;332 this.strokewidth = (strokewidth != null) ? strokewidth : 1;333};334/**335* Extends mxShape.336*/337mxUtils.extend(mxShapeAws3dDashedEdge, mxShape);338mxShapeAws3dDashedEdge.prototype.cst = {339 DASHED_EDGE : 'mxgraph.aws3d.dashedEdge'340};341/**342* Function: paintVertexShape343* 344* Paints the vertex shape.345*/346mxShapeAws3dDashedEdge.prototype.paintVertexShape = function(c, x, y, w, h)347{348 c.translate(x, y);349 350 c.setFillColor('#2D6195');351 c.save();352 c.setStrokeColor('none');353 c.begin();354 c.moveTo(w - 21, 5.5);355 c.lineTo(w, 0);356 c.lineTo(w - 9.7, 12.2);357 c.fillAndStroke();358 359 c.restore();360 c.setStrokeColor('#2D6195');361 c.setStrokeWidth('4');362 c.setDashed('true');363 c.setLineCap('round');364 365 c.begin();366 c.moveTo(w - 7.675, 4.425);367 c.lineTo(0, h);368 c.stroke();369};370mxCellRenderer.registerShape(mxShapeAws3dDashedEdge.prototype.cst.DASHED_EDGE, mxShapeAws3dDashedEdge);371//**********************************************************************************************************************************************************372//Flat edge373//**********************************************************************************************************************************************************374/**375* Extends mxShape.376*/377function mxShapeAws3dFlatEdge(bounds, fill, stroke, strokewidth)378{379 mxShape.call(this);380 this.bounds = bounds;381 this.fill = fill;382 this.stroke = stroke;383 this.strokewidth = (strokewidth != null) ? strokewidth : 1;384};385/**386* Extends mxShape.387*/388mxUtils.extend(mxShapeAws3dFlatEdge, mxShape);389mxShapeAws3dFlatEdge.prototype.cst = {390 FLAT_EDGE : 'mxgraph.aws3d.flatEdge'391};392/**393* Function: paintVertexShape394* 395* Paints the vertex shape.396*/397mxShapeAws3dFlatEdge.prototype.paintVertexShape = function(c, x, y, w, h)398{399 c.translate(x, y);400 401 c.setFillColor('#F4B934');402 c.setStrokeColor('none');403 c.begin();404 c.moveTo(w - 46, 8.8);405 c.lineTo(w - 61.2, 0);406 c.lineTo(w, 0);407 c.lineTo(w, 35.5);408 c.lineTo(w - 15.4, 26.5);409 c.lineTo(30.7, h);410 c.lineTo(0, h - 17.7);411 c.fillAndStroke();412};413mxCellRenderer.registerShape(mxShapeAws3dFlatEdge.prototype.cst.FLAT_EDGE, mxShapeAws3dFlatEdge);414//**********************************************************************************************************************************************************415//Flat double edge416//**********************************************************************************************************************************************************417/**418* Extends mxShape.419*/420function mxShapeAws3dFlatDoubleEdge(bounds, fill, stroke, strokewidth)421{422 mxShape.call(this);423 this.bounds = bounds;424 this.fill = fill;425 this.stroke = stroke;426 this.strokewidth = (strokewidth != null) ? strokewidth : 1;427};428/**429* Extends mxShape.430*/431mxUtils.extend(mxShapeAws3dFlatDoubleEdge, mxShape);432mxShapeAws3dFlatDoubleEdge.prototype.cst = {433 FLAT_DOUBLE_EDGE : 'mxgraph.aws3d.flatDoubleEdge'434};435/**436* Function: paintVertexShape437* 438* Paints the vertex shape.439*/440mxShapeAws3dFlatDoubleEdge.prototype.paintVertexShape = function(c, x, y, w, h)441{442 c.translate(x, y);443 444 c.setFillColor('#F4B934');445 c.setStrokeColor('none');446 c.begin();447 c.moveTo(15.3, 61.9);448 c.lineTo(30.8, 53.2);449 c.lineTo(15.4, 44.2);450 c.lineTo(0, 53.2);451 c.lineTo(15.4, 8.8);452 c.lineTo(92.1, 0);453 c.lineTo(76.5, 8.8);454 c.lineTo(92.1, 17.7);455 c.lineTo(107.4, 8.8);456 457 c.lineTo(w - 15.3, h - 61.9);458 c.lineTo(w - 30.8, h - 53.2);459 c.lineTo(w - 15.4, h - 44.2);460 c.lineTo(w, h - 53.2);461 c.lineTo(w - 15.4, h - 8.8);462 c.lineTo(w - 92.1, h);463 c.lineTo(w - 76.5, h - 8.8);464 c.lineTo(w - 92.1, h - 17.7);465 c.lineTo(w - 107.4, h - 8.8);466 c.fillAndStroke();467};468mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge.prototype.cst.FLAT_DOUBLE_EDGE, mxShapeAws3dFlatDoubleEdge);469//**********************************************************************************************************************************************************470//AMI471//**********************************************************************************************************************************************************472/**473* Extends mxShape.474*/475function mxShapeAws3dAMI(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};483/**484* Extends mxShape.485*/486mxUtils.extend(mxShapeAws3dAMI, mxShape);487mxShapeAws3dAMI.prototype.cst = {488 AMI : 'mxgraph.aws3d.ami',489 SHADING_COLORS : 'shadingCols' 490};491/**492* Function: paintVertexShape493* 494* Paints the vertex shape.495*/496mxShapeAws3dAMI.prototype.paintVertexShape = function(c, x, y, w, h)497{498 c.translate(x, y);499 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));500 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));501 var strokeWidth1 = strokeWidth * w / 92;502 var strokeWidth2 = strokeWidth * h / 60;503 504 strokeWidth = Math.min(strokeWidth1, strokeWidth2);505 506 c.setStrokeWidth(strokeWidth);507 c.setShadow(false);508 c.save();509 c.save();510 c.setStrokeWidth(2 * strokeWidth);511 c.setStrokeColor('#292929');512 c.setLineJoin('round');513 if (isShadow == 1)514 {515 c.setShadow(true);516 }517 c.begin();518 c.moveTo(0, h * 0.6483);519 c.lineTo(w * 0.0684, h * 0.4133);520 c.lineTo(w * 0.5326, 0);521 c.lineTo(w * 0.6685, 0);522 c.lineTo(w * 0.9359, h * 0.2367);523 c.lineTo(w, h * 0.465);524 c.lineTo(w * 0.4, h);525 c.close();526 c.fillAndStroke();527 528 c.restore();529 c.setFillColor('#000000');530 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');531 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');532 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 533 534 c.begin();535 c.moveTo(0, h * 0.65);536 c.lineTo(w * 0.0652, h * 0.5);537 c.lineTo(w * 0.3326, h * 0.7667);538 c.lineTo(w * 0.4663, h * 0.7667);539 c.lineTo(w * 0.4, h);540 c.close();541 c.fill();542 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 543 c.begin();544 c.moveTo(w * 0.4, h);545 c.lineTo(w * 0.4641, h * 0.77);546 c.lineTo(w * 0.9326, h * 0.355);547 c.lineTo(w * 0.9347, h * 0.24);548 c.lineTo(w, h * 0.4667);549 c.close();550 c.fill();551 552 c.restore();553 c.setLineJoin('round');554 555 c.begin();556 c.moveTo(0, h * 0.65);557 c.lineTo(w * 0.0652, h * 0.5);558 c.lineTo(w * 0.3326, h * 0.7667);559 c.lineTo(w * 0.4663, h * 0.7667);560 c.lineTo(w * 0.4, h);561 c.close();562 c.stroke();563 c.begin();564 c.moveTo(w * 0.4, h);565 c.lineTo(w * 0.4641, h * 0.77);566 c.lineTo(w * 0.9326, h * 0.355);567 c.lineTo(w * 0.9347, h * 0.24);568 c.lineTo(w, h * 0.4667);569 c.close();570 c.stroke();571 572 c.begin();573 c.moveTo(w * 0.0652, h * 0.42);574 c.lineTo(w * 0.0652, h * 0.5);575 c.moveTo(w * 0.3337, h * 0.7667);576 c.lineTo(w * 0.4, h);577 c.moveTo(w * 0.9348, h * 0.355);578 c.lineTo(w, h * 0.4733);579 c.stroke();580 581 c.setLineJoin('miter');582 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');583 c.setFillColor(strokeColor);584 c.begin();585 c.moveTo(w * 0.1935, h * 0.42);586 c.lineTo(w * 0.5543, h * 0.0967);587 c.lineTo(w * 0.6652, h * 0.1967);588 c.lineTo(w * 0.3, h * 0.5133);589 c.close();590 c.moveTo(w * 0.2967, h * 0.4633);591 c.lineTo(w * 0.3837, h * 0.3883);592 c.lineTo(w * 0.3326, h * 0.3417);593 c.lineTo(w * 0.2467, h * 0.42);594 c.close();595 c.moveTo(w * 0.362, h * 0.32);596 c.lineTo(w * 0.412, h * 0.3633);597 c.lineTo(w * 0.5054, h * 0.2867);598 c.lineTo(w * 0.4522, h * 0.24);599 c.close();600 c.moveTo(w * 0.5293, h * 0.26);601 c.lineTo(w * 0.6109, h * 0.1933);602 c.lineTo(w * 0.5511, h * 0.145);603 c.lineTo(w * 0.4739, h * 0.2133);604 c.close();605 c.moveTo(w * 0.3528, h * 0.557);606 c.lineTo(w * 0.7137, h * 0.2337);607 c.lineTo(w * 0.8246, h * 0.3337);608 c.lineTo(w * 0.4593, h * 0.6503);609 c.close();610 c.moveTo(w * 0.4561, h * 0.6003);611 c.lineTo(w * 0.543, h * 0.5253);612 c.lineTo(w * 0.492, h * 0.4787);613 c.lineTo(w * 0.4061, h * 0.557);614 c.close();615 c.moveTo(w * 0.5213, h * 0.457);616 c.lineTo(w * 0.5713, h * 0.5003);617 c.lineTo(w * 0.6648, h * 0.4237);618 c.lineTo(w * 0.6115, h * 0.377);619 c.close();620 c.moveTo(w * 0.6887, h * 0.397);621 c.lineTo(w * 0.7702, h * 0.3303);622 c.lineTo(w * 0.7104, h * 0.282);623 c.lineTo(w * 0.6333, h * 0.3503);624 c.close();625 c.fill();626 c.setStrokeWidth(2 * strokeWidth);627 c.setStrokeColor('#292929');628 c.setLineJoin('round');629 c.begin();630 c.moveTo(0, h * 0.6483);631 c.lineTo(w * 0.0684, h * 0.4133);632 c.lineTo(w * 0.5326, 0);633 c.lineTo(w * 0.6685, 0);634 c.lineTo(w * 0.9359, h * 0.2367);635 c.lineTo(w, h * 0.465);636 c.lineTo(w * 0.4, h);637 c.close();638 c.stroke();639};640mxCellRenderer.registerShape(mxShapeAws3dAMI.prototype.cst.AMI, mxShapeAws3dAMI);641//**********************************************************************************************************************************************************642//Snapshot643//**********************************************************************************************************************************************************644/**645* Extends mxShape.646*/647function mxShapeAws3dSnapshot(bounds, fill, stroke, strokewidth)648{649 mxShape.call(this);650 this.bounds = bounds;651 this.fill = fill;652 this.stroke = stroke;653 this.strokewidth = (strokewidth != null) ? strokewidth : 1;654};655/**656* Extends mxShape.657*/658mxUtils.extend(mxShapeAws3dSnapshot, mxShape);659mxShapeAws3dSnapshot.prototype.cst = {660 SNAPSHOT : 'mxgraph.aws3d.snapshot',661 SHADING_COLORS : 'shadingCols'662};663/**664* Function: paintVertexShape665* 666* Paints the vertex shape.667*/668mxShapeAws3dSnapshot.prototype.paintVertexShape = function(c, x, y, w, h)669{670 c.translate(x, y);671 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));672 var strokeWidth1 = strokeWidth * w / 92;673 var strokeWidth2 = strokeWidth * h / 60;674 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));675 676 strokeWidth = Math.min(strokeWidth1, strokeWidth2);677 678 c.setStrokeWidth(strokeWidth);679 c.setShadow(false);680 c.save();681 c.save();682 c.setStrokeWidth(2 * strokeWidth);683 c.setStrokeColor('#292929');684 c.setLineJoin('round');685 if(isShadow == 1)686 {687 c.setShadow(true);688 }689 690 c.begin();691 c.moveTo(w, h * 0.6483);692 c.lineTo(w * 0.9316, h * 0.4133);693 c.lineTo(w * 0.4674, 0);694 c.lineTo(w * 0.3315, 0);695 c.lineTo(w * 0.0641, h * 0.2367);696 c.lineTo(0, h * 0.465);697 c.lineTo(w * 0.6, h);698 c.close();699 c.fillAndStroke();700 701 c.restore();702 c.setFillColor('#000000');703 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSnapshot.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');704 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');705 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 706 707 c.begin();708 c.moveTo(w, h * 0.65);709 c.lineTo(w * 0.9348, h * 0.52);710 c.lineTo(w * 0.6674, h * 0.7667);711 c.lineTo(w * 0.5337, h * 0.7667);712 c.lineTo(w * 0.6, h);713 c.close();714 c.fill();715 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 716 c.begin();717 c.moveTo(w * 0.6, h);718 c.lineTo(w * 0.5359, h * 0.77);719 c.lineTo(w * 0.0674, h * 0.355);720 c.lineTo(w * 0.0653, h * 0.24);721 c.lineTo(0, h * 0.4667);722 c.close();723 c.fill();724 725 c.restore();726 c.setLineJoin('round');727 728 c.begin();729 c.moveTo(w, h * 0.65);730 c.lineTo(w * 0.9348, h * 0.52);731 c.lineTo(w * 0.6674, h * 0.7667);732 c.lineTo(w * 0.5337, h * 0.7667);733 c.lineTo(w * 0.6, h);734 c.close();735 c.stroke();736 c.begin();737 c.moveTo(w * 0.6, h);738 c.lineTo(w * 0.5359, h * 0.77);739 c.lineTo(w * 0.0674, h * 0.355);740 c.lineTo(w * 0.0653, h * 0.24);741 c.lineTo(0, h * 0.4667);742 c.close();743 c.stroke();744 745 c.begin();746 c.moveTo(w * 0.9348, h * 0.42);747 c.lineTo(w * 0.9348, h * 0.52);748 c.moveTo(w * 0.6663, h * 0.7667);749 c.lineTo(w * 0.6, h);750 c.moveTo(w * 0.0652, h * 0.355);751 c.lineTo(0, h * 0.4733);752 c.stroke();753 754 c.setStrokeWidth(2 * strokeWidth);755 c.setStrokeColor('#292929');756 c.setLineJoin('round');757 c.begin();758 c.moveTo(w, h * 0.6483);759 c.lineTo(w * 0.9316, h * 0.4133);760 c.lineTo(w * 0.4674, 0);761 c.lineTo(w * 0.3315, 0);762 c.lineTo(w * 0.0641, h * 0.2367);763 c.lineTo(0, h * 0.465);764 c.lineTo(w * 0.6, h);765 c.close();766 c.stroke();767};768mxCellRenderer.registerShape(mxShapeAws3dSnapshot.prototype.cst.SNAPSHOT, mxShapeAws3dSnapshot);769//**********************************************************************************************************************************************************770//Application771//**********************************************************************************************************************************************************772/**773* Extends mxShape.774*/775function mxShapeAws3dApplication(bounds, fill, stroke, strokewidth)776{777 mxShape.call(this);778 this.bounds = bounds;779 this.fill = fill;780 this.stroke = stroke;781 this.strokewidth = (strokewidth != null) ? strokewidth : 1;782};783/**784* Extends mxShape.785*/786mxUtils.extend(mxShapeAws3dApplication, mxShape);787mxShapeAws3dApplication.prototype.cst = {788 APPLICATION : 'mxgraph.aws3d.application',789 SHADING_COLORS : 'shadingCols'790};791/**792* Function: paintVertexShape793* 794* Paints the vertex shape.795*/796mxShapeAws3dApplication.prototype.paintVertexShape = function(c, x, y, w, h)797{798 c.translate(x, y);799 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));800 var strokeWidth1 = strokeWidth * w / 62;801 var strokeWidth2 = strokeWidth * h / 68.8;802 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));803 804 strokeWidth = Math.min(strokeWidth1, strokeWidth2);805 c.setShadow(false);806 c.setStrokeWidth(strokeWidth);807 c.save();808 c.save();809 c.setStrokeWidth(2 * strokeWidth);810 c.setStrokeColor('#292929');811 c.setLineJoin('round');812 if (isShadow == 1)813 {814 c.setShadow(true);815 }816 817 c.begin();818 c.moveTo(0, h * 0.2544);819 c.lineTo(w * 0.5, 0);820 c.lineTo(w, h * 0.2544);821 c.lineTo(w, h * 0.7485);822 c.lineTo(w * 0.5, h);823 c.lineTo(0, h * 0.7485);824 c.close();825 c.fillAndStroke();826 827 c.restore();828 c.setFillColor('#000000');829 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');830 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');831 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 832 833 c.begin();834 c.moveTo(0, h * 0.2544);835 c.lineTo(w * 0.5, h * 0.5015);836 c.lineTo(w * 0.5, h);837 c.lineTo(0, h * 0.7485);838 c.close();839 c.fill();840 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 841 c.begin();842 c.moveTo(w * 0.5, h * 0.5015);843 c.lineTo(w, h * 0.2544);844 c.lineTo(w, h * 0.7485);845 c.lineTo(w * 0.5, h);846 c.close();847 c.fill();848 849 c.restore();850 c.setLineJoin('round');851 852 c.begin();853 c.moveTo(0, h * 0.2544);854 c.lineTo(w * 0.5, h * 0.5015);855 c.lineTo(w * 0.5, h);856 c.lineTo(0, h * 0.7485);857 c.close();858 c.stroke();859 c.begin();860 c.moveTo(w * 0.5, h * 0.5015);861 c.lineTo(w, h * 0.2544);862 c.lineTo(w, h * 0.7485);863 c.lineTo(w * 0.5, h);864 c.close();865 c.stroke();866 867 c.setLineJoin('miter');868 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');869 c.setFillColor(strokeColor);870 c.begin();871 c.moveTo(w * 0.6694, h * 0.0872);872 c.lineTo(w * 0.7629, h * 0.1337);873 c.lineTo(w * 0.2661, h * 0.3882);874 c.lineTo(w * 0.2661, h * 0.5407);875 c.lineTo(w * 0.1742, h * 0.4953);876 c.lineTo(w * 0.1742, h * 0.3459);877 c.close();878 c.moveTo(w * 0.8629, h * 0.1846);879 c.lineTo(w * 0.379, h * 0.4331);880 c.lineTo(w * 0.379, h * 0.5945);881 c.lineTo(w * 0.2855, h * 0.5494);882 c.lineTo(w * 0.2855, h * 0.3953);883 c.lineTo(w * 0.7839, h * 0.1439);884 c.close();885 c.fill();886 c.setStrokeWidth(2 * strokeWidth);887 c.setStrokeColor('#292929');888 c.setLineJoin('round');889 c.begin();890 c.moveTo(0, h * 0.2544);891 c.lineTo(w * 0.5, 0);892 c.lineTo(w, h * 0.2544);893 c.lineTo(w, h * 0.7485);894 c.lineTo(w * 0.5, h);895 c.lineTo(0, h * 0.7485);896 c.close();897 c.stroke();898};899mxCellRenderer.registerShape(mxShapeAws3dApplication.prototype.cst.APPLICATION, mxShapeAws3dApplication);900//**********************************************************************************************************************************************************901//Application Server902//**********************************************************************************************************************************************************903/**904* Extends mxShape.905*/906function mxShapeAws3dApplicationServer(bounds, fill, stroke, strokewidth)907{908 mxShape.call(this);909 this.bounds = bounds;910 this.fill = fill;911 this.stroke = stroke;912 this.strokewidth = (strokewidth != null) ? strokewidth : 1;913};914/**915* Extends mxShape.916*/917mxUtils.extend(mxShapeAws3dApplicationServer, mxShape);918mxShapeAws3dApplicationServer.prototype.cst = {919 APPLICATION_SERVER : 'mxgraph.aws3d.application_server',920 SHADING_COLORS : 'shadingCols'921};922/**923* Function: paintVertexShape924* 925* Paints the vertex shape.926*/927mxShapeAws3dApplicationServer.prototype.paintVertexShape = function(c, x, y, w, h)928{929 c.translate(x, y);930 931 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));932 var strokeWidth1 = strokeWidth * w / 123;933 var strokeWidth2 = strokeWidth * h / 124;934 935 strokeWidth = Math.min(strokeWidth1, strokeWidth2);936 this.background(c, 0, 0, w, h, strokeWidth);937 c.setShadow(false);938 this.foreground(c, 0, 0, w, h, strokeWidth);939};940mxShapeAws3dApplicationServer.prototype.background = function(c, x, y, w, h, strokeWidth)941{942 c.setStrokeWidth(strokeWidth);943 c.save();944 c.save();945 c.setStrokeWidth(2 * strokeWidth);946 c.setStrokeColor('#292929');947 c.setLineJoin('round');948 c.begin();949 c.moveTo(0, h * 0.7236);950 c.lineTo(0, h * 0.2863);951 c.lineTo(w * 0.5, 0);952 c.lineTo(w, h * 0.2863);953 c.lineTo(w, h * 0.7236);954 c.lineTo(w * 0.5, h);955 c.close();956 c.fillAndStroke();957};958mxShapeAws3dApplicationServer.prototype.foreground = function(c, x, y, w, h, strokeWidth)959{960 c.restore();961 c.setShadow(false);962 c.setFillColor('#000000');963 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplicationServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');964 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');965 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 966 967 c.begin();968 c.moveTo(0, h * 0.2863);969 c.lineTo(w * 0.5, h * 0.5726);970 c.lineTo(w * 0.5, h);971 c.lineTo(0, h * 0.7177);972 c.close();973 c.fill();974 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 975 c.begin();976 c.moveTo(w, h * 0.2863);977 c.lineTo(w * 0.5, h * 0.5726);978 c.lineTo(w * 0.5, h);979 c.lineTo(w, h * 0.7177);980 c.close();981 c.fill();982 983 c.restore();984 c.setShadow(false);985 c.setLineJoin('round');986 987 c.begin();988 c.moveTo(0, h * 0.2863);989 c.lineTo(w * 0.5, h * 0.5726);990 c.lineTo(w * 0.5, h);991 c.lineTo(0, h * 0.7177);992 c.close();993 c.stroke();994 c.begin();995 c.moveTo(w, h * 0.2863);996 c.lineTo(w * 0.5, h * 0.5726);997 c.lineTo(w * 0.5, h);998 c.lineTo(w, h * 0.7177);999 c.close();1000 c.stroke();1001 1002 c.setLineJoin('miter');1003 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1004 c.setFillColor(strokeColor);1005 c.begin();1006 c.moveTo(w * 0.374, h * 0.4435);1007 c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.374, h * 0.4153);1008 c.lineTo(w * 0.4797, h * 0.3548);1009 c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.5203, h * 0.3548);1010 c.lineTo(w * 0.626, h * 0.4153);1011 c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.626, h * 0.4411);1012 c.lineTo(w * 0.5203, h * 0.5016);1013 c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.4797, h * 0.5016);1014 c.close();1015 c.fill();1016 c.setStrokeWidth(2 * strokeWidth);1017 c.setStrokeColor('#292929');1018 c.setLineJoin('round');1019 c.begin();1020 c.moveTo(0, h * 0.7236);1021 c.lineTo(0, h * 0.2863);1022 c.lineTo(w * 0.5, 0);1023 c.lineTo(w, h * 0.2863);1024 c.lineTo(w, h * 0.7236);1025 c.lineTo(w * 0.5, h);1026 c.close();1027 c.stroke();1028};1029mxCellRenderer.registerShape(mxShapeAws3dApplicationServer.prototype.cst.APPLICATION_SERVER, mxShapeAws3dApplicationServer);1030//**********************************************************************************************************************************************************1031//CloudFront1032//**********************************************************************************************************************************************************1033/**1034* Extends mxShape.1035*/1036function mxShapeAws3dCloudFront(bounds, fill, stroke, strokewidth)1037{1038 mxShape.call(this);1039 this.bounds = bounds;1040 this.fill = fill;1041 this.stroke = stroke;1042 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1043};1044/**1045* Extends mxShape.1046*/1047mxUtils.extend(mxShapeAws3dCloudFront, mxShape);1048mxShapeAws3dCloudFront.prototype.cst = {1049 CLOUDFRONT : 'mxgraph.aws3d.cloudfront',1050 SHADING_COLORS : 'shadingCols'1051};1052/**1053* Function: paintVertexShape1054* 1055* Paints the vertex shape.1056*/1057mxShapeAws3dCloudFront.prototype.paintVertexShape = function(c, x, y, w, h)1058{1059 c.translate(x, y);1060 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1061 var strokeWidth1 = strokeWidth * w / 103.8;1062 var strokeWidth2 = strokeWidth * h / 169.8;1063 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1064 1065 strokeWidth = Math.min(strokeWidth1, strokeWidth2);1066 c.setShadow(false);1067 c.setStrokeWidth(strokeWidth);1068 c.save();1069 c.save();1070 c.setStrokeWidth(2 * strokeWidth);1071 c.setStrokeColor('#292929');1072 c.setLineJoin('round');1073 if (isShadow == 1)1074 {1075 c.setShadow(true);1076 }1077 1078 c.begin();1079 c.moveTo(0, h * 0.7915);1080 c.lineTo(0, h * 0.7491);1081 c.lineTo(w * 0.0588, h * 0.7279);1082 c.lineTo(w * 0.0588, h * 0.1036);1083 c.lineTo(w * 0.3526, 0);1084 c.lineTo(w * 0.9422, h * 0.2073);1085 c.lineTo(w * 0.9422, h * 0.8316);1086 c.lineTo(w, h * 0.8539);1087 c.lineTo(w, h * 0.894);1088 c.lineTo(w * 0.7013, h);1089 c.lineTo(w * 0.5877, h);1090 c.close();1091 c.fillAndStroke();1092 1093 c.restore();1094 c.setFillColor('#000000');1095 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCloudFront.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1096 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1097 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1098 1099 c.begin();1100 c.moveTo(w * 0.0588, h * 0.106);1101 c.lineTo(w * 0.6474, h * 0.3121);1102 c.lineTo(w * 0.6474, h * 0.9352);1103 c.lineTo(w * 0.7052, h);1104 c.lineTo(w * 0.5915, h);1105 c.lineTo(0, h * 0.7915);1106 c.lineTo(0, h * 0.7491);1107 c.lineTo(w * 0.0588, h * 0.7279);1108 c.close();1109 c.fill();1110 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1111 c.begin();1112 c.moveTo(w * 0.6474, h * 0.3121);1113 c.lineTo(w * 0.9422, h * 0.2073);1114 c.lineTo(w * 0.9422, h * 0.8363);1115 c.lineTo(w, h * 0.8539);1116 c.lineTo(w, h * 0.894);1117 c.lineTo(w * 0.7013, h);1118 c.lineTo(w * 0.6474, h * 0.9305);1119 c.close();1120 c.fill();1121 1122 c.restore();1123 c.setLineJoin('round');1124 c.begin();1125 c.moveTo(0, h * 0.7915);1126 c.lineTo(w * 0.0559, h * 0.7291);1127 c.lineTo(w * 0.6474, h * 0.9364);1128 c.lineTo(w * 0.5896, h);1129 c.moveTo(w * 0.6493, h * 0.9364);1130 c.lineTo(w * 0.9412, h * 0.8333);1131 c.lineTo(w, h * 0.894);1132 c.stroke();1133 c.begin();1134 c.moveTo(w * 0.0588, h * 0.106);1135 c.lineTo(w * 0.6474, h * 0.3121);1136 c.lineTo(w * 0.6474, h * 0.9352);1137 c.lineTo(w * 0.7052, h);1138 c.lineTo(w * 0.5915, h);1139 c.lineTo(0, h * 0.7915);1140 c.lineTo(0, h * 0.7491);1141 c.lineTo(w * 0.0588, h * 0.7279);1142 c.close();1143 c.stroke();1144 c.begin();1145 c.moveTo(w * 0.6474, h * 0.3121);1146 c.lineTo(w * 0.9422, h * 0.2073);1147 c.lineTo(w * 0.9422, h * 0.8363);1148 c.lineTo(w, h * 0.8539);1149 c.lineTo(w, h * 0.894);1150 c.lineTo(w * 0.7013, h);1151 c.lineTo(w * 0.6474, h * 0.9305);1152 c.close();1153 c.stroke();1154 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1155 c.setFillColor(strokeColor);1156 1157 c.begin();1158 c.moveTo(w * 0.3333, h * 0.6643);1159 c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.2351, h * 0.6042);1160 c.arcTo(w * 0.4528, h * 0.2768, 0, 0, 1, w * 0.1724, h * 0.523);1161 c.lineTo(w * 0.2428, h * 0.5677);1162 c.lineTo(w * 0.2427, h * 0.5895);1163 c.lineTo(w * 0.2765, h * 0.5995);1164 c.close();1165 c.moveTo(w * 0.1599, h * 0.4935);1166 c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.1522, h * 0.4146);1167 c.arcTo(w * 0.1156, h * 0.0883, 0, 0, 1, w * 0.2071, h * 0.3486);1168 c.lineTo(w * 0.2013, h * 0.4187);1169 c.lineTo(w * 0.1859, h * 0.4146);1170 c.lineTo(w * 0.1859, h * 0.4464);1171 c.lineTo(w * 0.1907, h * 0.4493);1172 c.close();1173 c.moveTo(w * 0.2235, h * 0.3445);1174 c.arcTo(w * 0.1927, h * 0.1767, 0, 0, 1, w * 0.368, h * 0.361);1175 c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.468, h * 0.4299);1176 c.lineTo(w * 0.368, h * 0.4034);1177 c.lineTo(w * 0.368, h * 0.394);1178 c.lineTo(w * 0.3256, h * 0.3799);1179 c.lineTo(w * 0.3256, h * 0.3887);1180 c.close();1181 c.moveTo(w * 0.4855, h * 0.4499);1182 c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5337, h * 0.5395);1183 c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5328, h * 0.6302);1184 c.lineTo(w * 0.4952, h * 0.5589);1185 c.lineTo(w * 0.5019, h * 0.5595);1186 c.lineTo(w * 0.5019, h * 0.5265);1187 c.lineTo(w * 0.4855, h * 0.5194);1188 c.close();1189 c.moveTo(w * 0.5241, h * 0.6455);1190 c.arcTo(w * 0.0963, h * 0.0589, 0, 0, 1, w * 0.4663, h * 0.682);1191 c.arcTo(w * 0.1445, h * 0.0883, 0, 0, 1, w * 0.3642, h * 0.6761);1192 c.lineTo(w * 0.4239, h * 0.6525);1193 c.lineTo(w * 0.4566, h * 0.6643);1194 c.lineTo(w * 0.4566, h * 0.6413);1195 c.close();1196 c.moveTo(w * 0.3507, h * 0.6667);1197 c.lineTo(w * 0.2871, h * 0.5919);1198 c.lineTo(w * 0.4123, h * 0.6366);1199 c.close();1200 c.moveTo(w * 0.2563, h * 0.5595);1201 c.lineTo(w * 0.1753, h * 0.5088);1202 c.lineTo(w * 0.2052, h * 0.4594);1203 c.close();1204 c.moveTo(w * 0.2139, h * 0.4229);1205 c.lineTo(w * 0.2197, h * 0.3528);1206 c.lineTo(w * 0.3256, h * 0.4028);1207 c.lineTo(w * 0.2283, h * 0.4252);1208 c.close();1209 c.moveTo(w * 0.2264, h * 0.4417);1210 c.lineTo(w * 0.3218, h * 0.4146);1211 c.lineTo(w * 0.3353, h * 0.4181);1212 c.lineTo(w * 0.3353, h * 0.4971);1213 c.lineTo(w * 0.3208, h * 0.4912);1214 c.lineTo(w * 0.3208, h * 0.4965);1215 c.lineTo(w * 0.2264, h * 0.4482);1216 c.close();1217 c.moveTo(w * 0.2697, h * 0.5618);1218 c.lineTo(w * 0.2245, h * 0.4635);1219 c.lineTo(w * 0.2331, h * 0.4588);1220 c.lineTo(w * 0.3256, h * 0.5112);1221 c.lineTo(w * 0.3237, h * 0.5241);1222 c.close();1223 c.moveTo(w * 0.2852, h * 0.576);1224 c.lineTo(w * 0.2852, h * 0.5654);1225 c.lineTo(w * 0.3391, h * 0.53);1226 c.lineTo(w * 0.3516, h * 0.5347);1227 c.lineTo(w * 0.4133, h * 0.6213);1228 c.close();1229 c.moveTo(w * 0.368, h * 0.5141);1230 c.lineTo(w * 0.368, h * 0.5088);1231 c.lineTo(w * 0.3526, h * 0.5029);1232 c.lineTo(w * 0.3526, h * 0.4234);1233 c.lineTo(w * 0.3622, h * 0.4276);1234 c.lineTo(w * 0.4547, h * 0.5177);1235 c.lineTo(w * 0.4557, h * 0.5277);1236 c.close();1237 c.moveTo(w * 0.3671, h * 0.417);1238 c.lineTo(w * 0.4692, h * 0.4411);1239 c.lineTo(w * 0.4721, h * 0.52);1240 c.close();1241 c.moveTo(w * 0.368, h * 0.5253);1242 c.lineTo(w * 0.4566, h * 0.5359);1243 c.lineTo(w * 0.4566, h * 0.5453);1244 c.lineTo(w * 0.4663, h * 0.5465);1245 c.lineTo(w * 0.4335, h * 0.6201);1246 c.lineTo(w * 0.422, h * 0.616);1247 c.lineTo(w * 0.368, h * 0.5389);1248 c.close();1249 c.moveTo(w * 0.4798, h * 0.5583);1250 c.lineTo(w * 0.5183, h * 0.629);1251 c.lineTo(w * 0.4557, h * 0.6313);1252 c.lineTo(w * 0.4557, h * 0.6237);1253 c.lineTo(w * 0.447, h * 0.6225);1254 c.close();1255 c.fill();1256 c.setStrokeWidth(2 * strokeWidth);1257 c.setStrokeColor('#292929');1258 c.setLineJoin('round');1259 c.begin();1260 c.moveTo(0, h * 0.7915);1261 c.lineTo(0, h * 0.7491);1262 c.lineTo(w * 0.0588, h * 0.7279);1263 c.lineTo(w * 0.0588, h * 0.1036);1264 c.lineTo(w * 0.3526, 0);1265 c.lineTo(w * 0.9422, h * 0.2073);1266 c.lineTo(w * 0.9422, h * 0.8316);1267 c.lineTo(w, h * 0.8539);1268 c.lineTo(w, h * 0.894);1269 c.lineTo(w * 0.7013, h);1270 c.lineTo(w * 0.5877, h);1271 c.close();1272 c.stroke();1273};1274mxCellRenderer.registerShape(mxShapeAws3dCloudFront.prototype.cst.CLOUDFRONT, mxShapeAws3dCloudFront);1275//**********************************************************************************************************************************************************1276//Data Center1277//**********************************************************************************************************************************************************1278/**1279* Extends mxShape.1280*/1281function mxShapeAws3dDataCenter(bounds, fill, stroke, strokewidth)1282{1283 mxShape.call(this);1284 this.bounds = bounds;1285 this.fill = fill;1286 this.stroke = stroke;1287 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1288};1289/**1290* Extends mxShape.1291*/1292mxUtils.extend(mxShapeAws3dDataCenter, mxShape);1293mxShapeAws3dDataCenter.prototype.cst = {1294 DATA_CENTER : 'mxgraph.aws3d.dataCenter',1295 SHADING_COLORS : 'shadingCols'1296};1297/**1298* Function: paintVertexShape1299* 1300* Paints the vertex shape.1301*/1302mxShapeAws3dDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)1303{1304 c.translate(x, y);1305 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1306 var strokeWidth1 = strokeWidth * w / 123;1307 var strokeWidth2 = strokeWidth * h / 142;1308 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1309 1310 strokeWidth = Math.min(strokeWidth1, strokeWidth2);1311 c.setShadow(false);1312 c.setStrokeWidth(strokeWidth);1313 c.save();1314 c.save();1315 c.setStrokeWidth(2 * strokeWidth);1316 c.setStrokeColor('#292929');1317 c.setLineJoin('round');1318 if (isShadow == 1)1319 {1320 c.setShadow(true);1321 }1322 1323 c.begin();1324 c.moveTo(0, h * 0.7465);1325 c.lineTo(0, h * 0.25);1326 c.lineTo(w * 0.5, 0);1327 c.lineTo(w, h * 0.25);1328 c.lineTo(w, h * 0.7465);1329 c.lineTo(w * 0.5, h);1330 c.close();1331 c.fillAndStroke();1332 1333 c.restore();1334 c.setFillColor('#000000');1335 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataCenter.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1336 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1337 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1338 1339 c.begin();1340 c.moveTo(0, h * 0.7465);1341 c.lineTo(0, h * 0.25);1342 c.lineTo(w * 0.5, h * 0.5);1343 c.lineTo(w * 0.5, h);1344 c.close();1345 c.fill();1346 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1347 c.begin();1348 c.moveTo(w, h * 0.7465);1349 c.lineTo(w, h * 0.25);1350 c.lineTo(w * 0.5, h * 0.5);1351 c.lineTo(w * 0.5, h);1352 c.close();1353 c.fill();1354 1355 c.restore();1356 c.setLineJoin('round');1357 c.begin();1358 c.moveTo(0, h * 0.7465);1359 c.lineTo(0, h * 0.25);1360 c.lineTo(w * 0.5, h * 0.5);1361 c.lineTo(w * 0.5, h);1362 c.close();1363 c.stroke();1364 c.begin();1365 c.moveTo(w, h * 0.7465);1366 c.lineTo(w, h * 0.25);1367 c.lineTo(w * 0.5, h * 0.5);1368 c.lineTo(w * 0.5, h);1369 c.close();1370 c.stroke();1371 c.setLineCap('round');1372 c.setStrokeWidth(3 * strokeWidth);1373 c.begin();1374 c.moveTo(w * 0.0894, h * 0.3838);1375 c.lineTo(w * 0.4187, h * 0.5493);1376 c.moveTo(w * 0.0894, h * 0.4331);1377 c.lineTo(w * 0.4187, h * 0.5986);1378 c.moveTo(w * 0.0894, h * 0.4824);1379 c.lineTo(w * 0.4187, h * 0.6479);1380 c.moveTo(w * 0.5854, h * 0.5493);1381 c.lineTo(w * 0.9146, h * 0.3838);1382 c.moveTo(w * 0.5854, h * 0.5986);1383 c.lineTo(w * 0.9146, h * 0.4331);1384 c.moveTo(w * 0.5854, h * 0.6479);1385 c.lineTo(w * 0.9146, h * 0.4824);1386 c.stroke();1387 c.setStrokeWidth(2 * strokeWidth);1388 c.setStrokeColor('#292929');1389 c.setLineJoin('round');1390 c.begin();1391 c.moveTo(0, h * 0.7465);1392 c.lineTo(0, h * 0.25);1393 c.lineTo(w * 0.5, 0);1394 c.lineTo(w, h * 0.25);1395 c.lineTo(w, h * 0.7465);1396 c.lineTo(w * 0.5, h);1397 c.close();1398 c.stroke();1399};1400mxCellRenderer.registerShape(mxShapeAws3dDataCenter.prototype.cst.DATA_CENTER, mxShapeAws3dDataCenter);1401//**********************************************************************************************************************************************************1402//Data Server1403//**********************************************************************************************************************************************************1404/**1405* Extends mxShape.1406*/1407function mxShapeAws3dDataServer(bounds, fill, stroke, strokewidth)1408{1409 mxShape.call(this);1410 this.bounds = bounds;1411 this.fill = fill;1412 this.stroke = stroke;1413 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1414};1415/**1416* Extends mxShape.1417*/1418mxUtils.extend(mxShapeAws3dDataServer, mxShape);1419mxShapeAws3dDataServer.prototype.cst = {1420 DATA_SERVER : 'mxgraph.aws3d.dataServer',1421 SHADINC_COLORS : 'shadingCols'1422};1423/**1424* Function: paintVertexShape1425* 1426* Paints the vertex shape.1427*/1428mxShapeAws3dDataServer.prototype.paintVertexShape = function(c, x, y, w, h)1429{1430 c.translate(x, y);1431 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1432 var strokeWidth1 = strokeWidth * w / 123;1433 var strokeWidth2 = strokeWidth * h / 106;1434 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1435 1436 strokeWidth = Math.min(strokeWidth1, strokeWidth2);1437 c.setShadow(false);1438 c.setStrokeWidth(strokeWidth);1439 c.save();1440 c.save();1441 c.setStrokeWidth(2 * strokeWidth);1442 c.setStrokeColor('#292929');1443 c.setLineJoin('round');1444 if (isShadow == 1)1445 {1446 c.setShadow(true);1447 }1448 1449 c.begin();1450 c.moveTo(0, h * 0.6651);1451 c.lineTo(0, h * 0.3349);1452 c.lineTo(w * 0.5, 0);1453 c.lineTo(w, h * 0.3349);1454 c.lineTo(w, h * 0.6651);1455 c.lineTo(w * 0.5, h);1456 c.close();1457 c.fillAndStroke();1458 1459 c.restore();1460 c.setFillColor('#000000');1461 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1462 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1463 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1464 1465 c.begin();1466 c.moveTo(0, h * 0.6651);1467 c.lineTo(0, h * 0.3349);1468 c.lineTo(w * 0.5, h * 0.6698);1469 c.lineTo(w * 0.5, h);1470 c.close();1471 c.fill();1472 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1473 c.begin();1474 c.moveTo(w, h * 0.6651);1475 c.lineTo(w, h * 0.3349);1476 c.lineTo(w * 0.5, h * 0.6698);1477 c.lineTo(w * 0.5, h);1478 c.close();1479 c.fill();1480 1481 c.restore();1482 c.setLineJoin('round');1483 c.begin();1484 c.moveTo(0, h * 0.6651);1485 c.lineTo(0, h * 0.3349);1486 c.lineTo(w * 0.5, h * 0.6698);1487 c.lineTo(w * 0.5, h);1488 c.close();1489 c.stroke();1490 c.begin();1491 c.moveTo(w, h * 0.6651);1492 c.lineTo(w, h * 0.3349);1493 c.lineTo(w * 0.5, h * 0.6698);1494 c.lineTo(w * 0.5, h);1495 c.close();1496 c.stroke();1497 c.setLineCap('round');1498 c.setStrokeWidth(3 * strokeWidth);1499 c.begin();1500 c.moveTo(w * 0.0878, h * 0.4858);1501 c.lineTo(w * 0.4187, h * 0.7094);1502 c.moveTo(w * 0.587, h * 0.7094);1503 c.lineTo(w * 0.9187, h * 0.4858);1504 c.stroke();1505 c.setStrokeWidth(2 * strokeWidth);1506 c.setStrokeColor('#292929');1507 c.setLineJoin('round');1508 c.begin();1509 c.moveTo(0, h * 0.6651);1510 c.lineTo(0, h * 0.3349);1511 c.lineTo(w * 0.5, 0);1512 c.lineTo(w, h * 0.3349);1513 c.lineTo(w, h * 0.6651);1514 c.lineTo(w * 0.5, h);1515 c.close();1516 c.stroke();1517};1518mxCellRenderer.registerShape(mxShapeAws3dDataServer.prototype.cst.DATA_SERVER, mxShapeAws3dDataServer);1519//**********************************************************************************************************************************************************1520//Elastic Load Balancing1521//**********************************************************************************************************************************************************1522/**1523* Extends mxShape.1524*/1525function mxShapeAws3dElasticLoadBalancing(bounds, fill, stroke, strokewidth)1526{1527 mxShape.call(this);1528 this.bounds = bounds;1529 this.fill = fill;1530 this.stroke = stroke;1531 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1532};1533/**1534* Extends mxShape.1535*/1536mxUtils.extend(mxShapeAws3dElasticLoadBalancing, mxShape);1537mxShapeAws3dElasticLoadBalancing.prototype.cst = {1538 ELASTIC_LOAD_BALANCING : 'mxgraph.aws3d.elasticLoadBalancing',1539 SHADING_COLORS : 'shadingCols'1540};1541/**1542* Function: paintVertexShape1543* 1544* Paints the vertex shape.1545*/1546mxShapeAws3dElasticLoadBalancing.prototype.paintVertexShape = function(c, x, y, w, h)1547{1548 c.translate(x, y);1549 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1550 var strokeWidth1 = strokeWidth * w / 92;1551 var strokeWidth2 = strokeWidth * h / 88.17;1552 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1553 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));1554 1555 strokeWidth = Math.min(strokeWidth1, strokeWidth2);1556 c.setShadow(false);1557 c.setStrokeWidth(strokeWidth);1558 c.save();1559 c.save();1560 c.save();1561 c.save();1562 c.setStrokeWidth(2 * strokeWidth);1563 c.setStrokeColor('#292929');1564 c.setLineJoin('round');1565 if (isShadow == 1)1566 {1567 c.setShadow(true);1568 }1569 1570 c.begin();1571 c.moveTo(0, h * 0.7996);1572 c.lineTo(0, h * 0.1985);1573 c.lineTo(w * 0.3315, 0);1574 c.lineTo(w * 0.6685, 0);1575 c.lineTo(w, h * 0.1985);1576 c.lineTo(w, h * 0.7996);1577 c.lineTo(w * 0.6685, h);1578 c.lineTo(w * 0.3315, h);1579 c.close();1580 c.fillAndStroke();1581 1582 c.restore();1583 c.setFillColor('#000000');1584 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticLoadBalancing.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1585 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1586 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1587 1588 c.begin();1589 c.moveTo(0, h * 0.4026);1590 c.lineTo(w * 0.3315, h * 0.6011);1591 c.lineTo(w * 0.6685, h * 0.6011);1592 c.lineTo(w * 0.6685, h);1593 c.lineTo(w * 0.3315, h);1594 c.lineTo(0, h * 0.7996);1595 c.close();1596 c.fill();1597 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1598 c.begin();1599 c.moveTo(w * 0.6685, h * 0.6011);1600 c.lineTo(w, h * 0.4026);1601 c.lineTo(w, h * 0.7996);1602 c.lineTo(w * 0.6685, h);1603 c.close();1604 c.fill();1605 1606 c.restore();1607 c.setLineJoin('round');1608 c.begin();1609 c.moveTo(0, h * 0.4026);1610 c.lineTo(w * 0.3315, h * 0.6011);1611 c.lineTo(w * 0.6685, h * 0.6011);1612 c.lineTo(w * 0.6685, h);1613 c.lineTo(w * 0.3315, h);1614 c.lineTo(0, h * 0.7996);1615 c.close();1616 c.stroke();1617 c.begin();1618 c.moveTo(w * 0.6685, h * 0.6011);1619 c.lineTo(w, h * 0.4026);1620 c.lineTo(w, h * 0.7996);1621 c.lineTo(w * 0.6685, h);1622 c.close();1623 c.moveTo(w * 0.3315, h * 0.6011);1624 c.lineTo(w * 0.3315, h);1625 c.stroke();1626 c.restore();1627 c.setFillColor(strokeColor);1628 c.begin();1629 c.moveTo(w * 0.337, h * 0.1395);1630 c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.5, h * 0.1191);1631 c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.6739, h * 0.1645);1632 c.arcTo(w * 0.3261, h * 0.2155, 0, 0, 1, w * 0.8152, h * 0.3176);1633 c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.75, h * 0.4367);1634 c.arcTo(w * 0.3261, h * 0.3403, 0, 0, 1, w * 0.6033, h * 0.4854);1635 c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.4348, h * 0.4741);1636 c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2848, h * 0.4094);1637 c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2065, h * 0.3062);1638 c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.2446, h * 0.1928);1639 c.arcTo(w * 0.2717, h * 0.1701, 0, 0, 1, w * 0.337, h * 0.1395);1640 c.fill();1641 c.restore();1642 c.begin();1643 c.moveTo(w * 0.2826, h * 0.372);1644 c.lineTo(w * 0.362, h * 0.3232);1645 c.lineTo(w * 0.4054, h * 0.3482);1646 c.lineTo(w * 0.4457, h * 0.2654);1647 c.lineTo(w * 0.4185, h * 0.2643);1648 c.lineTo(w * 0.4728, h * 0.2132);1649 c.lineTo(w * 0.4348, h * 0.1928);1650 c.lineTo(w * 0.5141, h * 0.144);1651 c.lineTo(w * 0.5837, h * 0.1883);1652 c.lineTo(w * 0.5043, h * 0.2348);1653 c.lineTo(w * 0.4848, h * 0.2223);1654 c.lineTo(w * 0.4967, h * 0.2688);1655 c.lineTo(w * 0.463, h * 0.2665);1656 c.lineTo(w * 0.4304, h * 0.3346);1657 c.lineTo(w * 0.4946, h * 0.2949);1658 c.lineTo(w * 0.4761, h * 0.2858);1659 c.lineTo(w * 0.5511, h * 0.2631);1660 c.lineTo(w * 0.5261, h * 0.2472);1661 c.lineTo(w * 0.6043, h * 0.1996);1662 c.lineTo(w * 0.6761, h * 0.2404);1663 c.lineTo(w * 0.5978, h * 0.2892);1664 c.lineTo(w * 0.5652, h * 0.2699);1665 c.lineTo(w * 0.5293, h * 0.3198);1666 c.lineTo(w * 0.5087, h * 0.3051);1667 c.lineTo(w * 0.4543, h * 0.3391);1668 c.lineTo(w * 0.563, h * 0.3221);1669 c.lineTo(w * 0.5598, h * 0.3017);1670 c.lineTo(w * 0.6326, h * 0.3096);1671 c.lineTo(w * 0.6163, h * 0.2994);1672 c.lineTo(w * 0.6957, h * 0.2529);1673 c.lineTo(w * 0.7674, h * 0.2938);1674 c.lineTo(w * 0.687, h * 0.3425);1675 c.lineTo(w * 0.6489, h * 0.321);1676 c.lineTo(w * 0.5707, h * 0.3539);1677 c.lineTo(w * 0.5674, h * 0.3369);1678 c.lineTo(w * 0.4293, h * 0.3618);1679 c.lineTo(w * 0.4641, h * 0.3834);1680 c.lineTo(w * 0.3859, h * 0.4299);1681 c.close();1682 c.fill();1683 1684 c.setStrokeWidth(2 * strokeWidth);1685 c.setStrokeColor('#292929');1686 c.setLineJoin('round');1687 c.begin();1688 c.moveTo(0, h * 0.7996);1689 c.lineTo(0, h * 0.1985);1690 c.lineTo(w * 0.3315, 0);1691 c.lineTo(w * 0.6685, 0);1692 c.lineTo(w, h * 0.1985);1693 c.lineTo(w, h * 0.7996);1694 c.lineTo(w * 0.6685, h);1695 c.lineTo(w * 0.3315, h);1696 c.close();1697 c.stroke();1698};1699mxCellRenderer.registerShape(mxShapeAws3dElasticLoadBalancing.prototype.cst.ELASTIC_LOAD_BALANCING, mxShapeAws3dElasticLoadBalancing);1700//**********************************************************************************************************************************************************1701//Instance1702//**********************************************************************************************************************************************************1703/**1704* Extends mxShape.1705*/1706function mxShapeAws3dInstance(bounds, fill, stroke, strokewidth)1707{1708 mxShape.call(this);1709 this.bounds = bounds;1710 this.fill = fill;1711 this.stroke = stroke;1712 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1713};1714/**1715* Extends mxShape.1716*/1717mxUtils.extend(mxShapeAws3dInstance, mxShape);1718mxShapeAws3dInstance.prototype.cst = {1719 INSTANCE : 'mxgraph.aws3d.instance',1720 SHADIG_COLORS : 'shadingCols'1721};1722/**1723* Function: paintVertexShape1724* 1725* Paints the vertex shape.1726*/1727mxShapeAws3dInstance.prototype.paintVertexShape = function(c, x, y, w, h)1728{1729 c.translate(x, y);1730 1731 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1732 var strokeWidth1 = strokeWidth * w / 123;1733 var strokeWidth2 = strokeWidth * h / 97;1734 1735 strokeWidth = Math.min(strokeWidth1, strokeWidth2);1736 this.background(c, 0, 0, w, h, strokeWidth);1737 c.setShadow(false);1738 this.foreground(c, 0, 0, w, h, strokeWidth);1739};1740mxShapeAws3dInstance.prototype.background = function(c, x, y, w, h, strokeWidth)1741{1742 c.setStrokeWidth(strokeWidth);1743 c.save();1744 c.save();1745 c.setStrokeWidth(2 * strokeWidth);1746 c.setStrokeColor('#292929');1747 c.setLineJoin('round');1748 c.begin();1749 c.moveTo(0, h * 0.634);1750 c.lineTo(0, h * 0.2732);1751 c.lineTo(w * 0.374, 0);1752 c.lineTo(w * 0.622, 0);1753 c.lineTo(w, h * 0.2732);1754 c.lineTo(w, h * 0.634);1755 c.lineTo(w * 0.5, h);1756 c.close();1757 c.fillAndStroke();1758};1759mxShapeAws3dInstance.prototype.foreground = function(c, x, y, w, h, strokeWidth)1760{1761 c.restore();1762 c.setShadow(false);1763 c.setFillColor('#000000');1764 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInstance.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1765 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1766 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1767 1768 c.begin();1769 c.moveTo(0, h * 0.2732);1770 c.lineTo(w * 0.5, h * 0.6392);1771 c.lineTo(w * 0.5, h);1772 c.lineTo(0, h * 0.634);1773 c.close();1774 c.fill();1775 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1776 c.begin();1777 c.moveTo(w * 0.5, h * 0.6392);1778 c.lineTo(w, h * 0.2732);1779 c.lineTo(w, h * 0.6392);1780 c.lineTo(w * 0.5, h);1781 c.close();1782 c.fill();1783 1784 c.restore();1785 c.setShadow(false);1786 c.setLineJoin('round');1787 1788 c.begin();1789 c.moveTo(0, h * 0.2732);1790 c.lineTo(w * 0.5, h * 0.6392);1791 c.lineTo(w * 0.5, h);1792 c.lineTo(0, h * 0.634);1793 c.close();1794 c.stroke();1795 c.begin();1796 c.moveTo(w * 0.5, h * 0.6392);1797 c.lineTo(w, h * 0.2732);1798 c.lineTo(w, h * 0.6392);1799 c.lineTo(w * 0.5, h);1800 c.close();1801 c.stroke();1802 1803 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1804 c.setFillColor(strokeColor);1805 c.begin();1806 c.moveTo(w * 0.374, h * 0.4742);1807 c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.374, h * 0.4381);1808 c.lineTo(w * 0.4797, h * 0.3608);1809 c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.5203, h * 0.3608);1810 c.lineTo(w * 0.626, h * 0.4381);1811 c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.626, h * 0.4711);1812 c.lineTo(w * 0.5203, h * 0.5485);1813 c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.4797, h * 0.5485);1814 c.close();1815 c.fill();1816 c.setStrokeWidth(2 * strokeWidth);1817 c.setStrokeColor('#292929');1818 c.setLineJoin('round');1819 c.begin();1820 c.moveTo(0, h * 0.634);1821 c.lineTo(0, h * 0.2732);1822 c.lineTo(w * 0.374, 0);1823 c.lineTo(w * 0.622, 0);1824 c.lineTo(w, h * 0.2732);1825 c.lineTo(w, h * 0.634);1826 c.lineTo(w * 0.5, h);1827 c.close();1828 c.stroke();1829};1830mxCellRenderer.registerShape(mxShapeAws3dInstance.prototype.cst.INSTANCE, mxShapeAws3dInstance);1831//**********************************************************************************************************************************************************1832//Internet Gateway1833//**********************************************************************************************************************************************************1834/**1835* Extends mxShape.1836*/1837function mxShapeAws3dInternetGateway(bounds, fill, stroke, strokewidth)1838{1839 mxShape.call(this);1840 this.bounds = bounds;1841 this.fill = fill;1842 this.stroke = stroke;1843 this.strokewidth = (strokewidth != null) ? strokewidth : 1;1844};1845/**1846* Extends mxShape.1847*/1848mxUtils.extend(mxShapeAws3dInternetGateway, mxShape);1849mxShapeAws3dInternetGateway.prototype.cst = {1850 INTERNET_GATEWAY : 'mxgraph.aws3d.internetGateway',1851 SHADING_COLORS : 'shadingCols'1852};1853/**1854* Function: paintVertexShape1855* 1856* Paints the vertex shape.1857*/1858mxShapeAws3dInternetGateway.prototype.paintVertexShape = function(c, x, y, w, h)1859{1860 c.translate(x, y);1861 1862 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));1863 var strokeWidth1 = strokeWidth * w / 116.7;1864 var strokeWidth2 = strokeWidth * h / 102.8;1865 1866 strokeWidth = Math.min(strokeWidth1, strokeWidth2);1867 this.background(c, 0, 0, w, h, strokeWidth);1868 c.setShadow(false);1869 this.foreground(c, 0, 0, w, h, strokeWidth);1870};1871mxShapeAws3dInternetGateway.prototype.background = function(c, x, y, w, h, strokeWidth)1872{1873 c.setStrokeWidth(strokeWidth);1874 c.save();1875 c.save();1876 c.save();1877 c.save();1878 c.save();1879 c.setStrokeWidth(2 * strokeWidth);1880 c.setStrokeColor('#292929');1881 c.setLineJoin('round');1882 c.begin();1883 c.moveTo(w * 0.4199, h * 0.5447);1884 c.lineTo(w * 0.4199, h * 0.035);1885 c.lineTo(w * 0.8946, 0);1886 c.lineTo(w, h * 0.0691);1887 c.lineTo(w, h * 0.4134);1888 c.lineTo(w * 0.6812, h * 0.7247);1889 c.close();1890 c.fillAndStroke();1891 c.restore();1892 c.save();1893 c.setShadow(false);1894 c.setFillColor('#000000');1895 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1896 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1897 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1898 c.begin();1899 c.moveTo(w * 0.4199, h * 0.5447);1900 c.lineTo(w * 0.4199, h * 0.035);1901 c.lineTo(w * 0.6838, h * 0.2072);1902 c.lineTo(w * 0.6838, h * 0.7247);1903 c.close();1904 c.fill();1905 1906 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1907 c.begin();1908 c.moveTo(w * 0.6838, h * 0.2072);1909 c.lineTo(w, h * 0.0691);1910 c.lineTo(w, h * 0.4134);1911 c.lineTo(w * 0.6838, h * 0.7247);1912 c.close();1913 c.fill();1914 c.restore();1915 c.setShadow(false);1916 c.begin();1917 c.moveTo(w * 0.4199, h * 0.5447);1918 c.lineTo(w * 0.4199, h * 0.035);1919 c.lineTo(w * 0.6838, h * 0.2072);1920 c.lineTo(w * 0.6838, h * 0.7247);1921 c.close();1922 c.stroke();1923 c.restore();1924 c.setLineJoin('round');1925 c.setShadow(false);1926 c.begin();1927 c.moveTo(w * 0.6838, h * 0.2072);1928 c.lineTo(w, h * 0.0691);1929 c.lineTo(w, h * 0.4134);1930 c.lineTo(w * 0.6838, h * 0.7247);1931 c.close();1932 c.stroke();1933 c.setStrokeWidth(2 * strokeWidth);1934 c.setStrokeColor('#292929');1935 1936 c.begin();1937 c.moveTo(w * 0.4199, h * 0.5447);1938 c.lineTo(w * 0.4199, h * 0.035);1939 c.lineTo(w * 0.8946, 0);1940 c.lineTo(w, h * 0.0691);1941 c.lineTo(w, h * 0.4134);1942 c.lineTo(w * 0.6812, h * 0.7247);1943 c.close();1944 c.stroke();1945 c.restore();1946 c.setStrokeWidth(2 * strokeWidth);1947 c.setStrokeColor('#292929');1948 c.setLineJoin('round');1949 c.begin();1950 c.moveTo(0, h * 0.929);1951 c.lineTo(0, h * 0.5866);1952 c.lineTo(w * 0.3171, h * 0.1031);1953 c.lineTo(w * 0.5784, h * 0.2753);1954 c.lineTo(w * 0.5784, h * 0.7928);1955 c.lineTo(w * 0.1054, h);1956 c.close();1957 c.fillAndStroke();1958};1959mxShapeAws3dInternetGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth)1960{1961 c.restore();1962 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');1963 c.setShadow(false);1964 c.setLineJoin('round');1965 c.setFillColor('#000000');1966 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');1967 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');1968 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 1969 1970 c.begin();1971 c.moveTo(0, h * 0.929);1972 c.lineTo(0, h * 0.5866);1973 c.lineTo(w * 0.1054, h * 0.6537);1974 c.lineTo(w * 0.1054, h);1975 c.close();1976 c.fill();1977 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 1978 c.begin();1979 c.moveTo(w * 0.1054, h);1980 c.lineTo(w * 0.1054, h * 0.6537);1981 c.lineTo(w * 0.5784, h * 0.2753);1982 c.lineTo(w * 0.5784, h * 0.7928);1983 c.close();1984 c.fill();1985 1986 c.restore();1987 c.setShadow(false);1988 c.setLineJoin('round');1989 1990 c.begin();1991 c.moveTo(0, h * 0.929);1992 c.lineTo(0, h * 0.5866);1993 c.lineTo(w * 0.1054, h * 0.6537);1994 c.lineTo(w * 0.1054, h);1995 c.close();1996 c.stroke();1997 c.begin();1998 c.moveTo(w * 0.1054, h);1999 c.lineTo(w * 0.1054, h * 0.6537);2000 c.lineTo(w * 0.5784, h * 0.2753);2001 c.lineTo(w * 0.5784, h * 0.7928);2002 c.close();2003 c.stroke();2004 2005 c.setStrokeWidth(2 * strokeWidth);2006 c.setStrokeColor('#292929');2007 c.setLineJoin('round');2008 c.begin();2009 c.moveTo(0, h * 0.929);2010 c.lineTo(0, h * 0.5866);2011 c.lineTo(w * 0.3171, h * 0.1031);2012 c.lineTo(w * 0.5784, h * 0.2753);2013 c.lineTo(w * 0.5784, h * 0.7928);2014 c.lineTo(w * 0.1054, h);2015 c.close();2016 c.stroke();2017 2018 c.setFillColor(strokeColor);2019 c.begin();2020 c.moveTo(w * 0.7849, h * 0.5039);2021 c.arcTo(w * 0.0343, h * 0.0632, 0, 0, 1, w * 0.7481, h * 0.4796);2022 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.7661, h * 0.3911);2023 c.arcTo(w * 0.06, h * 0.0681, 0, 0, 1, w * 0.7712, h * 0.3356);2024 c.arcTo(w * 0.0257, h * 0.0292, 0, 0, 1, w * 0.7952, h * 0.32);2025 c.arcTo(w * 0.1285, h * 0.1459, 0, 0, 1, w * 0.8166, h * 0.2461);2026 c.arcTo(w * 0.06, h * 0.0973, 0, 0, 1, w * 0.8595, h * 0.2238);2027 c.arcTo(w * 0.0514, h * 0.0973, 0, 0, 1, w * 0.8937, h * 0.2743);2028 c.arcTo(w * 0.0428, h * 0.0778, 0, 0, 1, w * 0.9323, h * 0.3093);2029 c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.928, h * 0.3716);2030 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8972, h * 0.4125);2031 c.close();2032 c.fill();2033};2034mxCellRenderer.registerShape(mxShapeAws3dInternetGateway.prototype.cst.INTERNET_GATEWAY, mxShapeAws3dInternetGateway);2035//**********************************************************************************************************************************************************2036//Oracle Data Center2037//**********************************************************************************************************************************************************2038/**2039* Extends mxShape.2040*/2041function mxShapeAws3dOracleDataCenter(bounds, fill, stroke, strokewidth)2042{2043 mxShape.call(this);2044 this.bounds = bounds;2045 this.fill = fill;2046 this.stroke = stroke;2047 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2048};2049/**2050* Extends mxShape.2051*/2052mxUtils.extend(mxShapeAws3dOracleDataCenter, mxShape);2053mxShapeAws3dOracleDataCenter.prototype.cst = {2054 ORACLE_DATA_CENTER : 'mxgraph.aws3d.oracleDataCenter'2055};2056/**2057* Function: paintVertexShape2058* 2059* Paints the vertex shape.2060*/2061mxShapeAws3dOracleDataCenter.prototype.paintVertexShape = function(c, x, y, w, h)2062{2063 c.translate(x, y);2064 2065 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2066 var strokeWidth1 = strokeWidth * w / 123;2067 var strokeWidth2 = strokeWidth * h /142;2068 2069 strokeWidth = Math.min(strokeWidth1, strokeWidth2);2070 c.setStrokeWidth(strokeWidth);2071 2072 this.background(c, 0, 0, w, h, strokeWidth);2073 c.setShadow(false);2074 this.foreground(c, 0, 0, w, h, strokeWidth);2075};2076mxShapeAws3dOracleDataCenter.prototype.background = function(c, x, y, w, h, strokeWidth)2077{2078 c.save();2079 c.save();2080 c.save();2081 c.setStrokeWidth(2 * strokeWidth);2082 c.setStrokeColor('#292929');2083 c.setLineJoin('round');2084 c.begin();2085 c.moveTo(0, h * 0.7464);2086 c.lineTo(0, h * 0.25);2087 c.lineTo(w * 0.5, 0);2088 c.lineTo(w, h * 0.25);2089 c.lineTo(w, h * 0.7464);2090 c.lineTo(w * 0.5, h);2091 c.close();2092 c.fillAndStroke();2093};2094mxShapeAws3dOracleDataCenter.prototype.foreground = function(c, x, y, w, h, strokeWidth)2095{2096 c.restore();2097 c.setShadow(false);2098 c.setFillColor('#000000');2099 c.setAlpha('0.1');2100 2101 c.begin();2102 c.moveTo(0, h * 0.7464);2103 c.lineTo(0, h * 0.25);2104 c.lineTo(w * 0.5, h * 0.5);2105 c.lineTo(w * 0.5, h);2106 c.close();2107 c.fill();2108 c.setAlpha('0.3');2109 c.begin();2110 c.moveTo(w * 0.5, h * 0.5);2111 c.lineTo(w, h * 0.25);2112 c.lineTo(w, h * 0.7464);2113 c.lineTo(w * 0.5, h);2114 c.close();2115 c.fill();2116 2117 c.restore();2118 c.setShadow(false);2119 c.setLineJoin('round');2120 2121 c.setFillColor('#ff0000');2122 c.begin();2123 c.moveTo(0, h * 0.5866);2124 c.lineTo(w * 0.5, h * 0.8359);2125 c.lineTo(w, h * 0.5866);2126 c.lineTo(w, h * 0.6986);2127 c.lineTo(w * 0.5, h * 0.9486);2128 c.lineTo(0, h * 0.6986);2129 c.fill();2130 c.setStrokeWidth(0.5 * strokeWidth);2131 c.setStrokeColor('#ffffff');2132 c.setFillColor('#ffffff');2133 2134 c.begin();2135 c.moveTo(0, h * 0.5866);2136 c.lineTo(w * 0.5, h * 0.8359);2137 c.lineTo(w, h * 0.5866);2138 c.moveTo(w, h * 0.6986);2139 c.lineTo(w * 0.5, h * 0.9486);2140 c.lineTo(0, h * 0.6986);2141 c.stroke();2142 2143 c.begin();2144 c.moveTo(w * 0.0813, h * 0.7113);2145 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);2146 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);2147 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);2148 c.lineTo(w * 0.122, h * 0.6754);2149 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);2150 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);2151 c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);2152 c.close();2153 c.moveTo(w * 0.1163, h * 0.7183);2154 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);2155 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);2156 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);2157 c.lineTo(w * 0.087, h * 0.6676);2158 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);2159 c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);2160 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);2161 c.close();2162 c.moveTo(w * 0.1439, h * 0.743);2163 c.lineTo(w * 0.1439, h * 0.6866);2164 c.lineTo(w * 0.1846, h * 0.707);2165 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);2166 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);2167 c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);2168 c.lineTo(w * 0.1992, h * 0.769);2169 c.lineTo(w * 0.187, h * 0.7641);2170 c.lineTo(w * 0.1577, h * 0.7218);2171 c.lineTo(w * 0.1854, h * 0.7345);2172 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);2173 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);2174 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);2175 c.lineTo(w * 0.1528, h * 0.7007);2176 c.lineTo(w * 0.1528, h * 0.7472);2177 c.close();2178 c.moveTo(w * 0.2008, h * 0.7711);2179 c.lineTo(w * 0.2293, h * 0.7338);2180 c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);2181 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);2182 c.lineTo(w * 0.2699, h * 0.8035);2183 c.lineTo(w * 0.2602, h * 0.8007);2184 c.lineTo(w * 0.252, h * 0.7859);2185 c.lineTo(w * 0.2293, h * 0.7754);2186 c.lineTo(w * 0.2244, h * 0.7634);2187 c.lineTo(w * 0.248, h * 0.7739);2188 c.lineTo(w * 0.235, h * 0.7444);2189 c.lineTo(w * 0.2122, h * 0.7768);2190 c.close();2191 c.moveTo(w * 0.3244, h * 0.8225);2192 c.lineTo(w * 0.3171, h * 0.8289);2193 c.lineTo(w * 0.2854, h * 0.8127);2194 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);2195 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);2196 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);2197 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);2198 c.lineTo(w * 0.3228, h * 0.7761);2199 c.lineTo(w * 0.3179, h * 0.7831);2200 c.lineTo(w * 0.2878, h * 0.7683);2201 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);2202 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);2203 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);2204 c.close();2205 c.moveTo(w * 0.3276, h * 0.7789);2206 c.lineTo(w * 0.3366, h * 0.7831);2207 c.lineTo(w * 0.3366, h * 0.8289);2208 c.lineTo(w * 0.3805, h * 0.8507);2209 c.lineTo(w * 0.3748, h * 0.857);2210 c.lineTo(w * 0.3317, h * 0.8359);2211 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);2212 c.close();2213 c.moveTo(w * 0.435, h * 0.8775);2214 c.lineTo(w * 0.4325, h * 0.8866);2215 c.lineTo(w * 0.3959, h * 0.8683);2216 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);2217 c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);2218 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);2219 c.lineTo(w * 0.435, h * 0.8324);2220 c.lineTo(w * 0.4285, h * 0.838);2221 c.lineTo(w * 0.4008, h * 0.8246);2222 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);2223 c.lineTo(w * 0.4333, h * 0.8542);2224 c.lineTo(w * 0.426, h * 0.8606);2225 c.lineTo(w * 0.3878, h * 0.8415);2226 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);2227 c.close();2228 c.moveTo(w * 0.6171, h * 0.8063);2229 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);2230 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);2231 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);2232 c.lineTo(w * 0.5894, h * 0.8761);2233 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);2234 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);2235 c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);2236 c.close();2237 c.moveTo(w * 0.5886, h * 0.8296);2238 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);2239 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);2240 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);2241 c.lineTo(w * 0.6163, h * 0.8528);2242 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);2243 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);2244 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);2245 c.close();2246 c.moveTo(w * 0.64, h * 0.85);2247 c.lineTo(w * 0.64, h * 0.7930);2248 c.lineTo(w * 0.6854, h * 0.7718);2249 c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);2250 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);2251 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);2252 c.lineTo(w * 0.6992, h * 0.8218);2253 c.lineTo(w * 0.6854, h * 0.8282);2254 c.lineTo(w * 0.6569, h * 0.8141);2255 c.lineTo(w * 0.6805, h * 0.8021);2256 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);2257 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);2258 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);2259 c.lineTo(w * 0.6528, h * 0.7979);2260 c.lineTo(w * 0.6528, h * 0.8437);2261 c.close();2262 c.moveTo(w * 0.7, h * 0.8204);2263 c.lineTo(w * 0.7301, h * 0.7507);2264 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);2265 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);2266 c.lineTo(w * 0.7699, h * 0.7852);2267 c.lineTo(w * 0.7602, h * 0.7908);2268 c.lineTo(w * 0.7537, h * 0.7838);2269 c.lineTo(w * 0.7276, h * 0.7958);2270 c.lineTo(w * 0.7228, h * 0.788);2271 c.lineTo(w * 0.748, h * 0.7768);2272 c.lineTo(w * 0.7358, h * 0.7585);2273 c.lineTo(w * 0.7114, h * 0.8155);2274 c.close();2275 c.moveTo(w * 0.8244, h * 0.7486);2276 c.lineTo(w * 0.8171, h * 0.762);2277 c.lineTo(w * 0.7894, h * 0.7761);2278 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);2279 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);2280 c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);2281 c.lineTo(w * 0.822, h * 0.7035);2282 c.lineTo(w * 0.8171, h * 0.7155);2283 c.lineTo(w * 0.7902, h * 0.7296);2284 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);2285 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);2286 c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);2287 c.close();2288 c.moveTo(w * 0.8366, h * 0.6949);2289 c.lineTo(w * 0.8366, h * 0.7423);2290 c.lineTo(w * 0.878, h * 0.7231);2291 c.lineTo(w * 0.874, h * 0.7338);2292 c.lineTo(w * 0.8333, h * 0.7535);2293 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);2294 c.lineTo(w * 0.8268, h * 0.7007);2295 c.close();2296 c.moveTo(w * 0.9342, h * 0.6472);2297 c.lineTo(w * 0.9293, h * 0.6599);2298 c.lineTo(w * 0.9033, h * 0.6725);2299 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);2300 c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);2301 c.lineTo(w * 0.9309, h * 0.6725);2302 c.lineTo(w * 0.9268, h * 0.6845);2303 c.lineTo(w * 0.887, h * 0.7035);2304 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);2305 c.lineTo(w * 0.935, h * 0.693);2306 c.lineTo(w * 0.9285, h * 0.7063);2307 c.lineTo(w * 0.9008, h * 0.7197);2308 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);2309 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);2310 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);2311 c.fill();2312 c.restore();2313 c.setShadow(false);2314 c.setLineJoin('round');2315 c.begin();2316 c.moveTo(0, h * 0.7464);2317 c.lineTo(0, h * 0.25);2318 c.lineTo(w * 0.5, h * 0.5);2319 c.lineTo(w * 0.5, h);2320 c.close();2321 c.stroke();2322 c.begin();2323 c.moveTo(w * 0.5, h * 0.5);2324 c.lineTo(w, h * 0.25);2325 c.lineTo(w, h * 0.7464);2326 c.lineTo(w * 0.5, h);2327 c.close();2328 c.stroke();2329 2330 c.setStrokeWidth(2 * strokeWidth);2331 c.setStrokeColor('#292929');2332 c.setLineJoin('round');2333 c.begin();2334 c.moveTo(0, h * 0.7464);2335 c.lineTo(0, h * 0.25);2336 c.lineTo(w * 0.5, 0);2337 c.lineTo(w, h * 0.25);2338 c.lineTo(w, h * 0.7464);2339 c.lineTo(w * 0.5, h);2340 c.close();2341 c.stroke();2342 2343 c.restore();2344 c.setShadow(false);2345 c.setStrokeWidth(3 * strokeWidth);2346 c.setLineCap('round');2347 c.begin();2348 c.moveTo(w * 0.0894, h * 0.3838);2349 c.lineTo(w * 0.4187, h * 0.5493);2350 c.moveTo(w * 0.0894, h * 0.4331);2351 c.lineTo(w * 0.4187, h * 0.5986);2352 c.moveTo(w * 0.0894, h * 0.4824);2353 c.lineTo(w * 0.4187, h * 0.6479);2354 c.moveTo(w * 0.5854, h * 0.5492);2355 c.lineTo(w * 0.9146, h * 0.3838);2356 c.moveTo(w * 0.5854, h * 0.5986);2357 c.lineTo(w * 0.9146, h * 0.4331);2358 c.moveTo(w * 0.5854, h * 0.6479);2359 c.lineTo(w * 0.9146, h * 0.4824);2360 c.stroke();2361};2362mxCellRenderer.registerShape(mxShapeAws3dOracleDataCenter.prototype.cst.ORACLE_DATA_CENTER, mxShapeAws3dOracleDataCenter);2363//**********************************************************************************************************************************************************2364//Oracle Database Server2365//**********************************************************************************************************************************************************2366/**2367* Extends mxShape.2368*/2369function mxShapeAws3dOracleDatabaseServer(bounds, fill, stroke, strokewidth)2370{2371 mxShape.call(this);2372 this.bounds = bounds;2373 this.fill = fill;2374 this.stroke = stroke;2375 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2376};2377/**2378* Extends mxShape.2379*/2380mxUtils.extend(mxShapeAws3dOracleDatabaseServer, mxShape);2381mxShapeAws3dOracleDatabaseServer.prototype.cst = {2382 ORACLE_DB_SERVER : 'mxgraph.aws3d.oracleDbServer'2383};2384/**2385* Function: paintVertexShape2386* 2387* Paints the vertex shape.2388*/2389mxShapeAws3dOracleDatabaseServer.prototype.paintVertexShape = function(c, x, y, w, h)2390{2391 c.translate(x, y);2392 2393 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2394 var strokeWidth1 = strokeWidth * w / 123;2395 var strokeWidth2 = strokeWidth * h /142;2396 2397 strokeWidth = Math.min(strokeWidth1, strokeWidth2);2398 c.setStrokeWidth(strokeWidth);2399 2400 this.background(c, 0, 0, w, h, strokeWidth);2401 c.setShadow(false);2402 this.foreground(c, 0, 0, w, h, strokeWidth);2403};2404mxShapeAws3dOracleDatabaseServer.prototype.background = function(c, x, y, w, h, strokeWidth)2405{2406 c.save();2407 c.save();2408 c.save();2409 c.setStrokeWidth(2 * strokeWidth);2410 c.setStrokeColor('#292929');2411 c.setLineJoin('round');2412 c.begin();2413 c.moveTo(0, h * 0.7331);2414 c.lineTo(0, h * 0.3346);2415 c.lineTo(w * 0.126, h * 0.1316);2416 c.lineTo(w * 0.374, 0);2417 c.lineTo(w * 0.626, 0);2418 c.lineTo(w * 0.874, h * 0.1316);2419 c.lineTo(w, h * 0.3346);2420 c.lineTo(w, h * 0.7331);2421 c.lineTo(w * 0.5, h);2422 c.close();2423 c.fillAndStroke();2424};2425mxShapeAws3dOracleDatabaseServer.prototype.foreground = function(c, x, y, w, h, strokeWidth)2426{2427 c.restore();2428 c.setShadow(false);2429 c.setFillColor('#000000');2430 c.setAlpha('0.1');2431 2432 c.begin();2433 c.moveTo(w * 0.126, h * 0.1316);2434 c.lineTo(w * 0.126, h * 0.267);2435 c.lineTo(w * 0.378, h * 0.4023);2436 c.lineTo(w * 0.5, h * 0.6015);2437 c.lineTo(w * 0.5, h);2438 c.lineTo(0, h * 0.7331);2439 c.lineTo(0, h * 0.3346);2440 c.close();2441 c.moveTo(w * 0.874, h * 0.267);2442 c.lineTo(w * 0.874, h * 0.1316);2443 c.lineTo(w, h * 0.3308);2444 c.fill();2445 c.setAlpha('0.3');2446 c.begin();2447 c.moveTo(w * 0.5, h);2448 c.lineTo(w * 0.5, h * 0.6015);2449 c.lineTo(w * 0.622, h * 0.4023);2450 c.lineTo(w * 0.874, h * 0.267);2451 c.lineTo(w, h * 0.3308);2452 c.lineTo(w, h * 0.7331);2453 c.close();2454 c.fill();2455 2456 c.restore();2457 c.setShadow(false);2458 c.setLineJoin('round');2459 2460 c.setFillColor('#ff0000');2461 c.begin();2462 c.moveTo(0, h * 0.5586);2463 c.lineTo(w * 0.5, h * 0.8248);2464 c.lineTo(w, h * 0.5586);2465 c.lineTo(w, h * 0.6782);2466 c.lineTo(w * 0.5, h * 0.9453);2467 c.lineTo(0, h * 0.6782);2468 c.fill();2469 c.setStrokeWidth(0.5 * strokeWidth);2470 c.setStrokeColor('#ffffff');2471 c.setFillColor('#ffffff');2472 2473 c.begin();2474 c.moveTo(0, h * 0.5586);2475 c.lineTo(w * 0.5, h * 0.8248);2476 c.lineTo(w, h * 0.5586);2477 c.moveTo(w, h * 0.6782);2478 c.lineTo(w * 0.5, h * 0.9453);2479 c.lineTo(0, h * 0.6782);2480 c.stroke();2481 2482 c.begin();2483 c.moveTo(w * 0.0813, h * 0.6918);2484 c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.065, h * 0.6616);2485 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.065, h * 0.6384);2486 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.0797, h * 0.6315);2487 c.lineTo(w * 0.122, h * 0.6534);2488 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.1358, h * 0.673);2489 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.139, h * 0.7045);2490 c.arcTo(w * 0.0179, h * 0.0165, 0, 0, 1, w * 0.1187, h * 0.7113);2491 c.close();2492 c.moveTo(w * 0.1163, h * 0.6992);2493 c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.1285, h * 0.6955);2494 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1293, h * 0.6819);2495 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1179, h * 0.6616);2496 c.lineTo(w * 0.087, h * 0.6451);2497 c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.0764, h * 0.6473);2498 c.arcTo(w * 0.0325, h * 0.0376, 0, 0, 0, w * 0.078, h * 0.673);2499 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.087, h * 0.6834);2500 c.close();2501 c.moveTo(w * 0.1439, h * 0.7256);2502 c.lineTo(w * 0.1439, h * 0.6654);2503 c.lineTo(w * 0.1846, h * 0.6872);2504 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.1967, h * 0.6992);2505 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2, h * 0.7203);2506 c.arcTo(w * 0.0138, h * 0.0165, 0, 0, 1, w * 0.1813, h * 0.7256);2507 c.lineTo(w * 0.1992, h * 0.7534);2508 c.lineTo(w * 0.187, h * 0.7481);2509 c.lineTo(w * 0.1577, h * 0.7029);2510 c.lineTo(w * 0.1854, h * 0.7165);2511 c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.1911, h * 0.7135);2512 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 0, w * 0.1894, h * 0.7037);2513 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.1821, h * 0.6962);2514 c.lineTo(w * 0.1528, h * 0.6804);2515 c.lineTo(w * 0.1528, h * 0.7301);2516 c.close();2517 c.moveTo(w * 0.2008, h * 0.7556);2518 c.lineTo(w * 0.2293, h * 0.7158);2519 c.arcTo(w * 0.0065, h * 0.006, 0, 0, 1, w * 0.2382, h * 0.7143);2520 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2431, h * 0.724);2521 c.lineTo(w * 0.2699, h * 0.7902);2522 c.lineTo(w * 0.2602, h * 0.7872);2523 c.lineTo(w * 0.252, h * 0.7714);2524 c.lineTo(w * 0.2293, h * 0.7602);2525 c.lineTo(w * 0.2244, h * 0.7474);2526 c.lineTo(w * 0.248, h * 0.7586);2527 c.lineTo(w * 0.235, h * 0.7271);2528 c.lineTo(w * 0.2122, h * 0.7617);2529 c.close();2530 c.moveTo(w * 0.3244, h * 0.8105);2531 c.lineTo(w * 0.3171, h * 0.8173);2532 c.lineTo(w * 0.2854, h * 0.8);2533 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2724, h * 0.785);2534 c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.265, h * 0.7593);2535 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2683, h * 0.7459);2536 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.2829, h * 0.7405);2537 c.lineTo(w * 0.3228, h * 0.7609);2538 c.lineTo(w * 0.3179, h * 0.7684);2539 c.lineTo(w * 0.2878, h * 0.7526);2540 c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.2789, h * 0.7541);2541 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.2748, h * 0.7684);2542 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.2878, h * 0.7909);2543 c.close();2544 c.moveTo(w * 0.3276, h * 0.7639);2545 c.lineTo(w * 0.3366, h * 0.7684);2546 c.lineTo(w * 0.3366, h * 0.8173);2547 c.lineTo(w * 0.3805, h * 0.8406);2548 c.lineTo(w * 0.3748, h * 0.8473);2549 c.lineTo(w * 0.3317, h * 0.8248);2550 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3276, h * 0.8158);2551 c.close();2552 c.moveTo(w * 0.435, h * 0.8692);2553 c.lineTo(w * 0.4325, h * 0.8789);2554 c.lineTo(w * 0.3959, h * 0.8594);2555 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.3862, h * 0.8466);2556 c.arcTo(w * 0.0528, h * 0.0489, 0, 0, 1, w * 0.3805, h * 0.806);2557 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3951, h * 0.8008);2558 c.lineTo(w * 0.435, h * 0.821);2559 c.lineTo(w * 0.4285, h * 0.827);2560 c.lineTo(w * 0.4008, h * 0.8127);2561 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.3878, h * 0.8196);2562 c.lineTo(w * 0.4333, h * 0.8443);2563 c.lineTo(w * 0.426, h * 0.8512);2564 c.lineTo(w * 0.3878, h * 0.8308);2565 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.3976, h * 0.8489);2566 c.close();2567 c.moveTo(w * 0.6171, h * 0.7932);2568 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.6366, h * 0.7963);2569 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 1, w * 0.639, h * 0.8188);2570 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.6211, h * 0.8497);2571 c.lineTo(w * 0.5894, h * 0.8677);2572 c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 1, w * 0.565, h * 0.8646);2573 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.5659, h * 0.8354);2574 c.arcTo(w * 0.0488, h * 0.0451, 0, 0, 1, w * 0.5805, h * 0.8127);2575 c.close();2576 c.moveTo(w * 0.5886, h * 0.8181);2577 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.5748, h * 0.8368);2578 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.574, h * 0.8527);2579 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.587, h * 0.8586);2580 c.lineTo(w * 0.6163, h * 0.8428);2581 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.6285, h * 0.8248);2582 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6293, h * 0.8105);2583 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.6163, h * 0.803);2584 c.close();2585 c.moveTo(w * 0.64, h * 0.8398);2586 c.lineTo(w * 0.64, h * 0.779);2587 c.lineTo(w * 0.6854, h * 0.7563);2588 c.arcTo(w * 0.0106, h * 0.0098, 0, 0, 1, w * 0.7008, h * 0.7632);2589 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6959, h * 0.7865);2590 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6805, h * 0.8);2591 c.lineTo(w * 0.6992, h * 0.8097);2592 c.lineTo(w * 0.6854, h * 0.8166);2593 c.lineTo(w * 0.6569, h * 0.8015);2594 c.lineTo(w * 0.6805, h * 0.7887);2595 c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 0, w * 0.6894, h * 0.7782);2596 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6894, h * 0.7699);2597 c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.6837, h * 0.7684);2598 c.lineTo(w * 0.6528, h * 0.7842);2599 c.lineTo(w * 0.6528, h * 0.8331);2600 c.close();2601 c.moveTo(w * 0.7, h * 0.8082);2602 c.lineTo(w * 0.7301, h * 0.7338);2603 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7358, h * 0.7271);2604 c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7415, h * 0.7316);2605 c.lineTo(w * 0.7699, h * 0.7707);2606 c.lineTo(w * 0.7602, h * 0.7766);2607 c.lineTo(w * 0.7537, h * 0.7692);2608 c.lineTo(w * 0.7276, h * 0.782);2609 c.lineTo(w * 0.7228, h * 0.7736);2610 c.lineTo(w * 0.748, h * 0.7617);2611 c.lineTo(w * 0.7358, h * 0.7421);2612 c.lineTo(w * 0.7114, h * 0.803);2613 c.close();2614 c.moveTo(w * 0.8244, h * 0.7316);2615 c.lineTo(w * 0.8171, h * 0.7459);2616 c.lineTo(w * 0.7894, h * 0.7609);2617 c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 1, w * 0.7683, h * 0.7593);2618 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.7667, h * 0.7338);2619 c.arcTo(w * 0.0488, h * 0.0452, 0, 0, 1, w * 0.7937, h * 0.697);2620 c.lineTo(w * 0.822, h * 0.6834);2621 c.lineTo(w * 0.8171, h * 0.6962);2622 c.lineTo(w * 0.7902, h * 0.7113);2623 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.778, h * 0.7256);2624 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.7756, h * 0.7444);2625 c.arcTo(w * 0.0077, h * 0.0072, 0, 0, 0, w * 0.787, h * 0.7512);2626 c.close();2627 c.moveTo(w * 0.8366, h * 0.6742);2628 c.lineTo(w * 0.8366, h * 0.7248);2629 c.lineTo(w * 0.878, h * 0.7043);2630 c.lineTo(w * 0.874, h * 0.7158);2631 c.lineTo(w * 0.8333, h * 0.7368);2632 c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 1, w * 0.8268, h * 0.7324);2633 c.lineTo(w * 0.8268, h * 0.6804);2634 c.close();2635 c.moveTo(w * 0.9342, h * 0.6233);2636 c.lineTo(w * 0.9293, h * 0.6369);2637 c.lineTo(w * 0.9033, h * 0.6503);2638 c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.8927, h * 0.6601);2639 c.arcTo(w * 0.0406, h * 0.0376, 0, 0, 0, w * 0.887, h * 0.6729);2640 c.lineTo(w * 0.9309, h * 0.6503);2641 c.lineTo(w * 0.9268, h * 0.6631);2642 c.lineTo(w * 0.887, h * 0.6834);2643 c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.8992, h * 0.691);2644 c.lineTo(w * 0.935, h * 0.6722);2645 c.lineTo(w * 0.9285, h * 0.6864);2646 c.lineTo(w * 0.9008, h * 0.7007);2647 c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.8829, h * 0.7015);2648 c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.8764, h * 0.6827);2649 c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.8959, h * 0.6443);2650 c.fill();2651 c.restore();2652 c.setShadow(false);2653 c.setLineJoin('round');2654 c.begin();2655 c.moveTo(w * 0.126, h * 0.1316);2656 c.lineTo(w * 0.126, h * 0.267);2657 c.lineTo(w * 0.378, h * 0.4023);2658 c.lineTo(w * 0.5, h * 0.6015);2659 c.lineTo(w * 0.622, h * 0.4023);2660 c.lineTo(w * 0.874, h * 0.267);2661 c.lineTo(w * 0.874, h * 0.1316);2662 c.moveTo(0, h * 0.3346);2663 c.lineTo(w * 0.126, h * 0.267);2664 c.moveTo(w * 0.5, h * 0.6015);2665 c.lineTo(w * 0.5, h);2666 c.moveTo(w, h * 0.3346);2667 c.lineTo(w * 0.87, h * 0.267);2668 c.moveTo(w * 0.378, h * 0.4023);2669 c.lineTo(w * 0.622, h * 0.4023);2670 c.stroke();2671 c.setStrokeWidth(2 * strokeWidth);2672 c.setStrokeColor('#292929');2673 c.begin();2674 c.moveTo(0, h * 0.7331);2675 c.lineTo(0, h * 0.3346);2676 c.lineTo(w * 0.126, h * 0.1316);2677 c.lineTo(w * 0.374, 0);2678 c.lineTo(w * 0.626, 0);2679 c.lineTo(w * 0.874, h * 0.1316);2680 c.lineTo(w, h * 0.3346);2681 c.lineTo(w, h * 0.7331);2682 c.lineTo(w * 0.5, h);2683 c.close();2684 c.stroke();2685};2686mxCellRenderer.registerShape(mxShapeAws3dOracleDatabaseServer.prototype.cst.ORACLE_DB_SERVER, mxShapeAws3dOracleDatabaseServer);//zzz2687//**********************************************************************************************************************************************************2688//RDS Master2689//**********************************************************************************************************************************************************2690/**2691* Extends mxShape.2692*/2693function mxShapeAws3dRdsMaster(bounds, fill, stroke, strokewidth)2694{2695 mxShape.call(this);2696 this.bounds = bounds;2697 this.fill = fill;2698 this.stroke = stroke;2699 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2700};2701/**2702* Extends mxShape.2703*/2704mxUtils.extend(mxShapeAws3dRdsMaster, mxShape);2705mxShapeAws3dRdsMaster.prototype.cst = {2706 RDS_MASTER : 'mxgraph.aws3d.rdsMaster',2707 SHADIG_COLORS : 'shadingCols'2708};2709/**2710* Function: paintVertexShape2711* 2712* Paints the vertex shape.2713*/2714mxShapeAws3dRdsMaster.prototype.paintVertexShape = function(c, x, y, w, h)2715{2716 c.translate(x, y);2717 2718 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2719 var strokeWidth1 = strokeWidth * w / 123;2720 var strokeWidth2 = strokeWidth * h /133;2721 2722 strokeWidth = Math.min(strokeWidth1, strokeWidth2);2723 c.setStrokeWidth(strokeWidth);2724 2725 this.background(c, 0, 0, w, h, strokeWidth);2726 c.setShadow(false);2727 this.foreground(c, 0, 0, w, h, strokeWidth);2728};2729mxShapeAws3dRdsMaster.prototype.background = function(c, x, y, w, h, strokeWidth)2730{2731 c.save();2732 c.save();2733 c.setStrokeWidth(2 * strokeWidth);2734 c.setStrokeColor('#292929');2735 c.setLineJoin('round');2736 c.begin();2737 c.moveTo(0, h * 0.7331);2738 c.lineTo(0, h * 0.3346);2739 c.lineTo(w * 0.126, h * 0.1316);2740 c.lineTo(w * 0.374, 0);2741 c.lineTo(w * 0.626, 0);2742 c.lineTo(w * 0.874, h * 0.1316);2743 c.lineTo(w, h * 0.3346);2744 c.lineTo(w, h * 0.7331);2745 c.lineTo(w * 0.5, h);2746 c.close();2747 c.fillAndStroke();2748};2749mxShapeAws3dRdsMaster.prototype.foreground = function(c, x, y, w, h, strokeWidth)2750{2751 c.restore();2752 c.setShadow(false);2753 c.setFillColor('#000000');2754 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRdsMaster.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');2755 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');2756 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 2757 2758 c.begin();2759 c.moveTo(w * 0.126, h * 0.1316);2760 c.lineTo(w * 0.126, h * 0.267);2761 c.lineTo(w * 0.378, h * 0.4023);2762 c.lineTo(w * 0.5, h * 0.6015);2763 c.lineTo(w * 0.5, h);2764 c.lineTo(0, h * 0.7331);2765 c.lineTo(0, h * 0.3346);2766 c.close();2767 c.moveTo(w * 0.874, h * 0.267);2768 c.lineTo(w * 0.874, h * 0.1316);2769 c.lineTo(w, h * 0.3308);2770 c.fill();2771 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 2772 c.begin();2773 c.moveTo(w * 0.5, h);2774 c.lineTo(w * 0.5, h * 0.6015);2775 c.lineTo(w * 0.622, h * 0.4023);2776 c.lineTo(w * 0.874, h * 0.267);2777 c.lineTo(w, h * 0.3308);2778 c.lineTo(w, h * 0.7331);2779 c.close();2780 c.fill();2781 2782 c.restore();2783 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');2784 c.setFillColor(strokeColor);2785 c.setShadow(false);2786 c.begin();2787 c.moveTo(w * 0.1878, h * 0.1932);2788 c.lineTo(w * 0.4854, h * 0.0414);2789 c.lineTo(w * 0.5886, h * 0.094);2790 c.lineTo(w * 0.4455, h * 0.2308);2791 c.lineTo(w * 0.7122, h * 0.1579);2792 c.lineTo(w * 0.8171, h * 0.2098);2793 c.lineTo(w * 0.5187, h * 0.3617);2794 c.lineTo(w * 0.4537, h * 0.3293);2795 c.lineTo(w * 0.7016, h * 0.2053);2796 c.lineTo(w * 0.3854, h * 0.2947);2797 c.lineTo(w * 0.3187, h * 0.2602);2798 c.lineTo(w * 0.4959, h * 0.0992);2799 c.lineTo(w * 0.2504, h * 0.2256);2800 c.close();2801 c.fill();2802 2803 c.setLineJoin('round');2804 c.begin();2805 c.moveTo(w * 0.126, h * 0.1316);2806 c.lineTo(w * 0.126, h * 0.267);2807 c.lineTo(w * 0.378, h * 0.4023);2808 c.lineTo(w * 0.5, h * 0.6015);2809 c.lineTo(w * 0.622, h * 0.4023);2810 c.lineTo(w * 0.874, h * 0.267);2811 c.lineTo(w * 0.874, h * 0.1316);2812 c.moveTo(0, h * 0.3346);2813 c.lineTo(w * 0.126, h * 0.267);2814 c.moveTo(w * 0.5, h * 0.6015);2815 c.lineTo(w * 0.5, h);2816 c.moveTo(w, h * 0.3346);2817 c.lineTo(w * 0.87, h * 0.267);2818 c.moveTo(w * 0.378, h * 0.4023);2819 c.lineTo(w * 0.622, h * 0.4023);2820 c.stroke();2821 c.setStrokeWidth(2 * strokeWidth);2822 c.setStrokeColor('#292929');2823 c.begin();2824 c.moveTo(0, h * 0.7331);2825 c.lineTo(0, h * 0.3346);2826 c.lineTo(w * 0.126, h * 0.1316);2827 c.lineTo(w * 0.374, 0);2828 c.lineTo(w * 0.626, 0);2829 c.lineTo(w * 0.874, h * 0.1316);2830 c.lineTo(w, h * 0.3346);2831 c.lineTo(w, h * 0.7331);2832 c.lineTo(w * 0.5, h);2833 c.close();2834 c.stroke();2835};2836mxCellRenderer.registerShape(mxShapeAws3dRdsMaster.prototype.cst.RDS_MASTER, mxShapeAws3dRdsMaster);2837//**********************************************************************************************************************************************************2838//RDS2839//**********************************************************************************************************************************************************2840/**2841* Extends mxShape.2842*/2843function mxShapeAws3dRds(bounds, fill, stroke, strokewidth)2844{2845 mxShape.call(this);2846 this.bounds = bounds;2847 this.fill = fill;2848 this.stroke = stroke;2849 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2850};2851/**2852* Extends mxShape.2853*/2854mxUtils.extend(mxShapeAws3dRds, mxShape);2855mxShapeAws3dRds.prototype.cst = {2856 RDS : 'mxgraph.aws3d.rds',2857 SHADING_COLORS : 'shadingCols'2858};2859/**2860* Function: paintVertexShape2861* 2862* Paints the vertex shape.2863*/2864mxShapeAws3dRds.prototype.paintVertexShape = function(c, x, y, w, h)2865{2866 c.translate(x, y);2867 2868 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));2869 var strokeWidth1 = strokeWidth * w / 123;2870 var strokeWidth2 = strokeWidth * h /133;2871 2872 strokeWidth = Math.min(strokeWidth1, strokeWidth2);2873 c.setStrokeWidth(strokeWidth);2874 2875 this.background(c, 0, 0, w, h, strokeWidth);2876 c.setShadow(false);2877 this.foreground(c, 0, 0, w, h, strokeWidth);2878};2879mxShapeAws3dRds.prototype.background = function(c, x, y, w, h, strokeWidth)2880{2881 c.save();2882 c.save();2883 c.setStrokeWidth(2 * strokeWidth);2884 c.setStrokeColor('#292929');2885 c.setLineJoin('round');2886 c.begin();2887 c.moveTo(0, h * 0.7331);2888 c.lineTo(0, h * 0.3346);2889 c.lineTo(w * 0.126, h * 0.1316);2890 c.lineTo(w * 0.374, 0);2891 c.lineTo(w * 0.626, 0);2892 c.lineTo(w * 0.874, h * 0.1316);2893 c.lineTo(w, h * 0.3346);2894 c.lineTo(w, h * 0.7331);2895 c.lineTo(w * 0.5, h);2896 c.close();2897 c.fillAndStroke();2898};2899mxShapeAws3dRds.prototype.foreground = function(c, x, y, w, h, strokeWidth)2900{2901 c.restore();2902 c.setShadow(false);2903 c.setFillColor('#000000');2904 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRds.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');2905 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');2906 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 2907 2908 c.begin();2909 c.moveTo(w * 0.126, h * 0.1316);2910 c.lineTo(w * 0.126, h * 0.267);2911 c.lineTo(w * 0.378, h * 0.4023);2912 c.lineTo(w * 0.5, h * 0.6015);2913 c.lineTo(w * 0.5, h);2914 c.lineTo(0, h * 0.7331);2915 c.lineTo(0, h * 0.3346);2916 c.close();2917 c.moveTo(w * 0.874, h * 0.267);2918 c.lineTo(w * 0.874, h * 0.1316);2919 c.lineTo(w, h * 0.3308);2920 c.fill();2921 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 2922 c.begin();2923 c.moveTo(w * 0.5, h);2924 c.lineTo(w * 0.5, h * 0.6015);2925 c.lineTo(w * 0.622, h * 0.4023);2926 c.lineTo(w * 0.874, h * 0.267);2927 c.lineTo(w, h * 0.3308);2928 c.lineTo(w, h * 0.7331);2929 c.close();2930 c.fill();2931 2932 c.restore();2933 c.setFillColor('#ffffff');2934 c.setShadow(false);2935 c.begin();2936 c.moveTo(0, h * 0.6053);2937 c.lineTo(w * 0.5, h * 0.8722);2938 c.lineTo(w, h * 0.6053);2939 c.lineTo(w, h * 0.6278);2940 c.lineTo(w * 0.5, h * 0.8947);2941 c.lineTo(0, h * 0.6278);2942 c.close();2943 c.fill();2944 c.setLineJoin('round');2945 c.begin();2946 c.moveTo(w * 0.126, h * 0.1316);2947 c.lineTo(w * 0.126, h * 0.267);2948 c.lineTo(w * 0.378, h * 0.4023);2949 c.lineTo(w * 0.5, h * 0.6015);2950 c.lineTo(w * 0.622, h * 0.4023);2951 c.lineTo(w * 0.874, h * 0.267);2952 c.lineTo(w * 0.874, h * 0.1316);2953 c.moveTo(0, h * 0.3346);2954 c.lineTo(w * 0.126, h * 0.267);2955 c.moveTo(w * 0.5, h * 0.6015);2956 c.lineTo(w * 0.5, h);2957 c.moveTo(w, h * 0.3346);2958 c.lineTo(w * 0.87, h * 0.267);2959 c.moveTo(w * 0.378, h * 0.4023);2960 c.lineTo(w * 0.622, h * 0.4023);2961 c.stroke();2962 c.setStrokeWidth(2 * strokeWidth);2963 c.setStrokeColor('#292929');2964 c.begin();2965 c.moveTo(0, h * 0.7331);2966 c.lineTo(0, h * 0.3346);2967 c.lineTo(w * 0.126, h * 0.1316);2968 c.lineTo(w * 0.374, 0);2969 c.lineTo(w * 0.626, 0);2970 c.lineTo(w * 0.874, h * 0.1316);2971 c.lineTo(w, h * 0.3346);2972 c.lineTo(w, h * 0.7331);2973 c.lineTo(w * 0.5, h);2974 c.close();2975 c.stroke();2976};2977mxCellRenderer.registerShape(mxShapeAws3dRds.prototype.cst.RDS, mxShapeAws3dRds);2978//**********************************************************************************************************************************************************2979//Route 532980//**********************************************************************************************************************************************************2981/**2982* Extends mxShape.2983*/2984function mxShapeAws3dRoute53(bounds, fill, stroke, strokewidth)2985{2986 mxShape.call(this);2987 this.bounds = bounds;2988 this.fill = fill;2989 this.stroke = stroke;2990 this.strokewidth = (strokewidth != null) ? strokewidth : 1;2991};2992/**2993* Extends mxShape.2994*/2995mxUtils.extend(mxShapeAws3dRoute53, mxShape);2996mxShapeAws3dRoute53.prototype.cst = {2997 ROUTE_53 : 'mxgraph.aws3d.route53',2998 SHADING_COLORS : 'shadingCols'2999};3000/**3001* Function: paintVertexShape3002* 3003* Paints the vertex shape.3004*/3005mxShapeAws3dRoute53.prototype.paintVertexShape = function(c, x, y, w, h)3006{3007 c.translate(x, y);3008 3009 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3010 var strokeWidth1 = strokeWidth * w / 117;3011 var strokeWidth2 = strokeWidth * h /134.4;3012 3013 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3014 c.setStrokeWidth(strokeWidth);3015 3016 this.background(c, 0, 0, w, h, strokeWidth);3017 c.setShadow(false);3018 this.foreground(c, 0, 0, w, h, strokeWidth);3019};3020mxShapeAws3dRoute53.prototype.background = function(c, x, y, w, h, strokeWidth)3021{3022 c.save();3023 c.save();3024 c.setStrokeWidth(2 * strokeWidth);3025 c.setStrokeColor('#292929');3026 c.setLineJoin('round');3027 c.begin();3028 c.moveTo(0, h * 0.6994);3029 c.lineTo(0, h * 0.2009);3030 c.lineTo(w * 0.0427, h * 0.0781);3031 c.lineTo(w * 0.7974, 0);3032 c.lineTo(w, h * 0.1004);3033 c.lineTo(w, h * 0.5915);3034 c.lineTo(w * 0.8376, h * 0.9784);3035 c.lineTo(w * 0.5983, h);3036 c.close();3037 c.fillAndStroke();3038};3039mxShapeAws3dRoute53.prototype.foreground = function(c, x, y, w, h, strokeWidth)3040{3041 c.restore();3042 c.setShadow(false);3043 c.setFillColor('#000000');3044 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRoute53.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3045 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3046 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3047 3048 c.begin();3049 c.moveTo(0, h * 0.2009);3050 c.lineTo(w * 0.6009, h * 0.5007);3051 c.lineTo(w * 0.8376, h * 0.4799);3052 c.lineTo(w * 0.8376, h * 0.9784);3053 c.lineTo(w * 0.5966, h);3054 c.lineTo(0, h * 0.6979);3055 c.close();3056 c.fill();3057 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3058 c.begin();3059 c.moveTo(w * 0.8348, h * 0.4861);3060 c.lineTo(w * 0.9985, h * 0.0992);3061 c.lineTo(w, h * 0.5952);3062 c.lineTo(w * 0.8404, h * 0.9747);3063 c.close();3064 c.fill();3065 3066 c.restore();3067 c.setShadow(false);3068 c.setLineJoin('round');3069 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3070 c.setFillColor(strokeColor);3071 c.begin();3072 c.moveTo(w * 0.5855, h * 0.1079);3073 c.arcTo(w * 0.094, h * 0.0744, 0, 0, 0, w * 0.6863, h * 0.1548);3074 c.arcTo(w * 0.0855, h * 0.0446, 0, 0, 0, w * 0.7761, h * 0.2031);3075 c.lineTo(w * 0.7726, h * 0.2455);3076 c.arcTo(w * 0.0769, h * 0.0298, 0, 0, 0, w * 0.694, h * 0.2693);3077 c.arcTo(w * 0.0684, h * 0.0446, 0, 0, 1, w * 0.5897, h * 0.3051);3078 c.arcTo(w * 0.4274, h * 0.372, 0, 0, 0, w * 0.4573, h * 0.2753);3079 c.arcTo(w * 0.0855, h * 0.0744, 0, 0, 0, w * 0.4188, h * 0.2344);3080 c.lineTo(w * 0.3846, h * 0.2083);3081 c.arcTo(w * 0.0769, h * 0.0372, 0, 0, 1, w * 0.4103, h * 0.1525);3082 c.arcTo(w * 0.0855, h * 0.0409, 0, 0, 0, w * 0.4906, h * 0.1079);3083 c.close();3084 c.fill();3085 c.begin();3086 c.moveTo(0, h * 0.2009);3087 c.lineTo(w * 0.6009, h * 0.5007);3088 c.lineTo(w * 0.8376, h * 0.4799);3089 c.lineTo(w * 0.8376, h * 0.9784);3090 c.lineTo(w * 0.5966, h);3091 c.lineTo(0, h * 0.6979);3092 c.close();3093 c.moveTo(w * 0.8348, h * 0.4861);3094 c.lineTo(w * 0.9985, h * 0.0992);3095 c.lineTo(w, h * 0.5952);3096 c.lineTo(w * 0.8404, h * 0.9747);3097 c.close();3098 c.moveTo(w * 0.6009, h * 0.5007);3099 c.lineTo(w * 0.6009, h);3100 c.stroke();3101 c.setStrokeWidth(2 * strokeWidth);3102 c.setStrokeColor('#292929');3103 c.begin();3104 c.moveTo(0, h * 0.6994);3105 c.lineTo(0, h * 0.2009);3106 c.lineTo(w * 0.0427, h * 0.0781);3107 c.lineTo(w * 0.7974, 0);3108 c.lineTo(w, h * 0.1004);3109 c.lineTo(w, h * 0.5915);3110 c.lineTo(w * 0.8376, h * 0.9784);3111 c.lineTo(w * 0.5983, h);3112 c.close();3113 c.stroke();3114};3115mxCellRenderer.registerShape(mxShapeAws3dRoute53.prototype.cst.ROUTE_53, mxShapeAws3dRoute53);3116//**********************************************************************************************************************************************************3117//S3 Bucket3118//**********************************************************************************************************************************************************3119/**3120* Extends mxShape.3121*/3122function mxShapeAws3dS3Bucket(bounds, fill, stroke, strokewidth)3123{3124 mxShape.call(this);3125 this.bounds = bounds;3126 this.fill = fill;3127 this.stroke = stroke;3128 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3129};3130/**3131* Extends mxShape.3132*/3133mxUtils.extend(mxShapeAws3dS3Bucket, mxShape);3134mxShapeAws3dS3Bucket.prototype.cst = {3135 S3_BUCKET : 'mxgraph.aws3d.s3Bucket',3136 SHADING_COLORS : 'shadingCols'3137};3138/**3139* Function: paintVertexShape3140* 3141* Paints the vertex shape.3142*/3143mxShapeAws3dS3Bucket.prototype.paintVertexShape = function(c, x, y, w, h)3144{3145 c.translate(x, y);3146 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3147 var strokeWidth1 = strokeWidth * w / 61.5;3148 var strokeWidth2 = strokeWidth * h / 63.8;3149 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));3150 3151 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3152 c.setShadow(false);3153 c.setStrokeWidth(strokeWidth);3154 c.save();3155 c.save();3156 c.setStrokeWidth(2 * strokeWidth);3157 c.setStrokeColor('#292929');3158 c.setLineJoin('round');3159 if (isShadow == 1)3160 {3161 c.setShadow(true);3162 }3163 3164 c.begin();3165 c.moveTo(0, h * 0.2774);3166 c.lineTo(w * 0.5, 0);3167 c.lineTo(w, h * 0.2774);3168 c.lineTo(w * 0.7967, h * 0.8307);3169 c.lineTo(w * 0.5, h);3170 c.lineTo(w * 0.1951, h * 0.8307);3171 c.close();3172 c.fillAndStroke();3173 3174 c.restore();3175 c.setFillColor('#000000');3176 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3Bucket.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3177 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3178 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3179 3180 c.begin();3181 c.moveTo(0, h * 0.2774);3182 c.lineTo(w * 0.5, h * 0.5564);3183 c.lineTo(w * 0.5, h);3184 c.lineTo(w * 0.1984, h * 0.8307);3185 c.close();3186 c.fill();3187 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3188 c.begin();3189 c.moveTo(w * 0.5, h * 0.5533);3190 c.lineTo(w, h * 0.2774);3191 c.lineTo(w * 0.7967, h * 0.8307);3192 c.lineTo(w * 0.5, h);3193 c.close();3194 c.fill();3195 3196 c.restore();3197 c.setLineJoin('round');3198 3199 c.begin();3200 c.moveTo(0, h * 0.2774);3201 c.lineTo(w * 0.5, h * 0.5564);3202 c.lineTo(w, h * 0.2774);3203 c.stroke();3204 c.begin();3205 c.moveTo(w * 0.5, h * 0.5564);3206 c.lineTo(w * 0.5, h);3207 c.stroke();3208 c.setStrokeWidth(2 * strokeWidth);3209 c.setStrokeColor('#292929');3210 c.setLineJoin('round');3211 c.begin();3212 c.moveTo(0, h * 0.2774);3213 c.lineTo(w * 0.5008, 0);3214 c.lineTo(w, h * 0.2774);3215 c.lineTo(w * 0.7967, h * 0.8307);3216 c.lineTo(w * 0.5008, h);3217 c.lineTo(w * 0.1951, h * 0.8307);3218 c.close();3219 c.stroke();3220};3221mxCellRenderer.registerShape(mxShapeAws3dS3Bucket.prototype.cst.S3_BUCKET, mxShapeAws3dS3Bucket);3222//**********************************************************************************************************************************************************3223//S33224//**********************************************************************************************************************************************************3225/**3226* Extends mxShape.3227*/3228function mxShapeAws3dS3(bounds, fill, stroke, strokewidth)3229{3230 mxShape.call(this);3231 this.bounds = bounds;3232 this.fill = fill;3233 this.stroke = stroke;3234 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3235};3236/**3237* Extends mxShape.3238*/3239mxUtils.extend(mxShapeAws3dS3, mxShape);3240mxShapeAws3dS3.prototype.cst = {3241 S3 : 'mxgraph.aws3d.s3',3242 SHADING_COLORS : 'shadingCols'3243};3244/**3245* Function: paintVertexShape3246* 3247* Paints the vertex shape.3248*/3249mxShapeAws3dS3.prototype.paintVertexShape = function(c, x, y, w, h)3250{3251 c.translate(x, y);3252 3253 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3254 var strokeWidth1 = strokeWidth * w / 231.5;3255 var strokeWidth2 = strokeWidth * h / 239;3256 3257 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3258 this.background(c, 0, 0, w, h, strokeWidth);3259 c.setShadow(false);3260 this.foreground(c, 0, 0, w, h, strokeWidth);3261};3262mxShapeAws3dS3.prototype.background = function(c, x, y, w, h, strokeWidth)3263{3264 c.setStrokeWidth(strokeWidth);3265 c.save();3266 c.save();3267 c.setStrokeWidth(2 * strokeWidth);3268 c.setStrokeColor('#292929');3269 c.setLineJoin('round');3270 c.begin();3271 c.moveTo(0, h * 0.7782);3272 c.lineTo(0, h * 0.3406);3273 c.lineTo(w * 0.5974, 0);3274 c.lineTo(w, h * 0.2218);3275 c.lineTo(w, h * 0.6674);3276 c.lineTo(w * 0.3991, h);3277 c.close();3278 c.fillAndStroke();3279};3280mxShapeAws3dS3.prototype.foreground = function(c, x, y, w, h, strokeWidth)3281{3282 c.restore();3283 c.setShadow(false);3284 c.setFillColor('#000000');3285 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3286 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3287 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3288 3289 c.begin();3290 c.moveTo(0, h * 0.3406);3291 c.lineTo(w * 0.3991, h * 0.5548);3292 c.lineTo(w * 0.3991, h);3293 c.lineTo(0, h * 0.7782);3294 c.close();3295 c.fill();3296 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3297 c.begin();3298 c.moveTo(w * 0.3991, h * 0.5548);3299 c.lineTo(w, h * 0.2218);3300 c.lineTo(w, h * 0.6661);3301 c.lineTo(w * 0.3991, h);3302 c.close();3303 c.fill();3304 3305 c.restore();3306 c.setShadow(false);3307 c.setLineJoin('round');3308 3309 c.begin();3310 c.moveTo(0, h * 0.3406);3311 c.lineTo(w * 0.3991, h * 0.5548);3312 c.lineTo(w, h * 0.2218);3313 c.moveTo(w * 0.3991, h * 0.5548);3314 c.lineTo(w * 0.3991, h);3315 c.moveTo(w * 0.3991, h * 0.3335);3316 c.lineTo(w * 0.2009, h * 0.448);3317 c.lineTo(w * 0.2009, h * 0.8891);3318 c.moveTo(w * 0.5983, h * 0.2209);3319 c.lineTo(w * 0.7948, h * 0.1109);3320 c.moveTo(w * 0.2022, h * 0.2218);3321 c.lineTo(w * 0.5991, h * 0.4448);3322 c.lineTo(w * 0.5991, h * 0.8891);3323 c.moveTo(w * 0.4004, h * 0.1117);3324 c.lineTo(w * 0.7978, h * 0.3335);3325 c.lineTo(w * 0.7978, h * 0.7791);3326 c.stroke();3327 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3328 c.setFillColor(strokeColor);3329 c.begin();3330 c.moveTo(w * 0.4773, h * 0.2155);3331 c.arcTo(w * 0.0086, h * 0.0046, 0, 0, 1, w * 0.4903, h * 0.2096);3332 c.arcTo(w * 0.2808, h * 0.272, 0, 0, 1, w * 0.6004, h * 0.2619);3333 c.arcTo(w * 0.108, h * 0.105, 0, 0, 1, w * 0.6177, h * 0.277);3334 c.arcTo(w * 0.0065, h * 0.0063, 0, 0, 1, w * 0.6099, h * 0.2879);3335 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.5378, h * 0.2607);3336 c.arcTo(w * 0.216, h * 0.2092, 0, 0, 1, w * 0.4773, h * 0.2155);3337 c.close();3338 c.fill();3339 c.begin();3340 c.moveTo(w * 0.4687, h * 0.2138);3341 c.arcTo(w * 0.1512, h * 0.1464, 0, 0, 0, w * 0.4838, h * 0.2343);3342 c.arcTo(w * 0.2376, h * 0.2301, 0, 0, 0, w * 0.5529, h * 0.2774);3343 c.arcTo(w * 0.1728, h * 0.1674, 0, 0, 0, w * 0.6091, h * 0.2954);3344 c.lineTo(w * 0.4946, h * 0.3339);3345 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.4549, h * 0.3205);3346 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.419, h * 0.3004);3347 c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.3965, h * 0.2795);3348 c.close();3349 c.fill();3350 c.setStrokeWidth(2 * strokeWidth);3351 c.setStrokeColor('#292929');3352 c.setLineJoin('round');3353 c.begin();3354 c.moveTo(0, h * 0.7782);3355 c.lineTo(0, h * 0.3406);3356 c.lineTo(w * 0.5974, 0);3357 c.lineTo(w, h * 0.2218);3358 c.lineTo(w, h * 0.6674);3359 c.lineTo(w * 0.3991, h);3360 c.close();3361 c.stroke();3362};3363mxCellRenderer.registerShape(mxShapeAws3dS3.prototype.cst.S3, mxShapeAws3dS3);3364//**********************************************************************************************************************************************************3365//SimpleDB3366//**********************************************************************************************************************************************************3367/**3368* Extends mxShape.3369*/3370function mxShapeAws3dSimpleDB(bounds, fill, stroke, strokewidth)3371{3372 mxShape.call(this);3373 this.bounds = bounds;3374 this.fill = fill;3375 this.stroke = stroke;3376 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3377};3378/**3379* Extends mxShape.3380*/3381mxUtils.extend(mxShapeAws3dSimpleDB, mxShape);3382mxShapeAws3dSimpleDB.prototype.cst = {3383 SIMPLE_DB : 'mxgraph.aws3d.simpleDb',3384 SHADING_COLORS : 'shadingCols'3385};3386/**3387* Function: paintVertexShape3388* 3389* Paints the vertex shape.3390*/3391mxShapeAws3dSimpleDB.prototype.paintVertexShape = function(c, x, y, w, h)3392{3393 c.translate(x, y);3394 3395 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3396 var strokeWidth1 = strokeWidth * w / 123;3397 var strokeWidth2 = strokeWidth * h /133;3398 3399 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3400 c.setStrokeWidth(strokeWidth);3401 3402 this.background(c, 0, 0, w, h, strokeWidth);3403 c.setShadow(false);3404 this.foreground(c, 0, 0, w, h, strokeWidth);3405};3406mxShapeAws3dSimpleDB.prototype.background = function(c, x, y, w, h, strokeWidth)3407{3408 c.save();3409 c.save();3410 c.save();3411 c.setStrokeWidth(2 * strokeWidth);3412 c.setStrokeColor('#292929');3413 c.setLineJoin('round');3414 c.begin();3415 c.moveTo(0, h * 0.7331);3416 c.lineTo(0, h * 0.3346);3417 c.lineTo(w * 0.126, h * 0.1316);3418 c.lineTo(w * 0.374, 0);3419 c.lineTo(w * 0.626, 0);3420 c.lineTo(w * 0.874, h * 0.1316);3421 c.lineTo(w, h * 0.3346);3422 c.lineTo(w, h * 0.7331);3423 c.lineTo(w * 0.5, h);3424 c.close();3425 c.fillAndStroke();3426};3427mxShapeAws3dSimpleDB.prototype.foreground = function(c, x, y, w, h, strokeWidth)3428{3429 c.restore();3430 c.setShadow(false);3431 c.setFillColor('#000000');3432 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3433 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3434 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3435 3436 c.begin();3437 c.moveTo(w * 0.126, h * 0.1316);3438 c.lineTo(w * 0.126, h * 0.267);3439 c.lineTo(w * 0.378, h * 0.4023);3440 c.lineTo(w * 0.5, h * 0.6015);3441 c.lineTo(w * 0.5, h);3442 c.lineTo(0, h * 0.7331);3443 c.lineTo(0, h * 0.3346);3444 c.close();3445 c.moveTo(w * 0.874, h * 0.267);3446 c.lineTo(w * 0.874, h * 0.1316);3447 c.lineTo(w, h * 0.3308);3448 c.fill();3449 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3450 c.begin();3451 c.moveTo(w * 0.5, h);3452 c.lineTo(w * 0.5, h * 0.6015);3453 c.lineTo(w * 0.622, h * 0.4023);3454 c.lineTo(w * 0.874, h * 0.267);3455 c.lineTo(w, h * 0.3308);3456 c.lineTo(w, h * 0.7331);3457 c.close();3458 c.fill();3459 3460 c.restore();3461 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3462 c.setFillColor(strokeColor);3463 c.setShadow(false);3464 c.begin();3465 c.moveTo(w * 0.1821, h * 0.182);3466 c.lineTo(w * 0.4659, h * 0.0308);3467 c.lineTo(w * 0.822, h * 0.2218);3468 c.lineTo(w * 0.539, h * 0.3714);3469 c.close();3470 c.fill();3471 3472 c.setLineJoin('round');3473 c.begin();3474 c.moveTo(w * 0.126, h * 0.1316);3475 c.lineTo(w * 0.126, h * 0.267);3476 c.lineTo(w * 0.378, h * 0.4023);3477 c.lineTo(w * 0.5, h * 0.6015);3478 c.lineTo(w * 0.622, h * 0.4023);3479 c.lineTo(w * 0.874, h * 0.267);3480 c.lineTo(w * 0.874, h * 0.1316);3481 c.moveTo(0, h * 0.3346);3482 c.lineTo(w * 0.126, h * 0.267);3483 c.moveTo(w * 0.5, h * 0.6015);3484 c.lineTo(w * 0.5, h);3485 c.moveTo(w, h * 0.3346);3486 c.lineTo(w * 0.87, h * 0.267);3487 c.moveTo(w * 0.378, h * 0.4023);3488 c.lineTo(w * 0.622, h * 0.4023);3489 c.stroke();3490 c.restore();3491 c.setShadow(false);3492 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');3493 c.setStrokeColor(fillColor);3494 c.setStrokeWidth(2.2 * strokeWidth);3495 c.begin();3496 c.moveTo(w * 0.2382, h * 0.2218);3497 c.lineTo(w * 0.5415, h * 0.0602);3498 c.moveTo(w * 0.3821, h * 0.0564);3499 c.lineTo(w * 0.7737, h * 0.2656);3500 3501 c.moveTo(w * 0.2967, h * 0.0915);3502 c.lineTo(w * 0.7114, h * 0.312);3503 3504 c.moveTo(w * 0.2209, h * 0.1316);3505 c.lineTo(w * 0.6179, h * 0.3434);3506 c.stroke();3507 3508 c.setStrokeWidth(2 * strokeWidth);3509 c.setStrokeColor('#292929');3510 c.begin();3511 c.moveTo(0, h * 0.7331);3512 c.lineTo(0, h * 0.3346);3513 c.lineTo(w * 0.126, h * 0.1316);3514 c.lineTo(w * 0.374, 0);3515 c.lineTo(w * 0.626, 0);3516 c.lineTo(w * 0.874, h * 0.1316);3517 c.lineTo(w, h * 0.3346);3518 c.lineTo(w, h * 0.7331);3519 c.lineTo(w * 0.5, h);3520 c.close();3521 c.stroke();3522};3523mxCellRenderer.registerShape(mxShapeAws3dSimpleDB.prototype.cst.SIMPLE_DB, mxShapeAws3dSimpleDB);3524//**********************************************************************************************************************************************************3525//SQS3526//**********************************************************************************************************************************************************3527/**3528* Extends mxShape.3529*/3530function mxShapeAws3dSqs(bounds, fill, stroke, strokewidth)3531{3532 mxShape.call(this);3533 this.bounds = bounds;3534 this.fill = fill;3535 this.stroke = stroke;3536 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3537};3538/**3539* Extends mxShape.3540*/3541mxUtils.extend(mxShapeAws3dSqs, mxShape);3542mxShapeAws3dSqs.prototype.cst = {3543 SQS : 'mxgraph.aws3d.sqs',3544 SHADING_COLORS : 'shadingCols'3545};3546/**3547* Function: paintVertexShape3548* 3549* Paints the vertex shape.3550*/3551mxShapeAws3dSqs.prototype.paintVertexShape = function(c, x, y, w, h)3552{3553 c.translate(x, y);3554 3555 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3556 var strokeWidth1 = strokeWidth * w / 184;3557 var strokeWidth2 = strokeWidth * h / 212.75;3558 3559 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3560 this.background(c, 0, 0, w, h, strokeWidth);3561 c.setShadow(false);3562 this.foreground(c, 0, 0, w, h, strokeWidth);3563};3564mxShapeAws3dSqs.prototype.background = function(c, x, y, w, h, strokeWidth)3565{3566 c.setStrokeWidth(strokeWidth);3567 c.save();3568 c.save();3569 c.setStrokeWidth(2 * strokeWidth);3570 c.setStrokeColor('#292929');3571 c.setLineJoin('round');3572 c.begin();3573 c.moveTo(0, h * 0.7485);3574 c.lineTo(0, h * 0.584);3575 c.lineTo(w * 0.1658, h * 0.1666);3576 c.lineTo(w * 0.5, 0);3577 c.lineTo(w * 0.8337, h * 0.1666);3578 c.lineTo(w, h * 0.584);3579 c.lineTo(w, h * 0.7485);3580 c.lineTo(w * 0.5, h);3581 c.close();3582 c.fillAndStroke();3583};3584mxShapeAws3dSqs.prototype.foreground = function(c, x, y, w, h, strokeWidth)3585{3586 c.restore();3587 c.setShadow(false);3588 c.setFillColor('#000000');3589 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3590 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3591 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3592 3593 c.begin();3594 c.moveTo(w * 0.1658, h * 0.1671);3595 c.lineTo(w * 0.5, h * 0.334);3596 c.lineTo(w * 0.5, h);3597 c.lineTo(0, h * 0.7485);3598 c.lineTo(0, h * 0.584);3599 c.close();3600 c.fill();3601 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3602 c.begin();3603 c.moveTo(w * 0.5, h * 0.3344);3604 c.lineTo(w * 0.8332, h * 0.1671);3605 c.lineTo(w, h * 0.584);3606 c.lineTo(w, h * 0.7509);3607 c.lineTo(w * 0.5, h);3608 c.close();3609 c.fill();3610 3611 c.restore();3612 c.setShadow(false);3613 c.setLineJoin('round');3614 3615 c.begin();3616 c.moveTo(w * 0.6674, h * 0.0844);3617 c.lineTo(w * 0.3337, h * 0.2512);3618 c.lineTo(w * 0.25, h * 0.7109);3619 c.lineTo(w * 0.25, h * 0.8736);3620 c.moveTo(w * 0.3326, h * 0.0839);3621 c.lineTo(w * 0.6674, h * 0.2512);3622 c.lineTo(w * 0.75, h * 0.7053);3623 c.lineTo(w * 0.75, h * 0.874);3624 c.moveTo(0, h * 0.584);3625 c.lineTo(w * 0.5, h * 0.8331);3626 c.lineTo(w, h * 0.584);3627 c.moveTo(w * 0.1658, h * 0.1671);3628 c.lineTo(w * 0.5, h * 0.334);3629 c.lineTo(w * 0.8332, h * 0.1671);3630 c.moveTo(w * 0.5, h * 0.334);3631 c.lineTo(w * 0.5, h);3632 c.stroke();3633 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3634 c.setFillColor(strokeColor);3635 c.begin();3636 c.moveTo(w * 0.3337, h * 0.1511);3637 c.lineTo(w * 0.4668, h * 0.0848);3638 c.lineTo(w * 0.6663, h * 0.184);3639 c.lineTo(w * 0.5337, h * 0.2503);3640 c.close();3641 c.fill();3642 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');3643 c.setFillColor(fillColor);3644 c.begin();3645 c.moveTo(w * 0.3902, h * 0.153);3646 c.lineTo(w * 0.4701, h * 0.113);3647 c.lineTo(w * 0.4701, h * 0.153);3648 c.close();3649 c.moveTo(w * 0.4402, h * 0.1784);3650 c.lineTo(w * 0.5196, h * 0.1384);3651 c.lineTo(w * 0.5196, h * 0.1784);3652 c.close();3653 c.moveTo(w * 0.4908, h * 0.2033);3654 c.lineTo(w * 0.5701, h * 0.1633);3655 c.lineTo(w * 0.5701, h * 0.2033);3656 c.close();3657 c.fill();3658 c.setStrokeWidth(2 * strokeWidth);3659 c.setStrokeColor('#292929');3660 c.setLineJoin('round');3661 c.begin();3662 c.moveTo(0, h * 0.7485);3663 c.lineTo(0, h * 0.584);3664 c.lineTo(w * 0.1658, h * 0.1666);3665 c.lineTo(w * 0.5, 0);3666 c.lineTo(w * 0.8337, h * 0.1666);3667 c.lineTo(w, h * 0.584);3668 c.lineTo(w, h * 0.7485);3669 c.lineTo(w * 0.5, h);3670 c.close();3671 c.stroke();3672};3673mxCellRenderer.registerShape(mxShapeAws3dSqs.prototype.cst.SQS, mxShapeAws3dSqs);3674//**********************************************************************************************************************************************************3675//VPC Gateway3676//**********************************************************************************************************************************************************3677/**3678* Extends mxShape.3679*/3680function mxShapeAws3dVpcGateway(bounds, fill, stroke, strokewidth)3681{3682 mxShape.call(this);3683 this.bounds = bounds;3684 this.fill = fill;3685 this.stroke = stroke;3686 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3687};3688/**3689* Extends mxShape.3690*/3691mxUtils.extend(mxShapeAws3dVpcGateway, mxShape);3692mxShapeAws3dVpcGateway.prototype.cst = {3693 VPC_GATEWAY : 'mxgraph.aws3d.vpcGateway',3694 SHADING_COLORS : 'shadingCols'3695};3696/**3697* Function: paintVertexShape3698* 3699* Paints the vertex shape.3700*/3701mxShapeAws3dVpcGateway.prototype.paintVertexShape = function(c, x, y, w, h)3702{3703 c.translate(x, y);3704 3705 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3706 var strokeWidth1 = strokeWidth * w / 116.7;3707 var strokeWidth2 = strokeWidth * h / 102.8;3708 3709 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3710 this.background(c, 0, 0, w, h, strokeWidth);3711 c.setShadow(false);3712 this.foreground(c, 0, 0, w, h, strokeWidth);3713};3714mxShapeAws3dVpcGateway.prototype.background = function(c, x, y, w, h, strokeWidth)3715{3716 c.setStrokeWidth(strokeWidth);3717 c.save();3718 c.save();3719 c.save();3720 c.save();3721 c.save();3722 c.setStrokeWidth(2 * strokeWidth);3723 c.setStrokeColor('#292929');3724 c.setLineJoin('round');3725 c.begin();3726 c.moveTo(w * 0.5801, h * 0.5447);3727 c.lineTo(w * 0.5801, h * 0.035);3728 c.lineTo(w * 0.1054, 0);3729 c.lineTo(0, h * 0.0691);3730 c.lineTo(0, h * 0.4134);3731 c.lineTo(w * 0.3188, h * 0.7247);3732 c.close();3733 c.fillAndStroke();3734 c.restore();3735 c.save();3736 c.setShadow(false);3737 c.setFillColor('#000000');3738 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3739 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3740 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3741 c.begin();3742 c.moveTo(w * 0.5801, h * 0.5447);3743 c.lineTo(w * 0.5801, h * 0.035);3744 c.lineTo(w * 0.3162, h * 0.2072);3745 c.lineTo(w * 0.3162, h * 0.7247);3746 c.close();3747 c.fill();3748 3749 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3750 c.begin();3751 c.moveTo(w * 0.3162, h * 0.2072);3752 c.lineTo(0, h * 0.0691);3753 c.lineTo(0, h * 0.4134);3754 c.lineTo(w * 0.3162, h * 0.7247);3755 c.close();3756 c.fill();3757 c.restore();3758 c.setShadow(false);3759 c.begin();3760 c.moveTo(w * 0.5801, h * 0.5447);3761 c.lineTo(w * 0.5801, h * 0.035);3762 c.lineTo(w * 0.3162, h * 0.2072);3763 c.lineTo(w * 0.3162, h * 0.7247);3764 c.close();3765 c.stroke();3766 c.restore();3767 c.setLineJoin('round');3768 c.setShadow(false);3769 c.begin();3770 c.moveTo(w * 0.3162, h * 0.2072);3771 c.lineTo(0, h * 0.0691);3772 c.lineTo(0, h * 0.4134);3773 c.lineTo(w * 0.3162, h * 0.7247);3774 c.close();3775 c.stroke();3776 c.setStrokeWidth(2 * strokeWidth);3777 c.setStrokeColor('#292929');3778 3779 c.begin();3780 c.moveTo(w * 0.5801, h * 0.5447);3781 c.lineTo(w * 0.5801, h * 0.035);3782 c.lineTo(w * 0.1054, 0);3783 c.lineTo(0, h * 0.0691);3784 c.lineTo(0, h * 0.4134);3785 c.lineTo(w * 0.3188, h * 0.7247);3786 c.close();3787 c.stroke();3788 c.restore();3789 c.setStrokeWidth(2 * strokeWidth);3790 c.setStrokeColor('#292929');3791 c.setLineJoin('round');3792 c.begin();3793 c.moveTo(w, h * 0.929);3794 c.lineTo(w, h * 0.5866);3795 c.lineTo(w * 0.6829, h * 0.1031);3796 c.lineTo(w * 0.4216, h * 0.2753);3797 c.lineTo(w * 0.4216, h * 0.7928);3798 c.lineTo(w * 0.8946, h);3799 c.close();3800 c.fillAndStroke();3801};3802mxShapeAws3dVpcGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth)3803{3804 c.restore();3805 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3806 c.setShadow(false);3807 c.setLineJoin('round');3808 c.setFillColor('#000000');3809 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3810 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3811 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3812 3813 c.begin();3814 c.moveTo(w, h * 0.929);3815 c.lineTo(w, h * 0.5866);3816 c.lineTo(w * 0.8946, h * 0.6537);3817 c.lineTo(w * 0.8946, h);3818 c.close();3819 c.fill();3820 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3821 c.begin();3822 c.moveTo(w * 0.8946, h);3823 c.lineTo(w * 0.8946, h * 0.6537);3824 c.lineTo(w * 0.4216, h * 0.2753);3825 c.lineTo(w * 0.4216, h * 0.7928);3826 c.close();3827 c.fill();3828 3829 c.restore();3830 c.setShadow(false);3831 c.setLineJoin('round');3832 3833 c.begin();3834 c.moveTo(w, h * 0.929);3835 c.lineTo(w, h * 0.5866);3836 c.lineTo(w * 0.8946, h * 0.6537);3837 c.lineTo(w * 0.8946, h);3838 c.close();3839 c.stroke();3840 c.begin();3841 c.moveTo(w * 0.8946, h);3842 c.lineTo(w * 0.8946, h * 0.6537);3843 c.lineTo(w * 0.4216, h * 0.2753);3844 c.lineTo(w * 0.4216, h * 0.7928);3845 c.close();3846 c.stroke();3847 3848 c.setStrokeWidth(2 * strokeWidth);3849 c.setStrokeColor('#292929');3850 c.setLineJoin('round');3851 c.begin();3852 c.moveTo(w, h * 0.929);3853 c.lineTo(w, h * 0.5866);3854 c.lineTo(w * 0.6829, h * 0.1031);3855 c.lineTo(w * 0.4216, h * 0.2753);3856 c.lineTo(w * 0.4216, h * 0.7928);3857 c.lineTo(w * 0.8946, h);3858 c.close();3859 c.stroke();3860 c.setFillColor(strokeColor);3861 c.begin();3862 c.moveTo(w * 0.5587, h * 0.7743);3863 c.lineTo(w * 0.5587, h * 0.6274);3864 c.lineTo(w * 0.5775, h * 0.6342);3865 c.lineTo(w * 0.5775, h * 0.57);3866 c.arcTo(w * 0.0428, h * 0.0486, 0, 0, 1, w * 0.6058, h * 0.5253);3867 c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.6564, h * 0.5447);3868 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.6847, h * 0.607);3869 c.lineTo(w * 0.6847, h * 0.6877);3870 c.lineTo(w * 0.7001, h * 0.6946);3871 c.lineTo(w * 0.7001, h * 0.8405);3872 c.close();3873 c.moveTo(w * 0.6564, h * 0.6741);3874 c.lineTo(w * 0.6564, h * 0.6177);3875 c.arcTo(w * 0.06, h * 0.0681, 0, 0, 0, w * 0.6392, h * 0.57);3876 c.arcTo(w * 0.0343, h * 0.0389, 0, 0, 0, w * 0.6195, h * 0.5574);3877 c.arcTo(w * 0.0111, h * 0.0126, 0, 0, 0, w * 0.6058, h * 0.5691);3878 c.lineTo(w * 0.6058, h * 0.6498);3879 c.close();3880 c.fill();3881};3882mxCellRenderer.registerShape(mxShapeAws3dVpcGateway.prototype.cst.VPC_GATEWAY, mxShapeAws3dVpcGateway);3883//**********************************************************************************************************************************************************3884//Web Server3885//**********************************************************************************************************************************************************3886/**3887* Extends mxShape.3888*/3889function mxShapeAws3dWebServer(bounds, fill, stroke, strokewidth)3890{3891 mxShape.call(this);3892 this.bounds = bounds;3893 this.fill = fill;3894 this.stroke = stroke;3895 this.strokewidth = (strokewidth != null) ? strokewidth : 1;3896};3897/**3898* Extends mxShape.3899*/3900mxUtils.extend(mxShapeAws3dWebServer, mxShape);3901mxShapeAws3dWebServer.prototype.cst = {3902 WEB_SERVER : 'mxgraph.aws3d.webServer',3903 SHADING_COLORS : 'shadingCols'3904};3905/**3906* Function: paintVertexShape3907* 3908* Paints the vertex shape.3909*/3910mxShapeAws3dWebServer.prototype.paintVertexShape = function(c, x, y, w, h)3911{3912 c.translate(x, y);3913 3914 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));3915 var strokeWidth1 = strokeWidth * w / 123;3916 var strokeWidth2 = strokeWidth * h / 106;3917 3918 strokeWidth = Math.min(strokeWidth1, strokeWidth2);3919 this.background(c, 0, 0, w, h, strokeWidth);3920 c.setShadow(false);3921 this.foreground(c, 0, 0, w, h, strokeWidth);3922};3923mxShapeAws3dWebServer.prototype.background = function(c, x, y, w, h, strokeWidth)3924{3925 c.setStrokeWidth(strokeWidth);3926 c.save();3927 c.save();3928 c.setStrokeWidth(2 * strokeWidth);3929 c.setStrokeColor('#292929');3930 c.setLineJoin('round');3931 c.begin();3932 c.moveTo(0, h * 0.6651);3933 c.lineTo(0, h * 0.3349);3934 c.lineTo(w * 0.5, 0);3935 c.lineTo(w, h * 0.3349);3936 c.lineTo(w, h * 0.6651);3937 c.lineTo(w * 0.5, h);3938 c.close();3939 c.fillAndStroke();3940};3941mxShapeAws3dWebServer.prototype.foreground = function(c, x, y, w, h, strokeWidth)3942{3943 c.restore();3944 c.setShadow(false);3945 c.setFillColor('#000000');3946 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWebServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');3947 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');3948 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 3949 3950 c.begin();3951 c.moveTo(0, h * 0.3349);3952 c.lineTo(w * 0.5, h * 0.6651);3953 c.lineTo(w * 0.5, h);3954 c.lineTo(0, h * 0.6651);3955 c.close();3956 c.fill();3957 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 3958 c.begin();3959 c.moveTo(w * 0.5, h * 0.6651);3960 c.lineTo(w, h * 0.3349);3961 c.lineTo(w, h * 0.6651);3962 c.lineTo(w * 0.5, h);3963 c.close();3964 c.fill();3965 3966 c.restore();3967 c.setShadow(false);3968 c.setLineJoin('round');3969 3970 c.begin();3971 c.moveTo(0, h * 0.3349);3972 c.lineTo(w * 0.5, h * 0.6651);3973 c.lineTo(w * 0.5, h);3974 c.lineTo(0, h * 0.6651);3975 c.close();3976 c.stroke();3977 c.begin();3978 c.moveTo(w * 0.5, h * 0.6651);3979 c.lineTo(w, h * 0.3349);3980 c.lineTo(w, h * 0.6651);3981 c.lineTo(w * 0.5, h);3982 c.close();3983 c.stroke();3984 3985 c.setLineJoin('miter');3986 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');3987 c.setFillColor(strokeColor);3988 c.begin();3989 c.moveTo(w * 0.374, h * 0.5189);3990 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.374, h * 0.4858);3991 c.lineTo(w * 0.4797, h * 0.4151);3992 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.5203, h * 0.4151);3993 c.lineTo(w * 0.626, h * 0.4858);3994 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.626, h * 0.516);3995 c.lineTo(w * 0.5203, h * 0.5868);3996 c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.4797, h * 0.5868);3997 c.close();3998 c.fill();3999 c.setStrokeWidth(2 * strokeWidth);4000 c.setStrokeColor('#292929');4001 c.setLineJoin('round');4002 c.begin();4003 c.moveTo(0, h * 0.6651);4004 c.lineTo(0, h * 0.3349);4005 c.lineTo(w * 0.5, 0);4006 c.lineTo(w, h * 0.3349);4007 c.lineTo(w, h * 0.6651);4008 c.lineTo(w * 0.5, h);4009 c.close();4010 c.stroke();4011};4012mxCellRenderer.registerShape(mxShapeAws3dWebServer.prototype.cst.WEB_SERVER, mxShapeAws3dWebServer);4013//**********************************************************************************************************************************************************4014//DynamoDB4015//**********************************************************************************************************************************************************4016/**4017* Extends mxShape.4018*/4019function mxShapeAws3dDynamoDB(bounds, fill, stroke, strokewidth)4020{4021 mxShape.call(this);4022 this.bounds = bounds;4023 this.fill = fill;4024 this.stroke = stroke;4025 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4026};4027/**4028* Extends mxShape.4029*/4030mxUtils.extend(mxShapeAws3dDynamoDB, mxShape);4031mxShapeAws3dDynamoDB.prototype.cst = {4032 DYNAMO_DB : 'mxgraph.aws3d.dynamoDb',4033 SHADING_COLORS : 'shadingCols'4034};4035/**4036* Function: paintVertexShape4037* 4038* Paints the vertex shape.4039*/4040mxShapeAws3dDynamoDB.prototype.paintVertexShape = function(c, x, y, w, h)4041{4042 c.translate(x, y);4043 4044 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4045 var strokeWidth1 = strokeWidth * w / 181.5;4046 var strokeWidth2 = strokeWidth * h / 210;4047 4048 strokeWidth = Math.min(strokeWidth1, strokeWidth2);4049 this.background(c, 0, 0, w, h, strokeWidth);4050 c.setShadow(false);4051 this.foreground(c, 0, 0, w, h, strokeWidth);4052};4053mxShapeAws3dDynamoDB.prototype.background = function(c, x, y, w, h, strokeWidth)4054{4055 c.setStrokeWidth(strokeWidth);4056 c.save();4057 c.save();4058 c.setStrokeWidth(2 * strokeWidth);4059 c.setStrokeColor('#292929');4060 c.setLineJoin('round');4061 c.begin();4062 c.moveTo(0, h * 0.8333);4063 c.lineTo(0, h * 0.1667);4064 c.lineTo(w * 0.3333, h * 0.0014);4065 c.lineTo(w * 0.4986, h * 0.1667);4066 c.lineTo(w * 0.6639, 0);4067 c.lineTo(w, h * 0.169);4068 c.lineTo(w, h * 0.8333);4069 c.lineTo(w * 0.6667, h);4070 c.lineTo(w * 0.5014, h * 0.9162);4071 c.lineTo(w * 0.3333, h);4072 c.close();4073 c.fillAndStroke();4074};4075mxShapeAws3dDynamoDB.prototype.foreground = function(c, x, y, w, h, strokeWidth)4076{4077 c.restore();4078 c.setShadow(false);4079 c.setFillColor('#000000');4080 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4081 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4082 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4083 4084 c.begin();4085 c.moveTo(w * 0.168, h * 0.3333);4086 c.lineTo(0, h * 0.3333);4087 c.lineTo(w * 0.3333, h * 0.5);4088 c.lineTo(w * 0.3333, h);4089 c.lineTo(0, h * 0.8333);4090 c.lineTo(0, h * 0.1714);4091 c.close();4092 c.moveTo(w * 0.4986, h * 0.1667);4093 c.lineTo(w * 0.6667, 0);4094 c.lineTo(w, h * 0.169);4095 c.lineTo(w * 0.832, h * 0.3348);//4096 c.lineTo(w, h * 0.3333);4097 c.lineTo(w * 0.6667, h * 0.5);4098 c.lineTo(w * 0.5014, h * 0.5);4099 c.lineTo(w * 0.832, h * 0.3348);4100 c.fill();4101 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4102 c.begin();4103 c.moveTo(w * 0.3333, h * 0.5);4104 c.lineTo(w * 0.4986, h * 0.5);4105 c.lineTo(w * 0.4986, h * 0.9162);4106 c.lineTo(w * 0.3333, h);4107 c.close();4108 c.moveTo(w * 0.6667, h);4109 c.lineTo(w * 0.6667, h * 0.5);4110 c.lineTo(w, h * 0.3333);4111 c.lineTo(w * 0.832, h * 0.3348);4112 c.lineTo(w, h * 0.169);4113 c.lineTo(w, h * 0.831);4114 c.close();4115 c.fill();4116 4117 c.restore();4118 c.setShadow(false);4119 c.setLineJoin('round');4120 4121 c.begin();4122 c.moveTo(w * 0.168, h * 0.3333);4123 c.lineTo(0, h * 0.3333);4124 c.lineTo(w * 0.3333, h * 0.5);4125 c.lineTo(w * 0.3333, h);4126 c.lineTo(0, h * 0.8333);4127 c.lineTo(0, h * 0.1714);4128 c.close();4129 c.moveTo(w * 0.4986, h * 0.1667);4130 c.lineTo(w * 0.6667, 0);4131 c.lineTo(w, h * 0.169);4132 c.lineTo(w * 0.832, h * 0.3348);4133 c.lineTo(w, h * 0.3333);4134 c.lineTo(w * 0.6667, h * 0.5);4135 c.lineTo(w * 0.5014, h * 0.5);4136 c.lineTo(w * 0.832, h * 0.3348);4137 c.close();4138 c.moveTo(w * 0.3333, h * 0.5);4139 c.lineTo(w * 0.4986, h * 0.5);4140 c.lineTo(w * 0.4986, h * 0.9162);4141 c.lineTo(w * 0.3333, h);4142 c.close();4143 c.moveTo(w * 0.6667, h);4144 c.lineTo(w * 0.6667, h * 0.5);4145 c.lineTo(w, h * 0.3333);4146 c.lineTo(w, h * 0.831);4147 c.close();4148 c.moveTo(w * 0.168, h * 0.3333);4149 c.lineTo(w * 0.5, h * 0.1667);4150 c.moveTo(w * 0.168, h * 0.3333);4151 c.lineTo(w * 0.5014, h * 0.5);4152 c.stroke();4153 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4154 c.setFillColor(strokeColor);4155 c.begin();4156 c.moveTo(w * 0.4876, h * 0.2262);4157 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5647, h * 0.25);4158 c.arcTo(w * 0.4407, h * 0.381, 0, 0, 1, w * 0.6419, h * 0.2905);4159 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.6799, h * 0.32);4160 c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.6634, h * 0.3314);4161 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5978, h * 0.3119);4162 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.508, h * 0.2667);4163 c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.4711, h * 0.2343);4164 c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.4876, h * 0.2262);4165 c.close();4166 c.fill();4167 c.begin();4168 c.moveTo(w * 0.5124, h * 0.4143);4169 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.4683, h * 0.4095);4170 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3829, h * 0.3757);4171 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3196, h * 0.3371);4172 c.arcTo(w * 0.0661, h * 0.0357, 0, 0, 1, w * 0.3058, h * 0.3081);4173 c.lineTo(w * 0.4612, h * 0.2333);4174 c.arcTo(w * 0.0661, h * 0.0476, 0, 0, 0, w * 0.4744, h * 0.2548);4175 c.arcTo(w * 0.3306, h * 0.2857, 0, 0, 0, w * 0.53, h * 0.2905);4176 c.arcTo(w * 0.4408, h * 0.381, 0, 0, 0, w * 0.6198, h * 0.3295);4177 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.665, h * 0.3367);4178 c.close();4179 c.moveTo(w * 0.5052, h * 0.3714);4180 c.arcTo(w * 0.0275, h * 0.019, 0, 0, 1, w * 0.5135, h * 0.3581);4181 c.arcTo(w * 0.0275, h * 0.0238, 0, 0, 1, w * 0.5344, h * 0.3571);4182 c.lineTo(w * 0.5405, h * 0.3471);4183 c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.5278, h * 0.3381);4184 c.arcTo(w * 0.022, h * 0.0119, 0, 0, 1, w * 0.5372, h * 0.3271);4185 c.lineTo(w * 0.5306, h * 0.3186);4186 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.5041, h * 0.3143);4187 c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.4975, h * 0.3029);4188 c.lineTo(w * 0.4777, h * 0.2995);4189 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4628, h * 0.3033);4190 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4408, h * 0.2967);4191 c.lineTo(w * 0.4187, h * 0.3);4192 c.arcTo(w * 0.011, h * 0.0081, 0, 0, 1, w * 0.4132, h * 0.3124);4193 c.arcTo(w * 0.0386, h * 0.0333, 0, 0, 1, w * 0.395, h * 0.3129);4194 c.lineTo(w * 0.3873, h * 0.3224);4195 c.arcTo(w * 0.0165, h * 0.0143, 0, 0, 1, w * 0.3994, h * 0.3333);4196 c.arcTo(w * 0.0138, h * 0.0119, 0, 0, 1, w * 0.3901, h * 0.3433);4197 c.lineTo(w * 0.3994, h * 0.3514);4198 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4215, h * 0.3548);4199 c.arcTo(w * 0.0165, h * 0.0119, 0, 0, 1, w * 0.4298, h * 0.3667);4200 c.lineTo(w * 0.449, h * 0.3714);4201 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4711, h * 0.3657);4202 c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4887, h * 0.3724);4203 c.close();4204 c.moveTo(w * 0.4986, h * 0.351);4205 c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 1, w * 0.4804, h * 0.3552);4206 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.443, h * 0.349);4207 c.lineTo(w * 0.4413, h * 0.3529);4208 c.lineTo(w * 0.4242, h * 0.3371);4209 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4545, h * 0.3462);4210 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4793, h * 0.3476);4211 c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 0, w * 0.4986, h * 0.3448);4212 c.close();4213 c.moveTo(w * 0.503, h * 0.3349);4214 c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4766, h * 0.3233);4215 c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 0, w * 0.4529, h * 0.32);4216 c.arcTo(w * 0.0551, h * 0.0476, 0, 0, 0, w * 0.4325, h * 0.3238);4217 c.lineTo(w * 0.427, h * 0.3195);4218 c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4556, h * 0.3157);4219 c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4851, h * 0.3232);4220 c.lineTo(w * 0.4876, h * 0.3181);4221 c.close();4222 c.fill();4223 c.setStrokeWidth(2 * strokeWidth);4224 c.setStrokeColor('#292929');4225 c.setLineJoin('round');4226 c.begin();4227 c.moveTo(0, h * 0.8333);4228 c.lineTo(0, h * 0.1667);4229 c.lineTo(w * 0.3333, h * 0.0014);4230 c.lineTo(w * 0.4986, h * 0.1667);4231 c.lineTo(w * 0.6639, 0);4232 c.lineTo(w, h * 0.169);4233 c.lineTo(w, h * 0.8333);4234 c.lineTo(w * 0.6667, h);4235 c.lineTo(w * 0.5014, h * 0.9162);4236 c.lineTo(w * 0.3333, h);4237 c.close();4238 c.stroke();4239};4240mxCellRenderer.registerShape(mxShapeAws3dDynamoDB.prototype.cst.DYNAMO_DB, mxShapeAws3dDynamoDB);4241//**********************************************************************************************************************************************************4242//Elastic MapReduce4243//**********************************************************************************************************************************************************4244/**4245* Extends mxShape.4246*/4247function mxShapeAws3dElasticMapReduce(bounds, fill, stroke, strokewidth)4248{4249 mxShape.call(this);4250 this.bounds = bounds;4251 this.fill = fill;4252 this.stroke = stroke;4253 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4254};4255/**4256* Extends mxShape.4257*/4258mxUtils.extend(mxShapeAws3dElasticMapReduce, mxShape);4259mxShapeAws3dElasticMapReduce.prototype.cst = {4260 ELASTIC_MAP_REDUCE : 'mxgraph.aws3d.elasticMapReduce',4261 SHADING_COLORS : 'shadingCols'4262};4263/**4264* Function: paintVertexShape4265* 4266* Paints the vertex shape.4267*/4268mxShapeAws3dElasticMapReduce.prototype.paintVertexShape = function(c, x, y, w, h)4269{4270 c.translate(x, y);4271 4272 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4273 var strokeWidth1 = strokeWidth * w / 123;4274 var strokeWidth2 = strokeWidth * h /133;4275 4276 strokeWidth = Math.min(strokeWidth1, strokeWidth2);4277 c.setStrokeWidth(strokeWidth);4278 4279 this.background(c, 0, 0, w, h, strokeWidth);4280 c.setShadow(false);4281 this.foreground(c, 0, 0, w, h, strokeWidth);4282};4283mxShapeAws3dElasticMapReduce.prototype.background = function(c, x, y, w, h, strokeWidth)4284{4285 c.save();4286 c.save();4287 c.setStrokeWidth(2 * strokeWidth);4288 c.setStrokeColor('#292929');4289 c.setLineJoin('round');4290 c.begin();4291 c.moveTo(0, h * 0.7331);4292 c.lineTo(0, h * 0.3346);4293 c.lineTo(w * 0.126, h * 0.1316);4294 c.lineTo(w * 0.374, 0);4295 c.lineTo(w * 0.626, 0);4296 c.lineTo(w * 0.874, h * 0.1316);4297 c.lineTo(w, h * 0.3346);4298 c.lineTo(w, h * 0.7331);4299 c.lineTo(w * 0.5, h);4300 c.close();4301 c.fillAndStroke();4302};4303mxShapeAws3dElasticMapReduce.prototype.foreground = function(c, x, y, w, h, strokeWidth)4304{4305 c.restore();4306 c.setShadow(false);4307 c.setFillColor('#000000');4308 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4309 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4310 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4311 4312 c.begin();4313 c.moveTo(w * 0.126, h * 0.1316);4314 c.lineTo(w * 0.126, h * 0.267);4315 c.lineTo(w * 0.378, h * 0.4023);4316 c.lineTo(w * 0.5, h * 0.6015);4317 c.lineTo(w * 0.5, h);4318 c.lineTo(0, h * 0.7331);4319 c.lineTo(0, h * 0.3346);4320 c.close();4321 c.moveTo(w * 0.874, h * 0.267);4322 c.lineTo(w * 0.874, h * 0.1316);4323 c.lineTo(w, h * 0.3308);4324 c.fill();4325 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4326 c.begin();4327 c.moveTo(w * 0.5, h);4328 c.lineTo(w * 0.5, h * 0.6015);4329 c.lineTo(w * 0.622, h * 0.4023);4330 c.lineTo(w * 0.874, h * 0.267);4331 c.lineTo(w, h * 0.3308);4332 c.lineTo(w, h * 0.7331);4333 c.close();4334 c.fill();4335 4336 c.restore();4337 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4338 c.setFillColor(strokeColor);4339 c.setShadow(false);4340 c.begin();4341 c.moveTo(w * 0.3336, h * 0.1789);4342 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.359, h * 0.1789);4343 c.lineTo(w * 0.4001, h * 0.2015);4344 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4008, h * 0.2135);4345 c.lineTo(w * 0.3574, h * 0.2368);4346 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.3352, h * 0.2368);4347 c.lineTo(w * 0.2934, h * 0.2143);4348 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.2934, h * 0.2015);4349 c.close();4350 c.moveTo(w * 0.3705, h * 0.1729);4351 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3705, h * 0.1602);4352 c.lineTo(w * 0.4139, h * 0.1368);4353 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4336, h * 0.1368);4354 c.lineTo(w * 0.4811, h * 0.1617);4355 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4811, h * 0.1708);4356 c.lineTo(w * 0.4328, h * 0.1955);4357 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4156, h * 0.1955);4358 c.close();4359 c.moveTo(w * 0.4467, h * 0.1308);4360 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4467, h * 0.1203);4361 c.lineTo(w * 0.491, h * 0.0962);4362 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5123, h * 0.0962);4363 c.lineTo(w * 0.559, h * 0.1203);4364 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.559, h * 0.1293);4365 c.lineTo(w * 0.5123, h * 0.1549);4366 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4918, h * 0.1549);4367 c.close();4368 c.moveTo(w * 0.568, h * 0.1383);4369 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5918, h * 0.1383);4370 c.lineTo(w * 0.6361, h * 0.1624);4371 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6366, h * 0.1714);4372 c.lineTo(w * 0.5885, h * 0.1955);4373 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.568, h * 0.1955);4374 c.lineTo(w * 0.523, h * 0.1714);4375 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.523, h * 0.1616);4376 c.close();4377 c.moveTo(w * 0.6451, h * 0.1789);4378 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6697, h * 0.1789);4379 c.lineTo(w * 0.7123, h * 0.2023);4380 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.7123, h * 0.2128);4381 c.lineTo(w * 0.6664, h * 0.2376);4382 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6492, h * 0.2376);4383 c.lineTo(w * 0.6016, h * 0.2135);4384 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6016, h * 0.2023);4385 c.close();4386 c.moveTo(w * 0.6369, h * 0.2451);4387 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6369, h * 0.2526);4388 c.lineTo(w * 0.5172, h * 0.3173);4389 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4893, h * 0.3173);4390 c.lineTo(w * 0.3697, h * 0.2541);4391 c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3697, h * 0.2436);4392 c.lineTo(w * 0.4918, h * 0.1782);4393 c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5131, h * 0.1782);4394 c.close();4395 c.fill();4396 c.moveTo(w * 0., h * 0.);4397 c.lineTo(w * 0., h * 0.);4398 c.arcTo(w * 0., h * 0., 0, 0, 1, w * 0., h * 0.);4399 4400 c.setLineJoin('round');4401 c.begin();4402 c.moveTo(w * 0.126, h * 0.1316);4403 c.lineTo(w * 0.126, h * 0.267);4404 c.lineTo(w * 0.378, h * 0.4023);4405 c.lineTo(w * 0.5, h * 0.6015);4406 c.lineTo(w * 0.622, h * 0.4023);4407 c.lineTo(w * 0.874, h * 0.267);4408 c.lineTo(w * 0.874, h * 0.1316);4409 c.moveTo(0, h * 0.3346);4410 c.lineTo(w * 0.126, h * 0.267);4411 c.moveTo(w * 0.5, h * 0.6015);4412 c.lineTo(w * 0.5, h);4413 c.moveTo(w, h * 0.3346);4414 c.lineTo(w * 0.87, h * 0.267);4415 c.moveTo(w * 0.378, h * 0.4023);4416 c.lineTo(w * 0.622, h * 0.4023);4417 c.stroke();4418 c.setStrokeWidth(2 * strokeWidth);4419 c.setStrokeColor('#292929');4420 c.begin();4421 c.moveTo(0, h * 0.7331);4422 c.lineTo(0, h * 0.3346);4423 c.lineTo(w * 0.126, h * 0.1316);4424 c.lineTo(w * 0.374, 0);4425 c.lineTo(w * 0.626, 0);4426 c.lineTo(w * 0.874, h * 0.1316);4427 c.lineTo(w, h * 0.3346);4428 c.lineTo(w, h * 0.7331);4429 c.lineTo(w * 0.5, h);4430 c.close();4431 c.stroke();4432};4433mxCellRenderer.registerShape(mxShapeAws3dElasticMapReduce.prototype.cst.ELASTIC_MAP_REDUCE, mxShapeAws3dElasticMapReduce);4434//**********************************************************************************************************************************************************4435//RDS Slave4436//**********************************************************************************************************************************************************4437/**4438* Extends mxShape.4439*/4440function mxShapeAws3dRdsSlave(bounds, fill, stroke, strokewidth)4441{4442 mxShape.call(this);4443 this.bounds = bounds;4444 this.fill = fill;4445 this.stroke = stroke;4446 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4447};4448/**4449* Extends mxShape.4450*/4451mxUtils.extend(mxShapeAws3dRdsSlave, mxShape);4452mxShapeAws3dRdsSlave.prototype.cst = {4453 RDS_SLAVE : 'mxgraph.aws3d.rdsSlave'4454};4455/**4456* Function: paintVertexShape4457* 4458* Paints the vertex shape.4459*/4460mxShapeAws3dRdsSlave.prototype.paintVertexShape = function(c, x, y, w, h)4461{4462 c.translate(x, y);4463 4464 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4465 var strokeWidth1 = strokeWidth * w / 123;4466 var strokeWidth2 = strokeWidth * h /133;4467 4468 strokeWidth = Math.min(strokeWidth1, strokeWidth2);4469 c.setStrokeWidth(strokeWidth);4470 4471 this.background(c, 0, 0, w, h, strokeWidth);4472 c.setShadow(false);4473 this.foreground(c, 0, 0, w, h, strokeWidth);4474};4475mxShapeAws3dRdsSlave.prototype.background = function(c, x, y, w, h, strokeWidth)4476{4477 c.save();4478 c.save();4479 c.setStrokeWidth(2 * strokeWidth);4480 c.setStrokeColor('#292929');4481 c.setLineJoin('round');4482 c.begin();4483 c.moveTo(0, h * 0.7331);4484 c.lineTo(0, h * 0.3346);4485 c.lineTo(w * 0.126, h * 0.1316);4486 c.lineTo(w * 0.374, 0);4487 c.lineTo(w * 0.626, 0);4488 c.lineTo(w * 0.874, h * 0.1316);4489 c.lineTo(w, h * 0.3346);4490 c.lineTo(w, h * 0.7331);4491 c.lineTo(w * 0.5, h);4492 c.close();4493 c.fillAndStroke();4494};4495mxShapeAws3dRdsSlave.prototype.foreground = function(c, x, y, w, h, strokeWidth)4496{4497 c.restore();4498 c.setShadow(false);4499 c.setFillColor('#000000');4500 c.setAlpha('0.1');4501 4502 c.begin();4503 c.moveTo(w * 0.126, h * 0.1316);4504 c.lineTo(w * 0.126, h * 0.267);4505 c.lineTo(w * 0.378, h * 0.4023);4506 c.lineTo(w * 0.5, h * 0.6015);4507 c.lineTo(w * 0.5, h);4508 c.lineTo(0, h * 0.7331);4509 c.lineTo(0, h * 0.3346);4510 c.close();4511 c.moveTo(w * 0.874, h * 0.267);4512 c.lineTo(w * 0.874, h * 0.1316);4513 c.lineTo(w, h * 0.3308);4514 c.fill();4515 c.setAlpha('0.3');4516 c.begin();4517 c.moveTo(w * 0.5, h);4518 c.lineTo(w * 0.5, h * 0.6015);4519 c.lineTo(w * 0.622, h * 0.4023);4520 c.lineTo(w * 0.874, h * 0.267);4521 c.lineTo(w, h * 0.3308);4522 c.lineTo(w, h * 0.7331);4523 c.close();4524 c.fill();4525 4526 c.restore();4527 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');4528 c.setFillColor(strokeColor);4529 c.setShadow(false);4530 c.begin();4531 c.moveTo(w * 0.2457, h * 0.2137);4532 c.lineTo(w * 0.5393, h * 0.0593);4533 c.lineTo(w * 0.6875, h * 0.1377);4534 c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.7137, h * 0.1625);4535 c.arcTo(w * 0.0348, h * 0.032, 0, 0, 1, w * 0.7076, h * 0.1968);4536 c.arcTo(w * 0.1743, h * 0.1599, 0, 0, 1, w * 0.6597, h * 0.2249);4537 c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5943, h * 0.232);4538 c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5542, h * 0.2225);4539 c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.5673, h * 0.2353);4540 c.arcTo(w * 0.0261, h * 0.024, 0, 0, 1, w * 0.5611, h * 0.2729);4541 c.lineTo(w * 0.4889, h * 0.316);4542 c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.4766, h * 0.3352);4543 c.lineTo(w * 0.4052, h * 0.2992);4544 c.arcTo(w * 0.0173, h * 0.0159, 0, 0, 1, w * 0.4121, h * 0.2841);4545 c.lineTo(w * 0.4914, h * 0.2368);4546 c.arcTo(w * 0.0218, h * 0.02, 0, 0, 0, w * 0.4897, h * 0.2129);4547 c.lineTo(w * 0.4409, h * 0.1857);4548 c.lineTo(w * 0.3145, h * 0.2529);4549 c.close();4550 c.moveTo(w * 0.4801, h * 0.1633);4551 c.lineTo(w * 0.5263, h * 0.1865);4552 c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 0, w * 0.583, h * 0.1905);4553 c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 0, w * 0.6196, h * 0.1721);4554 c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.6117, h * 0.1441);4555 c.lineTo(w * 0.5655, h * 0.1193);4556 c.fill();4557 c.setLineJoin('round');4558 c.begin();4559 c.moveTo(w * 0.126, h * 0.1316);4560 c.lineTo(w * 0.126, h * 0.267);4561 c.lineTo(w * 0.378, h * 0.4023);4562 c.lineTo(w * 0.5, h * 0.6015);4563 c.lineTo(w * 0.622, h * 0.4023);4564 c.lineTo(w * 0.874, h * 0.267);4565 c.lineTo(w * 0.874, h * 0.1316);4566 c.moveTo(0, h * 0.3346);4567 c.lineTo(w * 0.126, h * 0.267);4568 c.moveTo(w * 0.5, h * 0.6015);4569 c.lineTo(w * 0.5, h);4570 c.moveTo(w, h * 0.3346);4571 c.lineTo(w * 0.87, h * 0.267);4572 c.moveTo(w * 0.378, h * 0.4023);4573 c.lineTo(w * 0.622, h * 0.4023);4574 c.stroke();4575 c.setStrokeWidth(2 * strokeWidth);4576 c.setStrokeColor('#292929');4577 c.begin();4578 c.moveTo(0, h * 0.7331);4579 c.lineTo(0, h * 0.3346);4580 c.lineTo(w * 0.126, h * 0.1316);4581 c.lineTo(w * 0.374, 0);4582 c.lineTo(w * 0.626, 0);4583 c.lineTo(w * 0.874, h * 0.1316);4584 c.lineTo(w, h * 0.3346);4585 c.lineTo(w, h * 0.7331);4586 c.lineTo(w * 0.5, h);4587 c.close();4588 c.stroke();4589};4590mxCellRenderer.registerShape(mxShapeAws3dRdsSlave.prototype.cst.RDS_SLAVE, mxShapeAws3dRdsSlave);4591//**********************************************************************************************************************************************************4592//AMI4593//**********************************************************************************************************************************************************4594/**4595* Extends mxShape.4596*/4597function mxShapeAws3dAMI2(bounds, fill, stroke, strokewidth)4598{4599 mxShape.call(this);4600 this.bounds = bounds;4601 this.fill = fill;4602 this.stroke = stroke;4603 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4604};4605/**4606* Extends mxShape.4607*/4608mxUtils.extend(mxShapeAws3dAMI2, mxShape);4609mxShapeAws3dAMI2.prototype.cst = {4610 AMI_2 : 'mxgraph.aws3d.ami2',4611 SHADING_COLORS : 'shadingCols'4612};4613/**4614* Function: paintVertexShape4615* 4616* Paints the vertex shape.4617*/4618mxShapeAws3dAMI2.prototype.paintVertexShape = function(c, x, y, w, h)4619{4620 c.translate(x, y);4621 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4622 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));4623 var strokeWidth1 = strokeWidth * w / 92;4624 var strokeWidth2 = strokeWidth * h / 60;4625 4626 strokeWidth = Math.min(strokeWidth1, strokeWidth2);4627 4628 c.setStrokeWidth(strokeWidth);4629 c.setShadow(false);4630 c.save();4631 c.save();4632 c.setStrokeWidth(2 * strokeWidth);4633 c.setStrokeColor('#292929');4634 c.setLineJoin('round');4635 if (isShadow == 1)4636 {4637 c.setShadow(true);4638 }4639 c.begin();4640 c.moveTo(0, h * 0.572);4641 c.lineTo(w * 0.0865, h * 0.284);4642 c.lineTo(w * 0.4203, 0);4643 c.lineTo(w * 0.5865, 0);4644 c.lineTo(w * 0.919, h * 0.286);4645 c.lineTo(w, h * 0.566);4646 c.lineTo(w * 0.5027, h);4647 c.close();4648 c.fillAndStroke();4649 4650 c.restore();4651 c.setFillColor('#000000');4652 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4653 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4654 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4655 4656 c.begin();4657 c.moveTo(0, h * 0.566);4658 c.lineTo(w * 0.0892, h * 0.282);4659 c.lineTo(w * 0.0878, h * 0.426);4660 c.lineTo(w * 0.4216, h * 0.712);4661 c.lineTo(w * 0.5865, h * 0.712);4662 c.lineTo(w * 0.5027, h);4663 c.close();4664 c.fill();4665 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4666 c.begin();4667 c.moveTo(w * 0.5027, h);4668 c.lineTo(w * 0.5865, h * 0.712);4669 c.lineTo(w * 0.9176, h * 0.43);4670 c.lineTo(w, h * 0.566);4671 c.close();4672 c.fill();4673 4674 c.restore();4675 c.setLineJoin('round');4676 4677 c.begin();4678 c.moveTo(0, h * 0.566);4679 c.lineTo(w * 0.0892, h * 0.282);4680 c.lineTo(w * 0.0878, h * 0.426);4681 c.lineTo(w * 0.4216, h * 0.712);4682 c.lineTo(w * 0.5865, h * 0.712);4683 c.lineTo(w * 0.5027, h);4684 c.close();4685 c.moveTo(w * 0.5027, h);4686 c.lineTo(w * 0.5865, h * 0.712);4687 c.lineTo(w * 0.9176, h * 0.43);4688 c.lineTo(w, h * 0.566);4689 c.close();4690 c.moveTo(0, h * 0.572);4691 c.lineTo(w * 0.0892, h * 0.422);4692 c.moveTo(w * 0.5027, h);4693 c.lineTo(w * 0.4189, h * 0.708);4694 c.moveTo(w * 0.9176, h * 0.43);4695 c.lineTo(w * 0.9176, h * 0.29);4696 c.stroke();4697 4698 c.setStrokeWidth(2 * strokeWidth);4699 c.setLineJoin('round');4700 c.begin();4701 c.moveTo(w * 0.2095, h * 0.376);4702 c.lineTo(w * 0.527, h * 0.104);4703 c.lineTo(w * 0.6338, h * 0.194);4704 c.lineTo(w * 0.3149, h * 0.468);4705 c.close();4706 c.moveTo(w * 0.3716, h * 0.518);4707 c.lineTo(w * 0.6892, h * 0.246);4708 c.lineTo(w * 0.796, h * 0.336);4709 c.lineTo(w * 0.477, h * 0.61);4710 c.close();4711 c.moveTo(w * 0.3108, h * 0.282);4712 c.lineTo(w * 0.4257, h * 0.38);4713 c.moveTo(w * 0.4189, h * 0.194);4714 c.lineTo(w * 0.5297, h * 0.288);4715 c.moveTo(w * 0.5838, h * 0.338);4716 c.lineTo(w * 0.6892, h * 0.426);4717 c.moveTo(w * 0.4757, h * 0.426);4718 c.lineTo(w * 0.5838, h * 0.518);4719 c.stroke();4720 c.setStrokeColor('#292929');4721 c.begin();4722 c.moveTo(0, h * 0.572);4723 c.lineTo(w * 0.0865, h * 0.284);4724 c.lineTo(w * 0.4203, 0);4725 c.lineTo(w * 0.5865, 0);4726 c.lineTo(w * 0.919, h * 0.286);4727 c.lineTo(w, h * 0.566);4728 c.lineTo(w * 0.5027, h);4729 c.close();4730 c.stroke();4731};4732mxCellRenderer.registerShape(mxShapeAws3dAMI2.prototype.cst.AMI_2, mxShapeAws3dAMI2);4733//**********************************************************************************************************************************************************4734//EBS4735//**********************************************************************************************************************************************************4736/**4737* Extends mxShape.4738*/4739function mxShapeAws3dEbs(bounds, fill, stroke, strokewidth)4740{4741 mxShape.call(this);4742 this.bounds = bounds;4743 this.fill = fill;4744 this.stroke = stroke;4745 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4746};4747/**4748* Extends mxShape.4749*/4750mxUtils.extend(mxShapeAws3dEbs, mxShape);4751mxShapeAws3dEbs.prototype.cst = {4752 EBS : 'mxgraph.aws3d.ebs',4753 SHADING_COLORS : 'shadingCols'4754};4755/**4756* Function: paintVertexShape4757* 4758* Paints the vertex shape.4759*/4760mxShapeAws3dEbs.prototype.paintVertexShape = function(c, x, y, w, h)4761{4762 c.translate(x, y);4763 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4764 var strokeWidth1 = strokeWidth * w / 92;4765 var strokeWidth2 = strokeWidth * h / 60;4766 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));4767 4768 strokeWidth = Math.min(strokeWidth1, strokeWidth2);4769 4770 c.setStrokeWidth(strokeWidth);4771 c.setShadow(false);4772 c.save();4773 c.save();4774 c.setStrokeWidth(2 * strokeWidth);4775 c.setStrokeColor('#292929');4776 c.setLineJoin('round');4777 if(isShadow == 1)4778 {4779 c.setShadow(true);4780 }4781 4782 c.begin();4783 c.moveTo(0, h * 0.5276);4784 c.lineTo(0, h * 0.4188);4785 c.lineTo(w * 0.071, h * 0.2898);4786 c.lineTo(w * 0.4033, 0);4787 c.lineTo(w * 0.9301, h * 0.464);4788 c.lineTo(w, h * 0.5863);4789 c.lineTo(w, h * 0.7035);4790 c.lineTo(w * 0.6667, h);4791 c.lineTo(w * 0.5355, h);4792 c.close();4793 c.fillAndStroke();4794 4795 c.restore();4796 c.setFillColor('#000000');4797 4798 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');4799 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');4800 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 4801 4802 c.begin();4803 c.moveTo(w * 0.071, h * 0.2948);4804 c.lineTo(w * 0.6011, h * 0.7621);4805 c.lineTo(w * 0.6667, h);4806 c.lineTo(w * 0.5355, h);4807 c.lineTo(0, h * 0.5276);4808 c.lineTo(0, h * 0.4137);4809 c.close();4810 c.fill();4811 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 4812 c.begin();4813 c.moveTo(w * 0.6011, h * 0.7655);4814 c.lineTo(w * 0.9344, h * 0.4724);4815 c.lineTo(w, h * 0.7035);4816 c.lineTo(w * 0.6667, h);4817 c.close();4818 c.fill();4819 4820 c.restore();4821 c.setLineJoin('round');4822 4823 c.begin();4824 c.moveTo(w * 0.071, h * 0.2948);4825 c.lineTo(w * 0.6011, h * 0.7621);4826 c.lineTo(w * 0.6667, h);4827 c.lineTo(w * 0.5355, h);4828 c.lineTo(0, h * 0.5276);4829 c.lineTo(0, h * 0.4137);4830 c.close();4831 c.moveTo(w * 0.6011, h * 0.7655);4832 c.lineTo(w * 0.9344, h * 0.4724);4833 c.lineTo(w, h * 0.7035);4834 c.lineTo(w * 0.6667, h);4835 c.close();4836 c.moveTo(w * 0.0033, h * 0.5276);4837 c.lineTo(w * 0.071, h * 0.2898);4838 c.moveTo(w * 0.5325, h * 0.9976);4839 c.lineTo(w * 0.603, h * 0.7593);4840 c.stroke();4841 c.setStrokeWidth(2 * strokeWidth);4842 c.setStrokeColor('#292929');4843 c.setLineJoin('round');4844 c.begin();4845 c.moveTo(0, h * 0.5276);4846 c.lineTo(0, h * 0.4188);4847 c.lineTo(w * 0.071, h * 0.2898);4848 c.lineTo(w * 0.4033, 0);4849 c.lineTo(w * 0.9301, h * 0.464);4850 c.lineTo(w, h * 0.5863);4851 c.lineTo(w, h * 0.7035);4852 c.lineTo(w * 0.6667, h);4853 c.lineTo(w * 0.5355, h);4854 c.close();4855 c.stroke();4856};4857mxCellRenderer.registerShape(mxShapeAws3dEbs.prototype.cst.EBS, mxShapeAws3dEbs);4858//**********************************************************************************************************************************************************4859//Oracle Server4860//**********************************************************************************************************************************************************4861/**4862* Extends mxShape.4863*/4864function mxShapeAws3dOracleServer(bounds, fill, stroke, strokewidth)4865{4866 mxShape.call(this);4867 this.bounds = bounds;4868 this.fill = fill;4869 this.stroke = stroke;4870 this.strokewidth = (strokewidth != null) ? strokewidth : 1;4871};4872/**4873* Extends mxShape.4874*/4875mxUtils.extend(mxShapeAws3dOracleServer, mxShape);4876mxShapeAws3dOracleServer.prototype.cst = {4877 ORACLE_SERVER : 'mxgraph.aws3d.oracleServer'4878};4879/**4880* Function: paintVertexShape4881* 4882* Paints the vertex shape.4883*/4884mxShapeAws3dOracleServer.prototype.paintVertexShape = function(c, x, y, w, h)4885{4886 c.translate(x, y);4887 4888 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));4889 var strokeWidth1 = strokeWidth * w / 123;4890 var strokeWidth2 = strokeWidth * h /133;4891 4892 strokeWidth = Math.min(strokeWidth1, strokeWidth2);4893 c.setStrokeWidth(strokeWidth);4894 4895 this.background(c, 0, 0, w, h, strokeWidth);4896 c.setShadow(false);4897 this.foreground(c, 0, 0, w, h, strokeWidth);4898};4899mxShapeAws3dOracleServer.prototype.background = function(c, x, y, w, h, strokeWidth)4900{4901 c.save();4902 c.save();4903 c.save();4904 c.setStrokeWidth(2 * strokeWidth);4905 c.setStrokeColor('#292929');4906 c.setLineJoin('round');4907 c.begin();4908 c.moveTo(0, h * 0.7464);4909 c.lineTo(0, h * 0.25);4910 c.lineTo(w * 0.5, 0);4911 c.lineTo(w, h * 0.25);4912 c.lineTo(w, h * 0.7464);4913 c.lineTo(w * 0.5, h);4914 c.close();4915 c.fillAndStroke();4916};4917mxShapeAws3dOracleServer.prototype.foreground = function(c, x, y, w, h, strokeWidth)4918{4919 c.restore();4920 c.setShadow(false);4921 c.setFillColor('#000000');4922 c.setAlpha('0.1');4923 4924 c.begin();4925 c.moveTo(0, h * 0.7464);4926 c.lineTo(0, h * 0.25);4927 c.lineTo(w * 0.5, h * 0.5);4928 c.lineTo(w * 0.5, h);4929 c.close();4930 c.fill();4931 c.setAlpha('0.3');4932 c.begin();4933 c.moveTo(w * 0.5, h * 0.5);4934 c.lineTo(w, h * 0.25);4935 c.lineTo(w, h * 0.7464);4936 c.lineTo(w * 0.5, h);4937 c.close();4938 c.fill();4939 4940 c.restore();4941 c.setShadow(false);4942 c.setLineJoin('round');4943 4944 c.setFillColor('#ff0000');4945 c.begin();4946 c.moveTo(0, h * 0.5866);4947 c.lineTo(w * 0.5, h * 0.8359);4948 c.lineTo(w, h * 0.5866);4949 c.lineTo(w, h * 0.6986);4950 c.lineTo(w * 0.5, h * 0.9486);4951 c.lineTo(0, h * 0.6986);4952 c.fill();4953 c.setStrokeWidth(0.5 * strokeWidth);4954 c.setStrokeColor('#ffffff');4955 c.setFillColor('#ffffff');4956 4957 c.begin();4958 c.moveTo(0, h * 0.5866);4959 c.lineTo(w * 0.5, h * 0.8359);4960 c.lineTo(w, h * 0.5866);4961 c.moveTo(w, h * 0.6986);4962 c.lineTo(w * 0.5, h * 0.9486);4963 c.lineTo(0, h * 0.6986);4964 c.stroke();4965 4966 c.begin();4967 c.moveTo(w * 0.0813, h * 0.7113);4968 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831);4969 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613);4970 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549);4971 c.lineTo(w * 0.122, h * 0.6754);4972 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937);4973 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232);4974 c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296);4975 c.close();4976 c.moveTo(w * 0.1163, h * 0.7183);4977 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148);4978 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021);4979 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831);4980 c.lineTo(w * 0.087, h * 0.6676);4981 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697);4982 c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937);4983 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035);4984 c.close();4985 c.moveTo(w * 0.1439, h * 0.743);4986 c.lineTo(w * 0.1439, h * 0.6866);4987 c.lineTo(w * 0.1846, h * 0.707);4988 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183);4989 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738);4990 c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743);4991 c.lineTo(w * 0.1992, h * 0.769);4992 c.lineTo(w * 0.187, h * 0.7641);4993 c.lineTo(w * 0.1577, h * 0.7218);4994 c.lineTo(w * 0.1854, h * 0.7345);4995 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317);4996 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225);4997 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155);4998 c.lineTo(w * 0.1528, h * 0.7007);4999 c.lineTo(w * 0.1528, h * 0.7472);5000 c.close();5001 c.moveTo(w * 0.2008, h * 0.7711);5002 c.lineTo(w * 0.2293, h * 0.7338);5003 c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324);5004 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415);5005 c.lineTo(w * 0.2699, h * 0.8035);5006 c.lineTo(w * 0.2602, h * 0.8007);5007 c.lineTo(w * 0.252, h * 0.7859);5008 c.lineTo(w * 0.2293, h * 0.7754);5009 c.lineTo(w * 0.2244, h * 0.7634);5010 c.lineTo(w * 0.248, h * 0.7739);5011 c.lineTo(w * 0.235, h * 0.7444);5012 c.lineTo(w * 0.2122, h * 0.7768);5013 c.close();5014 c.moveTo(w * 0.3244, h * 0.8225);5015 c.lineTo(w * 0.3171, h * 0.8289);5016 c.lineTo(w * 0.2854, h * 0.8127);5017 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986);5018 c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746);5019 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762);5020 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757);5021 c.lineTo(w * 0.3228, h * 0.7761);5022 c.lineTo(w * 0.3179, h * 0.7831);5023 c.lineTo(w * 0.2878, h * 0.7683);5024 c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697);5025 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831);5026 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042);5027 c.close();5028 c.moveTo(w * 0.3276, h * 0.7789);5029 c.lineTo(w * 0.3366, h * 0.7831);5030 c.lineTo(w * 0.3366, h * 0.8289);5031 c.lineTo(w * 0.3805, h * 0.8507);5032 c.lineTo(w * 0.3748, h * 0.857);5033 c.lineTo(w * 0.3317, h * 0.8359);5034 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275);5035 c.close();5036 c.moveTo(w * 0.435, h * 0.8775);5037 c.lineTo(w * 0.4325, h * 0.8866);5038 c.lineTo(w * 0.3959, h * 0.8683);5039 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563);5040 c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183);5041 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134);5042 c.lineTo(w * 0.435, h * 0.8324);5043 c.lineTo(w * 0.4285, h * 0.838);5044 c.lineTo(w * 0.4008, h * 0.8246);5045 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831);5046 c.lineTo(w * 0.4333, h * 0.8542);5047 c.lineTo(w * 0.426, h * 0.8606);5048 c.lineTo(w * 0.3878, h * 0.8415);5049 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585);5050 c.close();5051 c.moveTo(w * 0.6171, h * 0.8063);5052 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092);5053 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303);5054 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592);5055 c.lineTo(w * 0.5894, h * 0.8761);5056 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732);5057 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458);5058 c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246);5059 c.close();5060 c.moveTo(w * 0.5886, h * 0.8296);5061 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472);5062 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862);5063 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676);5064 c.lineTo(w * 0.6163, h * 0.8528);5065 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359);5066 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225);5067 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155);5068 c.close();5069 c.moveTo(w * 0.64, h * 0.85);5070 c.lineTo(w * 0.64, h * 0.7930);5071 c.lineTo(w * 0.6854, h * 0.7718);5072 c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782);5073 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8);5074 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127);5075 c.lineTo(w * 0.6992, h * 0.8218);5076 c.lineTo(w * 0.6854, h * 0.8282);5077 c.lineTo(w * 0.6569, h * 0.8141);5078 c.lineTo(w * 0.6805, h * 0.8021);5079 c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923);5080 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845);5081 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831);5082 c.lineTo(w * 0.6528, h * 0.7979);5083 c.lineTo(w * 0.6528, h * 0.8437);5084 c.close();5085 c.moveTo(w * 0.7, h * 0.8204);5086 c.lineTo(w * 0.7301, h * 0.7507);5087 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444);5088 c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486);5089 c.lineTo(w * 0.7699, h * 0.7852);5090 c.lineTo(w * 0.7602, h * 0.7908);5091 c.lineTo(w * 0.7537, h * 0.7838);5092 c.lineTo(w * 0.7276, h * 0.7958);5093 c.lineTo(w * 0.7228, h * 0.788);5094 c.lineTo(w * 0.748, h * 0.7768);5095 c.lineTo(w * 0.7358, h * 0.7585);5096 c.lineTo(w * 0.7114, h * 0.8155);5097 c.close();5098 c.moveTo(w * 0.8244, h * 0.7486);5099 c.lineTo(w * 0.8171, h * 0.762);5100 c.lineTo(w * 0.7894, h * 0.7761);5101 c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746);5102 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507);5103 c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162);5104 c.lineTo(w * 0.822, h * 0.7035);5105 c.lineTo(w * 0.8171, h * 0.7155);5106 c.lineTo(w * 0.7902, h * 0.7296);5107 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743);5108 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606);5109 c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767);5110 c.close();5111 c.moveTo(w * 0.8366, h * 0.6949);5112 c.lineTo(w * 0.8366, h * 0.7423);5113 c.lineTo(w * 0.878, h * 0.7231);5114 c.lineTo(w * 0.874, h * 0.7338);5115 c.lineTo(w * 0.8333, h * 0.7535);5116 c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75);5117 c.lineTo(w * 0.8268, h * 0.7007);5118 c.close();5119 c.moveTo(w * 0.9342, h * 0.6472);5120 c.lineTo(w * 0.9293, h * 0.6599);5121 c.lineTo(w * 0.9033, h * 0.6725);5122 c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817);5123 c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937);5124 c.lineTo(w * 0.9309, h * 0.6725);5125 c.lineTo(w * 0.9268, h * 0.6845);5126 c.lineTo(w * 0.887, h * 0.7035);5127 c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106);5128 c.lineTo(w * 0.935, h * 0.693);5129 c.lineTo(w * 0.9285, h * 0.7063);5130 c.lineTo(w * 0.9008, h * 0.7197);5131 c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204);5132 c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028);5133 c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669);5134 c.fill();5135 5136 c.restore();5137 c.setShadow(false);5138 c.setLineJoin('round');5139 5140 c.begin();5141 c.moveTo(0, h * 0.7464);5142 c.lineTo(0, h * 0.25);5143 c.lineTo(w * 0.5, h * 0.5);5144 c.lineTo(w * 0.5, h);5145 c.close();5146 c.moveTo(w * 0.5, h * 0.5);5147 c.lineTo(w, h * 0.25);5148 c.lineTo(w, h * 0.7464);5149 c.lineTo(w * 0.5, h);5150 c.close();5151 c.stroke();5152 c.setLineJoin('miter');5153 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5154 c.setFillColor(strokeColor);5155 c.begin();5156 c.moveTo(w * 0.374, h * 0.3873);5157 c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.374, h * 0.3626);5158 c.lineTo(w * 0.4797, h * 0.3098);5159 c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.5203, h * 0.3098);5160 c.lineTo(w * 0.626, h * 0.3626);5161 c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.626, h * 0.3852);5162 c.lineTo(w * 0.5203, h * 0.438);5163 c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.4797, h * 0.438);5164 c.close();5165 c.fill();5166 c.setStrokeWidth(2 * strokeWidth);5167 c.setStrokeColor('#292929');5168 c.setLineJoin('round');5169 c.begin();5170 c.moveTo(0, h * 0.7464);5171 c.lineTo(0, h * 0.25);5172 c.lineTo(w * 0.5, 0);5173 c.lineTo(w, h * 0.25);5174 c.lineTo(w, h * 0.7464);5175 c.lineTo(w * 0.5, h);5176 c.close();5177 c.stroke();5178};5179mxCellRenderer.registerShape(mxShapeAws3dOracleServer.prototype.cst.ORACLE_SERVER, mxShapeAws3dOracleServer);5180//**********************************************************************************************************************************************************5181//Secure Connection5182//**********************************************************************************************************************************************************5183/**5184* Extends mxShape.5185*/5186function mxShapeAws3dSecureConnection(bounds, fill, stroke, strokewidth)5187{5188 mxShape.call(this);5189 this.bounds = bounds;5190 this.fill = fill;5191 this.stroke = stroke;5192 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5193};5194/**5195* Extends mxShape.5196*/5197mxUtils.extend(mxShapeAws3dSecureConnection, mxShape);5198mxShapeAws3dSecureConnection.prototype.cst = {5199 SECURE_CONNECTION : 'mxgraph.aws3d.secureConnection'5200};5201/**5202* Function: paintVertexShape5203* 5204* Paints the vertex shape.5205*/5206mxShapeAws3dSecureConnection.prototype.paintVertexShape = function(c, x, y, w, h)5207{5208 c.translate(x, y);5209 5210 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5211 var strokeWidth1 = strokeWidth * w / 57;5212 var strokeWidth2 = strokeWidth * h /34;5213 5214 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5215 c.setStrokeWidth(strokeWidth);5216 5217 this.background(c, 0, 0, w, h, strokeWidth);5218 c.setShadow(false);5219 this.foreground(c, 0, 0, w, h, strokeWidth);5220};5221mxShapeAws3dSecureConnection.prototype.background = function(c, x, y, w, h, strokeWidth)5222{5223 c.begin();5224 c.moveTo(w * 0.0058, h * 0.3889);5225 c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0774, h * 0.1856);5226 c.arcTo(w * 0.5241, h * 0.8839, 0, 0, 1, w * 0.308, h * 0.0262);5227 c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.6417, h * 0.056);5228 c.arcTo(w * 0.6988, h * 1.1786, 0, 0, 1, w * 0.9106, h * 0.277);5229 c.arcTo(w * 0.2621, h * 0.442, 0, 0, 1, w, h * 0.5451);5230 c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.9474, h * 0.7808);5231 c.arcTo(w * 0.4368, h * 0.7366, 0, 0, 1, w * 0.7186, h * 0.9605);5232 c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.3045, h * 0.9104);5233 c.arcTo(w * 0.6115, h * 1.0312, 0, 0, 1, w * 0.0687, h * 0.6747);5234 c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0058, h * 0.3889);5235 c.close();5236 c.fill();5237};5238mxShapeAws3dSecureConnection.prototype.foreground = function(c, x, y, w, h, strokeWidth)5239{5240 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5241 c.setFillColor(strokeColor);5242 c.begin();5243 c.moveTo(w * 0.2661, h * 0.5068);5244 c.lineTo(w * 0.5002, h * 0.7336);5245 c.lineTo(w * 0.6626, h * 0.5775);5246 c.lineTo(w * 0.6469, h * 0.5539);5247 c.lineTo(w * 0.6958, h * 0.5097);5248 c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.7325, h * 0.4066);5249 c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.6889, h * 0.3153);5250 c.arcTo(w * 0.1747, h * 0.2946, 0, 0, 0, w * 0.5928, h * 0.2622);5251 c.arcTo(w * 0.1398, h * 0.2357, 0, 0, 0, w * 0.5107, h * 0.3005);5252 c.lineTo(w * 0.446, h * 0.3654);5253 c.lineTo(w * 0.4268, h * 0.3477);5254 c.close();5255 c.moveTo(w * 0.4949, h * 0.4184);5256 c.lineTo(w * 0.5491, h * 0.3624);5257 c.arcTo(w * 0.1222, h * 0.2062, 0, 0, 1, w * 0.6277, h * 0.3536);5258 c.arcTo(w * 0.0874, h * 0.1179, 0, 0, 1, w * 0.6679, h * 0.3978);5259 c.arcTo(w * 0.0175, h * 0.0295, 0, 0, 1, w * 0.6626, h * 0.439);5260 c.lineTo(w * 0.5928, h * 0.5068);5261 c.close();5262 c.fill();5263};5264mxCellRenderer.registerShape(mxShapeAws3dSecureConnection.prototype.cst.SECURE_CONNECTION, mxShapeAws3dSecureConnection);5265//**********************************************************************************************************************************************************5266//Email Service5267//**********************************************************************************************************************************************************5268/**5269* Extends mxShape.5270*/5271function mxShapeAws3dEmailService(bounds, fill, stroke, strokewidth)5272{5273 mxShape.call(this);5274 this.bounds = bounds;5275 this.fill = fill;5276 this.stroke = stroke;5277 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5278};5279/**5280* Extends mxShape.5281*/5282mxUtils.extend(mxShapeAws3dEmailService, mxShape);5283mxShapeAws3dEmailService.prototype.cst = {5284 EMAIL_SERVICE : 'mxgraph.aws3d.email_service',5285 SHADING_COLORS : 'shadingCols'5286};5287/**5288* Function: paintVertexShape5289* 5290* Paints the vertex shape.5291*/5292mxShapeAws3dEmailService.prototype.paintVertexShape = function(c, x, y, w, h)5293{5294 c.translate(x, y);5295 5296 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5297 var strokeWidth1 = strokeWidth * w / 151;5298 var strokeWidth2 = strokeWidth * h / 192;5299 5300 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5301 this.background(c, 0, 0, w, h, strokeWidth);5302 c.setShadow(false);5303 this.foreground(c, 0, 0, w, h, strokeWidth);5304};5305mxShapeAws3dEmailService.prototype.background = function(c, x, y, w, h, strokeWidth)5306{5307 c.setStrokeWidth(strokeWidth);5308 c.save();5309 c.save();5310 c.setStrokeWidth(2 * strokeWidth);5311 c.setStrokeColor('#292929');5312 c.setLineJoin('round');5313 c.begin();5314 c.moveTo(0, h * 0.8182);5315 c.lineTo(0, h * 0.1818);5316 c.lineTo(w * 0.4007, 0);5317 c.lineTo(w * 0.606, 0);5318 c.lineTo(w, h * 0.1792);5319 c.lineTo(w, h * 0.8182);5320 c.lineTo(w * 0.5993, h);5321 c.lineTo(w * 0.4007, h);5322 c.close();5323 c.fillAndStroke();5324};5325mxShapeAws3dEmailService.prototype.foreground = function(c, x, y, w, h, strokeWidth)5326{5327 c.restore();5328 c.setShadow(false);5329 c.setFillColor('#000000');5330 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEmailService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');5331 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');5332 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 5333 5334 c.begin();5335 c.moveTo(0, h * 0.2727);5336 c.lineTo(w * 0.4007, h * 0.4546);5337 c.lineTo(w * 0.5993, h * 0.4546);5338 c.lineTo(w * 0.5993, h);5339 c.lineTo(w * 0.4007, h);5340 c.lineTo(0, h * 0.8182);5341 c.close();5342 c.fill();5343 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 5344 c.begin();5345 c.moveTo(w * 0.5993, h * 0.4546);5346 c.lineTo(w, h * 0.2727);5347 c.lineTo(w * 0.8013, h * 0.1792);5348 c.lineTo(w * 0.8013, h * 0.0883);5349 c.lineTo(w, h * 0.1792);5350 c.lineTo(w, h * 0.8182);5351 c.lineTo(w * 0.5993, h);5352 c.close();5353 c.fill();5354 5355 c.restore();5356 c.setShadow(false);5357 c.setLineJoin('round');5358 5359 c.begin();5360 c.moveTo(0, h * 0.2727);5361 c.lineTo(w * 0.4007, h * 0.4546);5362 c.lineTo(w * 0.5993, h * 0.4546);5363 c.lineTo(w * 0.5993, h);5364 c.lineTo(w * 0.4007, h);5365 c.lineTo(0, h * 0.8182);5366 c.close();5367 c.stroke();5368 c.begin();5369 c.moveTo(w * 0.5993, h * 0.4546);5370 c.lineTo(w, h * 0.2727);5371 c.lineTo(w * 0.8013, h * 0.1792);5372 c.lineTo(w * 0.8013, h * 0.0883);5373 c.lineTo(w, h * 0.1792);5374 c.lineTo(w, h * 0.8182);5375 c.lineTo(w * 0.5993, h);5376 c.close();5377 c.stroke();5378 5379 c.begin();5380 c.moveTo(w * 0.202, h * 0.0883);5381 c.lineTo(w * 0.202, h * 0.1818);5382 c.lineTo(w * 0.4007, h * 0.2727);5383 c.lineTo(w * 0.5993, h * 0.2727);5384 c.lineTo(w * 0.798, h * 0.1818);5385 c.moveTo(w * 0.2053, h * 0.1818);5386 c.lineTo(w * 0.0033, h * 0.2714);5387 c.moveTo(w * 0.4007, h * 0.2727);5388 c.lineTo(w * 0.4007, h * 0.9961);5389 c.moveTo(w * 0.5993, h * 0.2727);5390 c.lineTo(w * 0.5993, h * 0.4546);5391 c.stroke();5392 5393 c.setLineJoin('miter');5394 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5395 c.setFillColor(strokeColor);5396 c.begin();5397 c.moveTo(w * 0.4437, h * 0.0779);5398 c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 1, w * 0.404, h * 0.0706);5399 c.arcTo(w * 0.0464, h * 0.0364, 0, 0, 1, w * 0.3815, h * 0.0421);5400 c.arcTo(w * 0.053, h * 0.026, 0, 0, 1, w * 0.4205, h * 0.0187);5401 c.arcTo(w * 0.1987, h * 0.1558, 0, 0, 1, w * 0.4768, h * 0.0203);5402 c.arcTo(w * 0.0795, h * 0.0364, 0, 0, 1, w * 0.5199, h * 0.0494);5403 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.5099, h * 0.0649);5404 c.arcTo(w * 0.0795, h * 0.0623, 0, 0, 1, w * 0.4536, h * 0.0727);5405 c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4404, h * 0.0597);5406 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4219, h * 0.0566);5407 c.arcTo(w * 0.0199, h * 0.0114, 0, 0, 1, w * 0.4172, h * 0.0431);5408 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4483, h * 0.0416);5409 c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 1, w * 0.457, h * 0.053);5410 c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 0, w * 0.4669, h * 0.0431);5411 c.arcTo(w * 0.0166, h * 0.0166, 0, 0, 0, w * 0.4464, h * 0.0358);5412 c.lineTo(w * 0.4437, h * 0.0338);5413 c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4603, h * 0.0322);5414 c.arcTo(w * 0.0397, h * 0.0156, 0, 0, 1, w * 0.4755, h * 0.0462);5415 c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4669, h * 0.0545);5416 c.arcTo(w * 0.053, h * 0.0416, 0, 0, 1, w * 0.453, h * 0.0608);5417 c.arcTo(w * 0.0099, h * 0.0078, 0, 0, 0, w * 0.4636, h * 0.0675);5418 c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.498, h * 0.0623);5419 c.arcTo(w * 0.0185, h * 0.0145, 0, 0, 0, w * 0.5079, h * 0.0457);5420 c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4848, h * 0.0296);5421 c.arcTo(w * 0.0993, h * 0.0779, 0, 0, 0, w * 0.455, h * 0.0234);5422 c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.4172, h * 0.026);5423 c.arcTo(w * 0.0397, h * 0.0312, 0, 0, 0, w * 0.3927, h * 0.039);5424 c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 0, w * 0.3974, h * 0.0571);5425 c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4205, h * 0.0701);5426 c.arcTo(w * 0.0331, h * 0.026, 0, 0, 0, w * 0.4404, h * 0.0722);5427 c.moveTo(w * 0.42, h * 0.049);5428 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.055);5429 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.45, h * 0.049);5430 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.043);5431 c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.42, h * 0.049);5432 c.close();5433 c.moveTo(w * 0.4669, h * 0.0894);5434 c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.5099, h * 0.0831);5435 c.lineTo(w * 0.6689, h * 0.1543);5436 c.lineTo(w * 0.4887, h * 0.1371);5437 c.close();5438 c.moveTo(w * 0.3887, h * 0.0769);5439 c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.4205, h * 0.0888);5440 c.arcTo(w * 0.0662, h * 0.026, 0, 0, 0, w * 0.447, h * 0.0894);5441 c.lineTo(w * 0.4735, h * 0.1512);5442 c.lineTo(w * 0.6689, h * 0.1688);5443 c.lineTo(w * 0.5199, h * 0.2364);5444 c.lineTo(w * 0.2815, h * 0.1273);5445 c.close();5446 c.fill();5447 c.setStrokeWidth(2 * strokeWidth);5448 c.setStrokeColor('#292929');5449 c.setLineJoin('round');5450 c.begin();5451 c.moveTo(0, h * 0.8182);5452 c.lineTo(0, h * 0.1818);5453 c.lineTo(w * 0.4007, 0);5454 c.lineTo(w * 0.606, 0);5455 c.lineTo(w, h * 0.1792);5456 c.lineTo(w, h * 0.8182);5457 c.lineTo(w * 0.5993, h);5458 c.lineTo(w * 0.4007, h);5459 c.close();5460 c.stroke();5461};5462mxCellRenderer.registerShape(mxShapeAws3dEmailService.prototype.cst.EMAIL_SERVICE, mxShapeAws3dEmailService);5463//**********************************************************************************************************************************************************5464//Worker5465//**********************************************************************************************************************************************************5466/**5467* Extends mxShape.5468*/5469function mxShapeAws3dWorker(bounds, fill, stroke, strokewidth)5470{5471 mxShape.call(this);5472 this.bounds = bounds;5473 this.fill = fill;5474 this.stroke = stroke;5475 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5476};5477/**5478* Extends mxShape.5479*/5480mxUtils.extend(mxShapeAws3dWorker, mxShape);5481mxShapeAws3dWorker.prototype.cst = {5482 WORKER : 'mxgraph.aws3d.worker',5483 SHADING_COLORS : 'shadingCols'5484};5485/**5486* Function: paintVertexShape5487* 5488* Paints the vertex shape.5489*/5490mxShapeAws3dWorker.prototype.paintVertexShape = function(c, x, y, w, h)5491{5492 c.translate(x, y);5493 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5494 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));5495 var strokeWidth1 = strokeWidth * w / 74;5496 var strokeWidth2 = strokeWidth * h / 50;5497 5498 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5499 5500 c.setStrokeWidth(strokeWidth);5501 c.setShadow(false);5502 c.save();5503 c.save();5504 c.setStrokeWidth(2 * strokeWidth);5505 c.setStrokeColor('#292929');5506 c.setLineJoin('round');5507 if (isShadow == 1)5508 {5509 c.setShadow(true);5510 }5511 c.begin();5512 c.moveTo(0, h * 0.572);5513 c.lineTo(w * 0.0865, h * 0.284);5514 c.lineTo(w * 0.4203, 0);5515 c.lineTo(w * 0.5865, 0);5516 c.lineTo(w * 0.919, h * 0.286);5517 c.lineTo(w, h * 0.566);5518 c.lineTo(w * 0.5027, h);5519 c.close();5520 c.fillAndStroke();5521 5522 c.restore();5523 c.setFillColor('#000000');5524 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorker.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');5525 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');5526 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 5527 5528 c.begin();5529 c.moveTo(0, h * 0.566);5530 c.lineTo(w * 0.0892, h * 0.282);5531 c.lineTo(w * 0.0878, h * 0.426);5532 c.lineTo(w * 0.4216, h * 0.712);5533 c.lineTo(w * 0.5865, h * 0.712);5534 c.lineTo(w * 0.5027, h);5535 c.close();5536 c.fill();5537 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 5538 c.begin();5539 c.moveTo(w * 0.5027, h);5540 c.lineTo(w * 0.5865, h * 0.712);5541 c.lineTo(w * 0.9176, h * 0.43);5542 c.lineTo(w, h * 0.566);5543 c.close();5544 c.fill();5545 5546 c.restore();5547 c.setLineJoin('round');5548 5549 c.begin();5550 c.moveTo(0, h * 0.566);5551 c.lineTo(w * 0.0892, h * 0.282);5552 c.lineTo(w * 0.0878, h * 0.426);5553 c.lineTo(w * 0.4216, h * 0.712);5554 c.lineTo(w * 0.5865, h * 0.712);5555 c.lineTo(w * 0.5027, h);5556 c.close();5557 c.moveTo(w * 0.5027, h);5558 c.lineTo(w * 0.5865, h * 0.712);5559 c.lineTo(w * 0.9176, h * 0.43);5560 c.lineTo(w, h * 0.566);5561 c.close();5562 c.moveTo(0, h * 0.572);5563 c.lineTo(w * 0.0892, h * 0.422);5564 c.moveTo(w * 0.5027, h);5565 c.lineTo(w * 0.4189, h * 0.708);5566 c.moveTo(w * 0.9176, h * 0.43);5567 c.lineTo(w * 0.9176, h * 0.29);5568 c.stroke();5569 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5570 c.setFillColor(strokeColor);5571 c.setLineJoin('round');5572 c.begin();5573 c.moveTo(w * 0.2892, h * 0.2104);5574 c.lineTo(w * 0.3595, h * 0.1503);5575 c.lineTo(w * 0.3973, h * 0.1844);5576 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.4486, h * 0.1703);5577 c.lineTo(w * 0.4486, h * 0.1242);5578 c.lineTo(w * 0.5527, h * 0.1242);5579 c.lineTo(w * 0.5527, h * 0.1703);5580 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.6149, h * 0.1924);5581 c.lineTo(w * 0.6527, h * 0.1603);5582 c.lineTo(w * 0.7257, h * 0.2224);5583 c.lineTo(w * 0.6892, h * 0.2545);5584 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.7162, h * 0.3106);5585 c.lineTo(w * 0.7676, h * 0.3106);5586 c.lineTo(w * 0.7676, h * 0.3988);5587 c.lineTo(w * 0.7162, h * 0.3988);5588 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.6973, h * 0.4409);5589 c.lineTo(w * 0.7378, h * 0.475);5590 c.lineTo(w * 0.6635, h * 0.5371);5591 c.lineTo(w * 0.6297, h * 0.505);5592 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.5527, h * 0.5351);5593 c.lineTo(w * 0.5527, h * 0.5812);5594 c.lineTo(w * 0.45, h * 0.5812);5595 c.lineTo(w * 0.45, h * 0.5351);5596 c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.3878, h * 0.513);5597 c.lineTo(w * 0.3514, h * 0.5431);5598 c.lineTo(w * 0.2784, h * 0.481);5599 c.lineTo(w * 0.3149, h * 0.4509);5600 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.2865, h * 0.3968);5601 c.lineTo(w * 0.2351, h * 0.3968);5602 c.lineTo(w * 0.2351, h * 0.3086);5603 c.lineTo(w * 0.2865, h * 0.3086);5604 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.3203, h * 0.2425);5605 c.close();5606 c.moveTo(w * 0.4054, h * 0.2445);5607 c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.3554, h * 0.2986);5608 c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.3432, h * 0.3567);5609 c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.3635, h * 0.4208);5610 c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.4122, h * 0.4649);5611 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4122, h * 0.4649);5612 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5676, h * 0.4749);5613 c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.6351, h * 0.4228);5614 c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.6595, h * 0.3467);5615 c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.6149, h * 0.2605);5616 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5419, h * 0.2204);5617 c.arcTo(w * 0.3378, h * 0.501, 0, 0, 0, w * 0.4649, h * 0.2184);5618 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4054, h * 0.2445);5619 c.close();5620 c.moveTo(w * 0.473, h * 0.2806);5621 c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.55, h * 0.2866);5622 c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 1, w * 0.5892, h * 0.3307);5623 c.arcTo(w * 0.0338, h * 0.0501, 0, 0, 1, w * 0.5824, h * 0.3888);5624 c.arcTo(w * 0.0946, h * 0.1403, 0, 0, 1, w * 0.5216, h * 0.4269);5625 c.arcTo(w * 0.1622, h * 0.2405, 0, 0, 1, w * 0.4432, h * 0.4128);5626 c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4108, h * 0.3527);5627 c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4351, h * 0.2986);5628 c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 1, w * 0.473, h * 0.2806);5629 c.close();5630 c.fill();5631 c.setStrokeWidth(2 * strokeWidth);5632 c.setStrokeColor('#292929');5633 c.begin();5634 c.moveTo(0, h * 0.572);5635 c.lineTo(w * 0.0865, h * 0.284);5636 c.lineTo(w * 0.4203, 0);5637 c.lineTo(w * 0.5865, 0);5638 c.lineTo(w * 0.919, h * 0.286);5639 c.lineTo(w, h * 0.566);5640 c.lineTo(w * 0.5027, h);5641 c.close();5642 c.stroke();5643};5644mxCellRenderer.registerShape(mxShapeAws3dWorker.prototype.cst.WORKER, mxShapeAws3dWorker);5645//**********************************************************************************************************************************************************5646//Application5647//**********************************************************************************************************************************************************5648/**5649* Extends mxShape.5650*/5651function mxShapeAws3dApplication2(bounds, fill, stroke, strokewidth)5652{5653 mxShape.call(this);5654 this.bounds = bounds;5655 this.fill = fill;5656 this.stroke = stroke;5657 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5658};5659/**5660* Extends mxShape.5661*/5662mxUtils.extend(mxShapeAws3dApplication2, mxShape);5663mxShapeAws3dApplication2.prototype.cst = {5664 APPLICATION2 : 'mxgraph.aws3d.application2',5665 SHADING_COLORS : 'shadingCols'5666};5667/**5668* Function: paintVertexShape5669* 5670* Paints the vertex shape.5671*/5672mxShapeAws3dApplication2.prototype.paintVertexShape = function(c, x, y, w, h)5673{5674 c.translate(x, y);5675 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5676 var strokeWidth1 = strokeWidth * w / 62;5677 var strokeWidth2 = strokeWidth * h / 53.5;5678 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));5679 5680 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5681 c.setShadow(false);5682 c.setStrokeWidth(strokeWidth);5683 c.save();5684 c.save();5685 c.setStrokeWidth(2 * strokeWidth);5686 c.setStrokeColor('#292929');5687 c.setLineJoin('round');5688 if (isShadow == 1)5689 {5690 c.setShadow(true);5691 }5692 5693 c.begin();5694 c.moveTo(0, h * 0.6766);5695 c.lineTo(0, h * 0.3271);5696 c.lineTo(w * 0.5, 0);5697 c.lineTo(w, h * 0.3271);5698 c.lineTo(w, h * 0.6766);5699 c.lineTo(w * 0.5, h);5700 c.close();5701 c.fillAndStroke();5702 5703 c.restore();5704 c.setFillColor('#000000');5705 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');5706 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');5707 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 5708 5709 c.begin();5710 c.moveTo(0, h * 0.3271);5711 c.lineTo(w * 0.5, h * 0.6449);5712 c.lineTo(w * 0.5, h);5713 c.lineTo(0, h * 0.6766);5714 c.close();5715 c.fill();5716 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 5717 c.begin();5718 c.moveTo(w * 0.5, h * 0.6449);5719 c.lineTo(w, h * 0.3271);5720 c.lineTo(w, h * 0.6766);5721 c.lineTo(w * 0.5, h);5722 c.close();5723 c.fill();5724 5725 c.restore();5726 c.setLineJoin('round');5727 5728 c.begin();5729 c.moveTo(0, h * 0.3271);5730 c.lineTo(w * 0.5, h * 0.6449);5731 c.lineTo(w * 0.5, h);5732 c.lineTo(0, h * 0.6766);5733 c.close();5734 c.stroke();5735 c.begin();5736 c.moveTo(w * 0.5, h * 0.6449);5737 c.lineTo(w, h * 0.3271);5738 c.lineTo(w, h * 0.6766);5739 c.lineTo(w * 0.5, h);5740 c.close();5741 c.stroke();5742 5743 c.setLineJoin('miter');5744 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5745 c.setFillColor(strokeColor);5746 c.begin();5747 c.moveTo(w * 0.1742, h * 0.6355);5748 c.lineTo(w * 0.1742, h * 0.4393);5749 c.lineTo(w * 0.6726, h * 0.1121);5750 c.lineTo(w * 0.7661, h * 0.1738);5751 c.lineTo(w * 0.2661, h * 0.4991);5752 c.lineTo(w * 0.2661, h * 0.6916);5753 c.close();5754 c.moveTo(w * 0.2871, h * 0.7084);5755 c.lineTo(w * 0.2871, h * 0.514);5756 c.lineTo(w * 0.7823, h * 0.1869);5757 c.lineTo(w * 0.8629, h * 0.2374);5758 c.lineTo(w * 0.379, h * 0.5626);5759 c.lineTo(w * 0.379, h * 0.7607);5760 c.close();5761 c.fill();5762 c.setStrokeWidth(2 * strokeWidth);5763 c.setStrokeColor('#292929');5764 c.setLineJoin('round');5765 c.begin();5766 c.moveTo(0, h * 0.6766);5767 c.lineTo(0, h * 0.3271);5768 c.lineTo(w * 0.5, 0);5769 c.lineTo(w, h * 0.3271);5770 c.lineTo(w, h * 0.6766);5771 c.lineTo(w * 0.5, h);5772 c.close();5773 c.stroke();5774};5775mxCellRenderer.registerShape(mxShapeAws3dApplication2.prototype.cst.APPLICATION2, mxShapeAws3dApplication2);5776//**********************************************************************************************************************************************************5777//Elastic Beanstalk5778//**********************************************************************************************************************************************************5779/**5780* Extends mxShape.5781*/5782function mxShapeAws3dElasticBeanstalk(bounds, fill, stroke, strokewidth)5783{5784 mxShape.call(this);5785 this.bounds = bounds;5786 this.fill = fill;5787 this.stroke = stroke;5788 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5789};5790/**5791* Extends mxShape.5792*/5793mxUtils.extend(mxShapeAws3dElasticBeanstalk, mxShape);5794mxShapeAws3dElasticBeanstalk.prototype.cst = {5795 ELASTIC_BEANSTALK : 'mxgraph.aws3d.elasticBeanstalk',5796 SHADING_COLORS : 'shadingCols'5797};5798/**5799* Function: paintVertexShape5800* 5801* Paints the vertex shape.5802*/5803mxShapeAws3dElasticBeanstalk.prototype.paintVertexShape = function(c, x, y, w, h)5804{5805 c.translate(x, y);5806 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));5807 var strokeWidth1 = strokeWidth * w / 181.5;5808 var strokeWidth2 = strokeWidth * h / 140;5809 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));5810 5811 strokeWidth = Math.min(strokeWidth1, strokeWidth2);5812 c.setShadow(false);5813 c.setStrokeWidth(strokeWidth);5814 c.save();5815 c.save();5816 c.save();5817 c.setStrokeWidth(2 * strokeWidth);5818 c.setStrokeColor('#292929');5819 c.setLineJoin('round');5820 if (isShadow == 1)5821 {5822 c.setShadow(true);5823 }5824 5825 c.begin();5826 c.moveTo(0, h * 0.6239);5827 c.lineTo(0, h * 0.3754);5828 c.lineTo(w * 0.5, 0);5829 c.lineTo(w, h * 0.3754);5830 c.lineTo(w, h * 0.6239);5831 c.lineTo(w * 0.5, h);5832 c.close();5833 c.fillAndStroke();5834 5835 c.restore();5836 c.setFillColor('#000000');5837 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticBeanstalk.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');5838 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');5839 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 5840 5841 c.begin();5842 c.moveTo(0, h * 0.3754);5843 c.lineTo(w * 0.5, h * 0.7514);5844 c.lineTo(w * 0.5, h);5845 c.lineTo(0, h * 0.6239);5846 c.close();5847 c.fill();5848 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 5849 c.begin();5850 c.moveTo(w * 0.5, h * 0.7514);5851 c.lineTo(w, h * 0.3754);5852 c.lineTo(w, h * 0.6239);5853 c.lineTo(w * 0.5, h);5854 c.close();5855 c.fill();5856 5857 c.restore();5858 c.setLineJoin('round');5859 5860 c.begin();5861 c.moveTo(0, h * 0.3754);5862 c.lineTo(w * 0.5, h * 0.7514);5863 c.lineTo(w * 0.5, h);5864 c.lineTo(0, h * 0.6239);5865 c.close();5866 c.moveTo(w * 0.5, h * 0.7514);5867 c.lineTo(w, h * 0.3754);5868 c.lineTo(w, h * 0.6239);5869 c.lineTo(w * 0.5, h);5870 c.close();5871 c.moveTo(w * 0.2485, h * 0.187);5872 c.lineTo(w * 0.7493, h * 0.5623);5873 c.lineTo(w * 0.7493, h * 0.8123);5874 c.stroke();5875 5876 c.setLineJoin('miter');5877 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');5878 c.setFillColor(strokeColor);5879 c.begin();5880 c.moveTo(w * 0.7763, h * 0.2063);5881 c.lineTo(w * 0.2749, h * 0.5817);5882 c.lineTo(w * 0.2749, h * 0.8309);5883 c.lineTo(w * 0.2204, h * 0.7894);5884 c.lineTo(w * 0.2204, h * 0.5394);5885 c.lineTo(w * 0.7185, h * 0.1619);5886 c.close();5887 c.fill();5888 c.restore();5889 c.begin();5890 c.moveTo(w * 0.1713, h * 0.543);5891 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2028, h * 0.5723);5892 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2281, h * 0.6096);5893 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2402, h * 0.644);5894 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2424, h * 0.6848);5895 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.216, h * 0.6612);5896 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.1895, h * 0.6239);5897 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.1719, h * 0.5824);5898 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.1713, h * 0.543);5899 c.close();5900 c.moveTo(w * 0.2507, h * 0.7794);5901 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.254, h * 0.7421);5902 c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.27, h * 0.7264);5903 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2986, h * 0.73);5904 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3234, h * 0.7457);5905 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3218, h * 0.7815);5906 c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.3019, h * 0.7987);5907 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.27, h * 0.7923);5908 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2507, h * 0.7794);5909 c.close();5910 c.moveTo(w * 0.2799, h * 0.5265);5911 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.3003, h * 0.515);5912 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3317, h * 0.515);5913 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3774, h * 0.5315);5914 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4033, h * 0.5487);5915 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3906, h * 0.5595);5916 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3493, h * 0.5616);5917 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3069, h * 0.5444);5918 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2799, h * 0.5265);5919 c.close();5920 c.moveTo(w * 0.2887, h * 0.3933);5921 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.314, h * 0.414);5922 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3322, h * 0.4391);5923 c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.3344, h * 0.4699);5924 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.3196, h * 0.485);5925 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2887, h * 0.4592);5926 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.27, h * 0.4269);5927 c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.2727, h * 0.4054);5928 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2887, h * 0.3933);5929 c.close();5930 c.moveTo(w * 0.4613, h * 0.262);5931 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4867, h * 0.2827);5932 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5049, h * 0.3078);5933 c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.5071, h * 0.3386);5934 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4922, h * 0.3537);5935 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4613, h * 0.3279);5936 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4426, h * 0.2956);5937 c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.4453, h * 0.2741);5938 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4613, h * 0.262);5939 c.close();5940 c.moveTo(w * 0.4525, h * 0.3952);5941 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4729, h * 0.3837);5942 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5043, h * 0.3837);5943 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.55, h * 0.4002);5944 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5759, h * 0.4174);5945 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5633, h * 0.4282);5946 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5219, h * 0.4303);5947 c.arcTo(w * 0.1653, h * 0.1074, 0, 0, 1, w * 0.4795, h * 0.4131);5948 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4525, h * 0.3952);5949 c.close();5950 c.moveTo(w * 0.6217, h * 0.1426);5951 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6471, h * 0.1633);5952 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6652, h * 0.1884);5953 c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.6674, h * 0.2192);5954 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6526, h * 0.2342);5955 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6217, h * 0.2085);5956 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.603, h * 0.1762);5957 c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.6057, h * 0.1547);5958 c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6217, h * 0.1426);5959 c.close();5960 c.moveTo(w * 0.6129, h * 0.2758);5961 c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.6333, h * 0.2643);5962 c.arcTo(w * 0.0826, h * 0.1433, 0, 0, 1, w * 0.6647, h * 0.2643);5963 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7104, h * 0.2808);5964 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);5965 c.arcTo(w * 0.0826, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298);5966 c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.6823, h * 0.3109);5967 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6399, h * 0.2937);5968 c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6129, h * 0.2758);5969 c.close();5970 c.fillAndStroke();5971 5972 c.setStrokeWidth(2 * strokeWidth);5973 c.setStrokeColor('#292929');5974 c.setLineJoin('round');5975 c.begin();5976 c.moveTo(0, h * 0.6239);5977 c.lineTo(0, h * 0.3754);5978 c.lineTo(w * 0.5, 0);5979 c.lineTo(w, h * 0.3754);5980 c.lineTo(w, h * 0.6239);5981 c.lineTo(w * 0.5, h);5982 c.close();5983 c.stroke();5984};5985mxCellRenderer.registerShape(mxShapeAws3dElasticBeanstalk.prototype.cst.ELASTIC_BEANSTALK, mxShapeAws3dElasticBeanstalk);5986//**********************************************************************************************************************************************************5987//SimpleDB 25988//**********************************************************************************************************************************************************5989/**5990* Extends mxShape.5991*/5992function mxShapeAws3dSimpleDB2(bounds, fill, stroke, strokewidth)5993{5994 mxShape.call(this);5995 this.bounds = bounds;5996 this.fill = fill;5997 this.stroke = stroke;5998 this.strokewidth = (strokewidth != null) ? strokewidth : 1;5999};6000/**6001* Extends mxShape.6002*/6003mxUtils.extend(mxShapeAws3dSimpleDB2, mxShape);6004mxShapeAws3dSimpleDB2.prototype.cst = {6005 SIMPLE_DB_2 : 'mxgraph.aws3d.simpleDb2',6006 SHADING_COLORS : 'shadingCols'6007};6008/**6009* Function: paintVertexShape6010* 6011* Paints the vertex shape.6012*/6013mxShapeAws3dSimpleDB2.prototype.paintVertexShape = function(c, x, y, w, h)6014{6015 c.translate(x, y);6016 6017 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6018 var strokeWidth1 = strokeWidth * w / 181.5;6019 var strokeWidth2 = strokeWidth * h / 210;6020 6021 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6022 this.background(c, 0, 0, w, h, strokeWidth);6023 c.setShadow(false);6024 this.foreground(c, 0, 0, w, h, strokeWidth);6025};6026mxShapeAws3dSimpleDB2.prototype.background = function(c, x, y, w, h, strokeWidth)6027{6028 c.setStrokeWidth(strokeWidth);6029 c.save();6030 c.save();6031 c.save();6032 c.setStrokeWidth(2 * strokeWidth);6033 c.setStrokeColor('#292929');6034 c.setLineJoin('round');6035 c.begin();6036 c.moveTo(0, h * 0.8183);6037 c.lineTo(0, h * 0.1848);6038 c.lineTo(w * 0.3366, 0);6039 c.lineTo(w * 0.6293, h * 0.0021);6040 c.lineTo(w, h * 0.1833);6041 c.lineTo(w, h * 0.8183);6042 c.lineTo(w * 0.6694, h);6043 c.lineTo(w * 0.4986, h * 0.9091);6044 c.lineTo(w * 0.3333, h);6045 c.close();6046 c.fillAndStroke();6047};6048mxShapeAws3dSimpleDB2.prototype.foreground = function(c, x, y, w, h, strokeWidth)6049{6050 c.restore();6051 c.setShadow(false);6052 c.setFillColor('#000000');6053 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6054 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6055 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6056 6057 c.begin();6058 c.moveTo(0, h * 0.1848);6059 c.lineTo(w * 0.168, h * 0.1833);6060 c.lineTo(0, h * 0.365);6061 c.lineTo(w * 0.3333, h * 0.5467);6062 c.lineTo(w * 0.3333, h);6063 c.lineTo(0, h * 0.8183);6064 c.close();6065 c.moveTo(w * 0.4986, h * 0.9078);6066 c.lineTo(w * 0.4986, h * 0.3655);6067 c.lineTo(w * 0.6667, h * 0.5457);6068 c.lineTo(w * 0.6667, h);6069 c.close();6070 c.fill();6071 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6072 c.begin();6073 c.moveTo(w * 0.3333, h * 0.5467);6074 c.lineTo(w * 0.4986, h * 0.3655);6075 c.lineTo(w * 0.4986, h * 0.9076);6076 c.lineTo(w * 0.3333, h);6077 c.close();6078 c.moveTo(w * 0.8292, h * 0.1822);6079 c.lineTo(w, h * 0.1848);6080 c.lineTo(w, h * 0.8183);6081 c.lineTo(w * 0.6667, h);6082 c.lineTo(w * 0.6667, h * 0.5441);6083 c.lineTo(w, h * 0.3666);6084 c.close();6085 c.fill();6086 6087 c.restore();6088 c.setShadow(false);6089 c.setLineJoin('round');6090 6091 c.begin();6092 c.moveTo(0, h * 0.1848);6093 c.lineTo(w * 0.168, h * 0.1833);6094 c.lineTo(0, h * 0.365);6095 c.lineTo(w * 0.3333, h * 0.5467);6096 c.lineTo(w * 0.3333, h);6097 c.lineTo(0, h * 0.8183);6098 c.close();6099 c.moveTo(w * 0.4986, h * 0.9078);6100 c.lineTo(w * 0.4986, h * 0.3655);6101 c.lineTo(w * 0.6667, h * 0.5457);6102 c.lineTo(w * 0.6667, h);6103 c.close();6104 c.moveTo(w * 0.3333, h * 0.5467);6105 c.lineTo(w * 0.4986, h * 0.3655);6106 c.lineTo(w * 0.4986, h * 0.9076);6107 c.lineTo(w * 0.3333, h);6108 c.close();6109 c.moveTo(w * 0.8292, h * 0.1822);6110 c.lineTo(w, h * 0.1848);6111 c.lineTo(w, h * 0.8183);6112 c.lineTo(w * 0.6667, h);6113 c.lineTo(w * 0.6667, h * 0.5441);6114 c.lineTo(w, h * 0.3666);6115 c.close();6116 c.moveTo(w * 0.1669, h * 0.1828);6117 c.lineTo(w * 0.4986, h * 0.3655);6118 c.lineTo(w * 0.8314, h * 0.1833);6119 c.lineTo(w * 0.4986, h * 0.0031);6120 c.close();6121 c.stroke();6122 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6123 c.setFillColor(strokeColor);6124 c.begin();6125 c.moveTo(w * 0.2634, h * 0.1833);6126 c.lineTo(w * 0.5003, h * 0.0535);6127 c.lineTo(w * 0.7394, h * 0.1833);6128 c.lineTo(w * 0.5003, h * 0.3136);6129 c.close();6130 c.fill();6131 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000');6132 c.restore();6133 c.setShadow(false);6134 c.setStrokeWidth(3 * strokeWidth);6135 c.setStrokeColor(fillColor);6136 6137 c.begin();6138 c.moveTo(w * 0.3003, h * 0.2108);6139 c.lineTo(w * 0.5642, h * 0.068);6140 c.moveTo(w * 0.4429, h * 0.0693);6141 c.lineTo(w * 0.7059, h * 0.2121);6142 c.moveTo(w * 0.6667, h * 0.2458);6143 c.lineTo(w * 0.3974, h * 0.0992);6144 c.moveTo(w * 0.3499, h * 0.1277);6145 c.lineTo(w * 0.6088, h * 0.2698);6146 c.moveTo(w * 0.3009, h * 0.1556);6147 c.lineTo(w * 0.5496, h * 0.2913);6148 c.stroke();6149 c.setStrokeWidth(2 * strokeWidth);6150 c.setStrokeColor('#292929');6151 c.setLineJoin('round');6152 c.begin();6153 c.moveTo(0, h * 0.8183);6154 c.lineTo(0, h * 0.1848);6155 c.lineTo(w * 0.3366, 0);6156 c.lineTo(w * 0.6293, h * 0.0021);6157 c.lineTo(w, h * 0.1833);6158 c.lineTo(w, h * 0.8183);6159 c.lineTo(w * 0.6694, h);6160 c.lineTo(w * 0.4986, h * 0.9091);6161 c.lineTo(w * 0.3333, h);6162 c.close();6163 c.stroke();6164};6165mxCellRenderer.registerShape(mxShapeAws3dSimpleDB2.prototype.cst.SIMPLE_DB_2, mxShapeAws3dSimpleDB2);6166//**********************************************************************************************************************************************************6167//Workflow Service6168//**********************************************************************************************************************************************************6169/**6170* Extends mxShape.6171*/6172function mxShapeAws3dWorkflowService(bounds, fill, stroke, strokewidth)6173{6174 mxShape.call(this);6175 this.bounds = bounds;6176 this.fill = fill;6177 this.stroke = stroke;6178 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6179};6180/**6181* Extends mxShape.6182*/6183mxUtils.extend(mxShapeAws3dWorkflowService, mxShape);6184mxShapeAws3dWorkflowService.prototype.cst = {6185 WORKFLOW_SERVICE : 'mxgraph.aws3d.workflowService',6186 SHADING_COLORS : 'shadingCols'6187};6188/**6189* Function: paintVertexShape6190* 6191* Paints the vertex shape.6192*/6193mxShapeAws3dWorkflowService.prototype.paintVertexShape = function(c, x, y, w, h)6194{6195 c.translate(x, y);6196 6197 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6198 var strokeWidth1 = strokeWidth * w / 181.5;6199 var strokeWidth2 = strokeWidth * h / 210;6200 6201 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6202 this.background(c, 0, 0, w, h, strokeWidth);6203 c.setShadow(false);6204 this.foreground(c, 0, 0, w, h, strokeWidth);6205};6206mxShapeAws3dWorkflowService.prototype.background = function(c, x, y, w, h, strokeWidth)6207{6208 c.setStrokeWidth(strokeWidth);6209 c.save();6210 c.save();6211 c.save();6212 c.setStrokeWidth(2 * strokeWidth);6213 c.setStrokeColor('#292929');6214 c.setLineJoin('round');6215 c.begin();6216 c.moveTo(0, h * 0.6456);6217 c.lineTo(w * 0.2481, 0);6218 c.lineTo(w * 0.7497, 0);6219 c.lineTo(w, h * 0.6456);6220 c.lineTo(w * 0.4984, h);6221 c.close();6222 c.fillAndStroke();6223};6224mxShapeAws3dWorkflowService.prototype.foreground = function(c, x, y, w, h, strokeWidth)6225{6226 c.restore();6227 c.setShadow(false);6228 c.setFillColor('#000000');6229 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorkflowService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6230 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6231 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6232 6233 c.begin();6234 c.moveTo(0, h * 0.6456);6235 c.lineTo(w * 0.2486, 0);6236 c.lineTo(w * 0.2486, h * 0.3531);6237 c.lineTo(w * 0.4984, h);6238 c.close();6239 c.moveTo(w * 0.7497, h * 0.3531);6240 c.lineTo(w * 0.7497, 0);6241 c.lineTo(w, h * 0.6456);6242 c.close();6243 c.fill();6244 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6245 c.begin();6246 c.moveTo(w * 0.4984, h);6247 c.lineTo(w * 0.7486, h * 0.3531);6248 c.lineTo(w, h * 0.6456);6249 c.lineTo(w * 0.4967, h);6250 c.close();6251 c.fill();6252 6253 c.restore();6254 c.setShadow(false);6255 c.setLineJoin('round');6256 6257 c.begin();6258 c.moveTo(w * 0.7497, h * 0.3531);6259 c.lineTo(w * 0.7497, 0);6260 c.lineTo(w, h * 0.6456);6261 c.close();6262 c.moveTo(0, h * 0.6456);6263 c.lineTo(w * 0.2486, 0);6264 c.lineTo(w * 0.2486, h * 0.3531);6265 c.lineTo(w * 0.4984, h);6266 c.lineTo(w * 0.7486, h * 0.3531);6267 c.lineTo(w, h * 0.6456);6268 c.lineTo(w * 0.4967, h);6269 c.close();6270 c.moveTo(w * 0.2486, h * 0.3531);6271 c.lineTo(w * 0.7508, h * 0.3531);6272 c.moveTo(w * 0.2488, h * 0.353);6273 c.lineTo(0, h * 0.6486);6274 c.stroke();6275 c.restore();6276 c.setShadow(false);6277 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6278 c.setFillColor(strokeColor);6279 c.setStrokeWidth(2 * strokeWidth);6280 c.begin();6281 c.ellipse(w * 0.2925, h * 0.031, w * 0.4116, h * 0.2925);6282 c.fill();6283 6284 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');6285 c.setStrokeColor(fillColor);6286 6287 c.begin();6288 c.moveTo(w * 0.5252, h * 0.0465);6289 c.lineTo(w * 0.5873, h * 0.0903);6290 c.lineTo(w * 0.5483, h * 0.1173);6291 c.lineTo(w * 0.4874, h * 0.0728);6292 c.close();6293 c.moveTo(w * 0.4896, h * 0.1132);6294 c.lineTo(w * 0.5005, h * 0.1705);6295 c.lineTo(w * 0.4182, h * 0.1631);6296 c.lineTo(w * 0.4122, h * 0.1058);6297 c.close();6298 c.moveTo(w * 0.3584, h * 0.1631);6299 c.lineTo(w * 0.4204, h * 0.2062);6300 c.lineTo(w * 0.3825, h * 0.2332);6301 c.lineTo(w * 0.32, h * 0.19);6302 c.close();6303 c.moveTo(w * 0.4594, h * 0.2338);6304 c.lineTo(w * 0.5214, h * 0.2783);6305 c.lineTo(w * 0.4835, h * 0.3053);6306 c.lineTo(w * 0.4215, h * 0.2608);6307 c.close();6308 c.moveTo(w * 0.5187, h * 0.0943);6309 c.lineTo(w * 0.4879, h * 0.1152);6310 c.moveTo(w * 0.421, h * 0.1624);6311 c.lineTo(w * 0.3895, h * 0.1846);6312 c.moveTo(w * 0.5, h * 0.1698);6313 c.lineTo(w * 0.5554, h * 0.2089);6314 c.lineTo(w * 0.4885, h * 0.2567);6315 c.stroke();6316 c.setStrokeWidth(2 * strokeWidth);6317 c.setStrokeColor('#292929');6318 c.setLineJoin('round');6319 c.begin();6320 c.moveTo(0, h * 0.6456);6321 c.lineTo(w * 0.2481, 0);6322 c.lineTo(w * 0.7497, 0);6323 c.lineTo(w, h * 0.6456);6324 c.lineTo(w * 0.4984, h);6325 c.close();6326 c.close();6327 c.stroke();6328};6329mxCellRenderer.registerShape(mxShapeAws3dWorkflowService.prototype.cst.WORKFLOW_SERVICE, mxShapeAws3dWorkflowService);6330//**********************************************************************************************************************************************************6331//Decider6332//**********************************************************************************************************************************************************6333/**6334* Extends mxShape.6335*/6336function mxShapeAws3dDecider(bounds, fill, stroke, strokewidth)6337{6338 mxShape.call(this);6339 this.bounds = bounds;6340 this.fill = fill;6341 this.stroke = stroke;6342 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6343};6344/**6345* Extends mxShape.6346*/6347mxUtils.extend(mxShapeAws3dDecider, mxShape);6348mxShapeAws3dDecider.prototype.cst = {6349 DECIDER : 'mxgraph.aws3d.decider',6350 SHADING_COLORS : 'shadingCols'6351};6352/**6353* Function: paintVertexShape6354* 6355* Paints the vertex shape.6356*/6357mxShapeAws3dDecider.prototype.paintVertexShape = function(c, x, y, w, h)6358{6359 c.translate(x, y);6360 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6361 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));6362 var strokeWidth1 = strokeWidth * w / 74;6363 var strokeWidth2 = strokeWidth * h / 50;6364 6365 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6366 6367 c.setStrokeWidth(strokeWidth);6368 c.setShadow(false);6369 c.save();6370 c.save();6371 c.setStrokeWidth(2 * strokeWidth);6372 c.setStrokeColor('#292929');6373 c.setLineJoin('round');6374 if (isShadow == 1)6375 {6376 c.setShadow(true);6377 }6378 c.begin();6379 c.moveTo(0, h * 0.572);6380 c.lineTo(w * 0.0865, h * 0.284);6381 c.lineTo(w * 0.4203, 0);6382 c.lineTo(w * 0.5865, 0);6383 c.lineTo(w * 0.919, h * 0.286);6384 c.lineTo(w, h * 0.566);6385 c.lineTo(w * 0.5027, h);6386 c.close();6387 c.fillAndStroke();6388 6389 c.restore();6390 c.setFillColor('#000000');6391 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDecider.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6392 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6393 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6394 6395 c.begin();6396 c.moveTo(0, h * 0.566);6397 c.lineTo(w * 0.0892, h * 0.282);6398 c.lineTo(w * 0.0878, h * 0.426);6399 c.lineTo(w * 0.4216, h * 0.712);6400 c.lineTo(w * 0.5865, h * 0.712);6401 c.lineTo(w * 0.5027, h);6402 c.close();6403 c.fill();6404 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6405 c.begin();6406 c.moveTo(w * 0.5027, h);6407 c.lineTo(w * 0.5865, h * 0.712);6408 c.lineTo(w * 0.9176, h * 0.43);6409 c.lineTo(w, h * 0.566);6410 c.close();6411 c.fill();6412 6413 c.restore();6414 c.setLineJoin('round');6415 6416 c.begin();6417 c.moveTo(0, h * 0.566);6418 c.lineTo(w * 0.0892, h * 0.282);6419 c.lineTo(w * 0.0878, h * 0.426);6420 c.lineTo(w * 0.4216, h * 0.712);6421 c.lineTo(w * 0.5865, h * 0.712);6422 c.lineTo(w * 0.5027, h);6423 c.close();6424 c.moveTo(w * 0.5027, h);6425 c.lineTo(w * 0.5865, h * 0.712);6426 c.lineTo(w * 0.9176, h * 0.43);6427 c.lineTo(w, h * 0.566);6428 c.close();6429 c.moveTo(0, h * 0.572);6430 c.lineTo(w * 0.0892, h * 0.422);6431 c.moveTo(w * 0.5027, h);6432 c.lineTo(w * 0.4189, h * 0.708);6433 c.moveTo(w * 0.9176, h * 0.43);6434 c.lineTo(w * 0.9176, h * 0.29);6435 c.stroke();6436 c.setStrokeWidth(1.6 * strokeWidth);6437 c.setLineJoin('square');6438 c.begin();6439 c.moveTo(w * 0.4973, h * 0.1523);6440 c.lineTo(w * 0.5608, h * 0.0982);6441 c.lineTo(w * 0.6581, h * 0.1844);6442 c.lineTo(w * 0.5986, h * 0.2365);6443 c.close();6444 c.moveTo(w * 0.3784, h * 0.2164);6445 c.lineTo(w * 0.5054, h * 0.2305);6446 c.lineTo(w * 0.5203, h * 0.3407);6447 c.lineTo(w * 0.3892, h * 0.3246);6448 c.close();6449 c.moveTo(w * 0.2932, h * 0.3246);6450 c.lineTo(w * 0.3919, h * 0.4128);6451 c.lineTo(w * 0.3334, h * 0.4647);6452 c.lineTo(w * 0.2357, h * 0.38);6453 c.close();6454 c.moveTo(w * 0.4568, h * 0.4649);6455 c.lineTo(w * 0.5554, h * 0.5511);6456 c.lineTo(w * 0.4932, h * 0.6032);6457 c.lineTo(w * 0.3946, h * 0.517);6458 c.close();6459 c.moveTo(w * 0.5473, h * 0.1924);6460 c.lineTo(w * 0.5027, h * 0.2365);6461 c.moveTo(w * 0.4, h * 0.3186);6462 c.lineTo(w * 0.3446, h * 0.3667);6463 c.moveTo(w * 0.5189, h * 0.3387);6464 c.lineTo(w * 0.6081, h * 0.4148);6465 c.lineTo(w * 0.5068, h * 0.501);6466 c.stroke();6467 c.setStrokeColor('#292929');6468 c.begin();6469 c.moveTo(0, h * 0.572);6470 c.lineTo(w * 0.0865, h * 0.284);6471 c.lineTo(w * 0.4203, 0);6472 c.lineTo(w * 0.5865, 0);6473 c.lineTo(w * 0.919, h * 0.286);6474 c.lineTo(w, h * 0.566);6475 c.lineTo(w * 0.5027, h);6476 c.close();6477 c.stroke();6478};6479mxCellRenderer.registerShape(mxShapeAws3dDecider.prototype.cst.DECIDER, mxShapeAws3dDecider);6480//**********************************************************************************************************************************************************6481//Search Engine6482//**********************************************************************************************************************************************************6483/**6484* Extends mxShape.6485*/6486function mxShapeAws3dSearchEngine(bounds, fill, stroke, strokewidth)6487{6488 mxShape.call(this);6489 this.bounds = bounds;6490 this.fill = fill;6491 this.stroke = stroke;6492 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6493};6494/**6495* Extends mxShape.6496*/6497mxUtils.extend(mxShapeAws3dSearchEngine, mxShape);6498mxShapeAws3dSearchEngine.prototype.cst = {6499 SEARCH_ENGINE : 'mxgraph.aws3d.searchEngine',6500 SHADING_COLORS : 'shadingCols'6501};6502/**6503* Function: paintVertexShape6504* 6505* Paints the vertex shape.6506*/6507mxShapeAws3dSearchEngine.prototype.paintVertexShape = function(c, x, y, w, h)6508{6509 c.translate(x, y);6510 6511 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6512 var strokeWidth1 = strokeWidth * w / 180;6513 var strokeWidth2 = strokeWidth * h / 192;6514 6515 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6516 this.background(c, 0, 0, w, h, strokeWidth);6517 c.setShadow(false);6518 this.foreground(c, 0, 0, w, h, strokeWidth);6519};6520mxShapeAws3dSearchEngine.prototype.background = function(c, x, y, w, h, strokeWidth)6521{6522 c.setStrokeWidth(strokeWidth);6523 c.save();6524 c.save();6525 c.save();6526 c.setStrokeWidth(2 * strokeWidth);6527 c.setStrokeColor('#292929');6528 c.setLineJoin('round');6529 c.begin();6530 c.moveTo(0, h * 0.7281);6531 c.lineTo(w * 0.1667, h * 0.5444);6532 c.lineTo(w * 0.1667, h * 0.1832);6533 c.lineTo(w * 0.5011, 0);6534 c.lineTo(w * 0.8333, h * 0.1832);6535 c.lineTo(w * 0.8333, h * 0.5446);6536 c.lineTo(w, h * 0.7281);6537 c.lineTo(w * 0.7486, h * 0.7735);6538 c.lineTo(w * 0.5819, h * 0.8617);6539 c.lineTo(w * 0.5011, h);6540 c.lineTo(w * 0.4169, h * 0.8653);6541 c.lineTo(w * 0.2475, h * 0.7704);6542 c.close();6543 c.fillAndStroke();6544};6545mxShapeAws3dSearchEngine.prototype.foreground = function(c, x, y, w, h, strokeWidth)6546{6547 c.restore();6548 c.setShadow(false);6549 c.setFillColor('#000000');6550 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSearchEngine.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6551 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6552 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6553 6554 c.begin();6555 c.moveTo(w * 0.1672, h * 0.1837);6556 c.lineTo(w * 0.4989, h * 0.3638);6557 c.lineTo(w * 0.4989, h * 0.7291);6558 c.lineTo(w * 0.5825, h * 0.8633);6559 c.lineTo(w * 0.4989, h);6560 c.lineTo(w * 0.4164, h * 0.8622);6561 c.lineTo(w * 0.2458, h * 0.7719);6562 c.lineTo(0, h * 0.7276);6563 c.lineTo(w * 0.1661, h * 0.5454);6564 c.close();6565 c.moveTo(w * 0.7486, h * 0.7714);6566 c.lineTo(w * 0.8317, h * 0.5459);6567 c.lineTo(w, h * 0.727);6568 c.close();6569 c.fill();6570 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6571 c.begin();6572 c.moveTo(w * 0.4989, h * 0.3643);6573 c.lineTo(w * 0.8317, h * 0.1827);6574 c.lineTo(w * 0.8317, h * 0.5465);6575 c.lineTo(w * 0.7508, h * 0.7714);6576 c.lineTo(w * 0.5836, h * 0.8633);6577 c.lineTo(w * 0.4989, h * 0.727);6578 c.close();6579 c.fill();6580 6581 c.restore();6582 c.setShadow(false);6583 c.setLineJoin('round');6584 6585 c.begin();6586 c.moveTo(w * 0.1672, h * 0.1837);6587 c.lineTo(w * 0.4989, h * 0.3638);6588 c.lineTo(w * 0.4989, h * 0.7291);6589 c.lineTo(w * 0.5825, h * 0.8633);6590 c.lineTo(w * 0.4989, h);6591 c.lineTo(w * 0.4164, h * 0.8622);6592 c.lineTo(w * 0.2458, h * 0.7719);6593 c.lineTo(0, h * 0.7276);6594 c.lineTo(w * 0.1661, h * 0.5454);6595 c.close();6596 c.moveTo(w * 0.7486, h * 0.7714);6597 c.lineTo(w * 0.8317, h * 0.5459);6598 c.lineTo(w, h * 0.727);6599 c.close();6600 c.moveTo(w * 0.4989, h * 0.3643);6601 c.lineTo(w * 0.8317, h * 0.1827);6602 c.lineTo(w * 0.8317, h * 0.5465);6603 c.lineTo(w * 0.7508, h * 0.7714);6604 c.lineTo(w * 0.5836, h * 0.8633);6605 c.lineTo(w * 0.4989, h * 0.727);6606 c.close();6607 c.moveTo(w * 0.1667, h * 0.5459);6608 c.lineTo(w * 0.2486, h * 0.7704);6609 c.moveTo(w * 0.4164, h * 0.8633);6610 c.lineTo(w * 0.4989, h * 0.727);6611 c.lineTo(w * 0.4989, h);6612 c.stroke();6613 c.restore();6614 c.setShadow(false);6615 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6616 c.setFillColor(strokeColor);6617 6618 c.begin();6619 c.moveTo(w * 0.3427, h * 0.179);6620 c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 1, w * 0.3267, h * 0.1487);6621 c.arcTo(w * 0.0664, h * 0.0365, 0, 0, 1, w * 0.3621, h * 0.1227);6622 c.arcTo(w * 0.1052, h * 0.0992, 0, 0, 1, w * 0.4247, h * 0.1195);6623 c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4884, h * 0.1018);6624 c.arcTo(w * 0.1329, h * 0.1253, 0, 0, 1, w * 0.5548, h * 0.1112);6625 c.arcTo(w * 0.0377, h * 0.0344, 0, 0, 1, w * 0.572, h * 0.166);6626 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.6047, h * 0.1775);6627 c.arcTo(w * 0.021, h * 0.0198, 0, 0, 1, w * 0.5936, h * 0.2046);6628 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.6008, h * 0.2416);6629 c.arcTo(w * 0.072, h * 0.0678, 0, 0, 1, w * 0.5437, h * 0.2677);6630 c.arcTo(w * 0.1052, h * 0.0939, 0, 0, 1, w * 0.4828, h * 0.2563);6631 c.close();6632 c.moveTo(w * 0.448, h * 0.2156);6633 c.arcTo(w * 0.0111, h * 0.0104, 0, 0, 0, w * 0.459, h * 0.2255);6634 c.arcTo(w * 0.0138, h * 0.013, 0, 0, 0, w * 0.4729, h * 0.2182);6635 c.lineTo(w * 0.4773, h * 0.1874);6636 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.5116, h * 0.1759);6637 c.arcTo(w * 0.0277, h * 0.0626, 0, 0, 0, w * 0.5233, h * 0.1503);6638 c.arcTo(w * 0.0554, h * 0.0261, 0, 0, 0, w * 0.5022, h * 0.1336);6639 c.arcTo(w * 0.0886, h * 0.0835, 0, 0, 0, w * 0.4607, h * 0.1305);6640 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4313, h * 0.142);6641 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.4175, h * 0.1597);6642 c.arcTo(w * 0.0249, h * 0.0235, 0, 0, 0, w * 0.4313, h * 0.1822);6643 c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 0, w * 0.4535, h * 0.1884);6644 c.close();6645 c.moveTo(w * 0.4718, h * 0.1764);6646 c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 1, w * 0.4496, h * 0.1754);6647 c.arcTo(w * 0.0221, h * 0.0157, 0, 0, 1, w * 0.4369, h * 0.1634);6648 c.arcTo(w * 0.0221, h * 0.0183, 0, 0, 1, w * 0.4496, h * 0.1467);6649 c.arcTo(w * 0.0609, h * 0.0574, 0, 0, 1, w * 0.4759, h * 0.1414);6650 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.5033, h * 0.1514);6651 c.arcTo(w * 0.0443, h * 0.0209, 0, 0, 1, w * 0.495, h * 0.1701);6652 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.4718, h * 0.1764);6653 c.close();6654 c.fill();6655 c.setStrokeWidth(2 * strokeWidth);6656 c.setStrokeColor('#292929');6657 c.setLineJoin('round');6658 c.begin();6659 c.moveTo(0, h * 0.7281);6660 c.lineTo(w * 0.1667, h * 0.5444);6661 c.lineTo(w * 0.1667, h * 0.1832);6662 c.lineTo(w * 0.5011, 0);6663 c.lineTo(w * 0.8333, h * 0.1832);6664 c.lineTo(w * 0.8333, h * 0.5446);6665 c.lineTo(w, h * 0.7281);6666 c.lineTo(w * 0.7486, h * 0.7735);6667 c.lineTo(w * 0.5819, h * 0.8617);6668 c.lineTo(w * 0.5011, h);6669 c.lineTo(w * 0.4169, h * 0.8653);6670 c.lineTo(w * 0.2475, h * 0.7704);6671 c.close();6672 c.stroke();6673};6674mxCellRenderer.registerShape(mxShapeAws3dSearchEngine.prototype.cst.SEARCH_ENGINE, mxShapeAws3dSearchEngine);6675//**********************************************************************************************************************************************************6676//Security Token Service6677//**********************************************************************************************************************************************************6678/**6679* Extends mxShape.6680*/6681function mxShapeAws3dSecurityTokenService(bounds, fill, stroke, strokewidth)6682{6683 mxShape.call(this);6684 this.bounds = bounds;6685 this.fill = fill;6686 this.stroke = stroke;6687 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6688};6689/**6690* Extends mxShape.6691*/6692mxUtils.extend(mxShapeAws3dSecurityTokenService, mxShape);6693mxShapeAws3dSecurityTokenService.prototype.cst = {6694 SECURITY_TOKEN_SERVICE : 'mxgraph.aws3d.securityTokenService',6695 SHADING_COLORS : 'shadingCols'6696};6697/**6698* Function: paintVertexShape6699* 6700* Paints the vertex shape.6701*/6702mxShapeAws3dSecurityTokenService.prototype.paintVertexShape = function(c, x, y, w, h)6703{6704 c.translate(x, y);6705 6706 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6707 var strokeWidth1 = strokeWidth * w / 180;6708 var strokeWidth2 = strokeWidth * h / 192;6709 6710 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6711 this.background(c, 0, 0, w, h, strokeWidth);6712 c.setShadow(false);6713 this.foreground(c, 0, 0, w, h, strokeWidth);6714};6715mxShapeAws3dSecurityTokenService.prototype.background = function(c, x, y, w, h, strokeWidth)6716{6717 c.setStrokeWidth(strokeWidth);6718 c.save();6719 c.save();6720 c.save();6721 c.setStrokeWidth(2 * strokeWidth);6722 c.setStrokeColor('#292929');6723 c.setLineJoin('round');6724 c.begin();6725 c.moveTo(0, h * 0.7281);6726 c.lineTo(w * 0.1667, h * 0.5444);6727 c.lineTo(w * 0.1667, h * 0.1832);6728 c.lineTo(w * 0.5011, 0);6729 c.lineTo(w * 0.8333, h * 0.1832);6730 c.lineTo(w * 0.8333, h * 0.5446);6731 c.lineTo(w, h * 0.7281);6732 c.lineTo(w * 0.7486, h * 0.7735);6733 c.lineTo(w * 0.5819, h * 0.8617);6734 c.lineTo(w * 0.5011, h);6735 c.lineTo(w * 0.4169, h * 0.8653);6736 c.lineTo(w * 0.2475, h * 0.7704);6737 c.close();6738 c.fillAndStroke();6739};6740mxShapeAws3dSecurityTokenService.prototype.foreground = function(c, x, y, w, h, strokeWidth)6741{6742 c.restore();6743 c.setShadow(false);6744 c.setFillColor('#000000');6745 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSecurityTokenService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6746 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6747 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6748 6749 c.begin();6750 c.moveTo(w * 0.1672, h * 0.1837);6751 c.lineTo(w * 0.4989, h * 0.3638);6752 c.lineTo(w * 0.4989, h * 0.7291);6753 c.lineTo(w * 0.5825, h * 0.8633);6754 c.lineTo(w * 0.4989, h);6755 c.lineTo(w * 0.4164, h * 0.8622);6756 c.lineTo(w * 0.2458, h * 0.7719);6757 c.lineTo(0, h * 0.7276);6758 c.lineTo(w * 0.1661, h * 0.5454);6759 c.close();6760 c.moveTo(w * 0.7486, h * 0.7714);6761 c.lineTo(w * 0.8317, h * 0.5459);6762 c.lineTo(w, h * 0.727);6763 c.close();6764 c.fill();6765 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6766 c.begin();6767 c.moveTo(w * 0.4989, h * 0.3643);6768 c.lineTo(w * 0.8317, h * 0.1827);6769 c.lineTo(w * 0.8317, h * 0.5465);6770 c.lineTo(w * 0.7508, h * 0.7714);6771 c.lineTo(w * 0.5836, h * 0.8633);6772 c.lineTo(w * 0.4989, h * 0.727);6773 c.close();6774 c.fill();6775 6776 c.restore();6777 c.setShadow(false);6778 c.setLineJoin('round');6779 6780 c.begin();6781 c.moveTo(w * 0.1672, h * 0.1837);6782 c.lineTo(w * 0.4989, h * 0.3638);6783 c.lineTo(w * 0.4989, h * 0.7291);6784 c.lineTo(w * 0.5825, h * 0.8633);6785 c.lineTo(w * 0.4989, h);6786 c.lineTo(w * 0.4164, h * 0.8622);6787 c.lineTo(w * 0.2458, h * 0.7719);6788 c.lineTo(0, h * 0.7276);6789 c.lineTo(w * 0.1661, h * 0.5454);6790 c.close();6791 c.moveTo(w * 0.7486, h * 0.7714);6792 c.lineTo(w * 0.8317, h * 0.5459);6793 c.lineTo(w, h * 0.727);6794 c.close();6795 c.moveTo(w * 0.4989, h * 0.3643);6796 c.lineTo(w * 0.8317, h * 0.1827);6797 c.lineTo(w * 0.8317, h * 0.5465);6798 c.lineTo(w * 0.7508, h * 0.7714);6799 c.lineTo(w * 0.5836, h * 0.8633);6800 c.lineTo(w * 0.4989, h * 0.727);6801 c.close();6802 c.moveTo(w * 0.1667, h * 0.5459);6803 c.lineTo(w * 0.2486, h * 0.7704);6804 c.moveTo(w * 0.4164, h * 0.8633);6805 c.lineTo(w * 0.4989, h * 0.727);6806 c.lineTo(w * 0.4989, h);6807 c.stroke();6808 c.restore();6809 c.setShadow(false);6810 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');6811 c.setFillColor(strokeColor);6812 6813 c.begin();6814 c.moveTo(w * 0.4773, h * 0.1915);6815 c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4358, h * 0.1968);6816 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.3937, h * 0.1905);6817 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 1, w * 0.3682, h * 0.1707);6818 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.3699, h * 0.1414);6819 c.arcTo(w * 0.0775, h * 0.0731, 0, 0, 1, w * 0.4009, h * 0.118);6820 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.4524, h * 0.1059);6821 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.5028, h * 0.1112);6822 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 1, w * 0.531, h * 0.1315);6823 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.531, h * 0.1597);6824 c.lineTo(w * 0.5615, h * 0.1754);6825 c.lineTo(w * 0.5526, h * 0.1905);6826 c.lineTo(w * 0.5759, h * 0.1999);6827 c.lineTo(w * 0.5753, h * 0.2109);6828 c.lineTo(w * 0.5792, h * 0.2161);6829 c.lineTo(w * 0.6135, h * 0.2182);6830 c.lineTo(w * 0.6113, h * 0.2416);6831 c.lineTo(w * 0.5819, h * 0.2474);6832 c.close();6833 c.moveTo(w * 0.4756, h * 0.1816);6834 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.5, h * 0.1691);6835 c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.5144, h * 0.1435);6836 c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 0, w * 0.4967, h * 0.1247);6837 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.4729, h * 0.1174);6838 c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 0, w * 0.4452, h * 0.1169);6839 c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4197, h * 0.1232);6840 c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.397, h * 0.1357);6841 c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 0, w * 0.3859, h * 0.1555);6842 c.arcTo(w * 0.0305, h * 0.0287, 0, 0, 0, w * 0.4053, h * 0.178);6843 c.arcTo(w * 0.072, h * 0.0678, 0, 0, 0, w * 0.4385, h * 0.1863);6844 c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4596, h * 0.1848);6845 c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4756, h * 0.1816);6846 c.fill();6847 c.setStrokeWidth(1.5 * strokeWidth);6848 c.setLineJoin('round');6849 c.setLineCap('round');6850 c.begin();6851 c.moveTo(w * 0.4939, h * 0.1326);6852 c.lineTo(w * 0.4474, h * 0.1508);6853 c.lineTo(w * 0.4812, h * 0.1576);6854 c.moveTo(w * 0.4889, h * 0.1733);6855 c.lineTo(w * 0.4939, h * 0.1775);6856 c.moveTo(w * 0.5061, h * 0.1576);6857 c.lineTo(w * 0.5199, h * 0.1597);6858 c.moveTo(w * 0.5094, h * 0.1394);6859 c.lineTo(w * 0.5244, h * 0.1378);6860 c.moveTo(w * 0.4945, h * 0.1247);6861 c.lineTo(w * 0.4994, h * 0.1185);6862 c.moveTo(w * 0.4679, h * 0.1175);6863 c.lineTo(w * 0.4707, h * 0.1117);6864 c.moveTo(w * 0.4396, h * 0.1195);6865 c.lineTo(w * 0.4374, h * 0.1138);6866 c.moveTo(w * 0.412, h * 0.1284);6867 c.lineTo(w * 0.4059, h * 0.1232);6868 c.moveTo(w * 0.3948, h * 0.1441);6869 c.lineTo(w * 0.3804, h * 0.1425);6870 c.moveTo(w * 0.3931, h * 0.1608);6871 c.lineTo(w * 0.3804, h * 0.1649);6872 c.moveTo(w * 0.4059, h * 0.1754);6873 c.lineTo(w * 0.3998, h * 0.1801);6874 c.moveTo(w * 0.4308, h * 0.1822);6875 c.lineTo(w * 0.4286, h * 0.1884);6876 c.moveTo(w * 0.4618, h * 0.1827);6877 c.lineTo(w * 0.4635, h * 0.1868);6878 c.stroke();6879 c.setStrokeWidth(2 * strokeWidth);6880 c.setStrokeColor('#292929');6881 c.begin();6882 c.moveTo(0, h * 0.7281);6883 c.lineTo(w * 0.1667, h * 0.5444);6884 c.lineTo(w * 0.1667, h * 0.1832);6885 c.lineTo(w * 0.5011, 0);6886 c.lineTo(w * 0.8333, h * 0.1832);6887 c.lineTo(w * 0.8333, h * 0.5446);6888 c.lineTo(w, h * 0.7281);6889 c.lineTo(w * 0.7486, h * 0.7735);6890 c.lineTo(w * 0.5819, h * 0.8617);6891 c.lineTo(w * 0.5011, h);6892 c.lineTo(w * 0.4169, h * 0.8653);6893 c.lineTo(w * 0.2475, h * 0.7704);6894 c.close();6895 c.stroke();6896};6897mxCellRenderer.registerShape(mxShapeAws3dSecurityTokenService.prototype.cst.SECURITY_TOKEN_SERVICE, mxShapeAws3dSecurityTokenService);6898//**********************************************************************************************************************************************************6899//Glacier6900//**********************************************************************************************************************************************************6901/**6902* Extends mxShape.6903*/6904function mxShapeAws3dGlacier(bounds, fill, stroke, strokewidth)6905{6906 mxShape.call(this);6907 this.bounds = bounds;6908 this.fill = fill;6909 this.stroke = stroke;6910 this.strokewidth = (strokewidth != null) ? strokewidth : 1;6911};6912/**6913* Extends mxShape.6914*/6915mxUtils.extend(mxShapeAws3dGlacier, mxShape);6916mxShapeAws3dGlacier.prototype.cst = {6917 GLACIER : 'mxgraph.aws3d.glacier',6918 SHADING_COLORS : 'shadingCols'6919};6920/**6921* Function: paintVertexShape6922* 6923* Paints the vertex shape.6924*/6925mxShapeAws3dGlacier.prototype.paintVertexShape = function(c, x, y, w, h)6926{6927 c.translate(x, y);6928 6929 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));6930 var strokeWidth1 = strokeWidth * w / 180;6931 var strokeWidth2 = strokeWidth * h / 192;6932 6933 strokeWidth = Math.min(strokeWidth1, strokeWidth2);6934 this.background(c, 0, 0, w, h, strokeWidth);6935 c.setShadow(false);6936 this.foreground(c, 0, 0, w, h, strokeWidth);6937};6938mxShapeAws3dGlacier.prototype.background = function(c, x, y, w, h, strokeWidth)6939{6940 c.setStrokeWidth(strokeWidth);6941 c.save();6942 c.save();6943 c.setStrokeWidth(2 * strokeWidth);6944 c.setStrokeColor('#292929');6945 c.setLineJoin('round');6946 c.begin();6947 c.moveTo(0, h * 0.8177);6948 c.lineTo(0, h * 0.5448);6949 c.lineTo(w * 0.168, h * 0.1792);6950 c.lineTo(w * 0.5008, 0);6951 c.lineTo(w * 0.8309, h * 0.1812);6952 c.lineTo(w, h * 0.5469);6953 c.lineTo(w, h * 0.8188);6954 c.lineTo(w * 0.6661, h);6955 c.lineTo(w * 0.3333, h);6956 c.close();6957 c.fillAndStroke();6958};6959mxShapeAws3dGlacier.prototype.foreground = function(c, x, y, w, h, strokeWidth)6960{6961 c.restore();6962 c.setShadow(false);6963 c.setFillColor('#000000');6964 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dGlacier.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');6965 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');6966 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 6967 6968 c.begin();6969 c.moveTo(w * 0.1658, h * 0.1802);6970 c.lineTo(w * 0.5008, h * 0.3651);6971 c.lineTo(w * 0.6661, h * 0.9089);6972 c.lineTo(w * 0.6661, h);6973 c.lineTo(w * 0.3339, h);6974 c.lineTo(0, h * 0.8177);6975 c.lineTo(0, h * 0.5427);6976 c.close();6977 c.fill();6978 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 6979 c.begin();6980 c.moveTo(w * 0.5008, h * 0.362);6981 c.lineTo(w * 0.8314, h * 0.1823);6982 c.lineTo(w, h * 0.5469);6983 c.lineTo(w, h * 0.8177);6984 c.lineTo(w * 0.6661, h);6985 c.lineTo(w * 0.6661, h * 0.9089);6986 c.close();6987 c.fill();6988 6989 c.restore();6990 c.setShadow(false);6991 c.setLineJoin('round');6992 6993 c.begin();6994 c.moveTo(w * 0.1658, h * 0.1802);6995 c.lineTo(w * 0.5008, h * 0.3651);6996 c.lineTo(w * 0.6661, h * 0.9089);6997 c.lineTo(w * 0.6661, h);6998 c.lineTo(w * 0.3339, h);6999 c.lineTo(0, h * 0.8177);7000 c.lineTo(0, h * 0.5427);7001 c.close();7002 c.moveTo(w * 0.5008, h * 0.362);7003 c.lineTo(w * 0.8314, h * 0.1823);7004 c.lineTo(w, h * 0.5469);7005 c.lineTo(w, h * 0.8177);7006 c.lineTo(w * 0.6661, h);7007 c.lineTo(w * 0.6661, h * 0.9089);7008 c.close();7009 c.moveTo(w * 0.1675, h * 0.1797);7010 c.lineTo(0, h * 0.7281);7011 c.lineTo(w * 0.3284, h * 0.9089);7012 c.lineTo(w * 0.6661, h * 0.9089);7013 c.lineTo(w, h * 0.7266);7014 c.lineTo(w * 0.8309, h * 0.1823);7015 c.moveTo(w * 0.5003, h * 0.362);7016 c.lineTo(w * 0.3311, h * 0.9089);7017 c.lineTo(w * 0.3311, h);7018 c.stroke();7019 c.setStrokeWidth(2 * strokeWidth);7020 c.setStrokeColor('#292929');7021 c.begin();7022 c.moveTo(0, h * 0.8177);7023 c.lineTo(0, h * 0.5448);7024 c.lineTo(w * 0.168, h * 0.1792);7025 c.lineTo(w * 0.5008, 0);7026 c.lineTo(w * 0.8309, h * 0.1812);7027 c.lineTo(w, h * 0.5469);7028 c.lineTo(w, h * 0.8188);7029 c.lineTo(w * 0.6661, h);7030 c.lineTo(w * 0.3333, h);7031 c.close();7032 c.stroke();7033};7034mxCellRenderer.registerShape(mxShapeAws3dGlacier.prototype.cst.GLACIER, mxShapeAws3dGlacier);7035//**********************************************************************************************************************************************************7036//Customer Gateway7037//**********************************************************************************************************************************************************7038/**7039* Extends mxShape.7040*/7041function mxShapeAws3dCustomerGateway(bounds, fill, stroke, strokewidth)7042{7043 mxShape.call(this);7044 this.bounds = bounds;7045 this.fill = fill;7046 this.stroke = stroke;7047 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7048};7049/**7050* Extends mxShape.7051*/7052mxUtils.extend(mxShapeAws3dCustomerGateway, mxShape);7053mxShapeAws3dCustomerGateway.prototype.cst = {7054 CUSTOMER_GATEWAY : 'mxgraph.aws3d.customerGateway',7055 SHADING_COLORS : 'shadingCols'7056};7057/**7058* Function: paintVertexShape7059* 7060* Paints the vertex shape.7061*/7062mxShapeAws3dCustomerGateway.prototype.paintVertexShape = function(c, x, y, w, h)7063{7064 c.translate(x, y);7065 7066 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7067 var strokeWidth1 = strokeWidth * w / 116.7;7068 var strokeWidth2 = strokeWidth * h / 102.8;7069 7070 strokeWidth = Math.min(strokeWidth1, strokeWidth2);7071 this.background(c, 0, 0, w, h, strokeWidth);7072 c.setShadow(false);7073 this.foreground(c, 0, 0, w, h, strokeWidth);7074};7075mxShapeAws3dCustomerGateway.prototype.background = function(c, x, y, w, h, strokeWidth)7076{7077 c.setStrokeWidth(strokeWidth);7078 c.save();7079 c.save();7080 c.save();7081 c.save();7082 c.save();7083 c.setStrokeWidth(2 * strokeWidth);7084 c.setStrokeColor('#292929');7085 c.setLineJoin('round');7086 c.begin();7087 c.moveTo(w * 0.4199, h * 0.5447);7088 c.lineTo(w * 0.4199, h * 0.035);7089 c.lineTo(w * 0.8946, 0);7090 c.lineTo(w, h * 0.0691);7091 c.lineTo(w, h * 0.4134);7092 c.lineTo(w * 0.6812, h * 0.7247);7093 c.close();7094 c.fillAndStroke();7095 c.restore();7096 c.save();7097 c.setShadow(false);7098 c.setFillColor('#000000');7099 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7100 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7101 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7102 c.begin();7103 c.moveTo(w * 0.4199, h * 0.5447);7104 c.lineTo(w * 0.4199, h * 0.035);7105 c.lineTo(w * 0.6838, h * 0.2072);7106 c.lineTo(w * 0.6838, h * 0.7247);7107 c.close();7108 c.fill();7109 7110 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7111 c.begin();7112 c.moveTo(w * 0.6838, h * 0.2072);7113 c.lineTo(w, h * 0.0691);7114 c.lineTo(w, h * 0.4134);7115 c.lineTo(w * 0.6838, h * 0.7247);7116 c.close();7117 c.fill();7118 c.restore();7119 c.setShadow(false);7120 c.begin();7121 c.moveTo(w * 0.4199, h * 0.5447);7122 c.lineTo(w * 0.4199, h * 0.035);7123 c.lineTo(w * 0.6838, h * 0.2072);7124 c.lineTo(w * 0.6838, h * 0.7247);7125 c.close();7126 c.stroke();7127 c.restore();7128 c.setLineJoin('round');7129 c.setShadow(false);7130 c.begin();7131 c.moveTo(w * 0.6838, h * 0.2072);7132 c.lineTo(w, h * 0.0691);7133 c.lineTo(w, h * 0.4134);7134 c.lineTo(w * 0.6838, h * 0.7247);7135 c.close();7136 c.stroke();7137 c.setStrokeWidth(2 * strokeWidth);7138 c.setStrokeColor('#292929');7139 7140 c.begin();7141 c.moveTo(w * 0.4199, h * 0.5447);7142 c.lineTo(w * 0.4199, h * 0.035);7143 c.lineTo(w * 0.8946, 0);7144 c.lineTo(w, h * 0.0691);7145 c.lineTo(w, h * 0.4134);7146 c.lineTo(w * 0.6812, h * 0.7247);7147 c.close();7148 c.stroke();7149 c.restore();7150 c.setStrokeWidth(2 * strokeWidth);7151 c.setStrokeColor('#292929');7152 c.setLineJoin('round');7153 c.begin();7154 c.moveTo(0, h * 0.929);7155 c.lineTo(0, h * 0.5866);7156 c.lineTo(w * 0.3171, h * 0.1031);7157 c.lineTo(w * 0.5784, h * 0.2753);7158 c.lineTo(w * 0.5784, h * 0.7928);7159 c.lineTo(w * 0.1054, h);7160 c.close();7161 c.fillAndStroke();7162};7163mxShapeAws3dCustomerGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth)7164{7165 c.restore();7166 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');7167 c.setShadow(false);7168 c.setLineJoin('round');7169 c.setFillColor('#000000');7170 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7171 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7172 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7173 7174 c.begin();7175 c.moveTo(0, h * 0.929);7176 c.lineTo(0, h * 0.5866);7177 c.lineTo(w * 0.1054, h * 0.6537);7178 c.lineTo(w * 0.1054, h);7179 c.close();7180 c.fill();7181 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7182 c.begin();7183 c.moveTo(w * 0.1054, h);7184 c.lineTo(w * 0.1054, h * 0.6537);7185 c.lineTo(w * 0.5784, h * 0.2753);7186 c.lineTo(w * 0.5784, h * 0.7928);7187 c.close();7188 c.fill();7189 7190 c.restore();7191 c.setShadow(false);7192 c.setLineJoin('round');7193 7194 c.begin();7195 c.moveTo(0, h * 0.929);7196 c.lineTo(0, h * 0.5866);7197 c.lineTo(w * 0.1054, h * 0.6537);7198 c.lineTo(w * 0.1054, h);7199 c.close();7200 c.stroke();7201 c.begin();7202 c.moveTo(w * 0.1054, h);7203 c.lineTo(w * 0.1054, h * 0.6537);7204 c.lineTo(w * 0.5784, h * 0.2753);7205 c.lineTo(w * 0.5784, h * 0.7928);7206 c.close();7207 c.stroke();7208 7209 c.setStrokeWidth(2 * strokeWidth);7210 c.setStrokeColor('#292929');7211 c.setLineJoin('round');7212 c.begin();7213 c.moveTo(0, h * 0.929);7214 c.lineTo(0, h * 0.5866);7215 c.lineTo(w * 0.3171, h * 0.1031);7216 c.lineTo(w * 0.5784, h * 0.2753);7217 c.lineTo(w * 0.5784, h * 0.7928);7218 c.lineTo(w * 0.1054, h);7219 c.close();7220 c.stroke();7221 7222 c.setFillColor(strokeColor);7223 c.begin();7224 c.moveTo(w * 0.7575, h * 0.3969);7225 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.7686, h * 0.3259);7226 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8055, h * 0.2481);7227 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8406, h * 0.2091);7228 c.lineTo(w * 0.8269, h * 0.2665);7229 c.lineTo(w * 0.8372, h * 0.2607);7230 c.lineTo(w * 0.8372, h * 0.3444);7231 c.lineTo(w * 0.7832, h * 0.3804);7232 c.lineTo(w * 0.7832, h * 0.3658);7233 c.close();7234 c.moveTo(w * 0.8466, h * 0.2082);7235 c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.8766, h * 0.1955);7236 c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.9186, h * 0.2286);7237 c.arcTo(w * 0.12, h * 0.1362, 0, 0, 1, w * 0.9297, h * 0.2821);7238 c.lineTo(w * 0.9006, h * 0.2831);7239 c.lineTo(w * 0.9006, h * 0.3016);7240 c.lineTo(w * 0.85, h * 0.3366);7241 c.lineTo(w * 0.85, h * 0.251);7242 c.lineTo(w * 0.8586, h * 0.2471);7243 c.close();7244 c.moveTo(w * 0.9297, h * 0.2967);7245 c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.9195, h * 0.3667);7246 c.arcTo(w * 0.2571, h * 0.2918, 0, 0, 1, w * 0.8869, h * 0.4436);7247 c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.8466, h * 0.4903);7248 c.lineTo(w * 0.8595, h * 0.4358);7249 c.lineTo(w * 0.8492, h * 0.4416);7250 c.lineTo(w * 0.8492, h * 0.357);7251 c.lineTo(w * 0.9006, h * 0.32004);7252 c.lineTo(w * 0.9006, h * 0.3346);7253 c.close();7254 c.moveTo(w * 0.838, h * 0.4942);7255 c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8072, h * 0.5049);7256 c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.7712, h * 0.4815);7257 c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.7566, h * 0.4163);7258 c.lineTo(w * 0.7832, h * 0.4173);7259 c.lineTo(w * 0.7832, h * 0.4008);7260 c.lineTo(w * 0.8372, h * 0.3638);7261 c.lineTo(w * 0.8372, h * 0.4494);7262 c.lineTo(w * 0.8278, h * 0.4562);7263 c.close();7264 c.fill();7265};7266mxCellRenderer.registerShape(mxShapeAws3dCustomerGateway.prototype.cst.CUSTOMER_GATEWAY, mxShapeAws3dCustomerGateway);7267//**********************************************************************************************************************************************************7268//Redshift7269//**********************************************************************************************************************************************************7270/**7271* Extends mxShape.7272*/7273function mxShapeAws3dRedshift(bounds, fill, stroke, strokewidth)7274{7275 mxShape.call(this);7276 this.bounds = bounds;7277 this.fill = fill;7278 this.stroke = stroke;7279 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7280};7281/**7282* Extends mxShape.7283*/7284mxUtils.extend(mxShapeAws3dRedshift, mxShape);7285mxShapeAws3dRedshift.prototype.cst = {7286 REDSHIFT : 'mxgraph.aws3d.redshift',7287 SHADING_COLORS : 'shadingCols'7288};7289/**7290* Function: paintVertexShape7291* 7292* Paints the vertex shape.7293*/7294mxShapeAws3dRedshift.prototype.paintVertexShape = function(c, x, y, w, h)7295{7296 c.translate(x, y);7297 7298 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7299 var strokeWidth1 = strokeWidth * w / 149.5;7300 var strokeWidth2 = strokeWidth * h / 187.5;7301 7302 strokeWidth = Math.min(strokeWidth1, strokeWidth2);7303 this.background(c, 0, 0, w, h, strokeWidth);7304 c.setShadow(false);7305 this.foreground(c, 0, 0, w, h, strokeWidth);7306};7307mxShapeAws3dRedshift.prototype.background = function(c, x, y, w, h, strokeWidth)7308{7309 c.setStrokeWidth(strokeWidth);7310 c.save();7311 c.save();7312 c.save();7313 c.setStrokeWidth(2 * strokeWidth);7314 c.setStrokeColor('#292929');7315 c.setLineJoin('round');7316 c.begin();7317 c.moveTo(0, h * 0.6517);7318 c.lineTo(0, h * 0.0912);7319 c.lineTo(w * 0.0368, h * 0.0155);7320 c.lineTo(w * 0.2047, 0);7321 c.lineTo(w * 0.3378, h * 0.0619);7322 c.lineTo(w * 0.3378, h * 0.0912);7323 c.lineTo(w * 0.3819, h * 0.0693);7324 c.lineTo(w * 0.6154, h * 0.0693);7325 c.lineTo(w * 0.8502, h * 0.1776);7326 c.lineTo(w * 0.8502, h * 0.3083);7327 c.lineTo(w * 0.8682, h * 0.3061);7328 c.lineTo(w, h * 0.3664);7329 c.lineTo(w, h * 0.9099);7330 c.lineTo(w * 0.9672, h * 0.9861);7331 c.lineTo(w * 0.7926, h);7332 c.lineTo(w * 0.6629, h * 0.9392);7333 c.lineTo(w * 0.6629, h * 0.9099);7334 c.lineTo(w * 0.6167, h * 0.9317);7335 c.lineTo(w * 0.3813, h * 0.9317);7336 c.lineTo(w * 0.1478, h * 0.8219);7337 c.lineTo(w * 0.1478, h * 0.7093);7338 c.lineTo(w * 0.1365, h * 0.7163);7339 c.close();7340 c.fillAndStroke();7341};7342mxShapeAws3dRedshift.prototype.foreground = function(c, x, y, w, h, strokeWidth)7343{7344 c.restore();7345 c.setShadow(false);7346 c.setFillColor('#000000');7347 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRedshift.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7348 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7349 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7350 7351 c.begin();7352 c.moveTo(0, h * 0.6541);7353 c.lineTo(0, h * 0.0933);7354 c.lineTo(w * 0.1371, h * 0.1573);7355 c.lineTo(w * 0.1371, h * 0.7157);7356 c.close();7357 c.moveTo(w * 0.1485, h * 0.8219);7358 c.lineTo(w * 0.1485, h * 0.2864);7359 c.lineTo(w * 0.3846, h * 0.3941);7360 c.lineTo(w * 0.3846, h * 0.9317);7361 c.close();7362 c.moveTo(w * 0.6642, h * 0.9392);7363 c.lineTo(w * 0.6642, h * 0.4011);7364 c.lineTo(w * 0.796, h * 0.4597);7365 c.lineTo(w * 0.796, h);7366 c.close();7367 c.fill();7368 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7369 c.begin();7370 c.moveTo(w * 0.1371, h * 0.7157);7371 c.lineTo(w * 0.1371, h * 0.1568);7372 c.lineTo(w * 0.2027, h * 0.1525);7373 c.lineTo(w * 0.1498, h * 0.1771);7374 c.lineTo(w * 0.1498, h * 0.7061);7375 c.close();7376 c.moveTo(w * 0.3846, h * 0.3941);7377 c.lineTo(w * 0.614, h * 0.3941);7378 c.lineTo(w * 0.6809, h * 0.3632);7379 c.lineTo(w * 0.6642, h * 0.4);7380 c.lineTo(w * 0.6642, h * 0.9067);7381 c.lineTo(w * 0.6191, h * 0.9317);7382 c.lineTo(w * 0.3833, h * 0.9317);7383 c.close();7384 c.moveTo(w * 0.796, h * 0.4608);7385 c.lineTo(w * 0.9639, h * 0.4469);7386 c.lineTo(w, h * 0.3691);7387 c.lineTo(w, h * 0.9077);7388 c.lineTo(w * 0.9686, h * 0.9856);7389 c.lineTo(w * 0.796, h);7390 c.close();7391 c.moveTo(w * 0.3378, h * 0.0608);7392 c.lineTo(w * 0.3378, h * 0.0907);7393 c.lineTo(w * 0.3197, h * 0.1008);7394 c.close();7395 c.moveTo(w * 0.8502, h * 0.2843);7396 c.lineTo(w * 0.8502, h * 0.3083);7397 c.lineTo(w * 0.794, h * 0.3136);7398 c.close();7399 c.fill();7400 7401 c.restore();7402 c.setShadow(false);7403 c.setLineJoin('round');7404 7405 c.begin();7406 c.moveTo(0, h * 0.6541);7407 c.lineTo(0, h * 0.0933);7408 c.lineTo(w * 0.1371, h * 0.1573);7409 c.lineTo(w * 0.1371, h * 0.7157);7410 c.close();7411 c.moveTo(w * 0.1485, h * 0.8219);7412 c.lineTo(w * 0.1485, h * 0.2864);7413 c.lineTo(w * 0.3846, h * 0.3941);7414 c.lineTo(w * 0.3846, h * 0.9317);7415 c.close();7416 c.moveTo(w * 0.6642, h * 0.9392);7417 c.lineTo(w * 0.6642, h * 0.4011);7418 c.lineTo(w * 0.796, h * 0.4597);7419 c.lineTo(w * 0.796, h);7420 c.close();7421 c.moveTo(w * 0.1371, h * 0.7157);7422 c.lineTo(w * 0.1371, h * 0.1568);7423 c.lineTo(w * 0.2027, h * 0.1525);7424 c.lineTo(w * 0.1498, h * 0.1771);7425 c.lineTo(w * 0.1498, h * 0.7061);7426 c.close();7427 c.moveTo(w * 0.3846, h * 0.3941);7428 c.lineTo(w * 0.614, h * 0.3941);7429 c.lineTo(w * 0.6809, h * 0.3632);7430 c.lineTo(w * 0.6642, h * 0.4);7431 c.lineTo(w * 0.6642, h * 0.9067);7432 c.lineTo(w * 0.6191, h * 0.9317);7433 c.lineTo(w * 0.3833, h * 0.9317);7434 c.close();7435 c.moveTo(w * 0.796, h * 0.4608);7436 c.lineTo(w * 0.9639, h * 0.4469);7437 c.lineTo(w, h * 0.3691);7438 c.lineTo(w, h * 0.9077);7439 c.lineTo(w * 0.9686, h * 0.9856);7440 c.lineTo(w * 0.796, h);7441 c.close();7442 c.moveTo(w * 0.3378, h * 0.0608);7443 c.lineTo(w * 0.3378, h * 0.0907);7444 c.lineTo(w * 0.3197, h * 0.1008);7445 c.close();7446 c.moveTo(w * 0.8502, h * 0.2843);7447 c.lineTo(w * 0.8502, h * 0.3083);7448 c.lineTo(w * 0.794, h * 0.3136);7449 c.close();7450 c.moveTo(w * 0.6167, h * 0.3941);7451 c.lineTo(w * 0.6167, h * 0.9317);7452 c.moveTo(w * 0.9652, h * 0.4448);7453 c.lineTo(w * 0.9652, h * 0.9851);7454 c.stroke();7455 c.restore();7456 c.setShadow(false);7457 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');7458 c.setFillColor(strokeColor);7459 7460 c.begin();7461 c.moveTo(w * 0.4903, h * 0.1259);7462 c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.5023, h * 0.1189);7463 c.arcTo(w * 0.2007, h * 0.16, 0, 0, 1, w * 0.5639, h * 0.1333);7464 c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.7157, h * 0.2005);7465 c.arcTo(w * 0.2006, h * 0.16, 0, 0, 1, w * 0.7565, h * 0.2315);7466 c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.7445, h * 0.2421);7467 c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.6742, h * 0.2251);7468 c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.5204, h * 0.1541);7469 c.arcTo(w * 0.1338, h * 0.1067, 0, 0, 1, w * 0.4903, h * 0.1259);7470 c.close();7471 c.moveTo(w * 0.4789, h * 0.1275);7472 c.arcTo(w * 0.0334, h * 0.0267, 0, 0, 0, w * 0.487, h * 0.1461);7473 c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 0, w * 0.5237, h * 0.1728);7474 c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 0, w * 0.6609, h * 0.2352);7475 c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 0, w * 0.7244, h * 0.2501);7476 c.arcTo(w * 0.0201, h * 0.016, 0, 0, 0, w * 0.7411, h * 0.2475);7477 c.lineTo(w * 0.5385, h * 0.3408);7478 c.arcTo(w * 0.0669, h * 0.05333, 0, 0, 1, w * 0.512, h * 0.3397);7479 c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.4548, h * 0.3248);7480 c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 1, w * 0.3084, h * 0.2565);7481 c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 1, w * 0.2776, h * 0.2304);7482 c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.2776, h * 0.2197);7483 c.close();7484 c.fill();7485 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff');7486 c.setFillColor(fillColor);7487 c.setLineJoin('round');7488 c.setLineCap('round');7489 c.begin();7490 c.moveTo(w * 0.3398, h * 0.2421);7491 c.lineTo(w * 0.4769, h * 0.1797);7492 c.lineTo(w * 0.6341, h * 0.2512);7493 c.lineTo(w * 0.4936, h * 0.3147);7494 c.fill();7495 c.begin();7496 c.moveTo(w * 0.4334, h * 0.1941);7497 c.lineTo(w * 0.6207, h * 0.2811);7498 c.moveTo(w * 0.5338, h * 0.1995);7499 c.lineTo(w * 0.3866, h * 0.2688);7500 c.moveTo(w * 0.5873, h * 0.2235);7501 c.lineTo(w * 0.4334, h * 0.2955);7502 c.stroke();7503 c.setStrokeWidth(2 * strokeWidth);7504 c.setStrokeColor('#292929');7505 c.begin();7506 c.moveTo(0, h * 0.6517);7507 c.lineTo(0, h * 0.0912);7508 c.lineTo(w * 0.0368, h * 0.0155);7509 c.lineTo(w * 0.2047, 0);7510 c.lineTo(w * 0.3378, h * 0.0619);7511 c.lineTo(w * 0.3378, h * 0.0912);7512 c.lineTo(w * 0.3819, h * 0.0693);7513 c.lineTo(w * 0.6154, h * 0.0693);7514 c.lineTo(w * 0.8502, h * 0.1776);7515 c.lineTo(w * 0.8502, h * 0.3083);7516 c.lineTo(w * 0.8682, h * 0.3061);7517 c.lineTo(w, h * 0.3664);7518 c.lineTo(w, h * 0.9099);7519 c.lineTo(w * 0.9672, h * 0.9861);7520 c.lineTo(w * 0.7926, h);7521 c.lineTo(w * 0.6629, h * 0.9392);7522 c.lineTo(w * 0.6629, h * 0.9099);7523 c.lineTo(w * 0.6167, h * 0.9317);7524 c.lineTo(w * 0.3813, h * 0.9317);7525 c.lineTo(w * 0.1478, h * 0.8219);7526 c.lineTo(w * 0.1478, h * 0.7093);7527 c.lineTo(w * 0.1365, h * 0.7163);7528 c.close();7529 c.stroke();7530};7531mxCellRenderer.registerShape(mxShapeAws3dRedshift.prototype.cst.REDSHIFT, mxShapeAws3dRedshift);7532//**********************************************************************************************************************************************************7533//Lambda7534//**********************************************************************************************************************************************************7535/**7536* Extends mxShape.7537*/7538function mxShapeAws3dLambda(bounds, fill, stroke, strokewidth)7539{7540 mxShape.call(this);7541 this.bounds = bounds;7542 this.fill = fill;7543 this.stroke = stroke;7544 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7545};7546/**7547* Extends mxShape.7548*/7549mxUtils.extend(mxShapeAws3dLambda, mxShape);7550mxShapeAws3dLambda.prototype.cst = {7551 LAMBDA : 'mxgraph.aws3d.lambda',7552 SHADING_COLORS : 'shadingCols'7553};7554/**7555* Function: paintVertexShape7556* 7557* Paints the vertex shape.7558*/7559mxShapeAws3dLambda.prototype.paintVertexShape = function(c, x, y, w, h)7560{7561 c.translate(x, y);7562 7563 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7564 var strokeWidth1 = strokeWidth * w / 92;7565 var strokeWidth2 = strokeWidth * h / 109.5;7566 7567 strokeWidth = Math.min(strokeWidth1, strokeWidth2);7568 this.background(c, 0, 0, w, h, strokeWidth);7569 c.setShadow(false);7570 this.foreground(c, 0, 0, w, h, strokeWidth);7571};7572mxShapeAws3dLambda.prototype.background = function(c, x, y, w, h, strokeWidth)7573{7574 c.setStrokeWidth(strokeWidth);7575 c.save();7576 c.save();7577 c.setStrokeWidth(2 * strokeWidth);7578 c.setStrokeColor('#292929');7579 c.setLineJoin('round');7580 c.begin();7581 c.moveTo(0, h * 0.1671);7582 c.lineTo(w * 0.3424, 0);7583 c.lineTo(w * 0.663, 0);7584 c.lineTo(w, h * 0.1671);7585 c.lineTo(w, h * 0.8365);7586 c.lineTo(w * 0.663, h);7587 c.lineTo(w * 0.3424, h);7588 c.lineTo(0, h * 0.8365);7589 c.close();7590 c.fillAndStroke();7591};7592mxShapeAws3dLambda.prototype.foreground = function(c, x, y, w, h, strokeWidth)7593{7594 c.restore();7595 c.setShadow(false);7596 c.setFillColor('#000000');7597 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dLambda.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7598 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7599 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7600 7601 c.begin();7602 c.moveTo(0, h * 0.3242);7603 c.lineTo(w * 0.3424, h * 0.4895);7604 c.lineTo(w * 0.663, h * 0.4895);7605 c.lineTo(w * 0.663, h);7606 c.lineTo(w * 0.3424, h);7607 c.lineTo(0, h * 0.8365);7608 c.close();7609 c.moveTo(w * 0., h * 0.);7610 c.lineTo(w * 0., h * 0.);7611 c.lineTo(w * 0., h * 0.);7612 c.lineTo(w * 0., h * 0.);7613 c.lineTo(w * 0., h * 0.);7614 c.lineTo(w * 0., h * 0.);7615 c.close();7616 c.moveTo(w * 0., h * 0.);7617 c.lineTo(w * 0., h * 0.);7618 c.lineTo(w * 0., h * 0.);7619 c.lineTo(w * 0., h * 0.);7620 c.lineTo(w * 0., h * 0.);7621 c.lineTo(w * 0., h * 0.);7622 c.close();7623 c.fill();7624 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7625 c.begin();7626 c.moveTo(w * 0.663, h * 0.4895);7627 c.lineTo(w, h * 0.3242);7628 c.lineTo(w, h * 0.8365);7629 c.lineTo(w * 0.663, h);7630 c.close();7631 c.fill();7632 7633 c.restore();7634 c.setShadow(false);7635 c.setLineJoin('round');7636 7637 c.begin();7638 c.moveTo(0, h * 0.3242);7639 c.lineTo(w * 0.3424, h * 0.4895);7640 c.lineTo(w * 0.663, h * 0.4895);7641 c.lineTo(w, h * 0.3242);7642 c.moveTo(w * 0.3424, h * 0.4895);7643 c.lineTo(w * 0.3424, h);7644 c.moveTo(w * 0.663, h * 0.4895);7645 c.lineTo(w * 0.663, h);7646 c.stroke();7647 c.setFillColor("#5E5E5E");7648 7649 c.begin();7650 c.moveTo(w * 0.3804, h * 0.1169);7651 c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.6087, h * 0.1123);7652 c.arcTo(w * 0.33804, h * 0.3196, 0, 0, 1, w * 0.725, h * 0.1553);7653 c.arcTo(w * 0.1304, h * 0.1096, 0, 0, 1, w * 0.7924, h * 0.2402);7654 c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.725, h * 0.3333);7655 c.arcTo(w * 0.4416, h * 0.274, 0, 0, 1, w * 0.6087, h * 0.3772);7656 c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.3804, h * 0.3708);7657 c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.2772, h * 0.3324);7658 c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2163, h * 0.2539);7659 c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2663, h * 0.1644);7660 c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.3804, h * 0.1169);7661 c.fill();7662 c.setFillColor("#ffffff");7663 c.begin();7664 c.moveTo(w * 0.5565, h * 0.2174);7665 c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.5837, h * 0.1945);7666 c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 0, w * 0.5793, h * 0.1671);7667 c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.525, h * 0.1598);7668 c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 1, w * 0.5543, h * 0.1443);7669 c.arcTo(w * 0.0761, h * 0.0639, 0, 0, 1, w * 0.6163, h * 0.1662);7670 c.arcTo(w * 0.0598, h * 0.0502, 0, 0, 1, w * 0.6087, h * 0.2091);7671 c.lineTo(w * 0.5, h * 0.3032);7672 c.arcTo(w * 0.0978, h * 0.0822, 0, 0, 0, w * 0.4728, h * 0.3379);7673 c.arcTo(w * 0.0272, h * 0.0228, 0, 0, 0, w * 0.4924, h * 0.3571);7674 c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 1, w * 0.4489, h * 0.3571);7675 c.arcTo(w * 0.038, h * 0.032, 0, 0, 1, w * 0.437, h * 0.3242);7676 c.arcTo(w * 0.1087, h * 0.0913, 0, 0, 1, w * 0.4674, h * 0.2886);7677 c.lineTo(w * 0.5141, h * 0.2557);7678 c.lineTo(w * 0.3185, h * 0.2895);7679 c.lineTo(w * 0.2641, h * 0.2648);7680 c.close();7681 c.fill();7682 c.setStrokeWidth(2 * strokeWidth);7683 c.setStrokeColor('#292929');7684 c.begin();7685 c.moveTo(0, h * 0.1671);7686 c.lineTo(w * 0.3424, 0);7687 c.lineTo(w * 0.663, 0);7688 c.lineTo(w, h * 0.1671);7689 c.lineTo(w, h * 0.8365);7690 c.lineTo(w * 0.663, h);7691 c.lineTo(w * 0.3424, h);7692 c.lineTo(0, h * 0.8365);7693 c.close();7694 c.stroke();7695};7696mxCellRenderer.registerShape(mxShapeAws3dLambda.prototype.cst.LAMBDA, mxShapeAws3dLambda);7697//**********************************************************************************************************************************************************7698//EBS 27699//**********************************************************************************************************************************************************7700/**7701* Extends mxShape.7702*/7703function mxShapeAws3dEbs2(bounds, fill, stroke, strokewidth)7704{7705 mxShape.call(this);7706 this.bounds = bounds;7707 this.fill = fill;7708 this.stroke = stroke;7709 this.strokewidth = (strokewidth != null) ? strokewidth : 1;7710};7711/**7712* Extends mxShape.7713*/7714mxUtils.extend(mxShapeAws3dEbs2, mxShape);7715mxShapeAws3dEbs2.prototype.cst = {7716 EBS2 : 'mxgraph.aws3d.ebs2',7717 SHADING_COLORS : 'shadingCols'7718};7719/**7720* Function: paintVertexShape7721* 7722* Paints the vertex shape.7723*/7724mxShapeAws3dEbs2.prototype.paintVertexShape = function(c, x, y, w, h)7725{7726 c.translate(x, y);7727 var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7728 var strokeWidth1 = strokeWidth * w / 92;7729 var strokeWidth2 = strokeWidth * h / 60;7730 var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));7731 7732 strokeWidth = Math.min(strokeWidth1, strokeWidth2);7733 7734 c.setStrokeWidth(strokeWidth);7735 c.setShadow(false);7736 c.save();7737 c.save();7738 c.setStrokeWidth(2 * strokeWidth);7739 c.setStrokeColor('#292929');7740 c.setLineJoin('round');7741 if(isShadow == 1)7742 {7743 c.setShadow(true);7744 }7745 7746 c.begin();7747 c.moveTo(0, h * 0.5276);7748 c.lineTo(0, h * 0.4188);7749 c.lineTo(w * 0.071, h * 0.2898);7750 c.lineTo(w * 0.4033, 0);7751 c.lineTo(w * 0.9301, h * 0.464);7752 c.lineTo(w, h * 0.5863);7753 c.lineTo(w, h * 0.7035);7754 c.lineTo(w * 0.6667, h);7755 c.lineTo(w * 0.5355, h);7756 c.close();7757 c.fillAndStroke();7758 7759 c.restore();7760 c.setFillColor('#000000');7761 7762 var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7763 var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7764 (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7765 7766 c.begin();7767 c.moveTo(w * 0.071, h * 0.2948);7768 c.lineTo(w * 0.6011, h * 0.7621);7769 c.lineTo(w * 0.6667, h);7770 c.lineTo(w * 0.5355, h);7771 c.lineTo(0, h * 0.5276);7772 c.lineTo(0, h * 0.4137);7773 c.close();7774 c.fill();7775 (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7776 c.begin();7777 c.moveTo(w * 0.6011, h * 0.7655);7778 c.lineTo(w * 0.9344, h * 0.4724);7779 c.lineTo(w, h * 0.7035);7780 c.lineTo(w * 0.6667, h);7781 c.close();7782 c.fill();7783 7784 c.restore();7785 c.setLineJoin('round');7786 7787 c.begin();7788 c.moveTo(w * 0.071, h * 0.2948);7789 c.lineTo(w * 0.6011, h * 0.7621);7790 c.lineTo(w * 0.6667, h);7791 c.lineTo(w * 0.5355, h);7792 c.lineTo(0, h * 0.5276);7793 c.lineTo(0, h * 0.4137);7794 c.close();7795 c.moveTo(w * 0.6011, h * 0.7655);7796 c.lineTo(w * 0.9344, h * 0.4724);7797 c.lineTo(w, h * 0.7035);7798 c.lineTo(w * 0.6667, h);7799 c.close();7800 c.moveTo(w * 0.0033, h * 0.5276);7801 c.lineTo(w * 0.071, h * 0.2898);7802 c.moveTo(w * 0.5325, h * 0.9976);7803 c.lineTo(w * 0.603, h * 0.7593);7804 c.stroke();7805 c.setStrokeWidth(2 * strokeWidth);7806 c.setLineCap('round');7807 7808 c.begin();7809 c.moveTo(w * 0.3388, h * 0.3802);7810 c.lineTo(w * 0.5027, h * 0.2345);7811 c.lineTo(w * 0.6667, h * 0.3802);7812 c.lineTo(w * 0.5027, h * 0.526);7813 c.close();7814 c.moveTo(w * 0.4426, h * 0.3802);7815 c.lineTo(w * 0.5027, h * 0.3266);7816 c.lineTo(w * 0.5628, h * 0.3802);7817 c.lineTo(w * 0.5027, h * 0.4338);7818 c.close();7819 c.moveTo(w * 0.3867, h * 0.3284);7820 c.lineTo(w * 0.3541, h * 0.2998);7821 c.moveTo(w * 0.4436, h * 0.2748);7822 c.lineTo(w * 0.4077, h * 0.2412);7823 c.moveTo(w * 0.5704, h * 0.2803);7824 c.lineTo(w * 0.5992, h * 0.2513);7825 c.moveTo(w * 0.6231, h * 0.3284);7826 c.lineTo(w * 0.6503, h * 0.3032);7827 c.moveTo(w * 0.622, h * 0.4338);7828 c.lineTo(w * 0.6557, h * 0.4606);7829 c.moveTo(w * 0.5667, h * 0.4845);7830 c.lineTo(w * 0.5992, h * 0.5156);7831 c.moveTo(w * 0.4414, h * 0.4874);7832 c.lineTo(w * 0.412, h * 0.5159);7833 c.moveTo(w * 0.3889, h * 0.4405);7834 c.lineTo(w * 0.3607, h * 0.4657);7835 c.stroke();7836 7837 c.setStrokeColor('#292929');7838 c.setLineJoin('round');7839 c.begin();7840 c.moveTo(0, h * 0.5276);7841 c.lineTo(0, h * 0.4188);7842 c.lineTo(w * 0.071, h * 0.2898);7843 c.lineTo(w * 0.4033, 0);7844 c.lineTo(w * 0.9301, h * 0.464);7845 c.lineTo(w, h * 0.5863);7846 c.lineTo(w, h * 0.7035);7847 c.lineTo(w * 0.6667, h);7848 c.lineTo(w * 0.5355, h);7849 c.close();7850 c.stroke();7851};7852mxCellRenderer.registerShape(mxShapeAws3dEbs2.prototype.cst.EBS2, mxShapeAws3dEbs2);7853//**********************************************************************************************************************************************************7854//Elasticache7855//**********************************************************************************************************************************************************7856///**7857//* Extends mxShape.7858//*/7859//function mxShapeAws3dElasticache(bounds, fill, stroke, strokewidth)7860//{7861// mxShape.call(this);7862// this.bounds = bounds;7863// this.fill = fill;7864// this.stroke = stroke;7865// this.strokewidth = (strokewidth != null) ? strokewidth : 1;7866//};7867//7868///**7869//* Extends mxShape.7870//*/7871//mxUtils.extend(mxShapeAws3dElasticache, mxShape);7872//7873//mxShapeAws3dElasticache.prototype.cst = {7874// ELASTICACHE : 'mxgraph.aws3d.elasticache',7875// SHADING_COLORS : 'shadingCols'7876//};7877//7878///**7879//* Function: paintVertexShape7880//* 7881//* Paints the vertex shape.7882//*/7883//mxShapeAws3dElasticache.prototype.paintVertexShape = function(c, x, y, w, h)7884//{7885// c.translate(x, y);7886//7887// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));7888// var strokeWidth1 = strokeWidth * w / 123;7889// var strokeWidth2 = strokeWidth * h / 143;7890// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));7891// 7892// strokeWidth = Math.min(strokeWidth1, strokeWidth2);7893// 7894// c.setStrokeWidth(strokeWidth);7895// c.setShadow(false);7896// c.save();7897// c.save();7898// c.setStrokeWidth(2 * strokeWidth);7899// c.setStrokeColor('#292929');7900// c.setLineJoin('round');7901//7902// if(isShadow == 1)7903// {7904// c.setShadow(true);7905// }7906// 7907// c.begin();7908// c.moveTo(0, h * 0.7483);7909// c.lineTo(0, h * 0.6294);7910// c.lineTo(w * 0.061, h * 0.5944);7911// c.lineTo(0, h * 0.563);7912// c.lineTo(0, h * 0.4406);7913// c.lineTo(w * 0.061, h * 0.4091);7914// c.lineTo(0, h * 0.3776);7915// c.lineTo(0, h * 0.2517);7916// c.lineTo(w * 0.5041, 0);7917// c.lineTo(w, h * 0.2483);7918// c.lineTo(w, h * 0.3741);7919// c.lineTo(w * 0.939, h * 0.4091);7920// c.lineTo(w, h * 0.4406);7921// c.lineTo(w, h * 0.563);7922// c.lineTo(w * 0.939, h * 0.5944);7923// c.lineTo(w, h * 0.6294);7924// c.lineTo(w, h * 0.751);7925// c.lineTo(w * 0.5041, h);7926// c.close();7927// c.fillAndStroke();7928// 7929// c.restore();7930// c.setFillColor('#000000');7931// 7932// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticache.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');7933// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');7934// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 7935// 7936// c.begin();7937// c.moveTo(0, h * 0.2517);7938// c.lineTo(w * 0.5041, h * 0.4965);7939// c.lineTo(w * 0.5041, h * 0.6294);7940// c.lineTo(0, h * 0.3776);7941// c.close();7942// c.moveTo(0, h * 0.4406);7943// c.lineTo(w * 0.5041, h * 0.6853);7944// c.lineTo(w * 0.5041, h * 0.8112);7945// c.lineTo(0, h * 0.5629);7946// c.close();7947// c.moveTo(0, h * 0.6294);7948// c.lineTo(w * 0.5041, h * 0.8741);7949// c.lineTo(w * 0.5041, h);7950// c.lineTo(0, h * 0.7483);7951// c.close();7952// c.moveTo(w * 0.6179, h * 0.2517);7953// c.lineTo(w * 0.752, h * 0.1853);7954// c.lineTo(w * 0.752, h * 0.3217);7955// c.close();7956// c.fill();7957//7958// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 7959// c.begin();7960// c.moveTo(w * 0.5041, h * 0.4965);7961// c.lineTo(w, h * 0.2517);7962// c.lineTo(w, h * 0.3741);7963// c.lineTo(w * 0.5041, h * 0.6294);7964// c.close();7965// c.moveTo(w * 0.5041, h * 0.6853);7966// c.lineTo(w, h * 0.4406);7967// c.lineTo(w, h * 0.5629);7968// c.lineTo(w * 0.5041, h * 0.8112);7969// c.close();7970// c.moveTo(w * 0.5041, h * 0.8741);7971// c.lineTo(w, h * 0.6294);7972// c.lineTo(w, h * 0.7483);7973// c.lineTo(w * 0.5041, h);7974// c.close();7975// c.moveTo(w * 0.752, h * 0.1853);7976// c.lineTo(w * 0.8821, h * 0.2517);7977// c.lineTo(w * 0.752, h * 0.3217);7978// c.close();7979// c.fill();7980// 7981// c.restore();7982// c.setLineJoin('round');7983// 7984// c.begin();7985// c.moveTo(0, h * 0.2517);7986// c.lineTo(w * 0.5041, h * 0.4965);7987// c.lineTo(w * 0.5041, h * 0.6294);7988// c.lineTo(0, h * 0.3776);7989// c.close();7990// c.moveTo(0, h * 0.4406);7991// c.lineTo(w * 0.5041, h * 0.6853);7992// c.lineTo(w * 0.5041, h * 0.8112);7993// c.lineTo(0, h * 0.5629);7994// c.close();7995// c.moveTo(0, h * 0.6294);7996// c.lineTo(w * 0.5041, h * 0.8741);7997// c.lineTo(w * 0.5041, h);7998// c.lineTo(0, h * 0.7483);7999// c.close();8000// c.moveTo(w * 0.5041, h * 0.4965);8001// c.lineTo(w, h * 0.2517);8002// c.lineTo(w, h * 0.3741);8003// c.lineTo(w * 0.5041, h * 0.6294);8004// c.close();8005// c.moveTo(w * 0.5041, h * 0.6853);8006// c.lineTo(w, h * 0.4406);8007// c.lineTo(w, h * 0.5629);8008// c.lineTo(w * 0.5041, h * 0.8112);8009// c.close();8010// c.moveTo(w * 0.5041, h * 0.8741);8011// c.lineTo(w, h * 0.6294);8012// c.lineTo(w, h * 0.7483);8013// c.lineTo(w * 0.5041, h);8014// c.close();8015// c.stroke();8016//8017// c.setStrokeWidth(2 * strokeWidth);8018// c.setLineCap('round');8019// var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000');8020// c.setFillColor(strokeColor);8021//8022// c.begin();8023// c.moveTo(w * 0.222, h * 0.2028);8024// c.arcTo(w * 0.1463, h * 0.1259, 0, 0, 1, w * 0.3154, h * 0.2014);8025// c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3642, h * 0.2245);8026// c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.3618, h * 0.2552);8027// c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3252, h * 0.2798);8028// c.arcTo(w * 0.1626, h * 0.1399, 0, 0, 1, w * 0.2276, h * 0.2797);8029// c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.187, h * 0.2622);8030// c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.187, h * 0.2238);8031// c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.222, h * 0.2028);8032// c.close();8033// c.moveTo(w * 0.3618, h * 0.1434);8034// c.lineTo(w * 0.4309, h * 0.1189);8035// c.lineTo(w * 0.4309, h * 0.0755);8036// c.lineTo(w * 0.4992, h * 0.1014);8037// c.lineTo(w * 0.5813, h * 0.0874);8038// c.lineTo(w * 0.5488, h * 0.1294);8039// c.lineTo(w * 0.6057, h * 0.1608);8040// c.lineTo(w * 0.5163, h * 0.1608);8041// c.lineTo(w * 0.4634, h * 0.2028);8042// c.lineTo(w * 0.4431, h * 0.1538);8043// c.close();8044// c.moveTo(w * 0.3821, h * 0.3601);8045// c.lineTo(w * 0.5894, h * 0.3322);8046// c.lineTo(w * 0.5325, h * 0.4394);8047// c.close();8048// c.fill();8049// 8050// c.setStrokeColor('#292929');8051// c.setLineJoin('round');8052//8053// c.begin();8054// c.moveTo(0, h * 0.7483);8055// c.lineTo(0, h * 0.6294);8056// c.lineTo(w * 0.061, h * 0.5944);8057// c.lineTo(0, h * 0.563);8058// c.lineTo(0, h * 0.4406);8059// c.lineTo(w * 0.061, h * 0.4091);8060// c.lineTo(0, h * 0.3776);8061// c.lineTo(0, h * 0.2517);8062// c.lineTo(w * 0.5041, 0);8063// c.lineTo(w, h * 0.2483);8064// c.lineTo(w, h * 0.3741);8065// c.lineTo(w * 0.939, h * 0.4091);8066// c.lineTo(w, h * 0.4406);8067// c.lineTo(w, h * 0.563);8068// c.lineTo(w * 0.939, h * 0.5944);8069// c.lineTo(w, h * 0.6294);8070// c.lineTo(w, h * 0.751);8071// c.lineTo(w * 0.5041, h);8072// c.close();8073// c.stroke();8074//};8075//8076//mxCellRenderer.registerShape(mxShapeAws3dElasticache.prototype.cst.ELASTICACHE, mxShapeAws3dElasticache);8077//**********************************************************************************************************************************************************8078//Kinesis Stream8079//**********************************************************************************************************************************************************8080/**8081* Extends mxShape.8082*/8083//function mxShapeAws3dKinesisStream(bounds, fill, stroke, strokewidth)8084//{8085// mxShape.call(this);8086// this.bounds = bounds;8087// this.fill = fill;8088// this.stroke = stroke;8089// this.strokewidth = (strokewidth != null) ? strokewidth : 1;8090//};8091//8092///**8093//* Extends mxShape.8094//*/8095//mxUtils.extend(mxShapeAws3dKinesisStream, mxShape);8096//8097//mxShapeAws3dKinesisStream.prototype.cst = {8098// KINESIS_STREAM : 'mxgraph.aws3d.kinesisStream',8099// SHADING_COLORS : 'shadingCols'8100//};8101//8102///**8103//* Function: paintVertexShape8104//* 8105//* Paints the vertex shape.8106//*/8107//mxShapeAws3dKinesisStream.prototype.paintVertexShape = function(c, x, y, w, h)8108//{8109// c.translate(x, y);8110//8111// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));8112// var strokeWidth1 = strokeWidth * w / 220;8113// var strokeWidth2 = strokeWidth * h / 160;8114// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));8115// 8116// strokeWidth = Math.min(strokeWidth1, strokeWidth2);8117// 8118// c.setStrokeWidth(strokeWidth);8119// c.setShadow(false);8120// c.save();8121// c.save();8122// c.setStrokeWidth(2 * strokeWidth);8123// c.setStrokeColor('#292929');8124// c.setLineJoin('round');8125//8126// if(isShadow == 1)8127// {8128// c.setShadow(true);8129// }8130// 8131// c.begin();8132// c.moveTo(0, h * 0.5503);8133// c.lineTo(w * 0.0455, h * 0.4623);8134// c.lineTo(w * 0.6054, h * 0.0157);8135// c.lineTo(w * 0.6623, h * 0.0629);8136// c.lineTo(w * 0.7396, 0);8137// c.lineTo(w * 0.8239, h * 0.0692);8138// c.lineTo(w * 0.8671, h * 0.2233);8139// c.lineTo(w * 0.9513, h * 0.2943);8140// c.lineTo(w, h * 0.4528);8141// c.lineTo(w * 0.9595, h * 0.5365);8142// c.lineTo(w * 0.396, h * 0.9843);8143// c.lineTo(w * 0.3391, h * 0.9403);8144// c.lineTo(w * 0.2617, h);8145// c.lineTo(w * 0.173, h * 0.9308);8146// c.lineTo(w * 0.1297, h * 0.7736);8147// c.lineTo(w * 0.0432, h * 0.7044);8148// c.close();8149// c.fillAndStroke();8150// 8151// c.restore();8152// c.setFillColor('#000000');8153// 8154// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dKinesisStream.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8155// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8156// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8157// 8158// c.begin();8159// c.moveTo(w * 0.0432, h * 0.4654);8160// c.lineTo(w * 0.132, h * 0.5314);8161// c.lineTo(w * 0.1775, h * 0.4465);8162// c.lineTo(w * 0.264, h * 0.5189);8163// c.lineTo(w * 0.3072, h * 0.673);8164// c.lineTo(w * 0.396, h * 0.7453);8165// c.lineTo(w * 0.4392, h * 0.8994);8166// c.lineTo(w * 0.396, h * 0.9843);8167// c.lineTo(w * 0.305, h * 0.9151);8168// c.lineTo(w * 0.2617, h);8169// c.lineTo(w * 0.173, h * 0.9308);8170// c.lineTo(w * 0.1297, h * 0.7736);8171// c.lineTo(w * 0.0432, h * 0.7044);8172// c.lineTo(0, h * 0.5503);8173// c.close();8174// c.fill();8175//8176// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8177// c.begin();8178// c.moveTo(w * 0.264, h * 0.5204);8179// c.lineTo(w * 0.8239, h * 0.0676);8180// c.lineTo(w * 0.8694, h * 0.228);8181// c.lineTo(w * 0.3072, h * 0.673);8182// c.close();8183// c.moveTo(w * 0.3937, h * 0.7453);8184// c.lineTo(w * 0.9536, h * 0.2956);8185// c.lineTo(w, h * 0.4528);8186// c.lineTo(w * 0.9558, h * 0.5377);8187// c.lineTo(w * 0.396, h * 0.9843);8188// c.lineTo(w * 0.4392, h * 0.8994);8189// c.close();8190// c.moveTo(w * 0.2617, h);8191// c.lineTo(w * 0.305, h * 0.9151);8192// c.lineTo(w * 0.3368, h * 0.9403);8193// c.close();8194// c.fill();8195// 8196// c.setAlpha('0.5');8197// c.begin();8198// c.moveTo(w * 0.0546, h * 0.5094);8199// c.lineTo(w * 0.1161, h * 0.5597);8200// c.lineTo(w * 0.1479, h * 0.6761);8201// c.lineTo(w * 0.1183, h * 0.7264);8202// c.lineTo(w * 0.0569, h * 0.6792);8203// c.lineTo(w * 0.025, h * 0.566);8204// c.close();8205// c.moveTo(w * 0.1889, h * 0.4937);8206// c.lineTo(w * 0.2503, h * 0.544);8207// c.lineTo(w * 0.2822, h * 0.6572);8208// c.lineTo(w * 0.2526, h * 0.717);8209// c.lineTo(w * 0.1934, h * 0.6667);8210// c.lineTo(w * 0.1593, h * 0.5566);8211// c.close();8212// c.moveTo(w * 0.3195, h * 0.7201);8213// c.lineTo(w * 0.3801, h * 0.7704);8214// c.lineTo(w * 0.4137, h * 0.8805);8215// c.lineTo(w * 0.3819, h * 0.9403);8216// c.lineTo(w * 0.3209, h * 0.8912);8217// c.lineTo(w * 0.2904, h * 0.783);8218// c.close();8219// c.moveTo(w * 0.1866, h * 0.7358);8220// c.lineTo(w * 0.2458, h * 0.783);8221// c.lineTo(w * 0.2776, h * 0.8962);8222// c.lineTo(w * 0.2481, h * 0.956);8223// c.lineTo(w * 0.1866, h * 0.9057);8224// c.lineTo(w * 0.157, h * 0.7893);8225// c.close();8226// c.fill();8227//8228// c.restore();8229// c.setLineJoin('round');8230// 8231// c.begin();8232// c.moveTo(w * 0.0432, h * 0.4654);8233// c.lineTo(w * 0.132, h * 0.5314);8234// c.lineTo(w * 0.1775, h * 0.4465);8235// c.lineTo(w * 0.264, h * 0.5189);8236// c.lineTo(w * 0.3072, h * 0.673);8237// c.lineTo(w * 0.396, h * 0.7453);8238// c.lineTo(w * 0.4392, h * 0.8994);8239// c.lineTo(w * 0.396, h * 0.9843);8240// c.lineTo(w * 0.305, h * 0.9151);8241// c.lineTo(w * 0.2617, h);8242// c.lineTo(w * 0.173, h * 0.9308);8243// c.lineTo(w * 0.1297, h * 0.7736);8244// c.lineTo(w * 0.0432, h * 0.7044);8245// c.lineTo(0, h * 0.5503);8246// c.close();8247// c.moveTo(w * 0.264, h * 0.5204);8248// c.lineTo(w * 0.8239, h * 0.0676);8249// c.lineTo(w * 0.8694, h * 0.228);8250// c.lineTo(w * 0.3072, h * 0.673);8251// c.close();8252// c.moveTo(w * 0.3937, h * 0.7453);8253// c.lineTo(w * 0.9536, h * 0.2956);8254// c.lineTo(w, h * 0.4528);8255// c.lineTo(w * 0.9558, h * 0.5377);8256// c.lineTo(w * 0.396, h * 0.9843);8257// c.lineTo(w * 0.4392, h * 0.8994);8258// c.close();8259// c.moveTo(w * 0.2617, h);8260// c.lineTo(w * 0.305, h * 0.9151);8261// c.lineTo(w * 0.3368, h * 0.9403);8262// c.close();8263// c.moveTo(w * 0.0546, h * 0.5094);8264// c.lineTo(w * 0.1161, h * 0.5597);8265// c.lineTo(w * 0.1479, h * 0.6761);8266// c.lineTo(w * 0.1183, h * 0.7264);8267// c.lineTo(w * 0.0569, h * 0.6792);8268// c.lineTo(w * 0.025, h * 0.566);8269// c.close();8270// c.moveTo(w * 0.1889, h * 0.4937);8271// c.lineTo(w * 0.2503, h * 0.544);8272// c.lineTo(w * 0.2822, h * 0.6572);8273// c.lineTo(w * 0.2526, h * 0.717);8274// c.lineTo(w * 0.1934, h * 0.6667);8275// c.lineTo(w * 0.1593, h * 0.5566);8276// c.close();8277// c.moveTo(w * 0.3195, h * 0.7201);8278// c.lineTo(w * 0.3801, h * 0.7704);8279// c.lineTo(w * 0.4137, h * 0.8805);8280// c.lineTo(w * 0.3819, h * 0.9403);8281// c.lineTo(w * 0.3209, h * 0.8912);8282// c.lineTo(w * 0.2904, h * 0.783);8283// c.close();8284// c.moveTo(w * 0.1866, h * 0.7358);8285// c.lineTo(w * 0.2458, h * 0.783);8286// c.lineTo(w * 0.2776, h * 0.8962);8287// c.lineTo(w * 0.2481, h * 0.956);8288// c.lineTo(w * 0.1866, h * 0.9057);8289// c.lineTo(w * 0.157, h * 0.7893);8290// c.close();8291// c.moveTo(w * 0.1775, h * 0.4465);8292// c.lineTo(w * 0.7374, 0);8293// c.moveTo(w * 0.4392, h * 0.8994);8294// c.lineTo(w, h * 0.4528);8295// c.moveTo(w * 0.1331, h * 0.533);8296// c.lineTo(w * 0.1809, h * 0.6934);8297// c.lineTo(w * 0.2617, h * 0.7626);8298// c.lineTo(w * 0.3061, h * 0.9151);8299// c.moveTo(w * 0.1295, h * 0.7764);8300// c.lineTo(w * 0.1807, h * 0.6928);8301// c.moveTo(w * 0.264, h * 0.7642);8302// c.lineTo(w * 0.3095, h * 0.673);8303// c.moveTo(w * 0.3641, h * 0.2327);8304// c.lineTo(w * 0.3241, h * 0.2673);8305// c.lineTo(w * 0.3619, h * 0.2987);8306// c.moveTo(w * 0.3468, h * 0.2736);8307// c.lineTo(w * 0.3596, h * 0.261);8308// c.moveTo(w * 0.3573, h * 0.283);8309// c.lineTo(w * 0.3823, h * 0.261);8310// c.moveTo(w * 0.4916, h * 0.217);8311// c.lineTo(w * 0.4483, h * 0.2547);8312// c.lineTo(w * 0.5052, h * 0.3019);8313// c.moveTo(w * 0.4679, h * 0.2591);8314// c.lineTo(w * 0.4802, h * 0.2478);8315// c.moveTo(w * 0.4811, h * 0.2673);8316// c.lineTo(w * 0.5098, h * 0.2421);8317// c.moveTo(w * 0.4939, h * 0.2767);8318// c.lineTo(w * 0.5121, h * 0.261);8319// c.moveTo(w * 0.5043, h * 0.2868);8320// c.lineTo(w * 0.5371, h * 0.2579);8321// c.moveTo(w * 0.6259, h * 0.4371);8322// c.lineTo(w * 0.5826, h * 0.4717);8323// c.lineTo(w * 0.6418, h * 0.522);8324// c.moveTo(w * 0.6039, h * 0.4755);8325// c.lineTo(w * 0.6187, h * 0.463);8326// c.moveTo(w * 0.6158, h * 0.4862);8327// c.lineTo(w * 0.6418, h * 0.4623);8328// c.moveTo(w * 0.6281, h * 0.4969);8329// c.lineTo(w * 0.6486, h * 0.478);8330// c.moveTo(w * 0.6395, h * 0.5063);8331// c.lineTo(w * 0.6736, h * 0.478);8332// 8333// c.stroke();8334//8335// c.setStrokeWidth(2 * strokeWidth);8336// c.setLineCap('round');8337//8338// c.setStrokeColor('#292929');8339// c.setLineJoin('round');8340//8341// c.begin();8342// c.moveTo(0, h * 0.5503);8343// c.lineTo(w * 0.0455, h * 0.4623);8344// c.lineTo(w * 0.6054, h * 0.0157);8345// c.lineTo(w * 0.6623, h * 0.0629);8346// c.lineTo(w * 0.7396, 0);8347// c.lineTo(w * 0.8239, h * 0.0692);8348// c.lineTo(w * 0.8671, h * 0.2233);8349// c.lineTo(w * 0.9513, h * 0.2943);8350// c.lineTo(w, h * 0.4528);8351// c.lineTo(w * 0.9595, h * 0.5365);8352// c.lineTo(w * 0.396, h * 0.9843);8353// c.lineTo(w * 0.3391, h * 0.9403);8354// c.lineTo(w * 0.2617, h);8355// c.lineTo(w * 0.173, h * 0.9308);8356// c.lineTo(w * 0.1297, h * 0.7736);8357// c.lineTo(w * 0.0432, h * 0.7044);8358// c.close();8359// c.stroke();8360//};8361//8362//mxCellRenderer.registerShape(mxShapeAws3dKinesisStream.prototype.cst.KINESIS_STREAM, mxShapeAws3dKinesisStream);8363//**********************************************************************************************************************************************************8364//SQS 28365//**********************************************************************************************************************************************************8366///**8367//* Extends mxShape.8368//*/8369//function mxShapeAws3dSqs2(bounds, fill, stroke, strokewidth)8370//{8371// mxShape.call(this);8372// this.bounds = bounds;8373// this.fill = fill;8374// this.stroke = stroke;8375// this.strokewidth = (strokewidth != null) ? strokewidth : 1;8376//};8377//8378///**8379//* Extends mxShape.8380//*/8381//mxUtils.extend(mxShapeAws3dSqs2, mxShape);8382//8383//mxShapeAws3dSqs2.prototype.cst = {8384// SQS2 : 'mxgraph.aws3d.sqs2',8385// SHADING_COLORS : 'shadingCols'8386//};8387//8388///**8389//* Function: paintVertexShape8390//* 8391//* Paints the vertex shape.8392//*/8393//mxShapeAws3dSqs2.prototype.paintVertexShape = function(c, x, y, w, h)8394//{8395// c.translate(x, y);8396//8397// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1'));8398// var strokeWidth1 = strokeWidth * w / 160;8399// var strokeWidth2 = strokeWidth * h / 93;8400// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0'));8401// 8402// strokeWidth = Math.min(strokeWidth1, strokeWidth2);8403// 8404// c.setStrokeWidth(strokeWidth);8405// c.setShadow(false);8406// c.save();8407// c.save();8408// c.setStrokeWidth(2 * strokeWidth);8409// c.setStrokeColor('#292929');8410// c.setLineJoin('round');8411//8412// if(isShadow == 1)8413// {8414// c.setShadow(true);8415// }8416// 8417// c.begin();8418// c.moveTo(0, h * 0.4737);8419// c.lineTo(w * 0.4652, 0);8420// c.lineTo(w * 0.6231, h * 0.0602);8421// c.lineTo(w * 0.6231, h * 0.1676);8422// c.lineTo(w * 0.1567, h * 0.6316);8423// c.close();8424// c.moveTo(w * 0.3756, h * 0.8443);8425// c.lineTo(w * 0.3756, h * 0.7454);8426// c.lineTo(w * 0.8439, h * 0.275);8427// c.lineTo(w, h * 0.5328);8428// c.lineTo(w * 0.5311, h);8429// c.close();8430// c.fillAndStroke();8431// 8432// c.restore();8433// c.setFillColor('#000000');8434// 8435// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(',');8436// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0');8437// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); 8438// 8439// c.begin();8440// c.moveTo(0, h * 0.4737);8441// c.lineTo(w * 0.1567, h * 0.5274);8442// c.lineTo(w * 0.1567, h * 0.6394);8443// c.close();8444// c.moveTo(w * 0.3756, h * 0.7454);8445// c.lineTo(w * 0.5311, h);8446// c.lineTo(w * 0.3756, h * 0.8443);8447// c.close();8448// c.fill();8449//8450// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); 8451// c.begin();8452// c.moveTo(w * 0.1567, h * 0.5274);8453// c.lineTo(w * 0.6231, h * 0.0602);8454// c.lineTo(w * 0.6231, h * 0.1676);8455// c.lineTo(w * 0.1567, h * 0.6294);8456// c.close();8457// c.fill();8458// 8459// c.restore();8460// c.setLineJoin('round');8461// 8462// c.begin();8463// c.moveTo(0, h * 0.4737);8464// c.lineTo(w * 0.1567, h * 0.5274);8465// c.lineTo(w * 0.1567, h * 0.6294);8466// c.close();8467// c.moveTo(w * 0.3756, h * 0.7454);8468// c.lineTo(w * 0.5311, h);8469// c.lineTo(w * 0.3756, h * 0.8443);8470// c.close();8471// c.moveTo(w * 0.1567, h * 0.5274);8472// c.lineTo(w * 0.6231, h * 0.0602);8473// c.lineTo(w * 0.6231, h * 0.1676);8474// c.lineTo(w * 0.1567, h * 0.6294);8475// c.close();8476// c.stroke();8477//8478// c.setStrokeWidth(2 * strokeWidth);8479// c.setLineCap('round');8480//8481// c.setStrokeColor('#292929');8482// c.setLineJoin('round');8483//8484// c.begin();8485// c.moveTo(0, h * 0.4737);8486// c.lineTo(w * 0.4652, 0);8487// c.lineTo(w * 0.6231, h * 0.0602);8488// c.lineTo(w * 0.6231, h * 0.1676);8489// c.lineTo(w * 0.1567, h * 0.6316);8490// c.close();8491// c.moveTo(w * 0.3756, h * 0.8443);8492// c.lineTo(w * 0.3756, h * 0.7454);8493// c.lineTo(w * 0.8439, h * 0.275);8494// c.lineTo(w, h * 0.5328);8495// c.lineTo(w * 0.5311, h);8496// c.close();8497// c.stroke();8498// 8499// c.setFillColor('#F4B934');8500// 8501// c.begin();8502// c.moveTo(w * 0.1256, h * 0.812);8503// c.lineTo(w * 0.24, h * 0.7605);8504// c.lineTo(w * 0.1853, h * 0.8829);8505// c.close();8506// c.moveTo(w * 0.2417, h * 0.6957);8507// c.lineTo(w * 0.3562, h * 0.6441);8508// c.lineTo(w * 0.3014, h * 0.7666);8509// c.close();8510// c.moveTo(w * 0.3588, h * 0.5793);8511// c.lineTo(w * 0.4733, h * 0.5277);8512// c.lineTo(w * 0.4185, h * 0.6502);8513// c.close();8514// c.moveTo(w * 0.477, h * 0.4611);8515// c.lineTo(w * 0.5914, h * 0.4096);8516// c.lineTo(w * 0.5367, h * 0.532);8517// c.close();8518// c.moveTo(w * 0.591, h * 0.343);8519// c.lineTo(w * 0.7054, h * 0.2914);8520// c.lineTo(w * 0.6507, h * 0.4139);8521// c.close();8522// c.moveTo(w * 0.7091, h * 0.2302);8523// c.lineTo(w * 0.8236, h * 0.1786);8524// c.lineTo(w * 0.7688, h * 0.3011);8525// c.close();8526// c.fillAndStroke();8527//};8528//...

Full Screen

Full Screen

board.js

Source:board.js Github

copy

Full Screen

...23 ctx.beginPath();24 25 // UP 26 ctx.moveTo(0, 231);27 ctx.lineTo(97, 231);28 ctx.arcTo(99, 231, 99, 228, 5);29 ctx.lineTo(99, 179);30 ctx.arcTo(99, 176, 97, 176, 5);31 ctx.lineTo(12, 176); 32 ctx.arcTo(1, 176, 1, 165, 12);33 ctx.lineTo(1, 10); 34 ctx.arcTo(1, 1, 10, 1, 12);35 ctx.lineTo(536, 1);36 ctx.arcTo(547, 1, 547, 12, 12);37 ctx.lineTo(547, 165);38 ctx.arcTo(547, 176, 536, 176, 12);39 ctx.lineTo(452, 176);40 ctx.arcTo(449, 176, 449, 179, 5);41 ctx.lineTo(449, 228);42 ctx.arcTo(449, 231, 451, 231, 5);43 ctx.lineTo(550, 231);44 ctx.stroke();45 46 ctx.moveTo(0, 238);47 ctx.lineTo(98, 238);48 ctx.arcTo(106, 238, 106, 232, 12);49 ctx.lineTo(106, 179);50 ctx.arcTo(106, 169, 101, 169, 12);51 ctx.lineTo(15, 169);52 ctx.arcTo(9, 169, 9, 158, 5);53 ctx.lineTo(9, 15);54 ctx.arcTo(9, 7, 18, 7, 5);55 ctx.lineTo(259, 7);56 ctx.arcTo(266, 7, 266, 11, 5);57 ctx.lineTo(266, 73);58 ctx.arcTo(266, 78, 269, 78, 5);59 ctx.lineTo(280, 78);60 ctx.arcTo(283, 78, 283, 75, 5);61 ctx.lineTo(283, 15);62 ctx.arcTo(283, 7, 286, 7, 5);63 ctx.lineTo(533, 7);64 ctx.arcTo(540, 7, 540, 11, 5);65 ctx.lineTo(540, 165);66 ctx.arcTo(540, 169, 533, 169, 5);67 ctx.lineTo(452, 169);68 ctx.arcTo(442, 169, 442, 172, 12);69 ctx.lineTo(442, 230);70 ctx.arcTo(442, 238, 445, 238, 12);71 ctx.lineTo(550, 238);72 ctx.stroke();73 74 // DOWN 75 ctx.moveTo(0, 283);76 ctx.lineTo(97, 283);77 ctx.arcTo(99, 283, 99, 286, 5);78 ctx.lineTo(99, 335);79 ctx.arcTo(99, 338, 96, 338, 5);80 ctx.lineTo(9, 338);81 ctx.arcTo(1, 338, 1, 341, 12);82 ctx.lineTo(1, 540);83 ctx.arcTo(1, 548, 9, 548, 12);84 ctx.lineTo(539, 548);85 ctx.arcTo(547, 548, 547, 540, 12);86 ctx.lineTo(547, 345);87 ctx.arcTo(547, 337, 539, 337, 12);88 ctx.lineTo(453, 337);89 ctx.arcTo(450, 337, 450, 334, 5);90 ctx.lineTo(450, 286);91 ctx.arcTo(450, 283, 453, 283, 5);92 ctx.lineTo(550, 283);93 ctx.stroke();94 95 ctx.moveTo(0, 276);96 ctx.lineTo(99, 276);97 ctx.arcTo(107, 276, 107, 282, 12);98 ctx.lineTo(107, 335);99 ctx.arcTo(107, 345, 101, 345, 12);100 ctx.lineTo(12, 345);101 ctx.arcTo(9, 345, 9, 348, 5);102 ctx.lineTo(9, 432);103 ctx.arcTo(9, 435, 12, 435, 5);104 ctx.lineTo(44, 435);105 ctx.arcTo(47, 435, 47, 438, 5);106 ctx.lineTo(47, 448);107 ctx.arcTo(47, 451, 44, 451, 5);108 ctx.lineTo(12, 451);109 ctx.arcTo(9, 451, 9, 454, 5);110 ctx.lineTo(9, 538);111 ctx.arcTo(9, 541, 12, 541, 5);112 ctx.lineTo(536, 541);113 ctx.arcTo(539, 541, 539, 538, 5);114 ctx.lineTo(539, 455);115 ctx.arcTo(539, 451, 536, 451, 5);116 ctx.lineTo(505, 451);117 ctx.arcTo(502, 451, 502, 448, 5);118 ctx.lineTo(502, 439);119 ctx.arcTo(502, 436, 505, 436, 5);120 ctx.lineTo(536, 436);121 ctx.arcTo(539, 433, 539, 430, 5);122 ctx.lineTo(539, 349);123 ctx.arcTo(539, 345, 536, 345, 5);124 ctx.lineTo(455, 345);125 ctx.arcTo(442, 345, 442, 342, 12);126 ctx.lineTo(442, 288);127 ctx.arcTo(442, 276, 448, 276, 12);128 ctx.lineTo(550, 276);129 ctx.stroke();130 131 // LEFT132 ctx.roundRect(50, 45, 107, 79, 5);133 ctx.stroke();134 ctx.roundRect(50, 116, 107, 132, 5);135 ctx.stroke();136 ctx.roundRect(148, 45, 224, 79, 5);137 ctx.stroke();138 ctx.roundRect(148, 382, 224, 398, 5);139 ctx.stroke();140 ctx.roundRect(148, 276, 165, 345, 5);141 ctx.stroke();142 143 ctx.moveTo(56, 504);144 ctx.lineTo(220, 504);145 ctx.arcTo(223, 504, 223, 501, 5);146 ctx.lineTo(223, 492);147 ctx.arcTo(223, 489, 220, 489, 5);148 ctx.lineTo(168, 489);149 ctx.arcTo(165, 489, 165, 486, 5);150 ctx.lineTo(165, 439); 151 ctx.arcTo(165, 436, 162, 436, 5);152 ctx.lineTo(152, 436);153 ctx.arcTo(149, 436, 149, 439, 5);154 ctx.lineTo(149, 486); 155 ctx.arcTo(149, 489, 146, 489, 5);156 ctx.lineTo(54, 489);157 ctx.arcTo(51, 489, 51, 492, 5);158 ctx.lineTo(51, 501);159 ctx.arcTo(51, 504, 54, 504, 5);160 ctx.stroke();161 162 ctx.moveTo(55, 382);163 ctx.lineTo(104, 382);164 ctx.arcTo(107, 382, 107, 385, 5);165 ctx.lineTo(107, 447);166 ctx.arcTo(107, 450, 104, 450, 5);167 ctx.lineTo(93, 450);168 ctx.arcTo(90, 450, 90, 447, 5);169 ctx.lineTo(90, 401);170 ctx.arcTo(90, 398, 87, 398, 5);171 ctx.lineTo(55, 398);172 ctx.arcTo(52, 398, 52, 395, 5);173 ctx.lineTo(52, 385);174 ctx.arcTo(52, 382, 55, 382, 5);175 ctx.stroke();176 177 ctx.moveTo(148, 121);178 ctx.lineTo(148, 236); 179 ctx.arcTo(148, 239, 151, 239, 5);180 ctx.lineTo(162, 239);181 ctx.arcTo(165, 239, 165, 236, 5);182 ctx.lineTo(165, 188);183 ctx.arcTo(165, 185, 168, 185, 5);184 ctx.lineTo(221, 185);185 ctx.arcTo(224, 185, 224, 182, 5);186 ctx.lineTo(224, 173);187 ctx.arcTo(224, 170, 221, 170, 5);188 ctx.lineTo(168, 170);189 ctx.arcTo(165, 170, 165, 169, 5);190 ctx.lineTo(165, 120);191 ctx.arcTo(165, 117, 162, 117, 5);192 ctx.lineTo(151, 117);193 ctx.arcTo(148, 117, 148, 120, 5);194 ctx.stroke();195 196 // RIGHT197 ctx.roundRect(442, 45, 498, 79, 5);198 ctx.stroke();199 ctx.roundRect(442, 116, 498, 132, 5);200 ctx.stroke();201 ctx.roundRect(324, 45, 400, 79, 5);202 ctx.stroke();203 ctx.roundRect(324, 382, 400, 398, 5);204 ctx.stroke();205 ctx.roundRect(383, 276, 400, 345, 5);206 ctx.stroke();207 208 ctx.moveTo(330, 504);209 ctx.lineTo(494, 504);210 ctx.arcTo(497, 504, 497, 501, 5);211 ctx.lineTo(497, 492);212 ctx.arcTo(497, 489, 494, 489, 5);213 ctx.lineTo(403, 489);214 ctx.arcTo(400, 489, 400, 486, 5);215 ctx.lineTo(400, 441);216 ctx.arcTo(397, 436, 394, 436, 5);217 ctx.lineTo(386, 436);218 ctx.arcTo(383, 436, 383, 439, 5);219 ctx.lineTo(383, 486);220 ctx.arcTo(383, 489, 380, 489, 5);221 ctx.lineTo(328, 489);222 ctx.arcTo(325, 489, 325, 492, 5);223 ctx.lineTo(325, 500);224 ctx.arcTo(325, 504, 328, 504, 5);225 ctx.stroke();226 227 ctx.moveTo(495, 382);228 ctx.lineTo(445, 382);229 ctx.arcTo(442, 382, 442, 385, 5);230 ctx.lineTo(442, 447);231 ctx.arcTo(442, 450, 445, 450, 5);232 ctx.lineTo(456, 450);233 ctx.arcTo(459, 450, 459, 447, 5);234 ctx.lineTo(459, 401);235 ctx.arcTo(459, 398, 462, 398, 5);236 ctx.lineTo(495, 398);237 ctx.arcTo(498, 398, 498, 395, 5);238 ctx.lineTo(498, 385);239 ctx.arcTo(498, 382, 495, 382, 5);240 ctx.stroke();241 242 ctx.moveTo(400, 121);243 ctx.lineTo(400, 236);244 ctx.arcTo(400, 239, 397, 239, 5);245 ctx.lineTo(386, 239);246 ctx.arcTo(383, 239, 383, 236, 5);247 ctx.lineTo(383, 188);248 ctx.arcTo(383, 185, 380, 185, 5);249 ctx.lineTo(328, 185);250 ctx.arcTo(325, 185, 325, 182, 5);251 ctx.lineTo(325, 173);252 ctx.arcTo(325, 170, 328, 170, 5);253 ctx.lineTo(380, 170);254 ctx.arcTo(383, 170, 383, 169, 5);255 ctx.lineTo(383, 120);256 ctx.arcTo(383, 117, 385, 117, 5);257 ctx.lineTo(397, 117);258 ctx.arcTo(400, 117, 400, 120, 5);259 ctx.stroke();260 261 // CENTER262 ctx.moveTo(212, 117);263 ctx.lineTo(338, 117);264 ctx.arcTo(341, 120, 341, 123, 5);265 ctx.lineTo(341, 129);266 ctx.arcTo(341, 132, 338, 132, 5);267 ctx.lineTo(286, 132);268 ctx.arcTo(283, 132, 283, 135, 5);269 ctx.lineTo(283, 182);270 ctx.arcTo(283, 185, 280, 185, 5);271 ctx.lineTo(269, 185);272 ctx.arcTo(266, 185, 266, 182, 5);273 ctx.lineTo(266, 135);274 ctx.arcTo(266, 132, 262, 132, 5);275 ctx.lineTo(211, 132);276 ctx.arcTo(208, 132, 208, 129, 5);277 ctx.lineTo(208, 120);278 ctx.arcTo(208, 117, 211, 117, 5);279 ctx.stroke();280 ctx.moveTo(212, 329);281 ctx.lineTo(338, 329);282 ctx.arcTo(341, 332, 341, 335, 5);283 ctx.lineTo(341, 341);284 ctx.arcTo(341, 344, 338, 344, 5);285 ctx.lineTo(286, 344);286 ctx.arcTo(283, 344, 283, 347, 5);287 ctx.lineTo(283, 394);288 ctx.arcTo(283, 397, 280, 397, 5);289 ctx.lineTo(269, 397);290 ctx.arcTo(266, 397, 266, 394, 5);291 ctx.lineTo(266, 347);292 ctx.arcTo(266, 344, 262, 344, 5);293 ctx.lineTo(211, 344);294 ctx.arcTo(208, 344, 208, 129, 5);295 ctx.lineTo(208, 332);296 ctx.arcTo(208, 329, 211, 329, 5);297 ctx.stroke();298 ctx.moveTo(212, 436);299 ctx.lineTo(338, 436);300 ctx.arcTo(341, 439, 341, 442, 5);301 ctx.lineTo(341, 448);302 ctx.arcTo(341, 451, 338, 451, 5);303 ctx.lineTo(286, 451);304 ctx.arcTo(283, 451, 283, 454, 5);305 ctx.lineTo(283, 501);306 ctx.arcTo(283, 503, 280, 503, 5);307 ctx.lineTo(269, 503);308 ctx.arcTo(266, 503, 266, 501, 5);309 ctx.lineTo(266, 454);310 ctx.arcTo(266, 451, 262, 451, 5);311 ctx.lineTo(211, 451);312 ctx.arcTo(208, 451, 208, 236, 5);313 ctx.lineTo(208, 439);314 ctx.arcTo(208, 436, 211, 436, 5);315 ctx.stroke();316 317 ctx.moveTo(254, 223);318 ctx.lineTo(207, 223);319 ctx.lineTo(207, 292);320 ctx.lineTo(342, 292);321 ctx.lineTo(342, 223);322 ctx.lineTo(296, 223);323 ctx.lineTo(296, 230);324 ctx.lineTo(334, 230);325 ctx.lineTo(334, 284);326 ctx.lineTo(214, 284);327 ctx.lineTo(214, 230);328 ctx.lineTo(254, 230);329 ctx.lineTo(254, 223);330 ctx.stroke();331 332 ctx.closePath();333}334function drawBoardDoor() { 335 var ctx = getBoardCanevasContext();336 337 ctx.strokeStyle = "white";338 ctx.lineWidth = "5";339 340 ctx.beginPath();341 ctx.moveTo(255, 226);342 ctx.lineTo(295, 226);343 ctx.stroke();344 345 ctx.closePath();346}347function eraseBoardDoor() { 348 var ctx = getBoardCanevasContext();349 //ctx.translate(FRUITS_POSITION_X - (FRUITS_SIZE / 2), FRUITS_POSITION_Y - (FRUITS_SIZE / 2));350 //ctx.save();351 //ctx.globalCompositeOperation = "destination-out";352 353 //ctx.beginPath();354 //ctx.translate(FRUITS_POSITION_X - (FRUITS_SIZE / 2), FRUITS_POSITION_Y - (FRUITS_SIZE / 2));355 ctx.clearRect(255, 220, 40, 10);356 //ctx.fill();...

Full Screen

Full Screen

icons.js

Source:icons.js Github

copy

Full Screen

2 ctx.globalAlpha=1.0;3 ctx.fillStyle='#244FA2';4 ctx.beginPath();5 ctx.moveTo(35,7);6 ctx.lineTo(29,1);7 ctx.lineTo(4,1);8 ctx.lineTo(4,1);9 ctx.bezierCurveTo(3,1,1,3,1,4);10 ctx.lineTo(1,32);11 ctx.bezierCurveTo(1,33,3,35,4,35);12 ctx.lineTo(4,35);13 ctx.lineTo(32,35);14 ctx.bezierCurveTo(33,35,33,34,34,34);15 ctx.bezierCurveTo(35,33,35,33,35,32);16 ctx.bezierCurveTo(35,32,35,32,35,32);17 ctx.lineTo(35,32);18 ctx.lineTo(35,7);19 ctx.lineTo(35,7);20 ctx.fill();21 ctx.fillStyle='#A7A9AC';22 ctx.strokeStyle='#000000';23 ctx.lineWidth='0.25';24 ctx.beginPath();25 ctx.moveTo(28,1);26 ctx.bezierCurveTo(28,4,28,7,28,10);27 ctx.bezierCurveTo(28,10,28,10,28,11);28 ctx.bezierCurveTo(27,12,27,12,26,12);29 ctx.bezierCurveTo(24,12,22,12,19,12);30 ctx.bezierCurveTo(17,12,14,12,11,12);31 ctx.bezierCurveTo(10,12,9,12,9,10);32 ctx.bezierCurveTo(9,7,9,4,9,2);33 ctx.bezierCurveTo(9,1,9,1,9,1);34 ctx.bezierCurveTo(15,1,21,1,28,1);35 ctx.lineTo(28,1);36 ctx.moveTo(26,7);37 ctx.bezierCurveTo(26,7,26,7,26,7);38 ctx.bezierCurveTo(26,6,26,4,26,3);39 ctx.bezierCurveTo(26,3,25,3,25,3);40 ctx.bezierCurveTo(24,3,22,3,20,3);41 ctx.bezierCurveTo(20,3,20,3,20,3);42 ctx.bezierCurveTo(20,5,20,8,20,10);43 ctx.bezierCurveTo(20,10,20,10,20,10);44 ctx.bezierCurveTo(22,10,23,10,25,10);45 ctx.bezierCurveTo(25,10,25,10,25,10);46 ctx.bezierCurveTo(26,9,26,8,26,7);47 ctx.lineTo(26,7);48 ctx.fill();49 ctx.stroke();50 ctx.fillStyle='#F0F2F3';51 ctx.beginPath();52 ctx.moveTo(5,33);53 ctx.bezierCurveTo(5,31,5,30,5,28);54 ctx.bezierCurveTo(5,25,5,23,5,20);55 ctx.bezierCurveTo(5,19,6,18,7,18);56 ctx.bezierCurveTo(14,18,22,18,29,18);57 ctx.bezierCurveTo(30,18,31,19,31,20);58 ctx.bezierCurveTo(31,24,31,29,31,33);59 ctx.bezierCurveTo(31,33,31,33,31,33);60 ctx.bezierCurveTo(22,33,14,33,5,33);61 ctx.lineTo(5,33);62 ctx.fill();63 ctx.fillStyle='#C9CED2';64 ctx.beginPath();65 ctx.moveTo(5,33);66 ctx.bezierCurveTo(14,33,22,33,31,33);67 ctx.bezierCurveTo(31,34,31,34,31,35);68 ctx.bezierCurveTo(31,35,31,35,31,35);69 ctx.bezierCurveTo(22,35,14,35,5,35);70 ctx.bezierCurveTo(5,35,5,35,5,35);71 ctx.bezierCurveTo(5,34,5,34,5,33);72 ctx.lineTo(5,33);73 ctx.fill();74 ctx.fillStyle='#C9CED2';75 ctx.beginPath();76 ctx.moveTo(30,29);77 ctx.bezierCurveTo(30,29,30,29,29,29);78 ctx.lineTo(29,29);79 ctx.lineTo(7,29);80 ctx.lineTo(7,29);81 ctx.bezierCurveTo(7,29,7,29,7,29);82 ctx.bezierCurveTo(6,29,6,29,6,29);83 ctx.bezierCurveTo(7,30,7,30,7,30);84 ctx.bezierCurveTo(7,30,7,30,7,30);85 ctx.lineTo(7,30);86 ctx.lineTo(29,30);87 ctx.lineTo(29,30);88 ctx.bezierCurveTo(30,30,30,30,30,29);89 ctx.lineTo(30,29);90 ctx.fill();91 ctx.fillStyle='#C9CED2';92 ctx.beginPath();93 ctx.moveTo(30,22);94 ctx.bezierCurveTo(30,21,30,21,29,21);95 ctx.lineTo(29,21);96 ctx.lineTo(7,21);97 ctx.lineTo(7,21);98 ctx.bezierCurveTo(7,21,7,21,7,21);99 ctx.bezierCurveTo(6,21,6,21,6,22);100 ctx.bezierCurveTo(7,22,7,22,7,22);101 ctx.bezierCurveTo(7,22,7,22,7,22);102 ctx.lineTo(7,22);103 ctx.lineTo(29,22);104 ctx.lineTo(29,22);105 ctx.bezierCurveTo(30,22,30,22,30,22);106 ctx.lineTo(30,22);107 ctx.fill();108 ctx.fillStyle='#C9CED2';109 ctx.beginPath();110 ctx.moveTo(30,26);111 ctx.bezierCurveTo(30,25,30,25,29,25);112 ctx.lineTo(29,25);113 ctx.lineTo(7,25);114 ctx.lineTo(7,25);115 ctx.bezierCurveTo(7,25,7,25,7,25);116 ctx.bezierCurveTo(6,25,6,25,6,26);117 ctx.bezierCurveTo(7,26,7,26,7,26);118 ctx.bezierCurveTo(7,26,7,26,7,26);119 ctx.lineTo(7,26);120 ctx.lineTo(29,26);121 ctx.lineTo(29,26);122 ctx.bezierCurveTo(30,26,30,26,30,26);123 ctx.lineTo(30,26);124 ctx.fill();125}126function folder(){127 //--==## SVGID_1_ linearGradient ##==--128var SVGID_1_=ctx.createLinearGradient(16,5,15,32);129SVGID_1_.addColorStop(0,'RGB(219,170,93)');130SVGID_1_.addColorStop(1,'RGB(161,126,68)');131ctx.fillStyle=SVGID_1_;132ctx.beginPath();133ctx.moveTo(15,8);134ctx.lineTo(30,8);135ctx.bezierCurveTo(31,8,31,8,31,9);136ctx.lineTo(31,31);137ctx.bezierCurveTo(31,32,31,32,30,32);138ctx.lineTo(1,32);139ctx.bezierCurveTo(1,32,0,32,0,31);140ctx.lineTo(0,9);141ctx.bezierCurveTo(0,8,1,8,1,8);142ctx.lineTo(4,8);143ctx.lineTo(4,6);144ctx.bezierCurveTo(4,5,5,5,5,5);145ctx.lineTo(14,5);146ctx.bezierCurveTo(14,5,15,5,15,6);147ctx.lineTo(15,8);148ctx.lineTo(15,8);149ctx.fill();150ctx.fillStyle='#F0F2F3';151ctx.strokeStyle='#58595B';152ctx.lineWidth='0.5';153ctx.beginPath();154ctx.moveTo(17,29);155ctx.lineTo(33,16);156ctx.lineTo(25,2);157ctx.lineTo(5,13);158ctx.lineTo(12,29);159ctx.lineTo(17,29);160ctx.fill();161ctx.stroke();162ctx.fillStyle='#C9CED2';163ctx.beginPath();164ctx.moveTo(6,13);165ctx.lineTo(32,13);166ctx.lineTo(31,13);167ctx.lineTo(29,13);168ctx.lineTo(25,6);169ctx.lineTo(25,6);170ctx.bezierCurveTo(25,6,25,6,25,6);171ctx.bezierCurveTo(25,6,24,6,24,6);172ctx.bezierCurveTo(24,6,24,6,24,6);173ctx.bezierCurveTo(24,6,24,6,24,6);174ctx.lineTo(24,6);175ctx.lineTo(28,13);176ctx.lineTo(25,13);177ctx.lineTo(22,7);178ctx.bezierCurveTo(22,7,22,7,22,7);179ctx.bezierCurveTo(22,7,22,7,22,7);180ctx.bezierCurveTo(22,7,21,7,22,8);181ctx.bezierCurveTo(22,8,22,8,22,8);182ctx.lineTo(22,8);183ctx.lineTo(24,13);184ctx.lineTo(22,13);185ctx.lineTo(20,8);186ctx.bezierCurveTo(20,8,20,8,20,8);187ctx.bezierCurveTo(20,8,19,8,19,8);188ctx.bezierCurveTo(19,9,19,9,19,9);189ctx.bezierCurveTo(19,9,19,9,19,9);190ctx.lineTo(19,9);191ctx.lineTo(21,13);192ctx.lineTo(19,13);193ctx.lineTo(17,10);194ctx.bezierCurveTo(17,10,17,10,17,10);195ctx.bezierCurveTo(17,10,17,9,17,10);196ctx.bezierCurveTo(17,10,16,10,17,10);197ctx.bezierCurveTo(17,10,17,10,17,10);198ctx.lineTo(17,10);199ctx.lineTo(18,12);200ctx.lineTo(6,12);201ctx.lineTo(6,13);202ctx.lineTo(6,13);203ctx.fill();204ctx.fillStyle='#F7C06A';205ctx.beginPath();206ctx.moveTo(5,15);207ctx.bezierCurveTo(5,14,6,14,6,14);208ctx.lineTo(35,14);209ctx.bezierCurveTo(36,14,36,14,36,15);210ctx.lineTo(32,31);211ctx.bezierCurveTo(32,32,31,32,30,32);212ctx.lineTo(1,32);213ctx.bezierCurveTo(1,32,0,32,0,31);214ctx.lineTo(5,15);215ctx.lineTo(5,15);216ctx.fill();217ctx.fillStyle='#AEB1B2';218ctx.beginPath();219ctx.moveTo(32,13);220ctx.lineTo(6,13);221ctx.lineTo(6,14);222ctx.lineTo(32,14);223ctx.lineTo(32,13);224ctx.fill();...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var x1 = 100;2var y1 = 100;3var x2 = 200;4var y2 = 200;5var color = "red";6var thickness = 1;7var line = new Line(x1, y1, x2, y2, color, thickness);8line.draw();

Full Screen

Using AI Code Generation

copy

Full Screen

1var canvas = document.getElementById("myCanvas");2var ctx = canvas.getContext("2d");3ctx.moveTo(0,0);4ctx.lineTo(100,100);5ctx.stroke();6The following program will draw a line on the canvas from (0,0) to (100,100) using the lineTo() method:7var canvas = document.getElementById("myCanvas");8var ctx = canvas.getContext("2d");9ctx.lineTo(100,100);10ctx.stroke();

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptoolkit = require('wptoolkit');2var canvas = new wptoolkit.Canvas(100, 100);3var path = new wptoolkit.Path();4path.moveTo(10, 10);5path.lineTo(20, 20);6path.lineTo(30, 30);7path.lineTo(40, 40);8path.lineTo(50, 50);9path.lineTo(60, 60);10path.lineTo(70, 70);11path.lineTo(80, 80);12path.lineTo(90, 90);13path.lineTo(100, 100);14canvas.drawPath(path);15canvas.render();16canvas.save('test.png');17canvas.save('test.jpg');18canvas.save('test.gif');19canvas.save('test.bmp');20canvas.save('test.tiff');21canvas.save('test.webp');22canvas.save('test.ppm');23canvas.save('test.pgm');24canvas.save('test.pbm');25canvas.save('test8.png', 'png', 8);26canvas.save('test16.png', 'png', 16);27canvas.save('test32.png', 'png', 32);28canvas.save('test

Full Screen

Using AI Code Generation

copy

Full Screen

1var canvas = document.getElementById("myCanvas");2var ctx = canvas.getContext('2d');3var text = new THREE.TextGeometry("Hello World!", {4});5var textMaterial = new THREE.MeshBasicMaterial({color: 0x0000ff});6var textMesh = new THREE.Mesh(text, textMaterial);7var text3d = new THREE.Object3D();8text3d.add(textMesh);9text3d.position.z = -1000;10scene.add(text3d);11var text2d = new THREE.TextGeometry("Hello World!", {12});13var text2dMaterial = new THREE.MeshBasicMaterial({color: 0xff0000});14var text2dMesh = new THREE.Mesh(text2d, text2dMaterial);15var text2dObject = new THREE.Object3D();16text2dObject.add(text2dMesh);17text2dObject.position.z = -1000;18scene.add(text2dObject);19var text2d = new THREE.TextGeometry("Hello World!", {20});21var text2dMaterial = new THREE.MeshBasicMaterial({color: 0xff0000});22var text2dMesh = new THREE.Mesh(text2d, text2dMaterial);23var text2dObject = new THREE.Object3D();24text2dObject.add(text2dMesh);25text2dObject.position.z = -1000;26scene.add(text2dObject);27var text2d = new THREE.TextGeometry("Hello World!", {28});29var text2dMaterial = new THREE.MeshBasicMaterial({color: 0xff0000});30var text2dMesh = new THREE.Mesh(text2d, text2dMaterial);

Full Screen

Using AI Code Generation

copy

Full Screen

1var canvas = document.getElementById("canvas");2var context = canvas.getContext("2d");3context.strokeStyle = "#FF0000";4context.lineWidth = 5;5context.moveTo(100, 100);6context.lineTo(400, 400);7context.stroke();8context.beginPath();9context.arc(300, 300, 100, 0, 2*Math.PI, false);10context.stroke();11context.beginPath();12context.rect(50, 50, 200, 200);13context.stroke();14context.font = "30px Arial";15context.fillText("Hello World", 50, 50);16var image = new Image();17image.src = "image.jpg";18image.onload = function() {19context.drawImage(image, 0, 0);20}21context.beginPath();22context.moveTo(200, 50);23context.lineTo(100, 250);24context.lineTo(300, 250);25context.closePath();26context.stroke();27context.beginPath();28context.moveTo(50, 50);29context.quadraticCurveTo(100, 0, 200, 50);30context.stroke();31context.beginPath();32context.moveTo(50, 50);33context.bezierCurveTo(100, 0, 200, 100, 200, 50);34context.stroke();35context.beginPath();36context.arc(150, 150, 100, 0, 0.5*Math.PI, false);37context.stroke();38context.beginPath();39context.moveTo(150, 150);40context.arc(150, 150, 100, 0, 0.5*Math.PI, false);41context.lineTo(150, 150);42context.closePath();43context.fill();44context.beginPath();45context.moveTo(100, 100);46context.lineTo(200, 100);47context.lineTo(200, 200);48context.lineTo(100, 200);49context.closePath();50context.stroke();51context.beginPath();52context.moveTo(100, 100);53context.lineTo(200, 100);54context.lineTo(200, 200);

Full Screen

Using AI Code Generation

copy

Full Screen

1WPT.line(0, 0, 200, 100);2WPT.lineWidth(5);3WPT.stroke();4WPT.moveTo(100, 0);5WPT.lineTo(100, 100);6WPT.stroke();7WPT.lineWidth(1);8WPT.arc(100, 100, 50, 0, 360, false);9WPT.stroke();10WPT.fill();11WPT.fillStyle("green");12WPT.lineWidth(1);13WPT.rect(0, 0, 200, 100);14WPT.stroke();15WPT.fill();16WPT.fillStyle("red");17WPT.fill();18WPT.fillStyle("red");19WPT.fillText("Hello World", 0, 100);20WPT.fillStyle("red");21WPT.fillText("Hello World", 0, 100);22WPT.fillStyle("red");23WPT.fillText("Hello World", 0, 100);24WPT.fillStyle("red");25WPT.fillText("Hello World", 0, 100);26WPT.fillStyle("red");27WPT.fillText("Hello World", 0, 100);28WPT.fillStyle("red");29WPT.fillText("Hello World", 0, 100);30WPT.fillStyle("red");

Full Screen

Using AI Code Generation

copy

Full Screen

1var canvas = document.getElementById("canvas");2var context = canvas.getContext("2d");3context.strokeStyle = "red";4context.lineWidth = 5;5context.beginPath();6context.moveTo(100, 100);7context.lineTo(200, 200);8context.stroke();9var canvas = document.getElementById("canvas");10var context = canvas.getContext("2d");11context.strokeStyle = "red";12context.lineWidth = 5;13context.beginPath();14context.arc(200, 200, 100, 0, Math.PI*2, true);15context.stroke();16var canvas = document.getElementById("canvas");17var context = canvas.getContext("2d");18context.strokeStyle = "red";19context.lineWidth = 5;20context.beginPath();21context.moveTo(100, 100);22context.quadraticCurveTo(200, 200, 300, 100);23context.stroke();24var canvas = document.getElementById("canvas");25var context = canvas.getContext("2d");26context.strokeStyle = "red";27context.lineWidth = 5;28context.beginPath();29context.moveTo(100, 100);30context.bezierCurveTo(200, 200, 300, 200, 400, 100);31context.stroke();32var canvas = document.getElementById("canvas");

Full Screen

Using AI Code Generation

copy

Full Screen

1var canvas = document.getElementById("myCanvas");2var ctx = canvas.getContext("2d");3ctx.strokeStyle = "red";4ctx.lineTo(150, 75);5ctx.stroke();6ctx.beginPath();7ctx.arc(150, 75, 25, 0, 2 * Math.PI);8ctx.stroke();9ctx.beginPath();10ctx.rect(25, 25, 150, 100);11ctx.stroke();12ctx.beginPath();13ctx.moveTo(25, 25);14ctx.lineTo(150, 75);15ctx.lineTo(25, 125);16ctx.lineTo(25, 25);17ctx.stroke();18ctx.beginPath();19ctx.moveTo(25, 125);20ctx.lineTo(150, 75);21ctx.lineTo(25, 25);22ctx.lineTo(25, 125);23ctx.stroke();24ctx.beginPath();25ctx.arc(150, 75, 25, 0, 2 * Math.PI);26ctx.stroke();

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful