I am using the mxgraph javascript library and I would like to know how I can set up the style of a line end to look like this attached immage

alt text

I have found the style mxConstants.ARROW_BLOCK. But with this style the line end is filled. Can anybody please give me a hint, which style property I can use for it?

asked 18 Oct '12, 04:30

MasterG's gravatar image

MasterG
3517
accept rate: 0%

edited 18 Oct '12, 06:12

David's gravatar image

David
4.9k21831


Set this style on the edge:

style[mxConstants.STYLE_ENDARROW] = mxConstants.ARROW_BLOCK;
style[mxConstants.STYLE_ENDFILL] = 0;
link

answered 18 Oct '12, 06:12

David's gravatar image

David
4.9k21831
accept rate: 47%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×228
×100
×50
×39

Asked: 18 Oct '12, 04:30

Seen: 1,019 times

Last updated: 18 Oct '12, 06:12