kopia lustrzana https://github.com/Tldraw/Tldraw
make public
rodzic
a25736277e
commit
0f11f34315
|
@ -9486,7 +9486,7 @@
|
||||||
{
|
{
|
||||||
"kind": "Method",
|
"kind": "Method",
|
||||||
"canonicalReference": "@tldraw/editor!Editor#findSelectedAncestor:member(1)",
|
"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": [
|
"excerptTokens": [
|
||||||
{
|
{
|
||||||
"kind": "Content",
|
"kind": "Content",
|
||||||
|
|
|
@ -1530,7 +1530,8 @@ export class Editor extends EventEmitter<TLEventMap> {
|
||||||
* Find the first selected ancestor of a shape.
|
* Find the first selected ancestor of a shape.
|
||||||
*
|
*
|
||||||
* @param shape - The shape to find the selected ancestor of.
|
* @param shape - The shape to find the selected ancestor of.
|
||||||
* @returns
|
*
|
||||||
|
* @public
|
||||||
*/
|
*/
|
||||||
findSelectedAncestor(shape: TLShape | TLShapeId): TLShape | null {
|
findSelectedAncestor(shape: TLShape | TLShapeId): TLShape | null {
|
||||||
const id = typeof shape === 'string' ? shape : shape?.id ?? null
|
const id = typeof shape === 'string' ? shape : shape?.id ?? null
|
||||||
|
|
Ładowanie…
Reference in New Issue