diff options
author | 2020-02-25 18:47:21 +0000 | |
---|---|---|
committer | 2020-02-25 18:47:21 +0000 | |
commit | fe3f59a016a53f7b19a107f73fb2341677a29651 (patch) | |
tree | c52e9277820d003df7c9f42168455ea1afbc2e3a /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts | |
parent | 568ff4d867dd09c087246fe7cc343c1d581e6255 (diff) | |
parent | 2203e84a0fd3308ce99e4de6ed2519e663008316 (diff) |
Merge "add single function to action and save it to frontend store."
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts | 3 |
1 files changed, 2 insertions, 1 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 212905814..7960e83d1 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 @@ -1,4 +1,5 @@ import * as joint from 'jointjs'; +import { ActionElementTypeName } from 'src/app/common/constants/app-constants'; /** * please refer to documentation in file palette.function.element.ts to get more details * about how to create new element type and define it in typescript @@ -18,7 +19,7 @@ const rectWidth = 616; const rectHeight = 381; // custom element implementation // https://resources.jointjs.com/tutorials/joint/tutorials/custom-elements.html#markup -const ActionElement = joint.shapes.standard.Rectangle.define('app.ActionElement', { +const ActionElement = joint.shapes.standard.Rectangle.define(ActionElementTypeName, { size: {width: rectWidth, height: rectHeight} }, { |