From 0f11f3431550b9c7727d18036a79f0ceb1624640 Mon Sep 17 00:00:00 2001 From: "Lu[ke] Wilson" Date: Wed, 27 Mar 2024 11:46:59 +0000 Subject: [PATCH] make public --- packages/editor/api/api.json | 2 +- packages/editor/src/lib/editor/Editor.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/editor/api/api.json b/packages/editor/api/api.json index 5bd6bdb1a..64b8f17c7 100644 --- a/packages/editor/api/api.json +++ b/packages/editor/api/api.json @@ -9486,7 +9486,7 @@ { "kind": "Method", "canonicalReference": "@tldraw/editor!Editor#findSelectedAncestor:member(1)", - "docComment": "/**\n * Find the first selected ancestor of a shape.\n *\n * @param shape - The shape to find the selected ancestor of.\n *\n * @returns \n */\n", + "docComment": "/**\n * Find the first selected ancestor of a shape.\n *\n * @param shape - The shape to find the selected ancestor of.\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", diff --git a/packages/editor/src/lib/editor/Editor.ts b/packages/editor/src/lib/editor/Editor.ts index e97a23895..3139c0062 100644 --- a/packages/editor/src/lib/editor/Editor.ts +++ b/packages/editor/src/lib/editor/Editor.ts @@ -1530,7 +1530,8 @@ export class Editor extends EventEmitter { * Find the first selected ancestor of a shape. * * @param shape - The shape to find the selected ancestor of. - * @returns + * + * @public */ findSelectedAncestor(shape: TLShape | TLShapeId): TLShape | null { const id = typeof shape === 'string' ? shape : shape?.id ?? null