mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 02:11:56 +00:00
23 lines
737 B
TypeScript
23 lines
737 B
TypeScript
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();
|
|
}
|
|
} |