import { AbstractElementFactory } from "../../AbstractElementFactory" ; import { GridElementModel } from "./GridElementModel" ; import { CanvasEngine } from "../../CanvasEngine" ; import { GridElementWidget } from "./GridElementWidget" ; import * as React from "react" ; export class GridElementFactory extends AbstractElementFactory < GridElementModel > { static NAME = "primitive-grid" ; constructor ( ) { super ( GridElementFactory . NAME ) ; } generateModel ( ) { return new GridElementModel ( ) ; } generateWidget ( engine , model ) { return < GridElementWidget engine = { engine } model = { model } / > ; } }