diff --git a/packages/joint-core/types/joint.d.ts b/packages/joint-core/types/joint.d.ts index 24b936911..c633f2891 100644 --- a/packages/joint-core/types/joint.d.ts +++ b/packages/joint-core/types/joint.d.ts @@ -913,18 +913,18 @@ export namespace dia { } } - class ElementView extends CellViewGeneric { + class ElementView extends CellViewGeneric { - update(element?: Element, renderingOnlyAttrs?: { [key: string]: any }): void; + update(element?: E, renderingOnlyAttrs?: { [key: string]: any }): void; setInteractivity(value: boolean | ElementView.InteractivityOptions): void; getDelegatedView(): ElementView | null; findPortNode(portId: string | number): SVGElement | null; - findPortNode(portId: string | number, selector: string): Element | null; + findPortNode(portId: string | number, selector: string): E | null; - findPortNodes(portId: string | number, groupSelector: string): Element[]; + findPortNodes(portId: string | number, groupSelector: string): E[]; protected renderMarkup(): void; @@ -999,14 +999,14 @@ export namespace dia { } - interface Options extends mvc.ViewOptions { + interface Options extends mvc.ViewOptions { labelsLayer?: Paper.Layers | string | false; } } - class LinkView extends CellViewGeneric { + class LinkView extends CellViewGeneric { - options: LinkView.Options; + options: LinkView.Options; sourceAnchor: g.Point; targetAnchor: g.Point;