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

How to add simple straight verticle line as widget? #158

Closed
princeyogesh opened this issue Apr 16, 2021 · 4 comments
Closed

How to add simple straight verticle line as widget? #158

princeyogesh opened this issue Apr 16, 2021 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@princeyogesh
Copy link

I want just simple streight line in widget bar , but whenever i try to pull in it appears inside the box what way should i proceed to use api?
here are the code snippets and output i am gettign

image
image
image

@princeyogesh
Copy link
Author

I want line should have output bubble , but here i am getting box in addition and output bubble is on the box

@jerosoler jerosoler self-assigned this Apr 16, 2021
@jerosoler jerosoler added the question Further information is requested label Apr 16, 2021
@jerosoler
Copy link
Owner

I don't quite understand you.

Can you draw a picture of what you want?

@princeyogesh
Copy link
Author

princeyogesh commented Apr 16, 2021

@jerosoler please see the below sketch

  • something like this i want to achive for call flows, I just need help how can i draw the red line as shown in image.

  • red line should be in widgets menu, as there will be multiple users so want it as drag and drop style

image

@jerosoler
Copy link
Owner

Hello,

I think you want to do something like this:
https://bramp.github.io/js-sequence-diagrams/

I don't know if this is the right library for this. I'm not sure what you want to do.

I show you how you can create the node of user A.

image

Javascript

  editor.addNode('usera', 1, 1, 150, 300, 'usera', {}, `User A`);

CSS

      .drawflow-node.usera {
        width: 6px;
        height: 300px;
        padding: 0px;
        background: red;
        border: 0px;
      }

      .drawflow-node.usera .drawflow_content_node {
        position: absolute;
        top: -30px;
        width: 100px;
        left: -20px;
      }
      .drawflow-node.usera .outputs{
        position: absolute;
        top: 50px;
        left: -12.5px;
      }

      .drawflow-node.usera .inputs{
        position: absolute;
        top: 200px;
        right: -12.5px;
      }

Jero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants