From ba11e2f9086aca8240b1fb843eae7fcd83224792 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Wed, 20 Mar 2024 12:45:34 +0000 Subject: [PATCH] no indicator --- packages/tldraw/api-report.md | 2 +- packages/tldraw/api/api.json | 33 +++---------------- .../src/lib/shapes/note/NoteShapeUtil.tsx | 11 ++----- 3 files changed, 8 insertions(+), 38 deletions(-) diff --git a/packages/tldraw/api-report.md b/packages/tldraw/api-report.md index 5b45dafe6..e885f9abe 100644 --- a/packages/tldraw/api-report.md +++ b/packages/tldraw/api-report.md @@ -1098,7 +1098,7 @@ export class NoteShapeUtil extends ShapeUtil { // (undocumented) hideSelectionBoundsFg: () => boolean; // (undocumented) - indicator(shape: TLNoteShape): JSX_2.Element; + indicator(): null; // (undocumented) static migrations: Migrations; // (undocumented) diff --git a/packages/tldraw/api/api.json b/packages/tldraw/api/api.json index 48b0f4a74..10505b6f6 100644 --- a/packages/tldraw/api/api.json +++ b/packages/tldraw/api/api.json @@ -13090,25 +13090,11 @@ "excerptTokens": [ { "kind": "Content", - "text": "indicator(shape: " - }, - { - "kind": "Reference", - "text": "TLNoteShape", - "canonicalReference": "@tldraw/tlschema!TLNoteShape:type" + "text": "indicator(): " }, { "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "import(\"react/jsx-runtime\")." - }, - { - "kind": "Reference", - "text": "JSX.Element", - "canonicalReference": "@types/react!JSX.Element:interface" + "text": "null" }, { "kind": "Content", @@ -13117,22 +13103,13 @@ ], "isStatic": false, "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 + "startIndex": 1, + "endIndex": 2 }, "releaseTag": "Public", "isProtected": false, "overloadIndex": 1, - "parameters": [ - { - "parameterName": "shape", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isOptional": false - } - ], + "parameters": [], "isOptional": false, "isAbstract": false, "name": "indicator" diff --git a/packages/tldraw/src/lib/shapes/note/NoteShapeUtil.tsx b/packages/tldraw/src/lib/shapes/note/NoteShapeUtil.tsx index d4446a94b..65b1dbd07 100644 --- a/packages/tldraw/src/lib/shapes/note/NoteShapeUtil.tsx +++ b/packages/tldraw/src/lib/shapes/note/NoteShapeUtil.tsx @@ -9,7 +9,6 @@ import { getDefaultColorTheme, noteShapeMigrations, noteShapeProps, - toDomPrecision, } from '@tldraw/editor' import { HyperlinkButton } from '../shared/HyperlinkButton' import { useDefaultColorTheme } from '../shared/ShapeFill' @@ -100,14 +99,8 @@ export class NoteShapeUtil extends ShapeUtil { ) } - indicator(shape: TLNoteShape) { - return ( - - ) + indicator() { + return null } override toSvg(shape: TLNoteShape, ctx: SvgExportContext) {