mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
Share seven deterministic fixtures with the playground pages and measure renderer lifecycle, pan, and zoom through a prepared Playwright runner. Retain raw attempts and failures with offline statistical comparisons. Add focused tests and separate browser fault diagnostics. Full-suite calibration and shadow GPU validation remain tracked follow-up work. AI-assisted-by: GPT-6
48 lines
1.1 KiB
HTML
48 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Renderer playground: paths</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
background: #111;
|
|
overflow: hidden;
|
|
}
|
|
canvas {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
display: block;
|
|
touch-action: none;
|
|
}
|
|
#error {
|
|
position: fixed;
|
|
background: white;
|
|
color: #900;
|
|
padding: 1rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<canvas id="canvas"></canvas>
|
|
<script type="module">
|
|
import initModule from "/js/render-wasm.js";
|
|
import scenario from "./scenes/paths.js";
|
|
import { mountScenario } from "./js/lib.js";
|
|
|
|
mountScenario(
|
|
scenario,
|
|
initModule,
|
|
document.getElementById("canvas"),
|
|
).catch((error) => {
|
|
console.error(error);
|
|
const message = document.createElement("pre");
|
|
message.id = "error";
|
|
message.textContent = error.message;
|
|
document.body.append(message);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|