"
- }
- ],
- "fileUrlPath": "packages/editor/src/lib/utils/WeakMapCache.ts",
- "releaseTag": "Public",
- "typeParameters": [
- {
- "typeParameterName": "T",
- "constraintTokenRange": {
- "startIndex": 1,
- "endIndex": 2
- },
- "defaultTypeTokenRange": {
- "startIndex": 0,
- "endIndex": 0
- }
- },
- {
- "typeParameterName": "K",
- "constraintTokenRange": {
- "startIndex": 0,
- "endIndex": 0
- },
- "defaultTypeTokenRange": {
- "startIndex": 0,
- "endIndex": 0
- }
- }
- ],
- "isAbstract": false,
- "name": "WeakMapCache",
- "preserveMemberOrder": false,
- "members": [
- {
- "kind": "Method",
- "canonicalReference": "@tldraw/editor!WeakMapCache#access:member(1)",
- "docComment": "",
- "excerptTokens": [
- {
- "kind": "Content",
- "text": "access(item: "
- },
- {
- "kind": "Content",
- "text": "T"
- },
- {
- "kind": "Content",
- "text": "): "
- },
- {
- "kind": "Content",
- "text": "K | undefined"
- },
- {
- "kind": "Content",
- "text": ";"
- }
- ],
- "isStatic": false,
- "returnTypeTokenRange": {
- "startIndex": 3,
- "endIndex": 4
- },
- "releaseTag": "Public",
- "isProtected": false,
- "overloadIndex": 1,
- "parameters": [
- {
- "parameterName": "item",
- "parameterTypeTokenRange": {
- "startIndex": 1,
- "endIndex": 2
- },
- "isOptional": false
- }
- ],
- "isOptional": false,
- "isAbstract": false,
- "name": "access"
- },
- {
- "kind": "Method",
- "canonicalReference": "@tldraw/editor!WeakMapCache#bust:member(1)",
- "docComment": "",
- "excerptTokens": [
- {
- "kind": "Content",
- "text": "bust(): "
- },
- {
- "kind": "Content",
- "text": "void"
- },
- {
- "kind": "Content",
- "text": ";"
- }
- ],
- "isStatic": false,
- "returnTypeTokenRange": {
- "startIndex": 1,
- "endIndex": 2
- },
- "releaseTag": "Public",
- "isProtected": false,
- "overloadIndex": 1,
- "parameters": [],
- "isOptional": false,
- "isAbstract": false,
- "name": "bust"
- },
- {
- "kind": "Method",
- "canonicalReference": "@tldraw/editor!WeakMapCache#get:member(1)",
- "docComment": "",
- "excerptTokens": [
- {
- "kind": "Content",
- "text": "get(item: "
- },
- {
- "kind": "Content",
- "text": "P"
- },
- {
- "kind": "Content",
- "text": ", cb: "
- },
- {
- "kind": "Content",
- "text": "(item: P) => K"
- },
- {
- "kind": "Content",
- "text": "): "
- },
- {
- "kind": "Reference",
- "text": "NonNullable",
- "canonicalReference": "!NonNullable:type"
- },
- {
- "kind": "Content",
- "text": ""
- },
- {
- "kind": "Content",
- "text": ";"
- }
- ],
- "typeParameters": [
- {
- "typeParameterName": "P",
- "constraintTokenRange": {
- "startIndex": 1,
- "endIndex": 2
- },
- "defaultTypeTokenRange": {
- "startIndex": 0,
- "endIndex": 0
- }
- }
- ],
- "isStatic": false,
- "returnTypeTokenRange": {
- "startIndex": 7,
- "endIndex": 9
- },
- "releaseTag": "Public",
- "isProtected": false,
- "overloadIndex": 1,
- "parameters": [
- {
- "parameterName": "item",
- "parameterTypeTokenRange": {
- "startIndex": 3,
- "endIndex": 4
- },
- "isOptional": false
- },
- {
- "parameterName": "cb",
- "parameterTypeTokenRange": {
- "startIndex": 5,
- "endIndex": 6
- },
- "isOptional": false
- }
- ],
- "isOptional": false,
- "isAbstract": false,
- "name": "get"
- },
- {
- "kind": "Method",
- "canonicalReference": "@tldraw/editor!WeakMapCache#has:member(1)",
- "docComment": "",
- "excerptTokens": [
- {
- "kind": "Content",
- "text": "has(item: "
- },
- {
- "kind": "Content",
- "text": "T"
- },
- {
- "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": "item",
- "parameterTypeTokenRange": {
- "startIndex": 1,
- "endIndex": 2
- },
- "isOptional": false
- }
- ],
- "isOptional": false,
- "isAbstract": false,
- "name": "has"
- },
- {
- "kind": "Method",
- "canonicalReference": "@tldraw/editor!WeakMapCache#invalidate:member(1)",
- "docComment": "",
- "excerptTokens": [
- {
- "kind": "Content",
- "text": "invalidate(item: "
- },
- {
- "kind": "Content",
- "text": "T"
- },
- {
- "kind": "Content",
- "text": "): "
- },
- {
- "kind": "Content",
- "text": "void"
- },
- {
- "kind": "Content",
- "text": ";"
- }
- ],
- "isStatic": false,
- "returnTypeTokenRange": {
- "startIndex": 3,
- "endIndex": 4
- },
- "releaseTag": "Public",
- "isProtected": false,
- "overloadIndex": 1,
- "parameters": [
- {
- "parameterName": "item",
- "parameterTypeTokenRange": {
- "startIndex": 1,
- "endIndex": 2
- },
- "isOptional": false
- }
- ],
- "isOptional": false,
- "isAbstract": false,
- "name": "invalidate"
- },
- {
- "kind": "Property",
- "canonicalReference": "@tldraw/editor!WeakMapCache#items:member",
- "docComment": "",
- "excerptTokens": [
- {
- "kind": "Content",
- "text": "items: "
- },
- {
- "kind": "Reference",
- "text": "WeakMap",
- "canonicalReference": "!WeakMap:interface"
- },
- {
- "kind": "Content",
- "text": ""
- },
- {
- "kind": "Content",
- "text": ";"
- }
- ],
- "isReadonly": false,
- "isOptional": false,
- "releaseTag": "Public",
- "name": "items",
- "propertyTypeTokenRange": {
- "startIndex": 1,
- "endIndex": 3
- },
- "isStatic": false,
- "isProtected": false,
- "isAbstract": false
- },
- {
- "kind": "Method",
- "canonicalReference": "@tldraw/editor!WeakMapCache#set:member(1)",
- "docComment": "",
- "excerptTokens": [
- {
- "kind": "Content",
- "text": "set(item: "
- },
- {
- "kind": "Content",
- "text": "T"
- },
- {
- "kind": "Content",
- "text": ", value: "
- },
- {
- "kind": "Content",
- "text": "K"
- },
- {
- "kind": "Content",
- "text": "): "
- },
- {
- "kind": "Content",
- "text": "void"
- },
- {
- "kind": "Content",
- "text": ";"
- }
- ],
- "isStatic": false,
- "returnTypeTokenRange": {
- "startIndex": 5,
- "endIndex": 6
- },
- "releaseTag": "Public",
- "isProtected": false,
- "overloadIndex": 1,
- "parameters": [
- {
- "parameterName": "item",
- "parameterTypeTokenRange": {
- "startIndex": 1,
- "endIndex": 2
- },
- "isOptional": false
- },
- {
- "parameterName": "value",
- "parameterTypeTokenRange": {
- "startIndex": 3,
- "endIndex": 4
- },
- "isOptional": false
- }
- ],
- "isOptional": false,
- "isAbstract": false,
- "name": "set"
- }
- ],
- "implementsTokenRanges": []
- }
- ]
- }
- ]
+ "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/editor!",
+ "docComment": "",
+ "name": "@tldraw/editor",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "EntryPoint",
+ "canonicalReference": "@tldraw/editor!",
+ "name": "",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!angleDistance:function(1)",
+ "docComment": "/**\n * Get the angle of a point on an arc.\n *\n * @param fromAngle - The angle from center to arc's start point (A) on the circle\n *\n * @param toAngle - The angle from center to arc's end point (B) on the circle\n *\n * @param direction - The direction of the arc (1 = counter-clockwise, -1 = clockwise)\n *\n * @returns The distance in radians between the two angles according to the direction\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function angleDistance(fromAngle: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", toAngle: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", direction: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "fromAngle",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "toAngle",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "direction",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "angleDistance"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!approximately:function(1)",
+ "docComment": "/**\n * Whether two numbers numbers a and b are approximately equal.\n *\n * @param a - The first point.\n *\n * @param b - The second point.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function approximately(a: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", b: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", precision?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "precision",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "name": "approximately"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Arc2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Arc2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Arc2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Arc2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#_center:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_center: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "_center",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Arc2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Arc2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed' | 'isFilled'> & {\n center: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n radius: number;\n start: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n end: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n sweepFlag: number;\n largeArcFlag: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 11
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#angleEnd:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "angleEnd: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "angleEnd",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#angleStart:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "angleStart: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "angleStart",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#end:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "end: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "end",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Arc2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Arc2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", _zoom: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "_zoom",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#length:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "length: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "length",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#measure:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "measure: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "measure",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Arc2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#radius:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "radius: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "radius",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Arc2d#start:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "start: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "start",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!areAnglesCompatible:function(1)",
+ "docComment": "/**\n * Checks whether two angles are approximately at right-angles or parallel to each other\n *\n * @param a - Angle a (radians)\n *\n * @param b - Angle b (radians)\n *\n * @returns True iff the angles are approximately at right-angles or parallel to each other\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function areAnglesCompatible(a: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", b: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "areAnglesCompatible"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!average:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function average(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "average"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!BaseBoxShapeTool:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare abstract class BaseBoxShapeTool extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "StateNode",
+ "canonicalReference": "@tldraw/editor!StateNode:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/tools/BaseBoxShapeTool/BaseBoxShapeTool.ts",
+ "releaseTag": "Public",
+ "isAbstract": true,
+ "name": "BaseBoxShapeTool",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!BaseBoxShapeTool.children:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static children: "
+ },
+ {
+ "kind": "Content",
+ "text": "() => (typeof "
+ },
+ {
+ "kind": "Reference",
+ "text": "Idle",
+ "canonicalReference": "@tldraw/editor!~Idle:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | typeof "
+ },
+ {
+ "kind": "Reference",
+ "text": "Pointing",
+ "canonicalReference": "@tldraw/editor!~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/editor!BaseBoxShapeTool.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/editor!BaseBoxShapeTool.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/editor!BaseBoxShapeTool#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": ") => null | void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onCreate",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!BaseBoxShapeTool#shapeType:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "abstract 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": true
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare abstract class BaseBoxShapeUtil extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeUtil",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/shapes/BaseBoxShapeUtil.tsx",
+ "releaseTag": "Public",
+ "typeParameters": [
+ {
+ "typeParameterName": "Shape",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isAbstract": true,
+ "name": "BaseBoxShapeUtil",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!BaseBoxShapeUtil#getGeometry:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getGeometry(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "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/editor!BaseBoxShapeUtil#getHandleSnapGeometry:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHandleSnapGeometry(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "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/editor!BaseBoxShapeUtil#onResize:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onResize: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnResizeHandler",
+ "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "onResize",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Interface",
+ "canonicalReference": "@tldraw/editor!BoundsSnapGeometry:interface",
+ "docComment": "/**\n * When moving or resizing shapes, the bounds of the shape can snap to key geometry on other nearby shapes. Customize how a shape snaps to others with {@link ShapeUtil.getBoundsSnapGeometry}.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export interface BoundsSnapGeometry "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager/BoundsSnaps.ts",
+ "releaseTag": "Public",
+ "name": "BoundsSnapGeometry",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!BoundsSnapGeometry#points:member",
+ "docComment": "/**\n * Points that this shape will snap to. By default, this will be the corners and center of the shapes bounding box. To disable snapping to a specific point, use an empty array.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "points?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecModel",
+ "canonicalReference": "@tldraw/tlschema!VecModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "points",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ }
+ }
+ ],
+ "extendsTokenRanges": []
+ },
+ {
+ "kind": "Interface",
+ "canonicalReference": "@tldraw/editor!BoundsSnapPoint:interface",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export interface BoundsSnapPoint "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager/BoundsSnaps.ts",
+ "releaseTag": "Public",
+ "name": "BoundsSnapPoint",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!BoundsSnapPoint#handle:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "handle?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionCorner",
+ "canonicalReference": "@tldraw/editor!SelectionCorner:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "handle",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!BoundsSnapPoint#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/editor!BoundsSnapPoint#x:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "x",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!BoundsSnapPoint#y:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "y",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ }
+ ],
+ "extendsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Box:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Box "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Box",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Box:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Box` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(x?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", y?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", w?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", h?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "x",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "y",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "w",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "h",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#aspectRatio:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get aspectRatio(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "aspectRatio",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#center:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get center(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n\nset center(v: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "center",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#clone:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "clone(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "clone"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#collides:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "collides(B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "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": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "collides"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box.Collides:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Collides: "
+ },
+ {
+ "kind": "Content",
+ "text": "(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ") => boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "Collides",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box.Common:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Common: "
+ },
+ {
+ "kind": "Content",
+ "text": "(boxes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]) => "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "Common",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#contains:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "contains(B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "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": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "contains"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box.Contains:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Contains: "
+ },
+ {
+ "kind": "Content",
+ "text": "(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ") => boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "Contains",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#containsPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "containsPoint(V: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", margin?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "V",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "margin",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "containsPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box.ContainsPoint:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static ContainsPoint: "
+ },
+ {
+ "kind": "Content",
+ "text": "(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", margin?: number) => boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "ContainsPoint",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#corners:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get corners(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "corners",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#cornersAndCenter:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get cornersAndCenter(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "cornersAndCenter",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#equals:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "equals(other: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "other",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "equals"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.Equals:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Equals(a: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", b: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Equals"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#expand:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "expand(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "expand"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.Expand:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Expand(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Expand"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#expandBy:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "expandBy(n: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "n",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "expandBy"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.ExpandBy:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static ExpandBy(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", n: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "n",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "ExpandBy"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.From:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static From(box: "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "box",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "From"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.FromCenter:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static FromCenter(center: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", size: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "center",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "size",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "FromCenter"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.FromPoints:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static FromPoints(points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "FromPoints"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#getHandlePoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHandlePoint(handle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionCorner",
+ "canonicalReference": "@tldraw/editor!SelectionCorner:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionEdge",
+ "canonicalReference": "@tldraw/editor!SelectionEdge:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "handle",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getHandlePoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#h:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "h: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "h",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#height:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get height(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n\nset height(n: number);"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "height",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#includes:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "includes(B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "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": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "includes"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box.Includes:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Includes: "
+ },
+ {
+ "kind": "Content",
+ "text": "(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ") => boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "Includes",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#maxX:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get maxX(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "maxX",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#maxY:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get maxY(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "maxY",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#midX:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get midX(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "midX",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#midY:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get midY(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "midY",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#minX:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get minX(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n\nset minX(n: number);"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "minX",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#minY:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get minY(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n\nset minY(n: number);"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "minY",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#point:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get point(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n\nset point(val: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "point",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#resize:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "resize(handle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionCorner",
+ "canonicalReference": "@tldraw/editor!SelectionCorner:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionEdge",
+ "canonicalReference": "@tldraw/editor!SelectionEdge:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | string"
+ },
+ {
+ "kind": "Content",
+ "text": ", dx: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", dy: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "handle",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "dx",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "dy",
+ "parameterTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "resize"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.Resize:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Resize(box: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", handle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionCorner",
+ "canonicalReference": "@tldraw/editor!SelectionCorner:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionEdge",
+ "canonicalReference": "@tldraw/editor!SelectionEdge:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | string"
+ },
+ {
+ "kind": "Content",
+ "text": ", dx: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", dy: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", isAspectRatioLocked?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n box: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n scaleX: number;\n scaleY: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 14,
+ "endIndex": 17
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "box",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "handle",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 7
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "dx",
+ "parameterTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "dy",
+ "parameterTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "isAspectRatioLocked",
+ "parameterTypeTokenRange": {
+ "startIndex": 12,
+ "endIndex": 13
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Resize"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#scale:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "scale(n: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "n",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "scale"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#set:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "set(x?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", y?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", w?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", h?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "x",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "y",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "w",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "h",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "set"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#setTo:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setTo(B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setTo"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#sides:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get sides(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Array",
+ "canonicalReference": "!Array:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<["
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "]>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "sides",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box.Sides:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Sides: "
+ },
+ {
+ "kind": "Content",
+ "text": "(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", inset?: number) => "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[][]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "Sides",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#size:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get size(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "size",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#snapToGrid:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "snapToGrid(size: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "size",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "snapToGrid"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#toFixed:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "toFixed(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "toFixed"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#toJson:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "toJson(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "toJson"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#translate:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "translate(delta: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "delta",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "translate"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#union:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "union(box: "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "box",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "union"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#w:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "w: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "w",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#width:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get width(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n\nset width(n: number);"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "width",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#x:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "x",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Box#y:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "y",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box#zeroFix:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "zeroFix(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "zeroFix"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Box.ZeroFix:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static ZeroFix(other: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "other",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "ZeroFix"
+ }
+ ],
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!BoxLike:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type BoxLike = "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoxModel",
+ "canonicalReference": "@tldraw/tlschema!BoxModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "releaseTag": "Public",
+ "name": "BoxLike",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!canonicalizeRotation:function(1)",
+ "docComment": "/**\n * @param a - Any angle in radians\n *\n * @returns A number between 0 and 2 * PI\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function canonicalizeRotation(a: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "canonicalizeRotation"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Circle2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Circle2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Circle2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Circle2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Circle2d#_center:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_center: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "_center",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Circle2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Circle2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed'> & {\n x?: number;\n y?: number;\n radius: number;\n isFilled: boolean;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Circle2d#config:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed'> & {\n x?: number;\n y?: number;\n radius: number;\n isFilled: boolean;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "config",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Circle2d#getBounds:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Circle2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Circle2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", _zoom: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "_zoom",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Circle2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Circle2d#radius:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "radius: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "radius",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Circle2d#x:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "x",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Circle2d#y:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "y",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!clamp:function(1)",
+ "docComment": "/**\n * Clamp a value into a range.\n *\n * @param n - The number to clamp.\n *\n * @param min - The minimum value.\n *\n * @example\n * ```ts\n * const A = clamp(0, 1) // 1\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function clamp(n: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", min: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "n",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "min",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "clamp"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!clamp:function(2)",
+ "docComment": "/**\n * Clamp a value into a range.\n *\n * @param n - The number to clamp.\n *\n * @param min - The minimum value.\n *\n * @param max - The maximum value.\n *\n * @example\n * ```ts\n * const A = clamp(0, 1, 10) // 1\n * const B = clamp(11, 1, 10) // 10\n * const C = clamp(5, 1, 10) // 5\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function clamp(n: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", min: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", max: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 2,
+ "parameters": [
+ {
+ "parameterName": "n",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "min",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "max",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "clamp"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!clampRadians:function(1)",
+ "docComment": "/**\n * Clamp radians within 0 and 2PI\n *\n * @param r - The radian value.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function clampRadians(r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "clampRadians"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!clockwiseAngleDist:function(1)",
+ "docComment": "/**\n * Get the clockwise angle distance between two angles.\n *\n * @param a0 - The first angle.\n *\n * @param a1 - The second angle.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function clockwiseAngleDist(a0: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", a1: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a0",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a1",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "clockwiseAngleDist"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!coreShapes:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "coreShapes: "
+ },
+ {
+ "kind": "Content",
+ "text": "readonly [typeof "
+ },
+ {
+ "kind": "Reference",
+ "text": "GroupShapeUtil",
+ "canonicalReference": "@tldraw/editor!GroupShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": "]"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/defaultShapes.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "coreShapes",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!counterClockwiseAngleDist:function(1)",
+ "docComment": "/**\n * Get the counter-clockwise angle distance between two angles.\n *\n * @param a0 - The first angle.\n *\n * @param a1 - The second angle.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function counterClockwiseAngleDist(a0: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", a1: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a0",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a1",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "counterClockwiseAngleDist"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!createSessionStateSnapshotSignal:function(1)",
+ "docComment": "/**\n * Creates a signal of the instance state for a given store.\n *\n * @param store - The store to create the instance state snapshot signal for\n *\n * @returns \n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function createSessionStateSnapshotSignal(store: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLStore",
+ "canonicalReference": "@tldraw/tlschema!TLStore:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Signal",
+ "canonicalReference": "@tldraw/state!Signal:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/TLSessionStateSnapshot.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "store",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "createSessionStateSnapshotSignal"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!createTLStore:function(1)",
+ "docComment": "/**\n * A helper for creating a TLStore. Custom shapes cannot override default shapes.\n *\n * @param opts - Options for creating the store.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function createTLStore({ initialData, defaultName, ...rest }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLStoreOptions",
+ "canonicalReference": "@tldraw/editor!TLStoreOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLStore",
+ "canonicalReference": "@tldraw/tlschema!TLStore:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/createTLStore.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ initialData, defaultName, ...rest }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "createTLStore"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!createTLUser:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function createTLUser(opts?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n derivePresenceState?: ((store: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLStore",
+ "canonicalReference": "@tldraw/tlschema!TLStore:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => "
+ },
+ {
+ "kind": "Reference",
+ "text": "Signal",
+ "canonicalReference": "@tldraw/state!Signal:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ") | undefined;\n userPreferences?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Signal",
+ "canonicalReference": "@tldraw/state!Signal:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUserPreferences",
+ "canonicalReference": "@tldraw/editor!TLUserPreferences:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", unknown> | undefined;\n setUserPreferences?: ((userPreferences: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUserPreferences",
+ "canonicalReference": "@tldraw/editor!TLUserPreferences:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ") => void) | undefined;\n}"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUser",
+ "canonicalReference": "@tldraw/editor!~TLUser:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/createTLUser.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 15,
+ "endIndex": 16
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 14
+ },
+ "isOptional": true
+ }
+ ],
+ "name": "createTLUser"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class CubicBezier2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Polyline2d",
+ "canonicalReference": "@tldraw/editor!Polyline2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/CubicBezier2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "CubicBezier2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `CubicBezier2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed' | 'isFilled'> & {\n start: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n cp1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n cp2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n end: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 13
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d#a:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "a: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "a",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d#b:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "b: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "b",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d#c:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "c: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "c",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d#d:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "d: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "d",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d#midPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "midPoint(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "midPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class CubicSpline2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/CubicSpline2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "CubicSpline2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#_length:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_length?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "_length",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#_segments:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_segments?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "CubicBezier2d",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "_segments",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `CubicSpline2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed' | 'isFilled'> & {\n points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[];\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", zoom: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "zoom",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#length:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get length(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "length",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#points:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "points",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!CubicSpline2d#segments:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get segments(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "CubicBezier2d",
+ "canonicalReference": "@tldraw/editor!CubicBezier2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "segments",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!dataUrlToFile:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function dataUrlToFile(url: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ", filename: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ", mimeType: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Promise",
+ "canonicalReference": "!Promise:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "File",
+ "canonicalReference": "!File:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/assets.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "url",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "filename",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "mimeType",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "dataUrlToFile"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultBackground:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultBackground(): "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"react/jsx-runtime\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "JSX.Element",
+ "canonicalReference": "@types/react!JSX.Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultBackground.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [],
+ "name": "DefaultBackground"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultBrush:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "DefaultBrush: ({ brush, color, opacity, className }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLBrushProps",
+ "canonicalReference": "@tldraw/editor!TLBrushProps:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"react/jsx-runtime\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "JSX.Element",
+ "canonicalReference": "@types/react!JSX.Element:interface"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultBrush.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ brush, color, opacity, className }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultBrush"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultCanvas:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultCanvas({ className }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCanvasComponentProps",
+ "canonicalReference": "@tldraw/editor!~TLCanvasComponentProps: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/editor/src/lib/components/default-components/DefaultCanvas.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ className }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultCanvas"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultCollaboratorHint:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultCollaboratorHint({ className, zoom, point, color, viewport, opacity, }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCollaboratorHintProps",
+ "canonicalReference": "@tldraw/editor!TLCollaboratorHintProps: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/editor/src/lib/components/default-components/DefaultCollaboratorHint.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ className, zoom, point, color, viewport, opacity, }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultCollaboratorHint"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!DefaultCursor:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "DefaultCursor: "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"react\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "NamedExoticComponent",
+ "canonicalReference": "@types/react!React.NamedExoticComponent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCursorProps",
+ "canonicalReference": "@tldraw/editor!TLCursorProps:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultCursor.tsx",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "DefaultCursor",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ }
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!DefaultErrorFallback:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "DefaultErrorFallback: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLErrorFallbackComponent",
+ "canonicalReference": "@tldraw/editor!~TLErrorFallbackComponent:type"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultErrorFallback.tsx",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "DefaultErrorFallback",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultGrid:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultGrid({ x, y, z, size }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGridProps",
+ "canonicalReference": "@tldraw/editor!TLGridProps: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/editor/src/lib/components/default-components/DefaultGrid.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ x, y, z, size }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultGrid"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultHandle:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultHandle({ handle, isCoarse, className, zoom }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLHandleProps",
+ "canonicalReference": "@tldraw/editor!TLHandleProps: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/editor/src/lib/components/default-components/DefaultHandle.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ handle, isCoarse, className, zoom }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultHandle"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultHandles:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "DefaultHandles: ({ 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"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultHandles.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ children }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultHandles"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultHoveredShapeIndicator:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultHoveredShapeIndicator({ 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/editor/src/lib/components/default-components/DefaultHoveredShapeIndicator.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ shapeId }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultHoveredShapeIndicator"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultScribble:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultScribble({ 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/editor/src/lib/components/default-components/DefaultScribble.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": "DefaultScribble"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultSelectionBackground:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultSelectionBackground({ 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": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSelectionBackground.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ bounds, rotation }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultSelectionBackground"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultSelectionForeground:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultSelectionForeground({ bounds, rotation }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLSelectionForegroundProps",
+ "canonicalReference": "@tldraw/editor!TLSelectionForegroundProps: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/editor/src/lib/components/default-components/DefaultSelectionForeground.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ bounds, rotation }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultSelectionForeground"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!DefaultShapeIndicator:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "DefaultShapeIndicator: "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"react\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "NamedExoticComponent",
+ "canonicalReference": "@types/react!React.NamedExoticComponent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeIndicatorProps",
+ "canonicalReference": "@tldraw/editor!TLShapeIndicatorProps:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultShapeIndicator.tsx",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "DefaultShapeIndicator",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultSnapIndicator:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultSnapIndicator({ className, line, zoom }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLSnapIndicatorProps",
+ "canonicalReference": "@tldraw/editor!TLSnapIndicatorProps: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/editor/src/lib/components/default-components/DefaultSnapIndictor.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ className, line, zoom }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "DefaultSnapIndicator"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultSpinner:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function DefaultSpinner(): "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"react/jsx-runtime\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "JSX.Element",
+ "canonicalReference": "@types/react!JSX.Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSpinner.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [],
+ "name": "DefaultSpinner"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!DefaultSvgDefs:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "DefaultSvgDefs: () => "
+ },
+ {
+ "kind": "Content",
+ "text": "null"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/default-components/DefaultSvgDefs.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [],
+ "name": "DefaultSvgDefs"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!defaultUserPreferences:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "defaultUserPreferences: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Readonly",
+ "canonicalReference": "!Readonly:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<{\n name: \"New User\";\n locale: \"ar\" | \"ca\" | \"cs\" | \"da\" | \"de\" | \"en\" | \"es\" | \"fa\" | \"fi\" | \"fr\" | \"gl\" | \"he\" | \"hi-in\" | \"hr\" | \"hu\" | \"it\" | \"ja\" | \"ko-kr\" | \"ku\" | \"my\" | \"ne\" | \"no\" | \"pl\" | \"pt-br\" | \"pt-pt\" | \"ro\" | \"ru\" | \"sl\" | \"sv\" | \"te\" | \"th\" | \"tr\" | \"uk\" | \"vi\" | \"zh-cn\" | \"zh-tw\";\n color: \"#02B1CC\" | \"#11B3A3\" | \"#39B178\" | \"#55B467\" | \"#7B66DC\" | \"#9D5BD2\" | \"#BD54C6\" | \"#E34BA9\" | \"#EC5E41\" | \"#F04F88\" | \"#F2555A\" | \"#FF802B\";\n isDarkMode: false;\n edgeScrollSpeed: 1;\n animationSpeed: 0 | 1;\n isSnapMode: false;\n isWrapMode: false;\n}>"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/TLUserPreferences.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "defaultUserPreferences",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!degreesToRadians:function(1)",
+ "docComment": "/**\n * Convert degrees to radians.\n *\n * @param d - The degree in degrees.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function degreesToRadians(d: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "d",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "degreesToRadians"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!EASINGS:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "EASINGS: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n readonly linear: (t: number) => number;\n readonly easeInQuad: (t: number) => number;\n readonly easeOutQuad: (t: number) => number;\n readonly easeInOutQuad: (t: number) => number;\n readonly easeInCubic: (t: number) => number;\n readonly easeOutCubic: (t: number) => number;\n readonly easeInOutCubic: (t: number) => number;\n readonly easeInQuart: (t: number) => number;\n readonly easeOutQuart: (t: number) => number;\n readonly easeInOutQuart: (t: number) => number;\n readonly easeInQuint: (t: number) => number;\n readonly easeOutQuint: (t: number) => number;\n readonly easeInOutQuint: (t: number) => number;\n readonly easeInSine: (t: number) => number;\n readonly easeOutSine: (t: number) => number;\n readonly easeInOutSine: (t: number) => number;\n readonly easeInExpo: (t: number) => number;\n readonly easeOutExpo: (t: number) => number;\n readonly easeInOutExpo: (t: number) => number;\n}"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/easings.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "EASINGS",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Edge2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Edge2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Edge2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Edge2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Edge2d#_length:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_length?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "_length",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Edge2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Edge2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n start: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n end: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Edge2d#d:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "d: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "d",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Edge2d#end:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "end: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "end",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Edge2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Edge2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", _zoom: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "_zoom",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Edge2d#length:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get length(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "length",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Edge2d#midPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "midPoint(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "midPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Edge2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Edge2d#start:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "start: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "start",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Edge2d#u:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "u: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "u",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Edge2d#ul:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "ul: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "ul",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Editor:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Editor extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "EventEmitter",
+ "canonicalReference": "eventemitter3!EventEmitter.EventEmitter"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLEventMap",
+ "canonicalReference": "@tldraw/editor!TLEventMap:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/Editor.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Editor",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Editor:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Editor` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor({ store, user, shapeUtils, tools, getContainer, initialState, inferDarkMode, }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLEditorOptions",
+ "canonicalReference": "@tldraw/editor!TLEditorOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ store, user, shapeUtils, tools, getContainer, initialState, inferDarkMode, }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#addOpenMenu:member(1)",
+ "docComment": "/**\n * Add an open menu.\n *\n * @example\n * ```ts\n * editor.addOpenMenu('menu-id')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "addOpenMenu(id: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "id",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "addOpenMenu"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#alignShapes:member(1)",
+ "docComment": "/**\n * Align shape positions.\n *\n * @param shapes - The shapes (or shape ids) to align.\n *\n * @param operation - The align operation to apply.\n *\n * @example\n * ```ts\n * editor.alignShapes([box1, box2], 'left')\n * editor.alignShapes(editor.getSelectedShapeIds(), 'left')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "alignShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", operation: "
+ },
+ {
+ "kind": "Content",
+ "text": "'bottom' | 'center-horizontal' | 'center-vertical' | 'left' | 'right' | 'top'"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "operation",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "alignShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#animateShape:member(1)",
+ "docComment": "/**\n * Animate a shape.\n *\n * @param partial - The shape partial to update.\n *\n * @param options - The animation's options.\n *\n * @example\n * ```ts\n * editor.animateShape({ id: 'box1', type: 'box', x: 100, y: 100 })\n * editor.animateShape({ id: 'box1', type: 'box', x: 100, y: 100 }, { duration: 100, ease: t => t*t })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "animateShape(partial: "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePartial",
+ "canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ", animationOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "partial",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "animationOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "animateShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#animateShapes:member(1)",
+ "docComment": "/**\n * Animate shapes.\n *\n * @param partials - The shape partials to update.\n *\n * @param options - The animation's options.\n *\n * @example\n * ```ts\n * editor.animateShapes([{ id: 'box1', type: 'box', x: 100, y: 100 }])\n * editor.animateShapes([{ id: 'box1', type: 'box', x: 100, y: 100 }], { duration: 100, ease: t => t*t })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "animateShapes(partials: "
+ },
+ {
+ "kind": "Content",
+ "text": "(null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePartial",
+ "canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined)[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", animationOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<{\n duration: number;\n easing: (t: number) => number;\n }>"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "partials",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "animationOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "animateShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#animateToShape:member(1)",
+ "docComment": "/**\n * Animate the camera to a shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "animateToShape(shapeId: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", opts?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapeId",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "animateToShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#animateToUser:member(1)",
+ "docComment": "/**\n * Animate the camera to a user's cursor position. This also briefly show the user's cursor if it's not currently visible.\n *\n * @param userId - The id of the user to aniamte to.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "animateToUser(userId: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "userId",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "animateToUser"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#bail:member(1)",
+ "docComment": "/**\n * Clear all marks in the undo stack back to the next mark.\n *\n * @example\n * ```ts\n * editor.bail()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "bail(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "bail"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#bailToMark:member(1)",
+ "docComment": "/**\n * Clear all marks in the undo stack back to the mark with the provided mark id.\n *\n * @example\n * ```ts\n * editor.bailToMark('dragging')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "bailToMark(id: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "id",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "bailToMark"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#batch:member(1)",
+ "docComment": "/**\n * Run a function in a batch, which will be undone/redone as a single action.\n *\n * @example\n * ```ts\n * editor.batch(() => {\n * \teditor.selectAll()\n * \teditor.deleteShapes(editor.getSelectedShapeIds())\n * \teditor.createShapes(myShapes)\n * \teditor.selectNone()\n * })\n *\n * editor.undo() // will undo all of the above\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "batch(fn: "
+ },
+ {
+ "kind": "Content",
+ "text": "() => void"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "fn",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "batch"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#bringForward:member(1)",
+ "docComment": "/**\n * Bring shapes forward in the page's object list.\n *\n * @param shapes - The shapes (or shape ids) to move.\n *\n * @example\n * ```ts\n * editor.bringForward(['id1', 'id2'])\n * editor.bringForward(box1, box2)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "bringForward(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "bringForward"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#bringToFront:member(1)",
+ "docComment": "/**\n * Bring shapes to the front of the page's object list.\n *\n * @param shapes - The shapes (or shape ids) to move.\n *\n * @example\n * ```ts\n * editor.bringToFront(['id1', 'id2'])\n * editor.bringToFront([box1, box2])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "bringToFront(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "bringToFront"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#cancel:member(1)",
+ "docComment": "/**\n * Dispatch a cancel event.\n *\n * @example\n * ```ts\n * editor.cancel()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "cancel(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "cancel"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#cancelDoubleClick:member(1)",
+ "docComment": "/**\n * Prevent a double click event from firing the next time the user clicks\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "cancelDoubleClick(): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "cancelDoubleClick"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#centerOnPoint:member(1)",
+ "docComment": "/**\n * Center the camera on a point (in the current page space).\n *\n * @param point - The point in the current page space to center on.\n *\n * @param animation - The options for an animation.\n *\n * @example\n * ```ts\n * editor.centerOnPoint({ x: 100, y: 100 })\n * editor.centerOnPoint({ x: 100, y: 100 }, { duration: 200 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "centerOnPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "centerOnPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#clearOpenMenus:member(1)",
+ "docComment": "/**\n * Clear all open menus.\n *\n * @example\n * ```ts\n * editor.clearOpenMenus()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "clearOpenMenus(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "clearOpenMenus"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#complete:member(1)",
+ "docComment": "/**\n * Dispatch a complete event.\n *\n * @example\n * ```ts\n * editor.complete()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "complete(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "complete"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#createAssets:member(1)",
+ "docComment": "/**\n * Create one or more assets.\n *\n * @param assets - The assets to create.\n *\n * @example\n * ```ts\n * editor.createAssets([...myAssets])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "createAssets(assets: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAsset",
+ "canonicalReference": "@tldraw/tlschema!TLAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "assets",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "createAssets"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#createPage:member(1)",
+ "docComment": "/**\n * Create a page.\n *\n * @param page - The page (or page partial) to create.\n *\n * @example\n * ```ts\n * editor.createPage(myPage)\n * editor.createPage({ name: 'Page 2' })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "createPage(page: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "page",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "createPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#createShape:member(1)",
+ "docComment": "/**\n * Create a single shape.\n *\n * @param shape - The shape (or shape partial) to create.\n *\n * @example\n * ```ts\n * editor.createShape(myShape)\n * editor.createShape({ id: 'box1', type: 'text', props: { text: \"ok\" } })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "createShape(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "OptionalKeys",
+ "canonicalReference": "@tldraw/editor!~OptionalKeys:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePartial",
+ "canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'id'>"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "createShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#createShapes:member(1)",
+ "docComment": "/**\n * Create shapes.\n *\n * @param shapes - The shapes (or shape partials) to create.\n *\n * @param select - Whether to select the created shapes. Defaults to false.\n *\n * @example\n * ```ts\n * editor.createShapes([myShape])\n * editor.createShapes([{ id: 'box1', type: 'text', props: { text: \"ok\" } }])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "createShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "OptionalKeys",
+ "canonicalReference": "@tldraw/editor!~OptionalKeys:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePartial",
+ "canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'id'>[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "createShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deleteAssets:member(1)",
+ "docComment": "/**\n * Delete one or more assets.\n *\n * @param ids - The assets to delete.\n *\n * @example\n * ```ts\n * editor.deleteAssets(['asset1', 'asset2'])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deleteAssets(assets: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAsset",
+ "canonicalReference": "@tldraw/tlschema!TLAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAssetId",
+ "canonicalReference": "@tldraw/tlschema!TLAssetId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "assets",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deleteAssets"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deleteOpenMenu:member(1)",
+ "docComment": "/**\n * Delete an open menu.\n *\n * @example\n * ```ts\n * editor.deleteOpenMenu('menu-id')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deleteOpenMenu(id: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "id",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deleteOpenMenu"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deletePage:member(1)",
+ "docComment": "/**\n * Delete a page.\n *\n * @param id - The id of the page to delete.\n *\n * @example\n * ```ts\n * editor.deletePage('page1')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deletePage(page: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "page",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deletePage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deleteShape:member(1)",
+ "docComment": "/**\n * Delete a shape.\n *\n * @param id - The id of the shape to delete.\n *\n * @example\n * ```ts\n * editor.deleteShapes(['box1', 'box2'])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deleteShape(id: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "id",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deleteShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deleteShape:member(2)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deleteShape(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 2,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deleteShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deleteShapes:member(1)",
+ "docComment": "/**\n * Delete shapes.\n *\n * @param ids - The ids of the shapes to delete.\n *\n * @example\n * ```ts\n * editor.deleteShapes(['box1', 'box2'])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deleteShapes(ids: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "ids",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deleteShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deleteShapes:member(2)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deleteShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 2,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deleteShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#deselect:member(1)",
+ "docComment": "/**\n * Remove a shape from the existing set of selected shapes.\n *\n * @example\n * ```ts\n * editor.deselect(shape.id)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "deselect(...shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "deselect"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#dispatch:member",
+ "docComment": "/**\n * Dispatch an event to the editor.\n *\n * @param info - The event info.\n *\n * @example\n * ```ts\n * editor.dispatch(myPointerEvent)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "dispatch: "
+ },
+ {
+ "kind": "Content",
+ "text": "(info: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLEventInfo",
+ "canonicalReference": "@tldraw/editor!TLEventInfo:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "dispatch",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#disposables:member",
+ "docComment": "/**\n * A set of functions to call when the app is disposed.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly disposables: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Set",
+ "canonicalReference": "!Set:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<() => void>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "disposables",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#dispose:member(1)",
+ "docComment": "/**\n * Dispose the editor.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "dispose(): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "dispose"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#distributeShapes:member(1)",
+ "docComment": "/**\n * Distribute shape positions.\n *\n * @param shapes - The shapes (or shape ids) to distribute.\n *\n * @param operation - Whether to distribute shapes horizontally or vertically.\n *\n * @example\n * ```ts\n * editor.distributeShapes([box1, box2], 'horizontal')\n * editor.distributeShapes(editor.getSelectedShapeIds(), 'horizontal')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "distributeShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", operation: "
+ },
+ {
+ "kind": "Content",
+ "text": "'horizontal' | 'vertical'"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "operation",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "distributeShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#duplicatePage:member(1)",
+ "docComment": "/**\n * Duplicate a page.\n *\n * @param id - The id of the page to duplicate. Defaults to the current page.\n *\n * @param createId - The id of the new page. Defaults to a new id.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "duplicatePage(page: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", createId?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "page",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "createId",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "duplicatePage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#duplicateShapes:member(1)",
+ "docComment": "/**\n * Duplicate shapes.\n *\n * @param shapes - The shapes (or shape ids) to duplicate.\n *\n * @param offset - The offset (in pixels) to apply to the duplicated shapes.\n *\n * @example\n * ```ts\n * editor.duplicateShapes(['box1', 'box2'], { x: 8, y: 8 })\n * editor.duplicateShapes(editor.getSelectedShapes(), { x: 8, y: 8 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "duplicateShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", offset?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "offset",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "duplicateShapes"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#environment:member",
+ "docComment": "/**\n * A manager for the editor's environment.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly environment: "
+ },
+ {
+ "kind": "Reference",
+ "text": "EnvironmentManager",
+ "canonicalReference": "@tldraw/editor!~EnvironmentManager:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "environment",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#findCommonAncestor:member(1)",
+ "docComment": "/**\n * Get the common ancestor of two or more shapes that matches a predicate.\n *\n * @param shapes - The shapes (or shape ids) to check.\n *\n * @param predicate - The predicate to match.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "findCommonAncestor(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", predicate?: "
+ },
+ {
+ "kind": "Content",
+ "text": "(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 12
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "predicate",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 9
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "findCommonAncestor"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#findShapeAncestor:member(1)",
+ "docComment": "/**\n * Find the first ancestor matching the given predicate\n *\n * @param shape - The shape to check the ancestors for.\n *\n * @example\n * ```ts\n * const ancestor = editor.findShapeAncestor(myShape)\n * const ancestor = editor.findShapeAncestor(myShape.id)\n * const ancestor = editor.findShapeAncestor(myShape.id, (shape) => shape.type === 'frame')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "findShapeAncestor(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", predicate: "
+ },
+ {
+ "kind": "Content",
+ "text": "(parent: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "predicate",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "findShapeAncestor"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#flipShapes:member(1)",
+ "docComment": "/**\n * Flip shape positions.\n *\n * @param shapes - The ids of the shapes to flip.\n *\n * @param operation - Whether to flip horizontally or vertically.\n *\n * @example\n * ```ts\n * editor.flipShapes([box1, box2], 'horizontal', 32)\n * editor.flipShapes(editor.getSelectedShapeIds(), 'horizontal', 32)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "flipShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", operation: "
+ },
+ {
+ "kind": "Content",
+ "text": "'horizontal' | 'vertical'"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "operation",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "flipShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getAncestorPageId:member(1)",
+ "docComment": "/**\n * Get the id of the containing page for a given shape.\n *\n * @param shape - The shape to get the page id for.\n *\n * @returns The id of the page that contains the shape, or undefined if the shape is undefined.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getAncestorPageId(shape?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getAncestorPageId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getArrowInfo:member(1)",
+ "docComment": "/**\n * Get cached info about an arrow.\n *\n * @param shape - The shape (or shape id) of the arrow to get the info for.\n *\n * @example\n * ```ts\n * const arrowInfo = editor.getArrowInfo(myArrow)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getArrowInfo(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLArrowShape",
+ "canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLArrowInfo",
+ "canonicalReference": "@tldraw/editor!TLArrowInfo:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getArrowInfo"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getArrowsBoundTo:member(1)",
+ "docComment": "/**\n * Get all arrows bound to a shape.\n *\n * @param shapeId - The id of the shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getArrowsBoundTo(shapeId: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n arrowId: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n handleId: \"end\" | \"start\";\n }[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapeId",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getArrowsBoundTo"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getAsset:member(1)",
+ "docComment": "/**\n * Get an asset by its id.\n *\n * @param asset - The asset (or asset id) to get.\n *\n * @example\n * ```ts\n * editor.getAsset('asset1')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getAsset(asset: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAsset",
+ "canonicalReference": "@tldraw/tlschema!TLAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAssetId",
+ "canonicalReference": "@tldraw/tlschema!TLAssetId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAsset",
+ "canonicalReference": "@tldraw/tlschema!TLAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "asset",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getAsset"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getAssetForExternalContent:member(1)",
+ "docComment": "/**\n * Get an asset for an external asset content type.\n *\n * @param info - Info about the external content.\n *\n * @returns The asset.\n *\n * @example\n * ```ts\n * const asset = await editor.getAssetForExternalContent({ type: 'file', file: myFile })\n * const asset = await editor.getAssetForExternalContent({ type: 'url', url: myUrl })\n * ```\n *\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getAssetForExternalContent(info: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLExternalAssetContent",
+ "canonicalReference": "@tldraw/editor!TLExternalAssetContent:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Promise",
+ "canonicalReference": "!Promise:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAsset",
+ "canonicalReference": "@tldraw/tlschema!TLAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "info",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getAssetForExternalContent"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getAssets:member(1)",
+ "docComment": "/**\n * Get all assets in the editor.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getAssets(): "
+ },
+ {
+ "kind": "Content",
+ "text": "(import(\"@tldraw/tlschema\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "TLBookmarkAsset",
+ "canonicalReference": "@tldraw/tlschema!TLBookmarkAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLImageAsset",
+ "canonicalReference": "@tldraw/tlschema!TLImageAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLVideoAsset",
+ "canonicalReference": "@tldraw/tlschema!TLVideoAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": ")[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getAssets"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCamera:member(1)",
+ "docComment": "/**\n * The current camera.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCamera(): "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"@tldraw/tlschema\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCamera",
+ "canonicalReference": "@tldraw/tlschema!TLCamera:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCamera"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCameraState:member(1)",
+ "docComment": "/**\n * Whether the camera is moving or idle.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCameraState(): "
+ },
+ {
+ "kind": "Content",
+ "text": "\"idle\" | \"moving\""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCameraState"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCanRedo:member(1)",
+ "docComment": "/**\n * Whether the app can redo.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCanRedo(): "
+ },
+ {
+ "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": "getCanRedo"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCanUndo:member(1)",
+ "docComment": "/**\n * Whether the app can undo.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCanUndo(): "
+ },
+ {
+ "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": "getCanUndo"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#getContainer:member",
+ "docComment": "/**\n * The current HTML element containing the editor.\n *\n * @example\n * ```ts\n * const container = editor.getContainer()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getContainer: "
+ },
+ {
+ "kind": "Content",
+ "text": "() => "
+ },
+ {
+ "kind": "Reference",
+ "text": "HTMLElement",
+ "canonicalReference": "!HTMLElement:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "getContainer",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getContentFromCurrentPage:member(1)",
+ "docComment": "/**\n * Get content that can be exported for the given shape ids.\n *\n * @param shapes - The shapes (or shape ids) to get content for.\n *\n * @returns The exported content.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getContentFromCurrentPage(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLContent",
+ "canonicalReference": "@tldraw/editor!TLContent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getContentFromCurrentPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCroppingShapeId:member(1)",
+ "docComment": "/**\n * The current cropping shape's id.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCroppingShapeId(): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCroppingShapeId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPage:member(1)",
+ "docComment": "/**\n * The current page.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPage(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCurrentPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPageBounds:member(1)",
+ "docComment": "/**\n * The bounds of the current page (the common bounds of all of the shapes on the page).\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPageBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCurrentPageBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPageId:member(1)",
+ "docComment": "/**\n * The current page id.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPageId(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCurrentPageId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPageRenderingShapesSorted:member(1)",
+ "docComment": "/**\n * An array containing all of the rendering shapes in the current page, sorted in z-index order (accounting for nested shapes): e.g. A, B, BA, BB, C.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPageRenderingShapesSorted(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "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": "getCurrentPageRenderingShapesSorted"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPageShapeIds:member(1)",
+ "docComment": "/**\n * An array of all of the shapes on the current page.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPageShapeIds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Set",
+ "canonicalReference": "!Set:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCurrentPageShapeIds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPageShapes:member(1)",
+ "docComment": "/**\n * An array containing all of the shapes in the current page.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPageShapes(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "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": "getCurrentPageShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPageShapesSorted:member(1)",
+ "docComment": "/**\n * An array containing all of the shapes in the current page, sorted in z-index order (accounting for nested shapes): e.g. A, B, BA, BB, C.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPageShapesSorted(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "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": "getCurrentPageShapesSorted"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentPageState:member(1)",
+ "docComment": "/**\n * The current page state.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentPageState(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLInstancePageState",
+ "canonicalReference": "@tldraw/tlschema!TLInstancePageState:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCurrentPageState"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentTool:member(1)",
+ "docComment": "/**\n * The current selected tool.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentTool(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "StateNode",
+ "canonicalReference": "@tldraw/editor!StateNode:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCurrentTool"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getCurrentToolId:member(1)",
+ "docComment": "/**\n * The id of the current selected tool.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getCurrentToolId(): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getCurrentToolId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getDocumentSettings:member(1)",
+ "docComment": "/**\n * The global document settings that apply to all users.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getDocumentSettings(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLDocument",
+ "canonicalReference": "@tldraw/tlschema!TLDocument:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getDocumentSettings"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getDroppingOverShape:member(1)",
+ "docComment": "/**\n * Get the shape that some shapes should be dropped on at a given point.\n *\n * @param point - The point to find the parent for.\n *\n * @param droppingShapes - The shapes that are being dropped.\n *\n * @returns The shape to drop on.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getDroppingOverShape(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", droppingShapes?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUnknownShape",
+ "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "droppingShapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getDroppingOverShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getEditingShape:member(1)",
+ "docComment": "/**\n * The current editing shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getEditingShape(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getEditingShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getEditingShapeId:member(1)",
+ "docComment": "/**\n * The current editing shape's id.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getEditingShapeId(): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getEditingShapeId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getErasingShapeIds:member(1)",
+ "docComment": "/**\n * The editor's current erasing ids.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getErasingShapeIds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "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": "getErasingShapeIds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getErasingShapes:member(1)",
+ "docComment": "/**\n * The editor's current erasing shapes.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getErasingShapes(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "NonNullable",
+ "canonicalReference": "!NonNullable:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined>[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getErasingShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getFocusedGroup:member(1)",
+ "docComment": "/**\n * The current focused group.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getFocusedGroup(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getFocusedGroup"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getFocusedGroupId:member(1)",
+ "docComment": "/**\n * The current focused group id.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getFocusedGroupId(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getFocusedGroupId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getHighestIndexForParent:member(1)",
+ "docComment": "/**\n * Get the index above the highest child of a given parent.\n *\n * @param parentId - The id of the parent.\n *\n * @returns The index.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHighestIndexForParent(parent: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLParentId",
+ "canonicalReference": "@tldraw/tlschema!TLParentId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "IndexKey",
+ "canonicalReference": "@tldraw/utils!IndexKey:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "parent",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getHighestIndexForParent"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getHintingShape:member(1)",
+ "docComment": "/**\n * The editor's current hinting shapes.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHintingShape(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "NonNullable",
+ "canonicalReference": "!NonNullable:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined>[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getHintingShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getHintingShapeIds:member(1)",
+ "docComment": "/**\n * The editor's current hinting shape ids.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHintingShapeIds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "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": "getHintingShapeIds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getHoveredShape:member(1)",
+ "docComment": "/**\n * The current hovered shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHoveredShape(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getHoveredShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getHoveredShapeId:member(1)",
+ "docComment": "/**\n * The current hovered shape id.\n *\n * @readonly @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHoveredShapeId(): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getHoveredShapeId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getInitialMetaForShape:member(1)",
+ "docComment": "/**\n * Get the initial meta value for a shape.\n *\n * @param shape - The shape to get the initial meta for.\n *\n * @example\n * ```ts\n * editor.getInitialMetaForShape = (shape) => {\n * if (shape.type === 'note') {\n * return { createdBy: myCurrentUser.id }\n * }\n * }\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getInitialMetaForShape(_shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "JsonObject",
+ "canonicalReference": "@tldraw/utils!JsonObject:type"
+ },
+ {
+ "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": "getInitialMetaForShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getInstanceState:member(1)",
+ "docComment": "/**\n * The current instance's state.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getInstanceState(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLInstance",
+ "canonicalReference": "@tldraw/tlschema!TLInstance:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getInstanceState"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getIsMenuOpen:member(1)",
+ "docComment": "/**\n * Get whether any menus are open.\n *\n * @example\n * ```ts\n * editor.isMenuOpen()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getIsMenuOpen(): "
+ },
+ {
+ "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": "getIsMenuOpen"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getOnlySelectedShape:member(1)",
+ "docComment": "/**\n * The app's only selected shape.\n *\n * @returns Null if there is no shape or more than one selected shape, otherwise the selected shape.\n *\n * @public @readonly\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getOnlySelectedShape(): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getOnlySelectedShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getOpenMenus:member(1)",
+ "docComment": "/**\n * A set of strings representing any open menus. When menus are open, certain interactions will behave differently; for example, when a draw tool is selected and a menu is open, a pointer-down will not create a dot (because the user is probably trying to close the menu) however a pointer-down event followed by a drag will begin drawing a line (because the user is BOTH trying to close the menu AND start drawing a line).\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getOpenMenus(): "
+ },
+ {
+ "kind": "Content",
+ "text": "string[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getOpenMenus"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getOutermostSelectableShape:member(1)",
+ "docComment": "/**\n * Get the shape that should be selected when you click on a given shape, assuming there is nothing already selected. It will not return anything higher than or including the current focus layer.\n *\n * @param shape - The shape to get the outermost selectable shape for.\n *\n * @param filter - A function to filter the selectable shapes.\n *\n * @returns The outermost selectable shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getOutermostSelectableShape(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", filter?: "
+ },
+ {
+ "kind": "Content",
+ "text": "(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "filter",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getOutermostSelectableShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getPage:member(1)",
+ "docComment": "/**\n * Get a page.\n *\n * @param page - The page (or page id) to get.\n *\n * @example\n * ```ts\n * editor.getPage(myPage.id)\n * editor.getPage(myPage)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getPage(page: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "page",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getPages:member(1)",
+ "docComment": "/**\n * Info about the project's current pages.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getPages(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage: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": "getPages"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getPageShapeIds:member(1)",
+ "docComment": "/**\n * Get the ids of shapes on a page.\n *\n * @param page - The page (or page id) to get.\n *\n * @example\n * ```ts\n * const idsOnPage1 = editor.getPageShapeIds('page1')\n * const idsOnPage2 = editor.getPageShapeIds(myPage2)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getPageShapeIds(page: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Set",
+ "canonicalReference": "!Set:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "page",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getPageShapeIds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getPageStates:member(1)",
+ "docComment": "/**\n * Page states.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getPageStates(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLInstancePageState",
+ "canonicalReference": "@tldraw/tlschema!TLInstancePageState: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": "getPageStates"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getPath:member(1)",
+ "docComment": "/**\n * The editor's current path of active states.\n *\n * @example\n * ```ts\n * editor.getPath() // \"select.idle\"\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getPath(): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getPath"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getPointInParentSpace:member(1)",
+ "docComment": "/**\n * Convert a delta in the current page space to a point in the local space of a shape's parent.\n *\n * @param shape - The shape to get the point in the local space of.\n *\n * @param point - The page point to get in the local space of the shape.\n *\n * @example\n * ```ts\n * editor.getPointInParentSpace(myShape.id, { x: 100, y: 100 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getPointInParentSpace(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getPointInParentSpace"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getPointInShapeSpace:member(1)",
+ "docComment": "/**\n * Convert a point in the current page space to a point in the local space of a shape. For example, if a shape's page point were `{ x: 100, y: 100 }`, a page point at `{ x: 110, y: 110 }` would be at `{ x: 10, y: 10 }` in the shape's local space.\n *\n * @param shape - The shape to get the point in the local space of.\n *\n * @param point - The page point to get in the local space of the shape.\n *\n * @example\n * ```ts\n * editor.getPointInShapeSpace(myShape, { x: 100, y: 100 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getPointInShapeSpace(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getPointInShapeSpace"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getRenderingBounds:member(1)",
+ "docComment": "/**\n * The current rendering bounds in the current page space, used for checking which shapes are \"on screen\".\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getRenderingBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getRenderingBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getRenderingBoundsExpanded:member(1)",
+ "docComment": "/**\n * The current rendering bounds in the current page space, expanded slightly. Used for determining which shapes to render and which to \"cull\".\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getRenderingBoundsExpanded(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getRenderingBoundsExpanded"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getRenderingShapes:member(1)",
+ "docComment": "/**\n * Get the shapes that should be displayed in the current viewport.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getRenderingShapes(): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n id: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n util: "
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeUtil",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUnknownShape",
+ "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">;\n index: number;\n backgroundIndex: number;\n opacity: number;\n }[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getRenderingShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSelectedShapeAtPoint:member(1)",
+ "docComment": "/**\n * Get the top-most selected shape at the given point, ignoring groups.\n *\n * @param point - The point to check.\n *\n * @returns The top-most selected shape at the given point, or undefined if there is no shape at the point.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelectedShapeAtPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSelectedShapeAtPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSelectedShapeIds:member(1)",
+ "docComment": "/**\n * The current selected ids.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelectedShapeIds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "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": "getSelectedShapeIds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSelectedShapes:member(1)",
+ "docComment": "/**\n * An array containing all of the currently selected shapes.\n *\n * @public @readonly\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelectedShapes(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "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": "getSelectedShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSelectionPageBounds:member(1)",
+ "docComment": "/**\n * The current page bounds of all the selected shapes. If the selection is rotated, then these bounds are the axis-aligned box that the rotated bounds would fit inside of.\n *\n * @readonly @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelectionPageBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | null"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSelectionPageBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSelectionRotatedPageBounds:member(1)",
+ "docComment": "/**\n * The bounds of the selection bounding box in the current page space.\n *\n * @readonly @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelectionRotatedPageBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSelectionRotatedPageBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSelectionRotatedScreenBounds:member(1)",
+ "docComment": "/**\n * The bounds of the selection bounding box in the current page space.\n *\n * @readonly @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelectionRotatedScreenBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSelectionRotatedScreenBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSelectionRotation:member(1)",
+ "docComment": "/**\n * The rotation of the selection bounding box in the current page space.\n *\n * @readonly @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelectionRotation(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSelectionRotation"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShape:member(1)",
+ "docComment": "/**\n * Get a shape by its id.\n *\n * @param id - The id of the shape to get.\n *\n * @example\n * ```ts\n * editor.getShape('box1')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShape(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLParentId",
+ "canonicalReference": "@tldraw/tlschema!TLParentId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "T | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeAncestors:member(1)",
+ "docComment": "/**\n * Get the ancestors of a shape.\n *\n * @param shape - The shape (or shape id) to get the ancestors for.\n *\n * @example\n * ```ts\n * const ancestors = editor.getShapeAncestors(myShape)\n * const ancestors = editor.getShapeAncestors(myShapeId)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeAncestors(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", acc?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "acc",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeAncestors"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeAndDescendantIds:member(1)",
+ "docComment": "/**\n * Get the shape ids of all descendants of the given shapes (including the shapes themselves).\n *\n * @param ids - The ids of the shapes to get descendants of.\n *\n * @returns The decscendant ids.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeAndDescendantIds(ids: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Set",
+ "canonicalReference": "!Set:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "ids",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeAndDescendantIds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeAtPoint:member(1)",
+ "docComment": "/**\n * Get the shape at the current point.\n *\n * @param point - The point to check.\n *\n * @param opts - Options for the check: `hitInside` to check if the point is inside the shape, `margin` to check if the point is within a margin of the shape, `hitFrameInside` to check if the point is inside the frame, and `filter` to filter the shapes to check.\n *\n * @returns The shape at the given point, or undefined if there is no shape at the point.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeAtPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", opts?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n renderingOnly?: boolean | undefined;\n margin?: number | undefined;\n hitInside?: boolean | undefined;\n hitLabels?: boolean | undefined;\n hitFrameInside?: boolean | undefined;\n filter?: ((shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => boolean) | undefined;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeAtPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeClipPath:member(1)",
+ "docComment": "/**\n * Get the clip path for a shape.\n *\n * @param shape - The shape (or shape id) to get the clip path for.\n *\n * @returns The clip path or undefined.\n *\n * @example\n * ```ts\n * const clipPath = editor.getShapeClipPath(shape)\n * const clipPath = editor.getShapeClipPath(shape.id)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeClipPath(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "string | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeClipPath"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeGeometry:member(1)",
+ "docComment": "/**\n * Get the geometry of a shape.\n *\n * @param shape - The shape (or shape id) to get the geometry for.\n *\n * @example\n * ```ts\n * editor.getShapeGeometry(myShape)\n * editor.getShapeGeometry(myShapeId)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeGeometry(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "T"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeGeometry"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeHandles:member(1)",
+ "docComment": "/**\n * Get the handles (if any) for a shape.\n *\n * @param shape - The shape (or shape id) to get the handles for.\n *\n * @example\n * ```ts\n * editor.getShapeHandles(myShape)\n * editor.getShapeHandles(myShapeId)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeHandles(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "T | T['id']"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLHandle",
+ "canonicalReference": "@tldraw/tlschema!TLHandle:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeHandles"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeLocalTransform:member(1)",
+ "docComment": "/**\n * Get the local transform for a shape as a matrix model. This transform reflects both its translation (x, y) from from either its parent's top left corner, if the shape's parent is another shape, or else from the 0,0 of the page, if the shape's parent is the page; and the shape's rotation.\n *\n * @param shape - The shape to get the local transform for.\n *\n * @example\n * ```ts\n * editor.getShapeLocalTransform(myShape)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeLocalTransform(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeLocalTransform"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeMask:member(1)",
+ "docComment": "/**\n * Get the mask (in the current page space) for a shape.\n *\n * @param id - The id of the shape to get the mask for.\n *\n * @returns The mask for the shape.\n *\n * @example\n * ```ts\n * const pageMask = editor.getShapeMask(shape.id)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeMask(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "undefined | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeMask"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeMaskedPageBounds:member(1)",
+ "docComment": "/**\n * Get the bounds of a shape in the current page space, incorporating any masks. For example, if the shape were the child of a frame and was half way out of the frame, the bounds would be the half of the shape that was in the frame.\n *\n * @param shape - The shape to get the masked bounds for.\n *\n * @example\n * ```ts\n * editor.getShapeMaskedPageBounds(myShape)\n * editor.getShapeMaskedPageBounds(myShapeId)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeMaskedPageBounds(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeMaskedPageBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapePageBounds:member(1)",
+ "docComment": "/**\n * Get the bounds of a shape in the current page space.\n *\n * @param shape - The shape (or shape id) to get the bounds for.\n *\n * @example\n * ```ts\n * editor.getShapePageBounds(myShape)\n * editor.getShapePageBounds(myShapeId)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapePageBounds(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapePageBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapePageTransform:member(1)",
+ "docComment": "/**\n * Get the transform of a shape in the current page space.\n *\n * @param shape - The shape (or shape id) to get the page transform for.\n *\n * @example\n * ```ts\n * editor.getShapePageTransform(myShape)\n * editor.getShapePageTransform(myShapeId)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapePageTransform(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapePageTransform"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeParent:member(1)",
+ "docComment": "/**\n * Get the parent shape for a given shape. Returns undefined if the shape is the direct child of the page.\n *\n * @example\n * ```ts\n * editor.getShapeParent(myShape)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeParent(shape?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeParent"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeParentTransform:member(1)",
+ "docComment": "/**\n * Get the local transform of a shape's parent as a matrix model.\n *\n * @param shape - The shape (or shape id) to get the parent transform for.\n *\n * @example\n * ```ts\n * editor.getShapeParentTransform(myShape)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeParentTransform(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeParentTransform"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapesAtPoint:member(1)",
+ "docComment": "/**\n * Get the shapes, if any, at a given page point.\n *\n * @param point - The page point to test.\n *\n * @example\n * ```ts\n * editor.getShapesAtPoint({ x: 100, y: 100 })\n * editor.getShapesAtPoint({ x: 100, y: 100 }, { hitInside: true, exact: true })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapesAtPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", opts?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n margin?: number | undefined;\n hitInside?: boolean | undefined;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapesAtPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeStyleIfExists:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeStyleIfExists(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", style: "
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "T | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "style",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeStyleIfExists"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeUtil:member(1)",
+ "docComment": "/**\n * Get a shape util from a shape itself.\n *\n * @param shape - A shape, shape partial, or shape type.\n *\n * @example\n * ```ts\n * const util = editor.getShapeUtil(myArrowShape)\n * const util = editor.getShapeUtil('arrow')\n * const util = editor.getShapeUtil(myArrowShape)\n * const util = editor.getShapeUtil(TLArrowShape)('arrow')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeUtil(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "S | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePartial",
+ "canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeUtil",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "S",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeUtil"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeUtil:member(2)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeUtil(type: "
+ },
+ {
+ "kind": "Content",
+ "text": "S['type']"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeUtil",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "S",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 2,
+ "parameters": [
+ {
+ "parameterName": "type",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeUtil"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getShapeUtil:member(3)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getShapeUtil(type: "
+ },
+ {
+ "kind": "Content",
+ "text": "T extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeUtil",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": " ? R['type'] : string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "T"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 3,
+ "parameters": [
+ {
+ "parameterName": "type",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getShapeUtil"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSharedOpacity:member(1)",
+ "docComment": "/**\n * Get the currently selected shared opacity. If any shapes are selected, this returns the shared opacity of the selected shapes. Otherwise, this returns the chosen opacity for the next shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSharedOpacity(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "SharedStyle",
+ "canonicalReference": "@tldraw/editor!SharedStyle:type"
+ },
+ {
+ "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": "getSharedOpacity"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSharedStyles:member(1)",
+ "docComment": "/**\n * A map of all the current styles either in the current selection, or that are relevant to the current tool.\n *\n * @example\n * ```ts\n * const color = editor.getSharedStyles().get(DefaultColorStyle)\n * if (color && color.type === 'shared') {\n * print('All selected shapes have the same color:', color.value)\n * }\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSharedStyles(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "ReadonlySharedStyleMap",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSharedStyles"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSortedChildIdsForParent:member(1)",
+ "docComment": "/**\n * Get an array of all the children of a shape.\n *\n * @param parentId - The id of the parent shape.\n *\n * @example\n * ```ts\n * editor.getSortedChildIdsForParent('frame1')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSortedChildIdsForParent(parent: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLParentId",
+ "canonicalReference": "@tldraw/tlschema!TLParentId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "parent",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSortedChildIdsForParent"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getStateDescendant:member(1)",
+ "docComment": "/**\n * Get a descendant by its path.\n *\n * @param path - The descendant's path of state ids, separated by periods.\n *\n * @example\n * ```ts\n * state.getStateDescendant('select')\n * state.getStateDescendant('select.brushing')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getStateDescendant(path: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "T | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "path",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getStateDescendant"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getStyleForNextShape:member(1)",
+ "docComment": "/**\n * Get the style for the next shape.\n *\n * @param style - The style to get.\n *\n * @example\n * ```ts\n * const color = editor.getStyleForNextShape(DefaultColorStyle)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getStyleForNextShape(style: "
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "T"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "style",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getStyleForNextShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSvg:member(1)",
+ "docComment": "/**\n * @deprecated\n *\n * Use {@link Editor.getSvgString} instead\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSvg(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "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": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "SVGSVGElement",
+ "canonicalReference": "!SVGSVGElement:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 11,
+ "endIndex": 15
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 10
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSvg"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getSvgString:member(1)",
+ "docComment": "/**\n * Get an exported SVG string of the given shapes.\n *\n * @param ids - The shapes (or shape ids) to export.\n *\n * @param opts - Options for the export.\n *\n * @returns The SVG element.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSvgString(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "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": "<{\n svg: string;\n width: number;\n height: number;\n } | undefined>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 11,
+ "endIndex": 13
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 10
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getSvgString"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getViewportPageBounds:member(1)",
+ "docComment": "/**\n * The current viewport in the current page space.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getViewportPageBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getViewportPageBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getViewportPageCenter:member(1)",
+ "docComment": "/**\n * The center of the viewport in the current page space.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getViewportPageCenter(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getViewportPageCenter"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getViewportScreenBounds:member(1)",
+ "docComment": "/**\n * The bounds of the editor's viewport in screen space.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getViewportScreenBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getViewportScreenBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getViewportScreenCenter:member(1)",
+ "docComment": "/**\n * The center of the editor's viewport in screen space.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getViewportScreenCenter(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getViewportScreenCenter"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#getZoomLevel:member(1)",
+ "docComment": "/**\n * The current camera zoom level.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getZoomLevel(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getZoomLevel"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#groupShapes:member(1)",
+ "docComment": "/**\n * Create a group containing the provided shapes.\n *\n * @param shapes - The shapes (or shape ids) to group. Defaults to the selected shapes.\n *\n * @param groupId - The id of the group to create.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "groupShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", groupId?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "groupId",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "groupShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#hasAncestor:member(1)",
+ "docComment": "/**\n * Returns true if the the given shape has the given ancestor.\n *\n * @param shape - The shape.\n *\n * @param ancestorId - The id of the ancestor.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hasAncestor(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ", ancestorId: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "ancestorId",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hasAncestor"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#history:member",
+ "docComment": "/**\n * A manager for the app's history.\n *\n * @readonly\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly history: "
+ },
+ {
+ "kind": "Reference",
+ "text": "HistoryManager",
+ "canonicalReference": "@tldraw/editor!~HistoryManager:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "history",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#inputs:member",
+ "docComment": "/**\n * The app's current input state.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "inputs: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n originPagePoint: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n originScreenPoint: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n previousPagePoint: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n previousScreenPoint: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n currentPagePoint: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n currentScreenPoint: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n keys: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Set",
+ "canonicalReference": "!Set:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n buttons: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Set",
+ "canonicalReference": "!Set:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n isPen: boolean;\n shiftKey: boolean;\n ctrlKey: boolean;\n altKey: boolean;\n isDragging: boolean;\n isPointing: boolean;\n isPinching: boolean;\n isEditing: boolean;\n isPanning: boolean;\n pointerVelocity: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "inputs",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 20
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#interrupt:member(1)",
+ "docComment": "/**\n * Dispatch an interrupt event.\n *\n * @example\n * ```ts\n * editor.interrupt()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "interrupt(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "interrupt"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isAncestorSelected:member(1)",
+ "docComment": "/**\n * Determine whether or not any of a shape's ancestors are selected.\n *\n * @param id - The id of the shape to check.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isAncestorSelected(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isAncestorSelected"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isIn:member(1)",
+ "docComment": "/**\n * Get whether a certain tool (or other state node) is currently active.\n *\n * @param path - The path of active states, separated by periods.\n *\n * @example\n * ```ts\n * editor.isIn('select')\n * editor.isIn('select.brushing')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isIn(path: "
+ },
+ {
+ "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": "path",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isIn"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isInAny:member(1)",
+ "docComment": "/**\n * Get whether the state node is in any of the given active paths.\n *\n * @example\n * ```ts\n * state.isInAny('select', 'erase')\n * state.isInAny('select.brushing', 'erase.idle')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isInAny(...paths: "
+ },
+ {
+ "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": "paths",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isInAny"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isPointInShape:member(1)",
+ "docComment": "/**\n * Test whether a point (in the current page space) will will a shape. This method takes into account masks, such as when a shape is the child of a frame and is partially clipped by the frame.\n *\n * @param shape - The shape to test against.\n *\n * @param point - The page point to test (in the current page space).\n *\n * @param hitInside - Whether to count as a hit if the point is inside of a closed shape.\n *\n * @example\n * ```ts\n * editor.isPointInShape({ x: 100, y: 100 }, myShape)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isPointInShape(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", opts?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n margin?: number | undefined;\n hitInside?: boolean | undefined;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isPointInShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isShapeCulled:member(1)",
+ "docComment": "/**\n * Get whether the shape is culled or not.\n *\n * @param shape - The shape (or shape id) to get the culled info for.\n *\n * @example\n * ```ts\n * editor.isShapeCulled(myShape)\n * editor.isShapeCulled(myShapeId)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isShapeCulled(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isShapeCulled"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isShapeInPage:member(1)",
+ "docComment": "/**\n * Get whether the given shape is the descendant of the given page.\n *\n * @param shape - The shape to check.\n *\n * @param pageId - The id of the page to check against. Defaults to the current page.\n *\n * @example\n * ```ts\n * editor.isShapeInPage(myShape)\n * editor.isShapeInPage(myShape, 'page1')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isShapeInPage(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", pageId?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "pageId",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isShapeInPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isShapeOfType:member(1)",
+ "docComment": "/**\n * Get whether a shape matches the type of a TLShapeUtil.\n *\n * @param util - the TLShapeUtil constructor to test against\n *\n * @param shape - the shape to test\n *\n * @example\n * ```ts\n * const isArrowShape = isShapeOfType(someShape, 'arrow')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isShapeOfType(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUnknownShape",
+ "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", type: "
+ },
+ {
+ "kind": "Content",
+ "text": "T['type']"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "shape",
+ "canonicalReference": "@tldraw/editor!~shape"
+ },
+ {
+ "kind": "Content",
+ "text": " is T"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "type",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isShapeOfType"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isShapeOfType:member(2)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isShapeOfType(shapeId: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUnknownShape",
+ "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "['id']"
+ },
+ {
+ "kind": "Content",
+ "text": ", type: "
+ },
+ {
+ "kind": "Content",
+ "text": "T['type']"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "shapeId",
+ "canonicalReference": "@tldraw/editor!~shapeId"
+ },
+ {
+ "kind": "Content",
+ "text": " is T['id']"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 2,
+ "parameters": [
+ {
+ "parameterName": "shapeId",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "type",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isShapeOfType"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isShapeOrAncestorLocked:member(1)",
+ "docComment": "/**\n * Check whether a shape or its parent is locked.\n *\n * @param shape - The shape (or shape id) to check.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isShapeOrAncestorLocked(shape?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "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": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isShapeOrAncestorLocked"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#isShapeOrAncestorLocked:member(2)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isShapeOrAncestorLocked(id?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 2,
+ "parameters": [
+ {
+ "parameterName": "id",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isShapeOrAncestorLocked"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#mark:member(1)",
+ "docComment": "/**\n * Create a new \"mark\", or stopping point, in the undo redo history. Creating a mark will clear any redos.\n *\n * @param markId - The mark's id, usually the reason for adding the mark.\n *\n * @param onUndo - Whether to stop at the mark when undoing.\n *\n * @param onRedo - Whether to stop at the mark when redoing.\n *\n * @example\n * ```ts\n * editor.mark()\n * editor.mark('flip shapes')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "mark(markId?: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ", onUndo?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ", onRedo?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "markId",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "onUndo",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "onRedo",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "mark"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#moveShapesToPage:member(1)",
+ "docComment": "/**\n * Move shapes to page.\n *\n * @param shapes - The shapes (or shape ids) of the shapes to move.\n *\n * @param pageId - The id of the page where the shapes will be moved.\n *\n * @example\n * ```ts\n * editor.moveShapesToPage(['box1', 'box2'], 'page1')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "moveShapesToPage(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", pageId: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "pageId",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "moveShapesToPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#nudgeShapes:member(1)",
+ "docComment": "/**\n * Move shapes by a delta.\n *\n * @param shapes - The shapes (or shape ids) to move.\n *\n * @param direction - The direction in which to move the shapes.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.nudgeShapes(['box1', 'box2'], { x: 8, y: 8 })\n * editor.nudgeShapes(editor.getSelectedShapes(), { x: 8, y: 8 }, { squashing: true })\n * ```\n *\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nudgeShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", offset: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "offset",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nudgeShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#packShapes:member(1)",
+ "docComment": "/**\n * Pack shapes into a grid centered on their current position. Based on potpack (https://github.com/mapbox/potpack).\n *\n * @param shapes - The shapes (or shape ids) to pack.\n *\n * @param gap - The padding to apply to the packed shapes. Defaults to 16.\n *\n * @example\n * ```ts\n * editor.packShapes([box1, box2], 32)\n * editor.packShapes(editor.getSelectedShapeIds(), 32)\n * ```\n *\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "packShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", gap: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "gap",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "packShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#pageToScreen:member(1)",
+ "docComment": "/**\n * Convert a point in the current page space to a point in current screen space.\n *\n * @param point - The point in page space.\n *\n * @example\n * ```ts\n * editor.pageToScreen({ x: 100, y: 100 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "pageToScreen(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n x: number;\n y: number;\n z: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "pageToScreen"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#pageToViewport:member(1)",
+ "docComment": "/**\n * Convert a point in the current page space to a point in current viewport space.\n *\n * @param point - The point in page space.\n *\n * @example\n * ```ts\n * editor.pageToViewport({ x: 100, y: 100 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "pageToViewport(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n x: number;\n y: number;\n z: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "pageToViewport"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#pan:member(1)",
+ "docComment": "/**\n * Pan the camera.\n *\n * @param offset - The offset in the current page space.\n *\n * @param animation - The animation options.\n *\n * @example\n * ```ts\n * editor.pan({ x: 100, y: 100 })\n * editor.pan({ x: 100, y: 100 }, { duration: 1000 })\n * ```\n *\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "pan(offset: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "offset",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "pan"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#panZoomIntoView:member(1)",
+ "docComment": "/**\n * Pan or pan/zoom the selected ids into view. This method tries to not change the zoom if possible.\n *\n * @param ids - The ids of the shapes to pan and zoom into view.\n *\n * @param animation - The options for an animation.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "panZoomIntoView(ids: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "ids",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "panZoomIntoView"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#popFocusedGroupId:member(1)",
+ "docComment": "/**\n * Exit the current focused group, moving up to the next parent group if there is one.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "popFocusedGroupId(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "popFocusedGroupId"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#putContentOntoCurrentPage:member(1)",
+ "docComment": "/**\n * Place content into the editor.\n *\n * @param content - The content.\n *\n * @param options - Options for placing the content.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "putContentOntoCurrentPage(content: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLContent",
+ "canonicalReference": "@tldraw/editor!TLContent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", options?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n point?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n select?: boolean;\n preservePosition?: boolean;\n preserveIds?: boolean;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "content",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "options",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "putContentOntoCurrentPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#putExternalContent:member(1)",
+ "docComment": "/**\n * Handle external content, such as files, urls, embeds, or plain text which has been put into the app, for example by pasting external text or dropping external images onto canvas.\n *\n * @param info - Info about the external content.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "putExternalContent(info: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLExternalContent",
+ "canonicalReference": "@tldraw/editor!TLExternalContent:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Promise",
+ "canonicalReference": "!Promise:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "info",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "putExternalContent"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#redo:member(1)",
+ "docComment": "/**\n * Redo to the next mark.\n *\n * @example\n * ```ts\n * editor.redo()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "redo(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "redo"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#registerExternalAssetHandler:member(1)",
+ "docComment": "/**\n * Register an external content handler. This handler will be called when the editor receives external content of the provided type. For example, the 'image' type handler will be called when a user drops an image onto the canvas.\n *\n * @param type - The type of external content.\n *\n * @param handler - The handler to use for this content type.\n *\n * @example\n * ```ts\n * editor.registerExternalAssetHandler('text', myHandler)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "registerExternalAssetHandler(type: "
+ },
+ {
+ "kind": "Content",
+ "text": "T"
+ },
+ {
+ "kind": "Content",
+ "text": ", handler: "
+ },
+ {
+ "kind": "Content",
+ "text": "((info: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLExternalAssetContent",
+ "canonicalReference": "@tldraw/editor!TLExternalAssetContent:type"
+ },
+ {
+ "kind": "Content",
+ "text": " & {\n type: T;\n }) => "
+ },
+ {
+ "kind": "Reference",
+ "text": "Promise",
+ "canonicalReference": "!Promise:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAsset",
+ "canonicalReference": "@tldraw/tlschema!TLAsset:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">) | null"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 14,
+ "endIndex": 15
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "type",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "handler",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 13
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "registerExternalAssetHandler"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#registerExternalContentHandler:member(1)",
+ "docComment": "/**\n * Register an external content handler. This handler will be called when the editor receives external content of the provided type. For example, the 'image' type handler will be called when a user drops an image onto the canvas.\n *\n * @param type - The type of external content.\n *\n * @param handler - The handler to use for this content type.\n *\n * @example\n * ```ts\n * editor.registerExternalContentHandler('text', myHandler)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "registerExternalContentHandler(type: "
+ },
+ {
+ "kind": "Content",
+ "text": "T"
+ },
+ {
+ "kind": "Content",
+ "text": ", handler: "
+ },
+ {
+ "kind": "Content",
+ "text": "((info: T extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLExternalContent",
+ "canonicalReference": "@tldraw/editor!TLExternalContent:type"
+ },
+ {
+ "kind": "Content",
+ "text": "['type'] ? "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLExternalContent",
+ "canonicalReference": "@tldraw/editor!TLExternalContent:type"
+ },
+ {
+ "kind": "Content",
+ "text": " & {\n type: T;\n } : "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLExternalContent",
+ "canonicalReference": "@tldraw/editor!TLExternalContent:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => void) | null"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 14,
+ "endIndex": 15
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "type",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "handler",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 13
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "registerExternalContentHandler"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#renamePage:member(1)",
+ "docComment": "/**\n * Rename a page.\n *\n * @param id - The id of the page to rename.\n *\n * @param name - The new name.\n *\n * @example\n * ```ts\n * editor.renamePage('page1', 'My Page')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "renamePage(page: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", name: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "page",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "name",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "renamePage"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#renderingBoundsMargin:member",
+ "docComment": "/**\n * The distance to expand the viewport when measuring culling. A larger distance will mean that shapes near to the viewport (but still outside of it) will not be culled.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "renderingBoundsMargin: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "renderingBoundsMargin",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#reparentShapes:member(1)",
+ "docComment": "/**\n * Reparent shapes to a new parent. This operation preserves the shape's current page positions / rotations.\n *\n * @param shapes - The shapes (or shape ids) of the shapes to reparent.\n *\n * @param parentId - The id of the new parent shape.\n *\n * @param insertIndex - The index to insert the children.\n *\n * @example\n * ```ts\n * editor.reparentShapes([box1, box2], 'frame1')\n * editor.reparentShapes([box1.id, box2.id], 'frame1')\n * editor.reparentShapes([box1.id, box2.id], 'frame1', 4)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "reparentShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", parentId: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLParentId",
+ "canonicalReference": "@tldraw/tlschema!TLParentId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", insertIndex?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "IndexKey",
+ "canonicalReference": "@tldraw/utils!IndexKey:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "parentId",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "insertIndex",
+ "parameterTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "reparentShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#resetZoom:member(1)",
+ "docComment": "/**\n * Set the zoom back to 100%.\n *\n * @param point - The screen point to zoom out on. Defaults to the viewport screen center.\n *\n * @param animation - The options for an animation.\n *\n * @example\n * ```ts\n * editor.resetZoom()\n * editor.resetZoom(editor.getViewportScreenCenter(), { duration: 200 })\n * editor.resetZoom(editor.getViewportScreenCenter(), { duration: 200 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "resetZoom(point?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "resetZoom"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#resizeShape:member(1)",
+ "docComment": "/**\n * Resize a shape.\n *\n * @param id - The id of the shape to resize.\n *\n * @param scale - The scale factor to apply to the shape.\n *\n * @param options - Additional options.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "resizeShape(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", scale: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", options?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLResizeShapeOptions",
+ "canonicalReference": "@tldraw/editor!TLResizeShapeOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "scale",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "options",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "resizeShape"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#root:member",
+ "docComment": "/**\n * The root state of the statechart.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly root: "
+ },
+ {
+ "kind": "Reference",
+ "text": "RootState",
+ "canonicalReference": "@tldraw/editor!~RootState:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "root",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#rotateShapesBy:member(1)",
+ "docComment": "/**\n * Rotate shapes by a delta in radians. Note: Currently, this assumes that the shapes are your currently selected shapes.\n *\n * @param shapes - The shapes (or shape ids) of the shapes to move.\n *\n * @param delta - The delta in radians to apply to the selection rotation.\n *\n * @example\n * ```ts\n * editor.rotateShapesBy(editor.getSelectedShapeIds(), Math.PI)\n * editor.rotateShapesBy(editor.getSelectedShapeIds(), Math.PI / 2)\n * ```\n *\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "rotateShapesBy(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", delta: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "delta",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "rotateShapesBy"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#screenToPage:member(1)",
+ "docComment": "/**\n * Convert a point in screen space to a point in the current page space.\n *\n * @param point - The point in screen space.\n *\n * @example\n * ```ts\n * editor.screenToPage({ x: 100, y: 100 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "screenToPage(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n x: number;\n y: number;\n z: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "screenToPage"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#scribbles:member",
+ "docComment": "/**\n * A manager for the editor's scribbles.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly scribbles: "
+ },
+ {
+ "kind": "Reference",
+ "text": "ScribbleManager",
+ "canonicalReference": "@tldraw/editor!~ScribbleManager:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "scribbles",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#select:member(1)",
+ "docComment": "/**\n * Select one or more shapes.\n *\n * @param ids - The ids to select.\n *\n * @example\n * ```ts\n * editor.select('id1')\n * editor.select('id1', 'id2')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "select(...shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "select"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#selectAll:member(1)",
+ "docComment": "/**\n * Select all direct children of the current page.\n *\n * @example\n * ```ts\n * editor.selectAll()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "selectAll(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "selectAll"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#selectNone:member(1)",
+ "docComment": "/**\n * Clear the selection.\n *\n * @example\n * ```ts\n * editor.selectNone()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "selectNone(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "selectNone"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#sendBackward:member(1)",
+ "docComment": "/**\n * Send shapes backward in the page's object list.\n *\n * @param shapes - The shapes (or shape ids) to move.\n *\n * @example\n * ```ts\n * editor.sendBackward(['id1', 'id2'])\n * editor.sendBackward([box1, box2])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "sendBackward(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "sendBackward"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#sendToBack:member(1)",
+ "docComment": "/**\n * Send shapes to the back of the page's object list.\n *\n * @param shapes - The shapes (or shape ids) to move.\n *\n * @example\n * ```ts\n * editor.sendToBack(['id1', 'id2'])\n * editor.sendToBack(box1, box2)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "sendToBack(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "sendToBack"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setCamera:member(1)",
+ "docComment": "/**\n * Set the current camera.\n *\n * @param point - The new camera position.\n *\n * @param animation - Options for an animation.\n *\n * @example\n * ```ts\n * editor.setCamera({ x: 0, y: 0})\n * editor.setCamera({ x: 0, y: 0, z: 1.5})\n * editor.setCamera({ x: 0, y: 0, z: 1.5}, { duration: 1000, easing: (t) => t * t })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setCamera(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setCamera"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setCroppingShape:member(1)",
+ "docComment": "/**\n * Set the current cropping shape.\n *\n * @param shape - The shape (or shape id) to set as cropping.\n *\n * @example\n * ```ts\n * editor.setCroppingShape(myShape)\n * editor.setCroppingShape(myShape.id)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setCroppingShape(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setCroppingShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setCurrentPage:member(1)",
+ "docComment": "/**\n * Set the current page.\n *\n * @param page - The page (or page id) to set as the current page.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.setCurrentPage('page1')\n * editor.setCurrentPage(myPage1)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setCurrentPage(page: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPageId",
+ "canonicalReference": "@tldraw/tlschema!TLPageId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "page",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setCurrentPage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setCurrentTool:member(1)",
+ "docComment": "/**\n * Set the selected tool.\n *\n * @param id - The id of the tool to select.\n *\n * @param info - Arbitrary data to pass along into the transition.\n *\n * @example\n * ```ts\n * editor.setCurrentTool('hand')\n * editor.setCurrentTool('hand', { date: Date.now() })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setCurrentTool(id: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ", info?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{}"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "id",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "info",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setCurrentTool"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#setCursor:member",
+ "docComment": "/**\n * Set the cursor.\n *\n * @param type - The cursor type.\n *\n * @param rotation - The cursor rotation.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setCursor: "
+ },
+ {
+ "kind": "Content",
+ "text": "(cursor: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCursor",
+ "canonicalReference": "@tldraw/tlschema!TLCursor:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">) => this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "setCursor",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setEditingShape:member(1)",
+ "docComment": "/**\n * Set the current editing shape.\n *\n * @param shape - The shape (or shape id) to set as editing.\n *\n * @example\n * ```ts\n * editor.setEditingShape(myShape)\n * editor.setEditingShape(myShape.id)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setEditingShape(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setEditingShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setErasingShapes:member(1)",
+ "docComment": "/**\n * Set the editor's current erasing shapes.\n *\n * @param shapes - The shapes (or shape ids) to set as hinting.\n *\n * @example\n * ```ts\n * editor.setErasingShapes([myShape])\n * editor.setErasingShapes([myShape.id])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setErasingShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setErasingShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setFocusedGroup:member(1)",
+ "docComment": "/**\n * Set the current focused group shape.\n *\n * @param shape - The group shape id (or group shape's id) to set as the focused group shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setFocusedGroup(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setFocusedGroup"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setHintingShapes:member(1)",
+ "docComment": "/**\n * Set the editor's current hinting shapes.\n *\n * @param shapes - The shapes (or shape ids) to set as hinting.\n *\n * @example\n * ```ts\n * editor.setHintingShapes([myShape])\n * editor.setHintingShapes([myShape.id])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setHintingShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setHintingShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setHoveredShape:member(1)",
+ "docComment": "/**\n * Set the editor's current hovered shape.\n *\n * @param shapes - The shape (or shape id) to set as hovered.\n *\n * @example\n * ```ts\n * editor.setHoveredShape(myShape)\n * editor.setHoveredShape(myShape.id)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setHoveredShape(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setHoveredShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setOpacityForNextShapes:member(1)",
+ "docComment": "/**\n * Set the opacity for the next shapes. This will effect subsequently created shapes.\n *\n * @param opacity - The opacity to set. Must be a number between 0 and 1 inclusive.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.setOpacityForNextShapes(0.5)\n * editor.setOpacityForNextShapes(0.5, { squashing: true })\n * ```\n *\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setOpacityForNextShapes(opacity: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "opacity",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setOpacityForNextShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setOpacityForSelectedShapes:member(1)",
+ "docComment": "/**\n * Set the current opacity. This will effect any selected shapes.\n *\n * @param opacity - The opacity to set. Must be a number between 0 and 1 inclusive.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.setOpacityForSelectedShapes(0.5)\n * editor.setOpacityForSelectedShapes(0.5, { squashing: true })\n * ```\n *\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setOpacityForSelectedShapes(opacity: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "opacity",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setOpacityForSelectedShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setSelectedShapes:member(1)",
+ "docComment": "/**\n * Select one or more shapes.\n *\n * @param ids - The ids to select.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.setSelectedShapes(['id1'])\n * editor.setSelectedShapes(['id1', 'id2'])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setSelectedShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setSelectedShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setStyleForNextShapes:member(1)",
+ "docComment": "/**\n * Set the value of a {@link @tldraw/tlschema#StyleProp} for the next shapes. This change will be applied to subsequently created shapes.\n *\n * @param style - The style to set.\n *\n * @param value - The value to set.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.setStyleForNextShapes(DefaultColorStyle, 'red')\n * editor.setStyleForNextShapes(DefaultColorStyle, 'red', { ephemeral: true })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setStyleForNextShapes(style: "
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ", value: "
+ },
+ {
+ "kind": "Content",
+ "text": "T"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "style",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "value",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setStyleForNextShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#setStyleForSelectedShapes:member(1)",
+ "docComment": "/**\n * Set the value of a {@link @tldraw/tlschema#StyleProp}. This change will be applied to the currently selected shapes.\n *\n * @param style - The style to set.\n *\n * @param value - The value to set.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.setStyleForSelectedShapes(DefaultColorStyle, 'red')\n * editor.setStyleForSelectedShapes(DefaultColorStyle, 'red', { ephemeral: true })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setStyleForSelectedShapes"
+ },
+ {
+ "kind": "Content",
+ "text": ">(style: "
+ },
+ {
+ "kind": "Content",
+ "text": "S"
+ },
+ {
+ "kind": "Content",
+ "text": ", value: "
+ },
+ {
+ "kind": "Reference",
+ "text": "StylePropValue",
+ "canonicalReference": "@tldraw/tlschema!StylePropValue:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "S",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 11,
+ "endIndex": 12
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "style",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "value",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 8
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setStyleForSelectedShapes"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#shapeUtils:member",
+ "docComment": "/**\n * A map of shape utility classes (TLShapeUtils) by shape type.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "shapeUtils: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n readonly [K in string]?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeUtil",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUnknownShape",
+ "canonicalReference": "@tldraw/tlschema!TLUnknownShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "shapeUtils",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#sideEffects:member",
+ "docComment": "/**\n * A manager for side effects and correct state enforcement. See {@link SideEffectManager} for details.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly sideEffects: "
+ },
+ {
+ "kind": "Reference",
+ "text": "SideEffectManager",
+ "canonicalReference": "@tldraw/editor!SideEffectManager:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "sideEffects",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#slideCamera:member(1)",
+ "docComment": "/**\n * Slide the camera in a certain direction.\n *\n * @param opts - Options for the slide\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "slideCamera(opts?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n speed: number;\n direction: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n friction: number;\n speedThreshold?: number | undefined;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "slideCamera"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#snaps:member",
+ "docComment": "/**\n * A manager for the app's snapping feature.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly snaps: "
+ },
+ {
+ "kind": "Reference",
+ "text": "SnapManager",
+ "canonicalReference": "@tldraw/editor!SnapManager:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "snaps",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#stackShapes:member(1)",
+ "docComment": "/**\n * Stack shape.\n *\n * @param shapes - The shapes (or shape ids) to stack.\n *\n * @param operation - Whether to stack horizontally or vertically.\n *\n * @param gap - The gap to leave between shapes.\n *\n * @example\n * ```ts\n * editor.stackShapes([box1, box2], 'horizontal', 32)\n * editor.stackShapes(editor.getSelectedShapeIds(), 'horizontal', 32)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "stackShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", operation: "
+ },
+ {
+ "kind": "Content",
+ "text": "'horizontal' | 'vertical'"
+ },
+ {
+ "kind": "Content",
+ "text": ", gap: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "operation",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "gap",
+ "parameterTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "stackShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#startFollowingUser:member(1)",
+ "docComment": "/**\n * Start viewport-following a user.\n *\n * @param userId - The id of the user to follow.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "startFollowingUser(userId: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "userId",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "startFollowingUser"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#stopCameraAnimation:member(1)",
+ "docComment": "/**\n * Stop the current camera animation, if any.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "stopCameraAnimation(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "stopCameraAnimation"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#stopFollowingUser:member(1)",
+ "docComment": "/**\n * Stop viewport-following a user.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "stopFollowingUser(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "stopFollowingUser"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#store:member",
+ "docComment": "/**\n * The editor's store\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly store: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLStore",
+ "canonicalReference": "@tldraw/tlschema!TLStore:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "store",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#stretchShapes:member(1)",
+ "docComment": "/**\n * Stretch shape sizes and positions to fill their common bounding box.\n *\n * @param shapes - The shapes (or shape ids) to stretch.\n *\n * @param operation - Whether to stretch shapes horizontally or vertically.\n *\n * @example\n * ```ts\n * editor.stretchShapes([box1, box2], 'horizontal')\n * editor.stretchShapes(editor.getSelectedShapeIds(), 'horizontal')\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "stretchShapes(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", operation: "
+ },
+ {
+ "kind": "Content",
+ "text": "'horizontal' | 'vertical'"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "operation",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "stretchShapes"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#styleProps:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "styleProps: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n [key: string]: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Map",
+ "canonicalReference": "!Map:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", string>;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "styleProps",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#textMeasure:member",
+ "docComment": "/**\n * A helper for measuring text.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly textMeasure: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TextManager",
+ "canonicalReference": "@tldraw/editor!~TextManager:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "textMeasure",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#toggleLock:member(1)",
+ "docComment": "/**\n * Toggle the lock state of one or more shapes. If there is a mix of locked and unlocked shapes, all shapes will be locked.\n *\n * @param shapes - The shapes (or shape ids) to toggle.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "toggleLock(shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[] | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "toggleLock"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#undo:member(1)",
+ "docComment": "/**\n * Undo to the last mark.\n *\n * @example\n * ```ts\n * editor.undo()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "undo(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "undo"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#ungroupShapes:member(1)",
+ "docComment": "/**\n * Ungroup some shapes.\n *\n * @param ids - Ids of the shapes to ungroup. Defaults to the selected shapes.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "ungroupShapes(ids: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "ids",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "ungroupShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#ungroupShapes:member(2)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "ungroupShapes(ids: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 2,
+ "parameters": [
+ {
+ "parameterName": "ids",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "ungroupShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updateAssets:member(1)",
+ "docComment": "/**\n * Update one or more assets.\n *\n * @param assets - The assets to update.\n *\n * @example\n * ```ts\n * editor.updateAssets([{ id: 'asset1', name: 'New name' }])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updateAssets(assets: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAssetPartial",
+ "canonicalReference": "@tldraw/tlschema!TLAssetPartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "assets",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updateAssets"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updateCurrentPageState:member(1)",
+ "docComment": "/**\n * Update this instance's page state.\n *\n * @param partial - The partial of the page state object containing the changes.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.updateCurrentPageState({ id: 'page1', editingShapeId: 'shape:123' })\n * editor.updateCurrentPageState({ id: 'page1', editingShapeId: 'shape:123' }, { ephemeral: true })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updateCurrentPageState(partial: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLInstancePageState",
+ "canonicalReference": "@tldraw/tlschema!TLInstancePageState:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'editingShapeId' | 'focusedGroupId' | 'pageId' | 'selectedShapeIds'>>"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "partial",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updateCurrentPageState"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updateDocumentSettings:member(1)",
+ "docComment": "/**\n * Update the global document settings that apply to all users.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updateDocumentSettings(settings: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLDocument",
+ "canonicalReference": "@tldraw/tlschema!TLDocument:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "settings",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updateDocumentSettings"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updateInstanceState:member(1)",
+ "docComment": "/**\n * Update the instance's state.\n *\n * @param partial - A partial object to update the instance state with.\n *\n * @param historyOptions - The history options for the change.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updateInstanceState(partial: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLInstance",
+ "canonicalReference": "@tldraw/tlschema!TLInstance:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'currentPageId'>>"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "partial",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updateInstanceState"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updatePage:member(1)",
+ "docComment": "/**\n * Update a page.\n *\n * @param partial - The partial of the shape to update.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.updatePage({ id: 'page2', name: 'Page 2' })\n * editor.updatePage({ id: 'page2', name: 'Page 2' }, { squashing: true })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updatePage(partial: "
+ },
+ {
+ "kind": "Reference",
+ "text": "RequiredKeys",
+ "canonicalReference": "@tldraw/editor!RequiredKeys:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'id'>"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "partial",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updatePage"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updateShape:member(1)",
+ "docComment": "/**\n * Update a shape using a partial of the shape.\n *\n * @param partial - The shape partial to update.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.updateShape({ id: 'box1', type: 'geo', props: { w: 100, h: 100 } })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updateShape(partial: "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePartial",
+ "canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "partial",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updateShape"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updateShapes:member(1)",
+ "docComment": "/**\n * Update shapes using partials of each shape.\n *\n * @param partials - The shape partials to update.\n *\n * @param historyOptions - The history options for the change.\n *\n * @example\n * ```ts\n * editor.updateShapes([{ id: 'box1', type: 'geo', props: { w: 100, h: 100 } }])\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updateShapes(partials: "
+ },
+ {
+ "kind": "Content",
+ "text": "(null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePartial",
+ "canonicalReference": "@tldraw/tlschema!TLShapePartial:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined)[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", historyOptions?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCommandHistoryOptions",
+ "canonicalReference": "@tldraw/editor!TLCommandHistoryOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "partials",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "historyOptions",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updateShapes"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#updateViewportScreenBounds:member(1)",
+ "docComment": "/**\n * Update the viewport. The viewport will measure the size and screen position of its container element. This should be done whenever the container's position on the screen changes.\n *\n * @param center - Whether to preserve the viewport page center as the viewport changes.\n *\n * @example\n * ```ts\n * editor.updateViewportScreenBounds()\n * editor.updateViewportScreenBounds(true)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "updateViewportScreenBounds(screenBounds: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", center?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "screenBounds",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "center",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "updateViewportScreenBounds"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Editor#user:member",
+ "docComment": "/**\n * A manager for the user and their preferences.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "readonly user: "
+ },
+ {
+ "kind": "Reference",
+ "text": "UserPreferencesManager",
+ "canonicalReference": "@tldraw/editor!~UserPreferencesManager:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "user",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#visitDescendants:member(1)",
+ "docComment": "/**\n * Run a visitor function for all descendants of a shape.\n *\n * @param parentId - The id of the parent shape.\n *\n * @param visitor - The visitor function.\n *\n * @example\n * ```ts\n * editor.visitDescendants('frame1', myCallback)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "visitDescendants(parent: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPage",
+ "canonicalReference": "@tldraw/tlschema!TLPage:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLParentId",
+ "canonicalReference": "@tldraw/tlschema!TLParentId:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", visitor: "
+ },
+ {
+ "kind": "Content",
+ "text": "(id: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeId",
+ "canonicalReference": "@tldraw/tlschema!TLShapeId:type"
+ },
+ {
+ "kind": "Content",
+ "text": ") => false | void"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 11,
+ "endIndex": 12
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "parent",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "visitor",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 10
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "visitDescendants"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#zoomIn:member(1)",
+ "docComment": "/**\n * Zoom the camera in.\n *\n * @param animation - The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomIn()\n * editor.zoomIn(editor.getViewportScreenCenter(), { duration: 120 })\n * editor.zoomIn(editor.inputs.currentScreenPoint, { duration: 120 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "zoomIn(point?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "zoomIn"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#zoomOut:member(1)",
+ "docComment": "/**\n * Zoom the camera out.\n *\n * @param animation - The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomOut()\n * editor.zoomOut(editor.getViewportScreenCenter(), { duration: 120 })\n * editor.zoomOut(editor.inputs.currentScreenPoint, { duration: 120 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "zoomOut(point?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "zoomOut"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#zoomToBounds:member(1)",
+ "docComment": "/**\n * Zoom the camera to fit a bounding box (in the current page space).\n *\n * @param bounds - The bounding box.\n *\n * @param options - The options for an animation, target zoom, or custom inset amount.\n *\n * @example\n * ```ts\n * editor.zoomToBounds(myBounds)\n * editor.zoomToBounds(myBounds)\n * editor.zoomToBounds(myBounds, { duration: 100 })\n * editor.zoomToBounds(myBounds, { inset: 0, targetZoom: 1 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "zoomToBounds(bounds: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", opts?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n targetZoom?: number;\n inset?: number;\n } & "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "bounds",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "zoomToBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#zoomToContent:member(1)",
+ "docComment": "/**\n * Move the camera to the nearest content.\n *\n * @param opts - The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomToContent()\n * editor.zoomToContent({ duration: 200 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "zoomToContent(opts?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "zoomToContent"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#zoomToFit:member(1)",
+ "docComment": "/**\n * Zoom the camera to fit the current page's content in the viewport.\n *\n * @param animation - The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomToFit()\n * editor.zoomToFit({ duration: 200 })\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "zoomToFit(animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "zoomToFit"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Editor#zoomToSelection:member(1)",
+ "docComment": "/**\n * Zoom the camera to fit the current selection in the viewport.\n *\n * @param animation - The options for an animation.\n *\n * @example\n * ```ts\n * editor.zoomToSelection()\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "zoomToSelection(animation?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLAnimationOptions",
+ "canonicalReference": "@tldraw/editor!TLAnimationOptions:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "animation",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "zoomToSelection"
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Ellipse2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Ellipse2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Ellipse2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Ellipse2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#_edges:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_edges?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Edge2d",
+ "canonicalReference": "@tldraw/editor!Edge2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "_edges",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Ellipse2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Ellipse2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed'> & {\n width: number;\n height: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#config:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed'> & {\n width: number;\n height: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "config",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#edges:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get edges(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Edge2d",
+ "canonicalReference": "@tldraw/editor!Edge2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "edges",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#getBounds:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Content",
+ "text": "any[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getVertices"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#h:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "h: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "h",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", zoom: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "zoom",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Ellipse2d#w:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "w: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "w",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!ErrorBoundary:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class ErrorBoundary extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "React.Component",
+ "canonicalReference": "@types/react!React.Component:class"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "React.PropsWithRef",
+ "canonicalReference": "@types/react!React.PropsWithRef:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "React.PropsWithChildren",
+ "canonicalReference": "@types/react!React.PropsWithChildren:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLErrorBoundaryProps",
+ "canonicalReference": "@tldraw/editor!TLErrorBoundaryProps:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">>, "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLErrorBoundaryState",
+ "canonicalReference": "@tldraw/editor!~TLErrorBoundaryState:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/ErrorBoundary.tsx",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "ErrorBoundary",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ErrorBoundary#componentDidCatch:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "componentDidCatch(error: "
+ },
+ {
+ "kind": "Content",
+ "text": "unknown"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "error",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "componentDidCatch"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ErrorBoundary.getDerivedStateFromError:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static getDerivedStateFromError(error: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Error",
+ "canonicalReference": "!Error:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n error: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Error",
+ "canonicalReference": "!Error:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "error",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getDerivedStateFromError"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ErrorBoundary#render:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "render(): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean | import(\"react/jsx-runtime\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "JSX.Element",
+ "canonicalReference": "@types/react!JSX.Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "Iterable",
+ "canonicalReference": "!Iterable:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "React.ReactNode",
+ "canonicalReference": "@types/react!React.ReactNode:type"
+ },
+ {
+ "kind": "Content",
+ "text": "> | null | number | string | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "render"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ErrorBoundary#state:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "state: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLErrorBoundaryState",
+ "canonicalReference": "@tldraw/editor!~TLErrorBoundaryState:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "state",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 11
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!ErrorScreen:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function ErrorScreen({ children }: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n children: "
+ },
+ {
+ "kind": "Reference",
+ "text": "ReactNode",
+ "canonicalReference": "@types/react!React.ReactNode:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\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/editor/src/lib/TldrawEditor.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ children }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "ErrorScreen"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!EVENT_NAME_MAP:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "EVENT_NAME_MAP: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Record",
+ "canonicalReference": "!Record:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Exclude",
+ "canonicalReference": "!Exclude:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLEventName",
+ "canonicalReference": "@tldraw/editor!TLEventName:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLPinchEventName",
+ "canonicalReference": "@tldraw/editor!TLPinchEventName:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">, keyof "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLEventHandlers",
+ "canonicalReference": "@tldraw/editor!TLEventHandlers:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/types/event-types.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "EVENT_NAME_MAP",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 11
+ }
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!GapsSnapIndicator:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type GapsSnapIndicator = "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n id: string;\n type: 'gaps';\n direction: 'horizontal' | 'vertical';\n gaps: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Array",
+ "canonicalReference": "!Array:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<{\n startEdge: ["
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "];\n endEdge: ["
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "];\n }>;\n}"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager/SnapManager.ts",
+ "releaseTag": "Public",
+ "name": "GapsSnapIndicator",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 12
+ }
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare abstract class Geometry2d "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Geometry2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": true,
+ "name": "Geometry2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Geometry2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Geometry2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(opts: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#area:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get area(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "area",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#bounds:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get bounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "bounds",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#center:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get center(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "center",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#debugColor:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "debugColor?: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "debugColor",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#distanceToLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "distanceToLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "distanceToLineSegment"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#distanceToPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "distanceToPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", hitInside?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "hitInside",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "distanceToPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#getArea:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getArea(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getArea"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#getBounds:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "abstract getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": true,
+ "name": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", distance?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "distance",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#hitTestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", margin?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", hitInside?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "margin",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "hitInside",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#ignore:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "ignore?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "ignore",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#isClosed:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isClosed: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "isClosed",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#isFilled:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isFilled: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "isFilled",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#isLabel:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isLabel: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "isLabel",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#isPointInBounds:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isPointInBounds(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", margin?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "margin",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "isPointInBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "abstract nearestPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": true,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#nearestPointOnLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPointOnLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPointOnLineSegment"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Geometry2d#toSimpleSvgPath:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "toSimpleSvgPath(): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "toSimpleSvgPath"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Geometry2d#vertices:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get vertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "vertices",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getArcMeasure:function(1)",
+ "docComment": "/**\n * Get the measure of an arc.\n *\n * @param A - The angle from center to arc's start point (A) on the circle\n *\n * @param B - The angle from center to arc's end point (B) on the circle\n *\n * @param sweepFlag - 1 if the arc is clockwise, 0 if counter-clockwise\n *\n * @param largeArcFlag - 1 if the arc is greater than 180 degrees, 0 if less than 180 degrees\n *\n * @returns The measure of the arc, negative if counter-clockwise\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getArcMeasure(A: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", sweepFlag: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", largeArcFlag: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "sweepFlag",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "largeArcFlag",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getArcMeasure"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getArrowTerminalsInArrowSpace:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getArrowTerminalsInArrowSpace(editor: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Editor",
+ "canonicalReference": "@tldraw/editor!Editor:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLArrowShape",
+ "canonicalReference": "@tldraw/tlschema!TLArrowShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n start: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n end: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n}"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/arrow/shared.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "editor",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getArrowTerminalsInArrowSpace"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getCursor:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getCursor(cursor: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLCursorType",
+ "canonicalReference": "@tldraw/tlschema!TLCursorType:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", rotation?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", color?: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/hooks/useCursor.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "cursor",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "rotation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "color",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "name": "getCursor"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getFreshUserPreferences:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getFreshUserPreferences(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUserPreferences",
+ "canonicalReference": "@tldraw/editor!TLUserPreferences:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/TLUserPreferences.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [],
+ "name": "getFreshUserPreferences"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getIncrementedName:function(1)",
+ "docComment": "/**\n * Get an incremented name (e.g. New page (2)) from a name (e.g. New page), based on an array of existing names.\n *\n * @param name - The name to increment.\n *\n * @param others - The array of existing names.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getIncrementedName(name: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ", others: "
+ },
+ {
+ "kind": "Content",
+ "text": "string[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/getIncrementedName.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "name",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "others",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getIncrementedName"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getPointerInfo:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getPointerInfo(e: "
+ },
+ {
+ "kind": "Reference",
+ "text": "PointerEvent",
+ "canonicalReference": "!PointerEvent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "React.PointerEvent",
+ "canonicalReference": "@types/react!React.PointerEvent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n point: {\n x: number;\n y: number;\n z: number;\n };\n shiftKey: boolean;\n altKey: boolean;\n ctrlKey: boolean;\n pointerId: number;\n button: number;\n isPen: boolean;\n}"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/.tsbuild-api/lib/utils/getPointerInfo.d.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "e",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getPointerInfo"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getPointInArcT:function(1)",
+ "docComment": "/**\n * Returns the t value of the point on the arc.\n *\n * @param mAB - The measure of the arc from A to B, negative if counter-clockwise\n *\n * @param A - The angle from center to arc's start point (A) on the circle\n *\n * @param B - The angle from center to arc's end point (B) on the circle\n *\n * @param P - The angle on the circle (P) to find the t value for\n *\n * @returns The t value of the point on the arc, with 0 being the start and 1 being the end\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getPointInArcT(mAB: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", A: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", P: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "mAB",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "P",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getPointInArcT"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getPointOnCircle:function(1)",
+ "docComment": "/**\n * Get a point on the perimeter of a circle.\n *\n * @param center - The center of the circle.\n *\n * @param r - The radius of the circle.\n *\n * @param a - The angle in radians.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getPointOnCircle(center: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", a: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "center",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getPointOnCircle"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getPolygonVertices:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getPolygonVertices(width: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", height: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", sides: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "width",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "height",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "sides",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getPolygonVertices"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getSvgPathFromPoints:function(1)",
+ "docComment": "/**\n * Turn an array of points into a path of quadradic curves.\n *\n * @param points - The points returned from perfect-freehand\n *\n * @param closed - Whether the stroke is closed\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getSvgPathFromPoints(points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", closed?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/getSvgPathFromPoints.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "closed",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "isOptional": true
+ }
+ ],
+ "name": "getSvgPathFromPoints"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!getUserPreferences:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function getUserPreferences(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUserPreferences",
+ "canonicalReference": "@tldraw/editor!TLUserPreferences:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/TLUserPreferences.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [],
+ "name": "getUserPreferences"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!GRID_STEPS:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "GRID_STEPS: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n min: number;\n mid: number;\n step: number;\n}[]"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/constants.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "GRID_STEPS",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Group2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Group2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Group2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Group2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Group2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Group2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed' | 'isFilled'> & {\n children: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[];\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Group2d#children:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "children: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "children",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Group2d#distanceToPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "distanceToPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", hitInside?: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "hitInside",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "distanceToPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Group2d#getArea:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getArea(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getArea"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Group2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Group2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", zoom: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "zoom",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Group2d#hitTestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", margin: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", hitInside: "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "margin",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "hitInside",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Group2d#ignoredChildren:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "ignoredChildren: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "ignoredChildren",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Group2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Group2d#toSimpleSvgPath:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "toSimpleSvgPath(): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "toSimpleSvgPath"
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!GroupShapeUtil:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class GroupShapeUtil extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeUtil",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/shapes/group/GroupShapeUtil.tsx",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "GroupShapeUtil",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!GroupShapeUtil#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": "Method",
+ "canonicalReference": "@tldraw/editor!GroupShapeUtil#component:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "component(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape: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/editor!GroupShapeUtil#getDefaultProps:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getDefaultProps(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape: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/editor!GroupShapeUtil#getGeometry:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getGeometry(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape: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": "Property",
+ "canonicalReference": "@tldraw/editor!GroupShapeUtil#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/editor!GroupShapeUtil#indicator:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "indicator(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape: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/editor!GroupShapeUtil.migrations:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static migrations: "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"@tldraw/tlschema\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePropsMigrations",
+ "canonicalReference": "@tldraw/tlschema!TLShapePropsMigrations:type"
+ },
+ {
+ "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/editor!GroupShapeUtil#onChildrenChange:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onChildrenChange: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnChildrenChangeHandler",
+ "canonicalReference": "@tldraw/editor!TLOnChildrenChangeHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "onChildrenChange",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!GroupShapeUtil.props:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static props: "
+ },
+ {
+ "kind": "Content",
+ "text": "import(\"@tldraw/tlschema\")."
+ },
+ {
+ "kind": "Reference",
+ "text": "ShapeProps",
+ "canonicalReference": "@tldraw/tlschema!ShapeProps:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "TLGroupShape",
+ "canonicalReference": "@tldraw/tlschema!TLGroupShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "props",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!GroupShapeUtil.type:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static type: "
+ },
+ {
+ "kind": "Content",
+ "text": "\"group\""
+ },
+ {
+ "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": "Variable",
+ "canonicalReference": "@tldraw/editor!HALF_PI:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "HALF_PI: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "HALF_PI",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "Interface",
+ "canonicalReference": "@tldraw/editor!HandleSnapGeometry:interface",
+ "docComment": "/**\n * When dragging a handle, users can snap the handle to key geometry on other nearby shapes. Customize how handles snap to a shape by returning this from {@link ShapeUtil.getHandleSnapGeometry}.\n *\n * Any co-ordinates here should be in the shape's local space.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export interface HandleSnapGeometry "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager/HandleSnaps.ts",
+ "releaseTag": "Public",
+ "name": "HandleSnapGeometry",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "MethodSignature",
+ "canonicalReference": "@tldraw/editor!HandleSnapGeometry#getSelfSnapOutline:member(1)",
+ "docComment": "/**\n * By default, handles can't snap to their own shape because moving the handle might change the snapping location which can cause feedback loops. You can override this by returning a version of `outline` that won't be affected by the current handle's position to use for self-snapping.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelfSnapOutline?(handle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLHandle",
+ "canonicalReference": "@tldraw/tlschema!TLHandle:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | null"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isOptional": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "handle",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getSelfSnapOutline"
+ },
+ {
+ "kind": "MethodSignature",
+ "canonicalReference": "@tldraw/editor!HandleSnapGeometry#getSelfSnapPoints:member(1)",
+ "docComment": "/**\n * By default, handles can't snap to their own shape because moving the handle might change the snapping location which can cause feedback loops. You can override this by returning a version of `points` that won't be affected by the current handle's position to use for self-snapping.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getSelfSnapPoints?(handle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLHandle",
+ "canonicalReference": "@tldraw/tlschema!TLHandle:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecModel",
+ "canonicalReference": "@tldraw/tlschema!VecModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isOptional": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "handle",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "getSelfSnapPoints"
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!HandleSnapGeometry#outline:member",
+ "docComment": "/**\n * A `Geometry2d` that describe the outline of the shape that the handle will snap to - fills are ignored. By default, this is the same geometry returned by {@link ShapeUtil.getGeometry}. Set this to `null` to disable handle snapping to this shape's outline.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "outline?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | null"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "outline",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!HandleSnapGeometry#points:member",
+ "docComment": "/**\n * Key points on the shape that the handle will snap to. For example, the corners of a rectangle, or the centroid of a triangle. By default, no points are used.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "points?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecModel",
+ "canonicalReference": "@tldraw/tlschema!VecModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "points",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ }
+ }
+ ],
+ "extendsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!hardReset:function(1)",
+ "docComment": "/**\n * Clear the database of all data associated with tldraw.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function hardReset({ shouldReload }?: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n shouldReload?: boolean | undefined;\n}"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Promise",
+ "canonicalReference": "!Promise:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/sync/hardReset.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ shouldReload }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": true
+ }
+ ],
+ "name": "hardReset"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!hardResetEditor:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function hardResetEditor(): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/hardResetEditor.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [],
+ "name": "hardResetEditor"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!HIT_TEST_MARGIN:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "HIT_TEST_MARGIN = "
+ },
+ {
+ "kind": "Content",
+ "text": "8"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/constants.ts",
+ "initializerTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "HIT_TEST_MARGIN",
+ "variableTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!HTMLContainer:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function HTMLContainer({ children, className, ...rest }: "
+ },
+ {
+ "kind": "Reference",
+ "text": "HTMLContainerProps",
+ "canonicalReference": "@tldraw/editor!HTMLContainerProps: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/editor/src/lib/components/HTMLContainer.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ children, className, ...rest }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "HTMLContainer"
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!HTMLContainerProps:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type HTMLContainerProps = "
+ },
+ {
+ "kind": "Reference",
+ "text": "React.HTMLAttributes",
+ "canonicalReference": "@types/react!React.HTMLAttributes:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "HTMLDivElement",
+ "canonicalReference": "!HTMLDivElement:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/components/HTMLContainer.tsx",
+ "releaseTag": "Public",
+ "name": "HTMLContainerProps",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectCircleCircle:function(1)",
+ "docComment": "/**\n * Find the intersections between a circle and a circle.\n *\n * @param c1 - The first circle's center.\n *\n * @param r1 - The first circle's radius.\n *\n * @param c2 - The second circle's center.\n *\n * @param r2 - The second circle's radius.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectCircleCircle(c1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", r1: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", c2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", r2: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "c1",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "r1",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "c2",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "r2",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectCircleCircle"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectCirclePolygon:function(1)",
+ "docComment": "/**\n * Find the intersections between a circle and a bounding box.\n *\n * @param c - The circle's center.\n *\n * @param r - The circle's radius.\n *\n * @param points - The points in the polygon.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectCirclePolygon(c: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "c",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectCirclePolygon"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectCirclePolyline:function(1)",
+ "docComment": "/**\n * Find the intersections between a circle and a bounding box.\n *\n * @param c - The circle's center.\n *\n * @param r - The circle's radius.\n *\n * @param points - The points in the polyline.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectCirclePolyline(c: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "c",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectCirclePolyline"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectLineSegmentCircle:function(1)",
+ "docComment": "/**\n * Find the intersections between a line segment and a circle.\n *\n * @param a1 - The segment's first point.\n *\n * @param a2 - The segment's second point.\n *\n * @param c - The circle's center.\n *\n * @param r - The circle's radius.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectLineSegmentCircle(a1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", a2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", c: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 12
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a1",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a2",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "c",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectLineSegmentCircle"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectLineSegmentLineSegment:function(1)",
+ "docComment": "/**\n * Find the intersection between a line segment and a line segment.\n *\n * @param a1 - The first segment's first point.\n *\n * @param a2 - The first segment's second point.\n *\n * @param b1 - The second segment's first point.\n *\n * @param b2 - The second segment's second point.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectLineSegmentLineSegment(a1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", a2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", b1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", b2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a1",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a2",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b1",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b2",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectLineSegmentLineSegment"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectLineSegmentPolygon:function(1)",
+ "docComment": "/**\n * Find the intersections between a line segment and a closed polygon.\n *\n * @param a1 - The segment's first point.\n *\n * @param a2 - The segment's second point.\n *\n * @param points - The points in the polygon.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectLineSegmentPolygon(a1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", a2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a1",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a2",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectLineSegmentPolygon"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectLineSegmentPolyline:function(1)",
+ "docComment": "/**\n * Find the intersections between a line segment and a polyline.\n *\n * @param a1 - The segment's first point.\n *\n * @param a2 - The segment's second point.\n *\n * @param points - The points in the polyline.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectLineSegmentPolyline(a1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", a2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 8,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a1",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a2",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectLineSegmentPolyline"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectPolygonBounds:function(1)",
+ "docComment": "/**\n * Find the intersections between a polygon and a bounding box.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectPolygonBounds(points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", bounds: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "bounds",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectPolygonBounds"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!intersectPolygonPolygon:function(1)",
+ "docComment": "/**\n * Create a new convex polygon as the intersection of two convex polygons.\n *\n * @param polygonA - An array of points representing the first polygon.\n *\n * @param polygonB - An array of points representing the second polygon.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function intersectPolygonPolygon(polygonA: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", polygonB: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "null | "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "polygonA",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "polygonB",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "intersectPolygonPolygon"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!isSafeFloat:function(1)",
+ "docComment": "/**\n * Check if a float is safe to use. ie: Not too big or small.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isSafeFloat: (n: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ") => "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "n",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "isSafeFloat"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!linesIntersect:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function linesIntersect(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", C: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", D: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "C",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "D",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "linesIntersect"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!LoadingScreen:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function LoadingScreen({ children }: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n children: "
+ },
+ {
+ "kind": "Reference",
+ "text": "ReactNode",
+ "canonicalReference": "@types/react!React.ReactNode:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\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/editor/src/lib/TldrawEditor.tsx",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "{ children }",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "LoadingScreen"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!loadSessionStateSnapshotIntoStore:function(1)",
+ "docComment": "/**\n * Loads a snapshot of the editor's instance state into the store of a new editor instance.\n *\n * @param store - The store to load the instance state into\n *\n * @param snapshot - The instance state snapshot to load\n *\n * @returns \n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function loadSessionStateSnapshotIntoStore(store: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLStore",
+ "canonicalReference": "@tldraw/tlschema!TLStore:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", snapshot: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLSessionStateSnapshot",
+ "canonicalReference": "@tldraw/editor!TLSessionStateSnapshot:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/TLSessionStateSnapshot.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "store",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "snapshot",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "loadSessionStateSnapshotIntoStore"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!loopToHtmlElement:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function loopToHtmlElement(elm: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Element",
+ "canonicalReference": "!Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "HTMLElement",
+ "canonicalReference": "!HTMLElement:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/dom.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "elm",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "loopToHtmlElement"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Mat:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Mat "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Mat.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Mat",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Mat:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Mat` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(a: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", b: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", c: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", d: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", e: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", f: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "c",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "d",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "e",
+ "parameterTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "f",
+ "parameterTypeTokenRange": {
+ "startIndex": 11,
+ "endIndex": 12
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Mat#a:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "a: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "a",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Absolute:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Absolute(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Absolute"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.applyToBounds:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static applyToBounds(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", box: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "box",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "applyToBounds"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#applyToPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "applyToPoint(point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "applyToPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.applyToPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static applyToPoint(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "point",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "applyToPoint"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#applyToPoints:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "applyToPoints(points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "applyToPoints"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.applyToPoints:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static applyToPoints(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "applyToPoints"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.applyToXY:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static applyToXY(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "x",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "y",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "applyToXY"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Mat#b:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "b: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "b",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Mat#c:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "c: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "c",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Cast:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Cast(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Cast"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#clone:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "clone(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "clone"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Compose:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Compose(...matrices: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "matrices",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Compose"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Mat#d:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "d: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "d",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#decompose:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "decompose(): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n x: number;\n y: number;\n scaleX: number;\n scaleY: number;\n rotation: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "decompose"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Decompose:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Decompose(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n x: number;\n y: number;\n scaleX: number;\n scaleY: number;\n rotation: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Decompose"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#decomposed:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "decomposed(): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n x: number;\n y: number;\n scaleX: number;\n scaleY: number;\n rotation: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "decomposed"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Mat#e:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "e: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "e",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#equals:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "equals(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "equals"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Mat#f:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "f: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "f",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.From:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static From(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "From"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#identity:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "identity(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "identity"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Identity:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Identity(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Identity"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Inverse:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Inverse(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Inverse"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#invert:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "invert(): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "invert"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#multiply:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "multiply(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "multiply"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Multiply:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Multiply(m1: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", m2: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m1",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "m2",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Multiply"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#point:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "point(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "point"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Point:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Point(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Point"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#rotate:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "rotate(r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", cx?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", cy?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "cx",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "cy",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "rotate"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Rotate:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Rotate(r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", cx?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", cy?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "cx",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ },
+ {
+ "parameterName": "cy",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Rotate"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#rotation:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "rotation(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "rotation"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Rotation:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Rotation(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Rotation"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#scale:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "scale(x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "x",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "y",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "scale"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Mat.Scale:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Scale: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n (x: number, y: number): "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n (x: number, y: number, cx: number, cy: number): "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "Scale",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 6
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#setTo:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "setTo(model: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "this"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "model",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "setTo"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Smooth:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Smooth(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", precision?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "precision",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Smooth"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#toCssString:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "toCssString(): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "toCssString"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.toCssString:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static toCssString(m: "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatLike",
+ "canonicalReference": "@tldraw/editor!MatLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "m",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "toCssString"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat#translate:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "translate(x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "x",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "y",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "translate"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Mat.Translate:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static Translate(x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": true,
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "x",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "y",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "Translate"
+ }
+ ],
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!MatLike:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type MatLike = "
+ },
+ {
+ "kind": "Reference",
+ "text": "Mat",
+ "canonicalReference": "@tldraw/editor!Mat:class"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "MatModel",
+ "canonicalReference": "@tldraw/editor!MatModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Mat.ts",
+ "releaseTag": "Public",
+ "name": "MatLike",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ }
+ },
+ {
+ "kind": "Interface",
+ "canonicalReference": "@tldraw/editor!MatModel:interface",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export interface MatModel "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Mat.ts",
+ "releaseTag": "Public",
+ "name": "MatModel",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!MatModel#a:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "a: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "a",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!MatModel#b:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "b: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "b",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!MatModel#c:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "c: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "c",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!MatModel#d:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "d: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "d",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!MatModel#e:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "e: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "e",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "PropertySignature",
+ "canonicalReference": "@tldraw/editor!MatModel#f:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "f: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "f",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ }
+ ],
+ "extendsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!moveCameraWhenCloseToEdge:function(1)",
+ "docComment": "/**\n * Moves the camera when the mouse is close to the edge of the screen.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function moveCameraWhenCloseToEdge(editor: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Editor",
+ "canonicalReference": "@tldraw/editor!Editor:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/edgeScrolling.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "editor",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "moveCameraWhenCloseToEdge"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!openWindow:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function openWindow(url: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ", target?: "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/window-open.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "url",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "target",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": true
+ }
+ ],
+ "name": "openWindow"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!perimeterOfEllipse:function(1)",
+ "docComment": "/**\n * Find the approximate perimeter of an ellipse.\n *\n * @param rx - The ellipse's x radius.\n *\n * @param ry - The ellipse's y radius.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function perimeterOfEllipse(rx: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", ry: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "rx",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "ry",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "perimeterOfEllipse"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!PI:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "PI: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "PI",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!PI2:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "PI2: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "PI2",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Point2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Point2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Point2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Point2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Point2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Point2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed' | 'isFilled'> & {\n margin: number;\n point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Point2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Point2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", margin: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "margin",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Point2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Point2d#point:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "point: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "point",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!pointInPolygon:function(1)",
+ "docComment": "/**\n * Get whether a point is inside of a polygon.\n * ```ts\n * const result = pointInPolygon(myPoint, myPoints)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function pointInPolygon(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "points",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "pointInPolygon"
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!PointsSnapIndicator:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type PointsSnapIndicator = "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n id: string;\n type: 'points';\n points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[];\n}"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/managers/SnapManager/SnapManager.ts",
+ "releaseTag": "Public",
+ "name": "PointsSnapIndicator",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ }
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Polygon2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Polygon2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Polyline2d",
+ "canonicalReference": "@tldraw/editor!Polyline2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Polygon2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Polygon2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Polygon2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Polygon2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed'> & {\n points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[];\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ]
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!polygonsIntersect:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function polygonsIntersect(a: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ", b: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/intersect.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b",
+ "parameterTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "polygonsIntersect"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Polyline2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Polyline2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2d",
+ "canonicalReference": "@tldraw/editor!Geometry2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Polyline2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Polyline2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Polyline2d#_length:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_length?: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "_length",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Polyline2d#_segments:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "_segments?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Edge2d",
+ "canonicalReference": "@tldraw/editor!Edge2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "_segments",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Polyline2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Polyline2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed' | 'isFilled'> & {\n points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[];\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Polyline2d#getVertices:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getVertices(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "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": "getVertices"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Polyline2d#hitTestLineSegment:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hitTestLineSegment(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", B: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", zoom: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "B",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "zoom",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "hitTestLineSegment"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Polyline2d#length:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get length(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "length",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Polyline2d#nearestPoint:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "nearestPoint(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "nearestPoint"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Polyline2d#points:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "points: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Vec",
+ "canonicalReference": "@tldraw/editor!Vec:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "points",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Polyline2d#segments:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get segments(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Edge2d",
+ "canonicalReference": "@tldraw/editor!Edge2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "segments",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!precise:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function precise(A: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecLike",
+ "canonicalReference": "@tldraw/editor!VecLike:type"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "string"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "A",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "precise"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!preventDefault:function(1)",
+ "docComment": "/**\n * This function calls `event.preventDefault()` for you. Why is that useful?\n *\n * Beacuase if you enable `window.preventDefaultLogging = true` it'll log out a message when it happens. Because we use console.warn rather than (log) you'll get a stack trace in the inspector telling you exactly where it happened. This is important because `e.preventDefault()` is the source of many bugs, but unfortuantly it can't be avoided because it also stops a lot of default behaviour which doesn't make sense in our UI\n *\n * @param event - To prevent default on\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function preventDefault(event: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Event",
+ "canonicalReference": "!Event:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "React.BaseSyntheticEvent",
+ "canonicalReference": "@types/react!React.BaseSyntheticEvent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/dom.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "event",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "preventDefault"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!radiansToDegrees:function(1)",
+ "docComment": "/**\n * Convert radians to degrees.\n *\n * @param r - The degree in radians.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function radiansToDegrees(r: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "r",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "radiansToDegrees"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!rangeIntersection:function(1)",
+ "docComment": "/**\n * Finds the intersection of two ranges.\n *\n * @param a0 - The start point in the A range\n *\n * @param a1 - The end point in the A range\n *\n * @param b0 - The start point in the B range\n *\n * @param b1 - The end point in the B range\n *\n * @returns The intersection of the ranges, or null if no intersection\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function rangeIntersection(a0: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", a1: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", b0: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ", b1: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "[number, number] | null"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/utils.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 9,
+ "endIndex": 10
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "a0",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "a1",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b0",
+ "parameterTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "b1",
+ "parameterTypeTokenRange": {
+ "startIndex": 7,
+ "endIndex": 8
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "rangeIntersection"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap:class",
+ "docComment": "/**\n * A map of {@link @tldraw/tlschema#StyleProp | StyleProps} to their {@link SharedStyle} values. See {@link Editor.getSharedStyles}.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class ReadonlySharedStyleMap "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/SharedStylesMap.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "ReadonlySharedStyleMap",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#[Symbol.iterator]:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "["
+ },
+ {
+ "kind": "Reference",
+ "text": "Symbol.iterator",
+ "canonicalReference": "!SymbolConstructor#iterator"
+ },
+ {
+ "kind": "Content",
+ "text": "](): "
+ },
+ {
+ "kind": "Reference",
+ "text": "IterableIterator",
+ "canonicalReference": "!IterableIterator:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<["
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", "
+ },
+ {
+ "kind": "Reference",
+ "text": "SharedStyle",
+ "canonicalReference": "@tldraw/editor!SharedStyle:type"
+ },
+ {
+ "kind": "Content",
+ "text": "]>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 9
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "[Symbol.iterator]"
+ },
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `ReadonlySharedStyleMap` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(entries?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Iterable",
+ "canonicalReference": "!Iterable:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<["
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", "
+ },
+ {
+ "kind": "Reference",
+ "text": "SharedStyle",
+ "canonicalReference": "@tldraw/editor!SharedStyle:type"
+ },
+ {
+ "kind": "Content",
+ "text": "]>"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "entries",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#entries:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "entries(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "IterableIterator",
+ "canonicalReference": "!IterableIterator:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<["
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ", "
+ },
+ {
+ "kind": "Reference",
+ "text": "SharedStyle",
+ "canonicalReference": "@tldraw/editor!SharedStyle:type"
+ },
+ {
+ "kind": "Content",
+ "text": "]>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "entries"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#equals:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "equals(other: "
+ },
+ {
+ "kind": "Reference",
+ "text": "ReadonlySharedStyleMap",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap:class"
+ },
+ {
+ "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": "other",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "equals"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#get:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get(prop: "
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "SharedStyle",
+ "canonicalReference": "@tldraw/editor!SharedStyle:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "prop",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "get"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#getAsKnownValue:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getAsKnownValue(prop: "
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "T | undefined"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 4,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "prop",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getAsKnownValue"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#keys:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "keys(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "IterableIterator",
+ "canonicalReference": "!IterableIterator:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "StyleProp",
+ "canonicalReference": "@tldraw/tlschema!StyleProp:class"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "keys"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#size:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "get size(): "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": true,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "size",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ReadonlySharedStyleMap#values:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "values(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "IterableIterator",
+ "canonicalReference": "!IterableIterator:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "SharedStyle",
+ "canonicalReference": "@tldraw/editor!SharedStyle:type"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "values"
+ }
+ ],
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!Rectangle2d:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare class Rectangle2d extends "
+ },
+ {
+ "kind": "Reference",
+ "text": "Polygon2d",
+ "canonicalReference": "@tldraw/editor!Polygon2d:class"
+ },
+ {
+ "kind": "Content",
+ "text": " "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/geometry/Rectangle2d.ts",
+ "releaseTag": "Public",
+ "isAbstract": false,
+ "name": "Rectangle2d",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!Rectangle2d:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `Rectangle2d` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(config: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Geometry2dOptions",
+ "canonicalReference": "@tldraw/editor!~Geometry2dOptions:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", 'isClosed'> & {\n x?: number;\n y?: number;\n width: number;\n height: number;\n }"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "config",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!Rectangle2d#getBounds:member(1)",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getBounds(): "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "getBounds"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Rectangle2d#h:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "h: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "h",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Rectangle2d#w:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "w: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "w",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Rectangle2d#x:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "x: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "x",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!Rectangle2d#y:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "y: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "y",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ }
+ ],
+ "extendsTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "implementsTokenRanges": []
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!refreshPage:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function refreshPage(): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/refreshPage.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [],
+ "name": "refreshPage"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!releasePointerCapture:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function releasePointerCapture(element: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Element",
+ "canonicalReference": "!Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", event: "
+ },
+ {
+ "kind": "Reference",
+ "text": "PointerEvent",
+ "canonicalReference": "!PointerEvent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "React.PointerEvent",
+ "canonicalReference": "@types/react!React.PointerEvent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Element",
+ "canonicalReference": "!Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/dom.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "element",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "event",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 9
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "releasePointerCapture"
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!RequiredKeys:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type RequiredKeys = "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Omit",
+ "canonicalReference": "!Omit:type"
+ },
+ {
+ "kind": "Content",
+ "text": "> & "
+ },
+ {
+ "kind": "Reference",
+ "text": "Pick",
+ "canonicalReference": "!Pick:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/types/misc-types.ts",
+ "releaseTag": "Public",
+ "name": "RequiredKeys",
+ "typeParameters": [
+ {
+ "typeParameterName": "T",
+ "constraintTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ },
+ {
+ "typeParameterName": "K",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 0,
+ "endIndex": 0
+ }
+ }
+ ],
+ "typeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 9
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!resizeBox:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function resizeBox(shape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLBaseBoxShape",
+ "canonicalReference": "@tldraw/editor!TLBaseBoxShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", info: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n newPoint: "
+ },
+ {
+ "kind": "Reference",
+ "text": "VecModel",
+ "canonicalReference": "@tldraw/tlschema!VecModel:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n handle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLResizeHandle",
+ "canonicalReference": "@tldraw/editor!TLResizeHandle:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n mode: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLResizeMode",
+ "canonicalReference": "@tldraw/editor!TLResizeMode:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n scaleX: number;\n scaleY: number;\n initialBounds: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Box",
+ "canonicalReference": "@tldraw/editor!Box:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n initialShape: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLBaseBoxShape",
+ "canonicalReference": "@tldraw/editor!TLBaseBoxShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";\n}"
+ },
+ {
+ "kind": "Content",
+ "text": ", opts?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<{\n minWidth: number;\n maxWidth: number;\n minHeight: number;\n maxHeight: number;\n}>"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n x: number;\n y: number;\n props: {\n w: number;\n h: number;\n };\n}"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/resizeBox.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 18,
+ "endIndex": 19
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "info",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 14
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "opts",
+ "parameterTypeTokenRange": {
+ "startIndex": 15,
+ "endIndex": 17
+ },
+ "isOptional": true
+ }
+ ],
+ "name": "resizeBox"
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!ResizeBoxOptions:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type ResizeBoxOptions = "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": "<{\n minWidth: number;\n maxWidth: number;\n minHeight: number;\n maxHeight: number;\n}>"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/shapes/shared/resizeBox.ts",
+ "releaseTag": "Public",
+ "name": "ResizeBoxOptions",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ }
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!ROTATE_CORNER_TO_SELECTION_CORNER:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "ROTATE_CORNER_TO_SELECTION_CORNER: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n readonly top_left_rotate: \"top_left\";\n readonly top_right_rotate: \"top_right\";\n readonly bottom_right_rotate: \"bottom_right\";\n readonly bottom_left_rotate: \"bottom_left\";\n readonly mobile_rotate: \"top_left\";\n}"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "ROTATE_CORNER_TO_SELECTION_CORNER",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!RotateCorner:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type RotateCorner = "
+ },
+ {
+ "kind": "Content",
+ "text": "'bottom_left_rotate' | 'bottom_right_rotate' | 'mobile_rotate' | 'top_left_rotate' | 'top_right_rotate'"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "releaseTag": "Public",
+ "name": "RotateCorner",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!rotateSelectionHandle:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function rotateSelectionHandle(handle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionHandle",
+ "canonicalReference": "@tldraw/editor!SelectionHandle:type"
+ },
+ {
+ "kind": "Content",
+ "text": ", rotation: "
+ },
+ {
+ "kind": "Content",
+ "text": "number"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionHandle",
+ "canonicalReference": "@tldraw/editor!SelectionHandle:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 5,
+ "endIndex": 6
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "handle",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "rotation",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "rotateSelectionHandle"
+ },
+ {
+ "kind": "Variable",
+ "canonicalReference": "@tldraw/editor!runtime:var",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "runtime: "
+ },
+ {
+ "kind": "Content",
+ "text": "{\n openWindow: (url: string, target: string) => void;\n refreshPage: () => void;\n hardReset: () => void;\n}"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/runtime.ts",
+ "isReadonly": true,
+ "releaseTag": "Public",
+ "name": "runtime",
+ "variableTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!SelectionCorner:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type SelectionCorner = "
+ },
+ {
+ "kind": "Content",
+ "text": "'bottom_left' | 'bottom_right' | 'top_left' | 'top_right'"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "releaseTag": "Public",
+ "name": "SelectionCorner",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!SelectionEdge:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type SelectionEdge = "
+ },
+ {
+ "kind": "Content",
+ "text": "'bottom' | 'left' | 'right' | 'top'"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "releaseTag": "Public",
+ "name": "SelectionEdge",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ }
+ },
+ {
+ "kind": "TypeAlias",
+ "canonicalReference": "@tldraw/editor!SelectionHandle:type",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export type SelectionHandle = "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionCorner",
+ "canonicalReference": "@tldraw/editor!SelectionCorner:type"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "SelectionEdge",
+ "canonicalReference": "@tldraw/editor!SelectionEdge:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/primitives/Box.ts",
+ "releaseTag": "Public",
+ "name": "SelectionHandle",
+ "typeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ }
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!setPointerCapture:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function setPointerCapture(element: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Element",
+ "canonicalReference": "!Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ", event: "
+ },
+ {
+ "kind": "Reference",
+ "text": "PointerEvent",
+ "canonicalReference": "!PointerEvent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "React.PointerEvent",
+ "canonicalReference": "@types/react!React.PointerEvent:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "<"
+ },
+ {
+ "kind": "Reference",
+ "text": "Element",
+ "canonicalReference": "!Element:interface"
+ },
+ {
+ "kind": "Content",
+ "text": ">"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/dom.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 10,
+ "endIndex": 11
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "element",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "event",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 9
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "setPointerCapture"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!setRuntimeOverrides:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function setRuntimeOverrides(input: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Partial",
+ "canonicalReference": "!Partial:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/utils/runtime.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "input",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "setRuntimeOverrides"
+ },
+ {
+ "kind": "Function",
+ "canonicalReference": "@tldraw/editor!setUserPreferences:function(1)",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare function setUserPreferences(user: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLUserPreferences",
+ "canonicalReference": "@tldraw/editor!TLUserPreferences:interface"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "void"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/config/TLUserPreferences.ts",
+ "returnTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ },
+ "releaseTag": "Public",
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "user",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ],
+ "name": "setUserPreferences"
+ },
+ {
+ "kind": "Class",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:class",
+ "docComment": "/**\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "export declare abstract class ShapeUtil "
+ }
+ ],
+ "fileUrlPath": "packages/editor/src/lib/editor/shapes/ShapeUtil.ts",
+ "releaseTag": "Public",
+ "typeParameters": [
+ {
+ "typeParameterName": "Shape",
+ "constraintTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "defaultTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 4
+ }
+ }
+ ],
+ "isAbstract": true,
+ "name": "ShapeUtil",
+ "preserveMemberOrder": false,
+ "members": [
+ {
+ "kind": "Constructor",
+ "canonicalReference": "@tldraw/editor!ShapeUtil:constructor(1)",
+ "docComment": "/**\n * Constructs a new instance of the `ShapeUtil` class\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "constructor(editor: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Editor",
+ "canonicalReference": "@tldraw/editor!Editor:class"
+ },
+ {
+ "kind": "Content",
+ "text": ");"
+ }
+ ],
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "editor",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ }
+ ]
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canBind:member",
+ "docComment": "/**\n * Whether the shape can be bound to by an arrow.\n *\n * @param _otherShape - The other shape attempting to bind to this shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canBind: "
+ },
+ {
+ "kind": "Content",
+ "text": "(_shape: Shape, _otherShape?: K | undefined) => 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/editor!ShapeUtil#canCrop:member",
+ "docComment": "/**\n * Whether the shape can be cropped.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canCrop: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "canCrop",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canDropShapes:member(1)",
+ "docComment": "/**\n * Get whether the shape can receive children of a given type.\n *\n * @param shape - The shape type.\n *\n * @param shapes - The shapes that are being dropped.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canDropShapes(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "kind": "Content",
+ "text": ", shapes: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "[]"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "shapes",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "canDropShapes"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canEdit:member",
+ "docComment": "/**\n * Whether the shape can be double clicked to edit.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canEdit: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "canEdit",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canEditInReadOnly:member",
+ "docComment": "/**\n * Whether the shape can be edited in read-only mode.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canEditInReadOnly: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "canEditInReadOnly",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canReceiveNewChildrenOfType:member(1)",
+ "docComment": "/**\n * Get whether the shape can receive children of a given type.\n *\n * @param type - The shape type.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canReceiveNewChildrenOfType(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "kind": "Content",
+ "text": ", type: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShape",
+ "canonicalReference": "@tldraw/tlschema!TLShape:type"
+ },
+ {
+ "kind": "Content",
+ "text": "['type']"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "boolean"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 6,
+ "endIndex": 7
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [
+ {
+ "parameterName": "shape",
+ "parameterTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isOptional": false
+ },
+ {
+ "parameterName": "type",
+ "parameterTypeTokenRange": {
+ "startIndex": 3,
+ "endIndex": 5
+ },
+ "isOptional": false
+ }
+ ],
+ "isOptional": false,
+ "isAbstract": false,
+ "name": "canReceiveNewChildrenOfType"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canResize:member",
+ "docComment": "/**\n * Whether the shape can be resized.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canResize: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "canResize",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canScroll:member",
+ "docComment": "/**\n * Whether the shape can be scrolled while editing.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canScroll: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "canScroll",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#canSnap:member",
+ "docComment": "/**\n * Whether the shape can be snapped to by another shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "canSnap: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "canSnap",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#component:member(1)",
+ "docComment": "/**\n * Get a JSX element for the shape (as an HTML element).\n *\n * @param shape - The shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "abstract component(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "any"
+ },
+ {
+ "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": true,
+ "name": "component"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#editor:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "editor: "
+ },
+ {
+ "kind": "Reference",
+ "text": "Editor",
+ "canonicalReference": "@tldraw/editor!Editor:class"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "editor",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#getBoundsSnapGeometry:member(1)",
+ "docComment": "/**\n * Get the geometry to use when snapping to this this shape in translate/resize operations. See {@link BoundsSnapGeometry} for details.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getBoundsSnapGeometry(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Reference",
+ "text": "BoundsSnapGeometry",
+ "canonicalReference": "@tldraw/editor!BoundsSnapGeometry: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": "getBoundsSnapGeometry"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#getCanvasSvgDefs:member(1)",
+ "docComment": "/**\n * Return elements to be added to the \\ section of the canvases SVG context. This can be used to define SVG content (e.g. patterns & masks) that can be referred to by ID from svg elements returned by `component`.\n *\n * Each def should have a unique `key`. If multiple defs from different shapes all have the same key, only one will be used.\n */\n",
+ "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/editor!ShapeUtil#getDefaultProps:member(1)",
+ "docComment": "/**\n * Get the default props for a shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "abstract getDefaultProps(): "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape['props']"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isStatic": false,
+ "returnTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 2
+ },
+ "releaseTag": "Public",
+ "isProtected": false,
+ "overloadIndex": 1,
+ "parameters": [],
+ "isOptional": false,
+ "isAbstract": true,
+ "name": "getDefaultProps"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#getGeometry:member(1)",
+ "docComment": "/**\n * Get the shape's geometry.\n *\n * @param shape - The shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "abstract getGeometry(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "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": true,
+ "name": "getGeometry"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#getHandles:member(1)",
+ "docComment": "/**\n * Get an array of handle models for the shape. This is an optional method.\n *\n * @param shape - The shape.\n *\n * @example\n * ```ts\n * util.getHandles?.(myShape)\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHandles?(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "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": true,
+ "isAbstract": false,
+ "name": "getHandles"
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#getHandleSnapGeometry:member(1)",
+ "docComment": "/**\n * Get the geometry to use when snapping handles to this shape. See {@link HandleSnapGeometry} for details.\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "getHandleSnapGeometry(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "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/editor!ShapeUtil#hideResizeHandles:member",
+ "docComment": "/**\n * Whether the shape should hide its resize handles when selected.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hideResizeHandles: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "hideResizeHandles",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#hideRotateHandle:member",
+ "docComment": "/**\n * Whether the shape should hide its rotation handles when selected.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hideRotateHandle: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "hideRotateHandle",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#hideSelectionBoundsBg:member",
+ "docComment": "/**\n * Whether the shape should hide its selection bounds background when selected.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hideSelectionBoundsBg: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "hideSelectionBoundsBg",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#hideSelectionBoundsFg:member",
+ "docComment": "/**\n * Whether the shape should hide its selection bounds foreground when selected.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "hideSelectionBoundsFg: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "hideSelectionBoundsFg",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Method",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#indicator:member(1)",
+ "docComment": "/**\n * Get JSX describing the shape's indicator (as an SVG element).\n *\n * @param shape - The shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "abstract indicator(shape: "
+ },
+ {
+ "kind": "Content",
+ "text": "Shape"
+ },
+ {
+ "kind": "Content",
+ "text": "): "
+ },
+ {
+ "kind": "Content",
+ "text": "any"
+ },
+ {
+ "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": true,
+ "name": "indicator"
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#isAspectRatioLocked:member",
+ "docComment": "/**\n * Whether the shape's aspect ratio is locked.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "isAspectRatioLocked: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapeUtilFlag",
+ "canonicalReference": "@tldraw/editor!TLShapeUtilFlag:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": false,
+ "releaseTag": "Public",
+ "name": "isAspectRatioLocked",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil.migrations:member",
+ "docComment": "",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "static migrations?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "LegacyMigrations",
+ "canonicalReference": "@tldraw/store!LegacyMigrations:interface"
+ },
+ {
+ "kind": "Content",
+ "text": " | "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLShapePropsMigrations",
+ "canonicalReference": "@tldraw/tlschema!TLShapePropsMigrations:type"
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "migrations",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 4
+ },
+ "isStatic": true,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onBeforeCreate:member",
+ "docComment": "/**\n * A callback called just before a shape is created. This method provides a last chance to modify the created shape.\n *\n * @param next - The next shape.\n *\n * @returns The next shape or void.\n *\n * @example\n * ```ts\n * onBeforeCreate = (next) => {\n * \treturn { ...next, x: next.x + 1 }\n * }\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onBeforeCreate?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnBeforeCreateHandler",
+ "canonicalReference": "@tldraw/editor!TLOnBeforeCreateHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onBeforeCreate",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onBeforeUpdate:member",
+ "docComment": "/**\n * A callback called just before a shape is updated. This method provides a last chance to modify the updated shape.\n *\n * @param prev - The previous shape.\n *\n * @param next - The next shape.\n *\n * @returns The next shape or void.\n *\n * @example\n * ```ts\n * onBeforeUpdate = (prev, next) => {\n * \tif (prev.x === next.x) {\n * \t\treturn { ...next, x: next.x + 1 }\n * \t}\n * }\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onBeforeUpdate?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnBeforeUpdateHandler",
+ "canonicalReference": "@tldraw/editor!TLOnBeforeUpdateHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onBeforeUpdate",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onChildrenChange:member",
+ "docComment": "/**\n * A callback called when a shape's children change.\n *\n * @param shape - The shape.\n *\n * @returns An array of shape updates, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onChildrenChange?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnChildrenChangeHandler",
+ "canonicalReference": "@tldraw/editor!TLOnChildrenChangeHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onChildrenChange",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onClick:member",
+ "docComment": "/**\n * A callback called when a shape is clicked.\n *\n * @param shape - The shape.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onClick?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnClickHandler",
+ "canonicalReference": "@tldraw/editor!TLOnClickHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onClick",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onDoubleClick:member",
+ "docComment": "/**\n * A callback called when a shape is double clicked.\n *\n * @param shape - The shape.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onDoubleClick?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnDoubleClickHandler",
+ "canonicalReference": "@tldraw/editor!TLOnDoubleClickHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onDoubleClick",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onDoubleClickEdge:member",
+ "docComment": "/**\n * A callback called when a shape's edge is double clicked.\n *\n * @param shape - The shape.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onDoubleClickEdge?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnDoubleClickHandler",
+ "canonicalReference": "@tldraw/editor!TLOnDoubleClickHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onDoubleClickEdge",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onDoubleClickHandle:member",
+ "docComment": "/**\n * A callback called when a shape's handle is double clicked.\n *\n * @param shape - The shape.\n *\n * @param handle - The handle that is double-clicked.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onDoubleClickHandle?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnDoubleClickHandleHandler",
+ "canonicalReference": "@tldraw/editor!TLOnDoubleClickHandleHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onDoubleClickHandle",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onDragShapesOut:member",
+ "docComment": "/**\n * A callback called when some other shapes are dragged out of this one.\n *\n * @param shape - The shape.\n *\n * @param shapes - The shapes that are being dragged out.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onDragShapesOut?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnDragHandler",
+ "canonicalReference": "@tldraw/editor!TLOnDragHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onDragShapesOut",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onDragShapesOver:member",
+ "docComment": "/**\n * A callback called when some other shapes are dragged over this one.\n *\n * @param shape - The shape.\n *\n * @param shapes - The shapes that are being dragged over this one.\n *\n * @returns An object specifying whether the shape should hint that it can receive the dragged shapes.\n *\n * @example\n * ```ts\n * onDragShapesOver = (shape, shapes) => {\n * \treturn { shouldHint: true }\n * }\n * ```\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onDragShapesOver?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnDragHandler",
+ "canonicalReference": "@tldraw/editor!TLOnDragHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onDragShapesOver",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onDropShapesOver:member",
+ "docComment": "/**\n * A callback called when some other shapes are dropped over this one.\n *\n * @param shape - The shape.\n *\n * @param shapes - The shapes that are being dropped over this one.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onDropShapesOver?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnDragHandler",
+ "canonicalReference": "@tldraw/editor!TLOnDragHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onDropShapesOver",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onEditEnd:member",
+ "docComment": "/**\n * A callback called when a shape finishes being editing.\n *\n * @param shape - The shape.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onEditEnd?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnEditEndHandler",
+ "canonicalReference": "@tldraw/editor!TLOnEditEndHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onEditEnd",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onHandleDrag:member",
+ "docComment": "/**\n * A callback called when a shape's handle changes.\n *\n * @param shape - The current shape.\n *\n * @param info - An object containing the handle and whether the handle is 'precise' or not.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onHandleDrag?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnHandleDragHandler",
+ "canonicalReference": "@tldraw/editor!TLOnHandleDragHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onHandleDrag",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onResize:member",
+ "docComment": "/**\n * A callback called when a shape changes from a resize.\n *\n * @param shape - The shape at the start of the resize.\n *\n * @param info - Info about the resize.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onResize?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnResizeHandler",
+ "canonicalReference": "@tldraw/editor!TLOnResizeHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onResize",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onResizeEnd:member",
+ "docComment": "/**\n * A callback called when a shape finishes resizing.\n *\n * @param initial - The shape at the start of the resize.\n *\n * @param current - The current shape.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onResizeEnd?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnResizeEndHandler",
+ "canonicalReference": "@tldraw/editor!TLOnResizeEndHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onResizeEnd",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onResizeStart:member",
+ "docComment": "/**\n * A callback called when a shape starts being resized.\n *\n * @param shape - The shape.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onResizeStart?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnResizeStartHandler",
+ "canonicalReference": "@tldraw/editor!TLOnResizeStartHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onResizeStart",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onRotate:member",
+ "docComment": "/**\n * A callback called when a shape changes from a rotation.\n *\n * @param initial - The shape at the start of the rotation.\n *\n * @param current - The current shape.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onRotate?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnRotateHandler",
+ "canonicalReference": "@tldraw/editor!TLOnRotateHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": ""
+ },
+ {
+ "kind": "Content",
+ "text": ";"
+ }
+ ],
+ "isReadonly": false,
+ "isOptional": true,
+ "releaseTag": "Public",
+ "name": "onRotate",
+ "propertyTypeTokenRange": {
+ "startIndex": 1,
+ "endIndex": 3
+ },
+ "isStatic": false,
+ "isProtected": false,
+ "isAbstract": false
+ },
+ {
+ "kind": "Property",
+ "canonicalReference": "@tldraw/editor!ShapeUtil#onRotateEnd:member",
+ "docComment": "/**\n * A callback called when a shape finishes rotating.\n *\n * @param initial - The shape at the start of the rotation.\n *\n * @param current - The current shape.\n *\n * @returns A change to apply to the shape, or void.\n *\n * @public\n */\n",
+ "excerptTokens": [
+ {
+ "kind": "Content",
+ "text": "onRotateEnd?: "
+ },
+ {
+ "kind": "Reference",
+ "text": "TLOnRotateEndHandler",
+ "canonicalReference": "@tldraw/editor!TLOnRotateEndHandler:type"
+ },
+ {
+ "kind": "Content",
+ "text": "