参考案例 1
graphic: [
{
type: 'text',
silent:true,
left: 'center',
top: 'middle',
z: 100,
style: {
fill: '#ffffff',
text: [
'© 2021 版权信息'
].join('\n'),
fontSize:14
}
}
],
参考案例 2
graphic: [{
type: 'group',
bounding: 'raw',
rotation: Math.PI / 4,//正方形旋转的角度
right: 70,
bottom: 15,
z: 100,
children: [
{
type: 'rect',
left: 'center',//描述怎么根据父元素进行定位
top: 'center',//描述怎么根据父元素进行定位
z: 100,
shape: {
width: 140,
height: 30
},
style: {
fill: 'rgba(0,0,0,0.3)'
}
},
{
type: 'text',
left: 'center',
top: 'center',
z: 100,
style: {
fill: '#fff',
text: 'domain.com',
font: 'bolder 14px Microsoft YaHei'
}
}
]
}]