mojs-website icon indicating copy to clipboard operation
mojs-website copied to clipboard

Small error in the tutorials: Shape 'curve' points

Open sdras opened this issue 9 years ago • 4 comments

Working in the tutorials, found what I think is an error- the Shape example for curve is using an object for points:

var curve = new mojs.Shape({ shape: 'curve', points: 11, radius: 25, radiusY: 50, left: '50%', fill: 'none', stroke: 'deeppink', isShowStart: true, });

But I don't think the points do anything for the curve (that I've seen). If they do, it would be good to clarify in the text below because it's a little confusing.

Thank you!

sdras avatar Oct 27 '16 18:10 sdras

Hi Sarah!

Thanks for the heads up! The points field is useless for curve shape indeed. It works only for zigzag, polygon and equal shapes. This is the shape tutorial, right?

legomushroom avatar Oct 27 '16 18:10 legomushroom

Yeah, its in the shape tutorial, in the demo with the zigzag and cross :) thanks!

sdras avatar Oct 27 '16 19:10 sdras

Oh! Same applies for cross as well

sdras avatar Oct 27 '16 19:10 sdras

thanks!

legomushroom avatar Oct 27 '16 19:10 legomushroom