-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into release/1.1.11-beta
- Loading branch information
Showing
9 changed files
with
93 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: SimulatorRender | ||
sidebar_position: 6 | ||
--- | ||
> **@types** [IPublicModelSimulatorRender](https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/model/simulator-render.ts)<br/> | ||
> **@since** v1.0.0 | ||
## 基本介绍 | ||
|
||
画布节点选中模型 | ||
|
||
## 属性 | ||
### components | ||
|
||
画布组件列表 | ||
|
||
```typescript | ||
/** | ||
* 画布组件列表 | ||
*/ | ||
components: { | ||
[key: string]: any; | ||
} | ||
``` | ||
|
||
## 方法 | ||
|
||
### rerender | ||
|
||
触发画布重新渲染 | ||
|
||
```typescript | ||
/** | ||
* 触发画布重新渲染 | ||
*/ | ||
rerender: () => void; | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { IPublicModelSimulatorRender } from '@alilc/lowcode-types'; | ||
import { simulatorRenderSymbol } from '../symbols'; | ||
import { BuiltinSimulatorRenderer } from '@alilc/lowcode-designer'; | ||
|
||
export class SimulatorRender implements IPublicModelSimulatorRender { | ||
private readonly [simulatorRenderSymbol]: BuiltinSimulatorRenderer; | ||
|
||
constructor(simulatorRender: BuiltinSimulatorRenderer) { | ||
this[simulatorRenderSymbol] = simulatorRender; | ||
} | ||
|
||
static create(simulatorRender: BuiltinSimulatorRenderer): IPublicModelSimulatorRender { | ||
return new SimulatorRender(simulatorRender); | ||
} | ||
|
||
get components() { | ||
return this[simulatorRenderSymbol].components; | ||
} | ||
|
||
rerender() { | ||
return this[simulatorRenderSymbol].rerender(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface IPublicModelSimulatorRender { | ||
|
||
/** | ||
* 画布组件列表 | ||
*/ | ||
components: { | ||
[key: string]: any; | ||
}; | ||
|
||
/** | ||
* 触发画布重新渲染 | ||
*/ | ||
rerender: () => void; | ||
} |