diff options
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/board.function.element.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/board.function.element.ts | 327 |
1 files changed, 327 insertions, 0 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/board.function.element.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/board.function.element.ts new file mode 100644 index 000000000..42813075c --- /dev/null +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/board.function.element.ts @@ -0,0 +1,327 @@ +import * as joint from 'jointjs'; + +declare module 'jointjs' { + namespace shapes { + // add new module called "app" under the already existing "shapes" modeule inside jointjs + export namespace board { + class FunctionElement extends joint.shapes.standard.Rectangle { + } + } + } +} + +const rectWidth = 260; +const rectHeight = 150; +const FunctionElement = joint.shapes.standard.Rectangle.define('board.FunctionElement', { + size: { width: rectWidth, height: rectHeight }, + attrs: { + icon: { + 'xlink:href': 'http://placehold.it/16x16' + }, + type: '' + } +}, { + markup: + `<g id="func-board-element" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <g id="func-board-element-parent-component" transform="translate(-742.000000, -207.000000)"> + <g id="workflow-container" transform="translate(401.000000, 137.000000)"> + <g id="func-board-element-conponent" transform="translate(30.000000, 70.000000)"> + <g id="execute" transform="translate(304.000000, 0.000000)"> + <g id="Group" transform="translate(7.000000, 0.000000)"> + <rect id="func-board-element-rectangle" fill="#1B3E6F" x="0" y="0" width="230" height="130" rx="2"></rect> + <g id="Group-4" transform="translate(36.000000, 25.000000)" fill="#FFFFFF"> + <g id="database0-copy" transform="translate(61.000000, 0.000000)" fill-rule="nonzero"> + <path d="M35.544,6.00705882 C34.7265882, + 2.97882353 28.6425882,0 18,0 C7.35741176, + 0 1.27270588,2.97882353 0.456,6.00705882 C0.396705882, + 6.11082353 0.352941176,6.22447059 0.352941176, + 6.35294118 L0.352941176,6.70588235 L0.352941176, + 14.8235294 L0.352941176,15.1764706 L0.352941176, + 15.5294118 L0.352941176,23.2941176 L0.352941176, + 23.6470588 L0.352941176,24 L0.352941176, + 32.4705882 C0.352941176,32.5849412 0.383294118, + 32.6929412 0.435529412,32.7889412 C1.26917647, + 36.2442353 8.72752941,38.8235294 18, + 38.8235294 C27.2512941,38.8235294 34.6976471, + 36.2548235 35.5588235,32.8122353 C35.6152941, + 32.7112941 35.6470588,32.5948235 35.6470588, + 32.4705882 L35.6470588,24 L35.6470588, + 23.6470588 L35.6470588,23.2941176 L35.6470588, + 15.5294118 L35.6470588,15.1764706 L35.6470588, + 14.8235294 L35.6470588,6.70588235 L35.6470588, + 6.35294118 C35.6470588,6.22447059 35.6032941, + 6.11082353 35.544,6.00705882 Z M34.1795294, + 23.9894118 C34.1597647,24.0748235 34.1322353, + 24.1595294 34.0976471,24.2456471 C34.0694118, + 24.3155294 34.0348235,24.3854118 33.9967059, + 24.4552941 C33.9494118,24.5421176 33.8964706, + 24.6289412 33.8336471,24.7157647 C33.7870588, + 24.7814118 33.7341176,24.8463529 33.6790588, + 24.9112941 C33.6007059,25.0037647 33.5174118, + 25.0962353 33.4228235,25.188 C33.3656471, + 25.2437647 33.3028235,25.2988235 33.2392941, + 25.3545882 C33.1235294,25.4555294 33.0028235, + 25.5557647 32.868,25.6552941 C32.8101176,25.6983529 32.748,25.74 32.6865882, + 25.7823529 C32.5270588, + 25.8924706 32.3604706,26.0018824 32.1776471, + 26.1091765 C32.1296471,26.1381176 32.0781176, + 26.1656471 32.028,26.1938824 C31.8176471, + 26.3124706 31.5981176,26.4303529 31.3609412, + 26.5447059 C31.3305882,26.5595294 31.2988235, + 26.5736471 31.2677647,26.5877647 C31.0030588, + 26.7127059 30.7263529,26.8355294 30.4305882, + 26.9541176 C30.4221176,26.9576471 30.4136471, + 26.9604706 30.4051765,26.964 C28.8021176, + 27.6042353 26.7515294,28.1428235 24.3621176, + 28.4957647 C24.3501176,28.4971765 24.3381176, + 28.4985882 24.3261176,28.5007059 C23.8616471, + 28.5691765 23.3851765,28.6298824 22.896, + 28.6835294 C22.8162353,28.692 22.7322353, + 28.6976471 22.6517647,28.7061176 C22.2247059, + 28.7505882 21.7927059,28.7915294 21.348, + 28.824 C21.1447059,28.8388235 20.9315294, + 28.8458824 20.7247059,28.8585882 C20.3901176, + 28.8783529 20.0590588,28.9002353 19.716, + 28.9122353 C19.1555294,28.9298824 18.5837647, + 28.9411765 18,28.9411765 C17.4162353, + 28.9411765 16.8444706,28.9298824 16.2832941, + 28.9101176 C15.9402353,28.8981176 15.6091765, + 28.8755294 15.2745882,28.8564706 C15.0677647, + 28.8444706 14.8545882,28.8367059 14.6512941, + 28.8218824 C14.2065882,28.7894118 13.7745882, + 28.7484706 13.3475294,28.704 C13.2670588, + 28.6955294 13.1830588,28.6898824 13.1032941, + 28.6814118 C12.6141176,28.6277647 12.1376471, + 28.5663529 11.6731765,28.4985882 C11.6611765, + 28.4971765 11.6491765,28.4957647 11.6371765, + 28.4936471 C9.24776471,28.1407059 7.19717647, + 27.6021176 5.59411765,26.9618824 C5.58564706, + 26.9590588 5.57717647,26.9555294 5.56870588, + 26.952 C5.27294118,26.8334118 4.99552941, + 26.7105882 4.73152941,26.5856471 C4.70117647, + 26.5708235 4.66870588,26.5567059 4.63835294, + 26.5425882 C4.40117647,26.4282353 4.18164706, + 26.3110588 3.97129412,26.1917647 C3.92188235, + 26.1635294 3.86964706,26.136 3.82164706, + 26.1070588 C3.63882353,25.9997647 3.47223529, + 25.8903529 3.31270588,25.7802353 C3.252, + 25.7378824 3.18917647,25.6962353 3.13129412, + 25.6531765 C2.99647059,25.5536471 2.87576471, + 25.4534118 2.76,25.3524706 C2.69717647, + 25.2974118 2.63364706,25.2423529 2.57647059, + 25.1858824 C2.48188235,25.0941176 2.39858824, + 25.0023529 2.32023529,24.9091765 C2.26517647, + 24.8442353 2.21223529,24.7792941 2.16564706, + 24.7136471 C2.10352941,24.6268235 2.05058824, + 24.54 2.00258824,24.4531765 C1.96447059, + 24.3832941 1.93058824,24.3134118 1.90164706, + 24.2435294 C1.86705882,24.1581176 1.83952941, + 24.0727059 1.81976471,23.9872941 C1.79364706, + 23.8750588 1.76470588,23.7607059 1.76470588, + 23.6470588 C1.76470588,23.5672941 1.77388235, + 23.4875294 1.78658824,23.4084706 C1.80423529, + 23.3018824 1.79435294,23.1952941 1.76470588, + 23.0943529 L1.76470588,17.8538824 C1.78447059, + 17.8722353 1.80917647,17.8898824 1.82964706, + 17.9082353 C1.98352941,18.0437647 2.14023529, + 18.1785882 2.31670588,18.3084706 C4.97576471, + 20.3195294 10.2931765,21.8823529 18, + 21.8823529 C25.6743529,21.8823529 30.9783529, + 20.3322353 33.6487059,18.3331765 C33.8618824, + 18.1778824 34.0538824,18.0176471 34.2345882, + 17.8545882 L34.2352941,17.8538824 L34.2352941, + 23.0943529 C34.2056471,23.1952941 34.1957647, + 23.3018824 34.2134118,23.4084706 C34.2268235, + 23.4875294 34.2352941,23.5672941 34.2352941, + 23.6470588 C34.2352941,23.7607059 34.2063529, + 23.8750588 34.1795294,23.9894118 Z M34.2352941, + 9.38329412 L34.2352941,14.6237647 C34.2056471, + 14.7247059 34.1957647,14.8312941 34.2134118, + 14.9378824 C34.2268235,15.0169412 34.2352941, + 15.0967059 34.2352941,15.1764706 C34.2352941, + 15.2901176 34.2063529,15.4044706 34.1795294, + 15.5188235 C34.1597647,15.6042353 34.1322353, + 15.6889412 34.0976471,15.7750588 C34.0694118, + 15.8449412 34.0348235,15.9148235 33.9967059, + 15.9847059 C33.9494118,16.0715294 33.8964706, + 16.1583529 33.8336471,16.2451765 C33.7870588, + 16.3108235 33.7341176,16.3757647 33.6790588, + 16.4407059 C33.6007059,16.5331765 33.5174118, + 16.6256471 33.4228235,16.7174118 C33.3656471, + 16.7731765 33.3028235,16.8282353 33.2392941, + 16.884 C33.1235294,16.9849412 33.0028235, + 17.0851765 32.868,17.1847059 C32.8101176, + 17.2277647 32.748,17.2694118 32.6865882, + 17.3117647 C32.5270588,17.4218824 32.3604706, + 17.5312941 32.1776471,17.6385882 C32.1296471, + 17.6675294 32.0781176,17.6950588 32.028, + 17.7232941 C31.8176471,17.8418824 31.5981176, + 17.9597647 31.3609412,18.0741176 C31.3305882, + 18.0889412 31.2988235,18.1030588 31.2677647, + 18.1171765 C31.0030588,18.2421176 30.7263529, + 18.3649412 30.4305882,18.4835294 C30.4221176, + 18.4870588 30.4136471,18.4898824 30.4051765, + 18.4934118 C28.8021176,19.1336471 26.7515294, + 19.6722353 24.3621176,20.0251765 C24.3501176, + 20.0265882 24.3381176,20.028 24.3261176, + 20.0301176 C23.8616471,20.0985882 23.3851765, + 20.1592941 22.896,20.2129412 C22.8162353, + 20.2214118 22.7322353,20.2270588 22.6517647, + 20.2355294 C22.2247059,20.28 21.7927059, + 20.3209412 21.348,20.3534118 C21.1447059, + 20.3682353 20.9315294,20.3752941 20.7247059, + 20.388 C20.3901176,20.4077647 20.0590588, + 20.4296471 19.716,20.4416471 C19.1555294, + 20.4592941 18.5837647,20.4705882 18, + 20.4705882 C17.4162353,20.4705882 16.8444706, + 20.4592941 16.2832941,20.4395294 C15.9402353, + 20.4275294 15.6091765,20.4049412 15.2745882, + 20.3858824 C15.0677647,20.3738824 14.8545882, + 20.3661176 14.6512941,20.3512941 C14.2065882, + 20.3188235 13.7745882,20.2778824 13.3475294, + 20.2334118 C13.2670588,20.2249412 13.1830588, + 20.2192941 13.1032941,20.2108235 C12.6141176, + 20.1571765 12.1376471,20.0957647 11.6731765, + 20.028 C11.6611765,20.0265882 11.6491765, + 20.0251765 11.6371765,20.0230588 C9.24776471, + 19.6701176 7.19717647,19.1315294 5.59411765, + 18.4912941 C5.58564706,18.4884706 5.57717647, + 18.4849412 5.56870588,18.4814118 C5.27294118, + 18.3628235 4.99552941,18.24 4.73152941, + 18.1150588 C4.70117647,18.1002353 4.66870588, + 18.0861176 4.63835294,18.072 C4.40117647, + 17.9576471 4.18164706,17.8404706 3.97129412, + 17.7211765 C3.92188235,17.6929412 3.86964706, + 17.6654118 3.82164706,17.6364706 C3.63882353, + 17.5291765 3.47223529,17.4197647 3.31270588, + 17.3096471 C3.252,17.2672941 3.18917647, + 17.2256471 3.13129412,17.1825882 C2.99647059, + 17.0830588 2.87576471,16.9828235 2.76, + 16.8818824 C2.69717647,16.8268235 2.63364706, + 16.7717647 2.57647059,16.7152941 C2.48188235, + 16.6235294 2.39858824,16.5317647 2.32023529, + 16.4385882 C2.26517647,16.3736471 2.21223529, + 16.3087059 2.16564706,16.2430588 C2.10352941, + 16.1562353 2.05058824,16.0694118 2.00258824, + 15.9825882 C1.96447059,15.9127059 1.93058824, + 15.8428235 1.90164706,15.7729412 C1.86705882, + 15.6875294 1.83952941,15.6021176 1.81976471, + 15.5167059 C1.79364706,15.4044706 1.76470588, + 15.2901176 1.76470588,15.1764706 C1.76470588, + 15.0967059 1.77388235,15.0169412 1.78658824, + 14.9378824 C1.80423529,14.8312941 1.79435294, + 14.7247059 1.76470588,14.6237647 L1.76470588, + 9.38329412 C1.84941176,9.46023529 1.94611765, + 9.53576471 2.03788235,9.612 C2.08870588, + 9.65435294 2.136,9.69670588 2.18964706, + 9.73905882 C2.40141176,9.90564706 2.63011765, + 10.0701176 2.87788235,10.2303529 C2.92941176, + 10.2635294 2.98729412,10.296 3.04094118, + 10.3291765 C3.24847059,10.4583529 3.468, + 10.5847059 3.69882353,10.7089412 C3.78423529, + 10.7548235 3.86964706,10.8 3.95788235, + 10.8451765 C4.21552941,10.9764706 4.48588235, + 11.1042353 4.77035294,11.2277647 C4.81694118, + 11.2482353 4.85929412,11.2694118 4.90658824, + 11.2891765 C5.23764706,11.4296471 5.58917647, + 11.5637647 5.95482353,11.6936471 C6.05576471, + 11.7296471 6.16164706,11.7635294 6.26541176, + 11.7988235 C6.55623529,11.8969412 6.85694118, + 11.9908235 7.16823529,12.0818824 C7.28047059, + 12.1143529 7.39058824,12.1482353 7.50564706, + 12.1792941 C7.91858824,12.2936471 8.34494118, + 12.4023529 8.79247059,12.5025882 C8.85388235, + 12.5167059 8.92023529,12.528 8.98235294, + 12.5414118 C9.37694118,12.6275294 9.78635294, + 12.7072941 10.2070588,12.7821176 C10.3496471, + 12.8075294 10.4943529,12.8315294 10.6397647, + 12.8555294 C11.04,12.9211765 11.4522353, + 12.9811765 11.8750588,13.0362353 C11.9837647, + 13.0503529 12.0875294,13.0665882 12.1976471, + 13.08 C12.7228235,13.1435294 13.2663529, + 13.1978824 13.8247059,13.2444706 C13.9623529, + 13.2557647 14.1056471,13.2642353 14.2454118, + 13.2741176 C14.6922353,13.3065882 15.1489412, + 13.3334118 15.6162353,13.3545882 C15.7863529, + 13.3623529 15.9557647,13.3701176 16.1294118, + 13.3764706 C16.7378824,13.3969412 17.3576471, + 13.4117647 18,13.4117647 C18.6423529, + 13.4117647 19.2621176,13.3969412 19.8705882, + 13.3764706 C20.0435294,13.3701176 20.2129412, + 13.3623529 20.3837647,13.3545882 C20.8510588, + 13.3334118 21.3077647,13.3065882 21.7545882, + 13.2741176 C21.8943529,13.2635294 22.0369412, + 13.2557647 22.1752941,13.2444706 C22.7336471, + 13.1985882 23.2771765,13.1435294 23.8023529, + 13.08 C23.9124706,13.0665882 24.0162353, + 13.0503529 24.1249412,13.0362353 C24.5477647, + 12.9811765 24.9592941,12.9211765 25.3602353, + 12.8555294 C25.5056471,12.8315294 25.6503529, + 12.8075294 25.7929412,12.7821176 C26.2136471, + 12.7072941 26.6230588,12.6275294 27.0176471, + 12.5414118 C27.0797647,12.528 27.1461176, + 12.516 27.2075294,12.5025882 C27.6550588, + 12.4023529 28.0814118,12.2929412 28.4943529, + 12.1792941 C28.6094118,12.1475294 28.7195294, + 12.1143529 28.8317647,12.0818824 C29.1430588, + 11.9908235 29.4437647,11.8969412 29.7345882, + 11.7988235 C29.8383529,11.7635294 29.9442353, + 11.7296471 30.0451765,11.6936471 C30.4108235, + 11.5637647 30.7630588,11.4296471 31.0934118, + 11.2891765 C31.1407059,11.2694118 31.1830588, + 11.2482353 31.2296471,11.2277647 C31.5141176, + 11.1035294 31.7844706,10.9764706 32.0421176, + 10.8451765 C32.1303529,10.8 32.2164706, + 10.7548235 32.3011765,10.7089412 C32.532, + 10.5854118 32.7515294,10.4590588 32.9590588, + 10.3291765 C33.0127059,10.296 33.0705882, + 10.2635294 33.1221176,10.2303529 C33.3698824, + 10.0701176 33.5985882,9.90635294 33.8103529, + 9.73905882 C33.8632941,9.69670588 33.9105882, + 9.65435294 33.9621176,9.612 C34.0538824, + 9.53576471 34.1505882,9.46023529 34.2352941, + 9.38329412 Z M18,1.41176471 C27.5682353, + 1.41176471 34.2352941,4.20141176 34.2352941, + 6.70588235 C34.2352941,9.21035294 27.5682353, + 12 18,12 C8.43176471,12 1.76470588,9.21035294 1.76470588, + 6.70588235 C1.76470588,4.20141176 8.43176471,1.41176471 18, + 1.41176471 Z M34.2352941,32.2609412 C34.2254118,32.292 34.2183529, + 32.3237647 34.2127059,32.3562353 C33.8124706,34.7978824 27.2018824, + 37.4117647 18,37.4117647 C8.79811765,37.4117647 2.18752941, + 34.7978824 1.78729412,32.3562353 C1.78164706, + 32.3244706 1.77388235,32.2934118 1.76470588, + 32.2637647 L1.76470588,26.3244706 C1.78447059, + 26.3428235 1.80917647,26.3604706 1.82964706, + 26.3788235 C1.98352941,26.5143529 2.14023529, + 26.6491765 2.31670588,26.7790588 C4.97576471, + 28.7901176 10.2931765,30.3529412 18,30.3529412 C25.6743529, + 30.3529412 30.9783529,28.8028235 33.6487059, + 26.8037647 C33.8618824,26.6484706 34.0538824, + 26.4882353 34.2345882,26.3251765 L34.2352941, + 26.3244706 L34.2352941,32.2609412 Z" id="Shape"></path> + </g> + <text id="func-board-element-text" + font-family="HelveticaNeue-Bold, Helvetica Neue" + font-size="14" + font-weight="bold" line-spacing="18"> + <tspan id="label" x="52.554" y="59">execute</tspan> + <tspan x="105.446" y="59" font-family="HelveticaNeue, Helvetica Neue" font-weight="normal"></tspan> + <tspan id="type" x="0.094" y="77" + font-family="HelveticaNeue, Helvetica Neue" font-size="12" + font-weight="normal"></tspan> + </text> + </g> + </g> + </g> + </g> + </g> + </g> + </g> + ` +}); + +Object.assign(joint.shapes, { + board: { + FunctionElement + } +}); |