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.

RequireJs + Diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

130083 Apr 20,2017 08:41 AM May 10,2017 08:33 AM JavaScript 10
loading
Tags: ejDiagram
Manuel
Asked On April 20, 2017 08:41 AM

Hey I'm trying to build a diagram builder with requirejs but it isnt working. Any Ideas how to provide RequireJs support for the diagram?
Thanks for your help.

Kameshwaran R [Syncfusion]
Replied On April 24, 2017 07:40 AM

Hi Manuel, 
 
We have created the diagram builder with require JS and please find the below sample link. In this sample we have achieved only for initial rendering also you can handle the run time changes on your application. 

sample link:   requirejssample2001077694.zip  

Regards, 
Kameshwaran R. 
 


Manuel
Replied On April 28, 2017 07:34 AM

thanks a lot for your help :-)

Kameshwaran R [Syncfusion]
Replied On May 1, 2017 12:23 AM

Hi Manuel, 
Please let us know if you need further assistance on this.  
Regards, 
Kameshwaran R. 


Manuel
Replied On May 4, 2017 08:08 AM

Hi,
The diagram is working fine for me, but I got some problems with the symbolpallette.
Could you please have a look at it?
Thanks a lot

Kind Regards






Attachment: example_6564dfee.zip

Shyam G [Syncfusion]
Replied On May 5, 2017 03:18 AM

Hi Manuel, 
 
We have used methods defined in the intelligentshapes.js file in palette.js files. To access the methods in intelligentshapes.js file, we have used the below code example in the palette.js file. 
 
Code example: 
 
Palette.js 
 
var intelligentShape = require('helper/intelligentshapes'); 
 
 
The palette items defined in the palette.js renders after rendering of the symbol palette. This is due to page load function defined in the palette.js file triggers after the symbol palette rendering which is in symbolpalette.js file. So we have commented page load function in palette.js file. Please refer to the code example. 
 
Code example: 
 
Palette.js 
 
//$(function () { 
 
//}); 
 
We have modified your sample and it is available in the below link for download. 
 
 
Regards, 
Shyam G 


Manuel
Replied On May 5, 2017 06:27 AM

Hi Shyam,
thanks! It's working like a charm.
One more question:
If I click on a shape it isnt selected. I first have to move the mouse a bit so that i can see the selection. Do you have a hint for me how to fix this?

So if I click once on a shape it should be selected like that.



Regards,
Manuel


Shyam G [Syncfusion]
Replied On May 8, 2017 06:14 AM

Hi Manuel, 
 
We considered this “When we set the MultiSelect tool, the individual node should not be selected” as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
 
                                                                                                                                    
Regards, 
Shyam G 


Manuel
Replied On May 8, 2017 07:40 AM

Thanks for the answer. :-)

Is there also an issue at the diagram.print() method?

I'm trying to use it but it's not working.

have a look at your demo: http://js.syncfusion.com/demos/web/dashboard/diagrambuilder/default.html

--> file --> print

Regards,
Manuel

Manuel
Replied On May 8, 2017 09:24 AM

Hi Shyam,

I don't see my written text if I use for example the right arrow shape (
Any ideas why it isnt working?
Thanks for your help.


Regards,
Manuel

Shyam G [Syncfusion]
Replied On May 10, 2017 08:33 AM

Hi Manuel, 
 
By default, we export diagram into image format and further print the image. In chrome browser, when we try to access the width and height values of an image, it returns incorrect values. We considered this “print method not working in the chrome browser” as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
 
 
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.

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.

;