- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.Scheduling library for HTML5 & JavaScript.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Pages: 1 2 3  Send Topic Print  
Html Node in Diagram !
Read 945 times

Kannan Thirumal   Offline
YaBB Newbies
*
Posts: 37
I Love MindFusion!


   
     
 
Re: Html Node in Diagram !
Reply #30 - May 15th, 2019 at 12:49pm
 
Hi,

     I couldn't find invalidate method in the Diagram object. I'm using latest diagram library 3.3.5.

Regards,
Kannan
 
 
 
IP Logged    
 
     

Lyubo   Offline
Senior Member
****
Posts: 264
Gender: male
MindFusion team


   
     
 
Re: Html Node in Diagram !
Reply #31 - May 15th, 2019 at 1:46pm
 
Hi,

We'll add it to the definitions file for the next release, in the mean time you can use declaration merging techniques to add the invalidate method to the Canvas class definition, or use the diagram.repaint method instead.

Regards,
Lyubo
 
 
 
IP Logged    
 
     

Kannan Thirumal   Offline
YaBB Newbies
*
Posts: 37
I Love MindFusion!


   
     
 
Re: Html Node in Diagram !
Reply #32 - May 15th, 2019 at 1:51pm
 
Hi,

I tried the both like this,

this.diagram.repaint();

(this.diagram as any).invalidate(); Am I correct?

But both didn't work Sad

Regards,
Kannan
 
 
 
IP Logged    
 
     

Lyubo   Offline
Senior Member
****
Posts: 264
Gender: male
MindFusion team


   
     
 
Re: Html Node in Diagram !
Reply #33 - May 15th, 2019 at 2:11pm
 
Kannan Thirumal wrote on May 15th, 2019 at 1:51pm:
(this.diagram as any).invalidate(); Am I correct?


Yes, the above should work. When are you calling it? Can you provide a small code snippet that reproduces the problem?

Regards,
Lyubo
 
 
 
IP Logged    
 
     

Kannan Thirumal   Offline
YaBB Newbies
*
Posts: 37
I Love MindFusion!


   
     
 
Re: Html Node in Diagram !
Reply #34 - May 15th, 2019 at 2:15pm
 
Hi,

I'm calling this,

  public drawDiagram() {

    this.diagram.clearAll();

    (this.diagram as any).invalidate();

    let factory = <Factory>this.diagram.getFactory();

    for (let i: number = 0; i < this.diagramModel.nodes.length; i++) {

      let n = this.diagramModel.nodes[i];

      this.createCompositeNode(n);
    }
  }

Regards,
Kannan
 
 
 
IP Logged    
 
     

Lyubo   Offline
Senior Member
****
Posts: 264
Gender: male
MindFusion team


   
     
 
Re: Html Node in Diagram !
Reply #35 - May 15th, 2019 at 2:39pm
 
Hi,

I'm attaching my test project that uses CompositeNodes (it's a modified version of Tutorial3 from the JsDiagram package) and with it and your code sample, I'm not able to reproduce your issue. The diagram gets repainted even without calling invalidate().

Can you modify the attached sample in a way that it reproduces the issue and send back to us to inspect?

Regards,
Lyubo
 
 

Tutorial3.zip (33 KB | 4 )
 
IP Logged    
 
     
Pages: 1 2 3  Send Topic Print