////////////////////////////////////////////////////////////////////////////////
// Type on Circle by Luis Fernando Cirilo
// Brazil
//

var components = {
	texto: { type: 'string', label: 'Text' },
};

var values = Dialog.prompt('Type on Circle', components);

if (values) {
var position = new Point(100, 100); 
var path = new Path.Circle(position, 25); 
 
var textItem = new PathText(path); 
textItem.content = values.texto;
textItem.paragraphStyle.justification = 'center' ;
textItem.rotate(-90);
}