Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Class. Foreign Object View

sprotty / ForeignObjectView

Class: ForeignObjectView

Defined in: packages/sprotty/src/lib/generic-views.tsx:50

An SVG foreignObject view with a namespace specified by the provided ForeignObjectElement. Note that foreignObject may not be supported by all browsers or SVG viewers.

Implements

Constructors

Constructor

new ForeignObjectView(): ForeignObjectView

Returns

ForeignObjectView

Methods

render()

render(model, context): undefined | VNode

Defined in: packages/sprotty/src/lib/generic-views.tsx:51

Parameters

model

ForeignObjectElementImpl

context

RenderingContext

Returns

undefined | VNode

Implementation of

IView.render