mojs-website
mojs-website copied to clipboard
Small error in the tutorials: Shape 'curve' points
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!
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?
Yeah, its in the shape tutorial, in the demo with the zigzag and cross :) thanks!
Oh! Same applies for cross as well
thanks!