MCPcopy
hub / github.com/palantir/plottable / isInDOM

Function isInDOM

test/testMethods.ts:29–32  ·  view source on GitHub ↗
(component: Plottable.Component)

Source from the content-addressed store, hash-verified

27}
28
29export function isInDOM(component: Plottable.Component) {
30 const contentNode = <Element> component.content().node();
31 return contentNode != null && Plottable.Utils.DOM.contains(document.body, contentNode);
32}
33
34export function verifySpaceRequest(sr: Plottable.SpaceRequest, expectedMinWidth: number, expectedMinHeight: number, message: string) {
35 assert.strictEqual(sr.minWidth, expectedMinWidth, message + " (space request: minWidth)");

Callers

nothing calls this directly

Calls 2

contentMethod · 0.80
containsMethod · 0.80

Tested by

no test coverage detected