Foldkit Zloz API
    Preparing search index...

    Function portAnchor

    • Normalized position; supplying a node applies its outline to default offsets. Explicit anchors always win.

      Parameters

      • port: Port
      • Optionalnode: Readonly<
            {
                id: string;
                label: string;
                position: Point;
                size: Size;
                ports: readonly Port[];
                resizeLimits?: Readonly<
                    {
                        minWidth?: number;
                        maxWidth?: number;
                        minHeight?: number;
                        maxHeight?: number;
                    },
                >;
                keepAspectRatio?: boolean;
                kind?: "group";
                parentId?: string;
                extent?: "parent";
                expandParent?: boolean;
                data?: JsonValue;
                architecture?: ZlozNodeArchitecture;
                appearance?: Readonly<{ shape: ZlozNodeShape }>;
            },
        >

      Returns Point