diff --git a/docs/components/PlotRender.js b/docs/components/PlotRender.js index 52cfa420f2..bb058759e1 100644 --- a/docs/components/PlotRender.js +++ b/docs/components/PlotRender.js @@ -1,9 +1,12 @@ import * as Plot from "@observablehq/plot"; import {h, withDirectives} from "vue"; +class Event {} + class Document { constructor() { this.documentElement = new Element(this, "html"); + this.defaultView = {Event}; } createElementNS(namespace, tagName) { return new Element(this, tagName);