pull/3280/head
Lu[ke] Wilson 2024-03-27 11:46:59 +00:00
rodzic a25736277e
commit 0f11f34315
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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",

Wyświetl plik

@ -1530,7 +1530,8 @@ export class Editor extends EventEmitter<TLEventMap> {
* 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