feat(charts): manage investigation charts in a scrolling workspace
This commit is contained in:
@@ -63,7 +63,11 @@ test("standalone basemap controls share the same pointer and keyboard boundary",
|
||||
|
||||
async function renderControls(page: Page) {
|
||||
await page.evaluate(async () => {
|
||||
const paths = ["/node_modules/.vite/deps/react.js", "/node_modules/.vite/deps/react-dom_client.js", "/src/features/map/core/components/base-layers-control.tsx"];
|
||||
const entry = await fetch("/src/main.tsx").then((response) => response.text());
|
||||
const reactPath = entry.match(/["']([^"']*\/react\.js(?:\?[^"']*)?)["']/)?.[1];
|
||||
const domPath = entry.match(/["']([^"']*\/react-dom_client\.js(?:\?[^"']*)?)["']/)?.[1];
|
||||
if (!reactPath || !domPath) throw new Error("App React dependency URLs not found");
|
||||
const paths = [reactPath, domPath, "/src/features/map/core/components/base-layers-control.tsx"];
|
||||
const [react, dom, controls] = await Promise.all(paths.map((path) => import(path)));
|
||||
const h = react.default.createElement;
|
||||
function Examples() {
|
||||
|
||||
Reference in New Issue
Block a user