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