(project: Project, designer: Designer)
| 173 | } |
| 174 | |
| 175 | constructor(project: Project, designer: Designer) { |
| 176 | this.designer = designer |
| 177 | this.project = project |
| 178 | this.viewport = new Viewport(designer) |
| 179 | this.scroller = this.designer.createScroller(this.viewport) |
| 180 | this.autoRender = !config.get('disableAutoRender', false) |
| 181 | this._appHelper = config.get('appHelper') |
| 182 | |
| 183 | config.onGot('appHelper', data => { |
| 184 | // appHelper被config.set修改后触发injectionConsumer.consume回调 |
| 185 | this._appHelper = data |
| 186 | }) |
| 187 | } |
| 188 | |
| 189 | @action |
| 190 | setProps(props: SimulatorProps) { |
nothing calls this directly
no test coverage detected