Skip to content

Commit

Permalink
Fix rect
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Sep 4, 2024
1 parent 449a406 commit 0d0871d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@selenite/commons",
"version": "0.24.6",
"version": "0.24.7",
"repository": "github:ShaitanLyss/selenite-commons",
"license": "MIT",
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions src/lib/utils/html.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export function posFromClient({
* Definition of a rectangle..
*/
export class Rect {
x: number;
y: number;
width: number;
height: number;
x = $state(0)
y = $state(0)
width = $state(0)
height = $state(0)

constructor(x = 0, y = 0, width = 0, height = 0) {
this.x = x;
Expand Down

0 comments on commit 0d0871d

Please sign in to comment.