Skip to content

Commit

Permalink
fix svelte label example
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainCodeman committed Sep 4, 2024
1 parent 287e205 commit 112cf35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/examples/label/Label.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
init();
let labelConfig = {
let labelConfig = $state({
x: 0,
y: 0,
opacity: 0.8,
visible: false
};
});
let labelTextConfig = {
let labelTextConfig = $state({
text: '',
fontSize: 18,
padding: 5,
fill: 'white'
};
});
function handleMouseEnter(e: KonvaMouseEvent) {
let hoveredElementPos = e.target.getPosition();
Expand Down

0 comments on commit 112cf35

Please sign in to comment.