I'm drawing a dashed line and a dashed rect in fabricjs, but there is an issue when setting the strokeWidth too high for the line/rect to draw the strokeDashArray properly.
Example:
if strokeDashArray: [10,2]
and the strokeWidh: 1
everything's fine, but if I set strokeWidh: 5
the line/rect isn't dashed anymore.
I found out, that setting strokeLineCap: 'square' messes it up, but i don't understand why
Fiddle - Example: jsfiddle
Would appreciate any kind of help :D
asturur (contributor fabric.js) wrote this explanation:
Is not messed up. is how square workds. you have to make strokeDash with more space between "black and white".
I've recently started using Ramda to work with responses from JSONAPI and I am having some trouble dealing with complex relationships.. I have a big array with three smaller arrays, and I need to ...
I've recently started using Ramda to work with responses from JSONAPI and I am having some trouble dealing with complex relationships.. I have a big array with three smaller arrays, and I need to ...
I am going to check if an html element contains it's own text. Examples are <div>Text<tag></tag>Text</div> and <div>Text</div>. Some thing that not fit is <...
I am going to check if an html element contains it's own text. Examples are <div>Text<tag></tag>Text</div> and <div>Text</div>. Some thing that not fit is <...
I have been trying to make an arrow rotate by adding a css class to a jquery statement. This is used on show/hide tabs which will allow me to show which one is open based on the arrows. I had this ...
I have been trying to make an arrow rotate by adding a css class to a jquery statement. This is used on show/hide tabs which will allow me to show which one is open based on the arrows. I had this ...
Let's say I just add a simple little image: var image = scene.add.image(200,200,'simple-little-image.png'); Then later, I want to destory it. Not just hide it, but remove all of it's data and ...
Let's say I just add a simple little image: var image = scene.add.image(200,200,'simple-little-image.png'); Then later, I want to destory it. Not just hide it, but remove all of it's data and ...