请问大神 aardio 中的控件旋转方向的方法(例如旋转90度)。
我想实现以下4个控件的自身角度旋转,还有其它的控件如何旋转方向!
import win.ui;
import inet.http;
/*DSG{{*/
var winform = win.form(text="aardio form";right=351;bottom=210)
winform.add(
custom={cls="custom";text="自定义控件";left=142;top=99;right=338;bottom=201;ah=1;aw=1;z=4};
edit={cls="edit";text="样本文本框";left=15;top=84;right=92;bottom=151;edge=1;multiline=1;z=2};
plus={cls="plus";left=176;top=16;right=287;bottom=80;foreRepeat="stretch";z=3};
static={cls="static";text="样本文字";left=24;top=27;right=148;bottom=49;transparent=1;z=1}
)
/*}}*/
winform.plus.foreground = "https://i.loli.net/2018/04/22/5adc885d7b359.jpg";
import web.view;
var wb = web.view(winform.custom);
//在浏览器控件中显示网页并执行 JavaScript 脚本
wb.html = /**
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<script src="https://lib.baomitu.com/Chart.js/3.7.1/chart.min.js"></script>
<style>
#chart-container {
width: 100%;
height: 100%;
position: relative;
}
#chart {
width: 100% !important;
height: 100% !important;
}
</style>
</head>
<body>
<canvas id="chart"></canvas>
<script>
let chart = new Chart(document.getElementById('chart'), {
type: 'bar',
data: {
labels: [],
datasets: [{
label: '访问量图表',
data: [],
backgroundColor: 'rgba(75, 192, 192, 0.6)'
}]
},
options: {
responsive: true,
scales: {
y: {
beginAtZero: true
}
},
plugins: {
title: {
display: true,
text: '统计图表'
}
}
}
});
</script>
</body></html>
**/
winform.show();
win.loopMessage();

