9a6f4e8c4b
This PR incorporates design tweaks from #2922 without the home page or content changes. These are: - Replacing all `hello@tldraw.com` with `sales@tldraw.com` - Fix mailto links. - Showing the first item in a section on direct routes to the section - Splitting the article page for human-written content from article page for generated content - Splitting the layout for the landing page from the rest of the site (temporarily identical to the regular content) - Removing headings from left sidebar - Restoring headings in right sidebar for human-written pages with > 1 heading link - Styling block quote - Adjusting section link appearance / layout in header / menu - Changing the order of search results to preference docs over examples - Updating copy on events - Removing copy on user interface menus - Adding hero as prop to all articles - Updated icon - Fixing a few broken links - Replaces the sandpack code blocks with hljs code blocks, except in examples. ### Change Type - [x] `documentation` — Changes to the documentation only[^2]
24995 lines
801 KiB
JSON
24995 lines
801 KiB
JSON
{
|
|
"metadata": {
|
|
"toolPackage": "@microsoft/api-extractor",
|
|
"toolVersion": "7.41.0",
|
|
"schemaVersion": 1011,
|
|
"oldestForwardsCompatibleVersion": 1001,
|
|
"tsdocConfig": {
|
|
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
"noStandardTags": true,
|
|
"tagDefinitions": [
|
|
{
|
|
"tagName": "@alpha",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@beta",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@defaultValue",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@decorator",
|
|
"syntaxKind": "block",
|
|
"allowMultiple": true
|
|
},
|
|
{
|
|
"tagName": "@deprecated",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@eventProperty",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@example",
|
|
"syntaxKind": "block",
|
|
"allowMultiple": true
|
|
},
|
|
{
|
|
"tagName": "@experimental",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@inheritDoc",
|
|
"syntaxKind": "inline"
|
|
},
|
|
{
|
|
"tagName": "@internal",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@label",
|
|
"syntaxKind": "inline"
|
|
},
|
|
{
|
|
"tagName": "@link",
|
|
"syntaxKind": "inline",
|
|
"allowMultiple": true
|
|
},
|
|
{
|
|
"tagName": "@override",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@packageDocumentation",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@param",
|
|
"syntaxKind": "block",
|
|
"allowMultiple": true
|
|
},
|
|
{
|
|
"tagName": "@privateRemarks",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@public",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@readonly",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@remarks",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@returns",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@sealed",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@see",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@throws",
|
|
"syntaxKind": "block",
|
|
"allowMultiple": true
|
|
},
|
|
{
|
|
"tagName": "@typeParam",
|
|
"syntaxKind": "block",
|
|
"allowMultiple": true
|
|
},
|
|
{
|
|
"tagName": "@virtual",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@betaDocumentation",
|
|
"syntaxKind": "modifier"
|
|
},
|
|
{
|
|
"tagName": "@internalRemarks",
|
|
"syntaxKind": "block"
|
|
},
|
|
{
|
|
"tagName": "@preapproved",
|
|
"syntaxKind": "modifier"
|
|
}
|
|
],
|
|
"supportForTags": {
|
|
"@alpha": true,
|
|
"@beta": true,
|
|
"@defaultValue": true,
|
|
"@decorator": true,
|
|
"@deprecated": true,
|
|
"@eventProperty": true,
|
|
"@example": true,
|
|
"@experimental": true,
|
|
"@inheritDoc": true,
|
|
"@internal": true,
|
|
"@label": true,
|
|
"@link": true,
|
|
"@override": true,
|
|
"@packageDocumentation": true,
|
|
"@param": true,
|
|
"@privateRemarks": true,
|
|
"@public": true,
|
|
"@readonly": true,
|
|
"@remarks": true,
|
|
"@returns": true,
|
|
"@sealed": true,
|
|
"@see": true,
|
|
"@throws": true,
|
|
"@typeParam": true,
|
|
"@virtual": true,
|
|
"@betaDocumentation": true,
|
|
"@internalRemarks": true,
|
|
"@preapproved": true
|
|
},
|
|
"reportUnsupportedHtmlElements": false
|
|
}
|
|
},
|
|
"kind": "Package",
|
|
"canonicalReference": "@tldraw/tldraw!",
|
|
"docComment": "",
|
|
"name": "@tldraw/tldraw",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "EntryPoint",
|
|
"canonicalReference": "@tldraw/tldraw!",
|
|
"name": "",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class ArrowShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/arrow/ArrowShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "ArrowShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class ArrowShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!ShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/arrow/ArrowShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "ArrowShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canBind:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canBind: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canBind",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canEdit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEdit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEdit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#canSnap:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canSnap: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canSnap",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getCanvasSvgDefs:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getCanvasSvgDefs(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilCanvasSvgDef",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getCanvasSvgDefs"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Group2d",
|
|
"canonicalReference": "@tldraw/editor!Group2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#getHandles:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getHandles(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHandle",
|
|
"canonicalReference": "@tldraw/tlschema!TLHandle:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getHandles"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideResizeHandles:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideResizeHandles: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideResizeHandles",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideRotateHandle:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideRotateHandle: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideRotateHandle",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideSelectionBoundsBg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsBg: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsBg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#hideSelectionBoundsFg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsFg: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsFg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onDoubleClickHandle:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDoubleClickHandle: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", handle: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHandle",
|
|
"canonicalReference": "@tldraw/tlschema!TLHandle:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapePartial",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDoubleClickHandle",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 10
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onEditEnd:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEditEnd: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnEditEndHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEditEnd",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onHandleDrag:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onHandleDrag: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnHandleDragHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnHandleDragHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onHandleDrag",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onTranslate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onTranslate?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnTranslateHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnTranslateHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onTranslate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#onTranslateStart:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onTranslateStart: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnTranslateStartHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnTranslateStartHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onTranslateStart",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n labelColor: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n arrowheadStart: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n arrowheadEnd: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n font: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n start: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "UnionValidator",
|
|
"canonicalReference": "@tldraw/validate!UnionValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"type\", {\n binding: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ObjectValidator",
|
|
"canonicalReference": "@tldraw/validate!ObjectValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n type: \"binding\";\n boundShapeId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n normalizedAnchor: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "VecModel",
|
|
"canonicalReference": "@tldraw/tlschema!VecModel:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isExact: boolean;\n isPrecise: boolean;\n }>;\n point: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ObjectValidator",
|
|
"canonicalReference": "@tldraw/validate!ObjectValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n x: number;\n y: number;\n type: \"point\";\n }>;\n }, never>;\n end: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "UnionValidator",
|
|
"canonicalReference": "@tldraw/validate!UnionValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"type\", {\n binding: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ObjectValidator",
|
|
"canonicalReference": "@tldraw/validate!ObjectValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n type: \"binding\";\n boundShapeId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n normalizedAnchor: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "VecModel",
|
|
"canonicalReference": "@tldraw/tlschema!VecModel:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isExact: boolean;\n isPrecise: boolean;\n }>;\n point: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ObjectValidator",
|
|
"canonicalReference": "@tldraw/validate!ObjectValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n x: number;\n y: number;\n type: \"point\";\n }>;\n }, never>;\n bend: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n text: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n labelPosition: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 44
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLArrowShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGGElement",
|
|
"canonicalReference": "!SVGGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"arrow\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class BookmarkShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseBoxShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLBookmarkShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/bookmark/BookmarkShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "BookmarkShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#canResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canResize: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLBookmarkShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLBookmarkShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#hideSelectionBoundsFg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsFg: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsFg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLBookmarkShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#onBeforeCreate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeCreate?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnBeforeCreateHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnBeforeCreateHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLBookmarkShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeCreate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil#onBeforeUpdate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeUpdate?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnBeforeUpdateHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnBeforeUpdateHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLBookmarkShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLBookmarkShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeUpdate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n w: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "T.Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n h: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "T.Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n assetId: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "T.Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<null | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLAssetId",
|
|
"canonicalReference": "@tldraw/tlschema!TLAssetId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">;\n url: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "T.Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 12
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!BookmarkShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"bookmark\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!BreakPointProvider:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function BreakPointProvider({ forceMobile, children, }: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n forceMobile?: boolean;\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/breakpoints.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ forceMobile, children, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "BreakPointProvider"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!containBoxSize:function(1)",
|
|
"docComment": "/**\n * Contains the size within the given box size\n *\n * @param originalSize - The size of the asset\n *\n * @param containBoxSize - The container size\n *\n * @returns Adjusted size\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function containBoxSize(originalSize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BoxWidthHeight",
|
|
"canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", containBoxSize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BoxWidthHeight",
|
|
"canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BoxWidthHeight",
|
|
"canonicalReference": "@tldraw/tldraw!~BoxWidthHeight:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/assets/assets.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "originalSize",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "containBoxSize",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "containBoxSize"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!copyAs:function(1)",
|
|
"docComment": "/**\n * Copy the given shapes to the clipboard.\n *\n * @param editor - The editor instance.\n *\n * @param ids - The ids of the shapes to copy.\n *\n * @param format - The format to copy as.\n *\n * @param opts - Options for the copy.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function copyAs(editor: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Editor",
|
|
"canonicalReference": "@tldraw/editor!Editor:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ids: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", format?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLCopyType",
|
|
"canonicalReference": "@tldraw/tldraw!~TLCopyType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", opts?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLSvgOptions",
|
|
"canonicalReference": "@tldraw/editor!TLSvgOptions:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<void>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/export/copyAs.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 13,
|
|
"endIndex": 15
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "editor",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ids",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "format",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 6,
|
|
"endIndex": 7
|
|
},
|
|
"isOptional": true
|
|
},
|
|
{
|
|
"parameterName": "opts",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 8,
|
|
"endIndex": 12
|
|
},
|
|
"isOptional": true
|
|
}
|
|
],
|
|
"name": "copyAs"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DEFAULT_ACCEPTED_IMG_TYPE:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DEFAULT_ACCEPTED_IMG_TYPE: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string[]"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/assets/assets.ts",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DEFAULT_ACCEPTED_IMG_TYPE",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DEFAULT_ACCEPTED_VID_TYPE:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DEFAULT_ACCEPTED_VID_TYPE: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string[]"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/assets/assets.ts",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DEFAULT_ACCEPTED_VID_TYPE",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultActionsMenu:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultActionsMenu: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiActionsMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionsMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/ActionsMenu/DefaultActionsMenu.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultActionsMenu",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultActionsMenuContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultActionsMenuContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/ActionsMenu/DefaultActionsMenuContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultActionsMenuContent"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultContextMenu:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultContextMenu: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiContextMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/ContextMenu/DefaultContextMenu.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultContextMenu",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultContextMenuContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultContextMenuContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/ContextMenu/DefaultContextMenuContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultContextMenuContent"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultDebugMenu:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultDebugMenu({ children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDebugMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDebugMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/DebugMenu/DefaultDebugMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "DefaultDebugMenu"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultDebugMenuContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultDebugMenuContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/DebugMenu/DefaultDebugMenuContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultDebugMenuContent"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultHelperButtons:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultHelperButtons({ children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiHelperButtonsProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiHelperButtonsProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/HelperButtons/DefaultHelperButtons.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "DefaultHelperButtons"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultHelperButtonsContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultHelperButtonsContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/HelperButtons/DefaultHelperButtonsContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultHelperButtonsContent"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultHelpMenu:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultHelpMenu: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiHelpMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiHelpMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/HelpMenu/DefaultHelpMenu.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultHelpMenu",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultHelpMenuContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultHelpMenuContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/HelpMenu/DefaultHelpMenuContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultHelpMenuContent"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultKeyboardShortcutsDialog:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultKeyboardShortcutsDialog: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiKeyboardShortcutsDialogProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsDialogProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialog.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultKeyboardShortcutsDialog",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultKeyboardShortcutsDialogContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultKeyboardShortcutsDialogContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialogContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultKeyboardShortcutsDialogContent"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultMainMenu:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultMainMenu: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiMainMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMainMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/MainMenu/DefaultMainMenu.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultMainMenu",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultMainMenuContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultMainMenuContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/MainMenu/DefaultMainMenuContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultMainMenuContent"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultMinimap:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultMinimap(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/Minimap/DefaultMinimap.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultMinimap"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultPageMenu:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultPageMenu: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<object>"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/PageMenu/DefaultPageMenu.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultPageMenu",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultQuickActions:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultQuickActions: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiQuickActionsProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiQuickActionsProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/QuickActions/DefaultQuickActions.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultQuickActions",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultQuickActionsContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultQuickActionsContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/QuickActions/DefaultQuickActionsContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultQuickActionsContent"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!defaultShapeTools:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "defaultShapeTools: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ArrowShapeTool",
|
|
"canonicalReference": "@tldraw/tldraw!ArrowShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "DrawShapeTool",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "FrameShapeTool",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "GeoShapeTool",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "LineShapeTool",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NoteShapeTool",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TextShapeTool",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/defaultShapeTools.ts",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "defaultShapeTools",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 16
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!defaultShapeUtils:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "defaultShapeUtils: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLAnyShapeUtilConstructor",
|
|
"canonicalReference": "@tldraw/editor!TLAnyShapeUtilConstructor:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/defaultShapeUtils.ts",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "defaultShapeUtils",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultStylePanel:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultStylePanel: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiStylePanelProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/StylePanel/DefaultStylePanel.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultStylePanel",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultStylePanelContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultStylePanelContent({ styles }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiStylePanelContentProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiStylePanelContentProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/StylePanel/DefaultStylePanelContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ styles }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "DefaultStylePanelContent"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultToolbar:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultToolbar: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<object>"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/Toolbar/DefaultToolbar.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultToolbar",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!defaultTools:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "defaultTools: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EraserTool",
|
|
"canonicalReference": "@tldraw/tldraw!EraserTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "HandTool",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "LaserTool",
|
|
"canonicalReference": "@tldraw/tldraw!LaserTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SelectTool",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ZoomTool",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/defaultTools.ts",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "defaultTools",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 12
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultZoomMenu:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "DefaultZoomMenu: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiZoomMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiZoomMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/ZoomMenu/DefaultZoomMenu.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "DefaultZoomMenu",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!DefaultZoomMenuContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function DefaultZoomMenuContent(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/ZoomMenu/DefaultZoomMenuContent.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "DefaultZoomMenuContent"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!downsizeImage:function(1)",
|
|
"docComment": "/**\n * Resize an image Blob to be smaller than it is currently.\n *\n * @param image - The image Blob.\n *\n * @param width - The desired width.\n *\n * @param height - The desired height.\n *\n * @param opts - Options for the image.\n *\n * @example\n * ```ts\n * const image = await (await fetch('/image.jpg')).blob()\n * const size = await getImageSize(image)\n * const resizedImage = await downsizeImage(image, size.w / 2, size.h / 2, { type: \"image/jpeg\", quality: 0.92 })\n * ```\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function downsizeImage(blob: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Blob",
|
|
"canonicalReference": "!Blob:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", width: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "number"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", height: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "number"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", opts?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n type?: string | undefined;\n quality?: number | undefined;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Blob",
|
|
"canonicalReference": "!Blob:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/assets/assets.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 9,
|
|
"endIndex": 13
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "blob",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "width",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "height",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "opts",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
},
|
|
"isOptional": true
|
|
}
|
|
],
|
|
"name": "downsizeImage"
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class DrawShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/draw/DrawShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "DrawShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Drawing",
|
|
"canonicalReference": "@tldraw/tldraw!~Drawing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_2:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeTool#onExit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onExit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onExit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class DrawShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!ShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/draw/DrawShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "DrawShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#expandSelectionOutlinePx:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "expandSelectionOutlinePx(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "number"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "expandSelectionOutlinePx"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getCanvasSvgDefs:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getCanvasSvgDefs(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilCanvasSvgDef",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getCanvasSvgDefs"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Circle2d",
|
|
"canonicalReference": "@tldraw/editor!Circle2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Polyline2d",
|
|
"canonicalReference": "@tldraw/editor!Polyline2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideResizeHandles:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideResizeHandles: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideResizeHandles",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideRotateHandle:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideRotateHandle: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideRotateHandle",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#hideSelectionBoundsFg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsFg: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsFg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n color: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ArrayOfValidator",
|
|
"canonicalReference": "@tldraw/validate!ArrayOfValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n type: \"free\" | \"straight\";\n points: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "VecModel",
|
|
"canonicalReference": "@tldraw/tlschema!VecModel:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[];\n }>;\n isComplete: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n isClosed: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n isPen: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 20
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLDrawShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLDrawShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGGElement",
|
|
"canonicalReference": "!SVGGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!DrawShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"draw\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class EmbedShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseBoxShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/embed/EmbedShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "EmbedShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canEdit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEdit: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEdit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canEditInReadOnly:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEditInReadOnly: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEditInReadOnly",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canResize: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#canUnmount:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canUnmount: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canUnmount",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#hideSelectionBoundsFg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsFg: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsFg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#isAspectRatioLocked:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "isAspectRatioLocked: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "isAspectRatioLocked",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLEmbedShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n w: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n h: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n url: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EmbedShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"embed\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!EraserTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class EraserTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/tools/EraserTool/EraserTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "EraserTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EraserTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Erasing",
|
|
"canonicalReference": "@tldraw/tldraw!~Erasing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_7:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing_6:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EraserTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EraserTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!EraserTool#onEnter:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEnter: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEnter",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!EventsProviderProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type EventsProviderProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n onEvent?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventHandler",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/events.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "EventsProviderProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!exportAs:function(1)",
|
|
"docComment": "/**\n * Export the given shapes as files.\n *\n * @param editor - The editor instance.\n *\n * @param ids - The ids of the shapes to export.\n *\n * @param format - The format to export as.\n *\n * @param name - Name of the exported file. If undefined a predefined name, based on the selection, will be used.\n *\n * @param opts - Options for the export.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function exportAs(editor: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Editor",
|
|
"canonicalReference": "@tldraw/editor!Editor:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ids: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", format: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLExportType",
|
|
"canonicalReference": "@tldraw/tldraw!~TLExportType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", name: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", opts?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLSvgOptions",
|
|
"canonicalReference": "@tldraw/editor!TLSvgOptions:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<void>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/export/exportAs.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 16,
|
|
"endIndex": 18
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "editor",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ids",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "format",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 6,
|
|
"endIndex": 8
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "name",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 9,
|
|
"endIndex": 10
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "opts",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 11,
|
|
"endIndex": 15
|
|
},
|
|
"isOptional": true
|
|
}
|
|
],
|
|
"name": "exportAs"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!fitFrameToContent:function(1)",
|
|
"docComment": "/**\n * Fit a frame to its content.\n *\n * @param id - Id of the frame you wish to fit to content.\n *\n * @param editor - tlraw editor instance.\n *\n * @param opts - Options for fitting the frame.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function fitFrameToContent(editor: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Editor",
|
|
"canonicalReference": "@tldraw/editor!Editor:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", id: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", opts?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n padding: number;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/frames/frames.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "editor",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "id",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "opts",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"isOptional": true
|
|
}
|
|
],
|
|
"name": "fitFrameToContent"
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class FrameShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseBoxShapeTool",
|
|
"canonicalReference": "@tldraw/editor!BaseBoxShapeTool:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/frame/FrameShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "FrameShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeTool#onCreate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onCreate: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: null | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onCreate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class FrameShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseBoxShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/frame/FrameShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "FrameShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canBind:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canBind: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canBind",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canDropShapes:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canDropShapes: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", _shapes: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]) => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canDropShapes",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canEdit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEdit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEdit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#canReceiveNewChildrenOfType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canReceiveNewChildrenOfType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", _type: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['type']) => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canReceiveNewChildrenOfType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Geometry2d",
|
|
"canonicalReference": "@tldraw/editor!Geometry2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onDragShapesOut:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDragShapesOut: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(_shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", shapes: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDragShapesOut",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onDragShapesOver:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDragShapesOver: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(frame: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", shapes: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]) => {\n shouldHint: boolean;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDragShapesOver",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<any>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#onResizeEnd:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResizeEnd: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeEndHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeEndHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResizeEnd",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n w: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n h: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n name: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#providesBackgroundForChildren:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "providesBackgroundForChildren(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "providesBackgroundForChildren"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLFrameShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLFrameShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGElement",
|
|
"canonicalReference": "!SVGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGElement",
|
|
"canonicalReference": "!SVGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 10
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!FrameShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"frame\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class GeoShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/geo/GeoShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "GeoShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_3:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing_2:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class GeoShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseBoxShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/geo/GeoShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "GeoShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#canEdit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEdit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEdit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getCanvasSvgDefs:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getCanvasSvgDefs(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilCanvasSvgDef",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilCanvasSvgDef:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getCanvasSvgDefs"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Group2d",
|
|
"canonicalReference": "@tldraw/editor!Group2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#getHandleSnapGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getHandleSnapGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "HandleSnapGeometry",
|
|
"canonicalReference": "@tldraw/editor!HandleSnapGeometry:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getHandleSnapGeometry"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onBeforeCreate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeCreate: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n props: {\n growY: number;\n geo: \"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\";\n labelColor: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n fill: \"none\" | \"pattern\" | \"semi\" | \"solid\";\n dash: \"dashed\" | \"dotted\" | \"draw\" | \"solid\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n w: number;\n h: number;\n text: string;\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeCreate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 12
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onBeforeUpdate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeUpdate: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(prev: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", next: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n props: {\n growY: number;\n geo: \"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\";\n labelColor: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n fill: \"none\" | \"pattern\" | \"semi\" | \"solid\";\n dash: \"dashed\" | \"dotted\" | \"draw\" | \"solid\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n w: number;\n h: number;\n text: string;\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeUpdate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 14
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onDoubleClick:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDoubleClick: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n props: {\n geo: \"check-box\";\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | {\n props: {\n geo: \"rectangle\";\n };\n type: \"geo\";\n x: number;\n y: number;\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDoubleClick",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 20
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onEditEnd:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEditEnd: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnEditEndHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEditEnd",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n geo: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\">;\n labelColor: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"end\" | \"middle\" | \"start\">;\n url: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n w: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n h: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n growY: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n text: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 30
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLGeoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLGeoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGElement",
|
|
"canonicalReference": "!SVGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!GeoShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"geo\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!getEmbedInfo:function(1)",
|
|
"docComment": "/**\n * Tests whether an URL supports embedding and returns the result. If we encounter an error, we return undefined.\n *\n * @param inputUrl - The URL to match\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function getEmbedInfo(inputUrl: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEmbedResult",
|
|
"canonicalReference": "@tldraw/tldraw!~TLEmbedResult:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/embeds/embeds.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "inputUrl",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "getEmbedInfo"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!getSvgAsImage:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function getSvgAsImage(svg: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGElement",
|
|
"canonicalReference": "!SVGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", isSafari: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", options: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n type: 'jpeg' | 'png' | 'webp';\n quality: number;\n scale: number;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Blob",
|
|
"canonicalReference": "!Blob:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/export/export.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 11
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "svg",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "isSafari",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "options",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "getSvgAsImage"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!getSvgAsString:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function getSvgAsString(svg: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGElement",
|
|
"canonicalReference": "!SVGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/export/export.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "svg",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "getSvgAsString"
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class HandTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/tools/HandTool/HandTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "HandTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Dragging",
|
|
"canonicalReference": "@tldraw/tldraw!~Dragging:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_8:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing_7:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool#onDoubleClick:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDoubleClick: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLClickEvent",
|
|
"canonicalReference": "@tldraw/editor!TLClickEvent:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDoubleClick",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool#onQuadrupleClick:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onQuadrupleClick: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLClickEvent",
|
|
"canonicalReference": "@tldraw/editor!TLClickEvent:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onQuadrupleClick",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HandTool#onTripleClick:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onTripleClick: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLClickEvent",
|
|
"canonicalReference": "@tldraw/editor!TLClickEvent:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onTripleClick",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class HighlightShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/highlight/HighlightShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "HighlightShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Drawing",
|
|
"canonicalReference": "@tldraw/tldraw!~Drawing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_2:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeTool#onExit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onExit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onExit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class HighlightShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!ShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/highlight/HighlightShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "HighlightShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#backgroundComponent:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "backgroundComponent(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "backgroundComponent"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Circle2d",
|
|
"canonicalReference": "@tldraw/editor!Circle2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Polygon2d",
|
|
"canonicalReference": "@tldraw/editor!Polygon2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideResizeHandles:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideResizeHandles: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideResizeHandles",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideRotateHandle:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideRotateHandle: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideRotateHandle",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#hideSelectionBoundsFg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsFg: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsFg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n color: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ArrayOfValidator",
|
|
"canonicalReference": "@tldraw/validate!ArrayOfValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n type: \"free\" | \"straight\";\n points: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "VecModel",
|
|
"canonicalReference": "@tldraw/tlschema!VecModel:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[];\n }>;\n isComplete: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n isPen: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 14
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#toBackgroundSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toBackgroundSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGPathElement",
|
|
"canonicalReference": "!SVGPathElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toBackgroundSvg"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHighlightShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGPathElement",
|
|
"canonicalReference": "!SVGPathElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!HighlightShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"highlight\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class ImageShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseBoxShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLImageShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLImageShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/image/ImageShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "ImageShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#canCrop:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canCrop: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canCrop",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLImageShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLImageShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLImageShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLImageShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLImageShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLImageShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#isAspectRatioLocked:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "isAspectRatioLocked: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "isAspectRatioLocked",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#onDoubleClick:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDoubleClick: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLImageShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLImageShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDoubleClick",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#onDoubleClickEdge:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDoubleClickEdge: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnDoubleClickHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnDoubleClickHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLImageShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLImageShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDoubleClickEdge",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n w: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n h: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n playing: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n url: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n assetId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLAssetId",
|
|
"canonicalReference": "@tldraw/tlschema!TLAssetId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null>;\n crop: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n topLeft: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "VecModel",
|
|
"canonicalReference": "@tldraw/tlschema!VecModel:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n bottomRight: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "VecModel",
|
|
"canonicalReference": "@tldraw/tlschema!VecModel:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n } | null>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 20
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#shouldGetDataURI:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shouldGetDataURI(src: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"\" | boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "src",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "shouldGetDataURI"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLImageShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLImageShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGGElement",
|
|
"canonicalReference": "!SVGGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 7
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ImageShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"image\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!isGifAnimated:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function isGifAnimated(file: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Blob",
|
|
"canonicalReference": "!Blob:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/assets/assets.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "file",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "isGifAnimated"
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!LaserTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class LaserTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/tools/LaserTool/LaserTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "LaserTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LaserTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_9:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Lasering",
|
|
"canonicalReference": "@tldraw/tldraw!~Lasering:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LaserTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LaserTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LaserTool#onEnter:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEnter: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEnter",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class LineShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/line/LineShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "LineShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_4:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing_3:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class LineShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!ShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/line/LineShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "LineShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "CubicSpline2d",
|
|
"canonicalReference": "@tldraw/editor!CubicSpline2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Polyline2d",
|
|
"canonicalReference": "@tldraw/editor!Polyline2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#getHandles:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getHandles(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHandle",
|
|
"canonicalReference": "@tldraw/tlschema!TLHandle:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getHandles"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#getHandleSnapGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getHandleSnapGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "HandleSnapGeometry",
|
|
"canonicalReference": "@tldraw/editor!HandleSnapGeometry:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getHandleSnapGeometry"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideResizeHandles:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideResizeHandles: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideResizeHandles",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideRotateHandle:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideRotateHandle: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideRotateHandle",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideSelectionBoundsBg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsBg: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsBg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#hideSelectionBoundsFg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsFg: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsFg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#onHandleDrag:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onHandleDrag: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnHandleDragHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnHandleDragHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onHandleDrag",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n color: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n dash: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n spline: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"cubic\" | \"line\">;\n points: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "DictValidator",
|
|
"canonicalReference": "@tldraw/validate!DictValidator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, {\n id: string;\n x: number;\n y: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n }>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 14
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLLineShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLLineShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGGElement",
|
|
"canonicalReference": "!SVGGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!LineShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"line\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class NoteShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/note/NoteShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "NoteShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_5:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing_4:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class NoteShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!ShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/note/NoteShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "NoteShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#canEdit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEdit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEdit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Rectangle2d",
|
|
"canonicalReference": "@tldraw/editor!Rectangle2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#getHeight:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getHeight(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "number"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getHeight"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#hideResizeHandles:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideResizeHandles: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideResizeHandles",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#hideSelectionBoundsFg:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideSelectionBoundsFg: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "hideSelectionBoundsFg",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onBeforeCreate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeCreate: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(next: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n props: {\n growY: number;\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n text: string;\n };\n type: \"note\";\n x: number;\n y: number;\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeCreate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 12
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onBeforeUpdate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeUpdate: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(prev: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", next: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n props: {\n growY: number;\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n verticalAlign: \"end\" | \"middle\" | \"start\";\n url: string;\n text: string;\n };\n type: \"note\";\n x: number;\n y: number;\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeUpdate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 14
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#onEditEnd:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEditEnd: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnEditEndHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEditEnd",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n color: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"end\" | \"middle\" | \"start\">;\n growY: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n url: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n text: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 18
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLNoteShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLNoteShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGGElement",
|
|
"canonicalReference": "!SVGGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!NoteShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"note\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!OfflineIndicator:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function OfflineIndicator(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/OfflineIndicator/OfflineIndicator.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "OfflineIndicator"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!parseTldrawJsonFile:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function parseTldrawJsonFile({ json, schema, }: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n schema: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLSchema",
|
|
"canonicalReference": "@tldraw/tlschema!TLSchema:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n json: string;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Result",
|
|
"canonicalReference": "@tldraw/utils!Result:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLStore",
|
|
"canonicalReference": "@tldraw/tlschema!TLStore:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawFileParseError",
|
|
"canonicalReference": "@tldraw/tldraw!~TldrawFileParseError:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/tldr/file.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 11
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ json, schema, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "parseTldrawJsonFile"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!preloadFont:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function preloadFont(id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", font: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTypeFace",
|
|
"canonicalReference": "@tldraw/tldraw!~TLTypeFace:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "FontFace",
|
|
"canonicalReference": "!FontFace:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/assets/preload-font.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 9
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "id",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "font",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "preloadFont"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!removeFrame:function(1)",
|
|
"docComment": "/**\n * Remove a frame.\n *\n * @param editor - tlraw editor instance.\n *\n * @param ids - Ids of the frames you wish to remove.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function removeFrame(editor: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Editor",
|
|
"canonicalReference": "@tldraw/editor!Editor:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ids: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/frames/frames.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 6,
|
|
"endIndex": 7
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "editor",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ids",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "removeFrame"
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class SelectTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/tools/SelectTool/SelectTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "SelectTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Brushing",
|
|
"canonicalReference": "@tldraw/tldraw!~Brushing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Crop",
|
|
"canonicalReference": "@tldraw/tldraw!~Crop:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Cropping",
|
|
"canonicalReference": "@tldraw/tldraw!~Cropping:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "DraggingHandle",
|
|
"canonicalReference": "@tldraw/tldraw!~DraggingHandle:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EditingShape",
|
|
"canonicalReference": "@tldraw/tldraw!~EditingShape:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_11:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingArrowLabel",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingArrowLabel:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingCanvas",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingCanvas:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingCropHandle",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingCropHandle:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingHandle",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingHandle:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingResizeHandle",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingResizeHandle:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingRotateHandle",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingRotateHandle:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingSelection",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingSelection:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "PointingShape",
|
|
"canonicalReference": "@tldraw/tldraw!~PointingShape:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Resizing",
|
|
"canonicalReference": "@tldraw/tldraw!~Resizing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Rotating",
|
|
"canonicalReference": "@tldraw/tldraw!~Rotating:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ScribbleBrushing",
|
|
"canonicalReference": "@tldraw/tldraw!~ScribbleBrushing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Translating",
|
|
"canonicalReference": "@tldraw/tldraw!~Translating:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 38
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool#onEnter:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEnter: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEnter",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool#onExit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onExit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onExit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!SelectTool#reactor:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "reactor: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(() => void) | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "reactor",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!serializeTldrawJson:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function serializeTldrawJson(store: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLStore",
|
|
"canonicalReference": "@tldraw/tlschema!TLStore:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/tldr/file.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "store",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "serializeTldrawJson"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!serializeTldrawJsonBlob:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function serializeTldrawJsonBlob(store: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLStore",
|
|
"canonicalReference": "@tldraw/tlschema!TLStore:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Blob",
|
|
"canonicalReference": "!Blob:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/tldr/file.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 7
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "store",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "serializeTldrawJsonBlob"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!setDefaultEditorAssetUrls:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function setDefaultEditorAssetUrls(assetUrls: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEditorAssetUrls",
|
|
"canonicalReference": "@tldraw/tldraw!~TLEditorAssetUrls:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/static-assets/assetUrls.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "assetUrls",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "setDefaultEditorAssetUrls"
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class TextShapeTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/text/TextShapeTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "TextShapeTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_6:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing_5:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeTool#shapeType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shapeType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "shapeType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class TextShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!ShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/text/TextShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "TextShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#canEdit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEdit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEdit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#getGeometry:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getGeometry(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Rectangle2d",
|
|
"canonicalReference": "@tldraw/editor!Rectangle2d:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getGeometry"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#getMinDimensions:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getMinDimensions(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n height: number;\n width: number;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getMinDimensions"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#isAspectRatioLocked:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "isAspectRatioLocked: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeUtilFlag",
|
|
"canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "isAspectRatioLocked",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#onBeforeCreate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeCreate: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n x: number;\n y: number;\n type: \"text\";\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n props: {\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n w: number;\n text: string;\n scale: number;\n autoSize: boolean;\n };\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeCreate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 12
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#onBeforeUpdate:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBeforeUpdate: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(prev: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", next: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n x: number;\n y: number;\n props: {\n w: number;\n color: \"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\";\n size: \"l\" | \"m\" | \"s\" | \"xl\";\n font: \"draw\" | \"mono\" | \"sans\" | \"serif\";\n align: \"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\";\n text: string;\n scale: number;\n autoSize: boolean;\n };\n type: \"text\";\n rotation: number;\n index: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "IndexKey",
|
|
"canonicalReference": "@tldraw/utils!IndexKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n parentId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLParentId",
|
|
"canonicalReference": "@tldraw/tlschema!TLParentId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n isLocked: boolean;\n opacity: number;\n meta: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JsonObject",
|
|
"canonicalReference": "@tldraw/utils!JsonObject:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n typeName: \"shape\";\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onBeforeUpdate",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 14
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#onDoubleClickEdge:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onDoubleClickEdge: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => {\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n type: \"text\";\n props: {\n autoSize: boolean;\n scale?: undefined;\n };\n } | {\n id: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n type: \"text\";\n props: {\n scale: number;\n autoSize?: undefined;\n };\n } | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onDoubleClickEdge",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#onEditEnd:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEditEnd: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnEditEndHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEditEnd",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#onResize:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onResize: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLOnResizeHandler",
|
|
"canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onResize",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n color: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EnumStyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!EnumStyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n w: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n text: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n scale: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n autoSize: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 18
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLTextShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLTextShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", ctx: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SvgExportContext",
|
|
"canonicalReference": "@tldraw/editor!SvgExportContext:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGGElement",
|
|
"canonicalReference": "!SVGGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "ctx",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!TextShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"text\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLComponents:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLComponents = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Expand",
|
|
"canonicalReference": "@tldraw/utils!Expand:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLEditorComponents",
|
|
"canonicalReference": "@tldraw/editor!TLEditorComponents:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " & "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiComponents",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiComponents:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/Tldraw.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLComponents",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 7
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TLDRAW_FILE_EXTENSION:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TLDRAW_FILE_EXTENSION: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\".tldr\""
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/tldr/file.ts",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TLDRAW_FILE_EXTENSION",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!Tldraw:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function Tldraw(props: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawProps",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/Tldraw.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "props",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "Tldraw"
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawFile:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TldrawFile "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/tldr/file.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TldrawFile",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawFile#records:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "records: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "UnknownRecord",
|
|
"canonicalReference": "@tldraw/store!UnknownRecord:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "records",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawFile#schema:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "schema: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SerializedSchema",
|
|
"canonicalReference": "@tldraw/store!SerializedSchema:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "schema",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawFile#tldrawFileFormatVersion:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "tldrawFileFormatVersion: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "number"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "tldrawFileFormatVersion",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawHandles:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawHandles({ children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHandlesProps",
|
|
"canonicalReference": "@tldraw/editor!TLHandlesProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/canvas/TldrawHandles.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawHandles"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawHoveredShapeIndicator:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawHoveredShapeIndicator({ shapeId }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLHoveredShapeIndicatorProps",
|
|
"canonicalReference": "@tldraw/editor!TLHoveredShapeIndicatorProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/canvas/TldrawHoveredShapeIndicator.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ shapeId }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawHoveredShapeIndicator"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawImage:var",
|
|
"docComment": "/**\n * A renderered SVG image of a Tldraw snapshot.\n *\n * @example\n * ```tsx\n * <TldrawImage snapshot={snapshot} />\n * \tsnapshot={snapshot}\n * \tpageId={pageId}\n * \tbackground={false}\n * darkMode={true}\n * bounds={new Box(0,0,600,400)}\n * scale={1}\n * />\n * ```\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawImage: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n snapshot: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StoreSnapshot",
|
|
"canonicalReference": "@tldraw/store!StoreSnapshot:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLRecord",
|
|
"canonicalReference": "@tldraw/tlschema!TLRecord:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">;\n format?: \"png\" | \"svg\" | undefined;\n pageId?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLPageId",
|
|
"canonicalReference": "@tldraw/tlschema!TLPageId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | undefined;\n shapeUtils?: readonly "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLAnyShapeUtilConstructor",
|
|
"canonicalReference": "@tldraw/editor!TLAnyShapeUtilConstructor:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[] | undefined;\n bounds?: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Box",
|
|
"canonicalReference": "@tldraw/editor!Box:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | undefined;\n scale?: number | undefined;\n background?: boolean | undefined;\n padding?: number | undefined;\n darkMode?: boolean | undefined;\n preserveAspectRatio?: string | undefined;\n}>"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/TldrawImage.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TldrawImage",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 14
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawImageProps:type",
|
|
"docComment": "/**\n * Props for the {@link @tldraw/tldraw#TldrawImage} component.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TldrawImageProps = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Expand",
|
|
"canonicalReference": "@tldraw/utils!Expand:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n snapshot: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StoreSnapshot",
|
|
"canonicalReference": "@tldraw/store!StoreSnapshot:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLRecord",
|
|
"canonicalReference": "@tldraw/tlschema!TLRecord:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">;\n format?: 'png' | 'svg';\n pageId?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLPageId",
|
|
"canonicalReference": "@tldraw/tlschema!TLPageId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n shapeUtils?: readonly "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLAnyShapeUtilConstructor",
|
|
"canonicalReference": "@tldraw/editor!TLAnyShapeUtilConstructor:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[];\n} & "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLSvgOptions",
|
|
"canonicalReference": "@tldraw/editor!TLSvgOptions:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/TldrawImage.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TldrawImageProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 15
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TldrawProps = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Expand",
|
|
"canonicalReference": "@tldraw/utils!Expand:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<("
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Omit",
|
|
"canonicalReference": "!Omit:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawUiProps",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", 'components'> & "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Omit",
|
|
"canonicalReference": "!Omit:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawEditorBaseProps",
|
|
"canonicalReference": "@tldraw/editor!TldrawEditorBaseProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", 'components'> & {\n components?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLComponents",
|
|
"canonicalReference": "@tldraw/tldraw!TLComponents:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n}) & "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLExternalContentProps",
|
|
"canonicalReference": "@tldraw/tldraw!~TLExternalContentProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> & ({\n store: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLStore",
|
|
"canonicalReference": "@tldraw/tlschema!TLStore:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLStoreWithStatus",
|
|
"canonicalReference": "@tldraw/editor!TLStoreWithStatus:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n} | {\n store?: undefined;\n persistenceKey?: string;\n sessionId?: string;\n defaultName?: string;\n snapshot?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StoreSnapshot",
|
|
"canonicalReference": "@tldraw/store!StoreSnapshot:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLRecord",
|
|
"canonicalReference": "@tldraw/tlschema!TLRecord:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">;\n})>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/Tldraw.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TldrawProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 25
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawScribble:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawScribble({ scribble, zoom, color, opacity, className }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLScribbleProps",
|
|
"canonicalReference": "@tldraw/editor!TLScribbleProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/canvas/TldrawScribble.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ scribble, zoom, color, opacity, className }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawScribble"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawSelectionBackground:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawSelectionBackground: ({ bounds, rotation }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLSelectionBackgroundProps",
|
|
"canonicalReference": "@tldraw/editor!TLSelectionBackgroundProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/canvas/TldrawSelectionBackground.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ bounds, rotation }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawSelectionBackground"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawSelectionForeground:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawSelectionForeground: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "MemoExoticComponent",
|
|
"canonicalReference": "@types/react!React.MemoExoticComponent:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<({ bounds, rotation, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLSelectionForegroundProps",
|
|
"canonicalReference": "@tldraw/editor!TLSelectionForegroundProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null>"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/canvas/TldrawSelectionForeground.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TldrawSelectionForeground",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUi:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawUi: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawUiProps",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUi.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUi",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps:interface",
|
|
"docComment": "/**\n * Base props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TldrawUiBaseProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUi.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUiBaseProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#assetUrls:member",
|
|
"docComment": "/**\n * Asset URL override.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "assetUrls?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiAssetUrlOverrides",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiAssetUrlOverrides:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "assetUrls",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#children:member",
|
|
"docComment": "/**\n * The component's children.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ReactNode",
|
|
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#components:member",
|
|
"docComment": "/**\n * Overrides for the UI components.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "components?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiComponents",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiComponents:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "components",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#hideUi:member",
|
|
"docComment": "/**\n * Whether to hide the user interface and only display the canvas.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "hideUi?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "hideUi",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps#renderDebugMenuItems:member",
|
|
"docComment": "/**\n * Additional items to add to the debug menu (will be deprecated)\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "renderDebugMenuItems?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.ReactNode",
|
|
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "renderDebugMenuItems",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiButton:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawUiButton: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.ForwardRefExoticComponent",
|
|
"canonicalReference": "@types/react!React.ForwardRefExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiButtonProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " & "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.RefAttributes",
|
|
"canonicalReference": "@types/react!React.RefAttributes:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "HTMLButtonElement",
|
|
"canonicalReference": "!HTMLButtonElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">>"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButton.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUiButton",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 9
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiButtonCheck:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiButtonCheck({ checked }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiButtonCheckProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonCheckProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButtonCheck.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ checked }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiButtonCheck"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiButtonIcon:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiButtonIcon({ icon, small, invertIcon }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiButtonIconProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonIconProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButtonIcon.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ icon, small, invertIcon }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiButtonIcon"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiButtonLabel:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiButtonLabel({ children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiButtonLabelProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonLabelProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButtonLabel.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiButtonLabel"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiButtonPicker:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawUiButtonPicker: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "_TldrawUiButtonPicker",
|
|
"canonicalReference": "@tldraw/tldraw!~_TldrawUiButtonPicker:function"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiButtonPicker.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUiButtonPicker",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiComponentsProvider:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiComponentsProvider({ overrides, children, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiComponentsProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiComponentsProviderProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/components.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ overrides, children, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiComponentsProvider"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProvider:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiContextProvider({ overrides, components, assetUrls, onUiEvent, forceMobile, children, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawUiContextProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/TldrawUiContextProvider.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ overrides, components, assetUrls, onUiEvent, forceMobile, children, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiContextProvider"
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface",
|
|
"docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TldrawUiContextProviderProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/TldrawUiContextProvider.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUiContextProviderProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#assetUrls:member",
|
|
"docComment": "/**\n * Urls for where to find fonts and other assets for the UI.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "assetUrls?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "RecursivePartial",
|
|
"canonicalReference": "@tldraw/utils!RecursivePartial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiAssetUrls",
|
|
"canonicalReference": "@tldraw/tldraw!~TLUiAssetUrls:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "assetUrls",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#children:member",
|
|
"docComment": "/**\n * The component's children.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#components:member",
|
|
"docComment": "/**\n * Overrides for the UI components.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "components?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiComponents",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiComponents:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "components",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#forceMobile:member",
|
|
"docComment": "/**\n * Whether to always should the mobile breakpoints.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "forceMobile?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "forceMobile",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#onUiEvent:member",
|
|
"docComment": "/**\n * Callback for when an event occurs in the UI.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onUiEvent?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventHandler",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onUiEvent",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps#overrides:member",
|
|
"docComment": "/**\n * Overrides for the UI.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "overrides?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiOverrides",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiOverrides:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiOverrides",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiOverrides:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "overrides",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDialogBody:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDialogBody({ className, children, style }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialogBodyProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogBodyProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ className, children, style }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDialogBody"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDialogCloseButton:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDialogCloseButton(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "TldrawUiDialogCloseButton"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDialogFooter:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDialogFooter({ className, children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialogFooterProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogFooterProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ className, children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDialogFooter"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDialogHeader:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDialogHeader({ className, children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialogHeaderProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogHeaderProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ className, children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDialogHeader"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDialogTitle:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDialogTitle({ className, children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialogTitleProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogTitleProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ className, children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDialogTitle"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuCheckboxItem:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuCheckboxItem({ children, onSelect, ...rest }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuCheckboxItemProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children, onSelect, ...rest }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuCheckboxItem"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuContent({ side, align, sideOffset, alignOffset, children, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuContentProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuContentProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ side, align, sideOffset, alignOffset, children, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuContent"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuGroup:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuGroup({ children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuGroupProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuGroupProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuGroup"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuIndicator:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuIndicator(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "TldrawUiDropdownMenuIndicator"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuItem:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuItem({ noClose, children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuItemProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ noClose, children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuItem"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuRoot:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuRoot({ id, children, modal, debugOpen, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuRootProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuRootProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ id, children, modal, debugOpen, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuRoot"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuSub:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuSub({ id, children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuSubProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ id, children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuSub"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuSubTrigger:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuSubTrigger({ label, title, disabled, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuSubTriggerProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubTriggerProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ label, title, disabled, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuSubTrigger"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiDropdownMenuTrigger:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiDropdownMenuTrigger({ children, ...rest }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDropdownMenuTriggerProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuTriggerProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children, ...rest }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiDropdownMenuTrigger"
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiIcon:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawUiIcon: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NamedExoticComponent",
|
|
"canonicalReference": "@types/react!React.NamedExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiIcon.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUiIcon",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Variable",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiInput:var",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "TldrawUiInput: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.ForwardRefExoticComponent",
|
|
"canonicalReference": "@types/react!React.ForwardRefExoticComponent:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiInputProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " & "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.RefAttributes",
|
|
"canonicalReference": "@types/react!React.RefAttributes:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "HTMLInputElement",
|
|
"canonicalReference": "!HTMLInputElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">>"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiInput.tsx",
|
|
"isReadonly": true,
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUiInput",
|
|
"variableTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 9
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiKbd:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiKbd({ children, visibleOnMobileLayout }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiKbdProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiKbdProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiKbd.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children, visibleOnMobileLayout }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiKbd"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiMenuCheckboxItem:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiMenuCheckboxItem<TranslationKey extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", IconType extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">({ id, kbd, label, readonlyOk, onSelect, disabled, checked, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiMenuCheckboxItemProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuCheckboxItemProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<TranslationKey, IconType>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 12,
|
|
"endIndex": 15
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ id, kbd, label, readonlyOk, onSelect, disabled, checked, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 9,
|
|
"endIndex": 11
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "TranslationKey",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"typeParameterName": "IconType",
|
|
"constraintTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
}
|
|
}
|
|
],
|
|
"name": "TldrawUiMenuCheckboxItem"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiMenuContextProvider:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiMenuContextProvider({ type, sourceId, children, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiMenuContextProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuContextProviderProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuContext.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ type, sourceId, children, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiMenuContextProvider"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiMenuGroup:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiMenuGroup({ id, label, children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiMenuGroupProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuGroupProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuGroup.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ id, label, children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiMenuGroup"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiMenuItem:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiMenuItem<TranslationKey extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", IconType extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">({ disabled, spinner, readonlyOk, id, kbd, label, icon, onSelect, noClose, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiMenuItemProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuItemProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<TranslationKey, IconType>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuItem.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 12,
|
|
"endIndex": 15
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ disabled, spinner, readonlyOk, id, kbd, label, icon, onSelect, noClose, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 9,
|
|
"endIndex": 11
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "TranslationKey",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"typeParameterName": "IconType",
|
|
"constraintTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
}
|
|
}
|
|
],
|
|
"name": "TldrawUiMenuItem"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiMenuSubmenu:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiMenuSubmenu<Translation extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">({ id, disabled, label, size, children, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiMenuSubmenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuSubmenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<Translation>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuSubmenu.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 8,
|
|
"endIndex": 9
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ id, disabled, label, size, children, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 7
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "Translation",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
}
|
|
],
|
|
"name": "TldrawUiMenuSubmenu"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiPopover:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiPopover({ id, children, onOpenChange, open }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiPopoverProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiPopoverProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiPopover.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ id, children, onOpenChange, open }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiPopover"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiPopoverContent:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiPopoverContent({ side, children, align, sideOffset, alignOffset, }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiPopoverContentProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiPopoverContentProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiPopover.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ side, children, align, sideOffset, alignOffset, }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiPopoverContent"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiPopoverTrigger:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function TldrawUiPopoverTrigger({ children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiPopoverTriggerProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiPopoverTriggerProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiPopover.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "TldrawUiPopoverTrigger"
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiProps:type",
|
|
"docComment": "/**\n * Props for the {@link @tldraw/tldraw#Tldraw} and {@link TldrawUi} components.\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TldrawUiProps = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawUiBaseProps",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiBaseProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " & "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawUiContextProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!TldrawUiContextProviderProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/TldrawUi.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TldrawUiProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiActionItem<TransationKey extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", IconType extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/actions.tsx",
|
|
"releaseTag": "Public",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "TransationKey",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"typeParameterName": "IconType",
|
|
"constraintTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
}
|
|
}
|
|
],
|
|
"name": "TLUiActionItem",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#checkbox:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "checkbox?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "checkbox",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#icon:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "icon?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "IconType"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "icon",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#kbd:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "kbd?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "kbd",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#label:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "label?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n [key: string]: TransationKey;\n } | TransationKey"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "label",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#onSelect:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onSelect: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<void> | void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onSelect",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#readonlyOk:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "readonlyOk?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "readonlyOk",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem#title:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "title?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "title",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionsContextType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiActionsContextType = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Record",
|
|
"canonicalReference": "!Record:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiActionItem",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/actions.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiActionsContextType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionsMenuProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiActionsMenuProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/ActionsMenu/DefaultActionsMenu.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiActionsMenuProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiAssetUrlOverrides:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiAssetUrlOverrides = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "RecursivePartial",
|
|
"canonicalReference": "@tldraw/utils!RecursivePartial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiAssetUrls",
|
|
"canonicalReference": "@tldraw/tldraw!~TLUiAssetUrls:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/assetUrls.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiAssetUrlOverrides",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonCheckProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiButtonCheckProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n checked: boolean;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButtonCheck.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiButtonCheckProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonIconProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiButtonIconProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n icon: string;\n small?: boolean;\n invertIcon?: boolean;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButtonIcon.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiButtonIconProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonLabelProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiButtonLabelProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButtonLabel.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiButtonLabelProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiButtonPickerProps<T extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiButtonPicker.tsx",
|
|
"releaseTag": "Public",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "T",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 0,
|
|
"endIndex": 0
|
|
}
|
|
}
|
|
],
|
|
"name": "TLUiButtonPickerProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#items:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "items: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StyleValuesForUi",
|
|
"canonicalReference": "@tldraw/tldraw!~StyleValuesForUi:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<T>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "items",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#onValueChange:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onValueChange: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(style: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!StyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<T>, value: T, squashing: boolean) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onValueChange",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#style:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "style: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!StyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<T>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "style",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#title:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "title: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "title",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#uiType:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "uiType: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "uiType",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonPickerProps#value:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "value: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SharedStyle",
|
|
"canonicalReference": "@tldraw/editor!SharedStyle:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<T>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "value",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiButtonProps extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.HTMLAttributes",
|
|
"canonicalReference": "@types/react!React.HTMLAttributes:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "HTMLButtonElement",
|
|
"canonicalReference": "!HTMLButtonElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/Button/TldrawUiButton.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiButtonProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonProps#disabled:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "disabled?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "disabled",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiButtonProps#type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "'danger' | 'help' | 'icon' | 'low' | 'menu' | 'normal' | 'primary' | 'tool'"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": [
|
|
{
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiComponents:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiComponents = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n [K in keyof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseTLUiComponents",
|
|
"canonicalReference": "@tldraw/tldraw!~BaseTLUiComponents:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "]: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseTLUiComponents",
|
|
"canonicalReference": "@tldraw/tldraw!~BaseTLUiComponents:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[K] | null;\n}>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/components.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiComponents",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 7
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiComponentsProviderProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiComponentsProviderProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n overrides?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiComponents",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiComponents:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/components.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiComponentsProviderProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiContextMenuProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/ContextMenu/DefaultContextMenu.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiContextMenuProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/ContextMenu/DefaultContextMenu.tsx",
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDebugMenuProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDebugMenuProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/DebugMenu/DefaultDebugMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDebugMenuProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiDialog "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/dialogs.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDialog",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog#component:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialogProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "component",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog#id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog#onClose:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onClose?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onClose",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogBodyProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDialogBodyProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n className?: string;\n children: any;\n style?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.CSSProperties",
|
|
"canonicalReference": "@types/react!React.CSSProperties:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDialogBodyProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogFooterProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDialogFooterProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n className?: string;\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDialogFooterProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogHeaderProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDialogHeaderProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n className?: string;\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/primitives/TldrawUiDialog.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDialogHeaderProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiDialogProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/dialogs.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDialogProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogProps#onClose:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onClose: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onClose",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogsContextType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDialogsContextType = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n addDialog: (dialog: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Omit",
|
|
"canonicalReference": "!Omit:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialog",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", 'id'> & {\n id?: string;\n }) => string;\n removeDialog: (id: string) => string;\n updateDialog: (id: string, newDialogData: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialog",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">) => string;\n clearDialogs: () => void;\n dialogs: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialog",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[];\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/dialogs.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDialogsContextType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 12
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogTitleProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDialogTitleProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n className?: string;\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDialog.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDialogTitleProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiDropdownMenuCheckboxItemProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuCheckboxItemProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#checked:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "checked?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "checked",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#disabled:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "disabled?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "disabled",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#onSelect:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onSelect?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(e: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Event",
|
|
"canonicalReference": "!Event:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onSelect",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuCheckboxItemProps#title:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "title: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "title",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuContentProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDropdownMenuContentProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id?: string;\n children: any;\n alignOffset?: number;\n sideOffset?: number;\n align?: 'center' | 'end' | 'start';\n side?: 'bottom' | 'left' | 'right' | 'top';\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuContentProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuGroupProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDropdownMenuGroupProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuGroupProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiDropdownMenuItemProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuItemProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuItemProps#noClose:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "noClose?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "noClose",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuRootProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDropdownMenuRootProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n children: any;\n modal?: boolean;\n debugOpen?: boolean;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuRootProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDropdownMenuSubProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuSubProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuSubTriggerProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiDropdownMenuSubTriggerProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n label: string;\n id?: string;\n title?: string;\n disabled?: boolean;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuSubTriggerProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuTriggerProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiDropdownMenuTriggerProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiDropdownMenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiDropdownMenuTriggerProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDropdownMenuTriggerProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventContextType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiEventContextType = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventHandler",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<keyof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventMap",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/events.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiEventContextType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventHandler:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiEventHandler<T extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "keyof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventMap",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "keyof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventMap",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(name: T, data: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Join",
|
|
"canonicalReference": "@tldraw/tldraw!~Join:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n}, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventMap",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[T]>) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/events.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiEventHandler",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "T",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 4,
|
|
"endIndex": 6
|
|
}
|
|
}
|
|
],
|
|
"typeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 14
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiEventMap "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/events.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiEventMap",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"align-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'align-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n operation: 'bottom' | 'center-horizontal' | 'center-vertical' | 'left' | 'right' | 'top';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"align-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"change-language\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'change-language': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n locale: string;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"change-language\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"close-menu\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'close-menu': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"close-menu\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"convert-to-bookmark\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'convert-to-bookmark': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"convert-to-bookmark\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"convert-to-embed\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'convert-to-embed': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"convert-to-embed\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"copy-as\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'copy-as': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n format: 'json' | 'png' | 'svg';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"copy-as\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"create-new-project\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'create-new-project': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"create-new-project\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"delete-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'delete-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"delete-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"distribute-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'distribute-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n operation: 'horizontal' | 'vertical';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"distribute-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"duplicate-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'duplicate-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"duplicate-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"edit-link\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'edit-link': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"edit-link\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"exit-pen-mode\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'exit-pen-mode': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"exit-pen-mode\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"export-as\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'export-as': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n format: 'json' | 'png' | 'svg';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"export-as\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"fit-frame-to-content\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'fit-frame-to-content': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"fit-frame-to-content\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"flip-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'flip-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n operation: 'horizontal' | 'vertical';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"flip-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"group-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'group-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"group-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"insert-embed\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'insert-embed': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"insert-embed\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"insert-media\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'insert-media': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"insert-media\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"move-to-page\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'move-to-page': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"move-to-page\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"new-page\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'new-page': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"new-page\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-cursor-chat\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'open-cursor-chat': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"open-cursor-chat\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-embed-link\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'open-embed-link': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"open-embed-link\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-file\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'open-file': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"open-file\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"open-menu\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'open-menu': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"open-menu\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"pack-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'pack-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"pack-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"remove-frame\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'remove-frame': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"remove-frame\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"reorder-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'reorder-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n operation: 'backward' | 'forward' | 'toBack' | 'toFront';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"reorder-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"reset-zoom\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'reset-zoom': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"reset-zoom\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"rotate-ccw\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'rotate-ccw': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"rotate-ccw\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"rotate-cw\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'rotate-cw': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"rotate-cw\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"save-project-to-file\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'save-project-to-file': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"save-project-to-file\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"select-all-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'select-all-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"select-all-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"select-none-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'select-none-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"select-none-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"select-tool\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'select-tool': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"select-tool\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"set-style\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'set-style': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n value: number | string;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"set-style\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"stack-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'stack-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n operation: 'horizontal' | 'vertical';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"stack-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"stop-following\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'stop-following': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"stop-following\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"stretch-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'stretch-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n operation: 'horizontal' | 'vertical';\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"stretch-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-auto-size\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-auto-size': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-auto-size\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-dark-mode\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-dark-mode': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-dark-mode\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-debug-mode\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-debug-mode': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-debug-mode\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-edge-scrolling\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-edge-scrolling': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-edge-scrolling\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-focus-mode\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-focus-mode': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-focus-mode\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-grid-mode\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-grid-mode': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-grid-mode\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-lock\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-lock': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-lock\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-reduce-motion\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-reduce-motion': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-reduce-motion\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-snap-mode\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-snap-mode': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-snap-mode\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-tool-lock\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-tool-lock': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-tool-lock\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"toggle-transparent\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'toggle-transparent': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"toggle-transparent\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"ungroup-shapes\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'ungroup-shapes': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"ungroup-shapes\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"unlock-all\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'unlock-all': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"unlock-all\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-in\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'zoom-in': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"zoom-in\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-into-view\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'zoom-into-view': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"zoom-into-view\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-out\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'zoom-out': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"zoom-out\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-to-content\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'zoom-to-content': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"zoom-to-content\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-to-fit\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'zoom-to-fit': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"zoom-to-fit\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-to-selection\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'zoom-to-selection': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"zoom-to-selection\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#\"zoom-tool\":member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "'zoom-tool': "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "\"zoom-tool\"",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#copy:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "copy: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "copy",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#cut:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "cut: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "cut",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#paste:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "paste: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "paste",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#print:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "print: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "print",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#redo:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "redo: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "redo",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventMap#undo:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "undo: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "undo",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiEventSource = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "'actions-menu' | 'context-menu' | 'debug-panel' | 'dialog' | 'document-name' | 'export-menu' | 'help-menu' | 'helper-buttons' | 'kbd' | 'menu' | 'navigation-zone' | 'page-menu' | 'people-menu' | 'quick-actions' | 'share-menu' | 'style-panel' | 'toolbar' | 'unknown' | 'zoom-menu'"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/events.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiEventSource",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiHelperButtonsProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiHelperButtonsProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/HelperButtons/DefaultHelperButtons.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiHelperButtonsProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiHelpMenuProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiHelpMenuProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/HelpMenu/DefaultHelpMenu.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiHelpMenuProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiIconProps extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.HTMLProps",
|
|
"canonicalReference": "@types/react!React.HTMLProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "HTMLDivElement",
|
|
"canonicalReference": "!HTMLDivElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiIcon.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiIconProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps#color:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "color?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "color",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps#crossOrigin:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "crossOrigin?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "'anonymous' | 'use-credentials'"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "crossOrigin",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps#icon:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "icon: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Exclude",
|
|
"canonicalReference": "!Exclude:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "icon",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps#invertIcon:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "invertIcon?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "invertIcon",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconProps#small:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "small?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "small",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": [
|
|
{
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiIconType = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "'align-bottom-center' | 'align-bottom-left' | 'align-bottom-right' | 'align-bottom' | 'align-center-center' | 'align-center-horizontal' | 'align-center-left' | 'align-center-right' | 'align-center-vertical' | 'align-left' | 'align-right' | 'align-top-center' | 'align-top-left' | 'align-top-right' | 'align-top' | 'arrow-left' | 'arrowhead-arrow' | 'arrowhead-bar' | 'arrowhead-diamond' | 'arrowhead-dot' | 'arrowhead-none' | 'arrowhead-square' | 'arrowhead-triangle-inverted' | 'arrowhead-triangle' | 'aspect-ratio' | 'avatar' | 'blob' | 'bring-forward' | 'bring-to-front' | 'check' | 'checkbox-checked' | 'checkbox-empty' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-ne' | 'chevrons-sw' | 'clipboard-copied' | 'clipboard-copy' | 'code' | 'collab' | 'color' | 'comment' | 'cross-2' | 'cross' | 'dash-dashed' | 'dash-dotted' | 'dash-draw' | 'dash-solid' | 'discord' | 'distribute-horizontal' | 'distribute-vertical' | 'dot' | 'dots-horizontal' | 'dots-vertical' | 'drag-handle-dots' | 'duplicate' | 'edit' | 'external-link' | 'file' | 'fill-none' | 'fill-pattern' | 'fill-semi' | 'fill-solid' | 'follow' | 'following' | 'font-draw' | 'font-mono' | 'font-sans' | 'font-serif' | 'geo-arrow-down' | 'geo-arrow-left' | 'geo-arrow-right' | 'geo-arrow-up' | 'geo-check-box' | 'geo-cloud' | 'geo-diamond' | 'geo-ellipse' | 'geo-hexagon' | 'geo-octagon' | 'geo-oval' | 'geo-pentagon' | 'geo-rectangle' | 'geo-rhombus-2' | 'geo-rhombus' | 'geo-star' | 'geo-trapezoid' | 'geo-triangle' | 'geo-x-box' | 'github' | 'group' | 'hidden' | 'image' | 'info-circle' | 'leading' | 'link' | 'lock-small' | 'lock' | 'menu' | 'minus' | 'mixed' | 'pack' | 'page' | 'plus' | 'question-mark-circle' | 'question-mark' | 'redo' | 'reset-zoom' | 'rotate-ccw' | 'rotate-cw' | 'ruler' | 'search' | 'send-backward' | 'send-to-back' | 'settings-horizontal' | 'settings-vertical-1' | 'settings-vertical' | 'share-1' | 'share-2' | 'size-extra-large' | 'size-large' | 'size-medium' | 'size-small' | 'spline-cubic' | 'spline-line' | 'stack-horizontal' | 'stack-vertical' | 'status-offline' | 'status-online' | 'stretch-horizontal' | 'stretch-vertical' | 'text-align-center' | 'text-align-justify' | 'text-align-left' | 'text-align-right' | 'tool-arrow' | 'tool-embed' | 'tool-eraser' | 'tool-frame' | 'tool-hand' | 'tool-highlight' | 'tool-laser' | 'tool-line' | 'tool-media' | 'tool-note' | 'tool-pencil' | 'tool-pointer' | 'tool-text' | 'trash' | 'triangle-down' | 'triangle-up' | 'twitter' | 'undo' | 'ungroup' | 'unlock-small' | 'unlock' | 'vertical-align-center' | 'vertical-align-end' | 'vertical-align-start' | 'visible' | 'warning-triangle' | 'zoom-in' | 'zoom-out'"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/icon-types.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiIconType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiInputProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiInput.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiInputProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#autofocus:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "autofocus?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "autofocus",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#autoselect:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "autoselect?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "autoselect",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#className:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "className?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "className",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#defaultValue:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "defaultValue?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "defaultValue",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#disabled:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "disabled?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "disabled",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#icon:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "icon?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Exclude",
|
|
"canonicalReference": "!Exclude:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "icon",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#iconLeft:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "iconLeft?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Exclude",
|
|
"canonicalReference": "!Exclude:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "iconLeft",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#label:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "label?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Exclude",
|
|
"canonicalReference": "!Exclude:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiTranslationKey",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiTranslationKey",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "label",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#onBlur:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onBlur?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(value: string) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onBlur",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#onCancel:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onCancel?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(value: string) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onCancel",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#onComplete:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onComplete?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(value: string) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onComplete",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#onValueChange:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onValueChange?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(value: string) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "onValueChange",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#placeholder:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "placeholder?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "placeholder",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#shouldManuallyMaintainScrollPositionWhenFocused:member",
|
|
"docComment": "/**\n * Usually on iOS when you focus an input, the browser will adjust the viewport to bring the input into view. Sometimes this doesn't work properly though - for example, if the input is newly created, iOS seems to have a hard time adjusting the viewport for it. This prop allows you to opt-in to some extra code to manually bring the input into view when the visual viewport of the browser changes, but we don't want to use it everywhere because generally the native behavior looks nicer in scenarios where it's sufficient.\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shouldManuallyMaintainScrollPositionWhenFocused?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "shouldManuallyMaintainScrollPositionWhenFocused",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiInputProps#value:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "value?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "value",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiKbdProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiKbdProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiKbd.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiKbdProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiKbdProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiKbdProps#visibleOnMobileLayout:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "visibleOnMobileLayout?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "visibleOnMobileLayout",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsDialogProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiKeyboardShortcutsDialogProps = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialogProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " & {\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialog.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiKeyboardShortcutsDialogProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMainMenuProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiMainMenuProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/MainMenu/DefaultMainMenu.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiMainMenuProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuCheckboxItemProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiMenuCheckboxItemProps<TranslationKey extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", IconType extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n icon?: IconType;\n id: string;\n kbd?: string;\n title?: string;\n label?: {\n [key: string]: TranslationKey;\n } | TranslationKey;\n readonlyOk?: boolean;\n onSelect: (source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<void> | void;\n checked?: boolean;\n disabled?: boolean;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuCheckboxItem.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiMenuCheckboxItemProps",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "TranslationKey",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"typeParameterName": "IconType",
|
|
"constraintTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
}
|
|
}
|
|
],
|
|
"typeTokenRange": {
|
|
"startIndex": 9,
|
|
"endIndex": 14
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuContextProviderProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiMenuContextProviderProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n type: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TldrawUiMenuContextType",
|
|
"canonicalReference": "@tldraw/tldraw!~TldrawUiMenuContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n sourceId: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n children: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.ReactNode",
|
|
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuContext.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiMenuContextProviderProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuGroupProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiMenuGroupProps<TranslationKey extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n label?: {\n [key: string]: TranslationKey;\n } | TranslationKey;\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuGroup.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiMenuGroupProps",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "TranslationKey",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
}
|
|
],
|
|
"typeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuItemProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiMenuItemProps<TranslationKey extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", IconType extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n icon?: IconType;\n kbd?: string;\n title?: string;\n label?: {\n [key: string]: TranslationKey;\n } | TranslationKey;\n readonlyOk?: boolean;\n onSelect: (source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<void> | void;\n disabled?: boolean;\n noClose?: boolean;\n spinner?: boolean;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuItem.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiMenuItemProps",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "TranslationKey",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"typeParameterName": "IconType",
|
|
"constraintTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
}
|
|
}
|
|
],
|
|
"typeTokenRange": {
|
|
"startIndex": 9,
|
|
"endIndex": 14
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMenuSubmenuProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiMenuSubmenuProps<Translation extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n label?: {\n [key: string]: Translation;\n } | Translation;\n disabled?: boolean;\n children: any;\n size?: 'medium' | 'small' | 'tiny' | 'wide';\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/menus/TldrawUiMenuSubmenu.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiMenuSubmenuProps",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "Translation",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
}
|
|
],
|
|
"typeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiOverrides:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiOverrides = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n actions: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "WithDefaultHelpers",
|
|
"canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NonNullable",
|
|
"canonicalReference": "!NonNullable:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ActionsProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!~ActionsProviderProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['overrides']>>;\n toolbar: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "WithDefaultHelpers",
|
|
"canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NonNullable",
|
|
"canonicalReference": "!NonNullable:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolbarSchemaProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!~TLUiToolbarSchemaProviderProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['overrides']>>;\n tools: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "WithDefaultHelpers",
|
|
"canonicalReference": "@tldraw/tldraw!~WithDefaultHelpers:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "NonNullable",
|
|
"canonicalReference": "!NonNullable:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolsProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolsProviderProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['overrides']>>;\n translations: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiTranslationProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!~TLUiTranslationProviderProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['overrides'];\n}>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/overrides.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiOverrides",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 23
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiPopoverContentProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiPopoverContentProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.ReactNode",
|
|
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n side: 'bottom' | 'left' | 'right' | 'top';\n align?: 'center' | 'end' | 'start';\n alignOffset?: number;\n sideOffset?: number;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiPopover.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiPopoverContentProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiPopoverProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiPopoverProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n open?: boolean;\n children: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.ReactNode",
|
|
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n onOpenChange?: (isOpen: boolean) => void;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiPopover.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiPopoverProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiPopoverTriggerProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiPopoverTriggerProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/primitives/TldrawUiPopover.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiPopoverTriggerProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiPopoverTriggerProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "React.ReactNode",
|
|
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiQuickActionsProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiQuickActionsProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/QuickActions/DefaultQuickActions.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiQuickActionsProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiStylePanelContentProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiStylePanelContentProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n styles: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ReturnType",
|
|
"canonicalReference": "!ReturnType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "useRelevantStyles",
|
|
"canonicalReference": "@tldraw/tldraw!useRelevantStyles:function"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/StylePanel/DefaultStylePanelContent.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiStylePanelContentProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiStylePanelProps "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/StylePanel/DefaultStylePanel.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiStylePanelProps",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps#children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "children?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/StylePanel/DefaultStylePanel.tsx",
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps#isMobile:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "isMobile?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/components/StylePanel/DefaultStylePanel.tsx",
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "isMobile",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiToast "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/toasts.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiToast",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast#actions:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "actions?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToastAction",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToastAction:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "actions",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast#closeLabel:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "closeLabel?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "closeLabel",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast#description:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "description?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "description",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast#icon:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "icon?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiIconType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiIconType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "icon",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast#id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast#keepOpen:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "keepOpen?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "keepOpen",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast#title:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "title?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "title",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToastAction:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiToastAction "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/toasts.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiToastAction",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToastAction#label:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "label: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "label",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToastAction#onClick:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onClick: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onClick",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToastAction#type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "'danger' | 'normal' | 'primary'"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToastsContextType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiToastsContextType = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n addToast: (toast: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Omit",
|
|
"canonicalReference": "!Omit:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToast",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", 'id'> & {\n id?: string;\n }) => string;\n removeToast: (id: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToast",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['id']) => string;\n clearToasts: () => void;\n toasts: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToast",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[];\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/toasts.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiToastsContextType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 10
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiToolbarItem = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n id: string;\n type: 'item';\n readonlyOk?: boolean;\n toolItem: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolItem",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiToolbarItem",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolbarSchemaContextType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiToolbarSchemaContextType = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolbarItem",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiToolbarSchemaContextType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
}
|
|
},
|
|
{
|
|
"kind": "Interface",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export interface TLUiToolItem<TranslationKey extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", IconType extends "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx",
|
|
"releaseTag": "Public",
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "TranslationKey",
|
|
"constraintTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"typeParameterName": "IconType",
|
|
"constraintTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
}
|
|
}
|
|
],
|
|
"name": "TLUiToolItem",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#icon:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "icon: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "IconType"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "icon",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#kbd:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "kbd?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "kbd",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#label:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "label: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "TranslationKey"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "label",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#meta:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "meta?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n [key: string]: any;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "meta",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#onSelect:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onSelect: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onSelect",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#readonlyOk:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "readonlyOk?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "readonlyOk",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "PropertySignature",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem#shortcutsLabel:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "shortcutsLabel?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "TranslationKey"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": true,
|
|
"releaseTag": "Public",
|
|
"name": "shortcutsLabel",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"extendsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiToolsContextType = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Record",
|
|
"canonicalReference": "!Record:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolItem",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiToolsContextType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolsProviderProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiToolsProviderProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n overrides?: (editor: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Editor",
|
|
"canonicalReference": "@tldraw/editor!Editor:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", tools: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolsContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", helpers: {\n insertMedia: () => void;\n }) => "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolsContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";\n children: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiToolsProviderProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslation:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiTranslation = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n readonly locale: string;\n readonly label: string;\n readonly messages: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Record",
|
|
"canonicalReference": "!Record:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiTranslationKey",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", string>;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/translations.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiTranslation",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslationContextType:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiTranslationContextType = "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiTranslation",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslation:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/useTranslation.tsx",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiTranslationContextType",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiTranslationKey = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "'action.align-bottom' | 'action.align-center-horizontal.short' | 'action.align-center-horizontal' | 'action.align-center-vertical.short' | 'action.align-center-vertical' | 'action.align-left' | 'action.align-right' | 'action.align-top' | 'action.back-to-content' | 'action.bring-forward' | 'action.bring-to-front' | 'action.convert-to-bookmark' | 'action.convert-to-embed' | 'action.copy-as-json.short' | 'action.copy-as-json' | 'action.copy-as-png.short' | 'action.copy-as-png' | 'action.copy-as-svg.short' | 'action.copy-as-svg' | 'action.copy' | 'action.cut' | 'action.delete' | 'action.distribute-horizontal.short' | 'action.distribute-horizontal' | 'action.distribute-vertical.short' | 'action.distribute-vertical' | 'action.duplicate' | 'action.edit-link' | 'action.exit-pen-mode' | 'action.export-as-json.short' | 'action.export-as-json' | 'action.export-as-png.short' | 'action.export-as-png' | 'action.export-as-svg.short' | 'action.export-as-svg' | 'action.fit-frame-to-content' | 'action.flip-horizontal.short' | 'action.flip-horizontal' | 'action.flip-vertical.short' | 'action.flip-vertical' | 'action.fork-project' | 'action.group' | 'action.insert-embed' | 'action.insert-media' | 'action.leave-shared-project' | 'action.new-project' | 'action.new-shared-project' | 'action.open-cursor-chat' | 'action.open-embed-link' | 'action.open-file' | 'action.pack' | 'action.paste' | 'action.print' | 'action.redo' | 'action.remove-frame' | 'action.rename' | 'action.rotate-ccw' | 'action.rotate-cw' | 'action.save-copy' | 'action.select-all' | 'action.select-none' | 'action.send-backward' | 'action.send-to-back' | 'action.share-project' | 'action.stack-horizontal.short' | 'action.stack-horizontal' | 'action.stack-vertical.short' | 'action.stack-vertical' | 'action.stop-following' | 'action.stretch-horizontal.short' | 'action.stretch-horizontal' | 'action.stretch-vertical.short' | 'action.stretch-vertical' | 'action.toggle-auto-size' | 'action.toggle-dark-mode.menu' | 'action.toggle-dark-mode' | 'action.toggle-debug-mode.menu' | 'action.toggle-debug-mode' | 'action.toggle-edge-scrolling.menu' | 'action.toggle-edge-scrolling' | 'action.toggle-focus-mode.menu' | 'action.toggle-focus-mode' | 'action.toggle-grid.menu' | 'action.toggle-grid' | 'action.toggle-lock' | 'action.toggle-reduce-motion.menu' | 'action.toggle-reduce-motion' | 'action.toggle-snap-mode.menu' | 'action.toggle-snap-mode' | 'action.toggle-tool-lock.menu' | 'action.toggle-tool-lock' | 'action.toggle-transparent.context-menu' | 'action.toggle-transparent.menu' | 'action.toggle-transparent' | 'action.undo' | 'action.ungroup' | 'action.unlock-all' | 'action.zoom-in' | 'action.zoom-out' | 'action.zoom-to-100' | 'action.zoom-to-fit' | 'action.zoom-to-selection' | 'actions-menu.title' | 'align-style.end' | 'align-style.justify' | 'align-style.middle' | 'align-style.start' | 'arrowheadEnd-style.arrow' | 'arrowheadEnd-style.bar' | 'arrowheadEnd-style.diamond' | 'arrowheadEnd-style.dot' | 'arrowheadEnd-style.inverted' | 'arrowheadEnd-style.none' | 'arrowheadEnd-style.pipe' | 'arrowheadEnd-style.square' | 'arrowheadEnd-style.triangle' | 'arrowheadStart-style.arrow' | 'arrowheadStart-style.bar' | 'arrowheadStart-style.diamond' | 'arrowheadStart-style.dot' | 'arrowheadStart-style.inverted' | 'arrowheadStart-style.none' | 'arrowheadStart-style.pipe' | 'arrowheadStart-style.square' | 'arrowheadStart-style.triangle' | 'color-style.black' | 'color-style.blue' | 'color-style.green' | 'color-style.grey' | 'color-style.light-blue' | 'color-style.light-green' | 'color-style.light-red' | 'color-style.light-violet' | 'color-style.orange' | 'color-style.red' | 'color-style.violet' | 'color-style.yellow' | 'context-menu.arrange' | 'context-menu.copy-as' | 'context-menu.export-as' | 'context-menu.move-to-page' | 'context-menu.reorder' | 'context.pages.new-page' | 'cursor-chat.type-to-chat' | 'dash-style.dashed' | 'dash-style.dotted' | 'dash-style.draw' | 'dash-style.solid' | 'debug-panel.more' | 'document.default-name' | 'edit-link-dialog.cancel' | 'edit-link-dialog.clear' | 'edit-link-dialog.detail' | 'edit-link-dialog.invalid-url' | 'edit-link-dialog.save' | 'edit-link-dialog.title' | 'edit-link-dialog.url' | 'edit-pages-dialog.move-down' | 'edit-pages-dialog.move-up' | 'embed-dialog.back' | 'embed-dialog.cancel' | 'embed-dialog.create' | 'embed-dialog.instruction' | 'embed-dialog.invalid-url' | 'embed-dialog.title' | 'embed-dialog.url' | 'file-system.confirm-clear.cancel' | 'file-system.confirm-clear.continue' | 'file-system.confirm-clear.description' | 'file-system.confirm-clear.dont-show-again' | 'file-system.confirm-clear.title' | 'file-system.confirm-open.cancel' | 'file-system.confirm-open.description' | 'file-system.confirm-open.dont-show-again' | 'file-system.confirm-open.open' | 'file-system.confirm-open.title' | 'file-system.file-open-error.file-format-version-too-new' | 'file-system.file-open-error.generic-corrupted-file' | 'file-system.file-open-error.not-a-tldraw-file' | 'file-system.file-open-error.title' | 'file-system.shared-document-file-open-error.description' | 'file-system.shared-document-file-open-error.title' | 'fill-style.none' | 'fill-style.pattern' | 'fill-style.semi' | 'fill-style.solid' | 'focus-mode.toggle-focus-mode' | 'font-style.draw' | 'font-style.mono' | 'font-style.sans' | 'font-style.serif' | 'geo-style.arrow-down' | 'geo-style.arrow-left' | 'geo-style.arrow-right' | 'geo-style.arrow-up' | 'geo-style.check-box' | 'geo-style.cloud' | 'geo-style.diamond' | 'geo-style.ellipse' | 'geo-style.hexagon' | 'geo-style.octagon' | 'geo-style.oval' | 'geo-style.pentagon' | 'geo-style.rectangle' | 'geo-style.rhombus-2' | 'geo-style.rhombus' | 'geo-style.star' | 'geo-style.trapezoid' | 'geo-style.triangle' | 'geo-style.x-box' | 'help-menu.about' | 'help-menu.discord' | 'help-menu.github' | 'help-menu.keyboard-shortcuts' | 'help-menu.title' | 'help-menu.twitter' | 'home-project-dialog.description' | 'home-project-dialog.ok' | 'home-project-dialog.title' | 'menu.copy-as' | 'menu.edit' | 'menu.export-as' | 'menu.file' | 'menu.language' | 'menu.preferences' | 'menu.title' | 'menu.view' | 'navigation-zone.toggle-minimap' | 'navigation-zone.zoom' | 'opacity-style.0.1' | 'opacity-style.0.25' | 'opacity-style.0.5' | 'opacity-style.0.75' | 'opacity-style.1' | 'page-menu.create-new-page' | 'page-menu.edit-done' | 'page-menu.edit-start' | 'page-menu.go-to-page' | 'page-menu.max-page-count-reached' | 'page-menu.new-page-initial-name' | 'page-menu.submenu.delete' | 'page-menu.submenu.duplicate-page' | 'page-menu.submenu.move-down' | 'page-menu.submenu.move-up' | 'page-menu.submenu.rename' | 'page-menu.submenu.title' | 'page-menu.title' | 'people-menu.change-color' | 'people-menu.change-name' | 'people-menu.follow' | 'people-menu.following' | 'people-menu.invite' | 'people-menu.leading' | 'people-menu.title' | 'people-menu.user' | 'rename-project-dialog.cancel' | 'rename-project-dialog.rename' | 'rename-project-dialog.title' | 'share-menu.copy-link-note' | 'share-menu.copy-link' | 'share-menu.copy-readonly-link-note' | 'share-menu.copy-readonly-link' | 'share-menu.create-snapshot-link' | 'share-menu.default-project-name' | 'share-menu.fork-note' | 'share-menu.offline-note' | 'share-menu.project-too-large' | 'share-menu.readonly-link' | 'share-menu.save-note' | 'share-menu.share-project' | 'share-menu.snapshot-link-note' | 'share-menu.title' | 'share-menu.upload-failed' | 'sharing.confirm-leave.cancel' | 'sharing.confirm-leave.description' | 'sharing.confirm-leave.dont-show-again' | 'sharing.confirm-leave.leave' | 'sharing.confirm-leave.title' | 'shortcuts-dialog.collaboration' | 'shortcuts-dialog.edit' | 'shortcuts-dialog.file' | 'shortcuts-dialog.preferences' | 'shortcuts-dialog.title' | 'shortcuts-dialog.tools' | 'shortcuts-dialog.transform' | 'shortcuts-dialog.view' | 'size-style.l' | 'size-style.m' | 'size-style.s' | 'size-style.xl' | 'spline-style.cubic' | 'spline-style.line' | 'status.offline' | 'status.online' | 'style-panel.align' | 'style-panel.arrowhead-end' | 'style-panel.arrowhead-start' | 'style-panel.arrowheads' | 'style-panel.color' | 'style-panel.dash' | 'style-panel.fill' | 'style-panel.font' | 'style-panel.geo' | 'style-panel.mixed' | 'style-panel.opacity' | 'style-panel.position' | 'style-panel.size' | 'style-panel.spline' | 'style-panel.title' | 'style-panel.vertical-align' | 'toast.close' | 'toast.error.copy-fail.desc' | 'toast.error.copy-fail.title' | 'toast.error.export-fail.desc' | 'toast.error.export-fail.title' | 'tool-panel.drawing' | 'tool-panel.more' | 'tool-panel.shapes' | 'tool.arrow-down' | 'tool.arrow-left' | 'tool.arrow-right' | 'tool.arrow-up' | 'tool.arrow' | 'tool.asset' | 'tool.check-box' | 'tool.cloud' | 'tool.diamond' | 'tool.draw' | 'tool.ellipse' | 'tool.embed' | 'tool.eraser' | 'tool.frame' | 'tool.hand' | 'tool.hexagon' | 'tool.highlight' | 'tool.laser' | 'tool.line' | 'tool.note' | 'tool.octagon' | 'tool.oval' | 'tool.pentagon' | 'tool.rectangle' | 'tool.rhombus' | 'tool.select' | 'tool.star' | 'tool.text' | 'tool.trapezoid' | 'tool.triangle' | 'tool.x-box' | 'verticalAlign-style.end' | 'verticalAlign-style.middle' | 'verticalAlign-style.start' | 'vscode.file-open.backup-failed' | 'vscode.file-open.backup-saved' | 'vscode.file-open.backup' | 'vscode.file-open.desc' | 'vscode.file-open.dont-show-again' | 'vscode.file-open.open'"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/TLUiTranslationKey.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiTranslationKey",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "TypeAlias",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiZoomMenuProps:type",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export type TLUiZoomMenuProps = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n children?: any;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/.tsbuild-api/lib/ui/components/ZoomMenu/DefaultZoomMenu.d.ts",
|
|
"releaseTag": "Public",
|
|
"name": "TLUiZoomMenuProps",
|
|
"typeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!toolbarItem:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function toolbarItem(toolItem: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolItem",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolItem:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolbarItem",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolbarItem:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "toolItem",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "toolbarItem"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!truncateStringWithEllipsis:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "truncateStringWithEllipsis: (str: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", maxLength: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "number"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/utils/text/text.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "str",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "maxLength",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "truncateStringWithEllipsis"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!UiEventsProvider:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function UiEventsProvider({ onEvent, children }: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "EventsProviderProps",
|
|
"canonicalReference": "@tldraw/tldraw!EventsProviderProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/events.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "{ onEvent, children }",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"name": "UiEventsProvider"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!unwrapLabel:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function unwrapLabel(label?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiActionItem",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionItem:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['label']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", menuType?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/actions.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 6,
|
|
"endIndex": 7
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "label",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isOptional": true
|
|
},
|
|
{
|
|
"parameterName": "menuType",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 4,
|
|
"endIndex": 5
|
|
},
|
|
"isOptional": true
|
|
}
|
|
],
|
|
"name": "unwrapLabel"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useActions:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useActions(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiActionsContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionsContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/actions.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useActions"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useBreakpoint:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useBreakpoint(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "number"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/breakpoints.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useBreakpoint"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useCanRedo:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useCanRedo(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menu-hooks.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useCanRedo"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useCanUndo:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useCanUndo(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/menu-hooks.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useCanUndo"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useCopyAs:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useCopyAs(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(ids: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[], format?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLCopyType",
|
|
"canonicalReference": "@tldraw/tldraw!~TLCopyType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useCopyAs.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useCopyAs"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useDefaultHelpers:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useDefaultHelpers(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n addToast: (toast: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Omit",
|
|
"canonicalReference": "!Omit:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<import(\"./context/toasts\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToast",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToast:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", \"id\"> & {\n id?: string | undefined;\n }) => string;\n removeToast: (id: string) => string;\n clearToasts: () => void;\n addDialog: (dialog: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Omit",
|
|
"canonicalReference": "!Omit:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<import(\"./context/dialogs\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialog",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", \"id\"> & {\n id?: string | undefined;\n }) => string;\n clearDialogs: () => void;\n removeDialog: (id: string) => string;\n updateDialog: (id: string, newDialogData: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<import(\"./context/dialogs\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialog",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialog:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">) => string;\n msg: (id?: string | undefined) => string;\n isMobile: boolean;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/overrides.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 14
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useDefaultHelpers"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useDialogs:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useDialogs(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiDialogsContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiDialogsContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/dialogs.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useDialogs"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useExportAs:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useExportAs(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(ids: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLShapeId",
|
|
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[], format: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLExportType",
|
|
"canonicalReference": "@tldraw/tldraw!~TLExportType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | undefined, name: string | undefined) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useExportAs.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useExportAs"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useKeyboardShortcuts:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useKeyboardShortcuts(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useKeyboardShortcuts.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useKeyboardShortcuts"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useLocalStorageState:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useLocalStorageState<T = "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "any"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">(key: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", defaultValue: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "T"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "readonly [T, (setter: ((value: T) => T) | T) => void]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useLocalStorageState.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 7,
|
|
"endIndex": 8
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "key",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "defaultValue",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"typeParameters": [
|
|
{
|
|
"typeParameterName": "T",
|
|
"constraintTokenRange": {
|
|
"startIndex": 0,
|
|
"endIndex": 0
|
|
},
|
|
"defaultTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
}
|
|
}
|
|
],
|
|
"name": "useLocalStorageState"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useMenuClipboardEvents:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useMenuClipboardEvents(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n copy: (source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => void;\n cut: (source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => void;\n paste: (data: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ClipboardItem",
|
|
"canonicalReference": "!ClipboardItem:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "[] | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "DataTransfer",
|
|
"canonicalReference": "!DataTransfer:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", source: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventSource",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventSource:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", point?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "VecLike",
|
|
"canonicalReference": "@tldraw/editor!VecLike:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ") => "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Promise",
|
|
"canonicalReference": "!Promise:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<void>;\n}"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useClipboardEvents.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 16
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useMenuClipboardEvents"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useMenuIsOpen:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useMenuIsOpen(id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ", cb?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(isOpen: boolean) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "readonly [boolean, (isOpen: boolean) => void]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useMenuIsOpen.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "id",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"parameterName": "cb",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": true
|
|
}
|
|
],
|
|
"name": "useMenuIsOpen"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useNativeClipboardEvents:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useNativeClipboardEvents(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useClipboardEvents.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useNativeClipboardEvents"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useReadonly:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useReadonly(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useReadonly.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useReadonly"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useRelevantStyles:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useRelevantStyles(stylesToCheck?: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "readonly "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StyleProp",
|
|
"canonicalReference": "@tldraw/tlschema!StyleProp:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<any>[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "null | "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ReadonlySharedStyleMap",
|
|
"canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useRelevantStyles.ts",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 5,
|
|
"endIndex": 7
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "stylesToCheck",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isOptional": true
|
|
}
|
|
],
|
|
"name": "useRelevantStyles"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useTldrawUiComponents:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useTldrawUiComponents(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Partial",
|
|
"canonicalReference": "!Partial:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<{\n ContextMenu: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiContextMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiContextMenuProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n ActionsMenu: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiActionsMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiActionsMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n HelpMenu: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiHelpMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiHelpMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n ZoomMenu: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiZoomMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiZoomMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n MainMenu: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiMainMenuProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiMainMenuProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n Minimap: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n StylePanel: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiStylePanelProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiStylePanelProps:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n PageMenu: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n NavigationPanel: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n Toolbar: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n KeyboardShortcutsDialog: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiKeyboardShortcutsDialogProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiKeyboardShortcutsDialogProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n QuickActions: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiQuickActionsProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiQuickActionsProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n HelperButtons: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiHelperButtonsProps",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiHelperButtonsProps:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | null;\n DebugMenu: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n MenuPanel: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n TopPanel: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n SharePanel: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ComponentType",
|
|
"canonicalReference": "@types/react!React.ComponentType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null;\n}>"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/components.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 55
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useTldrawUiComponents"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useToasts:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useToasts(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToastsContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToastsContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/toasts.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useToasts"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useToolbarSchema:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useToolbarSchema(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolbarSchemaContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolbarSchemaContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useToolbarSchema.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useToolbarSchema"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useTools:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useTools(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiToolsContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiToolsContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTools.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useTools"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useTranslation:function(1)",
|
|
"docComment": "/**\n * Returns a function to translate a translation key into a string based on the current translation.\n *\n * @example\n * ```ts\n * const msg = useTranslation()\n * const label = msg('style-panel.styles')\n * ```\n *\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useTranslation(): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(id?: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Exclude",
|
|
"canonicalReference": "!Exclude:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string, "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiTranslationKey",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiTranslationKey:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "> | string) => string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/hooks/useTranslation/useTranslation.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 6
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useTranslation"
|
|
},
|
|
{
|
|
"kind": "Function",
|
|
"canonicalReference": "@tldraw/tldraw!useUiEvents:function(1)",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare function useUiEvents(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLUiEventContextType",
|
|
"canonicalReference": "@tldraw/tldraw!TLUiEventContextType:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/ui/context/events.tsx",
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"releaseTag": "Public",
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"name": "useUiEvents"
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class VideoShapeUtil extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "BaseBoxShapeUtil",
|
|
"canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<"
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLVideoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLVideoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ">"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/shapes/video/VideoShapeUtil.tsx",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "VideoShapeUtil",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil#canEdit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "canEdit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "canEdit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil#component:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "component(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLVideoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLVideoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "component"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil#getDefaultProps:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "getDefaultProps(): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLVideoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLVideoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "['props']"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "getDefaultProps"
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil#indicator:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "indicator(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLVideoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLVideoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"react/jsx-runtime\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "JSX.Element",
|
|
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 5
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "indicator"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil#isAspectRatioLocked:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "isAspectRatioLocked: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => boolean"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "isAspectRatioLocked",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil.migrations:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static migrations: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Migrations",
|
|
"canonicalReference": "@tldraw/store!Migrations:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "migrations",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil.props:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static props: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "{\n w: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n h: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n time: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<number>;\n playing: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<boolean>;\n url: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<string>;\n assetId: import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Validator",
|
|
"canonicalReference": "@tldraw/validate!Validator:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "<import(\"@tldraw/editor\")."
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLAssetId",
|
|
"canonicalReference": "@tldraw/tlschema!TLAssetId:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | null>;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "props",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 16
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Method",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil#toSvg:member(1)",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "toSvg(shape: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLVideoShape",
|
|
"canonicalReference": "@tldraw/tlschema!TLVideoShape:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "): "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "SVGGElement",
|
|
"canonicalReference": "!SVGGElement:interface"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isStatic": false,
|
|
"returnTypeTokenRange": {
|
|
"startIndex": 3,
|
|
"endIndex": 4
|
|
},
|
|
"releaseTag": "Public",
|
|
"isProtected": false,
|
|
"overloadIndex": 1,
|
|
"parameters": [
|
|
{
|
|
"parameterName": "shape",
|
|
"parameterTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isAbstract": false,
|
|
"name": "toSvg"
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!VideoShapeUtil.type:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static type: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "\"video\""
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "type",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 5
|
|
},
|
|
"implementsTokenRanges": []
|
|
},
|
|
{
|
|
"kind": "Class",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool:class",
|
|
"docComment": "/**\n * @public\n */\n",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "export declare class ZoomTool extends "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "StateNode",
|
|
"canonicalReference": "@tldraw/editor!StateNode:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " "
|
|
}
|
|
],
|
|
"fileUrlPath": "packages/tldraw/src/lib/tools/ZoomTool/ZoomTool.ts",
|
|
"releaseTag": "Public",
|
|
"isAbstract": false,
|
|
"name": "ZoomTool",
|
|
"preserveMemberOrder": false,
|
|
"members": [
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool.children:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static children: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => (typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Idle",
|
|
"canonicalReference": "@tldraw/tldraw!~Idle_12:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "Pointing",
|
|
"canonicalReference": "@tldraw/tldraw!~Pointing_8:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | typeof "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "ZoomBrushing",
|
|
"canonicalReference": "@tldraw/tldraw!~ZoomBrushing:class"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ")[]"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "children",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 8
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool.id:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static id: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "id",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool#info:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "info: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLPointerEventInfo",
|
|
"canonicalReference": "@tldraw/editor!TLPointerEventInfo:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " & {\n onInteractionEnd?: string | undefined;\n }"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "info",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool.initial:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "static initial: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "string"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "initial",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": true,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool#onEnter:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onEnter: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "(info: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLPointerEventInfo",
|
|
"canonicalReference": "@tldraw/editor!TLPointerEventInfo:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " & {\n onInteractionEnd: string;\n }) => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onEnter",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 4
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool#onExit:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onExit: "
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": "() => void"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onExit",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool#onInterrupt:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onInterrupt: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLInterruptEvent",
|
|
"canonicalReference": "@tldraw/editor!TLInterruptEvent:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onInterrupt",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool#onKeyDown:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onKeyDown: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLKeyboardEvent",
|
|
"canonicalReference": "@tldraw/editor!TLKeyboardEvent:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": " | undefined"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onKeyDown",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 3
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
},
|
|
{
|
|
"kind": "Property",
|
|
"canonicalReference": "@tldraw/tldraw!ZoomTool#onKeyUp:member",
|
|
"docComment": "",
|
|
"excerptTokens": [
|
|
{
|
|
"kind": "Content",
|
|
"text": "onKeyUp: "
|
|
},
|
|
{
|
|
"kind": "Reference",
|
|
"text": "TLKeyboardEvent",
|
|
"canonicalReference": "@tldraw/editor!TLKeyboardEvent:type"
|
|
},
|
|
{
|
|
"kind": "Content",
|
|
"text": ";"
|
|
}
|
|
],
|
|
"isReadonly": false,
|
|
"isOptional": false,
|
|
"releaseTag": "Public",
|
|
"name": "onKeyUp",
|
|
"propertyTypeTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"isStatic": false,
|
|
"isProtected": false,
|
|
"isAbstract": false
|
|
}
|
|
],
|
|
"extendsTokenRange": {
|
|
"startIndex": 1,
|
|
"endIndex": 2
|
|
},
|
|
"implementsTokenRanges": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|