I have a circle and I want to draw some curved text across the top. Currently I am generating the circle and the text-path, however the text faces towards the outside of the circle and appears upside down to the reader. How do I flip the text to the correct orientation?
<script src="https://unpkg.com/konva@3.1.0/konva.js"></script>
<div id="demo"></div>
<script type="text/javascript>
var stage = new Konva.Stage({
container: 'demo',
width: 500,
height: 500,
});
var layer = new Konva.Layer();
var circle = new Konva.Circle({
x: 250,
y: 250,
radius: 50,
fill: '#FFFFFF',
stroke: 'black',
strokeWidth: 1
});
layer.add(circle);
var text = new Konva.TextPath({
x: 250,
y: 250,
fill: '#000',
textBaseline: 'hanging',
fontSize: 15,
fontFamily: 'Calibri',
text: 'SOME TEXT',
align: 'center',
data: 'M 30 0 A 30 30 0 0 0 -30 0'
});
layer.add(text);
stage.add(layer);
layer.draw();
</script>