(panel: Panel)
| 283 | */ |
| 284 | @action |
| 285 | toggleFloatStatus(panel: Panel) { |
| 286 | const isFloat = panel?.parent?.name === 'leftFloatArea'; |
| 287 | if (isFloat) { |
| 288 | this.leftFloatArea.remove(panel); |
| 289 | this.leftFixedArea.add(panel); |
| 290 | this.leftFixedArea.container.active(panel); |
| 291 | } else { |
| 292 | this.leftFixedArea.remove(panel); |
| 293 | this.leftFloatArea.add(panel); |
| 294 | this.leftFloatArea.container.active(panel); |
| 295 | } |
| 296 | engineConfig.getPreference().set(`${panel.name}-pinned-status-isFloat`, !isFloat, 'skeleton'); |
| 297 | } |
| 298 | |
| 299 | buildFromConfig(config?: EditorConfig, components: PluginClassSet = {}) { |
| 300 | if (config) { |
no test coverage detected