Files
konva/test/sandbox.html

45 lines
991 B
HTML
Raw Normal View History

2025-08-19 14:15:14 +12:00
<!doctype html>
2021-05-03 17:09:18 -05:00
<html>
<head>
<meta charset="utf-8" />
2025-09-01 09:06:07 -05:00
<title>KonvaJS Blur Comparison Sandbox</title>
2021-05-03 17:09:18 -05:00
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0"
/>
<style>
body {
margin: 0;
padding: 20px;
font-family: Arial, sans-serif;
background: #f0f0f0;
2021-05-03 17:09:18 -05:00
}
</style>
</head>
<body>
2025-09-01 09:06:07 -05:00
<div id="container"></div>
2021-10-22 10:09:34 -05:00
<script type="module">
import Konva from '../src/index.ts';
2022-03-21 13:49:55 -05:00
2025-09-01 09:06:07 -05:00
const stage = new Konva.Stage({
container: 'container',
width: window.innerWidth,
height: window.innerHeight,
2022-08-05 10:35:43 -05:00
});
2023-07-26 12:10:00 -05:00
2025-09-01 09:06:07 -05:00
const layer = new Konva.Layer();
stage.add(layer);
2023-07-26 12:10:00 -05:00
2025-09-01 09:06:07 -05:00
const circle = new Konva.Circle({
x: stage.width() / 2,
y: stage.height() / 2,
radius: 100,
fill: 'red',
draggable: true,
});
2025-09-01 09:06:07 -05:00
layer.add(circle);
2021-10-22 10:09:34 -05:00
</script>
2021-05-03 17:09:18 -05:00
</body>
</html>