We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using FlowShapes within TypeScript

Thread ID:

Created:

Updated:

Platform:

Replies:

128154 Jan 5,2017 11:11 AM UTC Jan 16,2017 06:35 AM UTC JavaScript 3
loading
Tags: ejDiagram
Gareth Brown
Asked On January 5, 2017 11:11 AM UTC

I'm trying to use the enum ej.datavisualization.Diagram.FlowShapes within TypeScript, but I've noticed this is not in ej.web.all.d.ts

So building a palette in TypeScript using flowshape doesn't seem possible

/// <reference path="libraries/ej.web.all.d.ts" />

...

let flowshapes = {
    name: "Flow Shapes", expanded: true, templateId: "svgTemplate", addInfo: { source: "../../content/images/flow.png" },
    items: [
        { name: "Process", width: 44, height: 40, offsetX: 20, offsetY: 20, fillColor: "white", borderWidth: 1, type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Process },
        { name: "Decision", width: 44, height: 40, offsetX: 20, offsetY: 20, fillColor: "white", borderWidth: 1, type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Decision },
        { name: "Sort", width: 44, height: 40, offsetX: 20, offsetY: 20, fillColor: "white", borderWidth: 1, type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Sort },
        { name: "Document", width: 44, height: 40, offsetX: 20, offsetY: 15, fillColor: "white", borderWidth: 1, type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.Document },
        { name: "MultiDocument", width: 43, height: 40, offsetX: 20, offsetY: 15, fillColor: "white", borderWidth: 1, type: "flow", shape: ej.datavisualization.Diagram.FlowShapes.MultiDocument }
    ]
};

This fails because ej.datavisualization.Diagram.FlowShapes cannot be found. Using SF 14.4.0.15

Shyam G [Syncfusion]
Replied On January 6, 2017 09:14 AM UTC

Hi Gareth, 

The reported issue is a known issue. We have already fixed the reported issue “Missing shapes in typescript” and provided the patch in the below typescript file “ej.web.all.d.ts” of version 14.4.0.15. 

Typescript file:ej.web.all.d.ts 

Regards, 
Shyam G 


Gareth Brown
Replied On January 13, 2017 10:19 AM UTC

Thanks for this, I've patched 14.4.0.20 with these changes. Will this be included in a future release?

Shyam G [Syncfusion]
Replied On January 16, 2017 06:35 AM UTC

Hi Gareth, 
  
Yes, the fix will be included in our volume 1,2017 release, which is scheduled to release in the month of february,2017. 
  
Regards, 
Shyam G 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;