forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
output.js
24 lines (24 loc) · 941 Bytes
/
output.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
import { useEffect } from "react";
import { select, selectAll } from "d3-selection";
export default function Home() {
useEffect(function() {
new MyClass();
}, []);
return /*#__PURE__*/ React.createElement("svg", null, /*#__PURE__*/ React.createElement("g", {
className: "group"
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null)), /*#__PURE__*/ React.createElement("g", {
className: "group"
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null)));
}
var MyClass = function MyClass() {
"use strict";
_classCallCheck(this, MyClass);
selectAll(".group").each(function() {
select(this).selectAll("path");
});
};