Visualize Your Ideas With Code
fix(2d): add missing middle property (#891)
Jacob61e2e96e3b8f
diff --git a/packages/2d/src/lib/components/Layout.ts b/packages/2d/src/lib/components/Layout.tsindex e5c8ad98..17ef2031 100644--- a/packages/2d/src/lib/components/Layout.ts+++ b/packages/2d/src/lib/components/Layout.ts@@ -100,6 +100,17 @@ export interface LayoutProps extends NodeProps {offsetX?: SignalValue<number>;offsetY?: SignalValue<number>;offset?: SignalValue<PossibleVector2>;+ /**+ * The position of the center of this node.+ *+ * @remarks+ * This shortcut property will set the node's position so that the center ends+ * up in the given place.+ * If present, overrides the {@link NodeProps.position} property.+ * When {@link NodeProps.offset} is not set, this will be the same as the+ * {@link NodeProps.position}.+ */+ middle?: SignalValue<PossibleVector2>;/*** The position of the top edge of this node.*