Adding Custom control as one of the shapes in RappidJs

226 views
Skip to first unread message

Vishweshwar Kapse

unread,
Apr 28, 2016, 10:45:12 AM4/28/16
to JointJS
Hi Team,

Is it possible to add HighCharts Guage as one of the Shape by the dia.Element.extend (or in any other way). Is it possible to add this as one of the stencils and then allow the user to drag and drop it on the paper..?









Roman Bruckner

unread,
Apr 28, 2016, 10:55:33 AM4/28/16
to joi...@googlegroups.com
Hi Vishweshwar,

it is indeed possible. For instance all the Rappid Charts (esp. knob http://jointjs.com/rappid/docs/shapes/chart/knob) are usual elements (inherits from `dia.Element`) and can be used within stencil and paper.

Best,
Roman

On 28 April 2016 at 16:45, Vishweshwar Kapse <vishu1...@gmail.com> wrote:
Hi Team,

Is it possible to add HighCharts Guage as one of the Shape by the dia.Element.extend (or in any other way). Is it possible to add this as one of the stencils and then allow the user to drag and drop it on the paper..?









--

---
You received this message because you are subscribed to the Google Groups "JointJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jointjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Vishweshwar Kapse

unread,
Apr 28, 2016, 3:10:31 PM4/28/16
to JointJS
Thank you very much for the quick response.
I am glad that you confirmed that this is possible.

Can you kindly tell me how this could be achieved...??

If i wanted to import a custom SVG that has its own javascript and css that is being used to animate the svg..?? What needs to be done to make it one of the Stencils..??
Reply all
Reply to author
Forward
0 new messages