kopia lustrzana https://github.com/Tldraw/Tldraw
no indicator
rodzic
c28f11e4ba
commit
ba11e2f908
|
@ -1098,7 +1098,7 @@ export class NoteShapeUtil extends ShapeUtil<TLNoteShape> {
|
|||
// (undocumented)
|
||||
hideSelectionBoundsFg: () => boolean;
|
||||
// (undocumented)
|
||||
indicator(shape: TLNoteShape): JSX_2.Element;
|
||||
indicator(): null;
|
||||
// (undocumented)
|
||||
static migrations: Migrations;
|
||||
// (undocumented)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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<TLNoteShape> {
|
|||
)
|
||||
}
|
||||
|
||||
indicator(shape: TLNoteShape) {
|
||||
return (
|
||||
<rect
|
||||
rx="6"
|
||||
width={toDomPrecision(NOTE_SIZE)}
|
||||
height={toDomPrecision(this.getHeight(shape))}
|
||||
/>
|
||||
)
|
||||
indicator() {
|
||||
return null
|
||||
}
|
||||
|
||||
override toSvg(shape: TLNoteShape, ctx: SvgExportContext) {
|
||||
|
|
Ładowanie…
Reference in New Issue