Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we include customized shapes ? #274

Closed
jenilfuria opened this issue Dec 31, 2015 · 12 comments
Closed

Can we include customized shapes ? #274

jenilfuria opened this issue Dec 31, 2015 · 12 comments
Labels
Type: New Shape Request for new shape

Comments

@jenilfuria
Copy link

Existing shapes are like square, rectangle, rhombus, circle etc....so i want to include my own customized shape.. for eg i want to include cloud shape or egg shape..

...is it possible ?
If yes then how can i integrate this .. ?

@knsv
Copy link
Collaborator

knsv commented Jan 4, 2016

It should be possible as dagre-d3 allows custom shapes.

Perhaps a special function part of the initialize call that defines a shape and ties it to a key. Syntax wise it would be easiest to tag the shapes with the custom shape in special statment in a way similar to the class definition:

customShape nodeId1,nodeId2 shapeName;

That breaks the concepr of the shape in the synaxt of the diagram though so open for better ideas.

Btw. Ovals are available with the following syntax:

graph TD
A(-this is an ellipse-)-->B

(This ia quite new and has not made its way into the editor or docs yet.)

@yzx226
Copy link

yzx226 commented Jul 28, 2016

@nickm4062
Copy link

@knsv I see the demo from @yzx226 has any of this made it in to the DSL yet?

@knsv
Copy link
Collaborator

knsv commented Aug 8, 2016

Yes it is possible. This is for instance how the odd shape was implemented.

Which shape/shapes is it and how should the syntax be expanded?

Lets break this out to tasks that someone can put their teeth in!

@weralabaj
Copy link

weralabaj commented Nov 18, 2016

We'd find the "database" shape very useful in our documentation.

capture

I'm ready to take a stab at implementing it, but would be great to get some help to understand how it works now :)

@knsv
Copy link
Collaborator

knsv commented Nov 22, 2016

Please take a stab at it! How can I assist you?

On Fri, Nov 18, 2016 at 11:35 AM +0100, "Weronika Łabaj" [email protected] wrote:

We'd find the "database" shape very useful in our documentation.

With little help, I'd be ready to take a stab at implementing it.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@indusbull
Copy link

@weralabaj were you able to get custom shape to work? I am looking for something similar.

@nachiket
Copy link

nachiket commented Feb 8, 2019

I’m also curious — want to know if a trapezium shape is available already or needs to be added as a custom shape.

@stale
Copy link

stale bot commented Jun 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Type: New Shape Request for new shape label Jun 29, 2019
@IOrlandoni
Copy link
Member

Given how long ago this issue's activity died out, I'm closing it.
This allows us to maintain a fresh list of issues the community is interested in.

@cs-prewittridge
Copy link

Is there documentation on this somewhere? I am building out a UML model but need "circle-cross" shapes for the "arrowheads".

@priyasingh199885
Copy link

Is there documentation on this somewhere? I am building out a UML model but need "circle-cross" shapes for the "arrowheads".
#1500 -- this shows a blank page, any other source for custom shapes of nodes in mermaid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Shape Request for new shape
Projects
None yet
Development

No branches or pull requests

10 participants