[Bug] Remove unused prop LayoutElement.value (#940)

Resolves https://github.com/Comfy-Org/litegraph.js/issues/939

The prop is unused and is causing object clone circular ref issue.
This commit is contained in:
Chenlei Hu
2025-04-19 22:23:49 -04:00
committed by GitHub
parent 7c88bda647
commit 453257cd30
4 changed files with 7 additions and 12 deletions

View File

@@ -1,14 +1,11 @@
import { Point, ReadOnlyRect } from "@/interfaces"
export class LayoutElement<T> {
public readonly value: T
export class LayoutElement {
public readonly boundingRect: ReadOnlyRect
constructor(o: {
value: T
boundingRect: ReadOnlyRect
}) {
this.value = o.value
this.boundingRect = o.boundingRect
}