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. Image for the cookie policy date

Using FlowShapes within TypeScript

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

3 Replies

SG Shyam G Syncfusion Team 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 



GB Gareth Brown 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?


SG Shyam G Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon