hide-sticky-indicator
Steve Ruiz 2024-03-20 12:45:34 +00:00
rodzic c28f11e4ba
commit ba11e2f908
3 zmienionych plików z 8 dodań i 38 usunięć

Wyświetl plik

@ -1098,7 +1098,7 @@ export class NoteShapeUtil extends ShapeUtil<TLNoteShape> {
// (undocumented) // (undocumented)
hideSelectionBoundsFg: () => boolean; hideSelectionBoundsFg: () => boolean;
// (undocumented) // (undocumented)
indicator(shape: TLNoteShape): JSX_2.Element; indicator(): null;
// (undocumented) // (undocumented)
static migrations: Migrations; static migrations: Migrations;
// (undocumented) // (undocumented)

Wyświetl plik

@ -13090,25 +13090,11 @@
"excerptTokens": [ "excerptTokens": [
{ {
"kind": "Content", "kind": "Content",
"text": "indicator(shape: " "text": "indicator(): "
},
{
"kind": "Reference",
"text": "TLNoteShape",
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
}, },
{ {
"kind": "Content", "kind": "Content",
"text": "): " "text": "null"
},
{
"kind": "Content",
"text": "import(\"react/jsx-runtime\")."
},
{
"kind": "Reference",
"text": "JSX.Element",
"canonicalReference": "@types/react!JSX.Element:interface"
}, },
{ {
"kind": "Content", "kind": "Content",
@ -13117,22 +13103,13 @@
], ],
"isStatic": false, "isStatic": false,
"returnTypeTokenRange": { "returnTypeTokenRange": {
"startIndex": 3, "startIndex": 1,
"endIndex": 5 "endIndex": 2
}, },
"releaseTag": "Public", "releaseTag": "Public",
"isProtected": false, "isProtected": false,
"overloadIndex": 1, "overloadIndex": 1,
"parameters": [ "parameters": [],
{
"parameterName": "shape",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"isOptional": false
}
],
"isOptional": false, "isOptional": false,
"isAbstract": false, "isAbstract": false,
"name": "indicator" "name": "indicator"

Wyświetl plik

@ -9,7 +9,6 @@ import {
getDefaultColorTheme, getDefaultColorTheme,
noteShapeMigrations, noteShapeMigrations,
noteShapeProps, noteShapeProps,
toDomPrecision,
} from '@tldraw/editor' } from '@tldraw/editor'
import { HyperlinkButton } from '../shared/HyperlinkButton' import { HyperlinkButton } from '../shared/HyperlinkButton'
import { useDefaultColorTheme } from '../shared/ShapeFill' import { useDefaultColorTheme } from '../shared/ShapeFill'
@ -100,14 +99,8 @@ export class NoteShapeUtil extends ShapeUtil<TLNoteShape> {
) )
} }
indicator(shape: TLNoteShape) { indicator() {
return ( return null
<rect
rx="6"
width={toDomPrecision(NOTE_SIZE)}
height={toDomPrecision(this.getHeight(shape))}
/>
)
} }
override toSvg(shape: TLNoteShape, ctx: SvgExportContext) { override toSvg(shape: TLNoteShape, ctx: SvgExportContext) {