diff options
author | 2020-12-01 20:27:36 +0200 | |
---|---|---|
committer | 2020-12-02 18:08:16 +0000 | |
commit | ee01e433cb623d2cbcdc8b61a10bd455f698c980 (patch) | |
tree | e322008660f6c3120447e2e1c7a6b219f216b12b /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs | |
parent | 2f0772212f44e6722957ee9a9cd19d3529a1a765 (diff) |
Fix Action position in Designer Canvas
Issue-ID: CCSDK-2286
Signed-off-by: Sarah Abouzainah <sabouzainah.ext@orange.com>
Change-Id: Ib7520945b51122fc95c1dcbb7ecffecedb469eef
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs')
2 files changed, 8 insertions, 11 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts index 417f60ba4..dd65bdbc1 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts @@ -25,7 +25,7 @@ const ActionElement = joint.shapes.standard.Rectangle.define(ActionElementTypeNa markup: `<defs> <rect id="custom-action" x="0" y="30" width="${rectWidth}" height="${rectHeight}"></rect> - <filter x="-1.7%" y="-2.2%" width="103.5%" height="105.5%" filterUnits="objectBoundingBox" id="filter-2"> + <filter x="-1.7%" y="-2.2%" width="100%" height="100%" filterUnits="objectBoundingBox" id="filter-2"> <feMorphology radius="0.5" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology> <feOffset dx="0" dy="2" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset> <feGaussianBlur stdDeviation="3" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur> @@ -36,21 +36,18 @@ const ActionElement = joint.shapes.standard.Rectangle.define(ActionElementTypeNa </filter> </defs> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> - <g id="7.2-Designer---Insert-Action" transform="translate(-395.000000, -137.000000)"> - <g id="workflow-container" transform="translate(401.000000, 137.000000)"> + <g id="7.2-Designer---Insert-Action" transform="translate(-380, 5)"> + <g id="workflow-container" transform="translate(401, 120)"> <g id="Card"> <use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#custom-action"></use> <use stroke="#1273EB" stroke-width="1" fill="#FFFFFF" fill-rule="evenodd" xlink:href="#custom-action"></use> </g> <g id="name"> - <path d="M2,0 L85,0 C86.1045695,-2.02906125e-16 87, - 0.8954305 87,2 L87,30 L87,30 L0,30 L0, - 2 C-1.3527075e-16,0.8954305 0.8954305, - 2.02906125e-16 2,0 Z" id="Rectangle" + <path id="Rectangle" fill="#C3CDDB"></path> <text id="Action-1" font-family="HelveticaNeue-Bold, Helvetica Neue" - font-size="12" font-weight="bold" fill="#1B3E6F"> - <tspan id="label" x="20" y="20">Action 1</tspan> + font-size="13" font-weight="bold" fill="#1273EB"> + <tspan id="label" x="0" y="20">Action 1</tspan> </text> </g> </g> 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 index 7411eed49..8e03b63d0 100644 --- 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 @@ -22,13 +22,13 @@ const FunctionElement = joint.shapes.standard.Rectangle.define('board.FunctionEl } }, { markup: - `<g id="func-board-element" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + `<g id="func-board-element" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(25,100)"> <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="15" y="0" width="280" height="150" rx="3"></rect> + <rect id="func-board-element-rectangle" fill="#1B3E6F" x="5" y="0" width="280" height="150" rx="3"></rect> <g id="Group-4" transform="translate(20.000000, 25.000000)" fill="#FFFFFF"> <g id="database0-copy" transform="translate(115.000000, 5.000000)" fill-rule="nonzero"> <path d="M35.544,6.00705882 C34.7265882, |