From 107809c812abfdf0faf3850457be8648dc02536c Mon Sep 17 00:00:00 2001 From: Emyr Thomas Date: Tue, 13 Aug 2024 21:35:20 +0100 Subject: [PATCH] Replace $state.frozen with $state.raw (#130) * Replace $state.frozen with $state.raw See https://github.com/sveltejs/svelte/pull/12808 * Create thirty-mugs-sing.md --------- Co-authored-by: Thomas G. Lopes <26071571+TGlide@users.noreply.github.com> --- .changeset/thirty-mugs-sing.md | 5 +++++ .../src/lib/utilities/ElementRect/ElementRect.svelte.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/thirty-mugs-sing.md diff --git a/.changeset/thirty-mugs-sing.md b/.changeset/thirty-mugs-sing.md new file mode 100644 index 00000000..8e7317e3 --- /dev/null +++ b/.changeset/thirty-mugs-sing.md @@ -0,0 +1,5 @@ +--- +"runed": patch +--- + +Replace $state.frozen with $state.raw diff --git a/packages/runed/src/lib/utilities/ElementRect/ElementRect.svelte.ts b/packages/runed/src/lib/utilities/ElementRect/ElementRect.svelte.ts index 4b2af0dc..5e31b0e2 100644 --- a/packages/runed/src/lib/utilities/ElementRect/ElementRect.svelte.ts +++ b/packages/runed/src/lib/utilities/ElementRect/ElementRect.svelte.ts @@ -21,7 +21,7 @@ export type ElementRectOptions = { * @see {@link https://runed.dev/docs/utilities/element-size} */ export class ElementRect { - #rect: Rect = $state.frozen({ + #rect: Rect = $state.raw({ x: 0, y: 0, width: 0,