Bind model data into object list

This commit is contained in:
2022-03-04 17:11:01 +08:00
parent ac88c4d3fd
commit 070a9daf42
6 changed files with 98 additions and 18 deletions
+3 -2
View File
@@ -36,11 +36,12 @@ class SimulatorWeb extends Component {
this.status = new Status();
this.status.renderer = new ClassicRenderer({ className: "canvas" }).onLoad();
this.status.model.bindRenderer(this.status.renderer);
this.status.setting = this.setting;
// 测试代码
if (true) {
let group = this.status.model.addGroup();
let range = this.status.model.addRange();
let group = this.status.newGroup();
let range = this.status.newRange();
range.color = [.1, .5, .9];
group.new(100);
group.color = [.8, .1, .6];